!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-dom"),require("webpacker-react"),function(){try{return require("trix")}catch(t){}}());else if("function"==typeof define&&define.amd)define(["react","react-dom","webpacker-react","trix"],e);else{var n="object"==typeof exports?e(require("react"),require("react-dom"),require("webpacker-react"),function(){try{return require("trix")}catch(t){}}()):e(t.react,t["react-dom"],t["webpacker-react"],t.trix);for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(window,(function(t,e,n,i){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=278)}([function(e,n){e.exports=t},,function(t,e,n){"use strict";n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return d}));var i=n(3),r=n.n(i),o=function(t,e){return Object.keys(e).reduce((function(n,i){return n["".concat(t,"-").concat(i)]=e[i],n}),{})},a=function(){},s=function(t){return o("aria",t)},l=function(t){return o("data",t)},d=function(){for(var t=arguments.length,e=new Array(t),n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},t),e);return Object.keys(d).map((function(t){return d[t](n)})).filter((function(t){return(null==t?void 0:t.length)>0})).join(" ")},u=function(){},h=function(t){return Object(i.omit)(t,["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark"])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(148);function r(t,e,n){return(e=Object(i.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(108);function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""};e.a=function(t){var e,n=t.aria,i=void 0===n?{}:n,o=t.border,h=void 0!==o&&o,p=t.className,f=t.customIcon,g=t.data,m=void 0===g?{}:g,v=t.fixedWidth,y=void 0===v||v,b=t.flip,x=void 0===b?"none":b,_=t.icon,O=t.id,w=t.inverse,C=void 0!==w&&w,$=t.listItem,k=void 0!==$&&$,S=t.pull,E=t.pulse,j=void 0!==E&&E,A=t.rotation,M=t.size,P=t.fontStyle,T=void 0===P?"far":P,D=t.spin,L=(c(e={"fa-border":h,"fa-fw":y,"fa-inverse":C,"fa-li":k,"fa-pulse":j,"fa-spin":void 0!==D&&D},"fa-".concat(M),M),c(e,"fa-pull-".concat(S),S),c(e,"fa-rotate-".concat(A),A),e);f||(L["fa-".concat(_)]=_);var I=a()(u[x],"pb_icon_kit",f?"":T,L,Object(l.c)(t),p),N=a()("pb_icon_kit_emoji",Object(l.c)(t),p);!i.label&&(i.label="".concat(_," icon"));var R=Object(s.a)(i),F=Object(s.c)(m);return r.a.createElement(r.a.Fragment,null,function(t){return t?r.a.createElement(r.a.Fragment,null,r.a.cloneElement(t,Object.assign(Object.assign({},F),{className:I,id:O}))):Object(d.a)(_)?r.a.createElement(r.a.Fragment,null,r.a.createElement("span",Object.assign({},F,{className:N,id:O}),_)):r.a.createElement(r.a.Fragment,null,r.a.createElement("i",Object.assign({},F,{className:I,id:O})),r.a.createElement("span",Object.assign({},R,{hidden:!0})))}(f))}},function(t,e,n){t.exports={windows:"#003DB2",siding:"#6000AC",doors:"#B85C00",solar:"#007E8F",roofing:"#760B24",gutters:"#008540",insulation:"#96006C",product_1_background:"#003DB2",product_1_highlight:"#0057FF",product_2_background:"#6000AC",product_2_highlight:"#8200E9",product_3_background:"#B85C00",product_3_highlight:"#CE7500",product_4_background:"#007E8F",product_4_highlight:"#00B9D2",product_5_background:"#760B24",product_5_highlight:"#B8032E",product_6_background:"#008540",product_6_highlight:"#00A851",product_7_background:"#96006C",product_7_highlight:"#CD0094",product_8_background:"#144075",product_8_highlight:"#1A569E",product_9_background:"#fcc419",product_9_highlight:"#ffd43b",product_10_background:"#20c997",product_10_highlight:"#38d9a9",success:"#1CA05C",success_secondary:"#24cb75",success_sm:"#157F48",success_subtle:"rgba(28,160,92,0.1)",warning:"#F9BB00",warning_secondary:"#ffcb2d",warning_subtle:"rgba(249,187,0,0.1)",error:"#DA0014",error_secondary:"#ff0e24",error_subtle:"rgba(218,0,20,0.1)",info:"#00C4D7",info_secondary:"#0be9ff",info_subtle:"rgba(0,196,215,0.1)",neutral:"#C1CDD6",neutral_secondary:"#e0e6ea",neutral_subtle:"rgba(193,205,214,0.1)",primary:"#0056CF",primary_secondary:"#036cff",data_1:"#0056CF",data_2:"#F9BB00",data_3:"#9E64E9",data_4:"#1CA05C",data_5:"#FD804C",data_6:"#144075",data_7:"#00C4D7",data_8:"#DA0014",shadow:"rgba(60,106,172,0.2)",shadow_dark:"#0a0527",royal:"#0056CF",purple:"#9E64E9",teal:"#00C4D7",red:"#DA0014","#ff0":"#F9BB00",green:"#1CA05C",orange:"#FD804C",default:"#93a8b8","#fff":"#fff",silver:"#F3F7FB",slate:"#C1CDD6",charcoal:"#242B42","#000":"#000",secondary:"#F9BB00",tertiary:"#9E64E9",bg_light:"#F3F7FB",bg_dark:"#0a0527",bg_dark_card:"#231E3D",card_light:"#fff",card_dark:"#231e3d",active_light:"#f7fbff",active_dark:"#0082ff",primary_action:"#0056CF",primary_action_dark:"#0082ff",hover_light:"#e0eaf5",hover_dark:"rgba(255,255,255,0.2)",border_light:"#E4E8F0",border_dark:"#3b3752",text_lt_default:"#242B42",text_lt_light:"#687887",text_lt_lighter:"#C1CDD6",text_dk_default:"#fff",text_dk_light:"rgba(255,255,255,0.6)",text_dk_lighter:"rgba(255,255,255,0.4)",category_1:"#0056CF",category_2:"#0CD2E5",category_3:"#F9BB00",category_4:"#14D595",category_5:"#A057FF",category_6:"#FF7034",category_7:"#97DA22",category_8:"#EA599F",category_9:"#0091FF",category_10:"#5027E4",category_11:"#DA0014",category_12:"#109922",category_13:"#058F9D",category_14:"#A33E6F",category_15:"#B2171C",category_16:"#0A5C49",category_17:"#325B91",category_18:"#BE4714",category_19:"navy",category_20:"#5C0E0A",category_21:"#040830",gradient_start:"#1C75F2",gradient_end:"#0056CF"}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.align,n=void 0===e?"none":e,i=t.children,o=t.className,d=t.data,c=void 0===d?{}:d,u=t.inline,h=void 0!==u&&u,p=t.horizontal,f=void 0===p?"left":p,g=t.justify,m=void 0===g?"none":g,v=t.orientation,y=void 0===v?"row":v,b=t.spacing,x=void 0===b?"none":b,_=t.gap,O=void 0===_?"none":_,w=t.rowGap,C=void 0===w?"none":w,$=t.columnGap,k=void 0===$?"none":$,S=t.reverse,E=void 0!==S&&S,j=t.vertical,A=void 0===j?"top":j,M=t.wrap,P=void 0!==M&&M,T=t.alignSelf,D=void 0===T?"none":T,L=void 0!==y?"orientation_".concat(y):"",I="justify_content_".concat("none"!==m?m:f),N="align_items_".concat("none"!==n?n:A),R=!0===h?"inline":"",F=void 0!==x?"spacing_".concat(x):"",B="none"!==O?"gap_".concat(O):"",z="none"!==C?"rowGap_".concat(C):"",W="none"!==k?"columnGap_".concat(k):"",H=!0===P?"wrap":"",Y=!0===E?"reverse":"",U="none"!==D?"align_self_".concat(D):"",G=Object(s.c)(c);return r.a.createElement("div",Object.assign({className:a()(Object(s.b)("pb_flex_kit",L,I,N,R,Y,H,F,B,z,W,U),Object(l.c)(t),o)},G),i)}},function(t,e,n){t.exports={font_family_base:'"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif',text_jumbo:"36px",text_largest:"32px",text_larger:"28px",text_large:"20px",text_base:"16px",text_default:"16px",text_normal:"16px",text_medium:"16px",text_small:"14px",text_smaller:"12px",text_smallest:"11px",heading_1:"46px",heading_2:"34px",heading_3:"28px",heading_4:"16px",lighter:"100",light:"300",bold:"600",regular:"400"}},function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"k",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"o",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"n",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return v}));var i="top",r="bottom",o="right",a="left",s="auto",l=[i,r,o,a],d="start",c="end",u="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce((function(t,e){return t.concat([e+"-"+d,e+"-"+c])}),[]),m=[].concat(l,[s]).reduce((function(t,e){return t.concat([e,e+"-"+d,e+"-"+c])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(126);e.a=function(t){t.variant&&Object(l.a)();var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.color,u=void 0===c?"":c,h=t.data,p=void 0===h?{}:h,f=t.highlightedText,g=void 0===f?[]:f,m=t.highlighting,v=void 0!==m&&m,y=t.id,b=void 0===y?"":y,x=t.status,_=void 0===x?null:x,O=t.tag,w=void 0===O?"div":O,C=t.text,$=void 0===C?"":C,k=t.truncate,S=void 0===k?null:k,E=t.variant,j=void 0===E?null:E,A=Object(s.a)(n),M=Object(s.c)(p),P=S?"truncate_".concat(S):"",T=a()(Object(s.b)("pb_body_kit",u,j,_,P),Object(l.c)(t),o),D="".concat(w);return r.a.createElement(D,Object.assign({},A,M,{className:T,id:b}),v&&r.a.createElement(d.a,{highlightedText:g,text:$},i),!v&&($||i))}},function(t,e,n){t.exports=n(222)()},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)();var e,n=t.aria,i=void 0===n?{}:n,o=t.children,d=t.className,c=t.color,u=t.data,h=void 0===u?{}:u,p=t.id,f=t.size,g=void 0===f?3:f,m=t.bold,v=void 0===m||m,y=t.tag,b=void 0===y?"h3":y,x=t.text,_=t.truncate,O=void 0===_?null:_,w=t.variant,C=void 0===w?null:w,$=Object(s.a)(i),k=Object(s.c)(h),S=v?"":"thin",E=O?"truncate-".concat(O):null,j="number"==typeof g||"string"==typeof g,A=a()(Object(s.b)("pb_title_kit",j?"size_".concat(g):"",C,c,S,E),Object(l.c)(t),(e="",j||Object.entries(g).forEach((function(t){e+="pb_title_kit_".concat(t[0],"_").concat(t[1]," ")})),e.trim()),d),M="".concat(b);return r.a.createElement(M,Object.assign({},$,k,{className:A,id:p}),x||o)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.children,n=t.className,i=t.fixedSize,o=t.grow,d=t.shrink,c=t.flex,u=void 0===c?"none":c,h=t.order,p=void 0===h?"none":h,f=t.alignSelf,g=t.displayFlex,m=!0===o?"grow":"",v=!0===g?"display_flex_".concat(g):"",y="none"!==u?"flex_".concat(u):"",b=!0===d?"shrink":"",x=f?"align_self_".concat(f):"",_=void 0!==i?{flexBasis:"".concat(i)}:null,O="none"!==p?"order_".concat(p):null;return r.a.createElement("div",{className:a()(Object(s.b)("pb_flex_item_kit",m,b,y,v),O,x,Object(l.c)(t),n),style:_},e)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)();var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,d=t.color,c=t.data,u=void 0===c?{}:c,h=t.id,p=t.size,f=void 0===p?"md":p,g=t.tag,m=void 0===g?"div":g,v=t.text,y=t.variant,b=void 0===y?null:y,x=["h1","h2","h3","h4","h5","h6","p","span","div","caption"].includes(m)?m:"div",_=Object(s.a)(n),O=Object(s.c)(u),w=a()(Object(s.b)("pb_caption_kit",f,b,d),Object(l.c)(t),o);return r.a.createElement(x,Object.assign({},_,O,{className:w,id:h}),v||i)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(22),a=n(3),s=n.n(a),l=n(2),d=n(5);function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){var e,n,i=t.aria,a=void 0===i?{}:i,u=t.background,h=void 0===u?"none":u,p=t.borderNone,f=void 0!==p&&p,g=t.borderRadius,m=void 0===g?"md":g,v=t.children,y=t.className,b=t.data,x=void 0===b?{}:b,_=t.highlight,O=void 0===_?{}:_,w=t.selected,C=void 0!==w&&w,$=t.tag,k=void 0===$?"div":$,S=1==f?"border_none":"",E=1==C?"selected":"deselected",j="none"==h?"":"background_".concat(h),A=Object(l.b)("pb_card_kit",E,S,"border_radius_".concat(m),j,(c(e={},"highlight_".concat(O.position),O.position),c(e,"highlight_".concat(O.color),O.color),e)),M=Object(l.a)(a),P=Object(l.c)(x),T=r.a.Children.toArray(v),D=T.filter((function(t){return"Header"!==Object(o.get)(t,"type.displayName")})),L=["div","section","footer","header","article","aside","main","nav"].includes(k)?k:"div";return r.a.createElement(L,Object.assign({},M,P,{className:s()(A,Object(d.c)(t),y)}),(n="Header",T.filter((function(t){return Object(o.get)(t,"type.displayName")===n})).map((function(t,e){if(r.a.isValidElement(t))return r.a.cloneElement(t,{key:"".concat(n.toLowerCase(),"-").concat(e)})}))),D)};u.Header=function(t){var e=t.children,n=t.className,i=t.headerColor,o=void 0===i?"category_1":i,a=t.headerColorStriped,c=void 0!==a&&a,u=Object(l.b)("pb_card_header_kit","".concat(o),c?"striped":""),h=Object(d.c)(t);return r.a.createElement("div",{className:s()(u,h,n)},e)},u.Body=function(t){var e=t.children,n=t.className,i=Object(l.b)("pb_card_body_kit"),o=Object(d.c)(t);return r.a.createElement("div",{className:s()(i,o,n)},e)},e.a=u},function(t,e,n){"use strict";var i=["SU","M","T","W","TH","F","S"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=function(t){return"string"!=typeof t||t.includes("T")?new Date(t):new Date(t.replace(/-/g,"/"))},s=function(t,e){return e?new Date(a(t).toLocaleString("en-US",{timeZone:e})).getDate():a(t).getDate()},l=function(t){return a(t).getMonth()+1},d=function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,timeStyle:"short"}).split(" ")[0]:n.toLocaleTimeString("en-US",{timeStyle:"short"}).split(" ")[0]},c=function(t,e){var n=a(t);return e?n.toLocaleString("en-US",{timeZone:e,hour12:!0}).slice(-2).charAt(0).toLocaleLowerCase():n.toLocaleString("en-US",{hour12:!0}).slice(-2).charAt(0).toLocaleLowerCase()},u=function(t){var e=a(t),n=e.getDay(),i=new Date(e.setHours(0,0,0)),r=0===n?6:n-1;return i.setDate(e.getDate()-r),i},h=function(t){var e=a(t),n=e.getDay(),i=new Date(e.setHours(23,59,59,0)),r=0===n?0:7-n;return i.setDate(e.getDate()+r),i},p=function(t){var e=a(t);return new Date(e.getFullYear(),e.getMonth(),1)},f=function(t){var e=a(t);return new Date(e.getFullYear(),e.getMonth()+1,0,23,59,59)},g=function(t){var e=a(t),n=Math.floor(e.getMonth()/3);return new Date(e.getFullYear(),3*n,1)},m=function(t){var e=a(t),n=Math.floor(e.getMonth()/3),i=new Date(e.getFullYear(),3*(n+1),1);return new Date(i.getTime()-1)},v=function(t){var e=a(t);return new Date(e.getFullYear(),0,1)},y=function(t){var e=a(t);return new Date(e.getFullYear(),11,31,23,59,59)};e.a={toMinute:function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,hour:"2-digit",minute:"2-digit"}).slice(3,5):n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}).slice(3,5)},toHour:function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,hour:"numeric"}).split(" ")[0]:n.toLocaleTimeString("en-US",{hour:"numeric"}).split(" ")[0]},toDay:s,toDayAbbr:function(t){var e=a(t);return i[e.getDay()]},toWeekday:function(t){var e=a(t);return r[e.getDay()]},toMonth:function(t,e){if(e){var n=new Date(a(t).toLocaleString("en-US",{timeZone:e}));return o[n.getMonth()]}var i=a(t);return o[i.getMonth()]},toMonthNum:l,toYear:function(t,e){return e?new Date(a(t).toLocaleString("en-US",{timeZone:e})).getFullYear():a(t).getFullYear()},toTime:d,toMeridiem:c,toTimeZone:function(t,e){var n=a(t);return e?n.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ")[3]:n.toLocaleString("en-US",{timeZoneName:"short"}).split(" ")[3]},toTimeWithMeridiem:function(t,e){var n=a(t);return"".concat(d(n,e)).concat(c(n,e))},toIso:function(t){return a(t).toISOString()},fromNow:function(t){for(var e=new Date,n=a(t),i=n.getTime(),r=e.getTime()-i,o=e.getFullYear()-n.getFullYear(),s="".concat(o,1===o?" year ago":" years ago"),l=0,d=[{min:0,max:45e3,value:"a few seconds ago"},{min:45e3,max:9e4,value:"a minute ago"},{min:9e4,max:267e4,value:"".concat(Math.round(r/6e4)," minutes ago")},{min:267e4,max:54e5,value:"an hour ago"},{min:54e5,max:774e5,value:"".concat(Math.round(r/36e5)," hours ago")},{min:774e5,max:1296e5,value:"a day ago"},{min:1296e5,max:22032e5,value:"".concat(Math.round(r/864e5)," days ago")},{min:22032e5,max:3888e6,value:"a month ago"},{min:3888e6,max:2756e7,value:"".concat(function(){var t=12*o;return t-=n.getMonth(),t+=e.getMonth()}()," months ago")}];l=u&&r1&&void 0!==arguments[1]?arguments[1]:"month_day",n=a(t);return"month_day"==e?"".concat(l(n),"/").concat(s(n)):"".concat(n.toLocaleString("en-US",{month:"short"})," ").concat(s(n))},getYesterdayDate:function(t){var e=a(t),n=new Date;return n.setDate(e.getDate()-1),n},getFirstDayOfWeek:u,getLastDayOfWeek:h,getPreviousWeekStartDate:function(t){var e=u(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()-7)},getPreviousWeekEndDate:function(t){var e=h(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()-7,e.getHours(),e.getMinutes(),e.getSeconds())},getMonthStartDate:p,getMonthEndDate:f,getPreviousMonthStartDate:function(t){var e=p(t);return new Date(e.getFullYear(),e.getMonth()-1,e.getDate())},getPreviousMonthEndDate:function(t){var e=f(t);return new Date(e.getFullYear(),e.getMonth()-1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())},getQuarterStartDate:g,getQuarterEndDate:m,getPreviousQuarterStartDate:function(t){var e=g(t);return new Date(e.getFullYear(),e.getMonth()-3,e.getDate())},getPreviousQuarterEndDate:function(t){var e=m(t);return new Date(e.getFullYear(),e.getMonth()-3,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())},getYearStartDate:v,getYearEndDate:y,getPreviousYearStartDate:function(t){var e=v(t);return new Date(e.getFullYear()-1,e.getMonth(),e.getDate())},getPreviousYearEndDate:function(t){var e=y(t);return new Date(e.getFullYear()-1,e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return O}));var i=n(146);var r=n(0),o=n(117);n(252);function a(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "})),i}var s=function(t,e,n){var i=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var r=e;do{t.insert("."+i,r,t.sheet,!0);r=r.next}while(void 0!==r)}},l=n(85),d=Object.prototype.hasOwnProperty,c=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)():null),u=Object(r.createContext)({}),h=c.Provider,p=function(t){var e=function(e,n){return Object(r.createElement)(c.Consumer,null,(function(i){return t(e,i,n)}))};return Object(r.forwardRef)(e)},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(t,e){var n={};for(var i in e)d.call(e,i)&&(n[i]=e[i]);return n[f]=t,n},m=function(){return null},v=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var c=e[f],u=[o],h="";"string"==typeof e.className?h=a(t.registered,u,e.className):null!=e.className&&(h=e.className+" ");var p=Object(l.a)(u);s(t,p,"string"==typeof c);h+=t.key+"-"+p.name;var g={};for(var v in e)d.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);g.ref=i,g.className=h;var y=Object(r.createElement)(c,g),b=Object(r.createElement)(m,null);return Object(r.createElement)(r.Fragment,null,b,y)},y=p((function(t,e,n){return"function"==typeof t.css?Object(r.createElement)(u.Consumer,null,(function(i){return v(e,t,i,n)})):v(e,t,null,n)}));var b=n(147),x=n(60),_=function(t,e){var n=arguments;if(null==e||!d.call(e,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=y,o[1]=g(t,e);for(var a=2;a * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",d="[object Array]",c="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Function]",f="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",x="[object String]",_="[object Symbol]",O="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",$="[object Float32Array]",k="[object Float64Array]",S="[object Int8Array]",E="[object Int16Array]",j="[object Int32Array]",A="[object Uint8Array]",M="[object Uint16Array]",P="[object Uint32Array]",T=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,I=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,R=RegExp(I.source),F=RegExp(N.source),B=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,X=RegExp(G.source),V=/^\s+/,q=/\s/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,lt=/^(?:0|[1-9]\d*)$/,dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ut=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="[\\ud800-\\udfff]",gt="["+pt+"]",mt="["+ht+"]",vt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",xt="[^\\ud800-\\udfff"+pt+vt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",$t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kt="(?:"+bt+"|"+xt+")",St="(?:"+$t+"|"+xt+")",Et="(?:"+mt+"|"+_t+")"+"?",jt="[\\ufe0e\\ufe0f]?"+Et+("(?:\\u200d(?:"+[Ot,wt,Ct].join("|")+")[\\ufe0e\\ufe0f]?"+Et+")*"),At="(?:"+[yt,wt,Ct].join("|")+")"+jt,Mt="(?:"+[Ot+mt+"?",mt,wt,Ct,ft].join("|")+")",Pt=RegExp("['’]","g"),Tt=RegExp(mt,"g"),Dt=RegExp(_t+"(?="+_t+")|"+Mt+jt,"g"),Lt=RegExp([$t+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[gt,$t,"$"].join("|")+")",St+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[gt,$t+kt,"$"].join("|")+")",$t+"?"+kt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",$t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vt,At].join("|"),"g"),It=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ft=-1,Bt={};Bt[$]=Bt[k]=Bt[S]=Bt[E]=Bt[j]=Bt[A]=Bt["[object Uint8ClampedArray]"]=Bt[M]=Bt[P]=!0,Bt[l]=Bt[d]=Bt[w]=Bt[c]=Bt[C]=Bt[u]=Bt[h]=Bt[p]=Bt[g]=Bt[m]=Bt[v]=Bt[y]=Bt[b]=Bt[x]=Bt[O]=!1;var zt={};zt[l]=zt[d]=zt[w]=zt[C]=zt[c]=zt[u]=zt[$]=zt[k]=zt[S]=zt[E]=zt[j]=zt[g]=zt[m]=zt[v]=zt[y]=zt[b]=zt[x]=zt[_]=zt[A]=zt["[object Uint8ClampedArray]"]=zt[M]=zt[P]=!0,zt[h]=zt[p]=zt[O]=!1;var Wt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ht=parseFloat,Yt=parseInt,Ut="object"==typeof t&&t&&t.Object===Object&&t,Gt="object"==typeof self&&self&&self.Object===Object&&self,Xt=Ut||Gt||Function("return this")(),Vt=e&&!e.nodeType&&e,qt=Vt&&"object"==typeof i&&i&&!i.nodeType&&i,Kt=qt&&qt.exports===Vt,Zt=Kt&&Ut.process,Jt=function(){try{var t=qt&&qt.require&&qt.require("util").types;return t||Zt&&Zt.binding&&Zt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,te=Jt&&Jt.isDate,ee=Jt&&Jt.isMap,ne=Jt&&Jt.isRegExp,ie=Jt&&Jt.isSet,re=Jt&&Jt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r-1}function he(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function Le(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function Ie(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}var Ne=ke({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Re=ke({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fe(t){return"\\"+Wt[t]}function Be(t){return It.test(t)}function ze(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function We(t,e){return function(n){return t(e(n))}}function He(t,e){for(var n=-1,i=t.length,r=0,o=[];++n",""":'"',"'":"'"});var Ke=function t(e){var n,i=(e=null==e?Xt:Ke.defaults(Xt.Object(),e,Ke.pick(Xt,Rt))).Array,r=e.Date,q=e.Error,ht=e.Function,pt=e.Math,ft=e.Object,gt=e.RegExp,mt=e.String,vt=e.TypeError,yt=i.prototype,bt=ht.prototype,xt=ft.prototype,_t=e["__core-js_shared__"],Ot=bt.toString,wt=xt.hasOwnProperty,Ct=0,$t=(n=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",kt=xt.toString,St=Ot.call(ft),Et=Xt._,jt=gt("^"+Ot.call(wt).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Kt?e.Buffer:void 0,Mt=e.Symbol,Dt=e.Uint8Array,It=At?At.allocUnsafe:void 0,Wt=We(ft.getPrototypeOf,ft),Ut=ft.create,Gt=xt.propertyIsEnumerable,Vt=yt.splice,qt=Mt?Mt.isConcatSpreadable:void 0,Zt=Mt?Mt.iterator:void 0,Jt=Mt?Mt.toStringTag:void 0,ye=function(){try{var t=to(ft,"defineProperty");return t({},"",{}),t}catch(t){}}(),ke=e.clearTimeout!==Xt.clearTimeout&&e.clearTimeout,Ze=r&&r.now!==Xt.Date.now&&r.now,Je=e.setTimeout!==Xt.setTimeout&&e.setTimeout,Qe=pt.ceil,tn=pt.floor,en=ft.getOwnPropertySymbols,nn=At?At.isBuffer:void 0,rn=e.isFinite,on=yt.join,an=We(ft.keys,ft),sn=pt.max,ln=pt.min,dn=r.now,cn=e.parseInt,un=pt.random,hn=yt.reverse,pn=to(e,"DataView"),fn=to(e,"Map"),gn=to(e,"Promise"),mn=to(e,"Set"),vn=to(e,"WeakMap"),yn=to(ft,"create"),bn=vn&&new vn,xn={},_n=Eo(pn),On=Eo(fn),wn=Eo(gn),Cn=Eo(mn),$n=Eo(vn),kn=Mt?Mt.prototype:void 0,Sn=kn?kn.valueOf:void 0,En=kn?kn.toString:void 0;function jn(t){if(Ua(t)&&!Da(t)&&!(t instanceof Tn)){if(t instanceof Pn)return t;if(wt.call(t,"__wrapped__"))return jo(t)}return new Pn(t)}var An=function(){function t(){}return function(e){if(!Ya(e))return{};if(Ut)return Ut(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Mn(){}function Pn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Tn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Zn(t,e,n,i,r,o){var a,s=1&e,d=2&e,h=4&e;if(n&&(a=r?n(t,i,r,o):n(t)),void 0!==a)return a;if(!Ya(t))return t;var O=Da(t);if(O){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&wt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return yr(t,a)}else{var T=io(t),D=T==p||T==f;if(Ra(t))return hr(t,s);if(T==v||T==l||D&&!r){if(a=d||D?{}:oo(t),!s)return d?function(t,e){return br(t,no(t),e)}(t,function(t,e){return t&&br(e,Os(e),t)}(a,t)):function(t,e){return br(t,eo(t),e)}(t,Xn(a,t))}else{if(!zt[T])return r?t:{};a=function(t,e,n){var i=t.constructor;switch(e){case w:return pr(t);case c:case u:return new i(+t);case C:return function(t,e){var n=e?pr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case $:case k:case S:case E:case j:case A:case"[object Uint8ClampedArray]":case M:case P:return fr(t,n);case g:return new i;case m:case x:return new i(t);case y:return function(t){var e=new t.constructor(t.source,it.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new i;case _:return r=t,Sn?ft(Sn.call(r)):{}}var r}(t,T,s)}}o||(o=new Rn);var L=o.get(t);if(L)return L;o.set(t,a),Ka(t)?t.forEach((function(i){a.add(Zn(i,e,n,i,t,o))})):Ga(t)&&t.forEach((function(i,r){a.set(r,Zn(i,e,n,r,t,o))}));var I=O?void 0:(h?d?Xr:Gr:d?Os:_s)(t);return se(I||t,(function(i,r){I&&(i=t[r=i]),Yn(a,r,Zn(i,e,n,r,t,o))})),a}function Jn(t,e,n){var i=n.length;if(null==t)return!i;for(t=ft(t);i--;){var r=n[i],o=e[r],a=t[r];if(void 0===a&&!(r in t)||!o(a))return!1}return!0}function Qn(t,e,n){if("function"!=typeof t)throw new vt(o);return _o((function(){t.apply(void 0,n)}),e)}function ti(t,e,n,i){var r=-1,o=ue,a=!0,s=t.length,l=[],d=e.length;if(!s)return l;n&&(e=pe(e,Me(n))),i?(o=he,a=!1):e.length>=200&&(o=Te,a=!1,e=new Nn(e));t:for(;++r-1},Ln.prototype.set=function(t,e){var n=this.__data__,i=Un(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},In.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(fn||Ln),string:new Dn}},In.prototype.delete=function(t){var e=Jr(this,t).delete(t);return this.size-=e?1:0,e},In.prototype.get=function(t){return Jr(this,t).get(t)},In.prototype.has=function(t){return Jr(this,t).has(t)},In.prototype.set=function(t,e){var n=Jr(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Nn.prototype.add=Nn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(t){return this.__data__.has(t)},Rn.prototype.clear=function(){this.__data__=new Ln,this.size=0},Rn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Rn.prototype.get=function(t){return this.__data__.get(t)},Rn.prototype.has=function(t){return this.__data__.has(t)},Rn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ln){var i=n.__data__;if(!fn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new In(i)}return n.set(t,e),this.size=n.size,this};var ei=Or(di),ni=Or(ci,!0);function ii(t,e){var n=!0;return ei(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function ri(t,e,n){for(var i=-1,r=t.length;++i0&&n(s)?e>1?ai(s,e-1,n,i,r):fe(r,s):i||(r[r.length]=s)}return r}var si=wr(),li=wr(!0);function di(t,e){return t&&si(t,e,_s)}function ci(t,e){return t&&li(t,e,_s)}function ui(t,e){return ce(e,(function(e){return za(t[e])}))}function hi(t,e){for(var n=0,i=(e=lr(e,t)).length;null!=t&&ne}function mi(t,e){return null!=t&&wt.call(t,e)}function vi(t,e){return null!=t&&e in ft(t)}function yi(t,e,n){for(var r=n?he:ue,o=t[0].length,a=t.length,s=a,l=i(a),d=1/0,c=[];s--;){var u=t[s];s&&e&&(u=pe(u,Me(e))),d=ln(u.length,d),l[s]=!n&&(e||o>=120&&u.length>=120)?new Nn(s&&u):void 0}u=t[0];var h=-1,p=l[0];t:for(;++h=s)return l;var d=n[i];return l*("desc"==d?-1:1)}}return t.index-e.index}(t,e,n)}))}function Di(t,e,n){for(var i=-1,r=e.length,o={};++i-1;)s!==t&&Vt.call(s,l,1),Vt.call(t,l,1);return t}function Ii(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;so(r)?Vt.call(t,r,1):tr(t,r)}}return t}function Ni(t,e){return t+tn(un()*(e-t+1))}function Ri(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Fi(t,e){return Oo(mo(t,e,Xs),t+"")}function Bi(t){return Bn(As(t))}function zi(t,e){var n=As(t);return $o(n,Kn(e,0,n.length))}function Wi(t,e,n,i){if(!Ya(t))return t;for(var r=-1,o=(e=lr(e,t)).length,a=o-1,s=t;null!=s&&++ro?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=i(o);++r>>1,a=t[o];null!==a&&!Ja(a)&&(n?a<=e:a=200){var d=e?null:Rr(t);if(d)return Ye(d);a=!1,r=Te,l=new Nn}else l=e?[]:s;t:for(;++i=i?t:Gi(t,e,n)}var ur=ke||function(t){return Xt.clearTimeout(t)};function hr(t,e){if(e)return t.slice();var n=t.length,i=It?It(n):new t.constructor(n);return t.copy(i),i}function pr(t){var e=new t.constructor(t.byteLength);return new Dt(e).set(new Dt(t)),e}function fr(t,e){var n=e?pr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function gr(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,o=Ja(t),a=void 0!==e,s=null===e,l=e==e,d=Ja(e);if(!s&&!d&&!o&&t>e||o&&a&&l&&!s&&!d||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!d&&t1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&lo(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=ft(e);++i-1?r[o?e[a]:a]:void 0}}function Er(t){return Ur((function(e){var n=e.length,i=n,r=Pn.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new vt(o);if(r&&!s&&"wrapper"==qr(a))var s=new Pn([],!0)}for(i=s?i:n;++i1&&b.reverse(),u&&ds))return!1;var d=o.get(t),c=o.get(e);if(d&&c)return d==e&&c==t;var u=-1,h=!0,p=2&n?new Nn:void 0;for(o.set(t,e),o.set(e,t);++u-1&&t%1==0&&t1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(K,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return se(s,(function(n){var i="_."+n[0];e&n[1]&&!ue(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(Z);return e?e[1].split(J):[]}(i),n)))}function Co(t){var e=0,n=0;return function(){var i=dn(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function $o(t,e){var n=-1,i=t.length,r=i-1;for(e=void 0===e?i:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,qo(t,n)}));function na(t){var e=jn(t);return e.__chain__=!0,e}function ia(t,e){return e(t)}var ra=Ur((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,r=function(e){return qn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Tn&&so(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ia,args:[r],thisArg:void 0}),new Pn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(r)}));var oa=xr((function(t,e,n){wt.call(t,n)?++t[n]:Vn(t,n,1)}));var aa=Sr(To),sa=Sr(Do);function la(t,e){return(Da(t)?se:ei)(t,Zr(e,3))}function da(t,e){return(Da(t)?le:ni)(t,Zr(e,3))}var ca=xr((function(t,e,n){wt.call(t,n)?t[n].push(e):Vn(t,n,[e])}));var ua=Fi((function(t,e,n){var r=-1,o="function"==typeof e,a=Ia(t)?i(t.length):[];return ei(t,(function(t){a[++r]=o?oe(e,t,n):bi(t,e,n)})),a})),ha=xr((function(t,e,n){Vn(t,n,e)}));function pa(t,e){return(Da(t)?pe:Ei)(t,Zr(e,3))}var fa=xr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ga=Fi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&lo(t,e[0],e[1])?e=[]:n>2&&lo(e[0],e[1],e[2])&&(e=[e[0]]),Ti(t,ai(e,1),[])})),ma=Ze||function(){return Xt.Date.now()};function va(t,e,n){return e=n?void 0:e,Br(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ya(t,e){var n;if("function"!=typeof e)throw new vt(o);return t=rs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Fi((function(t,e,n){var i=1;if(n.length){var r=He(n,Kr(ba));i|=32}return Br(t,i,e,n,r)})),xa=Fi((function(t,e,n){var i=3;if(n.length){var r=He(n,Kr(xa));i|=32}return Br(e,i,t,n,r)}));function _a(t,e,n){var i,r,a,s,l,d,c=0,u=!1,h=!1,p=!0;if("function"!=typeof t)throw new vt(o);function f(e){var n=i,o=r;return i=r=void 0,c=e,s=t.apply(o,n)}function g(t){return c=t,l=_o(v,e),u?f(t):s}function m(t){var n=t-d;return void 0===d||n>=e||n<0||h&&t-c>=a}function v(){var t=ma();if(m(t))return y(t);l=_o(v,function(t){var n=e-(t-d);return h?ln(n,a-(t-c)):n}(t))}function y(t){return l=void 0,p&&i?f(t):(i=r=void 0,s)}function b(){var t=ma(),n=m(t);if(i=arguments,r=this,d=t,n){if(void 0===l)return g(d);if(h)return ur(l),l=_o(v,e),f(d)}return void 0===l&&(l=_o(v,e)),s}return e=as(e)||0,Ya(n)&&(u=!!n.leading,a=(h="maxWait"in n)?sn(as(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==l&&ur(l),c=0,i=d=r=l=void 0},b.flush=function(){return void 0===l?s:y(ma())},b}var Oa=Fi((function(t,e){return Qn(t,1,e)})),wa=Fi((function(t,e,n){return Qn(t,as(e)||0,n)}));function Ca(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new vt(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Ca.Cache||In),n}function $a(t){if("function"!=typeof t)throw new vt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ca.Cache=In;var ka=dr((function(t,e){var n=(e=1==e.length&&Da(e[0])?pe(e[0],Me(Zr())):pe(ai(e,1),Me(Zr()))).length;return Fi((function(i){for(var r=-1,o=ln(i.length,n);++r=e})),Ta=xi(function(){return arguments}())?xi:function(t){return Ua(t)&&wt.call(t,"callee")&&!Gt.call(t,"callee")},Da=i.isArray,La=Qt?Me(Qt):function(t){return Ua(t)&&fi(t)==w};function Ia(t){return null!=t&&Ha(t.length)&&!za(t)}function Na(t){return Ua(t)&&Ia(t)}var Ra=nn||al,Fa=te?Me(te):function(t){return Ua(t)&&fi(t)==u};function Ba(t){if(!Ua(t))return!1;var e=fi(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Va(t)}function za(t){if(!Ya(t))return!1;var e=fi(t);return e==p||e==f||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Wa(t){return"number"==typeof t&&t==rs(t)}function Ha(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ya(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ua(t){return null!=t&&"object"==typeof t}var Ga=ee?Me(ee):function(t){return Ua(t)&&io(t)==g};function Xa(t){return"number"==typeof t||Ua(t)&&fi(t)==m}function Va(t){if(!Ua(t)||fi(t)!=v)return!1;var e=Wt(t);if(null===e)return!0;var n=wt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==St}var qa=ne?Me(ne):function(t){return Ua(t)&&fi(t)==y};var Ka=ie?Me(ie):function(t){return Ua(t)&&io(t)==b};function Za(t){return"string"==typeof t||!Da(t)&&Ua(t)&&fi(t)==x}function Ja(t){return"symbol"==typeof t||Ua(t)&&fi(t)==_}var Qa=re?Me(re):function(t){return Ua(t)&&Ha(t.length)&&!!Bt[fi(t)]};var ts=Lr(Si),es=Lr((function(t,e){return t<=e}));function ns(t){if(!t)return[];if(Ia(t))return Za(t)?Xe(t):yr(t);if(Zt&&t[Zt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Zt]());var e=io(t);return(e==g?ze:e==b?Ye:As)(t)}function is(t){return t?(t=as(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function rs(t){var e=is(t),n=e%1;return e==e?n?e-n:e:0}function os(t){return t?Kn(rs(t),0,4294967295):0}function as(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if(Ya(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ya(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ae(t);var n=ot.test(t);return n||st.test(t)?Yt(t.slice(2),n?2:8):rt.test(t)?NaN:+t}function ss(t){return br(t,Os(t))}function ls(t){return null==t?"":Ji(t)}var ds=_r((function(t,e){if(po(e)||Ia(e))br(e,_s(e),t);else for(var n in e)wt.call(e,n)&&Yn(t,n,e[n])})),cs=_r((function(t,e){br(e,Os(e),t)})),us=_r((function(t,e,n,i){br(e,Os(e),t,i)})),hs=_r((function(t,e,n,i){br(e,_s(e),t,i)})),ps=Ur(qn);var fs=Fi((function(t,e){t=ft(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&lo(e[0],e[1],r)&&(i=1);++n1),e})),br(t,Xr(t),n),i&&(n=Zn(n,7,Hr));for(var r=e.length;r--;)tr(n,e[r]);return n}));var ks=Ur((function(t,e){return null==t?{}:function(t,e){return Di(t,e,(function(e,n){return vs(t,n)}))}(t,e)}));function Ss(t,e){if(null==t)return{};var n=pe(Xr(t),(function(t){return[t]}));return e=Zr(e),Di(t,n,(function(t,n){return e(t,n[0])}))}var Es=Fr(_s),js=Fr(Os);function As(t){return null==t?[]:Pe(t,_s(t))}var Ms=$r((function(t,e,n){return e=e.toLowerCase(),t+(n?Ps(e):e)}));function Ps(t){return Bs(ls(t).toLowerCase())}function Ts(t){return(t=ls(t))&&t.replace(dt,Ne).replace(Tt,"")}var Ds=$r((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ls=$r((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Is=Cr("toLowerCase");var Ns=$r((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Rs=$r((function(t,e,n){return t+(n?" ":"")+Bs(e)}));var Fs=$r((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Bs=Cr("toUpperCase");function zs(t,e,n){return t=ls(t),void 0===(e=n?void 0:e)?function(t){return Nt.test(t)}(t)?function(t){return t.match(Lt)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var Ws=Fi((function(t,e){try{return oe(t,void 0,e)}catch(t){return Ba(t)?t:new q(t)}})),Hs=Ur((function(t,e){return se(e,(function(e){e=So(e),Vn(t,e,ba(t[e],t))})),t}));function Ys(t){return function(){return t}}var Us=Er(),Gs=Er(!0);function Xs(t){return t}function Vs(t){return Ci("function"==typeof t?t:Zn(t,1))}var qs=Fi((function(t,e){return function(n){return bi(n,t,e)}})),Ks=Fi((function(t,e){return function(n){return bi(t,n,e)}}));function Zs(t,e,n){var i=_s(e),r=ui(e,i);null!=n||Ya(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=ui(e,_s(e)));var o=!(Ya(n)&&"chain"in n&&!n.chain),a=za(t);return se(r,(function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),r=n.__actions__=yr(this.__actions__);return r.push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,fe([this.value()],arguments))})})),t}function Js(){}var Qs=Pr(pe),tl=Pr(de),el=Pr(ve);function nl(t){return co(t)?$e(So(t)):function(t){return function(e){return hi(e,t)}}(t)}var il=Dr(),rl=Dr(!0);function ol(){return[]}function al(){return!1}var sl=Mr((function(t,e){return t+e}),0),ll=Nr("ceil"),dl=Mr((function(t,e){return t/e}),1),cl=Nr("floor");var ul,hl=Mr((function(t,e){return t*e}),1),pl=Nr("round"),fl=Mr((function(t,e){return t-e}),0);return jn.after=function(t,e){if("function"!=typeof e)throw new vt(o);return t=rs(t),function(){if(--t<1)return e.apply(this,arguments)}},jn.ary=va,jn.assign=ds,jn.assignIn=cs,jn.assignInWith=us,jn.assignWith=hs,jn.at=ps,jn.before=ya,jn.bind=ba,jn.bindAll=Hs,jn.bindKey=xa,jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Da(t)?t:[t]},jn.chain=na,jn.chunk=function(t,e,n){e=(n?lo(t,e,n):void 0===e)?1:sn(rs(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,a=0,s=i(Qe(r/e));or?0:r+n),(i=void 0===i||i>r?r:rs(i))<0&&(i+=r),i=n>i?0:os(i);n>>0)?(t=ls(t))&&("string"==typeof e||null!=e&&!qa(e))&&!(e=Ji(e))&&Be(t)?cr(Xe(t),0,n):t.split(e,n):[]},jn.spread=function(t,e){if("function"!=typeof t)throw new vt(o);return e=null==e?0:sn(rs(e),0),Fi((function(n){var i=n[e],r=cr(n,0,e);return i&&fe(r,i),oe(t,this,r)}))},jn.tail=function(t){var e=null==t?0:t.length;return e?Gi(t,1,e):[]},jn.take=function(t,e,n){return t&&t.length?Gi(t,0,(e=n||void 0===e?1:rs(e))<0?0:e):[]},jn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Gi(t,(e=i-(e=n||void 0===e?1:rs(e)))<0?0:e,i):[]},jn.takeRightWhile=function(t,e){return t&&t.length?nr(t,Zr(e,3),!1,!0):[]},jn.takeWhile=function(t,e){return t&&t.length?nr(t,Zr(e,3)):[]},jn.tap=function(t,e){return e(t),t},jn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new vt(o);return Ya(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),_a(t,e,{leading:i,maxWait:e,trailing:r})},jn.thru=ia,jn.toArray=ns,jn.toPairs=Es,jn.toPairsIn=js,jn.toPath=function(t){return Da(t)?pe(t,So):Ja(t)?[t]:yr(ko(ls(t)))},jn.toPlainObject=ss,jn.transform=function(t,e,n){var i=Da(t),r=i||Ra(t)||Qa(t);if(e=Zr(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Ya(t)&&za(o)?An(Wt(t)):{}}return(r?se:di)(t,(function(t,i,r){return e(n,t,i,r)})),n},jn.unary=function(t){return va(t,1)},jn.union=Uo,jn.unionBy=Go,jn.unionWith=Xo,jn.uniq=function(t){return t&&t.length?Qi(t):[]},jn.uniqBy=function(t,e){return t&&t.length?Qi(t,Zr(e,2)):[]},jn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qi(t,void 0,e):[]},jn.unset=function(t,e){return null==t||tr(t,e)},jn.unzip=Vo,jn.unzipWith=qo,jn.update=function(t,e,n){return null==t?t:er(t,e,sr(n))},jn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:void 0,null==t?t:er(t,e,sr(n),i)},jn.values=As,jn.valuesIn=function(t){return null==t?[]:Pe(t,Os(t))},jn.without=Ko,jn.words=zs,jn.wrap=function(t,e){return Sa(sr(e),t)},jn.xor=Zo,jn.xorBy=Jo,jn.xorWith=Qo,jn.zip=ta,jn.zipObject=function(t,e){return or(t||[],e||[],Yn)},jn.zipObjectDeep=function(t,e){return or(t||[],e||[],Wi)},jn.zipWith=ea,jn.entries=Es,jn.entriesIn=js,jn.extend=cs,jn.extendWith=us,Zs(jn,jn),jn.add=sl,jn.attempt=Ws,jn.camelCase=Ms,jn.capitalize=Ps,jn.ceil=ll,jn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==e&&(e=(e=as(e))==e?e:0),Kn(as(t),e,n)},jn.clone=function(t){return Zn(t,4)},jn.cloneDeep=function(t){return Zn(t,5)},jn.cloneDeepWith=function(t,e){return Zn(t,5,e="function"==typeof e?e:void 0)},jn.cloneWith=function(t,e){return Zn(t,4,e="function"==typeof e?e:void 0)},jn.conformsTo=function(t,e){return null==e||Jn(t,e,_s(e))},jn.deburr=Ts,jn.defaultTo=function(t,e){return null==t||t!=t?e:t},jn.divide=dl,jn.endsWith=function(t,e,n){t=ls(t),e=Ji(e);var i=t.length,r=n=void 0===n?i:Kn(rs(n),0,i);return(n-=e.length)>=0&&t.slice(n,r)==e},jn.eq=Aa,jn.escape=function(t){return(t=ls(t))&&F.test(t)?t.replace(N,Re):t},jn.escapeRegExp=function(t){return(t=ls(t))&&X.test(t)?t.replace(G,"\\$&"):t},jn.every=function(t,e,n){var i=Da(t)?de:ii;return n&&lo(t,e,n)&&(e=void 0),i(t,Zr(e,3))},jn.find=aa,jn.findIndex=To,jn.findKey=function(t,e){return be(t,Zr(e,3),di)},jn.findLast=sa,jn.findLastIndex=Do,jn.findLastKey=function(t,e){return be(t,Zr(e,3),ci)},jn.floor=cl,jn.forEach=la,jn.forEachRight=da,jn.forIn=function(t,e){return null==t?t:si(t,Zr(e,3),Os)},jn.forInRight=function(t,e){return null==t?t:li(t,Zr(e,3),Os)},jn.forOwn=function(t,e){return t&&di(t,Zr(e,3))},jn.forOwnRight=function(t,e){return t&&ci(t,Zr(e,3))},jn.get=ms,jn.gt=Ma,jn.gte=Pa,jn.has=function(t,e){return null!=t&&ro(t,e,mi)},jn.hasIn=vs,jn.head=Io,jn.identity=Xs,jn.includes=function(t,e,n,i){t=Ia(t)?t:As(t),n=n&&!i?rs(n):0;var r=t.length;return n<0&&(n=sn(r+n,0)),Za(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&_e(t,e,n)>-1},jn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:rs(n);return r<0&&(r=sn(i+r,0)),_e(t,e,r)},jn.inRange=function(t,e,n){return e=is(e),void 0===n?(n=e,e=0):n=is(n),function(t,e,n){return t>=ln(e,n)&&t=-9007199254740991&&t<=9007199254740991},jn.isSet=Ka,jn.isString=Za,jn.isSymbol=Ja,jn.isTypedArray=Qa,jn.isUndefined=function(t){return void 0===t},jn.isWeakMap=function(t){return Ua(t)&&io(t)==O},jn.isWeakSet=function(t){return Ua(t)&&"[object WeakSet]"==fi(t)},jn.join=function(t,e){return null==t?"":on.call(t,e)},jn.kebabCase=Ds,jn.last=Bo,jn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=rs(n))<0?sn(i+r,0):ln(r,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):xe(t,we,r,!0)},jn.lowerCase=Ls,jn.lowerFirst=Is,jn.lt=ts,jn.lte=es,jn.max=function(t){return t&&t.length?ri(t,Xs,gi):void 0},jn.maxBy=function(t,e){return t&&t.length?ri(t,Zr(e,2),gi):void 0},jn.mean=function(t){return Ce(t,Xs)},jn.meanBy=function(t,e){return Ce(t,Zr(e,2))},jn.min=function(t){return t&&t.length?ri(t,Xs,Si):void 0},jn.minBy=function(t,e){return t&&t.length?ri(t,Zr(e,2),Si):void 0},jn.stubArray=ol,jn.stubFalse=al,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=hl,jn.nth=function(t,e){return t&&t.length?Pi(t,rs(e)):void 0},jn.noConflict=function(){return Xt._===this&&(Xt._=Et),this},jn.noop=Js,jn.now=ma,jn.pad=function(t,e,n){t=ls(t);var i=(e=rs(e))?Ge(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Tr(tn(r),n)+t+Tr(Qe(r),n)},jn.padEnd=function(t,e,n){t=ls(t);var i=(e=rs(e))?Ge(t):0;return e&&ie){var i=t;t=e,e=i}if(n||t%1||e%1){var r=un();return ln(t+r*(e-t+Ht("1e-"+((r+"").length-1))),e)}return Ni(t,e)},jn.reduce=function(t,e,n){var i=Da(t)?ge:Se,r=arguments.length<3;return i(t,Zr(e,4),n,r,ei)},jn.reduceRight=function(t,e,n){var i=Da(t)?me:Se,r=arguments.length<3;return i(t,Zr(e,4),n,r,ni)},jn.repeat=function(t,e,n){return e=(n?lo(t,e,n):void 0===e)?1:rs(e),Ri(ls(t),e)},jn.replace=function(){var t=arguments,e=ls(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jn.result=function(t,e,n){var i=-1,r=(e=lr(e,t)).length;for(r||(r=1,t=void 0);++i9007199254740991)return[];var n=4294967295,i=ln(t,4294967295);t-=4294967295;for(var r=je(i,e=Zr(e));++n=o)return t;var s=n-Ge(i);if(s<1)return i;var l=a?cr(a,0,s).join(""):t.slice(0,s);if(void 0===r)return l+i;if(a&&(s+=l.length-s),qa(r)){if(t.slice(s).search(r)){var d,c=l;for(r.global||(r=gt(r.source,ls(it.exec(r))+"g")),r.lastIndex=0;d=r.exec(c);)var u=d.index;l=l.slice(0,void 0===u?s:u)}}else if(t.indexOf(Ji(r),s)!=s){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i},jn.unescape=function(t){return(t=ls(t))&&R.test(t)?t.replace(I,qe):t},jn.uniqueId=function(t){var e=++Ct;return ls(t)+e},jn.upperCase=Fs,jn.upperFirst=Bs,jn.each=la,jn.eachRight=da,jn.first=Io,Zs(jn,(ul={},di(jn,(function(t,e){wt.call(jn.prototype,e)||(ul[e]=t)})),ul),{chain:!1}),jn.VERSION="4.17.21",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jn[t].placeholder=jn})),se(["drop","take"],(function(t,e){Tn.prototype[t]=function(n){n=void 0===n?1:sn(rs(n),0);var i=this.__filtered__&&!e?new Tn(this):this.clone();return i.__filtered__?i.__takeCount__=ln(n,i.__takeCount__):i.__views__.push({size:ln(n,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Tn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;Tn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Zr(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Tn.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Tn.prototype[t]=function(){return this.__filtered__?new Tn(this):this[n](1)}})),Tn.prototype.compact=function(){return this.filter(Xs)},Tn.prototype.find=function(t){return this.filter(t).head()},Tn.prototype.findLast=function(t){return this.reverse().find(t)},Tn.prototype.invokeMap=Fi((function(t,e){return"function"==typeof t?new Tn(this):this.map((function(n){return bi(n,t,e)}))})),Tn.prototype.reject=function(t){return this.filter($a(Zr(t)))},Tn.prototype.slice=function(t,e){t=rs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Tn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=rs(e))<0?n.dropRight(-e):n.take(e-t)),n)},Tn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Tn.prototype.toArray=function(){return this.take(4294967295)},di(Tn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=jn[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);r&&(jn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,s=e instanceof Tn,l=a[0],d=s||Da(e),c=function(t){var e=r.apply(jn,fe([t],a));return i&&u?e[0]:e};d&&n&&"function"==typeof l&&1!=l.length&&(s=d=!1);var u=this.__chain__,h=!!this.__actions__.length,p=o&&!u,f=s&&!h;if(!o&&d){e=f?e:new Tn(this);var g=t.apply(e,a);return g.__actions__.push({func:ia,args:[c],thisArg:void 0}),new Pn(g,u)}return p&&f?t.apply(this,a):(g=this.thru(c),p?i?g.value()[0]:g.value():g)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);jn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Da(r)?r:[],t)}return this[n]((function(n){return e.apply(Da(n)?n:[],t)}))}})),di(Tn.prototype,(function(t,e){var n=jn[e];if(n){var i=n.name+"";wt.call(xn,i)||(xn[i]=[]),xn[i].push({name:e,func:n})}})),xn[jr(void 0,2).name]=[{name:"wrapper",func:void 0}],Tn.prototype.clone=function(){var t=new Tn(this.__wrapped__);return t.__actions__=yr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=yr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=yr(this.__views__),t},Tn.prototype.reverse=function(){if(this.__filtered__){var t=new Tn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Tn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Da(t),i=e<0,r=n?t.length:0,o=function(t,e,n){var i=-1,r=n.length;for(;++i=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},jn.prototype.plant=function(t){for(var e,n=this;n instanceof Mn;){var i=jo(n);i.__index__=0,i.__values__=void 0,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Tn){var e=t;return this.__actions__.length&&(e=new Tn(this)),(e=e.reverse()).__actions__.push({func:ia,args:[Yo],thisArg:void 0}),new Pn(e,this.__chain__)}return this.thru(Yo)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return ir(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Zt&&(jn.prototype[Zt]=function(){return this}),jn}();Xt._=Ke,void 0===(r=function(){return Ke}.call(e,n,e,i))||(i.exports=r)}).call(this)}).call(this,n(150),n(219)(t))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(108),c=n(7),u=n(16),h=n(9);e.a=function(t){var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,p=t.count,f=t.data,g=void 0===f?{}:f,m=t.disabled,v=t.icon,y=void 0===v?null:v,b=t.iconRight,x=void 0!==b&&b,_=t.id,O=t.loading,w=void 0!==O&&O,C=t.onClick,$=t.tabIndex,k=t.link,S=void 0===k?null:k,E=t.newWindow,j=void 0!==E&&E,A=t.target,M=void 0===A?"":A,P=t.text,T=t.htmlType,D=void 0===T?"button":T,L=t.value,I=t.variant,N=t.form,R=void 0===N?null:N,F=Object(s.a)(n),B=Object(s.c)(g),z=a()(function(t){var e=t.disabled,n=void 0!==e&&e,i=t.fullWidth,r=void 0!==i&&i,o=t.highlight,a=t.icon,s=t.loading,l=void 0!==s&&s,c=t.type,u=void 0===c?"inline":c,h=t.variant,p=void 0===h?"primary":h,f=t.size,g=void 0===f?null:f,m="pb_button_kit";return m+="".concat(null!==p?"_".concat(p):""),m+="".concat(null!==u?"_".concat(u):""),m+="".concat(r?"_block":""),m+=n?"_disabled":"_enabled",m+=l?"_loading":"",m+="".concat(null!==g?" size_".concat(g):""),m+="".concat("reaction"!==p||Object(d.a)(a)?"":" reaction_default"),m+="".concat("reaction"===p&&o?" active":"")}(t),Object(l.c)(t),o),W=r.a.createElement("div",{className:"loading-icon"},r.a.createElement(c.a,{fixedWidth:!0,icon:"spinner",pulse:!0})),H=r.a.createElement("span",{className:"pb_button_content"},y&&!x&&r.a.createElement("i",{className:"pb_icon_kit far fa-".concat(y," fa-fw button_with_icon")}),r.a.createElement("span",null,P||i),y&&x&&r.a.createElement("i",{className:"pb_icon_kit far fa-".concat(y," fa-fw button_with_icon_right")})),Y=function(){return w?r.a.createElement(r.a.Fragment,null,W):H};return r.a.createElement(r.a.Fragment,null,S?r.a.createElement("a",Object.assign({},F,B,{className:z,href:S,id:_,rel:"child"!==M?"noreferrer":null,role:"link",tabIndex:$,target:M&&S?M:j?"_blank":null}),Y()):"reaction"===I?r.a.createElement("button",Object.assign({},F,B,{className:z,disabled:m,form:R,id:_,onClick:C,role:"button",tabIndex:$,type:D,value:L}),y&&Object(d.a)(y)&&r.a.createElement(h.a,{align:"center"},r.a.createElement(c.a,{icon:y}),p&&r.a.createElement(u.a,{paddingLeft:"xxs",size:"xs"},p)),!Object(d.a)(y)&&r.a.createElement(c.a,{icon:y||"face-smile-plus"})):r.a.createElement("button",Object.assign({},F,B,{className:z,disabled:m,form:R,id:_,onClick:C,role:"button",tabIndex:$,type:D,value:L}),Y()))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(7),c=n(42),u=n(113);function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nparseInt(t.userAgent.split("Firefox/")[1],10),t.hasTouch=!!t.win.TouchEvent,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return e}(),t.charts=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(e||(e={})),e})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(n,i,r,o){var a=i?"Highcharts error":"Highcharts warning";32===n&&(n=a+": Deprecated member");var s=l(n),d=s?a+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(void 0!==o){var c="";s&&(d+="?"),g(o,(function(t,e){c+="\n - "+e+": "+t,s&&(d+=encodeURI(e)+"="+encodeURI(t))})),d+=c}v(t,"displayError",{chart:r,code:n,message:d,params:o},(function(){if(i)throw Error(d);x.console&&-1===e.messages.indexOf(d)&&console.warn(d)})),e.messages.push(d)}function n(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function r(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!(!t||"object"!=typeof t||e&&r(t))}function a(t){return o(t)&&"number"==typeof t.nodeType}function s(t){var e=t&&t.constructor;return!(!o(t,!0)||a(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]e?t=o-1&&(o=Math.floor(a)),Math.max(0,o-(s(r,"padding-left",!0)||0)-(s(r,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(r.offsetHeight,r.scrollHeight)-(s(r,"padding-top",!0)||0)-(s(r,"padding-bottom",!0)||0));if(x.getComputedStyle||e(27,!0),r=x.getComputedStyle(r,void 0)){var l=r.getPropertyValue(o);h(a,"opacity"!==o)&&(l=n(l))}return l},inArray:function(t,n,i){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,i)},isArray:r,isClass:s,isDOMElement:a,isFunction:function(t){return"function"==typeof t},isNumber:l,isObject:o,isString:i,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},i=function(t,e){return"object"!=typeof t&&(t={}),g(e,(function(n,r){"__proto__"!==r&&"constructor"!==r&&(!o(n,!0)||s(n)||a(n)?t[r]=e[r]:t[r]=i(t[r]||{},n))})),t};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;t=n&&(e=[1/n]))),i=0;i=t||!r&&a<=(e[i]+(e[i+1]||e[i]))/2));i++);return f(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(x.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(x.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:h,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:m,splat:function(t){return r(t)?t:[t]},stableSort:function(t,e){var n,i,r=t.length;for(i=0;i>16,(65280&r)>>8,255&r,1]:4===i&&(n=[(3840&r)>>4|(3840&r)>>8,(240&r)>>4|240&r,(15&r)<<4|15&r,1])}if(!n)for(r=e.parsers.length;r--&&!n;){var o=e.parsers[r];(i=o.regex.exec(t))&&(n=o.parse(i))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,r=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=i(e);return o.stops=[].slice.call(o.stops),this.stops.forEach((function(e,n){o.stops[n]=[o.stops[n][0],e.get(t)]})),o}return r&&n(r[0])?"rgb"===t||!t&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===t?""+r[3]:"rgba("+r.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(var i=0;3>i;i++)e[i]+=r(255*t),0>e[i]&&(e[i]=0),255u?"AM":"PM",P:12>u?"am":"pm",S:d(s.getSeconds()),L:d(Math.floor(n%1e3),3)},t.dateFormats),l(s,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(a,n):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return a(t,!0)?t:{main:(t=u(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,r){var a,s=this,l=[],d={},u=new s.Date(e),p=t.unitRange,f=t.count||1;if(r=c(r,1),i(e)){if(s.set("Milliseconds",u,p>=h.second?0:f*Math.floor(s.get("Milliseconds",u)/f)),p>=h.second&&s.set("Seconds",u,p>=h.minute?0:f*Math.floor(s.get("Seconds",u)/f)),p>=h.minute&&s.set("Minutes",u,p>=h.hour?0:f*Math.floor(s.get("Minutes",u)/f)),p>=h.hour&&s.set("Hours",u,p>=h.day?0:f*Math.floor(s.get("Hours",u)/f)),p>=h.day&&s.set("Date",u,p>=h.month?1:Math.max(1,f*Math.floor(s.get("Date",u)/f))),p>=h.month){s.set("Month",u,p>=h.year?0:f*Math.floor(s.get("Month",u)/f));var g=s.get("FullYear",u)}p>=h.year&&s.set("FullYear",u,g-g%f),p===h.week&&(g=s.get("Day",u),s.set("Date",u,s.get("Date",u)-g+r+(g4*h.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(n)),e=u.getTime(),u=1;el.length&&l.forEach((function(t){0==t%18e5&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(d[t]="day")}))}return l.info=o(t,{higherRanks:d,totalRange:p*f}),l},e.prototype.getDateFormat=function(t,e,n,i){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(s in h){if(t===h.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===r.substr(6)){var s="week";break}if(h[s]>t){s=a;break}if(o[s]&&r.substr(o[s])!=="01-01 00:00:00.000".substr(o[s]))break;"week"!==s&&(a=s)}if(s)var l=this.resolveDTLFormat(i[s]).main;return l},e}()})),e(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){e=e.parse;var a=o.merge,s={colors:i.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:!0},chart:t,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:!0,align:"center",alignColumns:!0,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:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,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:!0,animation:n.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:!1,snap:n.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,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"}};s.chart.styledMode=!1;var l=new r(a(s.global,s.time));return t={defaultOptions:s,defaultTime:l,getOptions:function(){return s},setOptions:function(t){return a(!0,s,t),(t.time||t.global)&&(n.time?n.time.update(a(s.global,s.time,t.global,t.time)):n.time=l),s}}})),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=t.parse,r=e.win,o=n.isNumber,a=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var n=this.now||0,i=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var r=0;r=o+this.startTime){this.now=this.end,this.pos=1,this.update();var l=s[this.prop]=!0;a(s,(function(t){!0!==t&&(l=!1)})),l&&r&&r.call(i),t=!1}else this.pos=n.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function i(t,e){for(;t.lengthc[1]){var h=e+ +c[1];0<=h?(c[0]=(+c[0]).toExponential(h).split("e")[0],e=h):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;h=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,d)-1)).toFixed(e);var p=3<(d=String(l(h))).length?d.length%3:0;return n=s(n,o.decimalPoint),r=s(r,o.thousandsSep),t=(0>t?"-":"")+(p?d.substr(0,p)+r:""),t=0>+c[1]&&!u?"0":t+d.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+r),e&&(t+=n+h.slice(-e)),c[1]&&0!=+t&&(t+="e"+c[1]),t}var i=t.defaultOptions,r=t.defaultTime,o=e.getNestedProperty,a=e.isNumber,s=e.pick,l=e.pInt;return{dateFormat:function(t,e,n){return r.dateFormat(t,e,n)},format:function(t,e,a){var s="{",l=!1,d=/f$/,c=/\.([0-9])/,u=i.lang,h=a&&a.time||r;a=a&&a.numberFormatter||n;for(var p=[];t;){var f=t.indexOf(s);if(-1===f)break;var g=t.slice(0,f);if(l){if(g=g.split(":"),s=o(g.shift()||"",e),g.length&&"number"==typeof s)if(g=g.join(":"),d.test(g)){var m=parseInt((g.match(c)||["","-1"])[1],10);null!==s&&(s=a(s,m,u.decimalPoint,-1d){for(r(e,c),f=s=0;f<=d;)f+=e[s].size,s++;p=e.splice(s-1,e.length)}for(r(e,u),e=e.map((function(t){return{size:t.size,targets:[t.target],align:i(t.align,.5)}}));h;){for(s=e.length;s--;)d=e[s],c=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=n(c-d.size*d.align,0,o-d.size);for(s=e.length,h=!1;s--;)0e[s].pos&&(e[s-1].size+=e[s].size,e[s-1].targets=e[s-1].targets.concat(e[s].targets),e[s-1].align=.5,e[s-1].pos+e[s-1].size>o&&(e[s-1].pos=o-e[s-1].size),e.splice(s,1),h=!0)}return l.push.apply(l,p),s=0,e.some((function(e){var n=0;return(e.targets||[]).some((function(){return l[s].pos=e.pos+n,void 0!==a&&Math.abs(l[s].pos-l[s].target)>a?(l.slice(0,s+1).forEach((function(t){return delete t.pos})),l.reducedLen=(l.reducedLen||o)-.1*o,l.reducedLen>.1*o&&t(l,o,a),!0):(n+=l[s].size,s++,!1)}))})),r(l,u),l}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.animate,a=t.animObject,s=t.stop,l=i.deg2rad,d=i.doc,c=i.noop,u=i.svg,h=i.SVG_NS,p=i.win,f=r.addEvent,g=r.attr,m=r.createElement,v=r.css,y=r.defined,b=r.erase,x=r.extend,_=r.fireEvent,O=r.isArray,w=r.isFunction,C=r.isNumber,$=r.isString,k=r.merge,S=r.objectEach,E=r.pick,j=r.pInt,A=r.syncTimeout,M=r.uniqueKey;return(t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=h,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=E(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var i=this.zIndexSetter();return i||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce((function(t,e){return-1===n.indexOf(e)&&t.push(e),t}),n?[n]:[]).join(" "))!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var i,r,o,a={},s=this.renderer,l=s.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||$(n))&&(this.alignTo=i=n||"renderer",b(l,this),l.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,i=this.alignTo),n=E(n,s[i],"scrollablePlotBox"===i?s.plotBox:void 0,s),i=t.align;var d=t.verticalAlign;return s=(n.x||0)+(t.x||0),l=(n.y||0)+(t.y||0),"right"===i?r=1:"center"===i&&(r=2),r&&(s+=(n.width-(t.width||0))/r),a[e?"translateX":"x"]=Math.round(s),"bottom"===d?o=1:"middle"===d&&(o=2),o&&(l+=(n.height-(t.height||0))/o),a[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,n){var i=this,r=a(E(e,this.renderer.globalAnimation,!0));return e=r.defer,E(d.hidden,d.msHidden,d.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),A((function(){i.element&&o(i,t,r)}),e)):(this.attr(t,void 0,n),S(t,(function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var n=t.split(" ");if(t=n[n.length-1],(n=n[0])&&"none"!==n&&i.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,n){return 2*Number(e)+n})),this.removeTextOutline();var r=d.createElementNS(h,"tspan");g(r,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),r.appendChild(e)}));var o=d.createElementNS(h,"tspan");o.textContent="​",["x","y"].forEach((function(t){var n=e.getAttribute(t);n&&o.setAttribute(t,n)})),r.appendChild(o),e.insertBefore(r,e.firstChild)}},t.prototype.attr=function(t,e,n,i){var r,o,a,l=this.element,d=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var u=t;(t={})[u]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(S(t,(function(e,n){o=!1,i||s(this,n),this.symbolName&&-1!==d.indexOf(n)&&(r||(this.symbolAttr(t),r=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))}),this),this.afterSetters()),n&&n.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),y(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var r,o,a,s,l,d,c,u,h,p,f,g=this.renderer,m=[];_(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],l=g.gradients,d=t.stops,h=i.radialReference,O(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&h&&!y(a.gradientUnits)&&(s=a,a=k(a,g.getRadialAttr(h,s),{gradientUnits:"userSpaceOnUse"})),S(a,(function(t,e){"id"!==e&&m.push(e,t)})),S(d,(function(t){m.push(t)})),m=m.join(","),l[m])p=l[m].attr("id");else{a.id=p=M();var v=l[m]=g.createElement(o).attr(a).add(g.defs);v.radAttr=s,v.stops=[],d.forEach((function(t){0===t[1].indexOf("rgba")?(r=n.parse(t[1]),c=r.get("rgb"),u=r.get("a")):(c=t[1],u=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":u}).add(v),v.stops.push(t)}))}f="url("+g.url+"#"+p+")",i.setAttribute(e,f),i.gradient=m,t.toString=function(){return f}}}))},t.prototype.css=function(t){var e=this.styles,n={},i=this.element,r=["textOutline","textOverflow","width"],o="",a=!e;if(t&&t.color&&(t.fill=t.color),e&&S(t,(function(t,i){e&&e[i]!==t&&(n[i]=t,a=!0)})),a){if(e&&(t=x(e,n)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===i.nodeName.toLowerCase()&&t.width)var s=this.textWidth=j(t.width);if(this.styles=t,s&&!u&&this.renderer.forExport&&delete t.width,i.namespaceURI===this.SVG_NS){var l=function(t,e){return"-"+e.toLowerCase()};S(t,(function(t,e){-1===r.indexOf(e)&&(o+=e.replace(/([A-Z])/g,l)+":"+t+";")})),o&&g(i,"style",o)}else v(i,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var n=t.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(t=n.length;t--;)n[t]=""+j(n[t])*E(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,i=e.ownerSVGElement,r=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,s(t),t.clipPath&&i){var o=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1u.width)&&(u={width:0,height:0})}else u=this.htmlGetBBox();if(i.isSVG&&(e=u.width,i=u.height,c&&(u.height=i={"11px,17":14,"13px,20":16}[(h||"")+","+Math.round(i)]||i),n&&(c=n*l,u.width=Math.abs(i*Math.sin(c))+Math.abs(e*Math.cos(c)),u.height=Math.abs(i*Math.cos(c))+Math.abs(e*Math.sin(c)))),p&&(""===a||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,n){var i=this.shadows;if(i)for(var r=i.length;r--;)n.call(i[r],"height"===t?Math.max(e-(i[r].cutHeight||0),0):"d"===t?this.d:e,t,i[r])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,n=this.inverted,i=this.rotation,r=this.matrix,o=this.element,a=this.translateX||0,s=this.translateY||0;n&&(a+=this.width,s+=this.height),a=["translate("+a+","+s+")"],y(r)&&a.push("matrix("+r.join(",")+")"),n?a.push("rotate(90) scale(-1,1)"):i&&a.push("rotate("+i+" "+E(this.rotationOriginX,o.getAttribute("x"),0)+" "+E(this.rotationOriginY,o.getAttribute("y")||0)+")"),(y(t)||y(e))&&a.push("scale("+E(t,1)+" "+E(e,1)+")"),a.length&&o.setAttribute("transform",a.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var n=this.renderer,i=this.parentGroup,r=(i||n).element||n.box,o=this.element;n=r===n.box;var a,s=!1,l=this.added;if(y(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):y(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&i&&(i.handleZ=!0),a=(e=r.childNodes).length-1;0<=a&&!s;a--){l=(i=e[a]).getAttribute("data-z-index");var d=!y(l);i!==o&&(0>t&&d&&!n&&!a?(r.insertBefore(o,e[a]),s=!0):(j(l)<=t||d&&(!y(t)||0<=t))&&(r.insertBefore(o,e[a+1]||null),s=!0))}s||(r.insertBefore(o,e[n?3:0]||null),s=!0)}return s},t}()).prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(i,r,o){e.rendererTypes[i]=r,n&&!o||(n=i,t.Renderer=r)}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=e.defined,r=e.extend,o=e.isNumber,a=e.merge,s=e.pick,l=e.removeEvent;return function(e){function d(t,n,i,r,o,a,s,l,c,u){var h,p=e.call(this)||this;return p.paddingLeftSetter=p.paddingSetter,p.paddingRightSetter=p.paddingSetter,p.init(t,"g"),p.textStr=n,p.x=i,p.y=r,p.anchorX=a,p.anchorY=s,p.baseline=c,p.className=u,p.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label"),u&&p.addClass("highcharts-"+u),p.text=t.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof o&&((h=/^url\((.*?)\)$/.test(o))||p.renderer.symbols[o])&&(p.symbolKey=o),p.bBox=d.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=t.styledMode||h,p.deferredAttr={},p.alignFactor=0,p}return n(d,e),d.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},d.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},d.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},d.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},d.prototype.css=function(e){if(e){var n={};e=a(e),d.textProps.forEach((function(t){void 0!==e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var i="width"in n;"fontSize"in n||"fontWeight"in n?this.updateTextPadding():i&&this.updateBoxSize()}return t.prototype.css.call(this,e)},d.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},d.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},d.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=s(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},d.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},d.prototype.heightSetter=function(t){this.heightSetting=t},d.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:i(t)?t:"",x:this.x,y:this.y}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},d.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},d.prototype.rSetter=function(t,e){this.boxAttr(e,t)},d.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},d.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},d.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},d.prototype["text-alignSetter"]=function(t){this.textAlign=t},d.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},d.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},n=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!i(this.text.textStr)?d.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||t).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)),n=this.getCrispAdjust(),e.x=n,e.y=(this.baseline?-this.baselineOffset:0)+n,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(r(e,this.deferredAttr)),this.deferredAttr={})},d.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=s(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=n,t.y=e},d.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},d.prototype.getPaddedWidth=function(){var t=this.padding,e=s(this.paddingLeft,t);return t=s(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},d.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},d.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},d.emptyBBox={width:0,height:0,x:0,y:0},d.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),d}(t)})),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],(function(t){function e(t,e,n,i,o){var s=[];if(o){var l=o.start||0,d=a(o.r,n);n=a(o.r,i||n);var c=(o.end||0)-.001;i=o.innerR;var u=a(o.open,.001>Math.abs((o.end||0)-l-2*Math.PI)),h=Math.cos(l),p=Math.sin(l),f=Math.cos(c),g=Math.sin(c);l=a(o.longArc,.001>c-l-Math.PI?0:1),s.push(["M",t+d*h,e+n*p],["A",d,n,0,l,a(o.clockwise,1),t+d*f,e+n*g]),r(i)&&s.push(u?["M",t+i*f,e+i*g]:["L",t+i*f,e+i*g],["A",i,i,0,l,r(o.clockwise)?1-o.clockwise:0,t+i*h,e+i*p]),u||s.push(["Z"])}return s}function n(t,e,n,r,o){return o&&o.r?i(t,e,n,r,o):[["M",t,e],["L",t+n,e],["L",t+n,e+r],["L",t,e+r],["Z"]]}function i(t,e,n,i,r){return[["M",t+(r=r&&r.r||0),e],["L",t+n-r,e],["C",t+n,e,t+n,e,t+n,e+r],["L",t+n,e+i-r],["C",t+n,e+i,t+n,e+i,t+n-r,e+i],["L",t+r,e+i],["C",t,e+i,t,e+i,t,e+i-r],["L",t,e+r],["C",t,e,t,e,t+r,e]]}var r=t.defined,o=t.isNumber,a=t.pick;return{arc:e,callout:function(t,e,n,r,a){var s=Math.min(a&&a.r||0,n,r),l=s+6,d=a&&a.anchorX;a=a&&a.anchorY||0;var c=i(t,e,n,r,{r:s});return o(d)?(t+d>=n?a>e+l&&a=t+d?a>e+l&&ar&&d>t+l&&da&&d>t+l&&d/g.test(o))?""!==o&&(r&&r.appendChild(n),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),r&&r.removeChild(n)):n.appendChild(i.createTextNode(this.unescapeEntities(o))),s(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,s=a(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(t,i){t.nextSibling&&t.previousSibling&&(0===i&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),a(t,{dy:e.getLineHeight(t.nextSibling),x:s}))}));var l=this.width||0;if(l){var d=function(t,o){var d=t.textContent||"",c=d.replace(/([^\^])-/g,"$1- ").split(" "),u=!e.noWrap&&(1r){for(;u<=h;)p=Math.ceil((u+h)/2),n&&(a=o(n,p)),g=f(p,a&&a.length-1),u===h?u=h+1:g>r?h=p-1:u=p;0===h?t.textContent="":e&&h===e.length-1||(t.textContent=a||o(e||n,p))}n&&n.splice(0,p),s.actualWidth=g,s.rotation=d},e.prototype.unescapeEntities=function(t,e){return l(this.renderer.escapes,(function(n,i){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),i))})),t},e}()})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l){var d,c=n.charts,u=n.deg2rad,h=n.doc,p=n.isFirefox,f=n.isMS,g=n.isWebKit,m=n.noop,v=n.SVG_NS,y=n.symbolSizes,b=n.win,x=l.addEvent,_=l.attr,O=l.createElement,w=l.css,C=l.defined,$=l.destroyObjectProperties,k=l.extend,S=l.isArray,E=l.isNumber,j=l.isObject,A=l.isString,M=l.merge,P=l.pick,T=l.pInt,D=l.uniqueKey;return n=function(){function n(t,e,n,i,r,o,a){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(t,e,n,i,r,o,a)}return n.prototype.init=function(t,e,n,i,r,o,a){var s,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=l.element;a||l.css(this.getStyle(i)),t.appendChild(d),_(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&_(d,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=d,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(h.createTextNode("Created with Highcharts 9.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=r,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),p&&t.getBoundingClientRect&&((e=function(){w(t,{left:0,top:0}),s=t.getBoundingClientRect(),w(t,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=x(b,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((p||g)&&h.getElementsByTagName("base").length){if(!C(d)){var e=D();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(h.body),w(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=h.elementFromPoint(6,6);d="hitme"===(n&&n.id),h.body.removeChild(e)}if(d)return b.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=k({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),$(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},n.prototype.buildText=function(t){new s(t).buildSVG()},n.prototype.getContrast=function(t){return(t=e.parse(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459(t=/px/.test(t)?T(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*u),4)),{x:-t/3*Math.sin(e*u),y:i}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],i={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r":">","'":"'",'"':"""},symbols:a,draw:m}),i.registerRendererType("svg",n,!0),n})),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.isFirefox,o=t.isMS,a=t.isWebKit,s=t.win,l=n.css,d=n.defined,c=n.extend,u=n.pick,h=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,i=t.prototype;i.getSpanCorrection=n.getSpanCorrection,i.htmlCss=n.htmlCss,i.htmlGetBBox=n.htmlGetBBox,i.htmlUpdateTransform=n.htmlUpdateTransform,i.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=u(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var i=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),l(this.element,t),i&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,i=this.translateY||0,r=this.x||0,o=this.y||0,a=this.textAlign||"left",s={left:0,center:.5,right:1}[a],c=this.styles;if(c=c&&c.whiteSpace,l(e,{marginLeft:n,marginTop:i}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:n+1,marginTop:i+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(n){t.invertChild(n,e)})),"SPAN"===e.tagName){var u=this.rotation,p=this.textWidth&&h(this.textWidth),f=[u,a,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,p!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else l(e,{width:"",whiteSpace:c||"nowrap"}),m=e.offsetWidth;(p>this.oldTextWidth||m>p)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(l(e,{width:m>p||u?p+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=p,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!d(u)||u===(this.oldRotation||0)&&a===this.oldAlign||this.setSpanRotation(u,s,g),this.getSpanCorrection(!d(u)&&this.textPxLength||e.offsetWidth,g,s,u,a)),l(e,{left:r+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=u,this.oldAlign=a}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var i={},d=o&&!/Edge/.test(s.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":r?"MozTransform":s.opera?"-o-transform":void 0;d&&(i[d]=i.transform="rotate("+t+"deg)",i[d+(r?"Origin":"-origin")]=i.transformOrigin=100*e+"% "+n+"px",l(this.element,i))},e.composedClasses=[],e}(e)})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=i.attr,a=i.createElement,s=i.extend,l=i.pick;return function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.compose=function(t){return-1===i.composedClasses.indexOf(t)&&(i.composedClasses.push(t),t.prototype.html=i.prototype.html),t},i.prototype.html=function(n,i,r){var d=this.createElement("span"),c=d.element,u=d.renderer,h=u.isSVG,p=function(t,n){["opacity","visibility"].forEach((function(i){t[i+"Setter"]=function(r,o,a){var s=t.div?t.div.style:n;e.prototype[i+"Setter"].call(this,r,o,a),s&&(s[o]=r)}})),t.addedSetters=!0};return d.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,d.doTransform=!0)},h&&p(d,d.element.style),d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(t,e){"align"===e?d.alignValue=d.textAlign=t:d[e]=t,d.doTransform=!0},d.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},d.attr({text:n,x:Math.round(i),y:Math.round(r)}).css({position:"absolute"}),u.styledMode||d.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",d.css=d.htmlCss,h&&(d.add=function(t){var e=u.box.parentNode,n=[];if(this.parentGroup=t){var i=t.div;if(!i){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function r(e,n){t[n]=e,"translateX"===n?u.left=e+"px":u.top=e+"px",t.doTransform=!0}var l=o(t.element,"class"),c=t.styles||{},u=(i=t.div=t.div||a("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},i||e)).style;s(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return n[0].div&&d.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:r,translateYSetter:r}),t.addedSetters||p(t)}))}}else i=e;return i.appendChild(c),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d}),d},i.composedClasses=[],i}(n)})),e(n,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,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:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(n,"Core/Foundation.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.isFunction,r=t.objectEach,o=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},r(e.events,(function(e,r){t.eventOptions[r]!==e&&(t.eventOptions[r]&&(o(t,r,t.eventOptions[r]),delete t.eventOptions[r]),i(e)&&(t.eventOptions[r]=e,n(t,r,e)))}))}}(e||(e={})),e})),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=e.deg2rad,r=n.clamp,o=n.correctFloat,a=n.defined,s=n.destroyObjectProperties,l=n.extend,d=n.fireEvent,c=n.isNumber,u=n.merge,h=n.objectEach,p=n.pick;return e=function(){function e(t,e,n,i,r){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,d(this,"init"),n||i||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,i=n.options,r=n.chart,s=n.categories,u=n.logarithmic,h=n.names,f=e.pos,g=p(e.options&&e.options.labels,i.labels),m=n.tickPositions,v=f===m[0],y=f===m[m.length-1],b=(!g.step||1===g.step)&&1===n.tickInterval;m=m.info;var x,_=e.label;if(s=this.parameters.category||(s?p(s[f],h[f],f):f),u&&c(s)&&(s=o(u.lin2log(s))),n.dateTime)if(m)var O=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&m.higherRanks[f]||m.unitName]),w=O.main;else c(s)&&(w=n.dateTime.getXDateFormat(s,i.dateTimeLabelFormats||{}));e.isFirst=v,e.isLast=y;var C={axis:n,chart:r,dateTimeLabelFormat:w,isFirst:v,isLast:y,pos:f,tick:e,tickPositionInfo:m,value:s};d(this,"labelFormat",C);var $=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=n.defaultLabelFormatter.call(e),t.format(g.format,e,r)):n.defaultLabelFormatter.call(e,e)};i=$.call(C,C);var k=O&&O.list;e.shortenLabel=k?function(){for(x=0;xc&&r-u*ha&&(l=Math.round((o-r)/Math.cos(c*i))):(o=r+(1-u)*h,r-u*ha&&(m=a-t.x+m*u,v=-1),(m=Math.min(f,m))m||e.autoRotation&&(d.styles||{}).width)&&(l=m)),l&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(l)+"px",(n.style||{}).textOverflow||(g.textOverflow="ellipsis"),d.css(g)))},e.prototype.moveLabel=function(t,e){var n=this,i=n.label,r=n.axis,o=r.reversed,a=!1;if(i&&i.textStr===t?(n.movedLabel=i,a=!0,delete n.label):h(r.ticks,(function(e){a||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,a=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!a&&(n.labelPos||i)){var s=n.labelPos||i.xy;i=r.horiz?o?0:r.width+r.left:s.x,r=r.horiz?s.y:o?r.width+r.left:0,n.movedLabel=n.createLabel({x:i,y:r},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var i=this.axis,r=i.horiz,o=this.pos,a=p(this.tickmarkOffset,i.tickmarkOffset);a=(o=this.getPosition(r,o,a,e)).x;var s=o.y;i=r&&a===i.pos+i.len||!r&&s===i.pos?-1:1,r=p(n,this.label&&this.label.newOpacity,1),n=p(n,1),this.isActive=!0,this.renderGridLine(e,n,i),this.renderMark(o,n,i),this.renderLabel(o,e,r,t),this.isNew=!1,d(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var i=this.axis,r=i.options,o={},a=this.pos,s=this.type,l=p(this.tickmarkOffset,i.tickmarkOffset),d=i.chart.renderer,c=this.gridLine,u=r.gridLineWidth,h=r.gridLineColor,f=r.gridLineDashStyle;"minor"===this.type&&(u=r.minorGridLineWidth,h=r.minorGridLineColor,f=r.minorGridLineDashStyle),c||(i.chart.styledMode||(o.stroke=h,o["stroke-width"]=u||0,o.dashstyle=f),s||(o.zIndex=1),t&&(e=0),this.gridLine=c=d.path().attr(o).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(i.gridGroup)),c&&(n=i.getPlotLinePath({value:a+l,lineWidth:c.strokeWidth()*n,force:"pass",old:t}))&&c[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var i=this.axis,r=i.options,o=i.chart.renderer,a=this.type,s=i.tickSize(a?a+"Tick":"tick"),l=t.x;t=t.y;var d=p(r["minor"!==a?"tickWidth":"minorTickWidth"],!a&&i.isXAxis?1:0);r=r["minor"!==a?"tickColor":"minorTickColor"];var c=this.mark,u=!c;s&&(i.opposite&&(s[0]=-s[0]),c||(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||c.attr({stroke:r,"stroke-width":d})),c[u?"attr":"animate"]({d:this.getMarkPath(l,t,s[0],c.strokeWidth()*n,i.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,n,i){var r=this.axis,o=r.horiz,a=r.options,s=this.label,l=a.labels,d=l.step;r=p(this.tickmarkOffset,r.tickmarkOffset);var u=t.x;t=t.y;var h=!0;s&&c(u)&&(s.xy=t=this.getLabelPosition(u,t,s,o,l,r,i,d),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?h=!1:!o||l.step||l.rotation||e||0===n||this.handleOverflow(t),d&&i%d&&(h=!1),h&&c(t.y)?(t.opacity=n,s[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var i=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:i,y:n,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}()})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s){var l=t.animObject,d=i.defaultOptions,c=r.registerEventOptions,u=o.deg2rad,h=s.arrayMax,p=s.arrayMin,f=s.clamp,g=s.correctFloat,m=s.defined,v=s.destroyObjectProperties,y=s.erase,b=s.error,x=s.extend,_=s.fireEvent,O=s.getMagnitude,w=s.isArray,C=s.isNumber,$=s.isString,k=s.merge,S=s.normalizeTickInterval,E=s.objectEach,j=s.pick,A=s.relativeLength,M=s.removeEvent,P=s.splat,T=s.syncTimeout;return t=function(){function t(t,e){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.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),_(this,"init",{userOptions:e}),this.opposite=j(e.opposite,this.opposite),this.side=j(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var i=this.options,r=i.labels,o=i.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=j(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===o||!0===i.categories,this.categories=i.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.min=this.max=null,e=j(i.crosshair,P(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=C(r.rotation)?r.rotation:void 0,c(this,i),_(this,"afterInit")},t.prototype.setOptions=function(t){this.options=k(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],k(d[this.coll],t)),_(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=C(this.value)?this.value:NaN,i=e.chart.time,r=this.dateTimeLabelFormat,o=d.lang,a=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var s=e.logarithmic?Math.abs(n):e.tickInterval,l=a&&a.length;if(e.categories)var c=""+this.value;else if(r)c=i.dateFormat(r,n);else if(l&&1e3<=s)for(;l--&&void 0===c;)s>=(e=Math.pow(o,l+1))&&0==10*n%e&&null!==a[l]&&0!==n&&(c=t(n/e,-1)+a[l]);return void 0===c&&(c=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;_(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(i){if(i.visible||!n.options.chart.ignoreHiddenSeries){var r=i.options,o=r.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((r=i.xData).length){r=e.logarithmic?r.filter(e.validatePositiveValue):r;var a=(t=i.getXExtremes(r)).min,s=t.max;C(a)||a instanceof Date||(r=r.filter(C),a=(t=i.getXExtremes(r)).min,s=t.max),r.length&&(e.dataMin=Math.min(j(e.dataMin,a),a),e.dataMax=Math.max(j(e.dataMax,s),s))}}else i=i.applyExtremes(),C(i.dataMin)&&(a=i.dataMin,e.dataMin=Math.min(j(e.dataMin,a),a)),C(i.dataMax)&&(s=i.dataMax,e.dataMax=Math.max(j(e.dataMax,s),s)),m(o)&&(e.threshold=o),(!r.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),_(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,i,r,o){var a=this.linkedParent||this,s=i&&a.old?a.old.min:a.min,l=a.minPixelPadding;r=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&r)&&a.lin2val;var d=1,c=0;return(i=i&&a.old?a.old.transA:a.transA)||(i=a.transA),n&&(d*=-1,c=a.len),a.reversed&&(c-=(d*=-1)*(a.sector||a.len)),e?(t=(t*d+c-l)/i+s,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=C(s)?d*(t-s)*i+c+d*l+(C(o)?i*o:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,n){return("pass"!==b&&tn)&&(b?t=f(t,e,n):a=!0),t}var n,i,r,o,a,s=this,l=s.chart,d=s.left,c=s.top,u=t.old,h=t.value,p=t.lineWidth,g=u&&l.oldChartHeight||l.chartHeight,m=u&&l.oldChartWidth||l.chartWidth,v=s.transB,y=t.translatedValue,b=t.force;return t={value:h,lineWidth:p,old:u,force:b,acrossPanes:t.acrossPanes,translatedValue:y},_(this,"getPlotLinePath",t,(function(t){y=j(y,s.translate(h,null,null,u)),y=f(y,-1e5,1e5),n=r=Math.round(y+v),i=o=Math.round(g-y-v),C(y)?s.horiz?(i=c,o=g-s.bottom,n=r=e(n,d,d+s.width)):(n=d,r=m-s.right,i=o=e(i,c,c+s.height)):(a=!0,b=!1),t.path=a&&!b?null:l.renderer.crispLine([["M",n,i],["L",r,o]],p||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var i=g(Math.floor(e/t)*t);n=g(Math.ceil(n/t)*t);var r,o=[];if(g(i+t)===i&&(r=20),this.single)return[e];for(e=i;e<=n&&(o.push(e),(e=g(e+t,r))!==a);)var a=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?j(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,i=this.pointRangePadding||0,r=this.min-i,o=(i=this.max+i)-r,a=[];if(o&&o/n=this.minRange,c=this.minRange,u=(c-s+a)/2;u=[a-u,j(r.min,a-u)],d&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),s=[(a=h(u))+c,j(r.max,a+c)],d&&(s[2]=o?o.log2lin(this.dataMax):this.dataMax),(s=p(s))-a=h)v=h,c=0;else if(this.dataMax<=h){var y=h;d=0}this.min=j(p,v,this.dataMin),this.max=j(f,y,this.dataMax)}if(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,j(this.dataMin,this.min))&&b(10,1,e),this.min=g(n.log2lin(this.min),16),this.max=g(n.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),_(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(s||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(p)&&c&&(this.min-=e*c),!m(f)&&d&&(this.max+=e*d)),C(this.userMin)||(C(i.softMin)&&i.softMinthis.max&&(this.max=f=i.softMax),C(i.ceiling)&&(this.max=Math.min(this.max,i.ceiling))),l&&m(this.dataMin)&&(h=h||0,!m(p)&&this.min=h?this.min=this.options.minRange?Math.min(h,this.max-this.minRange):h:!m(f)&&this.max>h&&this.dataMax<=h&&(this.max=this.options.minRange?Math.max(h,this.min+this.minRange):h)),C(this.min)&&C(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:o&&this.linkedParent&&!u&&a===this.linkedParent.options.tickPixelInterval?u=this.linkedParent.tickInterval:j(u,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,s?1:(this.max-this.min)*a/Math.max(this.len,a)),r&&!t){var x=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(x)})),_(this,"postProcessData",{hasExtemesChanged:x})}this.setAxisTranslation(),_(this,"initialAxisTranslation"),this.pointRange&&!u&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=j(i.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!u&&this.tickIntervalthis.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),i=this.hasVerticalPanning(),r="colorAxis"===this.coll,o=(r||!i)&&t.startOnTick;i=(r||!i)&&t.endOnTick,r=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=n=e&&e.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],b(19,!1,this.chart)),n.length>this.len&&((n=[n[0],n.pop()])[0]===n[1]&&(n.length=1)),this.tickPositions=n,r&&(r=r.apply(this,[this.min,this.max])))&&(this.tickPositions=n=r),this.paddedTicks=n.slice(0),this.trimTicks(n,o,i),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||r||this.adjustTickAmount()),_(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var i=t[0],r=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(_(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==i)this.min=i;else for(;this.min-o>t[0];)t.shift();if(n)this.max=r;else for(;this.max+on&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,n=this.tickPositions,i=this.tickAmount,r=this.finalTickAmt,o=n&&n.length,a=j(this.threshold,this.softThreshold?0:null);if(this.hasData()&&C(this.min)&&C(this.max)){if(oi&&(this.tickInterval*=2,this.setTickPositions());if(m(r)){for(e=t=n.length;e--;)(3===r&&1==e%2||2>=r&&0s&&(e=s)),m(r)&&(os&&(o=s))),n.displayBtn=void 0!==e||void 0!==o,n.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],i=this.horiz,r=this.width=Math.round(A(j(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),o=this.height=Math.round(A(j(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(A(j(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(A(j(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-r-e,this.len=Math.max(i?r:o,0),this.pos=i?e:a},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:ee?t.align="right":195e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,n=j(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),i=e["tick"===t?"tickLength":"minorTickLength"];if(n&&i){"inside"===e[t+"Position"]&&(i=-i);var r=[i,n]}return _(this,"afterTickSize",t={tickSize:r}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n=this.options.labels,i=this.horiz,r=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/r),a=n.rotation,s=this.labelMetrics(),l=Math.max(this.max-this.min,0),d=function(t){var e=t/(o||1);return(e=1l&&1/0!==t&&1/0!==o&&l&&(e=Math.ceil(l/r)),g(e*r)},c=r,h=Number.MAX_VALUE;if(i){if(!n.staggerLines&&!n.step)if(C(a))var p=[a];else o=n){var i=(e=d(Math.abs(s.h/Math.sin(u*n))))+Math.abs(n/360);ii.step)return i.rotation?0:(this.staggerLines||1)*this.len/r;if(!n){if(void 0!==(t=i.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,i=this.ticks,r=this.options.labels,o=r.style,a=this.horiz,s=this.getSlotWidth(),l=Math.max(1,Math.round(s-2*r.padding)),d={},c=this.labelMetrics(),u=o.textOverflow,h=0;if($(r.rotation)||(d.rotation=r.rotation||0),n.forEach((function(t){(t=i[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>h&&(h=t.label.textPxLength)})),this.maxLabelLength=h,this.autoRotation)h>l&&h>c.h?d.rotation=this.labelRotation:this.labelRotation=0;else if(s){var p=l;if(!u){var f="clip";for(l=n.length;!a&&l--;){var g=n[l];(g=i[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>s&&g.css({width:s+"px"}),g.getBBox().height>this.len/n.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}d.rotation&&(p=h>.5*t.chartHeight?.33*t.chartHeight:h,u||(f="ellipsis")),(this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation))&&(d.align=this.labelAlign),n.forEach((function(t){var e=(t=i[t])&&t.label,n=o.width,r={};e&&(e.attr(d),t.shortenLabel?t.shortenLabel():p&&!n&&"nowrap"!==o.whiteSpace&&(p=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(i[t]||(i[t]=new a(this,t)),n&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))},t.prototype.render=function(){var t,e,n=this,i=n.chart,r=n.logarithmic,s=n.options,d=n.isLinked,c=n.tickPositions,u=n.axisTitle,h=n.ticks,p=n.minorTicks,f=n.alternateBands,g=s.stackLabels,m=s.alternateGridColor,v=n.tickmarkOffset,y=n.axisLine,b=n.showAxis,x=l(i.renderer.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[h,p,f].forEach((function(t){E(t,(function(t){t.isActive=!1}))})),n.hasData()||d){var O=n.chart.hasRendered&&n.old&&C(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t,O)})),c.length&&(c.forEach((function(t,e){n.renderTick(t,e,O)})),v&&(0===n.min||n.single)&&(h[-1]||(h[-1]=new a(n,-1,null,!0)),h[-1].render(-1))),m&&c.forEach((function(a,s){e=void 0!==c[s+1]?c[s+1]+v:n.max-v,0==s%2&&ae&&(!a||d<=n)&&void 0!==d&&c.push(d),d>n&&(p=!0),d=g}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?s.getMinorTickInterval():d.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,d.tickPixelInterval/(a?5:1)*(n-e)/((a?l/s.tickPositions.length:l)||1)),t=r(t,void 0,i(t)),c=s.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this.minorAutoInterval=t/5);return a||(s.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.erase,i=t.extend,r=t.isNumber;return function(t){var e,o=[];t.compose=function(t,n){return e||(e=t),-1===o.indexOf(n)&&(o.push(n),i(n.prototype,a.prototype)),n};var a=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),o=[],a=this.horiz;if(e=!r(this.min)||!r(this.max)||tthis.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),n=1,t&&i){if(e){var s=t.toString()===i.toString();n=0}for(e=0;ev-l?v:v-l);else{if(!g)return!1;s[t]=Math.max(a,r+l+n>e?r:r+l)}},y=function(t,e,n,i,r){var a;return re-o?a=!1:s[t]=re-i/2?e-i-2:r-n/2,a},x=function(t){var e=f;f=g,g=e,i=t},_=function(){!1!==v.apply(0,f)?!1!==y.apply(0,g)||i||(x(!0),_()):i?s.x=s.y=0:(x(!0),_())};return(r.inverted||1e}))&&(t=t.map((function(t){var e=n(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return p(t,{target:e.y,x:e.x})}))),i.cleanSplit(),s(t,T);var D=A,L=A;t.forEach((function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(i.outside&&A+eL&&(L=A+e))})),t.forEach((function(t){var e=t.x,n=t.anchorX,r=t.pos,o=t.point.isHeader;if(r={visibility:void 0===r?"hidden":"inherit",x:e,y:r+M,anchorX:n,anchorY:t.anchorY},i.outside&&en[0]?Math.max(Math.abs(n[0]),r.width-n[0]):Math.max(Math.abs(n[0]),r.width),i.height=0>n[1]?Math.max(Math.abs(n[1]),r.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),r.height),this.tracker?this.tracker.attr(i):(this.tracker=e.renderer.rect(i).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=t.series,i=n.tooltipOptions,r=n.xAxis,a=r&&r.dateTime;r={isFooter:e,labelConfig:t};var s=i.xDateFormat,l=i[e?"footerFormat":"headerFormat"];return f(this,"headerFormatter",r,(function(e){a&&!s&&m(t.key)&&(s=a.getXDateFormat(t.key,i.dateTimeLabelFormats)),a&&s&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+s+"}")})),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=o(l,{point:t,series:n},this.chart)})),r.text},t.prototype.update=function(t){this.destroy(),y(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,y(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,n=this.options,i=e.pointer,r=this.getLabel();i=i.getChartPosition();var o=(n.positioner||this.getPosition).call(this,r.width,r.height,t),a=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(r.width+n,r.height+n,!1),1===i.scaleX&&1===i.scaleY||(c(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),a*=i.scaleX,t*=i.scaleY),a+=i.left-o.x,t+=i.top-o.y),this.move(Math.round(o.x),Math.round(o.y||0),a,t)},t}()})),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=e.animObject,a=n.defaultOptions,s=i.format,l=r.addEvent,d=r.defined,c=r.erase,u=r.extend,h=r.fireEvent,p=r.getNestedProperty,f=r.isArray,g=r.isFunction,m=r.isNumber,v=r.isObject,y=r.merge,b=r.objectEach,x=r.pick,_=r.syncTimeout,O=r.removeEvent,w=r.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach((function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)})),n.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(u({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,n){var i=this.series,r=i.options.pointValKey||i.pointValKey;return t=e.prototype.optionsToObject.call(this,t),u(this,t),this.options=this.options?u(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=e.prototype.getNestedProperty.call(this,r)),this.formatPrefix=(this.isNull=x(this.isValid&&!this.isValid(),null===this.x||!m(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===n&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=void 0===n?i.autoIncrement():n:m(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(r in(e.graphic||e.dataLabel||e.dataLabels)&&(O(e),e.destroyElements()),e)e[r]=null}var e=this,n=e.series,i=n.chart;n=n.options.dataSorting;var r,a=i.hoverPoints,s=o(e.series.chart.renderer.globalAnimation);e.legendItem&&i.legend.destroyItem(e),a&&(e.setState(),c(a,e),a.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),_(t,s.duration)):t(),i.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&i.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),h(i,t,e,n)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,n=this,i=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelUpper","connector"),e=i.length;e--;){var o=i[e];n[o]&&r.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var i=e+"s";t[e]&&n[i]&&r.plural.push(i)})),r},e.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}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?p(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var n,i=0;for(n=e[i];this[t]>=n.value;)n=e[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=d(this.id)?this.id:w(),this.resolveColor(),t.chart.pointCount++,h(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var n=this.series,i=n.options.keys,r=i||n.pointArrayMap||["y"],o=r.length,a={},s=0,l=0;if(m(t)||null===t)a[r[0]]=t;else if(f(t))for(!i&&t.length>o&&("string"===(n=typeof t[0])?a.name=t[0]:"number"===n&&(a.x=t[0]),s++);la+l&&(f=a+l),ms+d&&(m=s+d),this.hasDragged=Math.sqrt(Math.pow(c-f,2)+Math.pow(u-m,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=g(t,!0)&&t.series)&&!(r=!g(i,!0))){r=i.distX-t.distX;var o=i.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==a?a:i.series.index>t.series.index?-1:1)}r&&(i=t)})),i)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,i=n.xAxis;n=n.yAxis;var r=t.shapeArgs;if(i&&n){var o=y(t.clientX,t.plotX),a=t.plotY||0;return t.isNode&&r&&f(r.x)&&f(r.y)&&(o=r.x,a=r.y),e?{chartX:n.len+n.pos-a,chartY:i.len+i.pos-o}:{chartX:o+i.pos,chartY:a+n.pos}}if(r&&r.x&&r.y)return{chartX:r.x,chartY:r.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=v(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var n=t.offsetWidth;return t=t.offsetHeight,2g.max&&(n=g.max-b,C=!0);C?(O-=.8*(O-a[d][0]),"number"==typeof w&&(w-=.8*(w-a[d][1])),e()):a[d]=[O,w],f||(o[d]=x-p,o[h]=b),o=f?1/_:_,r[h]=b,r[d]=n,i[f?t?"scaleY":"scaleX":"scale"+c]=_,i["translate"+c]=o*p+(O-o*v)},t.prototype.reset=function(t,e){var n=this.chart,i=n.hoverSeries,r=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,s=a&&a.shared?o:r;t&&s&&b(s).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?a&&s&&b(s).length&&(a.refresh(s),a.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):r&&(r.setState(r.state,!0),n.axes.forEach((function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)})))):(r&&r.onMouseOut(),o&&o.forEach((function(t){t.setState()})),i&&i.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n){var i=this.chart,r=i.tooltip&&i.tooltip.options.enabled?i.tooltip:void 0,a=!!r&&r.shared,l=n||i.hoverPoint,d=l&&l.series||i.hoverSeries;l=(n=this.getHoverData(l,d,i.series,(!e||"touchmove"!==e.type)&&(!!n||d&&d.directTouch&&this.isDirectTouch),a,e)).hoverPoint,d=n.hoverSeries;var c=n.hoverPoints;if(n=d&&d.tooltipOptions.followPointer&&!d.tooltipOptions.split,a=a&&d&&!d.noSharedTooltip,l&&(l!==i.hoverPoint||r&&r.isHidden)){if((i.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),i.hoverSeries!==d&&d.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),i.hoverPoint&&i.hoverPoint.firePointEvent("mouseOut"),!l.series)return;i.hoverPoints=c,i.hoverPoint=l,l.firePointEvent("mouseOver"),r&&r.refresh(a?c:l,e)}else n&&r&&!r.isHidden&&(l=r.getAnchor([{}],e),i.isInsidePlot(l[0],l[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:l[0],plotY:l[1]}));this.unDocMouseMove||(this.unDocMouseMove=s(i.container.ownerDocument,"mousemove",(function(e){var n=o[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),i.axes.forEach((function(t){var n,r=y((t.crosshair||{}).snap,!0);r&&((n=i.hoverPoint)&&n.series[t.coll]===t||(n=h(c,(function(e){return e.series[t.coll]===t})))),n||!r?t.drawCrosshair(e,n):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach((function(i){var r=t||i.getPlotBox();i.group&&(i.xAxis&&i.xAxis.zoomEnabled||n.mapView)&&(i.group.attr(r),i.markerGroup&&(i.markerGroup.attr(r),i.markerGroup.clip(e?n.clipRect:null)),i.dataLabelsGroup&&i.dataLabelsGroup.attr(r))})),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,i=this.chart.container,r=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(s(i,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(s(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=s(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(s(o,"scroll",(function(){delete n.chartPosition}))),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(s(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(s(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=s(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var n=this.chart,i=e.charts[y(t.hoverChartIndex,-1)];i&&i!==n&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var i=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(i,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart;e=e.inverted;var i=n.zoomType||"";/touch/.test(t.type)&&(i=y(n.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}()})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function i(){var t=[];return t.item=function(t){return this[t]},h(f,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function r(t,n,r,o){var s=a[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[n]({type:r,target:t.currentTarget,preventDefault:l,touches:i()}))}var o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.charts,s=t.doc,l=t.noop,d=t.win,c=n.addEvent,u=n.css,h=n.objectEach,p=n.removeEvent,f={},g=!!d.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.isRequired=function(){return!(t.hasTouch||!d.PointerEvent&&!d.MSPointerEvent)},n.prototype.batchMSEvents=function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(s,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(p),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&u(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){r(t,"onContainerTouchStart","touchstart",(function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},n.prototype.onContainerPointerMove=function(t){r(t,"onContainerTouchMove","touchmove",(function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)}))},n.prototype.onDocumentPointerUp=function(t){r(t,"onDocumentTouchEnd","touchend",(function(t){delete f[t.pointerId]}))},n.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(c)},n}(e)})),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.animObject,s=t.setAnimation,l=e.format;t=n.isFirefox;var d=n.marginNames;n=n.win;var c=r.distribute,u=o.addEvent,h=o.createElement,p=o.css,f=o.defined,g=o.discardElement,m=o.find,v=o.fireEvent,y=o.isNumber,b=o.merge,x=o.pick,_=o.relativeLength,O=o.stableSort,w=o.syncTimeout;return r=o.wrap,o=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,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={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),u(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=u(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=b(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(b(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,x(e,!0)&&n.redraw(),v(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options,i=t.legendItem,r=t.legendLine,o=t.legendSymbol,a=this.itemHiddenStyle.color;n=e?n.itemStyle.color:a;var s=e&&t.color||a,l=t.options&&t.options.marker,d={fill:s};i&&i.css({fill:n,color:n}),r&&r.attr({stroke:s}),o&&(l&&o.isMarker&&(d=t.pointAttribs(),e||(d.stroke=d.fill=a)),o.attr(d))}v(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,n=this.options,i=n.symbolPadding,r=!n.rtl,o=t._legendItemPos;n=o[0],o=o[1];var a=t.checkbox,s=t.legendGroup;s&&s.element&&(i={translateX:r?n:this.legendWidth-n-2*i-4,translateY:o},r=function(){v(e,"afterPositionItem",{item:t})},f(s.translateY)?s.animate(i,void 0,r):(s.attr(i),r())),a&&(a.x=n,a.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&g(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var i=t.translateY;this.allItems.forEach((function(r){var o=r.checkbox;if(o){var a=i+n+o.y+(this.scrollOffset||0)+3;p(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>i-6&&a1.5*n?e.height:n))},t.prototype.layoutItem=function(t){var e=this.options,n=this.padding,i="horizontal"===e.layout,r=t.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,s=i?x(e.itemDistance,20):0,l=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,i&&this.itemX-n+e>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],i?this.itemX+=e:(this.itemY+=a+r+o,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-n-(t.checkbox?0:s):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&x(n.showInLegend,!f(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),v(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var n=this.chart,i=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(r)&&!f(t[a])&&(n[d[a]]=Math.max(n[d[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*i[a%2?"x":"y"]+x(i.margin,12)+e[a]+(n.titleOffset[a]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach((function(i){var r,o=n;if(i.yAxis){i.xAxis.options.reversed&&(o=!o),i.points&&(r=m(o?i.points:i.points.slice(0).reverse(),(function(t){return y(t.plotY)}))),o=this.itemMarginTop+i.legendItem.getBBox().height+this.itemMarginBottom;var a=i.yAxis.top-t.plotTop;i.visible?(r=r?r.plotY:i.yAxis.height,r+=a-.3*o):r=a+i.yAxis.height,e.push({target:r,size:o,item:i})}}),this),c(e,t.plotHeight).forEach((function(e){e.item._legendItemPos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,i=this.padding,r=this.getAllItems(),o=this.group,a=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=_(n.width,t.spacingBox.width-i);var s=t.spacingBox.width-2*i-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,o||(this.group=o=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),O(r,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&r.reverse(),this.allItems=r,this.display=s=!!r.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),r=(this.widthOption||this.offsetWidth)+i;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=i,a||(this.box=a=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(o),a.isNew=!0),t.styledMode||a.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0s&&!1!==u.enabled?(this.clipHeight=e=Math.max(s-20-this.titleHeight-d,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,g.forEach((function(t,i){var r=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=f.length;(!a||r-f[a-1]>e&&(n||r)!==f[a-1])&&(f.push(n||r),a++),t.pageIx=a-1,n&&(g[i-1].pageIx=a-1),i===g.length-1&&r+o-f[a-1]>e&&o<=e&&(f.push(r),t.pageIx=a),r!==n&&(n=r)})),b||(b=i.clipRect=o.clipRect(0,d,9999,0),i.contentGroup.clip(b)),m(e),y||(this.nav=y=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,p,p).add(y),v("upTracker").on("click",(function(){i.scroll(-1,h)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),r.styledMode||this.pager.css(u.style),this.pager.add(y),this.down=o.symbol("triangle-down",0,0,p,p).add(y),v("downTracker").on("click",(function(){i.scroll(1,h)}))),i.scroll(0),t=s):y&&(m(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,i=this.chart,r=this.pages,o=r.length,l=this.clipHeight,d=this.options.navigation,c=this.pager,u=this.padding,h=this.currentPage+t;h>o&&(h=o),0=Math.max(l+o,u.pos)&&s<=Math.min(l+o+r.width,u.pos+u.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(i=c&&(i?c.xAxis:c.yAxis)||{pos:a,len:1/0},(n=n.paneCoordinates?i.pos+e:a+e)>=Math.max(d+a,i.pos)&&n<=Math.min(d+a+r.height,i.pos+i.len)||(t.isInsidePlot=!1)),F(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){F(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,i=this.pointer,r=this.legend,o=this.userOptions.legend,a=this.renderer,s=a.isHidden(),l=[],d=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&t,this),s&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var u=n[t];if(u.options.stacking||u.options.centerInCategory){var h=!0;if(u.isDirty){var p=!0;break}}}if(p)for(t=n.length;t--;)(u=n[t]).options.stacking&&(u.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):o&&(o.labelFormatter||o.labelFormat)&&(c=!0)),t.isDirtyData&&F(t,"updatedData")})),c&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),h&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(d=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,l.push((function(){F(t,"afterSetExtremes",N(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(d||h)&&t.redraw()})),d&&this.drawChartBox(),F(this,"predraw"),n.forEach((function(t){(d||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),i&&i.reset(!0),a.draw(),F(this,"redraw"),F(this,"render"),s&&this.temporaryDisplay(!0),l.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,i=R(this.axes,e)||R(this.series,e),r=0;!i&&r=s&&r<=l||d||!T(r))&&(c=!0),i[d?"zoomX":"zoomY"]&&c&&(e=a.zoom(t.min,t.max),a.displayBtn&&(o=!0))}));var a=n.resetZoomButton;o&&!a?n.showResetZoom():!o&&H(a)&&(n.resetZoomButton=a.destroy()),e&&n.redraw(X(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,i=n.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var r=n.options.chart,o=n.options.mapNavigation&&n.options.mapNavigation.enabled;r&&r.panning&&(r.panning=e);var a,s=e.type;F(this,"pan",{originalEvent:t},(function(){i&&i.forEach((function(t){t.setState()}));var e=n.xAxis;"xy"===s?e=e.concat(n.yAxis):"y"===s&&(e=n.yAxis);var r={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var i=e.horiz,l=t[i?"chartX":"chartY"],d=n[i=i?"mouseDownX":"mouseDownY"],c=e.minPointOffset||0,u=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,h=e.getExtremes(),p=e.toValue(d-l,!0)+c*u,f=e.toValue(d+e.len-l,!0)-(c*u||e.isXAxis&&e.pointRangePadding||0),g=f=u&&p<=f&&(e.setExtremes(d,p,!1,!1,{trigger:"pan"}),n.resetZoomButton||o||d===u||p===f||!s.match("y")||(n.showResetZoom(),e.displayBtn=!1),a=!0),r[i]=l)}})),G(r,(function(t,e){n[e]=t})),a&&n.redraw(!1),P(n.container,{cursor:"move"})}))},t}(),N(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.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(" ")}),t})),e(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.merge,i=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,r=t.symbolWidth,o=t.symbolHeight,a=o/2,s=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var d={},c=e.marker;this.chart.styledMode||(d={"stroke-width":e.lineWidth||0},e.dashStyle&&(d.dashstyle=e.dashStyle)),this.legendLine=s.path([["M",0,t],["L",r,t]]).addClass("highcharts-graph").attr(d).add(l),c&&!1!==c.enabled&&r&&(e=Math.min(i(c.radius,a),a),0===this.symbol.indexOf("url")&&(c=n(c,{width:o,height:o}),e=0),this.legendSymbol=r=s.symbol(this.symbol,r/2-e,t-e,2*e,2*e,c).addClass("highcharts-point").add(l),r.isMarker=!0)},t.drawRectangle=function(t,e){var n=t.symbolHeight,r=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(r?(t.symbolWidth-n)/2:0,t.baseline-n+1,r?n:t.symbolWidth,n,i(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e})),e(n,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(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:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l,d){var c=t.animObject,u=t.setAnimation,h=e.defaultOptions,p=n.registerEventOptions,f=i.hasTouch,g=i.svg,m=i.win,v=s.seriesTypes,y=d.addEvent,b=d.arrayMax,x=d.arrayMin,_=d.clamp,O=d.cleanRecursively,w=d.correctFloat,C=d.defined,$=d.erase,k=d.error,S=d.extend,E=d.find,j=d.fireEvent,A=d.getNestedProperty,M=d.isArray,P=d.isNumber,T=d.isString,D=d.merge,L=d.objectEach,I=d.pick,N=d.removeEvent,R=d.splat,F=d.syncTimeout;return t=function(){function t(){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}return t.prototype.init=function(t,e){j(this,"init",{options:e});var n=this,i=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),S(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var r,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),i.length&&(r=i[i.length-1]),n._i=I(r&&r._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(i)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),j(this,"afterInit")},t.prototype.is=function(t){return v[t]&&this instanceof v[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(P(n)){for(e=t.length;e--;)if(n>=I(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return I(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,i=e.chart;j(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(r){var o=0;i[r].forEach((function(i){t=i.options,(n[r]===o&&!t.isInternal||void 0!==n[r]&&n[r]===t.id||void 0===n[r]&&0===t.index)&&(e.insert(i.series),e[r]=i,i.isDirty=!0),t.isInternal||o++})),e[r]||e.optionalAxis===r||k(18,!0,i)}))})),j(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,i=arguments,r=P(e)?function(i){var r="y"===i&&n.toYData?n.toYData(t):t[i];n[i+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(i,2))};n.parallelArrays.forEach(r)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?d-this.cropStart:d),!i&&P(d)&&s[d]&&s[d].touched&&(d=void 0),d},t.prototype.updateData=function(t,e){var n,i,r,o=this.options,a=o.dataSorting,s=this.points,l=[],d=this.requireSorting,c=t.length===s.length,u=!0;if(this.xIncrement=null,t.forEach((function(t,e){var i=C(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},u=i.x;i.id||P(u)?(-1===(i=this.findPointIndex(i,r))||void 0===i?l.push(t):s[i]&&t!==o.data[i]?(s[i].update(t,!1,null,!1),s[i].touched=!0,d&&(r=i+1)):s[i]&&(s[i].touched=!0),(!c||e!==i||a&&a.enabled||this.hasDerivedData)&&(n=!0)):l.push(t)}),this),n)for(t=s.length;t--;)(i=s[t])&&!i.touched&&i.remove&&i.remove(!1,e);else!c||a&&a.enabled?u=!1:(t.forEach((function(t,e){t!==s[e].y&&s[e].update&&s[e].update(t,!1,null,!1)})),l.length=0);return s.forEach((function(t){t&&(t.touched=!1)})),!!u&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,n,i){var r=this,o=r.points,a=o&&o.length||0,s=r.options,l=r.chart,d=s.dataSorting,c=r.xAxis,u=s.turboThreshold,h=this.xData,p=this.yData,f=r.pointArrayMap;f=f&&f.length;var g,m=s.keys,v=0,y=1,b=null,x=(t=t||[]).length;if(e=I(e,!0),d&&d.enabled&&(t=this.sortData(t)),!1!==i&&x&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(g=this.updateData(t,n)),!g){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),u&&x>u)if(b=r.getFirstValidPoint(t),P(b))for(n=0;nt?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var n=e.options,r=n.data;n.dataSorting&&n.dataSorting.enabled||!r||(r.forEach((function(n,o){r[o]=i(e,n),t[o]&&(r[o].x=t[o].x,r[o].index=o)})),e.setData(r,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,i=n.cropThreshold,r=t||this.getExtremesFromAll||n.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var a=0,s=this.xData,l=this.yData,d=this.requireSorting,c=!1,u=s.length;if(e){var h=(c=e.getExtremes()).min,p=c.max;c=e.categories&&!e.names.length}if(o&&this.sorted&&!r&&(!i||u>i||this.forceCrop))if(s[u-1]p)s=[],l=[];else if(this.yData&&(s[0]p)){var f=this.cropData(this.xData,this.yData,h,p);s=f.xData,l=f.yData,a=f.start,f=!0}for(i=s.length||1;--i;)if(0<(e=n?t(s[i])-t(s[i-1]):s[i]-s[i-1])&&(void 0===g||ee&&d&&!c&&(k(15,!1,this.chart),d=!1);return{xData:s,yData:l,cropped:f,cropStart:a,closestPointRange:g}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,j(this,"afterProcessData")},t.prototype.cropData=function(t,e,n,i,r){var o,a=t.length,s=0,l=a;for(r=I(r,this.cropShoulder),o=0;o=n){s=Math.max(0,o-r);break}for(n=o;ni){l=n+r;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},t.prototype.generatePoints=function(){var t=this.options,e=t.data,n=this.processedXData,i=this.processedYData,r=this.pointClass,o=n.length,a=this.cropStart||0,s=this.hasGroupedData,l=t.keys,d=[];t=t.dataGrouping&&t.dataGrouping.groupAll?a:0;var c,u,h=this.data;if(!h&&!s){var p=[];p.length=e.length,h=this.data=p}for(l&&s&&(this.options.keys=!1),u=0;u=l&&(r[s-a]||p)<=d,f&&p)if(f=h.length)for(;f--;)P(h[f])&&(o[c++]=h[f]);else o[c++]=h}return t={activeYData:o,dataMin:x(o),dataMax:b(o)},j(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,n=0,i=null;null===i&&n=O&&(O=null),m.total=m.stackTotal=y.total,m.percentage=y.total&&m.y/y.total*100,m.stackY=x,this.irregularWidths||y.setOffset(this.pointXOffset||0,this.barW||0)),m.yBottom=C(O)?_(s.translate(O,0,1,0,1),-1e5,1e5):null,this.dataModify&&(x=this.dataModify.modifyValue(x,t)),m.plotY=void 0,P(x)&&(void 0!==(y=s.translate(x,!1,!0,!1,!0))&&(m.plotY=_(y,-1e5,1e5))),m.isInside=this.isPointInside(m),m.clientX=u?w(r.translate(v,0,0,0,1,c)):e,m.negative=m[f]<(n[f+"Threshold"]||h||0),m.category=o&&void 0!==o[m.x]?o[m.x]:m.x,!m.isNull&&!1!==m.visible){void 0!==S&&(g=Math.min(g,Math.abs(e-S)));var S=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&a&&(m.isNew=!0)}this.closestPointRangePx=g,j(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var i=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,{inverted:i.inverted}))&&(!1!==t.visible&&(n||!t.isNull))}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis,i=D(t.clipBox);return e&&e.len!==t.plotSizeX&&(i.width=e.len),n&&n.len!==t.plotSizeY&&(i.height=n.len),i},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,n=this.markerGroup,i=t.sharedClips;t=t.renderer;var r=this.getClipBox(),o=this.getSharedClipKey(),a=i[o];a?a.animate(r):i[o]=a=t.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:a),n&&n.clip()},t.prototype.animate=function(t){var e=this.chart,n=this.group,i=this.markerGroup,r=e.inverted,o=c(this.options.animation),a=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(),s=e.sharedClips[a],l=e.sharedClips[a+"m"];if(t&&n)o=this.getClipBox(),s?s.attr("height",o.height):(o.width=0,r&&(o.x=e.plotHeight),s=e.renderer.clipRect(o),e.sharedClips[a]=s,l=e.renderer.clipRect({x:r?(e.plotSizeX||0)+99:-99,y:r?-e.plotLeft:-e.plotTop,width:99,height:r?e.chartWidth:e.chartHeight}),e.sharedClips[a+"m"]=l),n.clip(s),i&&i.clip(l);else if(s&&!s.hasClass("highcharts-animating")){e=this.getClipBox();var d=o.step;i&&i.element.childNodes.length&&(o.step=function(t,e){d&&d.apply(e,arguments),l&&l.element&&l.attr(e.prop,"width"===e.prop?t+99:t)}),s.addClass("highcharts-animating").animate(e,o)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),L(this.chart.sharedClips,(function(e,n,i){e&&!t.chart.container.querySelector('[clip-path="url(#'+e.id+')"]')&&(e.destroy(),delete i[n])})),this.finishedAnimating=!0,j(this,"afterAnimate")},t.prototype.drawPoints=function(){var t,e,n=this.points,i=this.chart,r=this.options.marker,o=this[this.specialGroup]||this.markerGroup,a=this.xAxis,s=I(r.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=r.enabledThreshold*r.radius);if(!1!==r.enabled||this._hasPointMarkers)for(t=0;tO.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=h}else l.visible&&(p&&p.show(!0),f&&f.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(i.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(!n.isRadialSeries&&t))}))}var n=this,i=n.chart;n.xAxis&&(n.eventsToUnbind.push(y(i,"resize",e)),e(),n.invertGroups=e)},t.prototype.plotGroup=function(t,e,n,i,r){var o=this[t],a=!o;return n={visibility:n,zIndex:i||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),a&&(this[t]=o=this.chart.renderer.g().add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[a?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||N(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,i=c(n.animation),r=t.visible?"inherit":"hidden",o=n.zIndex,a=t.hasRendered,s=e.seriesGroup,l=e.inverted;e=!t.finishedAnimating&&e.renderer.isSVG?i.duration:0,j(this,"render");var d=t.plotGroup("group","series",r,o,s);t.markerGroup=t.plotGroup("markerGroup","markers",r,o,s),!1!==n.clip&&t.setClip(),t.animate&&e&&t.animate(!0),d.inverted=!!I(t.invertible,t.isCartesian)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),t.animate&&e&&t.animate(),a||(e&&i.defer&&(e+=i.defer),t.animationTimeout=F((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,j(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:I(i&&i.left,t.plotLeft),translateY:I(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?i.len-t.chartX+i.pos:t.chartY-i.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,n=-1(c=e[c]-d[c])?"right":"left",n[p=0>c?"left":"right"]&&(u=(p=t(e,n[p],s+1,l))[a]p;)f--;this.updateParallelArrays(h,"splice",f,0,0),this.updateParallelArrays(h,f),l&&h.name&&(l[p]=h.name),c.splice(f,0,t),d&&(this.data.splice(f,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),n&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(h,"shift"),c.shift())),!1!==r&&j(this,"addPoint",{point:h}),this.isDirtyData=this.isDirty=!0,e&&s.redraw(i)},t.prototype.removePoint=function(t,e,n){var i=this,r=i.data,o=r[t],a=i.points,s=i.chart,l=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(o||{series:i},"splice",t,1),o&&o.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&s.redraw()};u(n,s),e=I(e,!0),o?o.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,n,i){function r(){o.destroy(i),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),I(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==n?j(o,"remove",null,r):r()},t.prototype.update=function(t,e){t=O(t,this.userOptions),j(this,"update",{options:t});var n,i=this,r=i.chart,o=i.userOptions,a=i.initialType||i.type,s=r.options.plotOptions,l=v[a].prototype,d=i.finishedAnimating&&{animation:!1},c={},u=["eventOptions","navigatorSeries","baseSeries"],h=t.type||o.type||r.options.chart.type,p=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(h=h||a,p&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),i.parallelArrays.forEach((function(t){u.push(t+"Data")})),t.data&&(t.dataSorting&&S(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=D(o,d,{index:void 0===o.index?i.index:o.index,pointStart:I(s&&s.series&&s.series.pointStart,o.pointStart,i.xData[0])},!p&&{data:i.options.data},t),p&&t.data&&(t.data=i.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach((function(t){u[t]=i[t],delete i[t]})),s=!1,v[h]){if(s=h!==i.type,i.remove(!1,!1,!1,!0),s)if(Object.setPrototypeOf)Object.setPrototypeOf(i,v[h].prototype);else{for(n in d=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,l)i[n]=void 0;S(i,v[h].prototype),d?i.hcEvents=d:delete i.hcEvents}}else k(17,!0,r,{missingModuleFor:h});if(u.forEach((function(t){i[t]=u[t]})),i.init(r,t),p&&this.points){var f=i.options;!1===f.visible?(c.graphic=1,c.dataLabel=1):i._hasPointLabels||(t=f.marker,l=f.dataLabels,!t||!1!==t.enabled&&(o.marker&&o.marker.symbol)===t.symbol||(c.graphic=1),l&&!1===l.enabled&&(c.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(c).length&&t.destroyElements(c),!1===f.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}i.initialType=a,r.linkSeries(),s&&i.linkedSeries.length&&(i.isDirtyData=!0),j(this,"afterUpdate"),I(e,!0)&&r.redraw(!!p&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],n=this.chart.options.plotOptions,i=this.userOptions[t];return i?e!==i:e!==I(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&j(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,i=e.hoverPoint;e.hoverSeries=null,i&&i.onMouseOut(),this&&t.events.mouseOut&&j(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var n=this,i=n.options,r=n.graph,o=i.inactiveOtherPoints,a=i.states,s=I(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation),l=i.lineWidth,d=0,c=i.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach((function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))})),n.state=t,!n.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),c=I(a[t].opacity,c)),r&&!r.dashstyle)for(i={"stroke-width":l},r.animate(i,s);n["zone-graph-"+d];)n["zone-graph-"+d].animate(i,s),d+=1;o||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:c},s)}))}e&&o&&n.points&&n.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var n=this,i=n.chart,r=n.legendItem,o=i.options.chart.ignoreHiddenSeries,a=n.visible,s=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){n[t]&&n[t][s]()})),i.hoverSeries!==n&&(i.hoverPoint&&i.hoverPoint.series)!==n||n.onMouseOut(),r&&i.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&i.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(i.isDirtyBox=!0),j(n,s),!1!==e&&i.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),j(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=a,t}(),S(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:r.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),s.series=t,t})),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.stop,s=o.addEvent,l=o.createElement,d=o.merge,c=o.pick;s(n,"afterSetChartSize",(function(t){var n=this.options.chart.scrollablePlotArea,i=n&&n.minWidth;if(n=n&&n.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i;var r={1:{name:"right",value:i}}}}else n&&(this.scrollablePixelsY=i=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,r={2:{name:"bottom",value:i}});r&&!t.skipAxes&&this.axes.forEach((function(t){r[t.side]?t.getPlotLinePath=function(){var n=r[t.side].name,i=this[n];this[n]=i-r[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=i,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),s(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},e,this.scrollingParent),s(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,i=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&i.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),i.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,i=r.getRendererType();t?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new i(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(n.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterDrilldown",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),i=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=e+"px",this.container.style.height=i+"px",this.renderer.boxWrapper.attr({width:e,height:i,viewBox:[0,0,e,i].join(" ")}),this.chartBackground.attr({width:e,height:i}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),i=this.axisOffset,t=this.plotTop-i[0]-1,n=this.plotLeft-i[3]-1,e=this.plotTop+this.plotHeight+i[2]+1,i=this.plotLeft+this.plotWidth+i[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),d=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",i,this.plotTop-1],["L",i,0],["Z"],["M",n,d],["L",n,this.chartHeight],["L",i,this.chartHeight],["L",i,d],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},s(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),s(i,"show",(function(){this.chart.scrollableDirty=!0}))})),e(n,"Core/Axis/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.getDeferredAnimation,o=n.addEvent,a=n.destroyObjectProperties,s=n.fireEvent,l=n.isNumber,d=n.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;d(e,(function(t,n){a(t),e[n]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function n(){this.stacking||(this.stacking=new c(this))}var i=[];t.compose=function(t){return-1===i.indexOf(t)&&(i.push(t),o(t,"init",n),o(t,"destroy",e)),t};var c=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,i=e.options.reversedStacks,r=n.length;if(!e.isXAxis){for(this.usePercentage=!1,t=r;t--;){var o=n[i?t:r-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;to&&e.shadow)),s&&(s.startX=n.xMap,s.isArea=n.isArea)}))},n.prototype.getGraphPath=function(t,e,n){var i,o=this,a=o.options,s=[],l=[],d=a.step,c=(t=t||o.points).reversed;return c&&t.reverse(),(d={right:1,center:2}[d]||d&&3)&&c&&(d=4-d),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!n))).forEach((function(c,u){var h=c.plotX,p=c.plotY,f=t[u-1];(c.leftCliff||f&&f.rightCliff)&&!n&&(i=!0),c.isNull&&!r(e)&&0t&&c>r?u=2*r-(c=Math.max(t,r)):cn&&u>r?c=2*r-(u=Math.max(n,r)):u=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;i=t.borderWidth=b(n.borderWidth,i?0:1);var o=t.xAxis,a=t.yAxis,s=n.threshold,l=t.translatedThreshold=a.getThreshold(s),d=b(n.minPointLength,5),c=t.getColumnMetrics(),h=c.width,f=t.pointXOffset=c.offset,g=t.dataMin,m=t.dataMax,y=t.barW=Math.max(h,1+2*i);e.inverted&&(l-=.5),n.pointPadding&&(y=Math.ceil(y)),r.prototype.translate.apply(t),t.points.forEach((function(i){var r=b(i.yBottom,l),x=999+Math.abs(r),_=i.plotX||0;x=u(i.plotY,-x,a.len+x);var O=Math.min(x,r),w=Math.max(x,r)-O,C=h,$=_+f,k=y;d&&Math.abs(w)d?r-d:l-(_?d:0)),p(i.options.pointWidth)&&(C=k=Math.ceil(i.options.pointWidth),$-=Math.round((C-h)/2)),n.centerInCategory&&($=t.adjustForMissingColumns($,C,i,c)),i.barX=$,i.pointWidth=C,i.tooltipPos=e.inverted?[u(a.len+a.pos-e.plotLeft-x,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-$-k/2,w]:[o.left-e.plotLeft+$+k/2,u(x+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),w],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[$,l,k,0]:[$,O,k,w])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,i=this.pointAttrToOptions||{},r=i.stroke||"borderColor",o=i["stroke-width"]||"borderWidth",a=t&&t.color||this.color,s=t&&t[r]||n[r]||a;i=t&&t.options.dashStyle||n.dashStyle;var l=t&&t[o]||n[o]||this[o]||0,c=b(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var u=t.getZone();a=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(s=u.borderColor||s,i=u.dashStyle||i,l=u.borderWidth||l)}return e&&t&&(e=(t=y(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&d(a).brighten(t.brightness).get()||a,s=t[r]||s,l=t[o]||l,i=t.dashStyle||i,c=b(t.opacity,c)),r={fill:a,stroke:s,"stroke-width":l,opacity:c},i&&(r.dashstyle=i),r},e.prototype.drawPoints=function(){var t,e=this,n=this.chart,i=e.options,r=n.renderer,o=i.animationLimit||250;e.points.forEach((function(a){var s=a.graphic,l=!!s,d=s&&n.pointCountv,"left"===g?c.y-=v?p.height:0:"center"===g?(c.x-=p.width/2,c.y-=p.height/2):"right"===g&&(c.x-=p.width,c.y-=v?0:p.height),e.placed=!0,e.alignAttr=c):(v(i),e.align(n,void 0,i),c=e.alignAttr),y&&0<=i.height?this.justifyDataLabel(e,n,c,p,i,r):h(n.crop,!0)&&(b=a.isInsidePlot(c.x,c.y,{paneCoordinates:!0,series:o})&&a.isInsidePlot(c.x+p.width,c.y+p.height,{paneCoordinates:!0,series:o})),n.shape&&!f&&e[r?"attr":"animate"]({anchorX:l?a.plotWidth-t.plotY:t.plotX,anchorY:l?a.plotHeight-t.plotX:t.plotY})}r&&d&&(e.placed=!1),b||d&&!y||(e.hide(!0),e.placed=!1)}function n(){var t=this,e=t.chart,n=t.options,i=t.points,s=t.hasRendered||0,c=e.renderer,g=n.dataLabels,m=g.animation;if(m=g.defer?r(e,m,t):{defer:0,duration:0},g=f(f(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),g),l(this,"drawDataLabels"),d(g)||g.enabled||t._hasPointLabels){var v=t.plotGroup("dataLabelsGroup","data-labels",s?"inherit":"hidden",g.zIndex||6);v.attr({opacity:+s}),!s&&(s=t.dataLabelsGroup)&&(t.visible&&v.show(!0),s[n.animation?"animate":"attr"]({opacity:1},m)),i.forEach((function(i){p(f(g,i.dlOptions||i.options&&i.options.dataLabels)).forEach((function(r,s){var l=r.enabled&&(!i.isNull||i.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(i,r),d=i.connectors?i.connectors[s]:i.connector,p=i.dataLabels?i.dataLabels[s]:i.dataLabel,f=h(r.distance,i.labelDistance),g=!p;if(l){var m=i.getLabelConfig(),y=h(r[i.formatPrefix+"Format"],r.format);m=a(y)?o(y,m,e):(r[i.formatPrefix+"Formatter"]||r.formatter).call(m,r),y=r.style;var b=r.rotation;e.styledMode||(y.color=h(r.color,y.color,t.color,"#000000"),"contrast"===y.color?(i.contrastColor=c.getContrast(i.color||t.color),y.color=!a(f)&&r.inside||0>f||n.stacking?i.contrastColor:"#000000"):delete i.contrastColor,n.cursor&&(y.cursor=n.cursor));var x={r:r.borderRadius||0,rotation:b,padding:r.padding,zIndex:1};e.styledMode||(x.fill=r.backgroundColor,x.stroke=r.borderColor,x["stroke-width"]=r.borderWidth),u(x,(function(t,e){void 0===t&&delete x[e]}))}!p||l&&a(m)&&!!p.div==!!r.useHTML||(i.dataLabel=p=i.dataLabel&&i.dataLabel.destroy(),i.dataLabels&&(1===i.dataLabels.length?delete i.dataLabels:delete i.dataLabels[s]),s||delete i.dataLabel,d&&(i.connector=i.connector.destroy(),i.connectors&&(1===i.connectors.length?delete i.connectors:delete i.connectors[s]))),l&&a(m)&&(p?x.text=m:(i.dataLabels=i.dataLabels||[],p=i.dataLabels[s]=b?c.text(m,0,-9999,r.useHTML).addClass("highcharts-data-label"):c.label(m,0,-9999,r.shape,null,null,r.useHTML,null,"data-label"),s||(i.dataLabel=p),p.addClass(" highcharts-data-label-color-"+i.colorIndex+" "+(r.className||"")+(r.useHTML?" highcharts-tracker":""))),p.options=r,p.attr(x),e.styledMode||p.css(y).shadow(r.shadow),p.added||p.add(v),r.textPath&&!r.useHTML&&(p.setTextPath(i.getDataLabelPath&&i.getDataLabelPath(p)||i.graphic,r.textPath),i.dataLabelPath&&!r.textPath.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy())),t.alignDataLabel(i,p,r,null,g))}))}))}l(this,"afterDrawDataLabels")}function i(t,e,n,i,r,o){var a=this.chart,s=e.align,l=e.verticalAlign,d=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var u=e.y;u=void 0===u?0:u;var h=(n.x||0)+d;if(0>h){"right"===s&&0<=c?(e.align="left",e.inside=!0):c-=h;var p=!0}return(h=(n.x||0)+i.width-d)>a.plotWidth&&("left"===s&&0>=c?(e.align="right",e.inside=!0):c+=a.plotWidth-h,p=!0),0>(h=n.y+d)&&("bottom"===l&&0<=u?(e.verticalAlign="top",e.inside=!0):u-=h,p=!0),(h=(n.y||0)+i.height-d)>a.plotHeight&&("top"===l&&0>=u?(e.verticalAlign="bottom",e.inside=!0):u+=a.plotHeight-h,p=!0),p&&(e.x=c,e.y=u,t.placed=!o,t.align(e,void 0,r)),p}function f(t,e){var n,i=[];if(d(t)&&!d(e))i=t.map((function(t){return c(t,e)}));else if(d(e)&&!d(t))i=e.map((function(e){return c(t,e)}));else if(d(t)||d(e))for(n=Math.max(t.length,e.length);n--;)i[n]=c(t[n],e[n]);else i=c(t,e);return i}function g(t,e,n,i,r){var o=this.chart,a=o.inverted,s=this.xAxis,l=s.reversed,d=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=a?r.x:l?-d-t:s.width-d+t,e.startYPos=a?l?this.yAxis.height-d+t:-d-t:r.y,i?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var m=[];t.compose=function(t){if(-1===m.indexOf(t)){var r=t.prototype;m.push(t),r.alignDataLabel=e,r.drawDataLabels=n,r.justifyDataLabel=i,r.setDataLabelStartPos=g}}}(i||(i={})),i})),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=e.series,o=n.merge,a=n.pick;return function(e){function n(t,e,n,i,s){var l=this.chart.inverted,d=t.series,c=(d.xAxis?d.xAxis.len:this.chart.plotSizeX)||0;d=(d.yAxis?d.yAxis.len:this.chart.plotSizeY)||0;var u=t.dlBox||t.shapeArgs,h=a(t.below,t.plotY>a(this.translatedThreshold,d)),p=a(n.inside,!!this.options.stacking);u&&(0>(i=o(u)).y&&(i.height+=i.y,i.y=0),0<(u=i.y+i.height-d)&&u {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),n}(e)).prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(i,"afterTranslate",(function(){this.applyJitter()})),n.registerSeriesType("scatter",i),i})),e(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.deg2rad,o=n.isNumber,a=n.pick,s=n.relativeLength;return function(t){t.getCenter=function(){var t=this.options,n=this.chart,i=2*(t.slicedOffset||0),r=n.plotWidth-2*i,o=n.plotHeight-2*i,l=t.center,d=Math.min(r,o),c=t.size,u=t.innerSize||0;for("string"==typeof c&&(c=parseFloat(c)),"string"==typeof u&&(u=parseFloat(u)),t=[a(l[0],"50%"),a(l[1],"50%"),a(c&&0>c?void 0:t.size,"100%"),a(u&&0>u?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),l=0;4>l;++l)c=t[l],n=2>l||2===l&&/%$/.test(c),t[l]=s(c,[r,o,d,t[2]][l])+(n?i:0);return t[3]>t[2]&&(t[3]=t[2]),t},t.getStartAndEndRadians=function(t,e){return t=o(t)?t:0,e=o(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}(i||(i={})),i})),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.setAnimation,o=n.addEvent,a=n.defined;t=n.extend;var s=n.isNumber,l=n.pick,d=n.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return i(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,i=e.connectorShape;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=l(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return o(this,"select",n),o(this,"unselect",n),this},e.prototype.isValid=function(){return s(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,i=this.series,r=i.chart,o=i.options.ignoreHiddenPoint;e=l(e,o),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,i.options.data[i.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](t)})),this.legendItem&&r.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(i.isDirty=!0),e&&r.redraw())},e.prototype.slice=function(t,e,n){var i=this.series;r(n,i.chart),l(e,!0),this.sliced=this.options.sliced=a(t)?t:!this.sliced,i.options.data[i.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,n){var i=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*i.x-e.x,2*i.y-e.y,i.x,i.y]:["L",i.x,i.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,n){e=e.touchingSliceAt;var i=this.series,r=i.center[0],o=i.chart.plotWidth,a=i.chart.plotLeft;i=t.alignment;var s=this.shapeArgs.r;return n=d(n.crookDistance,1),n=["L",o="left"===i?r+s+(o+a-r-s)*(1-n):a+(r-s)*n,t.y],r=!0,("left"===i?o>t.x||oe.x)&&(r=!1),t=[["M",t.x,t.y]],r&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e})),e(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Series/Pie/PiePoint.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l){var d=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=t.getStartAndEndRadians;n=n.noop;var u=l.clamp,h=l.extend,p=l.fireEvent,f=l.merge,g=l.pick,m=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return d(e,t),e.prototype.animate=function(t){var e=this,n=e.points,i=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,r=t.shapeArgs;n&&r&&(n.attr({r:g(t.startR,e.center&&e.center[3]/2),start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var i=this.center[0],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(i,r,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:s.arc(i,r,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,n){var i=this.center,r=this.radii?this.radii[n.index]||0:i[2]/2;return t=Math.asin(u((t-i[1])/(r+n.labelDistance),-1,1)),i[0]+(e?-1:1)*Math.cos(t)*(r+n.labelDistance)+(01.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(v)*n),translateY:Math.round(Math.sin(v)*n)},y=Math.cos(v)*t[2]/2;var b=Math.sin(v)*t[2]/2;h.tooltipPos=[t[0]+.7*y,t[1]+.7*b],h.half=v<-Math.PI/2||v>Math.PI/2?1:0,h.angle=v,f=Math.min(i,h.labelDistance/5),h.labelPosition={natural:{x:t[0]+y+Math.cos(v)*h.labelDistance,y:t[1]+b+Math.sin(v)*h.labelDistance},final:{},alignment:0>h.labelDistance?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(v)*f,y:t[1]+b+Math.sin(v)*f},touchingSliceAt:{x:t[0]+y,y:t[1]+b}}}}p(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,i=this.options.ignoreHiddenPoint,r=0;for(t=0;tk&&(t.dataLabel.css({width:Math.round(.7*k)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),A.forEach((function(e,n){var l,d=e.length,h=[];if(d){if(y.sortByAngle(e,n-.5),0w-O&&0===n&&(b=Math.round(c+r-w+O),M[1]=Math.max(b,M[1])),0>f-a/2?M[0]=Math.max(Math.round(a/2-f),M[0]):f+a/2>C&&(M[2]=Math.max(Math.round(f+a/2-C),M[2])),i.sideOverflow=b)}}})),0===d(M)||this.verifyDataLabelOverflow(M))&&(this.placeDataLabels(),this.points.forEach((function(t){var r;(v=h(_,t.options.dataLabels),e=p(v.connectorWidth,1))&&(n=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0e.bottom-2?i:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,i){return t=t.getBBox().width,e?t+i:n-t-i},alignToConnectors:function(t,e,n,i){var r,o=0;return t.forEach((function(t){(r=t.dataLabel.getBBox().width)>o&&(o=r)})),e?o+i:n-o-i}};e.compose=function(e){t.compose(l),-1===o.indexOf(e)&&(o.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=a,e.drawDataLabels=n,e.placeDataLabels=i,e.verifyDataLabelOverflow=r)}}(o||(o={})),o})),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e){var n=!1;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})})),r(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0}return n}var i=e.addEvent,r=e.fireEvent,o=e.isArray,a=e.isNumber,s=e.objectEach,l=e.pick;i(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&s(t.stacking.stacks,(function(t){s(t,(function(t){t.label&&"hidden"!==t.label.visibility&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(i){var r=i.options.dataLabels;i.visible&&(!1!==r.enabled||i._hasPointLabels)&&((r=function(i){return i.forEach((function(i){i.visible&&(o(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach((function(r){var o=r.options;r.labelrank=l(o.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),o.allowOverlap?(r.oldOpacity=r.opacity,r.newOpacity=1,n(r,t)):e.push(r)}))}))})(i.nodes||[]),r(i.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,i,o,s=this,l=t.length,d=s.renderer,c=!1,u=function(t){var e,n,i=t.box?0:t.padding||0,r=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=d.fontMetrics(null,t.element).h);var l=t.width-2*i;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?r=+n*l:a(t.x)&&Math.round(t.x)!==t.translateX&&(r=t.x-t.translateX),{x:o.x+(s.translateX||0)+i-(r||0),y:o.y+(s.translateY||0)+i-e,width:t.width-2*i,height:t.height-2*i}}};for(i=0;i=h.x+h.width||p.x+p.width<=h.x||p.y>=h.y+h.height||p.y+p.height<=h.y||((u.labelrank=l(n.minWidth,0)&&this.chartHeight>=l(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,r=this.options.responsive,o=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach((function(t){void 0===t._id&&(t._id=c()),n.matchResponsiveRule(t,s)}),this),(e=a.apply(void 0,s.map((function(t){return i((r||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions})))).isResponsiveOptions=!0,(s=s.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),s?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/DefaultOptions.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],(function(t,e,n,i,r,o,a,s,l,d,c,u,h,p,f,g,m,v,y,b,x,_,O,w,C,$,k,S,E,j,A,M,P){return t.animate=r.animate,t.animObject=r.animObject,t.getDeferredAnimation=r.getDeferredAnimation,t.setAnimation=r.setAnimation,t.stop=r.stop,t.timers=i.timers,t.AST=o,t.Axis=h,t.Chart=O,t.chart=O.chart,t.Fx=i,t.Legend=_,t.PlotLineOrBand=g,t.Point=y,t.Pointer=x.isRequired()?x:b,t.Series=w,t.SVGElement=l,t.SVGRenderer=d,t.Tick=m,t.Time=P,t.Tooltip=v,t.Color=M,t.color=M.parse,u.compose(d),c.compose(l),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=a.dateFormat,t.format=a.format,t.numberFormat=a.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=s.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=C.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,k.compose($),j.compose(w),p.compose(h),f.compose(h),E.compose(S),g.compose(h),A.compose(O),t})),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return B})),n.d(e,"c",(function(){return it})),n.d(e,"d",(function(){return Z})),n.d(e,"e",(function(){return K})),n.d(e,"f",(function(){return ot})),n.d(e,"g",(function(){return J})),n.d(e,"h",(function(){return rt})),n.d(e,"i",(function(){return at})),n.d(e,"j",(function(){return H})),n.d(e,"k",(function(){return M})),n.d(e,"l",(function(){return E})),n.d(e,"m",(function(){return tt})),n.d(e,"n",(function(){return k})),n.d(e,"o",(function(){return D})),n.d(e,"p",(function(){return lt})),n.d(e,"q",(function(){return dt})),n.d(e,"r",(function(){return ct})),n.d(e,"s",(function(){return A})),n.d(e,"t",(function(){return mt})),n.d(e,"u",(function(){return vt})),n.d(e,"v",(function(){return yt})),n.d(e,"w",(function(){return z})),n.d(e,"x",(function(){return xt})),n.d(e,"y",(function(){return F})),n.d(e,"z",(function(){return bt}));var i=n(56),r=n(21),o=n(45),a=n(35),s=n(36),l=n(37),d=n(38),c=n(39),u=n(4),h=n(6),p=n(0),f=n(20),g=n(28),m=n(13),v=n.n(m),y=n(50),b=n(29),x=n(60),_=n(99),O=n(100),w=n.n(O);function C(t){var e=t.maxHeight,n=t.menuEl,i=t.minHeight,r=t.placement,o=t.shouldScroll,a=t.isFixedPosition,s=t.theme.spacing,l=Object(b.a)(n),d={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return d;var c=l.getBoundingClientRect().height,u=n.getBoundingClientRect(),h=u.bottom,p=u.height,f=u.top,g=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,v=Object(b.b)(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),_=g-x,O=m-f,w=_+v,C=c-v-f,$=h-m+v+y,k=v+f-x;switch(r){case"auto":case"bottom":if(O>=p)return{placement:"bottom",maxHeight:e};if(C>=p&&!a)return o&&Object(b.c)(l,$,160),{placement:"bottom",maxHeight:e};if(!a&&C>=i||a&&O>=i)return o&&Object(b.c)(l,$,160),{placement:"bottom",maxHeight:a?O-y:C-y};if("auto"===r||a){var S=e,E=a?_:w;return E>=i&&(S=Math.min(E-y-s.controlHeight,e)),{placement:"top",maxHeight:S}}if("bottom"===r)return Object(b.m)(l,$),{placement:"bottom",maxHeight:e};break;case"top":if(_>=p)return{placement:"top",maxHeight:e};if(w>=p&&!a)return o&&Object(b.c)(l,k,160),{placement:"top",maxHeight:e};if(!a&&w>=i||a&&_>=i){var j=e;return(!a&&w>=i||a&&_>=i)&&(j=a?_-x:w-x),o&&Object(b.c)(l,k,160),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return d}var $=function(t){return"auto"===t?"bottom":t},k=function(t){var e,n=t.placement,i=t.theme,r=i.borderRadius,o=i.spacing,a=i.colors;return e={label:"menu"},Object(h.a)(e,function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(n),"100%"),Object(h.a)(e,"backgroundColor",a.neutral0),Object(h.a)(e,"borderRadius",r),Object(h.a)(e,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(h.a)(e,"marginBottom",o.menuGutter),Object(h.a)(e,"marginTop",o.menuGutter),Object(h.a)(e,"position","absolute"),Object(h.a)(e,"width","100%"),Object(h.a)(e,"zIndex",1),e},S=function(t){function e(){var t,n;Object(a.a)(this,e);for(var i=arguments.length,r=new Array(i),s=0;s-1}function c(t){return d(t)?window.pageYOffset:t.scrollTop}function u(t,e){d(t)?window.scrollTo(0,e):t.scrollTop=e}function h(t){var e=getComputedStyle(t),n="absolute"===e.position,i=/(auto|scroll)/,r=document.documentElement;if("fixed"===e.position)return r;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),(!n||"static"!==e.position)&&i.test(e.overflow+e.overflowY+e.overflowX))return o;return r}function p(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,o=c(t),a=e-o,s=10,l=0;function d(){var e=p(l+=s,o,a,n);u(t,e),ln.bottom?u(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+r,t.scrollHeight)):i.top-rt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0?"_":"";return t===t.toLowerCase()?t:n+t.toLowerCase()})).join("")}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(16);e.a=function(t){var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.data,u=void 0===c?{}:c,h=t.id,p=t.lineStyle,f=void 0===p?"solid":p,g=t.orientation,m=void 0===g?"horizontal":g,v=t.text,y=t.dark,b=void 0!==y&&y,x=t.variant,_=void 0===x?"card":x,O=Object(s.a)(n),w=Object(s.c)(u),C=a()(Object(s.b)("pb_section_separator_kit",_,m,"dashed"===f?f:""),Object(l.c)(t),o);return r.a.createElement("div",Object.assign({},O,w,{className:C,id:h}),i&&i||v&&r.a.createElement("span",null,r.a.createElement(d.a,{text:v,dark:b})))}},function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(40);function r(t){return Object(i.a)(t).getComputedStyle(t)}},function(t,e,n){"use strict";function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:document;o(this,t),this.matchDelegate=e,this.target=n}var e,n,r;return e=t,(n=[{key:"mutationObserver",get:function(){var t=this;return this._mutationObserver=this._mutationObserver||new MutationObserver((function(e){return t.processMutationList(e)}))}},{key:"start",value:function(){this.mutationObserver.observe(this.target,{attributes:!0,childList:!0,subtree:!0}),this.catchup()}},{key:"stop",value:function(){this.mutationObserverdisconnect()}},{key:"catchup",value:function(){this.handleAdditions(this.matchDelegate.matches(this.target))}},{key:"processMutationList",value:function(t){var e,n=i(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;"attributes"==r.type?this.processAttributeChange(r.target):"childList"==r.type&&(this.processRemovedNodes(Array.from(r.removedNodes)),this.processAddedNodes(Array.from(r.addedNodes)))}}catch(t){n.e(t)}finally{n.f()}}},{key:"processAttributeChange",value:function(t){if(t.nodeType===Node.ELEMENT_NODE){var e=this.matchDelegate.matches(t);if(0===e.length)return this.matchDelegate.removeMatch(t);this.handleAdditions(e)}}},{key:"processRemovedNodes",value:function(t){var e,n=i(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.nodeType===Node.ELEMENT_NODE&&this.handleRemovals(this.matchDelegate.matches(r))}}catch(t){n.e(t)}finally{n.f()}}},{key:"processAddedNodes",value:function(t){var e,n=i(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.nodeType===Node.ELEMENT_NODE&&this.handleAdditions(this.matchDelegate.matches(r))}}catch(t){n.e(t)}finally{n.f()}}},{key:"handleRemovals",value:function(t){var e,n=i(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.matchDelegate.removeMatch(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"handleAdditions",value:function(t){var e,n=i(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.matchDelegate.addMatch(r)}}catch(t){n.e(t)}finally{n.f()}}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function l(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0,f=c-u-d,g=!1;f>e&&n.isBottom&&(o&&o(t),n.isBottom=!1),p&&n.isTop&&(s&&s(t),n.isTop=!1),p&&e>f?(r&&!n.isBottom&&r(t),h.scrollTop=c,g=!0,n.isBottom=!0):!p&&-e>d&&(a&&!n.isTop&&a(t),h.scrollTop=0,g=!0,n.isTop=!0),g&&n.cancelScroll(t)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onWheel",(function(t){n.handleEventDelta(t,t.deltaY)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onTouchStart",(function(t){n.touchStart=t.changedTouches[0].clientY})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onTouchMove",(function(t){var e=n.touchStart-t.changedTouches[0].clientY;n.handleEventDelta(t,e)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getScrollTarget",(function(t){n.scrollTarget=t})),n}return Object(u.a)(e,t),Object(l.a)(e,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(t){t&&("function"==typeof t.addEventListener&&t.addEventListener("wheel",this.onWheel,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.addEventListener&&t.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(t){"function"==typeof t.removeEventListener&&t.removeEventListener("wheel",this.onWheel,!1),"function"==typeof t.removeEventListener&&t.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof t.removeEventListener&&t.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return g.a.createElement(j,{innerRef:this.getScrollTarget},this.props.children)}}]),e}(f.Component),W=function(t){function e(){return Object(s.a)(this,e),Object(d.a)(this,Object(c.a)(e).apply(this,arguments))}return Object(u.a)(e,t),Object(l.a)(e,[{key:"render",value:function(){var t=this.props,e=t.isEnabled,n=Object(i.a)(t,["isEnabled"]);return e?g.a.createElement(z,n):this.props.children}}]),e}(f.Component);Object(p.a)(W,"defaultProps",{isEnabled:!0});var H=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isSearchable,i=e.isMulti,r=e.label,o=e.isDisabled;switch(t){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(r||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Y=function(t,e){var n=e.value,i=e.isDisabled;if(n)switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,i?" is disabled. Select another option.":", selected.")}},U=function(t){return!!t.isDisabled},G={clearIndicator:x.d,container:x.b,control:x.c,dropdownIndicator:x.e,group:x.h,groupHeading:x.f,indicatorsContainer:x.j,indicatorSeparator:x.g,input:x.i,loadingIndicator:x.m,loadingMessage:x.k,menu:x.n,menuList:x.l,menuPortal:x.o,multiValue:x.p,multiValueLabel:x.q,multiValueRemove:x.r,noOptionsMessage:x.s,option:x.t,placeholder:x.u,singleValue:x.v,valueContainer:x.w};var X,V={borderRadius:4,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%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},q={backspaceRemovesValue:!0,blurInputOnSelect:Object(b.i)(),captureMenuScroll:!Object(b.i)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){var n=Object(a.a)({ignoreCase:!0,ignoreAccents:!0,stringify:$,trim:!0,matchFrom:"any"},X),i=n.ignoreCase,r=n.ignoreAccents,o=n.stringify,s=n.trim,l=n.matchFrom,d=s?C(e):e,c=s?C(o(t)):o(t);return i&&(d=d.toLowerCase(),c=c.toLowerCase()),r&&(d=w(d),c=w(c)),"start"===l?c.substr(0,d.length)===d:c.indexOf(d)>-1},formatGroupLabel:function(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:U,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(b.d)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},K=1,Z=function(t){function e(t){var n;Object(s.a)(this,e),n=Object(d.a)(this,Object(c.a)(e).call(this,t)),Object(p.a)(Object(h.a)(Object(h.a)(n)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),Object(p.a)(Object(h.a)(Object(h.a)(n)),"blockOptionHover",!1),Object(p.a)(Object(h.a)(Object(h.a)(n)),"isComposing",!1),Object(p.a)(Object(h.a)(Object(h.a)(n)),"clearFocusValueOnUpdate",!1),Object(p.a)(Object(h.a)(Object(h.a)(n)),"commonProps",void 0),Object(p.a)(Object(h.a)(Object(h.a)(n)),"components",void 0),Object(p.a)(Object(h.a)(Object(h.a)(n)),"hasGroups",!1),Object(p.a)(Object(h.a)(Object(h.a)(n)),"initialTouchX",0),Object(p.a)(Object(h.a)(Object(h.a)(n)),"initialTouchY",0),Object(p.a)(Object(h.a)(Object(h.a)(n)),"inputIsHiddenAfterUpdate",void 0),Object(p.a)(Object(h.a)(Object(h.a)(n)),"instancePrefix",""),Object(p.a)(Object(h.a)(Object(h.a)(n)),"openAfterFocus",!1),Object(p.a)(Object(h.a)(Object(h.a)(n)),"scrollToFocusedOptionOnUpdate",!1),Object(p.a)(Object(h.a)(Object(h.a)(n)),"userIsDragging",void 0),Object(p.a)(Object(h.a)(Object(h.a)(n)),"controlRef",null),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getControlRef",(function(t){n.controlRef=t})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"focusedOptionRef",null),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getFocusedOptionRef",(function(t){n.focusedOptionRef=t})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"menuListRef",null),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getMenuListRef",(function(t){n.menuListRef=t})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"inputRef",null),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getInputRef",(function(t){n.inputRef=t})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"cacheComponents",(function(t){n.components=Object(x.x)({components:t})})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"focus",n.focusInput),Object(p.a)(Object(h.a)(Object(h.a)(n)),"blur",n.blurInput),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onChange",(function(t,e){var i=n.props,r=i.onChange,o=i.name;r(t,Object(a.a)({},e,{name:o}))})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"setValue",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",i=arguments.length>2?arguments[2]:void 0,r=n.props,o=r.closeMenuOnSelect,a=r.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(t,{action:e,option:i})})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"selectOption",(function(t){var e=n.props,i=e.blurInputOnSelect,r=e.isMulti,a=n.state.selectValue;if(r)if(n.isOptionSelected(t,a)){var s=n.getOptionValue(t);n.setValue(a.filter((function(t){return n.getOptionValue(t)!==s})),"deselect-option",t),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(t)}})}else n.isOptionDisabled(t,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(t),isDisabled:!0}}):(n.setValue([].concat(Object(o.a)(a),[t]),"select-option",t),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(t)}}));else n.isOptionDisabled(t,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(t),isDisabled:!0}}):(n.setValue(t,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(t)}}));i&&n.blurInput()})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"removeValue",(function(t){var e=n.state.selectValue,i=n.getOptionValue(t),r=e.filter((function(t){return n.getOptionValue(t)!==i}));n.onChange(r.length?r:null,{action:"remove-value",removedValue:t}),n.announceAriaLiveSelection({event:"remove-value",context:{value:t?n.getOptionLabel(t):""}}),n.focusInput()})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"clearValue",(function(){var t=n.props.isMulti;n.onChange(t?[]:null,{action:"clear"})})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"popValue",(function(){var t=n.state.selectValue,e=t[t.length-1],i=t.slice(0,t.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:e?n.getOptionLabel(e):""}}),n.onChange(i.length?i:null,{action:"pop-value",removedValue:e})})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getOptionLabel",(function(t){return n.props.getOptionLabel(t)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getOptionValue",(function(t){return n.props.getOptionValue(t)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getStyles",(function(t,e){var i=G[t](e);i.boxSizing="border-box";var r=n.props.styles[t];return r?r(i,e):i})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getElementId",(function(t){return"".concat(n.instancePrefix,"-").concat(t)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"getActiveDescendentId",(function(){var t=n.props.menuIsOpen,e=n.state,i=e.menuOptions,r=e.focusedOption;if(r&&t){var o=i.focusable.indexOf(r),a=i.render[o];return a&&a.key}})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"announceAriaLiveSelection",(function(t){var e=t.event,i=t.context;n.setState({ariaLiveSelection:Y(e,i)})})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"announceAriaLiveContext",(function(t){var e=t.event,i=t.context;n.setState({ariaLiveContext:H(e,Object(a.a)({},i,{label:n.props["aria-label"]}))})})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onMenuMouseDown",(function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),n.focusInput())})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onMenuMouseMove",(function(t){n.blockOptionHover=!1})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onControlMouseDown",(function(t){var e=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==t.target.tagName&&n.onMenuClose():e&&n.openMenu("first"):(e&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==t.target.tagName&&t.preventDefault()})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onDropdownIndicatorMouseDown",(function(t){if(!(t&&"mousedown"===t.type&&0!==t.button||n.props.isDisabled)){var e=n.props,i=e.isMulti,r=e.menuIsOpen;n.focusInput(),r?(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()):n.openMenu("first"),t.preventDefault(),t.stopPropagation()}})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onClearIndicatorMouseDown",(function(t){t&&"mousedown"===t.type&&0!==t.button||(n.clearValue(),t.stopPropagation(),n.openAfterFocus=!1,"touchend"===t.type?n.focusInput():setTimeout((function(){return n.focusInput()})))})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onScroll",(function(t){"boolean"==typeof n.props.closeMenuOnScroll?t.target instanceof HTMLElement&&Object(b.e)(t.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(t)&&n.props.onMenuClose()})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onCompositionStart",(function(){n.isComposing=!0})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onCompositionEnd",(function(){n.isComposing=!1})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onTouchStart",(function(t){var e=t.touches.item(0);e&&(n.initialTouchX=e.clientX,n.initialTouchY=e.clientY,n.userIsDragging=!1)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onTouchMove",(function(t){var e=t.touches.item(0);if(e){var i=Math.abs(e.clientX-n.initialTouchX),r=Math.abs(e.clientY-n.initialTouchY);n.userIsDragging=i>5||r>5}})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onTouchEnd",(function(t){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(t.target)&&n.menuListRef&&!n.menuListRef.contains(t.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onControlTouchEnd",(function(t){n.userIsDragging||n.onControlMouseDown(t)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onClearIndicatorTouchEnd",(function(t){n.userIsDragging||n.onClearIndicatorMouseDown(t)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onDropdownIndicatorTouchEnd",(function(t){n.userIsDragging||n.onDropdownIndicatorMouseDown(t)})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"handleInputChange",(function(t){var e=t.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(e,{action:"input-change"}),n.onMenuOpen()})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onInputFocus",(function(t){var e=n.props,i=e.isSearchable,r=e.isMulti;n.props.onFocus&&n.props.onFocus(t),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:i,isMulti:r}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onInputBlur",(function(t){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(t),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onOptionHover",(function(t){n.blockOptionHover||n.state.focusedOption===t||n.setState({focusedOption:t})})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"shouldHideSelectedOptions",(function(){var t=n.props,e=t.hideSelectedOptions,i=t.isMulti;return void 0===e?i:e})),Object(p.a)(Object(h.a)(Object(h.a)(n)),"onKeyDown",(function(t){var e=n.props,i=e.isMulti,r=e.backspaceRemovesValue,o=e.escapeClearsValue,a=e.inputValue,s=e.isClearable,l=e.isDisabled,d=e.menuIsOpen,c=e.onKeyDown,u=e.tabSelectsValue,h=e.openMenuOnFocus,p=n.state,f=p.focusedOption,g=p.focusedValue,m=p.selectValue;if(!(l||"function"==typeof c&&(c(t),t.defaultPrevented))){switch(n.blockOptionHover=!0,t.key){case"ArrowLeft":if(!i||a)return;n.focusValue("previous");break;case"ArrowRight":if(!i||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)n.removeValue(g);else{if(!r)return;i?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(t.shiftKey||!d||!u||!f||h&&n.isOptionSelected(f,m))return;n.selectOption(f);break;case"Enter":if(229===t.keyCode)break;if(d){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":d?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(a)return;if(!d){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":d?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":d?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!d)return;n.focusOption("pageup");break;case"PageDown":if(!d)return;n.focusOption("pagedown");break;case"Home":if(!d)return;n.focusOption("first");break;case"End":if(!d)return;n.focusOption("last");break;default:return}t.preventDefault()}}));var i=t.value;n.cacheComponents=Object(m.a)(n.cacheComponents,x.y).bind(Object(h.a)(Object(h.a)(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++K);var r=Object(b.f)(i),l=t.menuIsOpen?n.buildMenuOptions(t,r):{render:[],focusable:[]};return n.state.menuOptions=l,n.state.selectValue=r,n}return Object(u.a)(e,t),Object(l.a)(e,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=this.props,n=e.options,i=e.value,r=e.menuIsOpen,o=e.inputValue;if(this.cacheComponents(t.components),t.value!==i||t.options!==n||t.menuIsOpen!==r||t.inputValue!==o){var a=Object(b.f)(t.value),s=t.menuIsOpen?this.buildMenuOptions(t,a):{render:[],focusable:[]},l=this.getNextFocusedValue(a),d=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:d,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isDisabled,i=e.menuIsOpen,r=this.state.isFocused;(r&&!n&&t.isDisabled||r&&i&&!t.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&Object(b.h)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var t=this.props,e=t.isSearchable,n=t.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:e,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=this.state,n=e.menuOptions,i=e.selectValue,r=e.isFocused,o=this.props.isMulti,a="first"===t?0:n.focusable.length-1;if(!o){var s=n.focusable.indexOf(i[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[a]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(t){var e=this.props,n=e.isMulti,i=e.isSearchable,r=this.state,o=r.selectValue,a=r.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,d=-1;if(o.length){switch(t){case"previous":d=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props.pageSize,n=this.state,i=n.focusedOption,r=n.menuOptions,o=r.focusable;if(o.length){var a=0,s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"menu"})),"up"===t?a=s>0?s-1:o.length-1:"down"===t?a=(s+1)%o.length:"pageup"===t?(a=s-e)<0&&(a=0):"pagedown"===t?(a=s+e)>o.length-1&&(a=o.length-1):"last"===t&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:U(o[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(V):Object(a.a)({},V,this.props.theme):V}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=this.getStyles,n=this.setValue,i=this.selectOption,r=this.props,o=r.classNamePrefix,a=r.isMulti,s=r.isRtl,l=r.options,d=this.state.selectValue,c=this.hasValue();return{cx:b.j.bind(null,o),clearValue:t,getStyles:e,getValue:function(){return d},hasValue:c,isMulti:a,isRtl:s,options:l,selectOption:i,setValue:n,selectProps:r,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(t){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var e=this.state,n=e.focusedValue,i=e.selectValue.indexOf(n);if(i>-1){if(t.indexOf(n)>-1)return n;if(i-1?e:t[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var t=this.props,e=t.isClearable,n=t.isMulti;return void 0===e?n:e}},{key:"isOptionDisabled",value:function(t,e){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(t,e)}},{key:"isOptionSelected",value:function(t,e){var n=this;if(e.indexOf(t)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(t,e);var i=this.getOptionValue(t);return e.some((function(t){return n.getOptionValue(t)===i}))}},{key:"filterOption",value:function(t,e){return!this.props.filterOption||this.props.filterOption(t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:n,selectValue:i})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(t,e){var n=this,i=t.inputValue,r=void 0===i?"":i,o=t.options,a=function(t,i){var o=n.isOptionDisabled(t,e),a=n.isOptionSelected(t,e),s=n.getOptionLabel(t),l=n.getOptionValue(t);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:s,value:l,data:t},r))){var d=o?void 0:function(){return n.onOptionHover(t)},c=o?void 0:function(){return n.selectOption(t)},u="".concat(n.getElementId("option"),"-").concat(i);return{innerProps:{id:u,onClick:c,onMouseMove:d,onMouseOver:d,tabIndex:-1},data:t,isDisabled:o,isSelected:a,key:u,label:s,type:"option",value:l}}};return o.reduce((function(t,e,i){if(e.options){n.hasGroups||(n.hasGroups=!0);var r=e.options.map((function(e,n){var r=a(e,"".concat(i,"-").concat(n));return r&&t.focusable.push(e),r})).filter(Boolean);if(r.length){var o="".concat(n.getElementId("group"),"-").concat(i);t.render.push({type:"group",key:o,data:e,options:r})}}else{var s=a(e,"".concat(i));s&&(t.render.push(s),t.focusable.push(e))}return t}),{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var t=this.state,e=t.ariaLiveContext,n=t.selectValue,i=t.focusedValue,r=t.focusedOption,o=this.props,a=o.options,s=o.menuIsOpen,l=o.inputValue,d=o.screenReaderStatus,c=i?function(t){var e=t.focusedValue,n=t.getOptionLabel,i=t.selectValue;return"value ".concat(n(e)," focused, ").concat(i.indexOf(e)+1," of ").concat(i.length,".")}({focusedValue:i,getOptionLabel:this.getOptionLabel,selectValue:n}):"",u=r&&s?function(t){var e=t.focusedOption,n=t.getOptionLabel,i=t.options;return"option ".concat(n(e)," focused").concat(e.isDisabled?" disabled":"",", ").concat(i.indexOf(e)+1," of ").concat(i.length,".")}({focusedOption:r,getOptionLabel:this.getOptionLabel,options:a}):"",h=function(t){var e=t.inputValue,n=t.screenReaderMessage;return"".concat(n).concat(e?" for search term "+e:"",".")}({inputValue:l,screenReaderMessage:d({count:this.countOptions()})});return"".concat(c," ").concat(u," ").concat(h," ").concat(e)}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,n=t.isSearchable,i=t.inputId,o=t.inputValue,a=t.tabIndex,s=this.components.Input,l=this.state.inputIsHidden,d=i||this.getElementId("input");if(!n)return g.a.createElement(E,{id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:b.l,onFocus:this.onInputFocus,readOnly:!0,disabled:e,tabIndex:a,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},u=this.commonProps,h=u.cx,p=u.theme,f=u.selectProps;return g.a.createElement(s,Object(r.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:h,getStyles:this.getStyles,id:d,innerRef:this.getInputRef,isDisabled:e,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:a,theme:p,type:"text",value:o},c))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,e=this.components,n=e.MultiValue,i=e.MultiValueContainer,o=e.MultiValueLabel,a=e.MultiValueRemove,s=e.SingleValue,l=e.Placeholder,d=this.commonProps,c=this.props,u=c.controlShouldRenderValue,h=c.isDisabled,p=c.isMulti,f=c.inputValue,m=c.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,x=v.isFocused;if(!this.hasValue()||!u)return f?null:g.a.createElement(l,Object(r.a)({},d,{key:"placeholder",isDisabled:h,isFocused:x}),m);if(p)return y.map((function(e,s){var l=e===b;return g.a.createElement(n,Object(r.a)({},d,{components:{Container:i,Label:o,Remove:a},isFocused:l,isDisabled:h,key:t.getOptionValue(e),index:s,removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault(),t.stopPropagation()}},data:e}),t.formatOptionLabel(e,"value"))}));if(f)return null;var _=y[0];return g.a.createElement(s,Object(r.a)({},d,{data:_,isDisabled:h}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.components.ClearIndicator,e=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return g.a.createElement(t,Object(r.a)({},e,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.components.LoadingIndicator,e=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!t||!o)return null;return g.a.createElement(t,Object(r.a)({},e,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.components,e=t.DropdownIndicator,n=t.IndicatorSeparator;if(!e||!n)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return g.a.createElement(n,Object(r.a)({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.components.DropdownIndicator;if(!t)return null;var e=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return g.a.createElement(t,Object(r.a)({},e,{innerProps:o,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,e=this.components,n=e.Group,o=e.GroupHeading,a=e.Menu,s=e.MenuList,l=e.MenuPortal,d=e.LoadingMessage,c=e.NoOptionsMessage,u=e.Option,h=this.commonProps,p=this.state,f=p.focusedOption,m=p.menuOptions,v=this.props,y=v.captureMenuScroll,b=v.inputValue,_=v.isLoading,O=v.loadingMessage,w=v.minMenuHeight,C=v.maxMenuHeight,$=v.menuIsOpen,k=v.menuPlacement,S=v.menuPosition,E=v.menuPortalTarget,j=v.menuShouldBlockScroll,A=v.menuShouldScrollIntoView,M=v.noOptionsMessage,P=v.onMenuScrollToTop,T=v.onMenuScrollToBottom;if(!$)return null;var D,L=function(e){var n=f===e.data;return e.innerRef=n?t.getFocusedOptionRef:void 0,g.a.createElement(u,Object(r.a)({},h,e,{isFocused:n}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())D=m.render.map((function(e){if("group"===e.type){e.type;var a=Object(i.a)(e,["type"]),s="".concat(e.key,"-heading");return g.a.createElement(n,Object(r.a)({},h,a,{Heading:o,headingProps:{id:s},label:t.formatGroupLabel(e.data)}),e.options.map((function(t){return L(t)})))}if("option"===e.type)return L(e)}));else if(_){var I=O({inputValue:b});if(null===I)return null;D=g.a.createElement(d,h,I)}else{var N=M({inputValue:b});if(null===N)return null;D=g.a.createElement(c,h,N)}var R={minMenuHeight:w,maxMenuHeight:C,menuPlacement:k,menuPosition:S,menuShouldScrollIntoView:A},F=g.a.createElement(x.a,Object(r.a)({},h,R),(function(e){var n=e.ref,i=e.placerProps,o=i.placement,l=i.maxHeight;return g.a.createElement(a,Object(r.a)({},h,R,{innerRef:n,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:_,placement:o}),g.a.createElement(W,{isEnabled:y,onTopArrive:P,onBottomArrive:T},g.a.createElement(B,{isEnabled:j},g.a.createElement(s,Object(r.a)({},h,{innerRef:t.getMenuListRef,isLoading:_,maxHeight:l}),D))))}));return E||"fixed"===S?g.a.createElement(l,Object(r.a)({},h,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:S}),F):F}},{key:"renderFormField",value:function(){var t=this,e=this.props,n=e.delimiter,i=e.isDisabled,r=e.isMulti,o=e.name,a=this.state.selectValue;if(o&&!i){if(r){if(n){var s=a.map((function(e){return t.getOptionValue(e)})).join(n);return g.a.createElement("input",{name:o,type:"hidden",value:s})}var l=a.length>0?a.map((function(e,n){return g.a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:t.getOptionValue(e)})})):g.a.createElement("input",{name:o,type:"hidden"});return g.a.createElement("div",null,l)}var d=a[0]?this.getOptionValue(a[0]):"";return g.a.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?g.a.createElement(S,{"aria-live":"polite"},g.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),g.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var t=this.components,e=t.Control,n=t.IndicatorsContainer,i=t.SelectContainer,o=t.ValueContainer,a=this.props,s=a.className,l=a.id,d=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused,h=this.commonProps=this.getCommonProps();return g.a.createElement(i,Object(r.a)({},h,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:u}),this.renderLiveRegion(),g.a.createElement(e,Object(r.a)({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:u,menuIsOpen:c}),g.a.createElement(o,Object(r.a)({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),g.a.createElement(n,Object(r.a)({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),e}(f.Component);Object(p.a)(Z,"defaultProps",q)},function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var i=n(11),r=n(40),o=n(51),a=n(103),s=n(144);var l=n(57),d=n(104),c=n(32);var u=n(109),h=n(78),p=n(25),f=n(73),g=n(83),m=n(145),v=n(46);function y(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function b(t,e,n){return e===i.o?y(function(t,e){var n=Object(r.a)(t),i=Object(o.a)(t),l=n.visualViewport,d=i.clientWidth,c=i.clientHeight,u=0,h=0;if(l){d=l.width,c=l.height;var p=Object(s.a)();(p||!p&&"fixed"===e)&&(u=l.offsetLeft,h=l.offsetTop)}return{width:d,height:c,x:u+Object(a.a)(t),y:h}}(t,n)):Object(p.a)(e)?function(t,e){var n=Object(f.a)(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):y(function(t){var e,n=Object(o.a)(t),i=Object(d.a)(t),r=null==(e=t.ownerDocument)?void 0:e.body,s=Object(c.a)(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=Object(c.a)(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),h=-i.scrollLeft+Object(a.a)(t),p=-i.scrollTop;return"rtl"===Object(l.a)(r||n).direction&&(h+=Object(c.a)(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:u,x:h,y:p}}(Object(o.a)(t)))}function x(t,e,n,i){var r="clippingParents"===e?function(t){var e=Object(u.a)(Object(g.a)(t)),n=["absolute","fixed"].indexOf(Object(l.a)(t).position)>=0&&Object(p.b)(t)?Object(h.a)(t):t;return Object(p.a)(n)?e.filter((function(t){return Object(p.a)(t)&&Object(m.a)(t,n)&&"body"!==Object(v.a)(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(e,n){var r=b(t,n,i);return e.top=Object(c.a)(r.top,e.top),e.right=Object(c.b)(r.right,e.right),e.bottom=Object(c.b)(r.bottom,e.bottom),e.left=Object(c.a)(r.left,e.left),e}),b(t,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var _=n(138),O=n(141),w=n(143);function C(t,e){void 0===e&&(e={});var n=e,r=n.placement,a=void 0===r?t.placement:r,s=n.strategy,l=void 0===s?t.strategy:s,d=n.boundary,c=void 0===d?i.d:d,u=n.rootBoundary,h=void 0===u?i.o:u,g=n.elementContext,m=void 0===g?i.i:g,v=n.altBoundary,b=void 0!==v&&v,C=n.padding,$=void 0===C?0:C,k=Object(O.a)("number"!=typeof $?$:Object(w.a)($,i.b)),S=m===i.i?i.j:i.i,E=t.rects.popper,j=t.elements[b?S:m],A=x(Object(p.a)(j)?j:j.contextElement||Object(o.a)(t.elements.popper),c,h,l),M=Object(f.a)(t.elements.reference),P=Object(_.a)({reference:M,element:E,strategy:"absolute",placement:a}),T=y(Object.assign({},E,P)),D=m===i.i?T:M,L={top:A.top-D.top+k.top,bottom:D.bottom-A.bottom+k.bottom,left:A.left-D.left+k.left,right:D.right-A.right+k.right},I=t.modifiersData.offset;if(m===i.i&&I){var N=I[a];Object.keys(L).forEach((function(t){var e=[i.k,i.c].indexOf(t)>=0?1:-1,n=[i.m,i.c].indexOf(t)>=0?"y":"x";L[t]+=N[n]*e}))}return L}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(7);e.a=function(t){var e=t.aria,n=void 0===e?{}:e,i=t.className,o=t.dark,c=void 0!==o&&o,u=t.data,h=void 0===u?{}:u,p=t.icon,f=t.id,g=t.size,m=void 0===g?"md":g,v=t.variant,y=void 0===v?"default":v,b=Object(s.a)(n),x=Object(s.c)(h),_=a()(Object(s.b)("pb_icon_circle_kit",m,y),Object(l.c)(t),i);return r.a.createElement("div",Object.assign({},b,x,{className:_,id:f}),r.a.createElement(d.a,{dark:c,icon:p}))}},,,,,,function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(70),l=n.n(s),d=n(116),c=n.n(d),u=n(26),h=n.n(u),p=n(53),f=n(77),g=n(71),m=n(5),v=n(2);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n{point.name}":T,L=t.dataLabels,I=void 0!==L&&L,N=t.height,R=t.id,F=t.innerSize,B=void 0===F?"md":F,z=t.legend,W=void 0!==z&&z,H=t.maxPointSize,Y=void 0===H?null:H,U=t.minPointSize,G=void 0===U?null:U,X=t.startAngle,V=void 0===X?null:X,q=t.style,K=void 0===q?"pie":q,Z=t.title,J=t.tooltipHtml,Q=t.useHtml,tt=void 0!==Q&&Q,et=t.zMin,nt=void 0===et?null:et,it=t.layout,rt=void 0===it?"horizontal":it,ot=t.verticalAlign,at=void 0===ot?"bottom":ot,st=t.x,lt=void 0===st?0:st,dt=t.y,ct=void 0===dt?0:dt,ut=x(t,["align","aria","rounded","borderColor","borderWidth","chartData","children","className","colors","dark","data","dataLabelHtml","dataLabels","height","id","innerSize","legend","maxPointSize","minPointSize","startAngle","style","title","tooltipHtml","useHtml","zMin","layout","verticalAlign","x","y"]),ht=Object(v.a)(s),pt=Object(v.c)(P);c()(h.a);A?h.a.setOptions(f.a):h.a.setOptions(p.a),h.a.setOptions({tooltip:{headerFormat:null,pointFormat:J||'{point.name}: {point.y}',useHTML:tt}});var ft={sm:"35%",md:"50%",lg:"85%",none:"0%"},gt=y(Object(i.useState)({}),2),mt=gt[0],vt=gt[1];return Object(i.useEffect)((function(){var t,e=$.map((function(t){return t.y=t.value,delete t.value,t})),i={title:{text:Z},chart:{height:N,type:K,events:{render:function(t){return _(t)},redraw:function(t){return _(t)}}},legend:{align:n,verticalAlign:at,layout:rt,x:lt,y:ct},plotOptions:{pie:{colors:E.length>0?Object(g.a)(E):p.a.colors,dataLabels:{enabled:I,connectorShape:"straight",connectorWidth:3,format:D},showInLegend:W}},series:[{minPointSize:G,maxPointSize:Y,innerSize:20==C?"100%":(t=B,ft[t]),data:e,zMin:nt,startAngle:V,borderWidth:C,borderColor:O}],credits:!1};vt(Object.assign({},i))}),[$]),r.a.createElement(r.a.Fragment,null,k?r.a.createElement("div",{id:"wrapper-circle-chart-".concat(R)},r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:a()("pb_circle_chart",Object(m.c)(ut)),id:R},ht),pt),highcharts:h.a,options:mt}),r.a.createElement("div",{className:"pb-circle-chart-block"},k)):r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:a()("pb_circle_chart",Object(m.c)(ut)),id:R},ht),pt),highcharts:h.a,options:mt}))}},function(t,e,n){var i;"undefined"!=typeof self&&self,t.exports=(i=n(0),function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&Object(r.c)(s.width)/t.offsetWidth||1,d=t.offsetHeight>0&&Object(r.c)(s.height)/t.offsetHeight||1);var c=(Object(i.a)(t)?Object(o.a)(t):window).visualViewport,u=!Object(a.a)()&&n,h=(s.left+(u&&c?c.offsetLeft:0))/l,p=(s.top+(u&&c?c.offsetTop:0))/d,f=s.width/l,g=s.height/d;return{width:f,height:g,top:p,right:h+f,bottom:p+g,left:h,x:h,y:p}}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(14),l=n(7),d=n(34),c=n(5);e.a=function(t){var e=t.className,n=t.id,i=t.text,o=t.name,u=t.onClick,h=void 0===u?function(){}:u,p=t.avatarUrl,f=t.closeProps,g=void 0===f?{}:f,m=t.size,v=void 0===m?"":m,y=t.textTransform,b=void 0===y?"none":y,x=a()("pb_form_pill_kit_".concat("primary"),Object(c.c)(t),e,"small"===v?"small":null,b);return r.a.createElement("div",{className:x,id:n},o&&r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{imageUrl:p,name:o,size:"xs",status:null}),r.a.createElement(s.a,{className:"pb_form_pill_text",size:4,text:o})),i&&r.a.createElement(s.a,{className:"pb_form_pill_tag",size:4,text:i}),r.a.createElement("div",Object.assign({className:"pb_form_pill_close",onClick:h},g),r.a.createElement(l.a,{fixedWidth:!0,icon:"times"})))}},function(t,e,n){"use strict";n(56),n(21),n(79),n(45);var i=n(35),r=n(36),o=n(37),a=n(38),s=n(39),l=n(4),d=n(6),c=n(0),u=n.n(c),h=n(88),p=n(20),f=(n(28),n(50),n(61)),g=(n(60),n(99),n(100),n(84)),m=n(117),v=(c.Component,Object(g.a)(f.a));e.a=v},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(28),a=n.n(o),s=i.createContext(),l=i.createContext();function d(t){var e=t.children,n=i.useState(null),r=n[0],o=n[1],a=i.useRef(!1);i.useEffect((function(){return function(){a.current=!0}}),[]);var d=i.useCallback((function(t){a.current||o(t)}),[]);return i.createElement(s.Provider,{value:r},i.createElement(l.Provider,{value:d},e))}var c=function(t){return Array.isArray(t)?t[0]:t},u=function(t){if("function"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;it.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0}var l=n(83),d=n(123);function c(t){return Object(a.b)(t)&&"fixed"!==Object(o.a)(t).position?t.offsetParent:null}function u(t){for(var e=Object(i.a)(t),n=c(t);n&&s(n)&&"static"===Object(o.a)(n).position;)n=c(n);return n&&("html"===Object(r.a)(n)||"body"===Object(r.a)(n)&&"static"===Object(o.a)(n).position)?e:n||function(t){var e=/firefox/i.test(Object(d.a)());if(/Trident/i.test(Object(d.a)())&&Object(a.b)(t)&&"fixed"===Object(o.a)(t).position)return null;var n=Object(l.a)(t);for(Object(a.c)(n)&&(n=n.host);Object(a.b)(n)&&["html","body"].indexOf(Object(r.a)(n))<0;){var i=Object(o.a)(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}},function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?n-1:0),r=1;r=4;++i,r-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},r={animationIterationCount: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 o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(t){return 45===t.charCodeAt(1)},l=function(t){return null!=t&&"boolean"!=typeof t},d=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return s(t)?t:t.replace(o,"-$&").toLowerCase()})),c=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(a,(function(t,e,n){return h={name:e,styles:n,next:h},e}))}return 1===r[t]||s(t)||"number"!=typeof e||0===e?e:e+"px"};function u(t,e,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(t,e,n){var i="";if(Array.isArray(n))for(var r=0;rn?n:i}},,,,,,function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(12),c=n(16),u=n(49),h=n(9),p=n(7),f=n(76),g=n(41);function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&!y&&r.a.createElement(f.a,{className:"passphrase-tips",closeOnClick:"outside",placement:"right",reference:Q,shouldClosePopover:function(t){H(!t)},show:W},r.a.createElement(h.a,{align:"center",orientation:"column"},r.a.createElement(c.a,{marginBottom:"xs",text:"Tips for a good passphrase"}),r.a.createElement("div",null,T.map((function(t,e){return r.a.createElement(c.a,{key:e,marginBottom:"xs",size:"xs"},r.a.createElement(p.a,{icon:"shield-check",marginRight:"xs"}),t)})))))),r.a.createElement("div",{className:"passphrase-text-input-wrapper"},r.a.createElement(g.a,Object.assign({className:"passphrase-text-input",dark:O,marginBottom:"xs",onChange:X,placeholder:"Enter a passphrase...",type:U?"text":"password",value:V},$)),r.a.createElement("span",{className:"show-passphrase-icon",onClick:function(t){t.preventDefault(),G(!U)}},r.a.createElement(d.a,{className:U?"hide-icon":"",color:"light",dark:O},r.a.createElement(p.a,{icon:"eye-slash"})),r.a.createElement(d.a,{className:U?"":"hide-icon",color:"light",dark:O},r.a.createElement(p.a,{icon:"eye"}))))))}},,function(t,e,n){"use strict";function i(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(this.props,[]);return function(t){c.forEach((function(e){return delete t[e]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,a.default.createElement("div",{className:this.props.className,style:e},this.renderStyles(),a.default.createElement("input",i({},r,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:d},t),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:d},this.props.placeholder):null)}}]),e}(o.Component);f.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},f.defaultProps={minWidth:1,injectStyles:!0},e.default=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var i=n(73),r=n(104),o=n(40),a=n(25);var s=n(46),l=n(103),d=n(51),c=n(105),u=n(32);function h(t,e,n){void 0===n&&(n=!1);var h,p,f=Object(a.b)(e),g=Object(a.b)(e)&&function(t){var e=t.getBoundingClientRect(),n=Object(u.c)(e.width)/t.offsetWidth||1,i=Object(u.c)(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),m=Object(d.a)(e),v=Object(i.a)(t,g,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(f||!f&&!n)&&(("body"!==Object(s.a)(e)||Object(c.a)(m))&&(y=(h=e)!==Object(o.a)(h)&&Object(a.b)(h)?{scrollLeft:(p=h).scrollLeft,scrollTop:p.scrollTop}:Object(r.a)(h)),Object(a.b)(e)?((b=Object(i.a)(e,!0)).x+=e.clientLeft,b.y+=e.clientTop):m&&(b.x=Object(l.a)(m))),{x:v.left+y.scrollLeft-b.x,y:v.top+y.scrollTop-b.y,width:v.width,height:v.height}}var p=n(106),f=n(109),g=n(78),m=n(11);function v(t){var e=new Map,n=new Set,i=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(i){if(!n.has(i)){var r=e.get(i);r&&t(r)}})),i.push(r)}(t)})),i}var y={placement:"bottom",modifiers:[],strategy:"absolute"};function b(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(73),r=n(51),o=n(104);function a(t){return Object(i.a)(Object(r.a)(t)).left+Object(o.a)(t).scrollLeft}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(40);function r(t){var e=Object(i.a)(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(57);function r(t){var e=Object(i.a)(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(73);function r(t){var e=Object(i.a)(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){return/^((?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])|\uFE0F|\u200D|\u20E3)+$/.test(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n(83),r=n(105),o=n(46),a=n(25);var s=n(40);function l(t,e){var n;void 0===e&&(e=[]);var d=function t(e){return["html","body","#document"].indexOf(Object(o.a)(e))>=0?e.ownerDocument.body:Object(a.b)(e)&&Object(r.a)(e)?e:t(Object(i.a)(e))}(t),c=d===(null==(n=t.ownerDocument)?void 0:n.body),u=Object(s.a)(d),h=c?[u].concat(u.visualViewport||[],Object(r.a)(d)?d:[]):d,p=e.concat(h);return c?p:p.concat(l(Object(i.a)(h)))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.alt,n=void 0===e?"":e,i=t.aria,o=void 0===i?{}:i,d=t.backgroundColor,c=void 0===d?"light":d,u=t.backgroundPosition,h=void 0===u?"":u,p=t.backgroundRepeat,f=void 0===p?"initial":p,g=t.backgroundSize,m=void 0===g?"cover":g,v=t.children,y=t.className,b=t.customColor,x=t.data,_=void 0===x?{}:x,O=t.id,w=t.imageUrl,C=void 0===w?"":w,$=t.tag,k=void 0===$?"div":$,S=t.transition,E=void 0===S?"":S,j=Object(s.a)(o),A=Object(s.c)(_),M={backgroundImage:"url(".concat(C,")"),backgroundRepeat:"".concat(f),backgroundSize:"".concat(m),backgroundPosition:h},P={backgroundColor:b||null,backgroundPosition:"".concat(h)},T=b?"pb_background_custom_color":"pb_background_color_".concat(c),D=a()(Object(s.b)("pb_background_kit"),"lazyload",M,E,Object(l.c)(t),T,y),L="".concat(k);return r.a.createElement(r.a.Fragment,null,C?r.a.createElement(L,Object.assign({alt:n,style:M},j,A,{className:D,id:O}),v):r.a.createElement(L,Object.assign({},j,A,{className:D,id:O,style:P}),v))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(5),l=n(2),d=n(70),c=n.n(d),u=n(26),h=n.n(u),p=n(53),f=n(77),g=n(71),m=n(210),v=n.n(m);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n●{point.name}: {point.value}':A,P=t.type,T=void 0===P?"treemap":P,D=x(t,["aria","data","chartData","colors","dark","drillable","grouped","height","id","title","tooltipHtml","type"]),L=Object(l.a)(n),I=Object(l.c)(d);v()(h.a),_?h.a.setOptions(f.a):h.a.setOptions(p.a);var N={title:{text:j},chart:{height:k,type:T},credits:!1,series:[{data:u}],plotOptions:{treemap:{tooltip:{pointFormat:M},allowTraversingTree:w,colorByPoint:!$,colors:void 0!==m&&m.length>0?Object(g.a)(m):p.a.colors}}},R=y(Object(i.useState)({}),2),F=R[0],B=R[1];return Object(i.useEffect)((function(){B(Object.assign({},N))}),[u]),r.a.createElement(c.a,{containerProps:Object.assign(Object.assign({className:a()(Object(s.c)(D),"pb_treemap_chart"),id:S},L),I),highcharts:h.a,options:F})}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(75),a=n(56),s=n(21),l=n(79),d=n(45),c=n(35),u=n(36),h=n(37),p=n(38),f=n(39),g=n(4),m=n(6),v=(n(20),n(28),n(50),n(29)),y=n(61),b=(n(60),n(99),n(100),n(84)),x={cacheOptions:!1,defaultOptions:!1,filterOption:null},_=function(t){var e,n;return n=e=function(e){function n(t){var e;return Object(c.a)(this,n),e=Object(h.a)(this,Object(p.a)(n).call(this)),Object(m.a)(Object(g.a)(Object(g.a)(e)),"select",void 0),Object(m.a)(Object(g.a)(Object(g.a)(e)),"lastRequest",void 0),Object(m.a)(Object(g.a)(Object(g.a)(e)),"mounted",!1),Object(m.a)(Object(g.a)(Object(g.a)(e)),"optionsCache",{}),Object(m.a)(Object(g.a)(Object(g.a)(e)),"handleInputChange",(function(t,n){var i=e.props,r=i.cacheOptions,o=i.onInputChange,a=Object(v.k)(t,n,o);if(!a)return delete e.lastRequest,void e.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(r&&e.optionsCache[a])e.setState({inputValue:a,loadedInputValue:a,loadedOptions:e.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var s=e.lastRequest={};e.setState({inputValue:a,isLoading:!0,passEmptyOptions:!e.state.loadedInputValue},(function(){e.loadOptions(a,(function(t){e.mounted&&(t&&(e.optionsCache[a]=t),s===e.lastRequest&&(delete e.lastRequest,e.setState({isLoading:!1,loadedInputValue:a,loadedOptions:t||[],passEmptyOptions:!1})))}))}))}return a})),e.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:void 0!==t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},e}return Object(f.a)(n,e),Object(u.a)(n,[{key:"componentDidMount",value:function(){var t=this;this.mounted=!0;var e=this.props.defaultOptions,n=this.state.inputValue;!0===e&&this.loadOptions(n,(function(e){if(t.mounted){var n=!!t.lastRequest;t.setState({defaultOptions:e||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),t.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(t,e){var n=this.props.loadOptions;if(!n)return e();var i=n(t,e);i&&"function"==typeof i.then&&i.then(e,(function(){return e()}))}},{key:"render",value:function(){var e=this,n=this.props,i=(n.loadOptions,Object(a.a)(n,["loadOptions"])),o=this.state,l=o.defaultOptions,d=o.inputValue,c=o.isLoading,u=o.loadedInputValue,h=o.loadedOptions,p=o.passEmptyOptions?[]:d&&u?h:l||[];return r.a.createElement(t,Object(s.a)({},i,{ref:function(t){e.select=t},options:p,isLoading:c,onInputChange:this.handleInputChange}))}}]),n}(i.Component),Object(m.a)(e,"defaultProps",x),n},O=_(Object(b.a)(y.a)),w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=String(t).toLowerCase(),i=String(e.value).toLowerCase(),r=String(e.label).toLowerCase();return i===n||r===n},C={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,e,n){return!(!t||e.some((function(e){return w(t,e)}))||n.some((function(e){return w(t,e)})))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}},$=Object(d.a)({allowCreateWhileLoading:!1,createOptionPosition:"last"},C),k=function(t){var e,n;return n=e=function(e){function n(t){var e;Object(c.a)(this,n),e=Object(h.a)(this,Object(p.a)(n).call(this,t)),Object(m.a)(Object(g.a)(Object(g.a)(e)),"select",void 0),Object(m.a)(Object(g.a)(Object(g.a)(e)),"onChange",(function(t,n){var i=e.props,r=i.getNewOptionData,o=i.inputValue,a=i.isMulti,s=i.onChange,d=i.onCreateOption,c=i.value,u=i.name;if("select-option"!==n.action)return s(t,n);var h=e.state.newOption,p=Array.isArray(t)?t:[t];if(p[p.length-1]!==h)s(t,n);else if(d)d(o);else{var f=r(o,o),g={action:"create-option",name:u};s(a?[].concat(Object(l.a)(Object(v.f)(c)),[f]):f,g)}}));var i=t.options||[];return e.state={newOption:void 0,options:i},e}return Object(f.a)(n,e),Object(u.a)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.allowCreateWhileLoading,n=t.createOptionPosition,i=t.formatCreateLabel,r=t.getNewOptionData,o=t.inputValue,a=t.isLoading,s=t.isValidNewOption,d=t.value,c=t.options||[],u=this.state.newOption;u=s(o,Object(v.f)(d),c)?r(o,i(o)):void 0,this.setState({newOption:u,options:!e&&a||!u?c:"first"===n?[u].concat(Object(l.a)(c)):[].concat(Object(l.a)(c),[u])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var e=this,n=this.state.options;return r.a.createElement(t,Object(s.a)({},this.props,{ref:function(t){e.select=t},options:n,onChange:this.onChange}))}}]),n}(i.Component),Object(m.a)(e,"defaultProps",$),n},S=k(y.a),E=Object(b.a)(S),j=k(y.a),A=_(Object(b.a)(j)),M=n(22),P=n(5),T=n(3),D=n.n(T),L=n(27),I=n(9),N=n(41),R=function(t){return r.a.createElement("div",{className:"pb_typeahead_wrapper"},r.a.createElement(N.a,{dark:t.selectProps.dark,error:t.selectProps.error,label:t.selectProps.label},r.a.createElement(I.a,null,r.a.createElement(L.z.Control,Object.assign({className:"text_input"},t)))))},F=function(t){var e=t.selectProps,n=t.clearValue;return Object(i.useEffect)((function(){document.addEventListener("pb-typeahead-kit-".concat(e.id,":clear"),n)}),[!0]),r.a.createElement(L.z.ClearIndicator,Object.assign({className:"clear_indicator"},t))},B=function(t){return r.a.createElement(L.z.IndicatorsContainer,Object.assign({className:"text_input_indicators"},t))},z=function(t){return r.a.createElement(L.z.MenuList,Object.assign({},t),t.children)},W=n(52),H=n(74),Y=function(t){var e=t.removeProps,n=t.data,i=n.imageUrl,o=n.label,a=t.selectProps.multiKit;return"string"==typeof i&&({marginRight:"xs",name:o,avatarUrl:""}.avatarUrl=i),r.a.createElement(L.z.MultiValueContainer,Object.assign({className:"text_input_multivalue_container"},t),"badge"===a&&r.a.createElement(W.a,{closeProps:e,removeIcon:!0,text:o,variant:"primary"}),"badge"!==a&&i&&r.a.createElement(H.a,{avatarUrl:i,closeProps:e,marginRight:"xs",name:o,size:"smallPill"===a?"small":"",text:""}),"badge"!==a&&!i&&r.a.createElement(H.a,{closeProps:e,marginRight:"xs",name:"",size:"smallPill"===a?"small":"",text:o}))},U=n(118),G=function(t){var e=t.data.imageUrl,n=t.selectProps.valueComponent;return r.a.createElement(L.z.Option,Object.assign({},t),r.a.createElement(r.a.Fragment,null,!n&&e&&r.a.createElement(U.a,{align:"left",avatarUrl:e,dark:t.selectProps.dark,name:t.label,orientation:"horizontal"}),n&&n(t.data),!n&&!e&&t.label))},X=n(7),V=function(t){return r.a.createElement(r.a.Fragment,null,r.a.createElement(I.a,{align:"center",className:"placeholder"},r.a.createElement(L.z.IndicatorsContainer,Object.assign({},t)),t.selectProps.plusIcon&&r.a.createElement(X.a,{className:"typeahead-plus-icon",icon:"plus"})))},q=function(t){return r.a.createElement(L.z.ValueContainer,Object.assign({className:"text_input_value_container"},t))},K=n(2),Z=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);rt.length)&&(e=t.length);for(var n=0,i=new Array(e);n and to function properly.");var D=T[0],L=T[1],I=D.props,N=I.children,R=O(I,["children"]),F=L.props,B=F.children,z=O(F,["children"]),W=Object(d.a)(n),H=Object(d.c)(v),Y=a()(Object(d.b)("pb_collapsible_kit"),Object(l.c)(E),o);return r.a.createElement(c.Provider,{value:{collapsed:A,toggle:M,icon:y,iconSize:C,iconColor:w,onIconClick:$,onClick:k}},r.a.createElement("div",Object.assign({},W,H,{className:Y,id:S}),r.a.createElement(b,Object.assign({},R),N),r.a.createElement(h,Object.assign({},z),B)))};w.Main=b,w.Content=h;e.a=w},,function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(5),a=n(2),s=n(70),l=n.n(s),d=n(26),c=n.n(d),u=n(53),h=n(77),p=n(71),f=n(3),g=n.n(f);function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0?Object(p.a)($):u.a.colors,plotOptions:{series:{pointStart:S,events:{},dataLabels:{enabled:!1}}},series:O,credits:!1};F||(J.plotOptions.series.events={legendItemClick:function(){return!1}});var Q=m(Object(i.useState)({}),2),tt=Q[0],et=Q[1];return Object(i.useEffect)((function(){et(Object.assign({},J))}),[O]),r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:g()(Object(o.c)(q),C),id:k},K),Z),highcharts:c.a,options:tt})}},function(t,e,n){"use strict";var i,r;!function(o){t.exports?(o.default=o,t.exports=o):(i=[n(26)],void 0===(r=function(t){return o(t),o.Highcharts=t,o}.apply(e,i))||(t.exports=r))}((function(t){function e(t,e,n,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,n))}e(t=t?t._modules:{},"Extensions/Pane.js",[t["Core/Chart/Chart.js"],t["Series/CenteredUtilities.js"],t["Core/Globals.js"],t["Core/Pointer.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r){function o(t,e,n){return Math.sqrt(Math.pow(t-n[0],2)+Math.pow(e-n[1],2))<=n[2]/2}var a=r.addEvent,s=r.extend,l=r.merge,d=r.pick,c=r.splat;return t.prototype.collectionsWithUpdate.push("pane"),r=function(){function t(t,e){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(t,e)}return t.prototype.init=function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},t.prototype.setOptions=function(t){this.options=l(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},t.prototype.render=function(){var t=this.options,e=this.options.background,n=this.chart.renderer;if(this.group||(this.group=n.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=c(e),t=Math.max(e.length,this.background.length||0),n=0;n-Math.PI/2&&h-Math.PI&&0>h||h>Math.PI?-10:10)}return l}function x(t){var e=this,n=this.pane.center,i=this.chart,r=i.inverted,o=t.reverse,a=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},s=a.innerRadius||"0%",l=a.outerRadius||"100%",d=n[0]+i.plotLeft,c=n[1]+i.plotTop,u=this.height,h=t.isCrosshair;a=n[3]/2;var p,g=t.value,m=this.getPosition(g),v=m.x;if(m=m.y,h&&(g=(m=this.getCrosshairPosition(t,d,c))[0],v=m[1],m=m[2]),this.isCircular)g=Math.sqrt(Math.pow(v-d,2)+Math.pow(m-c,2)),o="string"==typeof s?f(s,1):s/g,i="string"==typeof l?f(l,1):l/g,n&&a&&(o<(a/=g)&&(o=a),ig||g>u)&&(g=0),"circle"===this.options.gridLineInterpolation)n=this.getLinePath(0,g,a);else if(n=[],i[r?"yAxis":"xAxis"].forEach((function(t){t.pane===e.pane&&(p=t)})),p)for(d=p.tickPositions,p.autoConnect&&(d=d.concat([d[0]])),o&&(d=d.slice().reverse()),g&&(g+=a),c=0;ct?0:t,this.center[2]/2)-this.offset)}function O(){var t=this.center,e=this.chart,n=this.options.title;return{x:e.plotLeft+t[0]+(n.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[n.align]*t[2]+(n.y||0)}}function w(t){t.beforeSetTickPositions=n,t.createLabelCollector=i,t.getCrosshairPosition=m,t.getLinePath=v,t.getOffset=y,t.getPlotBandPath=b,t.getPlotLinePath=x,t.getPosition=_,t.getTitlePosition=O,t.postTranslate=M,t.setAxisSize=T,t.setAxisTranslation=D,t.setOptions=L}function C(){var t=this.chart,e=this.options,n=this.pane,i=n&&n.options;t.angular&&this.isXAxis||!n||!t.angular&&!t.polar||(this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=(i.startAngle-90)*Math.PI/180,this.endAngleRad=(p(i.endAngle,i.startAngle+360)-90)*Math.PI/180,this.offset=e.offset||0)}function $(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function k(){if(this.chart&&this.chart.labelCollectors){var t=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=t&&this.chart.labelCollectors.splice(t,1)}}function S(e){var n,i=this.chart,o=i.inverted,s=i.angular,l=i.polar,d=this.isXAxis,c=this.coll,u=s&&d,p=i.options;e=e.userOptions.pane||0,e=this.pane=i.pane&&i.pane[e],"colorAxis"===c?this.isRadial=!1:(s?(u?(this.isHidden=!0,this.createLabelCollector=r,this.getOffset=a,this.render=this.redraw=P,this.setTitle=this.setCategories=this.setScale=a):w(this),(n=!d)&&(this.defaultPolarOptions=F)):l&&(w(this),this.defaultPolarOptions=(n=this.horiz)?R:h("xAxis"===c?t.defaultXAxisOptions:t.defaultYAxisOptions,B),o&&"yAxis"===c&&(this.defaultPolarOptions.stackLabels=t.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),s||l?(this.isRadial=!0,p.chart.zoomType=null,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&i.labelCollectors.push(this.labelCollector)):this.isRadial=!1,e&&n&&(e.axis=this),this.isCircular=n)}function E(){this.isRadial&&this.beforeSetTickPositions()}function j(t){var e=this.label;if(e){var n=this.axis,i=e.getBBox(),r=n.options.labels,o=(n.translate(this.pos)+n.startAngleRad+Math.PI/2)/Math.PI*180%360,a=Math.round(o),s=d(r.y)?0:.3*-i.height,l=r.y,c=20,u=r.align,h="end",g=0>a?a+360:a,m=g,v=0,y=0;if(n.isRadial){var b=n.getPosition(this.pos,n.center[2]/2+f(p(r.distance,-25),n.center[2]/2,-n.center[2]/2));"auto"===r.rotation?e.attr({rotation:o}):d(l)||(l=n.chart.renderer.fontMetrics(e.styles&&e.styles.fontSize).b-i.height/2),d(u)||(n.isCircular?(i.width>n.len*n.tickInterval/(n.max-n.min)&&(c=0),u=o>c&&o<180-c?"left":o>180+c&&o<360-c?"right":"center"):u="center",e.attr({align:u})),"auto"===u&&2===n.tickPositions.length&&n.isCircular&&(90g?g=180-g:270=g&&(g=540-g),180=m&&(m=360-m),n.pane.options.startAngle!==a&&n.pane.options.startAngle!==a+360&&n.pane.options.startAngle!==a-360||(h="start"),u=-90<=a&&90>=a||-360<=a&&-270>=a||270<=a&&360>=a?"start"===h?"right":"left":"start"===h?"left":"right",70m&&(u="center"),15>g||180<=g&&195>g?v=.3*i.height:15<=g&&35>=g?v="start"===h?0:.75*i.height:195<=g&&215>=g?v="start"===h?.75*i.height:0:35=g?v="start"===h?.25*-i.height:i.height:215=g&&(v="start"===h?i.height:.25*-i.height),15>m?y="start"===h?.15*-i.height:.15*i.height:165=m&&(y="start"===h?.15*i.height:.15*-i.height),e.attr({align:u}),e.translate(y,v+s)),t.pos.x=b.x+(r.x||0),t.pos.y=b.y+(l||0)}}}function A(t){this.axis.getPosition&&c(t.pos,this.axis.getPosition(this.pos))}function M(t,e){var n=this.chart,i=this.center;return t=this.startAngleRad+t,{x:n.plotLeft+i[0]+Math.cos(t)*e,y:n.plotTop+i[1]+Math.sin(t)*e}}function P(){this.isDirty=!1}function T(){if(this.constructor.prototype.setAxisSize.call(this),this.isRadial){this.pane.updateCenter(this);var t=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var e=this.postTranslate(this.angleRad,t[3]/2);t[0]=e.x-this.chart.plotLeft,t[1]=e.y-this.chart.plotTop}this.len=this.width=this.height=(t[2]-t[3])*p(this.sector,1)/2}}function D(){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 L(t){(t=this.options=h(this.constructor.defaultOptions,this.defaultPolarOptions,o[this.coll],t)).plotBands||(t.plotBands=[]),u(this,"afterSetOptions")}function I(t,e,n,i,r,o,a){var s=this.axis;return s.isRadial?e=["M",e,n,"L",(t=s.getPosition(this.pos,s.center[2]/2+i)).x,t.y]:e=t.call(this,e,n,i,r,o,a),e}var N=[],R={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},F={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},B={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};e.compose=function(t,e){return-1===N.indexOf(t)&&(N.push(t),s(t,"afterInit",C),s(t,"autoLabelAlign",$),s(t,"destroy",k),s(t,"init",S),s(t,"initialAxisTranslation",E)),-1===N.indexOf(e)&&(N.push(e),s(e,"afterGetLabelPosition",j),s(e,"afterGetPosition",A),g(e.prototype,"getMarkPath",I)),t}}(r||(r={})),r})),e(t,"Series/AreaRange/AreaRangePoint.js",[t["Series/Area/AreaSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=e.prototype,o=n.defined,a=n.isNumber;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.high=void 0,e.low=void 0,e.options=void 0,e.plotHigh=void 0,e.plotLow=void 0,e.plotHighX=void 0,e.plotLowX=void 0,e.plotX=void 0,e.series=void 0,e}return i(e,t),e.prototype.setState=function(){var t=this.state,e=this.series,n=e.chart.polar;o(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),o(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.stateMarkerGraphic&&(e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic),this.graphic=this.upperGraphic,this.plotY=this.plotHigh,n&&(this.plotX=this.plotHighX),r.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.lowerGraphic,n&&(this.plotX=this.plotLowX),e.stateMarkerGraphic&&(e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0),r.setState.apply(this,arguments)},e.prototype.haloPath=function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&(this.plotX=this.plotLowX),this.isInside&&(e=r.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(r.haloPath.apply(this,arguments))),e},e.prototype.isValid=function(){return a(this.low)&&a(this.high)},e}(t.prototype.pointClass)})),e(t,"Series/AreaRange/AreaRangeSeries.js",[t["Series/AreaRange/AreaRangePoint.js"],t["Series/Area/AreaSeries.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r,o,a){var s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=e.prototype,d=n.prototype;n=i.noop;var c=r.prototype,u=a.defined,h=a.extend,p=a.isArray,f=a.pick,g=a.merge;return r=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.lowerStateMarkerGraphic=void 0,e.xAxis=void 0,e}return s(n,t),n.prototype.toYData=function(t){return[t.low,t.high]},n.prototype.highToXY=function(t){var e=this.chart,n=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-t.plotHigh);t.plotHighX=n.x-e.plotLeft,t.plotHigh=n.y-e.plotTop,t.plotLowX=t.plotX},n.prototype.translate=function(){var t=this,e=t.yAxis;l.translate.apply(t),t.points.forEach((function(n){var i=n.high,r=n.plotY;n.isNull?n.plotY=null:(n.plotLow=r,n.plotHigh=e.translate(t.dataModify?t.dataModify.modifyValue(i):i,0,1,0,1),t.dataModify&&(n.yBottom=n.plotHigh))})),this.chart.polar&&this.points.forEach((function(e){t.highToXY(e),e.tooltipPos=[(e.plotHighX+e.plotLowX)/2,(e.plotHigh+e.plotLow)/2]}))},n.prototype.getGraphPath=function(t){var e,n=[],i=[],r=l.getGraphPath,o=this.options,a=this.chart.polar,s=a&&!1!==o.connectEnds,d=o.connectNulls,c=o.step;for(e=(t=t||this.points).length;e--;){var u=t[e],h=a?{plotX:u.rectPlotX,plotY:u.yBottom,doCurve:!1}:{plotX:u.plotX,plotY:u.plotY,doCurve:!1};u.isNull||s||d||t[e+1]&&!t[e+1].isNull||i.push(h);var p={polarPlotY:u.polarPlotY,rectPlotX:u.rectPlotX,yBottom:u.yBottom,plotX:f(u.plotHighX,u.plotX),plotY:u.plotHigh,isNull:u.isNull};i.push(p),n.push(p),u.isNull||s||d||t[e-1]&&!t[e-1].isNull||i.push(h)}return t=r.call(this,t),c&&(!0===c&&(c="left"),o.step={left:"right",center:"center",right:"left"}[c]),n=r.call(this,n),i=r.call(this,i),o.step=c,o=[].concat(t,n),!this.chart.polar&&i[0]&&"M"===i[0][0]&&(i[0]=["L",i[0][1],i[0][2]]),this.graphPath=o,this.areaPath=t.concat(i),o.isArea=!0,o.xMap=t.xMap,this.areaPath.xMap=t.xMap,o},n.prototype.drawDataLabels=function(){var t,e,n=this.points,i=n.length,r=[],o=this.options.dataLabels,a=this.chart.inverted;if(o){if(p(o))var s=o[0]||{enabled:!1},l=o[1]||{enabled:!1};else(s=h({},o)).x=o.xHigh,s.y=o.yHigh,(l=h({},o)).x=o.xLow,l.y=o.yLow;if(s.enabled||this._hasPointLabels){for(t=i;t--;)if(e=n[t]){var d=s.inside?e.plotHighe.plotLow;e.y=e.high,e._plotY=e.plotY,e.plotY=e.plotHigh,r[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=d,a?s.align||(s.align=d?"right":"left"):s.verticalAlign||(s.verticalAlign=d?"top":"bottom")}for(this.options.dataLabels=s,c.drawDataLabels&&c.drawDataLabels.apply(this,arguments),t=i;t--;)(e=n[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=r[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(l.enabled||this._hasPointLabels){for(t=i;t--;)(e=n[t])&&(d=l.inside?e.plotHighe.plotLow,e.below=!d,a?l.align||(l.align=d?"left":"right"):l.verticalAlign||(l.verticalAlign=d?"bottom":"top"));this.options.dataLabels=l,c.drawDataLabels&&c.drawDataLabels.apply(this,arguments)}if(s.enabled)for(t=i;t--;)(e=n[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter((function(t){return!!t})));this.options.dataLabels=o}},n.prototype.alignDataLabel=function(){d.alignDataLabel.apply(this,arguments)},n.prototype.drawPoints=function(){var t,e=this.points.length;for(c.drawPoints.apply(this,arguments),t=0;t● {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),n}(e),h(r.prototype,{pointArrayMap:["low","high"],pointValKey:"low",deferTranslatePolar:!0,pointClass:t,setStackedPoints:n}),o.registerSeriesType("arearange",r),r})),e(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=e.seriesTypes.spline,o=n.merge;n=n.extend;var a=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.data=void 0,t.points=void 0,t}return i(n,e),n.defaultOptions=o(t.defaultOptions),n}(t);return n(a.prototype,{getPointSpline:r.prototype.getPointSpline}),e.registerSeriesType("areasplinerange",a),a})),e(t,"Series/BoxPlot/BoxPlotSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e=e.noop;var o=i.extend,a=i.merge,s=i.pick;return o((i=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.prototype.pointAttribs=function(){return{}},n.prototype.translate=function(){var t=this.yAxis,n=this.pointArrayMap;e.prototype.translate.apply(this),this.points.forEach((function(e){n.forEach((function(n){null!==e[n]&&(e[n+"Plot"]=t.translate(e[n],0,1,0,1))})),e.plotHigh=e.highPlot}))},n.prototype.drawPoints=function(){var t,e,n,i,r,o,a,l,d,c,u,h=this,p=h.options,f=h.chart,g=f.renderer,m=0,v=!1!==h.doQuartiles,y=h.options.whiskerLength;h.points.forEach((function(b){var x=b.graphic,_=x?"animate":"attr",O=b.shapeArgs,w={},C={},$={},k={},S=b.color||h.color;void 0!==b.plotY&&(a=Math.round(O.width),l=Math.floor(O.x),d=l+a,c=Math.round(a/2),t=Math.floor(v?b.q1Plot:b.lowPlot),e=Math.floor(v?b.q3Plot:b.lowPlot),n=Math.floor(b.highPlot),i=Math.floor(b.lowPlot),x||(b.graphic=x=g.g("point").add(h.group),b.stem=g.path().addClass("highcharts-boxplot-stem").add(x),y&&(b.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(x)),v&&(b.box=g.path(void 0).addClass("highcharts-boxplot-box").add(x)),b.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(x)),f.styledMode||(C.stroke=b.stemColor||p.stemColor||S,C["stroke-width"]=s(b.stemWidth,p.stemWidth,p.lineWidth),C.dashstyle=b.stemDashStyle||p.stemDashStyle||p.dashStyle,b.stem.attr(C),y&&($.stroke=b.whiskerColor||p.whiskerColor||S,$["stroke-width"]=s(b.whiskerWidth,p.whiskerWidth,p.lineWidth),$.dashstyle=b.whiskerDashStyle||p.whiskerDashStyle||p.dashStyle,b.whiskers.attr($)),v&&(w.fill=b.fillColor||p.fillColor||S,w.stroke=p.lineColor||S,w["stroke-width"]=p.lineWidth||0,w.dashstyle=b.boxDashStyle||p.boxDashStyle||p.dashStyle,b.box.attr(w)),k.stroke=b.medianColor||p.medianColor||S,k["stroke-width"]=s(b.medianWidth,p.medianWidth,p.lineWidth),k.dashstyle=b.medianDashStyle||p.medianDashStyle||p.dashStyle,b.medianShape.attr(k)),o=b.stem.strokeWidth()%2/2,x=[["M",m=l+c+o,e],["L",m,n],["M",m,t],["L",m,i]],b.stem[_]({d:x}),v&&(o=b.box.strokeWidth()%2/2,t=Math.floor(t)+o,e=Math.floor(e)+o,x=[["M",l+=o,e],["L",l,t],["L",d+=o,t],["L",d,e],["L",l,e],["Z"]],b.box[_]({d:x})),y&&(o=b.whiskers.strokeWidth()%2/2,n+=o,i+=o,u=/%$/.test(y)?c*parseFloat(y)/100:y/2,x=[["M",m-u,n],["L",m+u,n],["M",m-u,i],["L",m+u,i]],b.whiskers[_]({d:x})),r=Math.round(b.medianPlot),o=b.medianShape.strokeWidth()%2/2,x=[["M",l,r+=o],["L",d,r]],b.medianShape[_]({d:x}))}))},n.prototype.toYData=function(t){return[t.low,t.q1,t.median,t.q3,t.high]},n.defaultOptions=a(t.defaultOptions,{threshold:null,tooltip:{pointFormat:' {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}),n}(t)).prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:e,setStackedPoints:e}),n.registerSeriesType("boxplot",i),i})),e(t,"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:!1,labels:{className:void 0,allowOverlap:!1,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:!1,zIndex:1,zThreshold:0}})),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/FormatUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,n,i){var r=t.parse,o=n.noop,a=i.arrayMax,s=i.arrayMin,l=i.isNumber,d=i.merge,c=i.pick,u=i.stableSort;return function(){function t(t,e){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0,this.setState=o,this.init(t,e)}return t.prototype.init=function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},t.prototype.addToLegend=function(t){t.splice(this.options.legendIndex,0,this)},t.prototype.drawLegendSymbol=function(t){var e=this.chart,n=this.options,i=c(t.options.itemDistance,20),r=n.ranges,o=n.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(n.labels.style.fontSize),r&&r.length&&l(r[0].value)?(u(r,(function(t,e){return e.value-t.value})),this.ranges=r,this.setOptions(),this.render(),t=this.getMaxLabelSize(),e=2*(r=this.ranges[0].radius),o=0<(o=o-r+t.width)?o:0,this.maxLabel=t,this.movementX="left"===n.labels.align?o:0,this.legendItemWidth=e+o+i,this.legendItemHeight=e+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,n=this.chart.series[e.seriesIndex],i=this.legend.baseline,o={zIndex:e.zIndex,"stroke-width":e.borderWidth},a={zIndex:e.zIndex,"stroke-width":e.connectorWidth},s={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=n.options.marker.fillOpacity,u=this.chart.styledMode;t.forEach((function(h,p){u||(o.stroke=c(h.borderColor,e.borderColor,n.color),o.fill=c(h.color,e.color,1!==l?r(n.color).setOpacity(l).get("rgba"):n.color),a.stroke=c(h.connectorColor,e.connectorColor,n.color)),t[p].radius=this.getRangeRadius(h.value),t[p]=d(t[p],{center:t[0].radius-t[p].radius+i}),u||d(!0,t[p],{bubbleAttribs:d(o),connectorAttribs:d(a),labelAttribs:s})}),this)},t.prototype.getRangeRadius=function(t){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,t)},t.prototype.render=function(){var t=this.chart.renderer,e=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),this.legendSymbol=t.g("bubble-legend"),this.legendItem=t.g("bubble-legend-item"),this.legendSymbol.translateX=0,this.legendSymbol.translateY=0,this.ranges.forEach((function(t){t.value>=e&&this.renderRange(t)}),this),this.legendSymbol.add(this.legendItem),this.legendItem.add(this.legendGroup),this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.options,n=e.labels,i=this.chart,r=i.series[e.seriesIndex],o=i.renderer,a=this.symbols;i=a.labels;var s=t.center,l=Math.abs(t.radius),d=e.connectorDistance||0,c=n.align,u=e.connectorWidth,h=this.ranges[0].radius||0,p=s-l-e.borderWidth/2+u/2,f=this.fontMetrics;f=f.f/2-(f.h-f.f)/2;var g=o.styledMode;d=this.legend.options.rtl||"left"===c?-d:d,"center"===c&&(d=0,e.connectorDistance=0,t.labelAttribs.align="center"),c=p+e.labels.y;var m=h+d+e.labels.x;a.bubbleItems.push(o.circle(h,s+((p%1?1:.5)-(u%2?0:.5)),l).attr(g?{}:t.bubbleAttribs).addClass((g?"highcharts-color-"+r.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendSymbol)),a.connectors.push(o.path(o.crispLine([["M",h,p],["L",h+d,p]],e.connectorWidth)).attr(g?{}:t.connectorAttribs).addClass((g?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendSymbol)),t=o.text(this.formatLabel(t),m,c+f).attr(g?{}:t.labelAttribs).css(g?{}:n.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendSymbol),i.push(t),t.placed=!0,t.alignAttr={x:m,y:c+f}},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach((function(n){e=n.getBBox(!0),t=t?e.width>t.width?e:t:e})),t||{}},t.prototype.formatLabel=function(t){var n=this.options,i=n.labels.formatter;n=n.labels.format;var r=this.chart.numberFormatter;return n?e.format(n,t):i?i.call(t):r(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(t.hideOverlappingLabels(e.labels),e.labels.forEach((function(t,n){t.newOpacity?t.newOpacity!==t.oldOpacity&&e.connectors[n].show():e.connectors[n].hide()})))},t.prototype.getRanges=function(){var t,e=this.legend.bubbleLegend,n=e.options.ranges,i=Number.MAX_VALUE,r=-Number.MAX_VALUE;e.chart.series.forEach((function(e){e.isBubble&&!e.ignoreSeries&&((t=e.zData.filter(l)).length&&(i=c(e.options.zMin,Math.min(i,Math.max(s(t),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),r=c(e.options.zMax,Math.max(r,a(t)))))}));var o=i===r?[{value:r}]:[{value:i},{value:(i+r)/2},{value:r,autoRanges:!0}];return n.length&&n[0].radius&&o.reverse(),o.forEach((function(t,e){n&&n[e]&&(o[e]=d(n[e],t))})),o},t.prototype.predictBubbleSizes=function(){var t=this.chart,e=this.fontMetrics,n=t.legend.options,i=n.floating,r=(n="horizontal"===n.layout)?t.legend.lastLineHeight:0,o=t.plotSizeX,a=t.plotSizeY,s=t.series[this.options.seriesIndex],l=s.getPxExtremes();t=Math.ceil(l.minPxSize),l=Math.ceil(l.maxPxSize);var d=Math.min(a,o);return s=s.options.maxSize,i||!/%$/.test(s)?e=l:(s=parseFloat(s),e=(d+r-e.h/2)*s/100/(s/100+1),(n&&a-e>=o||!n&&o-e>=a)&&(e=l)),[t,Math.ceil(e)]},t.prototype.updateRanges=function(t,e){var n=this.legend.options.bubbleLegend;n.minSize=t,n.maxSize=e,n.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();1o.height&&(o.height=t[r].itemHeight);o.step=e}return n}function c(t){var n=this.bubbleLegend,i=this.options,o=i.bubbleLegend,a=r(this.chart);n&&n.ranges&&n.ranges.length&&(o.ranges.length&&(o.autoRanges=!!o.ranges[0].autoRanges),this.destroyItem(n)),0<=a&&i.enabled&&o.enabled&&(o.seriesIndex=a,this.bubbleLegend=new e(o,this),this.bubbleLegend.addToLegend(t.allItems))}function u(){var t=this.chart,e=this.visible,n=this.chart.legend;n&&n.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=r(t),n.bubbleLegend.visible!==t&&(n.update({bubbleLegend:{enabled:t}}),n.bubbleLegend.visible=t),this.visible=e)}function h(t,e){var n,i,r,o=t.options.rtl,a=0;t.allItems.forEach((function(t,s){n=t.legendGroup.translateX,i=t._legendItemPos[1],((r=t.movementX)||o&&t.ranges)&&(r=o?n-t.options.maxSize/2:n+r,t.legendGroup.attr({translateX:r})),s>e[a].step&&a++,t.legendGroup.attr({translateY:Math.round(i+e[a].height/2)}),t._legendItemPos[1]=i+e[a].height/2}))}var p=[];n.compose=function(e,n,r){-1===p.indexOf(e)&&(p.push(e),o({legend:{bubbleLegend:t}}),l(e.prototype,"drawChartBox",i)),-1===p.indexOf(n)&&(p.push(n),a(n,"afterGetAllItems",c)),-1===p.indexOf(r)&&(p.push(r),a(r,"legendItemClick",u))}}(r||(r={})),r})),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();return(n=n.extend)((e=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return i(n,e),n.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},n}(e.seriesTypes.scatter.prototype.pointClass)).prototype,{ttBelow:!1}),e})),e(t,"Series/Bubble/BubbleSeries.js",[t["Core/Axis/Axis.js"],t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s){var l=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=i.parse;i=r.noop;var c=a.seriesTypes;r=c.column;var u=c.scatter;c=s.addEvent;var h=s.arrayMax,p=s.arrayMin,f=s.clamp,g=s.extend,m=s.isNumber,v=s.merge,y=s.pick;return s=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.maxPxSize=void 0,e.minPxSize=void 0,e.options=void 0,e.points=void 0,e.radii=void 0,e.yData=void 0,e.zData=void 0,e}return l(n,t),n.prototype.animate=function(t){!t&&this.points.length=n/2?(r.marker=g(r.marker,{radius:o,width:2*o,height:2*o}),r.dlBox={x:r.plotX-o,y:r.plotY-o,width:2*o,height:2*o}):r.shapeArgs=r.plotY=r.dlBox=void 0}},n.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){if("string"==typeof e){var n=/%$/.test(e);e=parseInt(e,10)}return n?t*e/100:e},n=e(y(this.options.minSize,8));return{minPxSize:n,maxPxSize:e=Math.max(e(y(this.options.maxSize,"20%")),n)}},n.prototype.getZExtremes=function(){var t=this.options,e=(this.zData||[]).filter(m);if(e.length){var n=y(t.zMin,f(p(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(t=y(t.zMax,h(e)),m(n)&&m(t))return{zMin:n,zMax:t}}},n.compose=e.compose,n.defaultOptions=v(u.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return m(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),n}(u),g(s.prototype,{alignDataLabel:r.prototype.alignDataLabel,applyZones:i,bubblePadding:!0,buildKDTree:i,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:n,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),c(s,"updatedData",(function(t){delete t.target.chart.bubbleZExtremes})),t.prototype.beforePadding=function(){var t,e=this,n=this.len,i=this.chart,r=0,o=n,a=this.isXAxis,s=a?"xData":"yData",l=this.min,d=this.max-l,c=n/d;this.series.forEach((function(n){if(n.bubblePadding&&(n.visible||!i.options.chart.ignoreHiddenSeries)){t=e.allowZoomOutside=!0;var u=n[s];if(a&&n.getRadii(0,0,n),0g&&(f-=g*=-1),s?(t=l.barX+o,l.shapeType="arc",l.shapeArgs=n.polarArc(f+g,f,t,t+l.pointWidth)):(u.height=g,u.y=f,p=void 0===(p=u.x)?0:p,u=void 0===(u=u.width)?0:u,l.tooltipPos=a.inverted?[i.len+i.pos-a.plotLeft-f-g/2,r.len+r.pos-a.plotTop-p-u/2,g]:[r.left-a.plotLeft+p+u/2,i.pos-a.plotTop+f+g/2,g])}))},e.prototype.crispCol=function(){return l.crispCol.apply(this,arguments)},e.prototype.drawPoints=function(){return l.drawPoints.apply(this,arguments)},e.prototype.drawTracker=function(){return l.drawTracker.apply(this,arguments)},e.prototype.getColumnMetrics=function(){return l.getColumnMetrics.apply(this,arguments)},e.prototype.pointAttribs=function(){return l.pointAttribs.apply(this,arguments)},e.prototype.adjustForMissingColumns=function(){return l.adjustForMissingColumns.apply(this,arguments)},e.prototype.animate=function(){return l.animate.apply(this,arguments)},e.prototype.translate3dPoints=function(){return l.translate3dPoints.apply(this,arguments)},e.prototype.translate3dShapes=function(){return l.translate3dShapes.apply(this,arguments)},e.defaultOptions=u(s.defaultOptions,a.defaultOptions,p),e}(a),i(o.prototype,{directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:e,getSymbol:e,polarArc:function(){return l.polarArc.apply(this,arguments)},pointClass:t}),n.registerSeriesType("columnrange",o),o})),e(t,"Series/ColumnPyramid/ColumnPyramidSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.prototype,o=n.clamp,a=n.merge,s=n.pick;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.prototype.translate=function(){var t=this,e=t.chart,n=t.options,i=t.dense=2>t.closestPointRange*t.xAxis.transA;i=t.borderWidth=s(n.borderWidth,i?0:1);var a=t.yAxis,l=n.threshold,d=t.translatedThreshold=a.getThreshold(l),c=s(n.minPointLength,5),u=t.getColumnMetrics(),h=u.width,p=t.barW=Math.max(h,1+2*i),f=t.pointXOffset=u.offset;e.inverted&&(d-=.5),n.pointPadding&&(p=Math.ceil(p)),r.translate.apply(t),t.points.forEach((function(i){var r=s(i.yBottom,d),u=999+Math.abs(r),g=o(i.plotY,-u,a.len+u);u=i.plotX+f;var m,v=p/2,y=Math.min(g,r);r=Math.max(g,r)-y,i.barX=u,i.pointWidth=h,i.tooltipPos=e.inverted?[a.len+a.pos-e.plotLeft-g,t.xAxis.len-u-v,r]:[u+v,g+a.pos-e.plotTop,r],g=l+(i.total||i.y),"percent"===n.stacking&&(g=l+(0>i.y)?-100:100),g=a.toPixels(g,!0);var b=(m=e.plotHeight-g-(e.plotHeight-d))?v*(y-g)/m:0,x=m?v*(y+r-g)/m:0;m=u-b+v,b=u+b+v;var _=u+x+v;x=u-x+v;var O=y-c,w=y+r;0>i.y&&(O=y,w=y+r+c),e.inverted&&(x=v*(g-((_=a.width-y)-r))/(m=g-(a.width-d)),b=(m=u+v+(b=v*(g-_)/m))-2*b,_=u-x+v,x=u+x+v,O=y,w=y+r-c,0>i.y&&(w=y+r+c)),i.shapeType="path",i.shapeArgs={x:m,y:O,width:b-m,height:r,d:[["M",m,O],["L",b,O],["L",_,w],["L",x,w],["Z"]]}}))},n.defaultOptions=a(t.defaultOptions,{}),n}(t),e.registerSeriesType("columnpyramid",n),n})),e(t,"Series/ErrorBar/ErrorBarSeries.js",[t["Series/BoxPlot/BoxPlotSeries.js"],t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=n.seriesTypes.arearange,a=i.merge;i=i.extend;var s=function(n){function i(){var t=null!==n&&n.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(i,n),i.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||e.prototype.getColumnMetrics.call(this)},i.prototype.drawDataLabels=function(){var t=this.pointValKey;o&&(o.prototype.drawDataLabels.call(this),this.data.forEach((function(e){e.y=e[t]})))},i.prototype.toYData=function(t){return[t.low,t.high]},i.defaultOptions=a(t.defaultOptions,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:' {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}),i}(t);return i(s.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),n.registerSeriesType("errorbar",s),s})),e(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],(function(t){var e=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e.shapeArgs=void 0,e}return e(n,t),n.prototype.setState=function(t){this.state=t},n}(t.series.prototype.pointClass)})),e(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e=e.noop;var o=n.series,a=n.seriesTypes.column,s=i.clamp,l=i.isNumber,d=i.extend,c=i.merge,u=i.pick,h=i.pInt;return d((i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e.yAxis=void 0,e}return r(e,t),e.prototype.translate=function(){var t=this.yAxis,e=this.options,n=t.center;this.generatePoints(),this.points.forEach((function(i){var r=c(e.dial,i.dial),o=h(u(r.radius,"80%"))*n[2]/200,a=h(u(r.baseLength,"70%"))*o/100,d=h(u(r.rearLength,"10%"))*o/100,p=r.baseWidth||3,f=r.topWidth||1,g=e.overshoot,m=t.startAngleRad+t.translate(i.y,null,null,null,!0);(l(g)||!1===e.wrap)&&(g=l(g)?g/180*Math.PI:0,m=s(m,t.startAngleRad-g,t.endAngleRad+g)),m=180*m/Math.PI,i.shapeType="path",i.shapeArgs={d:r.path||[["M",-d,-p/2],["L",a,-p/2],["L",o,-f/2],["L",o,f/2],["L",a,p/2],["L",-d,p/2],["Z"]],translateX:n[0],translateY:n[1],rotation:m},i.plotX=n[0],i.plotY=n[1]}))},e.prototype.drawPoints=function(){var t=this,e=t.chart,n=t.yAxis.center,i=t.pivot,r=t.options,o=r.pivot,a=e.renderer;t.points.forEach((function(n){var i=n.graphic,o=n.shapeArgs,s=o.d,l=c(r.dial,n.dial);i?(i.animate(o),o.d=s):n.graphic=a[n.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.styledMode||n.graphic[i?"animate":"attr"]({stroke:l.borderColor||"none","stroke-width":l.borderWidth||0,fill:l.backgroundColor||"#000000"})})),i?i.animate({translateX:n[0],translateY:n[1]}):(t.pivot=a.circle(0,0,u(o.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(n[0],n[1]).add(t.group),e.styledMode||t.pivot.attr({"stroke-width":o.borderWidth||0,stroke:o.borderColor||"#cccccc",fill:o.backgroundColor||"#000000"}))},e.prototype.animate=function(t){var e=this;t||e.points.forEach((function(t){var n=t.graphic;n&&(n.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),n.animate({rotation:t.shapeArgs.rotation},e.options.animation))}))},e.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),o.prototype.render.call(this),this.group.clip(this.chart.clipRect)},e.prototype.setData=function(t,e){o.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),u(e,!0)&&this.chart.redraw()},e.prototype.hasData=function(){return!!this.points.length},e.defaultOptions=c(o.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1}),e}(o)).prototype,{angular:!0,directTouch:!0,drawGraph:e,drawTracker:a.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("gauge",i),i})),e(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();return function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.degree=NaN,t.mass=NaN,t.radius=NaN,t.options=void 0,t.series=void 0,t.value=null,t}return i(r,n),r.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),e.prototype.destroy.apply(this,arguments)},r.prototype.firePointEvent=function(){var t=this.series.options;if(this.isParentNode&&t.parentNode){var n=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,e.prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=n}else e.prototype.firePointEvent.apply(this,arguments)},r.prototype.select=function(){var n=this.series.chart;this.isParentNode?(n.getSelectedPoints=n.getSelectedParentNodes,e.prototype.select.apply(this,arguments),n.getSelectedPoints=t.prototype.getSelectedPoints):e.prototype.select.apply(this,arguments)},r}(n.seriesTypes.bubble.prototype.pointClass)})),e(t,"Series/Networkgraph/DraggableNodes.js",[t["Core/Chart/Chart.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=n.addEvent;e.dragNodesMixin={onMouseDown:function(t,e){e=this.chart.pointer.normalize(e),t.fixedPosition={chartX:e.chartX,chartY:e.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){var n=this.chart,i=n.pointer.normalize(e);e=t.fixedPosition.chartX-i.chartX,i=t.fixedPosition.chartY-i.chartY;var r=void 0,o=void 0,a=n.graphLayoutsLookup;(5t?1:0)},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,n=this.barycenter.yFactor;e=(e-(this.box.left+this.box.width)/2)*t,n=(n-(this.box.top+this.box.height)/2)*t,this.nodes.forEach((function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=n/t.mass/t.degree)}))},repulsive:function(t,e,n){e=e*this.diffTemperature/t.mass/t.degree,t.fixedPosition||(t.plotX+=n.x*e,t.plotY+=n.y*e)},attractive:function(t,e,n){var i=t.getMass(),r=-n.x*e*this.diffTemperature;e=-n.y*e*this.diffTemperature,t.fromNode.fixedPosition||(t.fromNode.plotX-=r*i.fromNode/t.fromNode.degree,t.fromNode.plotY-=e*i.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=r*i.toNode/t.toNode.degree,t.toNode.plotY+=e*i.toNode/t.toNode.degree)},integrate:function(t,e){var n=-t.options.friction,i=t.options.maxSpeed,r=(e.plotX+e.dispX-e.prevX)*n;n*=e.plotY+e.dispY-e.prevY;var o=Math.abs,a=o(r)/(r||1);o=o(n)/(n||1),r=a*Math.min(i,Math.abs(r)),n=o*Math.min(i,Math.abs(n)),e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=r,e.plotY+=n,e.temperature=t.vectorLength({x:r,y:n})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)}},euler:{attractiveForceFunction:function(t,e){return t*t/e},repulsiveForceFunction:function(t,e){return e*e/t},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,n=this.barycenter.yFactor;this.nodes.forEach((function(i){if(!i.fixedPosition){var r=i.getDegree();r*=1+r/2,i.dispX+=(e-i.plotX)*t*r/i.degree,i.dispY+=(n-i.plotY)*t*r/i.degree}}))},repulsive:function(t,e,n,i){t.dispX+=n.x/i*e/t.degree,t.dispY+=n.y/i*e/t.degree},attractive:function(t,e,n,i){var r=t.getMass(),o=n.x/i*e;e*=n.y/i,t.fromNode.fixedPosition||(t.fromNode.dispX-=o*r.fromNode/t.fromNode.degree,t.fromNode.dispY-=e*r.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=o*r.toNode/t.toNode.degree,t.toNode.dispY+=e*r.toNode/t.toNode.degree)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;var n=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==n&&(e.plotX+=e.dispX/n*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/n*Math.min(Math.abs(e.dispY),t.temperature))},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)}}}})),e(t,"Series/Networkgraph/QuadTree.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){e=e.extend;var n=t.QuadTreeNode=function(t){this.box=t,this.boxSize=Math.min(t.width,t.height),this.nodes=[],this.body=this.isInternal=!1,this.isEmpty=!0};e(n.prototype,{insert:function(t,e){this.isInternal?this.nodes[this.getBoxPosition(t)].insert(t,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,e-1),this.body=!0),this.nodes[this.getBoxPosition(t)].insert(t,e-1)):((e=new n({top:t.plotX,left:t.plotY,width:.1,height:.1})).body=t,e.isInternal=!1,this.nodes.push(e)):(this.isInternal=!1,this.body=t))},updateMassAndCenter:function(){var t=0,e=0,n=0;this.isInternal?(this.nodes.forEach((function(i){i.isEmpty||(t+=i.mass,e+=i.plotX*i.mass,n+=i.plotY*i.mass)})),e/=t,n/=t):this.body&&(t=this.body.mass,e=this.body.plotX,n=this.body.plotY),this.mass=t,this.plotX=e,this.plotY=n},divideBox:function(){var t=this.box.width/2,e=this.box.height/2;this.nodes[0]=new n({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new n({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new n({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new n({left:this.box.left,top:this.box.top+e,width:t,height:e})},getBoxPosition:function(t){var e=t.plotYMath.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature},getSystemTemperature:function(){return this.nodes.reduce((function(t,e){return t+e.temperature}),0)},vectorLength:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},getDistR:function(t,e){return t=this.getDistXY(t,e),this.vectorLength(t)},getDistXY:function(t,e){var n=t.plotX-e.plotX;return{x:n,y:t=t.plotY-e.plotY,absX:Math.abs(n),absY:Math.abs(t)}}}),e(t,"predraw",(function(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach((function(t){t.stop()}))})),e(t,"render",(function(){function t(t){t.maxIterations--&&isFinite(t.temperature)&&!t.isStable()&&!t.enableSimulation&&(t.beforeStep&&t.beforeStep(),t.step(),n=!1,e=!0)}var e=!1;if(this.graphLayoutsLookup){for(r(!1,this),this.graphLayoutsLookup.forEach((function(t){t.start()}));!n;){var n=!0;this.graphLayoutsLookup.forEach(t)}e&&this.series.forEach((function(t){t&&t.layout&&t.render()}))}})),e(t,"beforePrint",(function(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach((function(t){t.updateSimulation(!1)})),this.redraw())})),e(t,"afterPrint",(function(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach((function(t){t.updateSimulation()})),this.redraw()}))})),e(t,"Series/PackedBubble/PackedBubbleComposition.js",[t["Core/Chart/Chart.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=e.layouts["reingold-fruchterman"],r=n.addEvent,o=n.extendClass,a=n.pick;t.prototype.getSelectedParentNodes=function(){var t=[];return this.series.forEach((function(e){e.parentNode&&e.parentNode.selected&&t.push(e.parentNode)})),t},e.networkgraphIntegrations.packedbubble={repulsiveForceFunction:function(t,e,n,i){return Math.min(t,(n.marker.radius+i.marker.radius)/2)},barycenter:function(){var t,e,n=this,i=n.options.gravitationalConstant,r=n.box,o=n.nodes;o.forEach((function(a){n.options.splitSeries&&!a.isParentNode?(t=a.series.parentNode.plotX,e=a.series.parentNode.plotY):(t=r.width/2,e=r.height/2),a.fixedPosition||(a.plotX-=(a.plotX-t)*i/(a.mass*Math.sqrt(o.length)),a.plotY-=(a.plotY-e)*i/(a.mass*Math.sqrt(o.length)))}))},repulsive:function(t,e,n,i){var r=e*this.diffTemperature/t.mass/t.degree;e=n.x*r,n=n.y*r,t.fixedPosition||(t.plotX+=e,t.plotY+=n),i.fixedPosition||(i.plotX-=e,i.plotY-=n)},integrate:e.networkgraphIntegrations.verlet.integrate,getK:e.noop},e.layouts.packedbubble=o(i,{beforeStep:function(){this.options.marker&&this.series.forEach((function(t){t&&t.calculateParentRadius()}))},isStable:function(){var t=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>t||0>=this.temperature},setCircularPositions:function(){var t,e,n=this,i=n.box,r=n.nodes,o=2*Math.PI/(r.length+1),s=n.options.initialPositionRadius;r.forEach((function(r,l){n.options.splitSeries&&!r.isParentNode?(t=r.series.parentNode.plotX,e=r.series.parentNode.plotY):(t=i.width/2,e=i.height/2),r.plotX=r.prevX=a(r.plotX,t+s*Math.cos(r.index||l*o)),r.plotY=r.prevY=a(r.plotY,e+s*Math.sin(r.index||l*o)),r.dispX=0,r.dispY=0}))},repulsiveForces:function(){var t,e,n,i=this,r=i.options.bubblePadding;i.nodes.forEach((function(o){o.degree=o.mass,o.neighbours=0,i.nodes.forEach((function(a){t=0,o===a||o.fixedPosition||!i.options.seriesInteraction&&o.series!==a.series||(n=i.getDistXY(o,a),0>(e=i.vectorLength(n)-(o.marker.radius+a.marker.radius+r))&&(o.degree+=.01,o.neighbours++,t=i.repulsiveForce(-e/Math.sqrt(o.neighbours),i.k,o,a)),i.force("repulsive",o,t*a.mass,n,a,e))}))}))},applyLimitBox:function(t){if(this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit){var e=this.getDistXY(t,t.series.parentNode),n=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(e);0>n&&n>-2*t.marker.radius&&(t.plotX-=.01*e.x,t.plotY-=.01*e.y)}i.prototype.applyLimitBox.apply(this,arguments)}}),r(t,"beforeRedraw",(function(){this.allDataPoints&&delete this.allDataPoints}))})),e(t,"Series/PackedBubble/PackedBubbleSeries.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Series/PackedBubble/PackedBubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r){var o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.parse,s=i.series,l=i.seriesTypes.bubble,d=r.addEvent,c=r.clamp,u=r.defined,h=r.extend,p=r.fireEvent,f=r.isArray,g=r.isNumber,m=r.merge,v=r.pick,y=e.dragNodesMixin;return t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.layout=void 0,e.options=void 0,e.points=void 0,e.xData=void 0,e}return o(n,t),n.prototype.accumulateAllPoints=function(t){var e,n,i=t.chart,r=[];for(e=0;ei&&(i=t),tMath.sqrt(n*n+i*i)-Math.abs(t[2]+e[2])},n.prototype.createParentNodes=function(){var t,e=this,n=e.chart,i=e.parentNodeLayout,r=e.parentNode,o=e.pointClass,s=e.layout.options,l={radius:e.parentNodeRadius,lineColor:e.color,fillColor:a(e.color).brighten(.4).get()};s.parentNodeOptions&&(l=m(s.parentNodeOptions.marker||{},l)),e.parentNodeMass=0,e.points.forEach((function(t){e.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)})),e.calculateParentRadius(),i.nodes.forEach((function(n){n.seriesIndex===e.index&&(t=!0)})),i.setArea(0,0,n.plotWidth,n.plotHeight),t||(r||(r=(new o).init(this,{mass:e.parentNodeRadius/2,marker:l,dataLabels:{inside:!1},states:{normal:{marker:l},hover:{marker:l}},dataLabelOnNull:!0,degree:e.parentNodeRadius,isParentNode:!0,seriesIndex:e.index})),e.parentNode&&(r.plotX=e.parentNode.plotX,r.plotY=e.parentNode.plotY),e.parentNode=r,i.addElementsToCollection([e],i.series),i.addElementsToCollection([r],i.nodes))},n.prototype.deferLayout=function(){var t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())},n.prototype.destroy=function(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach((function(t){t.removeElementFromCollection(this,t.series)}),this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),s.prototype.destroy.apply(this,arguments)},n.prototype.drawDataLabels=function(){var t=this.options.dataLabels.textPath,e=this.points;s.prototype.drawDataLabels.apply(this,arguments),this.parentNode&&(this.parentNode.formatPrefix="parentNode",this.points=[this.parentNode],this.options.dataLabels.textPath=this.options.dataLabels.parentNodeTextPath,s.prototype.drawDataLabels.apply(this,arguments),this.points=e,this.options.dataLabels.textPath=t)},n.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var t=this.chart,e=this.layout.options.parentNodeOptions.marker,n={fill:e.fillColor||a(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":v(e.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),e=m({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},n),this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(n.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(e)}},n.prototype.drawTracker=function(){var e=this.parentNode;if(t.prototype.drawTracker.call(this),e){var n=f(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[];e.graphic&&(e.graphic.element.point=e),n.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))}},n.prototype.getPointRadius=function(){var t,e,n,i,r=this,o=r.chart,a=r.options,s=a.useSimulation,l=Math.min(o.plotWidth,o.plotHeight),d={},u=[],h=o.allDataPoints;["minSize","maxSize"].forEach((function(t){var e=parseInt(a[t],10),n=/%$/.test(a[t]);d[t]=n?l*e/100:e*Math.sqrt(h.length)})),o.minRadius=t=d.minSize/Math.sqrt(h.length),o.maxRadius=e=d.maxSize/Math.sqrt(h.length);var p=s?r.calculateZExtremes():[t,e];(h||[]).forEach((function(o,a){n=s?c(o[2],p[0],p[1]):o[2],0===(i=r.getRadius(p[0],p[1],t,e,n))&&(i=null),h[a][2]=i,u.push(i)})),r.radii=u},n.prototype.init=function(){return s.prototype.init.apply(this,arguments),this.eventsToUnbind.push(d(this,"updatedData",(function(){this.chart.series.forEach((function(t){t.type===this.type&&(t.isDirty=!0)}),this)}))),this},n.prototype.onMouseUp=function(t){if(t.fixedPosition&&!t.removed){var e,n=this.layout,i=this.parentNodeLayout;i&&n.options.dragBetweenSeries&&i.nodes.forEach((function(i){t&&t.marker&&i!==t.series.parentNode&&(e=n.getDistXY(t,i),0>n.vectorLength(e)-i.marker.radius-t.marker.radius&&(i.series.addPoint(m(t.options,{plotX:t.plotX,plotY:t.plotY}),!1),n.removeElementFromCollection(t,n.nodes),t.remove()))})),y.onMouseUp.apply(this,arguments)}},n.prototype.placeBubbles=function(t){var e,n=this.checkOverlap,i=this.positionBubble,r=[],o=1,a=0,s=0,l=[];if((t=t.sort((function(t,e){return e[2]-t[2]}))).length){if(r.push([[0,0,t[0][2],t[0][3],t[0][4]]]),1t[1]-e[1]?0:Math.PI)+o+r*(0>(t[0]-e[0])*(t[1]-e[1])?1:-1),[e[0]+(e[2]+n[2])*Math.sin(t),e[1]-(e[2]+n[2])*Math.cos(t),n[2],n[3],n[4]]},n.prototype.render=function(){var t=[];s.prototype.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach((function(e){f(e.dataLabels)&&e.dataLabels.forEach((function(e){t.push(e)}))})),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))},n.prototype.resizeRadius=function(){var t,e,n,i=this.chart,r=i.rawPositions,o=Math.min,a=Math.max,s=i.plotLeft,l=i.plotTop,d=i.plotHeight,c=i.plotWidth,u=t=Number.POSITIVE_INFINITY,h=e=Number.NEGATIVE_INFINITY;for(n=0;nf.height&&(f.y+=f.height,f.height*=-1);u.plotY=f.y=Math.round(f.y||0)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height||0),.001),u.yBottom=f.y+f.height,f.height<=n&&!u.isNull?(f.height=n,f.y-=i,u.plotY=f.y,u.minPointLengthOffset=0>u.y?-i:i):(u.isNull&&(f.width=0),u.minPointLengthOffset=0),v=u.plotY+(u.negative?f.height:0),u.below&&(u.plotY+=f.height),u.tooltipPos&&(this.chart.inverted?u.tooltipPos[0]=e.len-v:u.tooltipPos[1]=v)}}},e.prototype.processData=function(e){var n,i,r,o,a,s=this.options,l=this.yData,d=s.data,c=l.length,u=s.threshold||0;for(a=i=n=r=o=0;au.y&&!s||0e.indexOf(d)&&(p=!0),o[d]||(o[d]={}),e=o[d];for(var f=0;fe?t.length-1+e:0;e=0>o-1?t.length-(1+r):o-1,r=o+1>t.length-1?r:o+1;var a=t[e];r=t[r];var s=a.plotX;a=a.plotY;var l=r.plotX,d=r.plotY;s=(1.5*(r=t[o].plotX)+s)/2.5,a=(1.5*(o=t[o].plotY)+a)/2.5,l=(1.5*r+l)/2.5;var c=(1.5*o+d)/2.5;d=Math.sqrt(Math.pow(s-r,2)+Math.pow(a-o,2));var u=Math.sqrt(Math.pow(l-r,2)+Math.pow(c-o,2));return s=Math.atan2(a-o,s-r),c=Math.PI/2+(s+Math.atan2(c-o,l-r))/2,Math.abs(s-c)>Math.PI/2&&(c-=Math.PI),s=r+Math.cos(c)*d,a=o+Math.sin(c)*d,r={rightContX:l=r+Math.cos(Math.PI+c)*u,rightContY:c=o+Math.sin(Math.PI+c)*u,leftContX:s,leftContY:a,plotX:r,plotY:o},n&&(r.prevPointCont=this.getConnectors(t,e,!1,i)),r},v.toXY=function(t){var e=this.chart,n=this.xAxis,i=this.yAxis,r=t.plotX,o=t.plotY,a=t.series,s=e.inverted,l=t.y,d=s?r:i.len-o;s&&a&&!a.isRadialBar&&(t.plotY=o="number"==typeof l&&i.translate(l)||0),t.rectPlotX=r,t.rectPlotY=o,i.center&&(d+=i.center[3]/2),p(o)&&(i=s?i.postTranslate(o,d):n.postTranslate(r,d),t.plotX=t.polarPlotX=i.x-e.plotLeft,t.plotY=t.polarPlotY=i.y-e.plotTop),this.kdByAngle?(0>(e=(r/Math.PI*180+n.pane.options.startAngle)%360)&&(e+=360),t.clientX=e):t.clientX=t.plotX},a.spline&&(t(a.spline.prototype,"getPointSpline",(function(t,e,n,i){return this.chart.polar?i?(e=(t=this.getConnectors(e,i,!0,this.connectEnds)).prevPointCont&&t.prevPointCont.rightContX,n=t.prevPointCont&&t.prevPointCont.rightContY,t=["C",p(e)?e:t.plotX,p(n)?n:t.plotY,p(t.leftContX)?t.leftContX:t.plotX,p(t.leftContY)?t.leftContY:t.plotY,t.plotX,t.plotY]):t=["M",n.plotX,n.plotY]:t=t.call(this,e,n,i),t})),a.areasplinerange&&(a.areasplinerange.prototype.getPointSpline=a.spline.prototype.getPointSpline)),c(o,"afterTranslate",(function(){var t=this.chart;if(t.polar&&this.xAxis){if((this.kdByAngle=t.tooltip&&t.tooltip.shared)?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy",!this.preventPostTranslate)for(var e=this.points,i=e.length;i--;)this.toXY(e[i]),!t.hasParallelCoordinates&&!this.yAxis.reversed&&e[i].ye&&(e=a),0>t&&(t=a)),{x:r[0],y:r[1],r:e,innerR:t,start:n,end:i}},t(a,"animate",y),t(a,"translate",(function(t){var e=this.options,n=e.stacking,i=this.chart,r=this.xAxis,o=this.yAxis,a=o.reversed,s=o.center,d=r.startAngleRad,c=r.endAngleRad-d;if(this.preventPostTranslate=!0,t.call(this),r.isRadial){r=(t=this.points).length;var h=o.translate(o.min),f=o.translate(o.max);if(e=e.threshold||0,i.inverted&&p(e)){var g=o.translate(e);u(g)&&(0>g?g=0:g>c&&(g=c),this.translatedThreshold=g+d)}for(;r--;){var m=(e=t[r]).barX,v=e.x,y=e.y;if(e.shapeType="arc",i.inverted){if(e.plotY=o.translate(y),n&&o.stacking){if(y=o.stacking.stacks[(0>y?"-":"")+this.stackKey],this.visible&&y&&y[v]&&!e.isNull){var b=y[v].points[this.getStackIndicator(void 0,v,this.index).key],x=o.translate(b[0]);b=o.translate(b[1]),u(x)&&(x=l.clamp(x,0,c))}}else x=g,b=e.plotY;x>b&&(b=[x,x=b][0]),a?b>h?b=h:xh||bf?b=f:(bf)&&(x=b=0),o.min>o.max&&(x=b=a?c:0),x+=d,b+=d,s&&(e.barX=m+=s[3]/2),v=Math.max(m,0),y=Math.max(m+e.pointWidth,0),e.shapeArgs={x:s&&s[0],y:s&&s[1],r:y,innerR:v,start:x,end:b},e.opacity=x===b?0:void 0,e.plotY=(u(this.translatedThreshold)&&(xs[1])}}})),a.findAlignments=function(t,e){return null===e.align&&(e.align=20t?"left":200t?"right":"center"),null===e.verticalAlign&&(e.verticalAlign=45>t||315t?"top":"middle"),e},b&&(b.findAlignments=a.findAlignments),t(a,"alignDataLabel",(function(t,e,n,i,r,o){var a=this.chart,s=f(i.inside,!!this.options.stacking);a.polar?(t=e.rectPlotX/Math.PI*180,a.inverted?(this.forceDL=a.isInsidePlot(e.plotX,Math.round(e.plotY)),s&&e.shapeArgs?(r=e.shapeArgs,r={x:(r=this.yAxis.postTranslate(((r.start||0)+(r.end||0))/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-a.plotLeft,y:r.y-a.plotTop}):e.tooltipPos&&(r={x:e.tooltipPos[0],y:e.tooltipPos[1]}),i.align=f(i.align,"center"),i.verticalAlign=f(i.verticalAlign,"middle")):this.findAlignments&&(i=this.findAlignments(t,i)),v.alignDataLabel.call(this,e,n,i,r,o),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end&&n.hide(!0)):t.call(this,e,n,i,r,o)}))}t(r,"getCoordinates",(function(t,e){var n=this.chart,i={xAxis:[],yAxis:[]};return n.polar?n.axes.forEach((function(t){var r=t.isXAxis,o=t.center;if("colorAxis"!==t.coll){var a=e.chartX-o[0]-n.plotLeft;o=e.chartY-o[1]-n.plotTop,i[r?"xAxis":"yAxis"].push({axis:t,value:t.translate(r?Math.PI-Math.atan2(a,o):Math.sqrt(Math.pow(a,2)+Math.pow(o,2)),!0)})}})):i=t.call(this,e),i})),s.prototype.clipCircle=function(t,e,n,i){var r=m(),o=this.createElement("clipPath").attr({id:r}).add(this.defs);return(t=i?this.arc(t,e,n,i,0,2*Math.PI).add(o):this.circle(t,e,n).add(o)).id=r,t.clipPath=o,t},c(e,"getAxes",(function(){this.pane||(this.pane=[]),this.options.pane=g(this.options.pane),this.options.pane.forEach((function(t){new i(t,this)}),this)})),c(e,"afterDrawChartBox",(function(){this.pane.forEach((function(t){t.render()}))})),c(o,"afterInit",(function(){var t=this.chart;t.inverted&&t.polar&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0))})),t(e.prototype,"get",(function(t,e){return h(this.pane||[],(function(t){return t.options.id===e}))||t.call(this,e)}))})),e(t,"masters/highcharts-more.src.js",[t["Core/Globals.js"],t["Core/Axis/RadialAxis.js"],t["Series/Bubble/BubbleSeries.js"]],(function(t,e,n){e.compose(t.Axis,t.Tick),n.compose(t.Chart,t.Legend,t.Series)}))}))},function(t,e,n){"use strict";var i=n(147);var r=function(t){function e(t,e,i){var r=e.trim().split(f);e=r;var o=r.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";si&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(g,"$1"+t.trim());case 58:return t.trim()+e.replace(g,"$1"+t.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0p)&&(F=(W=W.replace(" ",":")).length),0t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0?Object(g.a)(V):p.a.colors,plotOptions:{series:{pointStart:H,events:{},dataLabels:{enabled:!1}}},series:W,credits:!1};j||(J.plotOptions.series.events={legendItemClick:function(){return!1}});var Q=m(Object(i.useState)({}),2),tt=Q[0],et=Q[1];return Object(i.useEffect)((function(){et(Object.assign({},J))}),[W]),r.a.createElement(c.a,{containerProps:Object.assign(Object.assign({className:a()(Object(s.c)(q),x),id:$},K),Z),highcharts:h.a,options:tt})}},,,,function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(5),l=n(2),d=n(82),c=n(7),u=n(74),h=n(49),p=n(22);function f(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(t,e){if(t){if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&t(a.children,i)}}catch(t){o.e(t)}finally{o.f()}}(t,e),n},b=function t(e){var n=[];if(Array.isArray(e))return e.forEach((function(e){if(e.checked&&n.push(e),e.children&&e.children.length>0){var i=t(e.children);n.push.apply(n,f(i))}})),n},x=function(t){var e=[];return function t(n){Array.isArray(n)&&n.forEach((function(i){if(i.checked)if(i.children&&i.children.length>0){if(0===i.children.filter((function(t){return!t.checked})).length)return void e.push(i)}else{var r=n.find((function(t){return t.id===i.parentId}));r&&r.checked||e.push(i)}i.children&&i.children.length>0&&t(i.children)}))}(t),e};function _(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){if(t){if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(Array.isArray(e))return e.map((function(e){var o=Object.assign(Object.assign({},e),{checked:n&&n.length&&n.includes(e.id),parent_id:i,depth:r});if(o.children&&o.children.length>0){var a=e.checked&&!E?nt(e.children,!0):e.children;o.children=t(a,n,o.id,r+1)}return o}))},lt=function(t,e){t.stopPropagation();var n=at(e,!1);M(E?b(n):x(n))},dt=function(t){return tt.indexOf(t.id)>-1},ct=function(){var t;return E&&Y&&Y.length?t=Y.length:!E&&K&&K.length&&(t=K.length),t};return r.a.createElement("div",Object.assign({},T,D,{className:L,id:w}),r.a.createElement("div",{ref:I,className:"wrapper"},r.a.createElement("div",{className:"input_wrapper",onClick:function(t){t.stopPropagation(),"multiselect_input"===t.target.id||t.target.classList.contains("pb_form_pill_tag")||F(!R)}},r.a.createElement("div",{className:"input_inner_container"},0!==Y.length&&E?Y.map((function(t){return r.a.createElement("input",{type:"hidden",name:"".concat(k,"[]"),value:t.id})})):null,0!==Y.length&&"pills"===$&&E?Y.map((function(t,e){return r.a.createElement(u.a,{key:e,text:t.label,size:"small",onClick:function(e){return lt(e,t)}})})):null,E||0===K.length||"pills"!==$?null:K.map((function(t,e){return r.a.createElement(u.a,{key:e,text:t.label,size:"small",onClick:function(e){return lt(e,t)}})})),0!==Y.length&&E&&"pills"===$&&r.a.createElement("br",null),0!==K.length&&!E&&"pills"===$&&r.a.createElement("br",null),r.a.createElement("input",{id:"multiselect_input",onChange:function(t){W(t.target.value)},placeholder:"none"===$&&ct()?"".concat(ct()," ").concat(1===ct()?"item":"items"," selected"):"Start typing...",value:z,onClick:function(){return F(!1)}})),R?r.a.createElement("div",{key:"chevron-down"},r.a.createElement(c.a,{icon:"chevron-down",size:"xs"})):r.a.createElement("div",{key:"chevron-up"},r.a.createElement(c.a,{icon:"chevron-up",size:"xs"}))),r.a.createElement("div",{className:"dropdown_menu ".concat(R?"close":"open")},function t(e){return r.a.createElement("ul",null,Array.isArray(e)&&e.map((function(e){return r.a.createElement("div",{key:e.id},r.a.createElement("li",{className:"dropdown_item","data-name":e.id},r.a.createElement("div",{className:"dropdown_item_checkbox_row"},r.a.createElement("div",{key:dt(e)?"chevron-down":"chevron-right"},r.a.createElement(h.a,{icon:dt(e)?"chevron-down":"chevron-right",className:e.children&&e.children.length>0?"":"toggle_icon",onClick:function(t){return function(t,e){e.stopPropagation();var n=y(X,t);if(n){var i=_(tt);dt(n[0])?i=i.filter((function(t){return t!=n[0].id})):i.push(n[0].id),et(i)}}(e.id,t)},variant:"link"})),r.a.createElement(d.a,{text:e.label,id:e.id},r.a.createElement("input",{checked:e.checked,type:"checkbox",name:e.label,value:e.label,onChange:function(t){!function(t,e){var n=t.target.parentNode.id;W("");var i=y(X,n),r=at(i[0],e);M(E?b(r):x(r))}(t,!e.checked)}}))),dt(e)&&e.children&&e.children.length>0&&!z&&r.a.createElement("div",null,t(e.children))))})))}(z?function(t,e){var n=[];return function t(e,i){var r,o=g(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.label.toLowerCase().includes(i.toLowerCase())&&n.push(a),a.children&&t(a.children,i)}}catch(t){o.e(t)}finally{o.f()}}(t,e),n}(X,z):X))))}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(0),r=n.n(i).a.createContext(null)},function(t,e,n){"use strict";var i=n(40),r={passive:!0};e.a={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,a=o.scroll,s=void 0===a||a,l=o.resize,d=void 0===l||l,c=Object(i.a)(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach((function(t){t.addEventListener("scroll",n.update,r)})),d&&c.addEventListener("resize",n.update,r),function(){s&&u.forEach((function(t){t.removeEventListener("scroll",n.update,r)})),d&&c.removeEventListener("resize",n.update,r)}},data:{}}},function(t,e,n){"use strict";var i=n(138);e.a={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Object(i.a)({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(44),r=n(72),o=n(102),a=n(11);function s(t){var e,n=t.reference,s=t.element,l=t.placement,d=l?Object(i.a)(l):null,c=l?Object(r.a)(l):null,u=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2;switch(d){case a.m:e={x:u,y:n.y-s.height};break;case a.c:e={x:u,y:n.y+n.height};break;case a.k:e={x:n.x+n.width,y:h};break;case a.f:e={x:n.x-s.width,y:h};break;default:e={x:n.x,y:n.y}}var p=d?Object(o.a)(d):null;if(null!=p){var f="y"===p?"height":"width";switch(c){case a.l:e[p]=e[p]-(n[f]/2-s[f]/2);break;case a.e:e[p]=e[p]+(n[f]/2-s[f]/2)}}return e}},function(t,e,n){"use strict";var i=n(11),r=n(78),o=n(40),a=n(51),s=n(57),l=n(44),d=n(72),c=n(32),u={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(t){var e,n=t.popper,l=t.popperRect,d=t.placement,h=t.variation,p=t.offsets,f=t.position,g=t.gpuAcceleration,m=t.adaptive,v=t.roundOffsets,y=t.isFixed,b=p.x,x=void 0===b?0:b,_=p.y,O=void 0===_?0:_,w="function"==typeof v?v({x:x,y:O}):{x:x,y:O};x=w.x,O=w.y;var C=p.hasOwnProperty("x"),$=p.hasOwnProperty("y"),k=i.f,S=i.m,E=window;if(m){var j=Object(r.a)(n),A="clientHeight",M="clientWidth";if(j===Object(o.a)(n)&&(j=Object(a.a)(n),"static"!==Object(s.a)(j).position&&"absolute"===f&&(A="scrollHeight",M="scrollWidth")),j=j,d===i.m||(d===i.f||d===i.k)&&h===i.e)S=i.c,O-=(y&&j===E&&E.visualViewport?E.visualViewport.height:j[A])-l.height,O*=g?1:-1;if(d===i.f||(d===i.m||d===i.c)&&h===i.e)k=i.k,x-=(y&&j===E&&E.visualViewport?E.visualViewport.width:j[M])-l.width,x*=g?1:-1}var P,T=Object.assign({position:f},m&&u),D=!0===v?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:Object(c.c)(e*i)/i||0,y:Object(c.c)(n*i)/i||0}}({x:x,y:O}):{x:x,y:O};return x=D.x,O=D.y,g?Object.assign({},T,((P={})[S]=$?"0":"",P[k]=C?"0":"",P.transform=(E.devicePixelRatio||1)<=1?"translate("+x+"px, "+O+"px)":"translate3d("+x+"px, "+O+"px, 0)",P)):Object.assign({},T,((e={})[S]=$?O+"px":"",e[k]=C?x+"px":"",e.transform="",e))}e.a={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:Object(l.a)(e.placement),variation:Object(d.a)(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,h(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,h(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}}},function(t,e,n){"use strict";var i=n(46),r=n(25);e.a={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},a=e.elements[t];Object(r.b)(a)&&Object(i.a)(a)&&(Object.assign(a.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?a.removeAttribute(t):a.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],a=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Object(r.b)(o)&&Object(i.a)(o)&&(Object.assign(o.style,s),Object.keys(a).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(142);function r(t){return Object.assign({},Object(i.a)(),t)}},function(t,e,n){"use strict";function i(){return{top:0,right:0,bottom:0,left:0}}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function i(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(123);function r(){return!/^((?!chrome|android).)*safari/i.test(Object(i.a)())}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(25);function r(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Object(i.c)(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},function(t,e,n){"use strict";function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(t){if(t.sheet)return t.sheet;for(var e=0;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0])||arguments[0],e=Object(i.useState)(t),n=r(e,2),o=n[0],a=n[1],s=function(){return a((function(t){return!t}))};return[o,s,a]}},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n({name:"arrow",options:t,async fn(e){const{element:n,padding:i=0}=t||{},{x:r,y:s,placement:d,rects:u,platform:h,elements:p}=e;if(null==n)return{};const f=c(i),m={x:r,y:s},v=l(d),y=a(v),b=await h.getDimensions(n),x="y"===v,_=x?"top":"left",O=x?"bottom":"right",w=x?"clientHeight":"clientWidth",C=u.reference[y]+u.reference[v]-m[v]-u.floating[y],$=m[v]-u.reference[v],k=await(null==h.getOffsetParent?void 0:h.getOffsetParent(n));let S=k?k[w]:0;S&&await(null==h.isElement?void 0:h.isElement(k))||(S=p.floating[w]||u.floating[y]);const E=C/2-$/2,j=f[_],A=S-b[y]-f[O],M=S/2-b[y]/2+E,P=g(j,M,A),T=null!=o(d)&&M!=P&&u.reference[y]/2-(Mv[t])}function b(t,e,n){void 0===n&&(n=!1);const i=o(t),r=l(t),s=a(r);let d="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(d=y(d)),{main:d,cross:y(d)}}const x={start:"end",end:"start"};function _(t){return t.replace(/start|end/g,t=>x[t])}const O=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:i,middlewareData:r,rects:a,initialPlacement:l,platform:d,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...x}=t,O=s(i),w=s(l)===l,C=await(null==d.isRTL?void 0:d.isRTL(c.floating)),$=f||(w||!v?[y(l)]:function(t){const e=y(t);return[_(t),e,_(e)]}(l));f||"none"===m||$.push(...function(t,e,n,i){const r=o(t);let a=function(t,e,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:i:e?i:r;case"left":case"right":return e?o:a;default:return[]}}(s(t),"start"===n,i);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(_)))),a}(l,v,m,C));const k=[l,...$],S=await h(e,x),E=[];let j=(null==(n=r.flip)?void 0:n.overflows)||[];if(u&&E.push(S[O]),p){const{main:t,cross:e}=b(i,a,C);E.push(S[t],S[e])}if(j=[...j,{placement:i,overflows:E}],!E.every(t=>t<=0)){var A,M;const t=((null==(A=r.flip)?void 0:A.index)||0)+1,e=k[t];if(e)return{data:{index:t,overflows:j},reset:{placement:e}};let n=null==(M=j.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:M.placement;if(!n)switch(g){case"bestFit":{var P;const t=null==(P=j.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:P[0];t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};const w=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:i}=e,r=await async function(t,e){const{placement:n,platform:i,elements:r}=t,a=await(null==i.isRTL?void 0:i.isRTL(r.floating)),d=s(n),c=o(n),u="x"===l(n),h=["left","top"].includes(d)?-1:1,p=a&&u?-1:1,f="function"==typeof e?e(t):e;let{mainAxis:g,crossAxis:m,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof v&&(m="end"===c?-1*v:v),u?{x:m*p,y:g*h}:{x:g*h,y:m*p}}(e,t);return{x:n+r.x,y:i+r.y,data:r}}}};function C(t){return"x"===t?"y":"x"}function $(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function k(t){return $(t).getComputedStyle(t)}function S(t){return t instanceof $(t).Node}function E(t){return S(t)?(t.nodeName||"").toLowerCase():""}let j;function A(){if(j)return j;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(j=t.brands.map(t=>t.brand+"/"+t.version).join(" "),j):navigator.userAgent}function M(t){return t instanceof $(t).HTMLElement}function P(t){return t instanceof $(t).Element}function T(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof $(t).ShadowRoot||t instanceof ShadowRoot}function D(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function L(t){return["table","td","th"].includes(E(t))}function I(t){const e=/firefox/i.test(A()),n=k(t),i=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!i&&"none"!==i||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(t=>n.willChange.includes(t))||["paint","layout","strict","content"].some(t=>{const e=n.contain;return null!=e&&e.includes(t)})}function N(){return/^((?!chrome|android).)*safari/i.test(A())}function R(t){return["html","body","#document"].includes(E(t))}const F=Math.min,B=Math.max,z=Math.round;function W(t){const e=k(t);let n=parseFloat(e.width),i=parseFloat(e.height);const r=M(t),o=r?t.offsetWidth:n,a=r?t.offsetHeight:i,s=z(n)!==o||z(i)!==a;return s&&(n=o,i=a),{width:n,height:i,fallback:s}}function H(t){return P(t)?t:t.contextElement}const Y={x:1,y:1};function U(t){const e=H(t);if(!M(e))return Y;const n=e.getBoundingClientRect(),{width:i,height:r,fallback:o}=W(e);let a=(o?z(n.width):n.width)/i,s=(o?z(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function G(t,e,n,i){var r,o;void 0===e&&(e=!1),void 0===n&&(n=!1);const a=t.getBoundingClientRect(),s=H(t);let l=Y;e&&(i?P(i)&&(l=U(i)):l=U(t));const d=s?$(s):window,c=N()&&n;let h=(a.left+(c&&(null==(r=d.visualViewport)?void 0:r.offsetLeft)||0))/l.x,p=(a.top+(c&&(null==(o=d.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=a.width/l.x,g=a.height/l.y;if(s){const t=$(s),e=i&&P(i)?$(i):i;let n=t.frameElement;for(;n&&i&&e!==t;){const t=U(n),e=n.getBoundingClientRect(),i=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(i.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(i.paddingTop))*t.y,h*=t.x,p*=t.y,f*=t.x,g*=t.y,h+=e.x,p+=e.y,n=$(n).frameElement}}return u({width:f,height:g,x:h,y:p})}function X(t){return((S(t)?t.ownerDocument:t.document)||window.document).documentElement}function V(t){return P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function q(t){return G(X(t)).left+V(t).scrollLeft}function K(t){if("html"===E(t))return t;const e=t.assignedSlot||t.parentNode||T(t)&&t.host||X(t);return T(e)?e.host:e}function Z(t,e){var n;void 0===e&&(e=[]);const i=function t(e){const n=K(e);return R(n)?n.ownerDocument.body:M(n)&&D(n)?n:t(n)}(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=$(i);return r?e.concat(o,o.visualViewport||[],D(i)?i:[]):e.concat(i,Z(i))}function J(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=$(t),i=X(t),r=n.visualViewport;let o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;const t=N();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=X(t),n=V(t),i=t.ownerDocument.body,r=B(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=B(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+q(t);const s=-n.scrollTop;return"rtl"===k(i).direction&&(a+=B(e.clientWidth,i.clientWidth)-r),{width:r,height:o,x:a,y:s}}(X(t));else if(P(e))i=function(t,e){const n=G(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,o=M(t)?U(t):{x:1,y:1};return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:r*o.x,y:i*o.y}}(e,n);else{const n={...e};if(N()){var r,o;const e=$(t);n.x-=(null==(r=e.visualViewport)?void 0:r.offsetLeft)||0,n.y-=(null==(o=e.visualViewport)?void 0:o.offsetTop)||0}i=n}return u(i)}function Q(t,e){return M(t)&&"fixed"!==k(t).position?e?e(t):t.offsetParent:null}function tt(t,e){const n=$(t);if(!M(t))return n;let i=Q(t,e);for(;i&&L(i)&&"static"===k(i).position;)i=Q(i,e);return i&&("html"===E(i)||"body"===E(i)&&"static"===k(i).position&&!I(i))?n:i||function(t){let e=K(t);for(;M(e)&&!R(e);){if(I(e))return e;e=K(e)}return null}(t)||n}function et(t,e,n){const i=M(e),r=X(e),o=G(t,!0,"fixed"===n,e);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&"fixed"!==n)if(("body"!==E(e)||D(r))&&(a=V(e)),M(e)){const t=G(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&(s.x=q(r));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const nt={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const o=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=Z(t).filter(t=>P(t)&&"body"!==E(t)),r=null;const o="fixed"===k(t).position;let a=o?K(t):t;for(;P(a)&&!R(a);){const t=k(a),e=I(a);if("fixed"===t.position)r=null;else{(o?!e&&!r:!e&&"static"===t.position&&!!r&&["absolute","fixed"].includes(r.position))?i=i.filter(t=>t!==a):r=t}a=K(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=o[0],s=o.reduce((t,n)=>{const i=J(e,n,r);return t.top=B(i.top,t.top),t.right=F(i.right,t.right),t.bottom=F(i.bottom,t.bottom),t.left=B(i.left,t.left),t},J(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:i}=t;const r=M(n),o=X(n);if(n===o)return e;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==E(n)||D(o))&&(a=V(n)),M(n))){const t=G(n);s=U(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},isElement:P,getDimensions:function(t){return W(t)},getOffsetParent:tt,getDocumentElement:X,getScale:U,async getElementRects(t){let{reference:e,floating:n,strategy:i}=t;const r=this.getOffsetParent||tt,o=this.getDimensions;return{reference:et(e,await r(n),i),floating:{x:0,y:0,...await o(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===k(t).direction};const it=(t,e,n)=>{const i=new Map,r={platform:nt,...n},o={...r.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:h}=d(c,i,l),p=i,f={},g=0;for(let n=0;n{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(t){return i=e,Object.prototype.hasOwnProperty.call(i,"current")?null!=e.current?m({element:e.current,padding:n}).fn(t):{}:e?m({element:e,padding:n}).fn(t):{};var i}}};var at="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function st(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,i,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(i=n;0!=i--;)if(!st(t[i],e[i]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){const n=r[i];if(("_owner"!==n||!t.$$typeof)&&!st(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function lt(t){const e=i.useRef(t);return at(()=>{e.current=t}),e}new WeakMap,new WeakMap;var dt="undefined"==typeof Element;dt||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,!dt&&Element.prototype.getRootNode;var ct="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;let ut=!1,ht=0;const pt=()=>"floating-ui-"+ht++;const ft=i["useId".toString()]||function(){const[t,e]=i.useState(()=>ut?pt():void 0);return ct(()=>{null==t&&e(pt())},[]),i.useEffect(()=>{ut||(ut=!0)},[]),t};function gt(){const t=new Map;return{emit(e,n){var i;null==(i=t.get(e))||i.forEach(t=>t(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var i;t.set(e,(null==(i=t.get(e))?void 0:i.filter(t=>t!==n))||[])}}}const mt=i.createContext(null),vt=i.createContext(null),yt=()=>{var t;return(null==(t=i.useContext(mt))?void 0:t.id)||null},bt=()=>i.useContext(vt);function xt(t){return(null==t?void 0:t.ownerDocument)||document}function _t(t){return xt(t).defaultView||window}function Ot(t){return!!t&&t instanceof _t(t).Element}function wt(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function Ct(t,e){if(!t||!e)return!1;const n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&(i=n,"undefined"!=typeof ShadowRoot&&(i instanceof _t(i).ShadowRoot||i instanceof ShadowRoot))){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}var i;return!1}function $t(t){const e=Object(i.useRef)(t);return ct(()=>{e.current=t}),e}function kt(t,e,n){return n&&!wt(n)?0:"number"==typeof t?t:null==t?void 0:t[e]}const St=function(t,e){void 0===e&&(e={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:{domReference:s,floating:l},refs:d}=t,{enabled:c=!0,delay:u=0,handleClose:h=null,mouseOnly:p=!1,restMs:f=0,move:g=!0}=e,m=bt(),v=yt(),y=$t(h),b=$t(u),x=i.useRef(),_=i.useRef(),O=i.useRef(),w=i.useRef(),C=i.useRef(!0),$=i.useRef(!1),k=i.useRef(()=>{}),S=i.useCallback(()=>{var t;const e=null==(t=o.current.openEvent)?void 0:t.type;return(null==e?void 0:e.includes("mouse"))&&"mousedown"!==e},[o]);i.useEffect(()=>{if(c)return a.on("dismiss",t),()=>{a.off("dismiss",t)};function t(){clearTimeout(_.current),clearTimeout(w.current),C.current=!0}},[c,a]),i.useEffect(()=>{if(!c||!y.current||!n)return;function t(){S()&&r(!1)}const e=xt(l).documentElement;return e.addEventListener("mouseleave",t),()=>{e.removeEventListener("mouseleave",t)}},[l,n,r,c,y,o,S]);const E=i.useCallback((function(t){void 0===t&&(t=!0);const e=kt(b.current,"close",x.current);e&&!O.current?(clearTimeout(_.current),_.current=setTimeout(()=>r(!1),e)):t&&(clearTimeout(_.current),r(!1))}),[b,r]),j=i.useCallback(()=>{k.current(),O.current=void 0},[]),A=i.useCallback(()=>{if($.current){const t=xt(d.floating.current).body;t.style.pointerEvents="",t.removeAttribute("data-floating-ui-safe-polygon"),$.current=!1}},[d]);return i.useEffect(()=>{if(c&&Ot(s)){const t=s;return n&&t.addEventListener("mouseleave",d),null==l||l.addEventListener("mouseleave",d),g&&t.addEventListener("mousemove",i,{once:!0}),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",a),()=>{n&&t.removeEventListener("mouseleave",d),null==l||l.removeEventListener("mouseleave",d),g&&t.removeEventListener("mousemove",i),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",a)}}function e(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(t){if(clearTimeout(_.current),C.current=!1,p&&!wt(x.current)||f>0&&0===kt(b.current,"open"))return;o.current.openEvent=t;const e=kt(b.current,"open",x.current);e?_.current=setTimeout(()=>{r(!0)},e):r(!0)}function a(i){if(e())return;k.current();const r=xt(l);if(clearTimeout(w.current),y.current){n||clearTimeout(_.current),O.current=y.current({...t,tree:m,x:i.clientX,y:i.clientY,onClose(){A(),j(),E()}});const e=O.current;return r.addEventListener("mousemove",e),void(k.current=()=>{r.removeEventListener("mousemove",e)})}("touch"!==x.current||!Ct(l,i.relatedTarget))&&E()}function d(n){e()||null==y.current||y.current({...t,tree:m,x:n.clientX,y:n.clientY,onClose(){A(),j(),E()}})(n)}},[s,l,c,t,p,f,g,E,j,A,r,n,m,b,y,o]),ct(()=>{var t;if(c&&n&&null!=(t=y.current)&&t.__options.blockPointerEvents&&S()){const t=xt(l).body;if(t.setAttribute("data-floating-ui-safe-polygon",""),t.style.pointerEvents="none",$.current=!0,Ot(s)&&l){var e,i;const t=s,n=null==m||null==(e=m.nodesRef.current.find(t=>t.id===v))||null==(i=e.context)?void 0:i.elements.floating;return n&&(n.style.pointerEvents=""),t.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{t.style.pointerEvents="",l.style.pointerEvents=""}}}},[c,n,v,l,s,m,y,o,S]),ct(()=>{n||(x.current=void 0,j(),A())},[n,j,A]),i.useEffect(()=>()=>{j(),clearTimeout(_.current),clearTimeout(w.current),A()},[c,j,A]),i.useMemo(()=>{if(!c)return{};function t(t){x.current=t.pointerType}return{reference:{onPointerDown:t,onPointerEnter:t,onMouseMove(){n||0===f||(clearTimeout(w.current),w.current=setTimeout(()=>{C.current||r(!0)},f))}},floating:{onMouseEnter(){clearTimeout(_.current)},onMouseLeave(){a.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),E(!1)}}}},[a,c,f,n,r,E])};function Et(t,e){let n=t.filter(t=>{var n;return t.parentId===e&&(null==(n=t.context)?void 0:n.open)}),i=n;for(;i.length;)i=t.filter(t=>{var e;return null==(e=i)?void 0:e.some(e=>{var n;return t.parentId===e.id&&(null==(n=t.context)?void 0:n.open)})}),n=n.concat(i);return n}function jt(t){return"composedPath"in t?t.composedPath()[0]:t.target}const At=i["useInsertionEffect".toString()]||(t=>t());function Mt(t){const e=i.useRef(()=>{0});return At(()=>{e.current=t}),i.useCallback((function(){for(var t=arguments.length,n=new Array(t),i=0;i{let{x:r,y:s,placement:l,elements:d,onClose:c,nodeId:u,tree:h}=t;return function(t){function p(){clearTimeout(e),c()}if(clearTimeout(e),!d.domReference||!d.floating||null==l||null==r||null==s)return;const{clientX:f,clientY:g}=t,m=[f,g],v=jt(t),y="mouseleave"===t.type,b=Ct(d.floating,v),x=Ct(d.domReference,v),_=d.domReference.getBoundingClientRect(),O=d.floating.getBoundingClientRect(),w=l.split("-")[0],C=r>O.right-O.width/2,$=s>O.bottom-O.height/2,k=function(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}(m,_);if(b&&(a=!0,!y))return;if(x&&(a=!1),x&&!y)return void(a=!0);if(y&&Ot(t.relatedTarget)&&Ct(d.floating,t.relatedTarget))return;if(h&&Et(h.nodesRef.current,u).some(t=>{let{context:e}=t;return null==e?void 0:e.open}))return;if("top"===w&&s>=_.bottom-1||"bottom"===w&&s<=_.top+1||"left"===w&&r>=_.right-1||"right"===w&&r<=_.left+1)return p();let S=[];switch(w){case"top":S=[[O.left,_.top+1],[O.left,O.bottom-1],[O.right,O.bottom-1],[O.right,_.top+1]],o=f>=O.left&&f<=O.right&&g>=O.top&&g<=_.top+1;break;case"bottom":S=[[O.left,O.top+1],[O.left,_.bottom-1],[O.right,_.bottom-1],[O.right,O.top+1]],o=f>=O.left&&f<=O.right&&g>=_.bottom-1&&g<=O.bottom;break;case"left":S=[[O.right-1,O.bottom],[O.right-1,O.top],[_.left+1,O.top],[_.left+1,O.bottom]],o=f>=O.left&&f<=_.left+1&&g>=O.top&&g<=O.bottom;break;case"right":S=[[_.right-1,O.bottom],[_.right-1,O.top],[O.left+1,O.top],[O.left+1,O.bottom]],o=f>=_.right-1&&f<=O.right&&g>=O.top&&g<=O.bottom}const E=o?S:function(t){let[e,n]=t;const r=O.width>_.width,o=O.height>_.height;switch(w){case"top":return[[r?e+i/2:C?e+4*i:e-4*i,n+i+1],[r?e-i/2:C?e+4*i:e-4*i,n+i+1],...[[O.left,C||r?O.bottom-i:O.top],[O.right,C?r?O.bottom-i:O.top:O.bottom-i]]];case"bottom":return[[r?e+i/2:C?e+4*i:e-4*i,n-i],[r?e-i/2:C?e+4*i:e-4*i,n-i],...[[O.left,C||r?O.top+i:O.bottom],[O.right,C?r?O.top+i:O.bottom:O.top+i]]];case"left":{const t=[e+i+1,o?n+i/2:$?n+4*i:n-4*i],r=[e+i+1,o?n-i/2:$?n+4*i:n-4*i];return[...[[$||o?O.right-i:O.left,O.top],[$?o?O.right-i:O.left:O.right-i,O.bottom]],t,r]}case"right":return[[e-i,o?n+i/2:$?n+4*i:n-4*i],[e-i,o?n-i/2:$?n+4*i:n-4*i],...[[$||o?O.left+i:O.right,O.top],[$?o?O.left+i:O.right:O.left+i,O.bottom]]]}}([r,s]);return o?void 0:a&&!k?p():void(!function(t,e){const[n,i]=t;let r=!1;const o=e.length;for(let t=0,a=o-1;t=i!=d>=i&&n<=(l-o)*(i-s)/(d-s)+o&&(r=!r)}return r}([f,g],E)?p():n&&!a&&(e=setTimeout(p,n)))}};return s.__options={blockPointerEvents:r},s}function Tt(t){void 0===t&&(t={});const{open:e=!1,onOpenChange:n,nodeId:r}=t,o=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:a,open:s}=t,[l,d]=i.useState({x:null,y:null,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[c,u]=i.useState(r);st(c,r)||u(r);const h=i.useRef(null),p=i.useRef(null),f=i.useRef(l),g=lt(a),m=lt(o),[v,y]=i.useState(null),[b,x]=i.useState(null),_=i.useCallback(t=>{h.current!==t&&(h.current=t,y(t))},[]),O=i.useCallback(t=>{p.current!==t&&(p.current=t,x(t))},[]),w=i.useCallback(()=>{if(!h.current||!p.current)return;const t={placement:e,strategy:n,middleware:c};m.current&&(t.platform=m.current),it(h.current,p.current,t).then(t=>{const e={...t,isPositioned:!0};C.current&&!st(f.current,e)&&(f.current=e,rt.flushSync(()=>{d(e)}))})},[c,e,n,m]);at(()=>{!1===s&&f.current.isPositioned&&(f.current.isPositioned=!1,d(t=>({...t,isPositioned:!1})))},[s]);const C=i.useRef(!1);at(()=>(C.current=!0,()=>{C.current=!1}),[]),at(()=>{if(v&&b){if(g.current)return g.current(v,b,w);w()}},[v,b,w,g]);const $=i.useMemo(()=>({reference:h,floating:p,setReference:_,setFloating:O}),[_,O]),k=i.useMemo(()=>({reference:v,floating:b}),[v,b]);return i.useMemo(()=>({...l,update:w,refs:$,elements:k,reference:_,floating:O}),[l,w,$,k,_,O])}(t),a=bt(),s=i.useRef(null),l=i.useRef({}),d=i.useState(()=>gt())[0],c=ft(),[u,h]=i.useState(null),p=i.useCallback(t=>{const e=Ot(t)?{getBoundingClientRect:()=>t.getBoundingClientRect(),contextElement:t}:t;o.refs.setReference(e)},[o.refs]),f=i.useCallback(t=>{(Ot(t)||null===t)&&(s.current=t,h(t)),(Ot(o.refs.reference.current)||null===o.refs.reference.current||null!==t&&!Ot(t))&&o.refs.setReference(t)},[o.refs]),g=i.useMemo(()=>({...o.refs,setReference:f,setPositionReference:p,domReference:s}),[o.refs,f,p]),m=i.useMemo(()=>({...o.elements,domReference:u}),[o.elements,u]),v=Mt(n),y=i.useMemo(()=>({...o,refs:g,elements:m,dataRef:l,nodeId:r,floatingId:c,events:d,open:e,onOpenChange:v}),[o,r,c,d,e,v,g,m]);return ct(()=>{const t=null==a?void 0:a.nodesRef.current.find(t=>t.id===r);t&&(t.context=y)}),i.useMemo(()=>({...o,context:y,refs:g,elements:m,reference:f,positionReference:p}),[o,g,m,y,f,p])}function Dt(t,e,n){const i=new Map;return{..."floating"===n&&{tabIndex:-1},...t,...e.map(t=>t?t[n]:null).concat(t).reduce((t,e)=>e?(Object.entries(e).forEach(e=>{let[n,r]=e;var o;0===n.indexOf("on")?(i.has(n)||i.set(n,[]),"function"==typeof r&&(null==(o=i.get(n))||o.push(r),t[n]=function(){for(var t,e=arguments.length,r=new Array(e),o=0;ot(...r)).find(t=>void 0!==t)})):t[n]=r}),t):t,{})}}var Lt=n(3),It=n.n(Lt),Nt=n(5),Rt=n(2),Ft=n(9);function Bt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=e,u={x:n,y:i},p=await h(t,c),f=l(s(r)),m=C(f);let v=u[f],y=u[m];if(o){const t="y"===f?"bottom":"right";v=g(v+p["y"===f?"top":"left"],v,v-p[t])}if(a){const t="y"===m?"bottom":"right";y=g(y+p["y"===m?"top":"left"],y,y-p[t])}const b=d.fn({...t,[f]:v,[m]:y});return{...b,data:{x:b.x-n,y:b.y-i}}}})],open:D,onOpenChange:function(t){L(t)},placement:_}),R=N.context,F=N.floating,B=N.middlewareData.arrow,z=void 0===B?{}:B,W=z.x,H=z.y,Y=N.placement,U=N.reference,G=N.strategy,X=N.x,V=N.y,q=function(t){void 0===t&&(t=[]);const e=t,n=i.useCallback(e=>Dt(e,t,"reference"),e),r=i.useCallback(e=>Dt(e,t,"floating"),e),o=i.useCallback(e=>Dt(e,t,"item"),t.map(t=>null==t?void 0:t.item));return i.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}([St(R,{delay:f,handleClose:b?Pt({blockPointerEvents:!1}):null})]).getFloatingProps,K={bottom:"top",left:"right",right:"left",top:"bottom"}[Y.split("-")[0]];return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",Object.assign({className:"pb_tooltip_kit ".concat(P),ref:U,role:"tooltip_trigger",style:{display:"inline-flex"}},M,A),d),D&&r.a.createElement("div",Object.assign({},q({className:"tooltip_tooltip ".concat(Y," visible"),ref:F,role:"tooltip",style:{position:G,top:null!=V?V:0,left:null!=X?X:0,zIndex:null!=E?E:0}})),r.a.createElement(Ft.a,{align:"center",gap:"xs"},v&&r.a.createElement("i",{className:"pb_icon_kit far fa-".concat(v," fa-fw")}),S),r.a.createElement("div",{className:"arrow_bg",ref:I,style:Bt({position:"absolute",left:null!=W?"".concat(W,"px"):"",top:null!=H?"".concat(H,"px"):""},K,"-5px")})))}},function(t,e,n){"use strict";var i=n(188),r=n(202),o=n.n(r),a=n(203),s=n.n(a);var l=function(t){return function(e){var n=function(t){var n=document.createElement("div");n.className="pb_selectable_card_kit_enabled";var i=document.createElement("input"),r="datePicker-".concat(e.element.id,"-").concat(t);i.className="datePicker-AMPM",i.id=r,i.name="datepicker-ampm",i.type="radio",i.value=t;var o=document.createElement("label"),a=document.createElement("div");return o.className="label-".concat(t.toLowerCase()),o.setAttribute("for",r),a.className="buffer",a.innerHTML=t,o.append(a),n.prepend(i),n.append(o),n},i=function(t){if(e.selectedDates.length){var n="pb_selectable_card_kit_checked_enabled",i=document.getElementById("datePicker-".concat(e.element.id,"-AM")),r=document.getElementById("datePicker-".concat(e.element.id,"-PM")),o=e.selectedDates[0].getHours()<12?"AM":"PM";t&&(i.checked=!1,r.checked=!1,r.checked="PM"===o,i.checked="AM"===o),"PM"===o?(r.parentElement.className=n,i.parentElement.className="pb_selectable_card_kit_enabled"):"AM"===o&&(i.parentElement.className=n,r.parentElement.className="pb_selectable_card_kit_enabled")}};return{onValueUpdate:function(){i(!0)},onOpen:function(){i(!0)},onReady:function(){if(e.input.id&&(null==e?void 0:e.timeContainer)){if(e.timeContainer.classList.add("pb_time_selection"),e.minuteElement.step="1",t.caption){var r=document.createElement("div");r.className="pb_caption_kit_md",r.innerHTML=null==t?void 0:t.caption,e.timeContainer.prepend(r)}if(function(){e.amPM.style.display="none";var t=document.createElement("div");t.className="pb_form_group_kit";var i=n("AM");i.addEventListener("click",(function(){e.selectedDates[0].setHours(e.selectedDates[0].getHours()%12+0),e.setDate(e.selectedDates[0],!0)}));var r=n("PM");r.addEventListener("click",(function(){e.selectedDates[0].setHours(e.selectedDates[0].getHours()%12+12),e.setDate(e.selectedDates[0],!0)})),t.prepend(i),t.append(r);var o=document.createElement("div");o.className="meridiem",o.append(t),e.timeContainer.append(o)}(),i(!0),t.showTimezone){var o=document.createElement("div");o.className="pb_caption_kit_xs",o.innerHTML=(a=e._initialDate,s=a.toLocaleDateString("en-US",{day:"2-digit",timeZoneName:"short"}).slice(4),l=a.toLocaleDateString("en-US",{day:"2-digit",timeZoneName:"long"}).slice(4),"".concat(s," (").concat(l,")")),e.timeContainer.append(o)}var a,s,l;e.loadedPlugins.push("timeSelectPlugin")}}}}},d=n(18);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&h&&b.rangesButtons[h].classList.add("active")};return{onReady:function(t){for(var n=function(){var t=r[i],n=(o=c(t,2))[0],a=o[1];(function(t){var e=document.createElement("div");e.className="nav-item-link",e.innerHTML=t,b.rangesButtons[t]=e;var n=document.createElement("li");return n.className="nav-item",n.appendChild(b.rangesButtons[t]),b.rangesNav.appendChild(n),b.rangesButtons[t]})(n).addEventListener("click",(function(){var t=new Date(a[0]),i=new Date(a[1]);t?(h=n,e.setDate([t,i],!0),e.close()):e.clear()}))},i=0,r=Object.entries(b.ranges);i0&&(e.calendarContainer.prepend(b.rangesNav),b.rangesNav.classList.add("quick-pick-ul"),e.calendarContainer.classList.add("quick-pick-drop-down"),x(t))},onValueUpdate:function(t){x(t)},onClose:function(t){var n;(function(t){return h&&t[0].toDateString()===b.ranges[h][0].toDateString()&&t[1].toDateString()===b.ranges[h][1].toDateString()})(t)||(null===(n=b.rangesButtons[h])||void 0===n||n.classList.remove("active"),h=""),1===t.length&&e.setDate([t[0],t[0]],!0),t.length<2&&t.length>0&&(e.input.placeholder=e.formatDate(this.selectedDates[0],e.config.dateFormat))}}}};function f(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nwindow.innerWidth&&(e.style.display="flex",e.style.justifyContent="center"),t.offsetWidth<=e.offsetWidth&&(e.style.display="",e.style.justifyContent="")};Object(i.a)("#".concat(k),{allowInput:a,closeOnSelect:c,disableMobile:!0,dateFormat:v?"".concat(y," ").concat(z):y,defaultDate:""===u?null:u,disable:(r=[],h&&h.length>0&&r.push.apply(r,f(h)),g&&g.length>0&&r.push.apply(r,f(g)),m&&m.length>0&&r.push.apply(r,f(H())),r),enableTime:v,locale:{rangeSeparator:" to "},maxDate:b,minDate:x,mode:_,nextArrow:'',onOpen:[function(){var t,n;Y(),window.addEventListener("resize",Y),!L&&e&&(t=e,null===(n=document.querySelectorAll(t)[0])||void 0===n||n.addEventListener("scroll",G,{passive:!0}))}],onClose:[function(t,n){window.removeEventListener("resize",Y),!L&&e&&function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;null===(t=document.querySelectorAll(e)[0])||void 0===t||t.removeEventListener("scroll",G)}(e),$(t,n)}],onChange:[function(t,e){w(e,t)}],onYearChange:[function(){K()}],plugins:function(t){var e=[];return"month"===P||S.length>0?e.push(o()({shorthand:!0,dateFormat:"F Y",altFormat:"F Y"})):"week"===P?e.push(s()()):"quickpick"===P&&e.push(p(t)),v&&e.push(l({caption:F,showTimezone:T})),e}(N),position:j,positionElement:(n=A,"string"==typeof n?document.querySelectorAll(n)[0]:n),prevArrow:'',static:L});var U=document.querySelector("#".concat(k))._flatpickr;U.innerContainer.parentElement.id="cal-".concat(k);var G=function(){U._positionCalendar()};U.yearElements[0].parentElement.innerHTML='');for(var X="",V=W[1];V>=W[0];V--)X+='");var q=document.querySelector("#year-".concat(k));q.innerHTML=X,q.value=U.currentYear,q.addEventListener("input",(function(t){U.changeYear(Number(t.target.value))})),U.input.form&&U.input.form.addEventListener("reset",(function(){setTimeout((function(){q.value=U.currentYear,U.monthsDropdownContainer.value=U.currentMonth,u&&(U.setDate(u),K())}),0)}));var K=function(){q.value=U.currentYear};if(q.insertAdjacentHTML("afterend",''),U.monthElements[0].parentElement)return U.monthElements[0].insertAdjacentHTML("afterend",'');a&&U.input.removeAttribute("readonly"),M&&(U.input.removeAttribute("readonly"),U.input.addEventListener("keydown",(function(t){return t.preventDefault()})),U.input.style.caretColor="transparent",U.input.style.cursor="pointer"),document.querySelector("#".concat(k)).parentElement.addEventListener("click",(function(t){return t.stopPropagation()}))}},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canUseDOM=e.SafeNodeList=e.SafeHTMLCollection=void 0;var i,r=n(151);var o=((i=r)&&i.__esModule?i:{default:i}).default,a=o.canUseDOM?window.HTMLElement:{};e.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},e.SafeNodeList=o.canUseDOM?window.NodeList:{},e.canUseDOM=o.canUseDOM;e.default=a},function(t,e,n){var i=n(232).Symbol;t.exports=i},function(t,e,n){"use strict";var i=function(){};t.exports=i},,function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n(101),r=n(136),o=n(137),a=n(139),s=n(140),l=[r.a,o.a,a.a,s.a],d=Object(i.a)({defaultModifiers:l})},,function(t,e,n){"use strict";var i=n(44),r=n(11);e.a={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,o=t.name,a=n.offset,s=void 0===a?[0,0]:a,l=r.h.reduce((function(t,n){return t[n]=function(t,e,n){var o=Object(i.a)(t),a=[r.f,r.m].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},e,{placement:t})):n,l=s[0],d=s[1];return l=l||0,d=(d||0)*a,[r.f,r.k].indexOf(o)>=0?{x:d,y:l}:{x:l,y:d}}(n,e.rects,s),t}),{}),d=l[e.placement],c=d.x,u=d.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[o]=l}}},function(t,e,n){"use strict";var i={left:"right",right:"left",bottom:"top",top:"bottom"};function r(t){return t.replace(/left|right|bottom|top/g,(function(t){return i[t]}))}var o=n(44),a={start:"end",end:"start"};function s(t){return t.replace(/start|end/g,(function(t){return a[t]}))}var l=n(62),d=n(72),c=n(11);e.a={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var a=n.mainAxis,u=void 0===a||a,h=n.altAxis,p=void 0===h||h,f=n.fallbackPlacements,g=n.padding,m=n.boundary,v=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,x=void 0===b||b,_=n.allowedAutoPlacements,O=e.options.placement,w=Object(o.a)(O),C=f||(w===O||!x?[r(O)]:function(t){if(Object(o.a)(t)===c.a)return[];var e=r(t);return[s(t),e,s(e)]}(O)),$=[O].concat(C).reduce((function(t,n){return t.concat(Object(o.a)(n)===c.a?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,u=n.flipVariations,h=n.allowedAutoPlacements,p=void 0===h?c.h:h,f=Object(d.a)(i),g=f?u?c.n:c.n.filter((function(t){return Object(d.a)(t)===f})):c.b,m=g.filter((function(t){return p.indexOf(t)>=0}));0===m.length&&(m=g);var v=m.reduce((function(e,n){return e[n]=Object(l.a)(t,{placement:n,boundary:r,rootBoundary:a,padding:s})[Object(o.a)(n)],e}),{});return Object.keys(v).sort((function(t,e){return v[t]-v[e]}))}(e,{placement:n,boundary:m,rootBoundary:v,padding:g,flipVariations:x,allowedAutoPlacements:_}):n)}),[]),k=e.rects.reference,S=e.rects.popper,E=new Map,j=!0,A=$[0],M=0;M<$.length;M++){var P=$[M],T=Object(o.a)(P),D=Object(d.a)(P)===c.l,L=[c.m,c.c].indexOf(T)>=0,I=L?"width":"height",N=Object(l.a)(e,{placement:P,boundary:m,rootBoundary:v,altBoundary:y,padding:g}),R=L?D?c.k:c.f:D?c.c:c.m;k[I]>S[I]&&(R=r(R));var F=r(R),B=[];if(u&&B.push(N[T]<=0),p&&B.push(N[R]<=0,N[F]<=0),B.every((function(t){return t}))){A=P,j=!1;break}E.set(P,B)}if(j)for(var z=function(t){var e=$.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return A=e,"break"},W=x?3:1;W>0;W--){if("break"===z(W))break}e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},function(t,e,n){"use strict";var i=n(11),r=n(44),o=n(102);var a=n(91),s=n(106),l=n(78),d=n(62),c=n(72),u=n(142),h=n(32);e.a={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,p=t.name,f=n.mainAxis,g=void 0===f||f,m=n.altAxis,v=void 0!==m&&m,y=n.boundary,b=n.rootBoundary,x=n.altBoundary,_=n.padding,O=n.tether,w=void 0===O||O,C=n.tetherOffset,$=void 0===C?0:C,k=Object(d.a)(e,{boundary:y,rootBoundary:b,padding:_,altBoundary:x}),S=Object(r.a)(e.placement),E=Object(c.a)(e.placement),j=!E,A=Object(o.a)(S),M="x"===A?"y":"x",P=e.modifiersData.popperOffsets,T=e.rects.reference,D=e.rects.popper,L="function"==typeof $?$(Object.assign({},e.rects,{placement:e.placement})):$,I="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(P){if(g){var F,B="y"===A?i.m:i.f,z="y"===A?i.c:i.k,W="y"===A?"height":"width",H=P[A],Y=H+k[B],U=H-k[z],G=w?-D[W]/2:0,X=E===i.l?T[W]:D[W],V=E===i.l?-D[W]:-T[W],q=e.elements.arrow,K=w&&q?Object(s.a)(q):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Object(u.a)(),J=Z[B],Q=Z[z],tt=Object(a.a)(0,T[W],K[W]),et=j?T[W]/2-G-tt-J-I.mainAxis:X-tt-J-I.mainAxis,nt=j?-T[W]/2+G+tt+Q+I.mainAxis:V+tt+Q+I.mainAxis,it=e.elements.arrow&&Object(l.a)(e.elements.arrow),rt=it?"y"===A?it.clientTop||0:it.clientLeft||0:0,ot=null!=(F=null==N?void 0:N[A])?F:0,at=H+et-ot-rt,st=H+nt-ot,lt=Object(a.a)(w?Object(h.b)(Y,at):Y,H,w?Object(h.a)(U,st):U);P[A]=lt,R[A]=lt-H}if(v){var dt,ct="x"===A?i.m:i.f,ut="x"===A?i.c:i.k,ht=P[M],pt="y"===M?"height":"width",ft=ht+k[ct],gt=ht-k[ut],mt=-1!==[i.m,i.f].indexOf(S),vt=null!=(dt=null==N?void 0:N[M])?dt:0,yt=mt?ft:ht-T[pt]-D[pt]-vt+I.altAxis,bt=mt?ht+T[pt]+D[pt]-vt-I.altAxis:gt,xt=w&&mt?Object(a.b)(yt,ht,bt):Object(a.a)(w?yt:ft,ht,w?bt:gt);P[M]=xt,R[M]=xt-ht}e.modifiersData[p]=R}},requiresIfExists:["offset"]}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(12),c=n(14);e.a=function(t){var e=t.aria,n=void 0===e?{}:e,i=t.className,o=t.color,u=void 0===o?"data_1":o,h=t.dark,p=void 0!==h&&h,f=t.data,g=void 0===f?{}:f,m=t.id,v=t.prefixText,y=t.text,b=Object(s.a)(n),x=Object(s.c)(g),_="#"===u.charAt(0)&&u,O={background:_},w=a()(Object(s.b)("pb_legend_kit",_?"":u),Object(l.c)(t),i);return r.a.createElement("div",Object.assign({},b,x,{className:w,id:m}),r.a.createElement(d.a,{color:p?"lighter":"light"},r.a.createElement("span",{className:"".concat(_?"pb_legend_indicator_circle_custom":"pb_legend_indicator_circle"),style:O}),v&&r.a.createElement(c.a,{dark:p,size:4,tag:"span",text:" ".concat(v," ")})," ".concat(y," ")))}},,function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(9),c=n(55);e.a=function(t){var e=t.children,n=t.className,i=t.spacing,o=void 0===i?"between":i,u=t.separator,h=void 0!==u&&u,p=Object(s.b)("dialog_footer"),f=Object(l.c)(t);return r.a.createElement(r.a.Fragment,null,h&&r.a.createElement(c.a,null),r.a.createElement("div",{className:"dialog-pseudo-footer"}),r.a.createElement(d.a,{className:a()(p,f,n),spacing:o},e))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.children,n=t.className,i=Object(s.b)("dialog_body"),o=Object(l.c)(t);return r.a.createElement("div",{className:a()(i,o,n)},e)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(7),c=function(t){var e=t.onClose;return r.a.createElement("div",{className:"pb_dialog_close_icon",onClick:e},r.a.createElement(d.a,{fixedWidth:!0,icon:"times"}))},u=n(135),h=n(9),p=n(55);e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=t.children,d=t.className,f=t.data,g=void 0===f?{}:f,m=t.spacing,v=void 0===m?"between":m,y=t.closeable,b=void 0===y||y,x=t.separator,_=void 0===x||x,O=Object(s.a)(n),w=Object(s.c)(g),C=Object(i.useContext)(u.a),$=Object(s.b)("dialog_header"),k=Object(l.c)(t);return r.a.createElement("div",{className:"dialog_sticky_header"},r.a.createElement(h.a,Object.assign({},O,w,{className:a()($,k,d),spacing:v}),o,b&&r.a.createElement(c,{onClose:C.onClose})),_&&r.a.createElement(p.a,null))}},,function(t,e,n){!function(e,n){var i=function(t,e,n){"use strict";var i,r;if(function(){var e,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in r=t.lazySizesConfig||t.lazysizesConfig||{},n)e in r||(r[e]=n[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o=e.documentElement,a=t.HTMLPictureElement,s=t.addEventListener.bind(t),l=t.setTimeout,d=t.requestAnimationFrame||l,c=t.requestIdleCallback,u=/^picture$/i,h=["load","error","lazyincluded","_lazyloaded"],p={},f=Array.prototype.forEach,g=function(t,e){return p[e]||(p[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),p[e].test(t.getAttribute("class")||"")&&p[e]},m=function(t,e){g(t,e)||t.setAttribute("class",(t.getAttribute("class")||"").trim()+" "+e)},v=function(t,e){var n;(n=g(t,e))&&t.setAttribute("class",(t.getAttribute("class")||"").replace(n," "))},y=function(t,e,n){var i=n?"addEventListener":"removeEventListener";n&&y(t,e),h.forEach((function(n){t[i](n,e)}))},b=function(t,n,r,o,a){var s=e.createEvent("Event");return r||(r={}),r.instance=i,s.initEvent(n,!o,!a),s.detail=r,t.dispatchEvent(s),s},x=function(e,n){var i;!a&&(i=t.picturefill||r.pf)?(n&&n.src&&!e.getAttribute("srcset")&&e.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[e]})):n&&n.src&&(e.src=n.src)},_=function(t,e){return(getComputedStyle(t,null)||{})[e]},O=function(t,e,n){for(n=n||t.offsetWidth;n0)&&"visible"!=_(r,"overflow")&&(i=r.getBoundingClientRect(),a=W>i.left&&zi.top-1&&B500&&o.clientWidth>500?500:370:r.expand,i._defEx=p,f=p*r.expFactor,g=r.hFac,Y=null,V2&&I>2&&!e.hidden?(V=f,K=0):V=I>1&&K>1&&q<6?p:0),h!==d&&(R=innerWidth+d*g,F=innerHeight+d,c=-1*d,h=d),a=m[n].getBoundingClientRect(),(H=a.bottom)>=c&&(B=a.top)<=F&&(W=a.right)>=c*g&&(z=a.left)<=R&&(H||W||z||B)&&(r.loadHidden||J(m[n]))&&(D&&q<3&&!u&&(I<3||K<4)||Q(m[n],d))){if(st(m[n]),l=!0,q>9)break}else!l&&D&&!s&&q<4&&K<4&&I>2&&(T[0]||r.preloadAfterLoad)&&(T[0]||!u&&(H||W||z||B||"auto"!=m[n].getAttribute(r.sizesAttr)))&&(s=T[0]||m[n]);s&&!l&&st(s)}},et=function(t){var e,i=0,o=r.throttleDelay,a=r.ricTimeout,s=function(){e=!1,i=n.now(),t()},d=c&&a>49?function(){c(s,{timeout:a}),a!==r.ricTimeout&&(a=r.ricTimeout)}:C((function(){l(s)}),!0);return function(t){var r;(t=!0===t)&&(a=33),e||(e=!0,(r=o-(n.now()-i))<0&&(r=0),t||r<9?d():l(d,r))}}(tt),nt=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(Z(t),m(e,r.loadedClass),v(e,r.loadingClass),y(e,rt),b(e,"lazyloaded"))},it=C(nt),rt=function(t){it({target:t.target})},ot=function(t){var e,n=t.getAttribute(r.srcsetAttr);(e=r.customMedia[t.getAttribute("data-media")||t.getAttribute("media")])&&t.setAttribute("media",e),n&&t.setAttribute("srcset",n)},at=C((function(t,e,n,i,o){var a,s,d,c,h,p;(h=b(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?m(t,r.autosizesClass):t.setAttribute("sizes",i)),s=t.getAttribute(r.srcsetAttr),a=t.getAttribute(r.srcAttr),o&&(c=(d=t.parentNode)&&u.test(d.nodeName||"")),p=e.firesLoad||"src"in t&&(s||a||c),h={target:t},m(t,r.loadingClass),p&&(clearTimeout(L),L=l(Z,2500),y(t,rt,!0)),c&&f.call(d.getElementsByTagName("source"),ot),s?t.setAttribute("srcset",s):a&&!c&&(G.test(t.nodeName)?function(t,e){var n=t.getAttribute("data-load-mode")||r.iframeLoadMode;0==n?t.contentWindow.location.replace(e):1==n&&(t.src=e)}(t,a):t.src=a),o&&(s||c)&&x(t,{src:a})),t._lazyRace&&delete t._lazyRace,v(t,r.lazyClass),w((function(){var e=t.complete&&t.naturalWidth>1;p&&!e||(e&&m(t,r.fastLoadedClass),nt(h),t._lazyCache=!0,l((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&q--}),!0)})),st=function(t){if(!t._lazyRace){var e,n=U.test(t.nodeName),i=n&&(t.getAttribute(r.sizesAttr)||t.getAttribute("sizes")),o="auto"==i;(!o&&D||!n||!t.getAttribute("src")&&!t.srcset||t.complete||g(t,r.errorClass)||!g(t,r.lazyClass))&&(e=b(t,"lazyunveilread").detail,o&&S.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,q++,at(t,e,o,i,n))}},lt=$((function(){r.loadMode=3,et()})),dt=function(){3==r.loadMode&&(r.loadMode=2),lt()},ct=function(){D||(n.now()-N<999?l(ct,999):(D=!0,r.loadMode=3,et(),s("scroll",dt,!0)))},{_:function(){N=n.now(),i.elements=e.getElementsByClassName(r.lazyClass),T=e.getElementsByClassName(r.lazyClass+" "+r.preloadClass),s("scroll",et,!0),s("resize",et,!0),s("pageshow",(function(t){if(t.persisted){var n=e.querySelectorAll("."+r.loadingClass);n.length&&n.forEach&&d((function(){n.forEach((function(t){t.complete&&st(t)}))}))}})),t.MutationObserver?new MutationObserver(et).observe(o,{childList:!0,subtree:!0,attributes:!0}):(o.addEventListener("DOMNodeInserted",et,!0),o.addEventListener("DOMAttrModified",et,!0),setInterval(et,999)),s("hashchange",et,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e.addEventListener(t,et,!0)})),/d$|^c/.test(e.readyState)?ct():(s("load",ct),e.addEventListener("DOMContentLoaded",et),l(ct,2e4)),i.elements.length?(tt(),w._lsFlush()):et()},checkElems:et,unveil:st,_aLSL:dt}),S=(A=C((function(t,e,n,i){var r,o,a;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),u.test(e.nodeName||""))for(o=0,a=(r=e.getElementsByTagName("source")).length;o",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},o={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a=o,s=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},l=function(t){return!0===t?1:0};function d(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout((function(){return t.apply(i,r)}),e)}}var c=function(t){return t instanceof Array?t:[t]};function u(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function h(t,e,n){var i=window.document.createElement(t);return e=e||"",n=n||"",i.className=e,void 0!==n&&(i.textContent=n),i}function p(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function f(t,e){var n=h("div","numInputWrapper"),i=h("input","numInput "+t),r=h("span","arrowUp"),o=h("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==e)for(var a in e)i.setAttribute(a,e[a]);return n.appendChild(i),n.appendChild(r),n.appendChild(o),n}function g(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var m=function(){},v=function(t,e,n){return n.months[e?"shorthand":"longhand"][t]},y={D:m,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*l(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,n){var i=parseInt(e),r=new Date(t.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:m,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:m,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},b={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},x={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[x.w(t,e,n)]},F:function(t,e,n){return v(x.n(t,e,n)-1,!1,e)},G:function(t,e,n){return s(x.h(t,e,n))},H:function(t){return s(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[l(t.getHours()>11)]},M:function(t,e){return v(t.getMonth(),!0,e)},S:function(t){return s(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return s(t.getFullYear(),4)},d:function(t){return s(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return s(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return s(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},_=function(t){var e=t.config,n=void 0===e?r:e,i=t.l10n,a=void 0===i?o:i,s=t.isMobile,l=void 0!==s&&s;return function(t,e,i){var r=i||a;return void 0===n.formatDate||l?e.split("").map((function(e,i,o){return x[e]&&"\\"!==o[i-1]?x[e](t,r,n):"\\"!==e?e:""})).join(""):n.formatDate(t,e,r)}},O=function(t){var e=t.config,n=void 0===e?r:e,i=t.l10n,a=void 0===i?o:i;return function(t,e,i,o){if(0===t||t){var s,l=o||a,d=t;if(t instanceof Date)s=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)s=new Date(t);else if("string"==typeof t){var c=e||(n||r).dateFormat,u=String(t).trim();if("today"===u)s=new Date,i=!0;else if(n&&n.parseDate)s=n.parseDate(t,c);else if(/Z$/.test(u)||/GMT$/.test(u))s=new Date(t);else{for(var h=void 0,p=[],f=0,g=0,m="";f=0?new Date:new Date(n.config.minDate.getTime()),i=k(n.config);e.setHours(i.hours,i.minutes,i.seconds,e.getMilliseconds()),n.selectedDates=[e],n.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,i=g(t),r=i;void 0!==n.amPM&&i===n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(r.getAttribute("min")),a=parseFloat(r.getAttribute("max")),d=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10),u=t.delta||(e?38===t.which?1:-1:0),h=c+d*u;if(void 0!==r.value&&2===r.value.length){var p=r===n.hourElement,f=r===n.minuteElement;ha&&(h=r===n.hourElement?h-a-l(!n.amPM):o,f&&R(void 0,1,n.hourElement)),n.amPM&&p&&(1===d?h+c===23:Math.abs(h-c)>d)&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]),r.value=s(h)}}(t);var r=n._input.value;j(),Ot(),n._input.value!==r&&n._debouncedChange()}function j(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var t,e,i=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(t=i,e=n.amPM.textContent,i=t%12+12*l(e===n.l10n.amPM[1]));var a=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===w(n.latestSelectedDateObj,n.config.minDate,!0),s=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===w(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var d=C(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),c=C(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),u=C(i,r,o);if(u>c&&u=12)]),void 0!==n.secondElement&&(n.secondElement.value=s(i)))}function T(t){var e=g(t),n=parseInt(e.value)+(t.delta||0);(n/1e3>1||"Enter"===t.key&&!/[^\d]/.test(n.toString()))&&Q(n)}function D(t,e,i,r){return e instanceof Array?e.forEach((function(e){return D(t,e,i,r)})):t instanceof Array?t.forEach((function(t){return D(t,e,i,r)})):(t.addEventListener(e,i,r),void n._handlers.push({remove:function(){return t.removeEventListener(e,i,r)}}))}function L(){vt("onChange")}function I(t,e){var i=void 0!==t?n.parseDate(t):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate=0&&w(t,n.selectedDates[1])<=0)}(e)&&!bt(e)&&a.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==t&&r%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend",""+n.config.getWeek(e)+""),vt("onDayCreate",a),a}function B(t){t.focus(),"range"===n.config.mode&&rt(t)}function z(t){for(var e=t>0?0:n.config.showMonths-1,i=t>0?n.config.showMonths:-1,r=e;r!=i;r+=t)for(var o=n.daysContainer.children[r],a=t>0?0:o.children.length-1,s=t>0?o.children.length:-1,l=a;l!=s;l+=t){var d=o.children[l];if(-1===d.className.indexOf("hidden")&&tt(d.dateObj))return d}}function W(t,e){var i=o(),r=et(i||document.body),a=void 0!==t?t:r?i:void 0!==n.selectedDateElem&&et(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&et(n.todayDateElem)?n.todayDateElem:z(e>0?1:-1);void 0===a?n._input.focus():r?function(t,e){for(var i=-1===t.className.indexOf("Month")?t.dateObj.getMonth():n.currentMonth,r=e>0?n.config.showMonths:-1,o=e>0?1:-1,a=i-n.currentMonth;a!=r;a+=o)for(var s=n.daysContainer.children[a],l=i-n.currentMonth===a?t.$i+e:e<0?s.children.length-1:0,d=s.children.length,c=l;c>=0&&c0?d:-1);c+=o){var u=s.children[c];if(-1===u.className.indexOf("hidden")&&tt(u.dateObj)&&Math.abs(t.$i-c)>=Math.abs(e))return B(u)}n.changeMonth(o),W(z(o),0)}(a,e):B(a)}function H(t,e){for(var i=(new Date(t,e,1).getDay()-n.l10n.firstDayOfWeek+7)%7,r=n.utils.getDaysInMonth((e-1+12)%12,t),o=n.utils.getDaysInMonth(e,t),a=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",d=s?"nextMonthDay hidden":"nextMonthDay",c=r+1-i,u=0;c<=r;c++,u++)a.appendChild(F("flatpickr-day "+l,new Date(t,e-1,c),0,u));for(c=1;c<=o;c++,u++)a.appendChild(F("flatpickr-day",new Date(t,e,c),0,u));for(var p=o+1;p<=42-i&&(1===n.config.showMonths||u%7!=0);p++,u++)a.appendChild(F("flatpickr-day "+d,new Date(t,e+1,p%o),0,u));var f=h("div","dayContainer");return f.appendChild(a),f}function Y(){if(void 0!==n.daysContainer){p(n.daysContainer),n.weekNumbers&&p(n.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e1||"dropdown"!==n.config.monthSelectorType)){var t=function(t){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&tn.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var i=h("option","flatpickr-monthDropdown-month");i.value=new Date(n.currentYear,e).getMonth().toString(),i.textContent=v(e,n.config.shorthandCurrentMonth,n.l10n),i.tabIndex=-1,n.currentMonth===e&&(i.selected=!0),n.monthsDropdownContainer.appendChild(i)}}}function G(){var t,e=h("div","flatpickr-month"),i=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?t=h("span","cur-month"):(n.monthsDropdownContainer=h("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),D(n.monthsDropdownContainer,"change",(function(t){var e=g(t),i=parseInt(e.value,10);n.changeMonth(i-n.currentMonth),vt("onMonthChange")})),U(),t=n.monthsDropdownContainer);var r=f("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var a=h("div","flatpickr-current-month");return a.appendChild(t),a.appendChild(r),i.appendChild(a),e.appendChild(i),{container:e,yearElement:o,monthElement:t}}function X(){p(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var t=n.config.showMonths;t--;){var e=G();n.yearElements.push(e.yearElement),n.monthElements.push(e.monthElement),n.monthNav.appendChild(e.container)}n.monthNav.appendChild(n.nextMonthNav)}function V(){n.weekdayContainer?p(n.weekdayContainer):n.weekdayContainer=h("div","flatpickr-weekdays");for(var t=n.config.showMonths;t--;){var e=h("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(e)}return q(),n.weekdayContainer}function q(){if(n.weekdayContainer){var t=n.l10n.firstDayOfWeek,e=E(n.l10n.weekdays.shorthand);t>0&&t\n "+e.join("")+"\n \n "}}function K(t,e){void 0===e&&(e=!0);var i=e?t:t-n.currentMonth;i<0&&!0===n._hidePrevMonthArrow||i>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=i,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,vt("onYearChange"),U()),Y(),vt("onMonthChange"),xt())}function Z(t){return n.calendarContainer.contains(t)}function J(t){if(n.isOpen&&!n.config.inline){var e=g(t),i=Z(e),r=!(e===n.input||e===n.altInput||n.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(n.input)||~t.path.indexOf(n.altInput)))&&!i&&!Z(t.relatedTarget),o=!n.config.ignoredFocusElements.some((function(t){return t.contains(e)}));r&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&x(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function Q(t){if(!(!t||n.config.minDate&&tn.config.maxDate.getFullYear())){var e=t,i=n.currentYear!==e;n.currentYear=e||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),i&&(n.redraw(),vt("onYearChange"),U())}}function tt(t,e){var i;void 0===e&&(e=!0);var r=n.parseDate(t,void 0,e);if(n.config.minDate&&r&&w(r,n.config.minDate,void 0!==e?e:!n.minDateHasTime)<0||n.config.maxDate&&r&&w(r,n.config.maxDate,void 0!==e?e:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===r)return!1;for(var o=!!n.config.enable,a=null!==(i=n.config.enable)&&void 0!==i?i:n.config.disable,s=0,l=void 0;s=l.from.getTime()&&r.getTime()<=l.to.getTime())return o}return!o}function et(t){return void 0!==n.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(t))}function nt(t){var e=t.target===n._input,i=n._input.value.trimEnd()!==_t();!e||!i||t.relatedTarget&&Z(t.relatedTarget)||n.setDate(n._input.value,!0,t.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function it(e){var i=g(e),r=n.config.wrap?t.contains(i):i===n._input,a=n.config.allowInput,s=n.isOpen&&(!a||!r),l=n.config.inline&&r&&!a;if(13===e.keyCode&&r){if(a)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(Z(i)||s||l){var d=!!n.timeContainer&&n.timeContainer.contains(i);switch(e.keyCode){case 13:d?(e.preventDefault(),x(),ut()):ht(e);break;case 27:e.preventDefault(),ut();break;case 8:case 46:r&&!n.config.allowInput&&(e.preventDefault(),n.clear());break;case 37:case 39:if(d||r)n.hourElement&&n.hourElement.focus();else{e.preventDefault();var c=o();if(void 0!==n.daysContainer&&(!1===a||c&&et(c))){var u=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),K(u),W(z(1),0)):W(void 0,u)}}break;case 38:case 40:e.preventDefault();var h=40===e.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?e.ctrlKey?(e.stopPropagation(),Q(n.currentYear-h),W(z(1),0)):d||W(void 0,7*h):i===n.currentYearElement?Q(n.currentYear-h):n.config.enableTime&&(!d&&n.hourElement&&n.hourElement.focus(),x(e),n._debouncedChange());break;case 9:if(d){var p=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(t){return t})),f=p.indexOf(i);if(-1!==f){var m=p[f+(e.shiftKey?-1:1)];e.preventDefault(),(m||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&e.shiftKey&&(e.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(e.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],j(),Ot();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],j(),Ot()}(r||Z(i))&&vt("onKeyDown",e)}function rt(t,e){if(void 0===e&&(e="flatpickr-day"),1===n.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var i=t?t.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),r=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(i,n.selectedDates[0].getTime()),a=Math.max(i,n.selectedDates[0].getTime()),s=!1,l=0,d=0,c=o;co&&cl)?l=c:c>r&&(!d||c ."+e)).forEach((function(e){var o,a,c,u=e.dateObj.getTime(),h=l>0&&u0&&u>d;if(h)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));s&&!h||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(i<=n.selectedDates[0].getTime()?"startRange":"endRange"),ri&&u===r&&e.classList.add("endRange"),u>=l&&(0===d||u<=d)&&(a=r,c=i,(o=u)>Math.min(a,c)&&o0||i.getMinutes()>0||i.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(t){return tt(t)})),n.selectedDates.length||"min"!==t||A(i),Ot()),n.daysContainer&&(ct(),void 0!==i?n.currentYearElement[t]=i.getFullYear().toString():n.currentYearElement.removeAttribute(t),n.currentYearElement.disabled=!!r&&void 0!==i&&r.getFullYear()===i.getFullYear())}}function st(){return n.config.wrap?t.querySelector("[data-input]"):t}function lt(){"object"!=typeof n.config.locale&&void 0===M.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=S(S({},M.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?M.l10ns[n.config.locale]:void 0),b.D="("+n.l10n.weekdays.shorthand.join("|")+")",b.l="("+n.l10n.weekdays.longhand.join("|")+")",b.M="("+n.l10n.months.shorthand.join("|")+")",b.F="("+n.l10n.months.longhand.join("|")+")",b.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===S(S({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===M.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=_(n),n.parseDate=O({config:n.config,l10n:n.l10n})}function dt(t){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){vt("onPreCalendarPosition");var e=t||n._positionElement,i=Array.prototype.reduce.call(n.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),r=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),a=o[0],s=o.length>1?o[1]:null,l=e.getBoundingClientRect(),d=window.innerHeight-l.bottom,c="above"===a||"below"!==a&&di,h=window.pageYOffset+l.top+(c?-i-2:e.offsetHeight+2);if(u(n.calendarContainer,"arrowTop",!c),u(n.calendarContainer,"arrowBottom",c),!n.config.inline){var p=window.pageXOffset+l.left,f=!1,g=!1;"center"===s?(p-=(r-l.width)/2,f=!0):"right"===s&&(p-=r-l.width,g=!0),u(n.calendarContainer,"arrowLeft",!f&&!g),u(n.calendarContainer,"arrowCenter",f),u(n.calendarContainer,"arrowRight",g);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),v=p+r>window.document.body.offsetWidth,y=m+r>window.document.body.offsetWidth;if(u(n.calendarContainer,"rightMost",v),!n.config.static)if(n.calendarContainer.style.top=h+"px",v)if(y){var b=function(){for(var t=null,e=0;en.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=i,"single"===n.config.mode)n.selectedDates=[r];else if("multiple"===n.config.mode){var a=bt(r);a?n.selectedDates.splice(parseInt(a),1):n.selectedDates.push(r)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=r,n.selectedDates.push(r),0!==w(r,n.selectedDates[0],!0)&&n.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(j(),o){var s=n.currentYear!==r.getFullYear();n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth(),s&&(vt("onYearChange"),U()),vt("onMonthChange")}if(xt(),Y(),Ot(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():B(i),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var l="single"===n.config.mode&&!n.config.enableTime,d="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(l||d)&&ut()}L()}}n.parseDate=O({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=D,n._setHoursFromDate=A,n._positionCalendar=dt,n.changeMonth=K,n.changeYear=Q,n.clear=function(t,e){void 0===t&&(t=!0);void 0===e&&(e=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===e&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var i=k(n.config),r=i.hours,o=i.minutes,a=i.seconds;P(r,o,a)}n.redraw(),t&&vt("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));vt("onClose")},n.onMouseOver=rt,n._createElement=h,n.createDay=F,n.destroy=function(){void 0!==n.config&&vt("onDestroy");for(var t=n._handlers.length;t--;)n._handlers[t].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var e=n.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete n[t]}catch(t){}}))},n.isEnabled=tt,n.jumpToDate=I,n.updateValue=Ot,n.open=function(t,e){void 0===e&&(e=n._positionElement);if(!0===n.isMobile){if(t){t.preventDefault();var i=g(t);i&&i.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void vt("onOpen")}if(n._input.disabled||n.config.inline)return;var r=n.isOpen;n.isOpen=!0,r||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),vt("onOpen"),dt(e));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==t&&n.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=ct,n.set=function(t,e){if(null!==t&&"object"==typeof t)for(var r in Object.assign(n.config,t),t)void 0!==pt[r]&&pt[r].forEach((function(t){return t()}));else n.config[t]=e,void 0!==pt[t]?pt[t].forEach((function(t){return t()})):i.indexOf(t)>-1&&(n.config[t]=c(e));n.redraw(),Ot(!0)},n.setDate=function(t,e,i){void 0===e&&(e=!1);void 0===i&&(i=n.config.dateFormat);if(0!==t&&!t||t instanceof Array&&0===t.length)return n.clear(e);ft(t,i),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),I(void 0,e),A(),0===n.selectedDates.length&&n.clear(!1);Ot(e),e&&vt("onChange")},n.toggle=function(t){if(!0===n.isOpen)return n.close();n.open(t)};var pt={locale:[lt,q],showMonths:[X,y,V],minDate:[I],maxDate:[I],positionElement:[mt],clickOpens:[function(){!0===n.config.clickOpens?(D(n._input,"focus",n.open),D(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function ft(t,e){var i=[];if(t instanceof Array)i=t.map((function(t){return n.parseDate(t,e)}));else if(t instanceof Date||"number"==typeof t)i=[n.parseDate(t,e)];else if("string"==typeof t)switch(n.config.mode){case"single":case"time":i=[n.parseDate(t,e)];break;case"multiple":i=t.split(n.config.conjunction).map((function(t){return n.parseDate(t,e)}));break;case"range":i=t.split(n.l10n.rangeSeparator).map((function(t){return n.parseDate(t,e)}))}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));n.selectedDates=n.config.allowInvalidPreload?i:i.filter((function(t){return t instanceof Date&&tt(t,!1)})),"range"===n.config.mode&&n.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function gt(t){return t.slice().map((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?n.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:n.parseDate(t.from,void 0),to:n.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function mt(){n._positionElement=n.config.positionElement||n._input}function vt(t,e){if(void 0!==n.config){var i=n.config[t];if(void 0!==i&&i.length>0)for(var r=0;i[r]&&r1||"static"===n.config.monthSelectorType?n.monthElements[e].textContent=v(i.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=i.getMonth().toString(),t.value=i.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYearn.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function _t(t){var e=t||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(t){return n.formatDate(t,e)})).filter((function(t,e,i){return"range"!==n.config.mode||n.config.enableTime||i.indexOf(t)===e})).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function Ot(t){void 0===t&&(t=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=_t(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=_t(n.config.altFormat)),!1!==t&&vt("onValueUpdate")}function wt(t){var e=g(t),i=n.prevMonthNav.contains(e),r=n.nextMonthNav.contains(e);i||r?K(i?-1:1):n.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):e.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=t,n.isOpen=!1,function(){var o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=S(S({},JSON.parse(JSON.stringify(t.dataset||{}))),e),s={};n.config.parseDate=a.parseDate,n.config.formatDate=a.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(t){n.config._enable=gt(t)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(t){n.config._disable=gt(t)}});var l="time"===a.mode;if(!a.dateFormat&&(a.enableTime||l)){var d=M.defaultConfig.dateFormat||r.dateFormat;s.dateFormat=a.noCalendar||l?"H:i"+(a.enableSeconds?":S":""):d+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||l)&&!a.altFormat){var u=M.defaultConfig.altFormat||r.altFormat;s.altFormat=a.noCalendar||l?"h:i"+(a.enableSeconds?":S K":" K"):u+" h:i"+(a.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:at("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:at("max")});var h=function(t){return function(e){n.config["min"===t?"_minTime":"_maxTime"]=n.parseDate(e,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:h("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:h("max")}),"time"===a.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,s,a);for(var p=0;p-1?n.config[g]=c(f[g]).map(m).concat(n.config[g]):void 0===a[g]&&(n.config[g]=f[g])}a.altInputClass||(n.config.altInputClass=st().className+" "+n.config.altInputClass);vt("onParseConfig")}(),lt(),function(){if(n.input=st(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=h(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");mt()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var t=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);t&&ft(t,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=n.currentMonth),void 0===e&&(e=n.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:n.l10n.daysInMonth[t]}},n.isMobile||function(){var t=window.document.createDocumentFragment();if(n.calendarContainer=h("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(t.appendChild((n.monthNav=h("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=h("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=h("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,X(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(t){n.__hidePrevMonthArrow!==t&&(u(n.prevMonthNav,"flatpickr-disabled",t),n.__hidePrevMonthArrow=t)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(t){n.__hideNextMonthArrow!==t&&(u(n.nextMonthNav,"flatpickr-disabled",t),n.__hideNextMonthArrow=t)}}),n.currentYearElement=n.yearElements[0],xt(),n.monthNav)),n.innerContainer=h("div","flatpickr-innerContainer"),n.config.weekNumbers){var e=function(){n.calendarContainer.classList.add("hasWeeks");var t=h("div","flatpickr-weekwrapper");t.appendChild(h("span","flatpickr-weekday",n.l10n.weekAbbreviation));var e=h("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),i=e.weekWrapper,r=e.weekNumbers;n.innerContainer.appendChild(i),n.weekNumbers=r,n.weekWrapper=i}n.rContainer=h("div","flatpickr-rContainer"),n.rContainer.appendChild(V()),n.daysContainer||(n.daysContainer=h("div","flatpickr-days"),n.daysContainer.tabIndex=-1),Y(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),t.appendChild(n.innerContainer)}n.config.enableTime&&t.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var t=k(n.config);n.timeContainer=h("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var e=h("span","flatpickr-time-separator",":"),i=f("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=i.getElementsByTagName("input")[0];var r=f("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=r.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),n.minuteElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():t.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(i),n.timeContainer.appendChild(e),n.timeContainer.appendChild(r),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=f("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():t.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(h("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=h("span","flatpickr-am-pm",n.l10n.amPM[l((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());u(n.calendarContainer,"rangeMode","range"===n.config.mode),u(n.calendarContainer,"animate",!0===n.config.animate),u(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(t);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var a=h("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(a,n.element),a.appendChild(n.element),n.altInput&&a.appendChild(n.altInput),a.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+t+"]"),(function(e){return D(e,"click",n[t])}))}));if(n.isMobile)return void function(){var t=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=h("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=t,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(t){}D(n.mobileInput,"change",(function(t){n.setDate(g(t).value,!1,n.mobileFormatStr),vt("onChange"),vt("onClose")}))}();var t=d(ot,50);n._debouncedChange=d(L,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&D(n.daysContainer,"mouseover",(function(t){"range"===n.config.mode&&rt(g(t))}));D(n._input,"keydown",it),void 0!==n.calendarContainer&&D(n.calendarContainer,"keydown",it);n.config.inline||n.config.static||D(window,"resize",t);void 0!==window.ontouchstart?D(window.document,"touchstart",J):D(window.document,"mousedown",J);D(window.document,"focus",J,{capture:!0}),!0===n.config.clickOpens&&(D(n._input,"focus",n.open),D(n._input,"click",n.open));void 0!==n.daysContainer&&(D(n.monthNav,"click",wt),D(n.monthNav,["keyup","increment"],T),D(n.daysContainer,"click",ht));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){D(n.timeContainer,["increment"],x),D(n.timeContainer,"blur",x,{capture:!0}),D(n.timeContainer,"click",N),D([n.hourElement,n.minuteElement],["focus","click"],(function(t){return g(t).select()})),void 0!==n.secondElement&&D(n.secondElement,"focus",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&D(n.amPM,"click",(function(t){x(t)}))}n.config.allowInput&&D(n._input,"blur",nt)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&A(n.config.noCalendar?n.latestSelectedDateObj:void 0),Ot(!1)),y();var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&o&&dt(),vt("onReady")}(),n}function A(t,e){for(var n=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),i=[],r=0;r=0)&&o(t,!n)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(t){return t.removeAttribute("aria-hidden")})));s=null},e.log=function(){0},e.assertNodeList=l,e.setElement=function(t){var e=t;if("string"==typeof e&&a.canUseDOM){var n=document.querySelectorAll(e);l(n,e),e=n}return s=e||s},e.validateElement=d,e.hide=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.setAttribute("aria-hidden","true")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.show=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.removeAttribute("aria-hidden")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.documentNotReadyOrSSRTesting=function(){s=null};var i,r=n(167),o=(i=r)&&i.__esModule?i:{default:i},a=n(165);var s=null;function l(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function d(t){var e=t||s;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,o.default)(!1,["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(" ")),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){r=new i};var i=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new i;e.default=r},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(204),l=n.n(s),d=n(2),c=n(5),u=n(12),h=n(23),p=n(178),f=n(176),g=n(177),m=n(9),v=n(63),y=n(14),b=n(135);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n●{point.name}: {point.y}':U,X=t.colors,V=void 0===X?[]:X,q=t.minorTickInterval,K=void 0===q?null:q,Z=t.circumference,J=void 0===Z?S?[0,360]:[-100,100]:Z,Q=k(t,["aria","className","chartData","dark","data","disableAnimation","fullCircle","height","id","max","min","prefix","showLabels","style","suffix","title","tooltipHtml","colors","minorTickInterval","circumference"]),tt=Object(O.a)(n),et=Object(O.c)(m);g()(c.a),v()(c.a);d?c.a.setOptions(h.a):c.a.setOptions(u.a),c.a.setOptions({tooltip:{pointFormat:G,followPointer:!0}});var nt=Object(O.b)({pb_gauge_kit:!0}),it=C(Object(i.useState)({}),2),rt=it[0],ot=it[1];return Object(i.useEffect)((function(){var t=o.map((function(t){return t.y=t.value,delete t.value,t})),e={chart:{events:{load:function(){setTimeout(this.reflow.bind(this),0)}},type:B,height:j},title:{text:Y},yAxis:{min:D,max:P,lineWidth:0,tickWidth:0,minorTickInterval:K,tickAmount:2,tickPositions:[D,P],labels:{y:26,enabled:R}},credits:!1,series:[{data:t}],pane:{center:["50%","50%"],size:"90%",startAngle:J[0],endAngle:J[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:void 0!==V&&V.length>0?Object(p.a)(V):u.a.colors,plotOptions:{series:{animation:!x},solidgauge:{borderColor:void 0!==V&&1===V.length?Object(p.a)(V).join():u.a.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:b.a.text_lt_default,enabled:!0,format:''.concat(I,"")+'{y:,f}'+''.concat(W,""),style:{fontFamily:_.a.font_family_base,fontWeight:_.a.regular,fontSize:_.a.heading_2},y:-26}}}};ot(Object.assign({},e)),document.querySelector(".prefix")&&(document.querySelectorAll(".prefix").forEach((function(t){t.setAttribute("y","28")})),document.querySelectorAll(".fix").forEach((function(t){return t.setAttribute("y","38")})))}),[o]),r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:a()(nt,Object(w.c)(Q)),id:A},tt),et),highcharts:c.a,options:rt})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n(58),r=n(257);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n-1?document.querySelector("".concat(this.triggerElementSelector)):document.querySelectorAll("".concat(this.triggerElementSelector)))?(t.length||(t=[t]),this._triggerElements=this._triggerElements||t):(console.error("Tooltip Kit: an invalid or unavailable DOM reference was provided!"),[])}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbTooltipPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbTooltipTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbTooltipTooltipId}},{key:"triggerElementSelector",get:function(){return this.element.dataset.pbTooltipTriggerElementSelector}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),p}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n(58),r=n(22);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n32&&this.resultsOptionCache.delete(this.resultsOptionCache.keys().next().value),this.resultsOptionCache.set(i,n),this.showResults()}},{key:"resultsCacheClear",value:function(){this.resultsOptionCache.clear()}},{key:"debouncedSearch",get:function(){return this._debouncedSearch=this._debouncedSearch||Object(r.debounce)(this.search,parseInt(this.searchDebounceTimeout)).bind(this)}},{key:"showResults",value:function(){var t=this;if(this.resultsOptionCache.has(this.searchTermAndContext)){this.toggleResultsLoadingIndicator(!1),this.clearResults();var e,n=o(this.resultsOptionCache.get(this.searchTermAndContext));try{for(n.s();!(e=n.n()).done;){var i=e.value;this.resultsElement.appendChild(this.newResultOption(i.cloneNode(!0)))}}catch(t){n.e(t)}finally{n.f()}var r,a=o(this.resultsElement.querySelectorAll("[data-result-option-item]"));try{for(a.s();!(r=a.n()).done;)r.value.addEventListener("mousedown",(function(e){return t.optionSelected(e)}))}catch(t){a.e(t)}finally{a.f()}}}},{key:"optionSelected",value:function(t){var e=t.target.closest("[data-result-option-item]");e&&(this.resultsCacheClear(),this.searchInputClear(),this.clearResults(),this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-result-option-selected",{bubbles:!0,detail:{selected:e,typeahead:this}})))}},{key:"clearResults",value:function(){this.resultsElement.innerHTML=""}},{key:"newResultOption",value:function(t){var e=this.resultOptionTemplate.content.cloneNode(!0);return e.querySelector('slot[name="content"]').replaceWith(t),e}},{key:"focusPreviousOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)-1;(this.resultOptionItems[t]||this.resultOptionItems[this.resultOptionItems.length-1]).focus()}},{key:"focusNextOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)+1;(this.resultOptionItems[t]||this.resultOptionItems[0]).focus()}},{key:"resultOptionItems",get:function(){return Array.from(this.resultsElement.querySelectorAll("[data-result-option-item]"))}},{key:"currentSelectedResultOptionItem",get:function(){return document.activeElement.closest("[data-result-option-item]")}},{key:"searchInput",get:function(){return this._searchInput=this._searchInput||this.element.querySelector('input[type="search"]')}},{key:"searchTerm",get:function(){return this.searchInput.value}},{key:"searchContext",get:function(){if(this._searchContext)return this._searchContext;var t=this.element.dataset.searchContextValueSelector;return t?(this.element.parentNode.querySelector(t)||this.element.closest(t)).value:null},set:function(t){this._searchContext=t}},{key:"searchTermAndContext",get:function(){return this.cacheKeyFor(this.searchTerm,this.searchContext)}},{key:"cacheKeyFor",value:function(t,e){return[t,JSON.stringify(e)].join()}},{key:"searchInputClear",value:function(){this.searchInput.value=""}},{key:"searchTermMinimumLength",get:function(){return this.element.dataset.pbTypeaheadKitSearchTermMinimumLength}},{key:"searchDebounceTimeout",get:function(){return this.element.dataset.pbTypeaheadKitSearchDebounceTimeout}},{key:"resultsElement",get:function(){return this._resultsElement=this._resultsElement||this.element.querySelector("[data-pb-typeahead-kit-results]")}},{key:"resultOptionTemplate",get:function(){return this._resultOptionTemplate=this._resultOptionTemplate||this.element.querySelector("template[data-pb-typeahead-kit-result-option]")}},{key:"resultsOptionCache",get:function(){return this._resultsOptionCache=this._resultsOptionCache||new Map}},{key:"resultsLoadingIndicator",get:function(){return this._resultsLoadingIndicator=this._resultsLoadingIndicator||this.element.querySelector("[data-pb-typeahead-kit-loading-indicator]")}},{key:"toggleResultsLoadingIndicator",value:function(t){var e="0";t&&(e="1"),this.resultsLoadingIndicator.style.opacity=e}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.a)},function(t,e,n){"use strict";e.a=function(){var t=document.querySelectorAll("[data-open-dialog]"),e=document.querySelectorAll("[data-close-dialog]"),n=document.querySelectorAll(".pb_dialog_rails");t.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.openDialog,n=document.getElementById(e);n.open||n.showModal()}))})),e.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.closeDialog;document.getElementById(e).close()}))})),n.forEach((function(t){t.addEventListener("mousedown",(function(e){if("overlay_close"!==t.parentElement.dataset.overlayClick){var n=e.target.getBoundingClientRect();(e.clientXn.right||e.clientYn.bottom)&&(t.close(),e.stopPropagation())}}))}))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=function(){var t=event.target.closest(".pb_rich_text_editor_kit");t.classList.contains("inline")&&t.classList.toggle("focused")},l=function(){document.querySelectorAll(".focus-editor-targets trix-editor").forEach((function(t){var e=t.toolbarElement;t==document.activeElement?(t.classList.add("focused-editor"),e.style.display="block"):e.contains(document.activeElement)||(t.classList.remove("focused-editor"),e.style.display="none")}))},d=n(5),c=n(2),u=n(209),h=n(110),p=n(9),f=n(15),g=n(55),m=n(7),v=n(160),y=function(t){var e=t.classname,n=t.disable,i=t.onclick,o=t.icon,a=t.text;return r.a.createElement(v.a,{delay:{open:2e3},interaction:!0,placement:"top",text:a},r.a.createElement("button",{className:e,disabled:n,onClick:i,role:"button",type:"button"},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:o,size:"lg"}))))},b=n(76),x=n(23),_=n(48),O=n(24);function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?"xs":"none",paddingBottom:e.length>1?"xs":"none",variant:"subtle"},e&&e.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},M=function(t){var e=t.editor,n=t.extensions,i=[{icon:"bold",text:"Bold",classname:"toolbar_button ".concat(e.isActive("bold")?"is-active":""),onclick:function(){return e.chain().focus().toggleBold().run()}},{icon:"italic",text:"Italic",classname:"toolbar_button ".concat(e.isActive("italic")?"is-active":""),onclick:function(){return e.chain().focus().toggleItalic().run()}},{icon:"strikethrough",text:"Strikethrough",classname:"toolbar_button ".concat(e.isActive("strike")?"is-active":""),onclick:function(){return e.chain().focus().toggleStrike().run()}}];return r.a.createElement(h.a,{backgroundColor:"white",className:"toolbar"},r.a.createElement(p.a,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs"},r.a.createElement(f.a,{className:"toolbar_block",displayFlex:!0},r.a.createElement($,{editor:e}),r.a.createElement(g.a,{orientation:"vertical"}),i&&i.map((function(t,e){var n=t.icon,i=t.text,o=t.classname,a=t.onclick;return r.a.createElement(y,{classname:o,icon:n,key:e,text:i,onclick:a})})),r.a.createElement(g.a,{orientation:"vertical"}),r.a.createElement(k,{editor:e}),n&&r.a.createElement(r.a.Fragment,null,r.a.createElement(A,{extensions:n}))),r.a.createElement(S,{editor:e})))};function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0?L(!1):L(!0)}),[et,L]),Object(r.useImperativeHandle)(e,(function(){return{clearField:function(){K(""),nt("")},inputNode:function(){return X.current}}}));var dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=J.getSelectedCountryData().name,n=t.length>0?" (".concat(t,")"):"";return nt("Invalid ".concat(e," phone number").concat(n)),!0},ct=function(){J&&S(J.isValidNumber()),function(t){if(t)return q&&!function(t){return/^[()+\-\ .\d]*$/g.test(t)}(q)?dt("enter numbers only"):void 0}(J)||function(t){if(t)return t.getValidationError()===i.TooLong?dt("too long"):void nt("")}(J)||function(t){if(t)return t.getValidationError()===i.TooShort||1===q.length?dt("too short"):void nt("")}(J)||function(t){if(F&&t)return t.getValidationError()===i.SomethingWentWrong?1===q.length?dt("too short"):0===q.length?(nt("Missing phone number"),!0):dt():void 0}(J)||function(t){if(F&&t)t.getValidationError()===i.MissingAreaCode&&dt("missing area code")}(J)},ut=function(t,e){return Object.assign(Object.assign({},t.getSelectedCountryData()),{number:e})};Object(r.useEffect)(m,[]),Object(r.useEffect)((function(){var t=d()(X.current,{separateDialCode:!0,preferredCountries:z,allowDropdown:!_,autoInsertDialCode:!1,initialCountry:$,onlyCountries:N});X.current.addEventListener("countrychange",(function(e){var n=ut(t,e.target.value);lt(n),T(n),ct()})),X.current.addEventListener("open:countrydropdown",(function(){return ot(!0)})),X.current.addEventListener("close:countrydropdown",(function(){return ot(!1)})),Q(t)}),[]);var ht={className:rt?"dropdown_open":"",dark:v,"data-phone-number":JSON.stringify(st),disabled:_,error:et,type:"tel",id:w,label:j,name:M,onBlur:ct,onChange:function(t){K(t.target.value);var e=ut(J,t.target.value);lt(e),T(e),S(J.isValidNumber())},value:q},pt={className:G};return p(a)||(ht=Object.assign(Object.assign({},ht),Y)),p(b)||(pt=Object.assign(Object.assign({},pt),U)),F&&(ht.required=!0),o.a.createElement("div",Object.assign({},pt),o.a.createElement(h.a,Object.assign({ref:function(t){e&&(e.current=t),X.current=t}},ht)))};e.a=Object(r.forwardRef)(v)},,function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(2),o=(i=r)&&i.__esModule?i:{default:i};e.default=o.default,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),A=(0,o.findAll)({autoEscape:c,caseSensitive:h,findChunks:f,sanitize:_,searchWords:O,textToHighlight:w}),M=x,P=-1,T="",D=void 0,L=(0,l.default)((function(t){var e={};for(var n in t)e[n.toLowerCase()]=t[n];return e}));return(0,s.createElement)("span",i({className:p},j,{children:A.map((function(t,e){var i=w.substr(t.start,t.end-t.start);if(t.highlight){P++;var r=void 0;r="object"==typeof m?h?m[i]:(m=L(m))[i.toLowerCase()]:m;var o=P===+a;T=r+" "+(o?n:""),D=!0===o&&null!=d?Object.assign({},y,d):y;var l={children:i,className:T,key:e,style:D};return"string"!=typeof M&&(l.highlightIndex=P),(0,s.createElement)(M,l)}return(0,s.createElement)($,{children:i,className:S,key:e,style:E})}))}))}d.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},t.exports=e.default},function(t,e){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);Object.defineProperty(e,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(e,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(e,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAll=function(t){var e=t.autoEscape,o=t.caseSensitive,a=void 0!==o&&o,s=t.findChunks,l=void 0===s?i:s,d=t.sanitize,c=t.searchWords,u=t.textToHighlight;return r({chunksToHighlight:n({chunks:l({autoEscape:e,caseSensitive:a,sanitize:d,searchWords:c,textToHighlight:u})}),totalLength:u?u.length:0})};var n=e.combineChunks=function(t){var e=t.chunks;return e=e.sort((function(t,e){return t.start-e.start})).reduce((function(t,e){if(0===t.length)return[e];var n=t.pop();if(e.start<=n.end){var i=Math.max(n.end,e.end);t.push({start:n.start,end:i})}else t.push(n,e);return t}),[])},i=function(t){var e=t.autoEscape,n=t.caseSensitive,i=t.sanitize,r=void 0===i?o:i,a=t.searchWords,s=t.textToHighlight;return s=r(s),a.filter((function(t){return t})).reduce((function(t,i){i=r(i),e&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(i,n?"g":"gi"),a=void 0;a=o.exec(s);){var l=a.index,d=o.lastIndex;d>l&&t.push({start:l,end:d}),a.index==o.lastIndex&&o.lastIndex++}return t}),[])};e.findChunks=i;var r=e.fillInChunks=function(t){var e=t.chunksToHighlight,n=t.totalLength,i=[],r=function(t,e,n){e-t>0&&i.push({start:t,end:e,highlight:n})};if(0===e.length)r(0,n,!1);else{var o=0;e.forEach((function(t){r(o,t.start,!1),r(t.start,t.end,!0),o=t.end})),r(o,n,!1)}return i};function o(t){return t}}])},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n(6)((function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}),!0)}else t.exports=n(13)()}).call(e,n(5))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,d=[],c=!1,u=-1;function h(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=d.length;e;){for(l=d,d=[];++u1)for(var n=1;n>";return new h("Invalid "+r+" `"+o+"` of type `"+function(t){if(!t.constructor||!t.constructor.name)return"<>";return t.constructor.name}(e[n])+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}return null}))},node:p((function(t,e,n,i,r){return g(t[e])?null:new h("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var d in a)if(a.hasOwnProperty(d)){var c=t(a,d,i,r,o+"."+d,s);if(c instanceof Error)return c}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return p((function(e,n,i,r,o){for(var a=e[n],s=0;s>",f=f||c,g!==s)if(n)r(!1,"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");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var m=u+":"+c;!i[m]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,u),i[m]=!0,a++)}return null==d[c]?l?null===d[c]?new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(d,c,u,p,f)}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}function f(t){return p((function(e,n,i,r,o,a){var s=e[n];return m(s)!==t?new h("Invalid "+r+" `"+o+"` of type `"+v(s)+"` supplied to `"+i+"`, expected `"+t+"`."):null}))}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||t(e))return!0;var n=function(t){var e=t&&(d&&t[d]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var i,r=n.call(e);if(n!==e.entries){for(;!(i=r.next()).done;)if(!g(i.value))return!1}else for(;!(i=r.next()).done;){var o=i.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function v(t){if(null==t)return""+t;var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function y(t){var e=v(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,c.checkPropTypes=l,c.PropTypes=c,c}}).call(e,n(5))},function(t,e){"use strict";function n(t){return function(){return t}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){(function(e){"use strict";var n=function(t){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=function(t,e,i,r,o,a,s,l){if(n(e),!t){var d;if(void 0===e)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,r,o,a,s,l],u=0;(d=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}}).call(e,n(5))},function(t,e,n){(function(e){"use strict";var i=n(7);if("production"!==e.env.NODE_ENV){var r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:n,i=void 0,r=[],o=void 0,a=!1,s=function(t,n){return e(t,r[n])},l=function(){for(var e=arguments.length,n=Array(e),l=0;lt.config.maxDate&&(e=t.config.maxDate),t.currentYear=e.getFullYear()),t.currentYearElement.value=String(t.currentYear),t.rContainer&&t.rContainer.querySelectorAll(".flatpickr-monthSelect-month").forEach((function(e){e.dateObj.setFullYear(t.currentYear),t.config.minDate&&e.dateObjt.config.maxDate?e.classList.add("flatpickr-disabled"):e.classList.remove("flatpickr-disabled")})),a()}function l(e){e.preventDefault(),e.stopPropagation();var i=n(e);if(i instanceof Element&&!i.classList.contains("flatpickr-disabled")&&!i.classList.contains("notAllowed")&&(d(i.dateObj),t.config.closeOnSelect)){var r="single"===t.config.mode,o="range"===t.config.mode&&2===t.selectedDates.length;(r||o)&&t.close()}}function d(e){var n=new Date(t.currentYear,e.getMonth(),e.getDate()),i=[];switch(t.config.mode){case"single":i=[n];break;case"multiple":i.push(n);break;case"range":2===t.selectedDates.length?i=[n]:(i=t.selectedDates.concat([n])).sort((function(t,e){return t.getTime()-e.getTime()}))}t.setDate(i,!0),a()}var c={37:-1,39:1,40:3,38:-3};function u(){var e;"range"===(null===(e=t.config)||void 0===e?void 0:e.mode)&&1===t.selectedDates.length&&t.clear(!1),t.selectedDates.length||r()}return{onParseConfig:function(){t.config.enableTime=!1},onValueUpdate:a,onKeyDown:function(e,n,r,o){var a=void 0!==c[o.keyCode];if((a||13===o.keyCode)&&t.rContainer&&i.monthsContainer){var s=t.rContainer.querySelector(".flatpickr-monthSelect-month.selected"),l=Array.prototype.indexOf.call(i.monthsContainer.children,document.activeElement);if(-1===l){var u=s||i.monthsContainer.firstElementChild;u.focus(),l=u.$i}a?i.monthsContainer.children[(12+l+c[o.keyCode])%12].focus():13===o.keyCode&&i.monthsContainer.contains(document.activeElement)&&d(document.activeElement.dateObj)}},onReady:[function(){o._stubbedCurrentMonth=t._initialDate.getMonth(),t._initialDate.setMonth(o._stubbedCurrentMonth),t.currentMonth=o._stubbedCurrentMonth},function(){if(t.rContainer){e(t.rContainer);for(var n=0;na||d=t.weekStartDay&&r<=t.weekEndDay&&n[i].classList.add("week","selected")}}return{onValueUpdate:n,onMonthChange:n,onYearChange:n,onOpen:n,onClose:function(){for(var e=t.days.childNodes,n=e.length;n--;)e[n].classList.remove("inRange")},onParseConfig:function(){t.config.mode="single",t.config.enableTime=!1,t.config.dateFormat=t.config.dateFormat?t.config.dateFormat:"\\W\\e\\e\\k #W, Y",t.config.altFormat=t.config.altFormat?t.config.altFormat:"\\W\\e\\e\\k #W, Y"},onReady:[function(){void 0!==t.daysContainer&&t.daysContainer.addEventListener("mouseover",e)},n,function(){t.loadedPlugins.push("weekSelect")}],onDestroy:function(){void 0!==t.daysContainer&&t.daysContainer.removeEventListener("mouseover",e)}}}}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(221),o=(i=r)&&i.__esModule?i:{default:i};e.default=o.default,t.exports=e.default},function(t,e,n){var i=n(230),r=0;t.exports=function(t){var e=++r;return i(t)+e}},function(t,e){var n="undefined"!=typeof Element,i="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;t.exports=function(t,e){try{return function t(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,d,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!t(e[l],a[l]))return!1;return!0}if(i&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!t(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(d=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,d[l]))return!1;if(n&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==d[l]&&"__v"!==d[l]&&"__o"!==d[l]||!e.$$typeof)&&!t(e[d[l]],a[d[l]]))return!1;return!0}return e!=e&&a!=a}(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},function(t,e,n){"use strict";var i,r;!function(o){t.exports?(o.default=o,t.exports=o):(i=[n(26),n(116)],void 0===(r=function(t){return o(t),o.Highcharts=t,o}.apply(e,i))||(t.exports=r))}((function(t){function e(t,e,n,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,n))}e(t=t?t._modules:{},"Core/Axis/SolidGaugeAxis.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],(function(t,e){var n,i=t.parse,r=e.extend,o=e.merge;return function(t){var e={initDataClasses:function(t){var e,n=this.chart,r=0,a=this.options;this.dataClasses=e=[],t.dataClasses.forEach((function(s,l){s=o(s),e.push(s),s.color||("category"===a.dataClassColor?(l=n.options.colors,s.color=l[r++],r===l.length&&(r=0)):s.color=i(a.minColor).tweenTo(i(a.maxColor),l/(t.dataClasses.length-1)))}))},initStops:function(t){this.stops=t.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach((function(t){t.color=i(t[1])}))},toColor:function(t,e){var n,i=this.stops,r=this.dataClasses;if(r)for(n=r.length;n--;){var o=r[n],a=o.from;if(i=o.to,(void 0===a||t>=a)&&(void 0===i||t<=i)){var s=o.color;e&&(e.dataClass=n);break}}else{for(this.logarithmic&&(t=this.val2lin(t)),t=1-(this.max-t)/(this.max-this.min),n=i.length;n--&&!(t>i[n][0]););a=i[n]||i[n+1],t=1-((i=i[n+1]||a)[0]-t)/(i[0]-a[0]||1),s=a.color.tweenTo(i.color,t)}return s}};t.init=function(t){r(t,e)}}(n||(n={})),n})),e(t,"Series/SolidGauge/SolidGaugeComposition.js",[t["Core/Renderer/SVG/SVGRenderer.js"]],(function(t){var e=(t=t.prototype).symbols.arc;t.symbols.arc=function(t,n,i,r,o){return t=e(t,n,i,r,o),o&&o.rounded&&(i=((o.r||i)-(o.innerR||0))/2,n=t[0],o=t[2],"M"===n[0]&&"L"===o[0]&&(n=["A",i,i,0,1,1,n[1],n[2]],t[2]=["A",i,i,0,1,1,o[1],o[2]],t[4]=n)),t}})),e(t,"Series/SolidGauge/SolidGaugeSeries.js",[t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/SolidGaugeAxis.js"],t["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=e.seriesTypes,a=o.gauge,s=o.pie.prototype,l=i.clamp,d=i.extend,c=i.isNumber,u=i.merge,h=i.pick,p=i.pInt,f={colorByPoint:!0,dataLabels:{y:0}};return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e.axis=void 0,e.yAxis=void 0,e.startAngleRad=void 0,e.thresholdAngleRad=void 0,e}return r(e,t),e.prototype.translate=function(){var t=this.yAxis;n.init(t),!t.dataClasses&&t.options.dataClasses&&t.initDataClasses(t.options),t.initStops(t.options),a.prototype.translate.call(this)},e.prototype.drawPoints=function(){var t,e=this,n=e.yAxis,i=n.center,r=e.options,o=e.chart.renderer,a=r.overshoot,s=c(a)?a/180*Math.PI:0;c(r.threshold)&&(t=n.startAngleRad+n.translate(r.threshold,null,null,null,!0)),this.thresholdAngleRad=h(t,n.startAngleRad),e.points.forEach((function(t){if(!t.isNull){var a=t.graphic,c=n.startAngleRad+n.translate(t.y,null,null,null,!0),u=p(h(t.options.radius,r.radius,100))*i[2]/200,f=p(h(t.options.innerRadius,r.innerRadius,60))*i[2]/200,g=n.toColor(t.y,t),m=Math.min(n.startAngleRad,n.endAngleRad),v=Math.max(n.startAngleRad,n.endAngleRad);"none"===g&&(g=t.color||e.color||"none"),"none"!==g&&(t.color=g),c=l(c,m-s,v+s),!1===r.wrap&&(c=l(c,m,v)),m=Math.min(c,e.thresholdAngleRad),(c=Math.max(c,e.thresholdAngleRad))-m>2*Math.PI&&(c=m+2*Math.PI),t.shapeArgs=f={x:i[0],y:i[1],r:u,innerR:f,start:m,end:c,rounded:r.rounded},t.startR=u,a?(u=f.d,a.animate(d({fill:g},f)),u&&(f.d=u)):t.graphic=a=o.arc(f).attr({fill:g,"sweep-flag":0}).add(e.group),e.chart.styledMode||("square"!==r.linecap&&a.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),a.attr({stroke:r.borderColor||"none","stroke-width":r.borderWidth||0})),a&&a.addClass(t.getClassName(),!0)}}))},e.prototype.animate=function(t){t||(this.startAngleRad=this.thresholdAngleRad,s.animate.call(this,t))},e.defaultOptions=u(a.defaultOptions,f),e}(a),d(i.prototype,{drawLegendSymbol:t.drawRectangle}),e.registerSeriesType("solidgauge",i),i})),e(t,"masters/modules/solid-gauge.src.js",[],(function(){}))}))},function(t,e,n){t.exports=n(241)},function(t,e,n){e.TrixEditor=n(251).TrixEditor},function(t,e,n){"use strict";var i,r;!function(o){t.exports?(o.default=o,t.exports=o):(i=[n(26)],void 0===(r=function(t){return o(t),o.Highcharts=t,o}.apply(e,i))||(t.exports=r))}((function(t){function e(t,e,n,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,n))}e(t=t?t._modules:{},"Series/ColorMapMixin.js",[t["Core/Globals.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=t.noop;t=t.seriesTypes;var r=n.defined;return(n=n.addEvent)(e,"afterSetState",(function(t){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:t&&"hover"===t.state?1:0})})),{PointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&1/0!==this.value&&-1/0!==this.value}},SeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:i,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:t.column.prototype.pointAttribs,colorAttribs:function(t){var e={};return!r(t.color)||t.state&&"normal"!==t.state||(e[this.colorProp||"fill"]=t.color),e}}}})),e(t,"Series/Treemap/TreemapAlgorithmGroup.js",[],(function(){return function(){function t(t,e,n,i){this.height=t,this.width=e,this.plot=i,this.startDirection=this.direction=n,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(t,e){return Math.max(t/e,e/t)}}}return t.prototype.addElement=function(t){this.lP.total=this.elArr[this.elArr.length-1],this.total+=t,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(t)},t.prototype.reset=function(){this.lW=this.nW=0,this.elArr=[],this.total=0},t}()})),e(t,"Series/DrawPointComposition.js",[],(function(){var t;return function(t){function e(t){var e=this,n=t.animatableAttribs,i=t.onComplete,r=t.css,o=t.renderer,a=this.series&&this.series.chart.hasRendered?void 0:this.series&&this.series.options.animation,s=this.graphic;if(t.attribs=t.attribs||{},t.attribs.class=this.getClassName(),this.shouldDraw())s||(this.graphic=s=o[t.shapeType](t.shapeArgs).add(t.group)),s.css(r).attr(t.attribs).animate(n,!t.isNew&&a,i);else if(s){var l=function(){e.graphic=s=s&&s.destroy(),"function"==typeof i&&i()};Object.keys(n).length?s.animate(n,void 0,(function(){l()})):l()}}function n(){return!this.isNull}var i=[];t.compose=function(t){if(-1===i.indexOf(t)){i.push(t);var r=t.prototype;r.draw=e,r.shouldDraw||(r.shouldDraw=n)}return t}}(t||(t={})),t})),e(t,"Series/Treemap/TreemapPoint.js",[t["Series/DrawPointComposition.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=e.series.prototype.pointClass,o=e.seriesTypes;e=o.pie.prototype.pointClass;var a=n.extend,s=n.isNumber,l=n.pick;return a((n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name=void 0,e.node=void 0,e.options=void 0,e.series=void 0,e.value=void 0,e}return i(e,t),e.prototype.getClassName=function(){var t=r.prototype.getClassName.call(this),e=this.series,n=e.options;return this.node.level<=e.nodeMap[e.rootNode].level?t+=" highcharts-above-level":this.node.isLeaf||l(n.interactByLeaf,!n.allowTraversingTree)?this.node.isLeaf||(t+=" highcharts-internal-node"):t+=" highcharts-internal-node-interactive",t},e.prototype.isValid=function(){return!(!this.id&&!s(this.value))},e.prototype.setState=function(t){r.prototype.setState.call(this,t),this.graphic&&this.graphic.attr({zIndex:"hover"===t?1:0})},e.prototype.shouldDraw=function(){return s(this.plotY)&&null!==this.y},e}(o.scatter.prototype.pointClass)).prototype,{setVisible:e.prototype.setVisible}),t.compose(n),n})),e(t,"Series/Treemap/TreemapUtilities.js",[t["Core/Utilities.js"]],(function(t){var e,n=t.objectEach;return function(t){t.AXIS_MAX=100,t.isBoolean=function(t){return"boolean"==typeof t},t.eachObject=function(t,e,i){i=i||this,n(t,(function(n,r){e.call(i,n,r,t)}))},t.recursive=function t(e,n,i){void 0===i&&(i=this),!1!==(e=n.call(i,e))&&t(e,n,i)}}(e||(e={})),e})),e(t,"Series/TreeUtilities.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],(function(t,e){var n=e.extend,i=e.isArray,r=e.isNumber,o=e.isObject,a=e.merge,s=e.pick;return{getColor:function(e,n){var i,r=n.index,o=n.mapOptionsToLevel,a=n.parentColor,l=n.parentColorIndex,d=n.series,c=n.colors,u=n.siblings,h=d.points,p=d.chart.options.chart;if(e){if(h=h[e.i],e=o[e.level]||{},o=h&&e.colorByPoint)var f=h.index%(c?c.length:p.colorCount),g=c&&c[f];d.chart.styledMode||(c=h&&h.options.color,p=e&&e.color,(i=a)&&(i=(i=e&&e.colorVariation)&&"brightness"===i.key&&r&&u?t.parse(a).brighten(r/u*i.to).get():a),i=s(c,p,g,i,d.color));var m=s(h&&h.options.colorIndex,e&&e.colorIndex,f,l,n.colorIndex)}return{color:i,colorIndex:m}},getLevelOptions:function(t){var e=null;if(o(t)){e={};var n=r(t.from)?t.from:1,l=t.levels,d={},c=o(t.defaults)?t.defaults:{};for(i(l)&&(d=l.reduce((function(t,e){if(o(e)&&r(e.level)){var i=a({},e),l=s(i.levelIsConstant,c.levelIsConstant);delete i.levelIsConstant,delete i.level,e=e.level+(l?0:n-1),o(t[e])?a(!0,t[e],i):t[e]=i}return t}),{})),l=r(t.to)?t.to:1,t=0;t<=l;t++)e[t]=a({},c,o(d[t])?d[t]:{})}return e},setTreeValues:function t(e,i){var r=i.before,o=i.idRoot,a=i.mapIdToNode[o],l=i.points[e.i],d=l&&l.options||{},c=[],u=0;return e.levelDynamic=e.level-(!1!==i.levelIsConstant?0:a.level),e.name=s(l&&l.name,""),e.visible=o===e.id||!0===i.visible,"function"==typeof r&&(e=r(e,i)),e.children.forEach((function(r,o){var a=n({},i);n(a,{index:o,siblings:e.children.length,visible:e.visible}),r=t(r,a),c.push(r),r.visible&&(u+=r.val)})),r=s(d.value,u),e.visible=0<=r&&(0c.lP.lR&&a.algorithmCalcPoints(t,!1,c,r,s),l===d&&a.algorithmCalcPoints(t,!0,c,r,s),l+=1})),r},n.prototype.alignDataLabel=function(t,e,n){var i=n.style;i&&!_(i.textOverflow)&&e.text&&e.getBBox().width>e.text.textWidth&&e.css({textOverflow:"ellipsis",width:i.width+="px"}),p.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})},n.prototype.buildNode=function(t,e,n,i,r){var o,a=this,s=[],l=a.points[e],d=0;return(i[t]||[]).forEach((function(e){o=a.buildNode(a.points[e].id,e,n+1,i,t),d=Math.max(o.height+1,d),s.push(o)})),e={id:t,i:e,children:s,height:d,level:n,parent:r,visible:!1},a.nodeMap[e.id]=e,l&&(l.node=e),e},n.prototype.calculateChildrenAreas=function(t,e){var n,i=this,r=i.options,o=i.mapOptionsToLevel[t.level+1],a=j(i[o&&o.layoutAlgorithm]&&o.layoutAlgorithm,r.layoutAlgorithm),l=r.alternateStartingDirection;t=t.children.filter((function(t){return!t.ignore})),o&&o.layoutStartingDirection&&(e.direction="vertical"===o.layoutStartingDirection?0:1),n=i[a](e,t),t.forEach((function(t,r){r=n[r],t.values=E(r,{val:t.childrenTotal,direction:l?1-e.direction:e.direction}),t.pointValues=E(r,{x:r.x/i.axisRatio,y:s.AXIS_MAX-r.y-r.height,width:r.width/i.axisRatio}),t.children.length&&i.calculateChildrenAreas(t,t.values)}))},n.prototype.drawDataLabels=function(){var t,e,n=this,i=n.mapOptionsToLevel;n.points.filter((function(t){return t.node.visible})).forEach((function(r){e=i[r.node.level],t={style:{}},r.node.isLeaf||(t.enabled=!1),e&&e.dataLabels&&(t=E(t,e.dataLabels),n._hasPointLabels=!0),r.shapeArgs&&(t.style.width=r.shapeArgs.width,r.dataLabel&&r.dataLabel.css({width:r.shapeArgs.width+"px"})),r.dlOptions=E(t,r.options.dataLabels)})),h.prototype.drawDataLabels.call(this)},n.prototype.drawPoints=function(){var t=this,e=t.chart,n=e.renderer,i=e.styledMode,r=t.options,o=i?{}:r.shadow,a=r.borderRadius,s=e.pointCount{point.name}: {point.value}
"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:f?0:.1,halo:!1,opacity:.75,shadow:!1}}}),n}(g),w(l.prototype,{buildKDTree:t,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:i.drawRectangle,getExtremesFromAll:!0,getSymbol:t,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:a,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:s.recursive}}),r.registerSeriesType("treemap",l),l})),e(t,"masters/modules/treemap.src.js",[],(function(){}))}))},,,,,,,function(t,e){t.exports=n},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(t){for(var e=[],n=1;n0&&0===(y-=1)&&c.show(e),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var t=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:t},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(t){(function(t){return"Tab"===t.code||9===t.keyCode})(t)&&(0,d.default)(n.content,t),n.props.shouldCloseOnEsc&&function(t){return"Escape"===t.code||27===t.keyCode}(t)&&(t.stopPropagation(),n.requestClose(t))},n.handleOverlayOnClick=function(t){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(t):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(t){n.props.shouldCloseOnOverlayClick||t.target!=n.overlay||t.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(t){return n.ownerHandlesClose()&&n.props.onRequestClose(t)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(t,e){var i="object"===(void 0===e?"undefined":r(e))?e:{base:v[t],afterOpen:v[t]+"--after-open",beforeClose:v[t]+"--before-close"},o=i.base;return n.state.afterOpen&&(o=o+" "+i.afterOpen),n.state.beforeClose&&(o=o+" "+i.beforeClose),"string"==typeof e&&e?o+" "+e:o},n.attributesFromObject=function(t,e){return Object.keys(e).reduce((function(n,i){return n[t+"-"+i]=e[i],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(t,e){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!e.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var t=this.props,e=t.appElement,n=t.ariaHideApp,i=t.htmlOpenClassName,r=t.bodyOpenClassName,o=t.parentSelector,a=o&&o().ownerDocument||document;r&&u.add(a.body,r),i&&u.add(a.getElementsByTagName("html")[0],i),n&&(y+=1,c.hide(e)),f.default.register(this)}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.overlayClassName,o=t.defaultStyles,a=t.children,s=n?{}:o.content,l=r?{}:o.overlay;if(this.shouldBeClosed())return null;var d={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:i({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=i({id:e,ref:this.setContentRef,style:i({},s,this.props.style.content),className:this.buildClassName("content",n),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",i({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),u=this.props.contentElement(c,a);return this.props.overlayElement(d,u)}}]),e}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(h.SafeHTMLCollection),s.default.instanceOf(h.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},e.default=b,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){a=[]},e.log=function(){0},e.handleBlur=d,e.handleFocus=c,e.markForFocusLater=function(){a.push(document.activeElement)},e.returnFocus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=null;try{return void(0!==a.length&&(e=a.pop()).focus({preventScroll:t}))}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},e.popWithoutFocus=function(){a.length>0&&a.pop()},e.setupScopedFocus=function(t){s=t,window.addEventListener?(window.addEventListener("blur",d,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",d),document.attachEvent("onFocus",c))},e.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",d),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",d),document.detachEvent("onFocus",c))};var i,r=n(189),o=(i=r)&&i.__esModule?i:{default:i};var a=[],s=null,l=!1;function d(){l=!0}function c(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,o.default)(t);if(!n.length)return void e.preventDefault();var i=void 0,r=e.shiftKey,a=n[0],s=n[n.length-1],l=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?t(e.activeElement.shadowRoot):e.activeElement}();if(t===l){if(!r)return;i=s}s!==l||r||(i=a);a===l&&r&&(i=s);if(i)return e.preventDefault(),void i.focus();var d=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==d||"Chrome"==d[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(l);c>-1&&(c+=r?-1:1);if(void 0===(i=n[c]))return e.preventDefault(),void(i=r?s:a).focus();e.preventDefault(),i.focus()};var i,r=n(189),o=(i=r)&&i.__esModule?i:{default:i};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){var t=document.getElementsByTagName("html")[0];for(var e in i)o(t,i[e]);var n=document.body;for(var a in r)o(n,r[a]);i={},r={}},e.log=function(){0};var i={},r={};function o(t,e){t.classList.remove(e)}e.add=function(t,e){return n=t.classList,o="html"==t.nodeName.toLowerCase()?i:r,void e.split(" ").forEach((function(t){!function(t,e){t[e]||(t[e]=0),t[e]+=1}(o,t),n.add(t)}));var n,o},e.remove=function(t,e){return n=t.classList,o="html"==t.nodeName.toLowerCase()?i:r,void e.split(" ").forEach((function(t){!function(t,e){t[e]&&(t[e]-=1)}(o,t),0===o[t]&&n.remove(t)}));var n,o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){for(var t=[a,s],e=0;e0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(t,e,n){"use strict";function i(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function r(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function o(t,e){try{var n=this.props,i=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,i)}finally{this.props=n,this.state=i}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=t.displayName||t.name,d="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+d+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=i,e.componentWillReceiveProps=r),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var i=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,i)}}return t}n.r(e),n.d(e,"polyfill",(function(){return a})),i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(t,e,n){var i=n(231);t.exports=function(t){return null==t?"":i(t)}},function(t,e,n){var i=n(166),r=n(234),o=n(235),a=n(236),s=i?i.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var i=n(233),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(150))},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++nthis.countryCodeMaxLen&&(this.countryCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var r=0;r-1}))}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map((function(t){return t.toLowerCase()}));this.countries=e.filter((function(t){return-1===n.indexOf(t.iso2)}))}else this.countries=e}},{key:"_translateCountriesByLocale",value:function(){for(var t=0;t"),i+="
"),i+="".concat(o.name,""),i+="+".concat(o.dialCode,""),i+=""}this.countryList.insertAdjacentHTML("beforeend",i)}},{key:"_setInitialState",value:function(){var t=this.telInput.getAttribute("value"),e=this.telInput.value,n=!t||"+"!==t.charAt(0)||e&&"+"===e.charAt(0)?e:t,i=this._getDialCode(n),r=this._isRegionlessNanp(n),o=this.options,a=o.initialCountry,s=o.nationalMode,l=o.autoHideDialCode,d=o.separateDialCode;i&&!r?this._updateFlagFromNumber(n):"auto"!==a&&(a?this._setFlag(a.toLowerCase()):i&&r?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),n||s||l||d||(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),n&&this._updateValFromNumber(n)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var t=this;this._handleHiddenInputSubmit=function(){t.hiddenInput.value=t.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var t=this.telInput;t&&"LABEL"!==t.tagName;)t=t.parentNode;return t}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(e){t.countryList.classList.contains("iti__hide")?t.telInput.focus():e.preventDefault()};var e=this._getClosestLabel();e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!t.countryList.classList.contains("iti__hide")||t.telInput.disabled||t.telInput.readOnly||t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){t.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._showDropdown()),"Tab"===e.key&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var t=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(t.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(t){window.intlTelInputGlobals.autoCountry=t.toLowerCase(),setTimeout((function(){return c("handleAutoCountry")}))}),(function(){return c("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var t=this;this._handleKeyupEvent=function(){t._updateFlagFromNumber(t.telInput.value)&&t._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(t._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(t){var e=this.telInput.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_initBlurListeners",value:function(){var t=this;this._handleSubmitOrBlurEvent=function(){t._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var t=this._getNumeric(this.telInput.value);t&&this.selectedCountryData.dialCode!==t||(this.telInput.value="")}}},{key:"_getNumeric",value:function(t){return t.replace(/\D/g,"")}},{key:"_trigger",value:function(t){var e=document.createEvent("Event");e.initEvent(t,!0,!0),this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(t,e,n){n&&!t.classList.contains(e)?t.classList.add(e):!n&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_setDropdownPosition",value:function(){var t=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var e=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,i=e.top+n,r=this.countryList.offsetHeight,o=i+this.telInput.offsetHeight+rn;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!o&&a),this.options.dropdownContainer){var s=!o&&a?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(i+s,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return t._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(t){for(var e=t;e&&e!==this.countryList&&!e.classList.contains("iti__country");)e=e.parentNode;return e===this.countryList?null:e}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(e){var n=t._getClosestListItem(e.target);n&&t._highlightListItem(n,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(e){var n=t._getClosestListItem(e.target);n&&t._selectListItem(n)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var n="",i=null;this._handleKeydownOnDropdown=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?t._handleUpDownKey(e.key):"Enter"===e.key?t._handleEnterKey():"Escape"===e.key?t._closeDropdown():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)&&(i&&clearTimeout(i),n+=e.key.toLowerCase(),t._searchForCountry(n),i=setTimeout((function(){n=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(t){var e="ArrowUp"===t||"Up"===t?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;e&&(e.classList.contains("iti__divider")&&(e="ArrowUp"===t||"Up"===t?e.previousElementSibling:e.nextElementSibling),this._highlightListItem(e,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(t){for(var e=0;ea){e&&(c+=u);var h=r-s;n.scrollTop=c-h}}},{key:"_updateDialCode",value:function(t,e){var n,i=this.telInput.value,r="+".concat(t);if("+"===i.charAt(0)){var o=this._getDialCode(i);n=o?i.replace(o,r):r}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)n=r+i;else{if(!e&&this.options.autoHideDialCode)return;n=r}}this.telInput.value=n}},{key:"_getDialCode",value:function(t,e){var n="";if("+"===t.charAt(0))for(var i="",r=0;re?1:tt.length)&&_t(Z,t)}function tt(t){return _t(X,t)?it(t,z):it(t,B)}function et(t){var e=tt(t.toString());t.i="",t.g(e)}function nt(t){return null!=t&&(1!=b(t,9)||-1!=y(t,9)[0])}function it(t,e){for(var n,i=new S,r=t.length,o=0;oe?2:o[o.length-1]=e.i.length)throw Error("Phone number too short after IDD");t:{if(0!=(t=e.toString()).length&&"0"!=t.charAt(0))for(r=t.length,e=1;3>=e&&e<=r;++e)if((n=parseInt(t.substring(0,e),10))in N){i.g(t.substring(e)),i=n;break t}i=0}if(0!=i)return x(o,1,i),i;throw Error("Invalid country calling code")}return null!=n&&(s=""+(a=v(n,10)),0==(l=e.toString()).lastIndexOf(s,0)&&(s=new S(l.substring(s.length)),l=m(n,1),l=new RegExp(v(l,2)),yt(s,n,null),s=s.toString(),!_t(l,e.toString())&&_t(l,s)||3==gt(t,e.toString(),n,-1)))?(i.g(s),r&&x(o,6,10),x(o,1,a),a):(x(o,1,0),0)}function yt(t,e,n){var i=t.toString(),r=i.length,o=m(e,15);if(0!=r&&null!=o&&0!=o.length){var a=new RegExp("^(?:"+o+")");if(r=a.exec(i)){var s=_t(o=new RegExp(v(m(e,1),2)),i),l=r.length-1;null==(e=m(e,16))||0==e.length||null==r[l]||0==r[l].length?s&&!_t(o,i.substring(r[0].length))||(null!=n&&0e.i.length)throw Error("The string supplied is too short to be a phone number");if(null!=a&&(n=new S,yt(r=new S(e.toString()),a,n),2!=(t=gt(t,r.toString(),a,-1))&&4!=t&&5!=t&&(e=r,i&&0(t=(i=e.toString()).length))throw Error("The string supplied is too short to be a phone number");if(17=0&&o=200&&i.status<300)return n=e=i.responseText,t.setAttributes({url:n,href:e})},i.send(n)},e.prototype.handleTagSelected=function(t,e){e.preventDefault();var n=this.state;n.showMergeTags=!1,this.setState(n),this.editor.expandSelectionInDirection("backward"),this.editor.insertString(t.tag)},e.prototype.renderTagSelector=function(t){var e=this;if(!t||!this.editor)return null;var n=document.getElementById("trix-editor-top-level-"+this.id).getBoundingClientRect(),i=this.editor.getClientRectAtPosition(this.editor.getSelectedRange()[0]),r={position:"absolute",top:i.top+25-n.top,left:i.left+25-n.left,width:"250px",boxSizing:"border-box",padding:0,margin:".2em 0 0",backgroundColor:"hsla(0,0%,100%,.9)",borderRadius:".3em",background:"linear-gradient(to bottom right, white, hsla(0,0%,100%,.8))",border:"1px solid rgba(0,0,0,.3)",boxShadow:".05em .2em .6em rgba(0,0,0,.2)",textShadow:"none"},a={display:"block",padding:".2em .5em",cursor:"pointer"};return o.createElement("div",{style:r,className:"react-trix-suggestions"},t.map((function(t){return o.createElement("a",{key:t.name,style:a,href:"#",onClick:e.handleTagSelected.bind(e,t)},t.name)})))},e.prototype.render=function(){var t=this,e=this.state,n=this.props,i={id:"editor-"+this.id,input:"input-"+this.id};n.className&&(i.class=n.className),n.autoFocus&&(i.autofocus=n.autoFocus.toString()),n.placeholder&&(i.placeholder=n.placeholder),n.toolbar&&(i.toolbar=n.toolbar);var r=null;return e.showMergeTags&&(r=this.renderTagSelector(e.tags)),o.createElement("div",{id:"trix-editor-top-level-"+this.id,ref:function(e){return t.d=e},style:{position:"relative"}},o.createElement("trix-editor",i),o.createElement("input",{type:"hidden",id:"input-"+this.id,value:this.props.value}),r)},e}(o.Component);e.TrixEditor=a},function(t,e,n){var i=n(253);t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e,i){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var i=n(101),r=n(136),o=n(137),a=n(139),s=n(140),l=n(171),d=n(172),c=n(173),u=n(44),h=n(106),p=n(145),f=n(78),g=n(102),m=n(91),v=n(141),y=n(143),b=n(11);var x={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Object(u.a)(n.placement),l=Object(g.a)(s),d=[b.f,b.k].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(t,e){return t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t,Object(v.a)("number"!=typeof t?t:Object(y.a)(t,b.b))}(r.padding,n),p=Object(h.a)(o),x="y"===l?b.m:b.f,_="y"===l?b.c:b.k,O=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],w=a[l]-n.rects.reference[l],C=Object(f.a)(o),$=C?"y"===l?C.clientHeight||0:C.clientWidth||0:0,k=O/2-w/2,S=c[x],E=$-p[d]-c[_],j=$/2-p[d]/2+k,A=Object(m.a)(S,j,E),M=l;n.modifiersData[i]=((e={})[M]=A,e.centerOffset=A-j,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Object(p.a)(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},_=n(62);function O(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function w(t){return[b.m,b.k,b.c,b.f].some((function(e){return t[e]>=0}))}var C={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=Object(_.a)(e,{elementContext:"reference"}),s=Object(_.a)(e,{altBoundary:!0}),l=O(a,i),d=O(s,r,o),c=w(l),u=w(d);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}},$=[r.a,o.a,a.a,s.a,l.a,d.a,c.a,x,C],k=Object(i.a)({defaultModifiers:$})},,,,,,function(t,e,n){"use strict";var i=n(58),r=n(22);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{once:!1},i=n.once,r=void 0!==window.jQuery&&window.jQuery;r?i?r(document).one(t,e):r(document).on(t,e):document.addEventListener(t,e,{once:i})},setup:function(t,e){var n=void 0!==window.jQuery&&window.jQuery,i=window.Turbolinks;void 0!==i&&i.supported?void 0!==i.EVENTS?this.turbolinksClassic(t,e):void 0!==i.controller?this.turbolinks5(t,e):this.turbolinksClassicDeprecated(t,e):n&&"function"==typeof n.pjax?this.pjax(t,e):this.native(t)},turbolinks5:function(t,e){this.handleEvent("turbolinks:load",t,{once:!0}),this.handleEvent("turbolinks:render",t),this.handleEvent("turbolinks:before-render",e)},turbolinksClassic:function(t,e){var n=window.Turbolinks;this.handleEvent(n.EVENTS.CHANGE,t),this.handleEvent(n.EVENTS.BEFORE_UNLOAD,e)},turbolinksClassicDeprecated:function(t,e){window.Turbolinks.pagesCached(0),this.handleEvent("page:change",t),this.handleEvent("page:receive",e)},pjax:function(t,e){this.handleEvent("ready",t),this.handleEvent("pjax:end",t),this.handleEvent("pjax:beforeReplace",e)},native:function(t){var e=void 0!==window.jQuery&&window.jQuery;e?e((function(){return t()})):"addEventListener"in window?document.addEventListener("DOMContentLoaded",t):window.attachEvent("onload",t)}};e.default=i},,,,,,,,,function(t,e,n){"use strict";n.r(e);n(263);var i=n(161),r=n(197),o=(n(180),n(58));function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n