telegram : @iamdarkcomedy i am hacker

path :/home/bisorgosof24/public_html/Backup23122024

upload file:

List of files:

name file size edit permission action
.env2733 KBDecember 22 2024 06:20:070644
404.html58370 KBNovember 20 2024 15:32:220644
502.html58368 KBNovember 20 2024 15:32:220644
Modules-December 11 2024 21:02:560755
README.md4158 KBFebruary 14 2023 12:31:560644
app-December 11 2024 17:57:480755
artisan1686 KBFebruary 14 2023 12:31:560644
bootstrap-December 11 2024 20:23:360755
composer.json3761 KBDecember 11 2024 22:15:000644
composer.lock512048 KBDecember 11 2024 22:13:280644
config-June 15 2025 02:09:360755
database-December 05 2024 20:18:120755
dfsdf dfds fd fds findex.html1420 KBNovember 20 2024 15:32:240644
error_log15238619 KBJuly 18 2025 16:56:070644
firoz-December 23 2024 13:24:460755
index.php1667 KBDecember 14 2024 05:20:360644
lang-December 11 2024 21:02:480755
modules_statuses.json472 KBNovember 20 2024 15:32:240644
mpos-March 31 2025 02:36:310755
package.json226 KBFebruary 14 2023 12:31:560644
phpunit.xml1146 KBFebruary 14 2023 12:31:560644
public-March 31 2025 02:36:310755
resources-December 11 2024 21:10:220755
routes-June 15 2025 02:09:310755
storage-December 11 2024 21:12:440755
tests-December 05 2024 20:18:120755
vendor-December 11 2024 22:13:300755
vite.config.js263 KBFebruary 14 2023 12:31:560644

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 230
/*! For license information please see app.js.LICENSE.txt */ (()=>{var t={5496:function(t){t.exports=function(){"use strict";const t=(t,e,n,o)=>(t=""+t,e=""+e,o&&(t=t.trim(),e=e.trim()),n?t==e:t.toLowerCase()==e.toLowerCase());function e(t){var e=document.createElement("div");return t.replace(/\&#?[0-9a-z]+;/gi,(function(t){return e.innerHTML=t,e.innerText}))}function n(t,e){for(e=e||"previous";t=t[e+"Sibling"];)if(3==t.nodeType)return t}function o(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/`|'/g,"'")}function r(t){return t instanceof Array}function i(t){var e=Object.prototype.toString.call(t).split(" ")[1].slice(0,-1);return t===Object(t)&&"Array"!=e&&"Function"!=e&&"RegExp"!=e&&"HTMLUnknownElement"!=e}function a(t,e,n){function o(t,e){for(var n in e)if(e.hasOwnProperty(n)){if(i(e[n])){i(t[n])?o(t[n],e[n]):t[n]=Object.assign({},e[n]);continue}if(r(e[n])){t[n]=Object.assign([],e[n]);continue}t[n]=e[n]}}return t instanceof Object||(t={}),o(t,e),n&&o(t,n),t}function c(t){return String.prototype.normalize?"string"==typeof t?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:t}var s,u=()=>/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent),p={init(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownWrapperSelector)},show(e){var n,o,r,a=this.settings,c="mix"==a.mode&&!a.enforceWhitelist,s=!a.whitelist||!a.whitelist.length,u="manual"==a.dropdown.position;if(e=void 0===e?this.state.inputText:e,(!s||c||a.templates.dropdownItemNoMatch)&&!1!==a.dropdown.enable&&!this.state.isLoading){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems.call(this,e),e&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",e),a.templates.dropdownItemNoMatch&&(r=a.templates.dropdownItemNoMatch.call(this,{value:e}))),!r){if(this.suggestedListItems.length)e&&c&&!this.state.editing.scope&&!t(this.suggestedListItems[0].value,e)&&this.suggestedListItems.unshift({value:e});else{if(!e||!c||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide.call(this);this.suggestedListItems=[{value:e}]}o=""+(i(n=this.suggestedListItems[0])?n.value:n),a.autoComplete&&o&&0==o.indexOf(e)&&this.input.autocomplete.suggest.call(this,n)}this.dropdown.fill.call(this,r),a.dropdown.highlightFirst&&this.dropdown.highlightOption.call(this,this.DOM.dropdown.content.children[0]),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=e||!0,this.state.dropdown.query=e,this.setStateSelection(),u||setTimeout((()=>{this.dropdown.position.call(this),this.dropdown.render.call(this)})),setTimeout((()=>{this.trigger("dropdown:show",this.DOM.dropdown)}))}},hide(t){var e=this.DOM,n=e.scope,o=e.dropdown,r="manual"==this.settings.dropdown.position&&!t;if(o&&document.body.contains(o)&&!r)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),o.parentNode.removeChild(o),setTimeout((()=>{this.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",o),this},render(){var t,e,n=((e=this.DOM.dropdown.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(e),t=e.clientHeight,e.parentNode.removeChild(e),t),o=this.settings;return this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(o.classNames.dropdownInital),this.dropdown.position.call(this,n),o.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout((()=>this.DOM.dropdown.classList.remove(o.classNames.dropdownInital)))),this},fill(t){var e;t="string"==typeof t?t:this.dropdown.createListHTML.call(this,t||this.suggestedListItems),this.DOM.dropdown.content.innerHTML=(e=t)?e.replace(/\>[\r\n ]+\<").replace(/(<.*?>)|\s+/g,((t,e)=>e||" ")):""},refilter(t){t=t||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems.call(this,t),this.dropdown.fill.call(this),this.suggestedListItems.length||this.dropdown.hide.call(this),this.trigger("dropdown:updated",this.DOM.dropdown)},position(t){var e=this.settings.dropdown;if("manual"!=e.position){var n,o,r,i,a,c,s=this.DOM.dropdown,u=e.placeAbove,p=document.documentElement.clientHeight,l=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>480?e.position:"all",d=this.DOM["input"==l?"input":"scope"];t=t||s.clientHeight,this.state.dropdown.visible&&("text"==l?(r=(n=this.getCaretGlobalPosition()).bottom,o=n.top,i=n.left,a="auto"):(c=function(t){for(var e=0,n=0;t;)e+=t.offsetLeft||0,n+=t.offsetTop||0,t=t.parentNode;return{left:e,top:n}}(this.settings.dropdown.appendTarget),o=(n=d.getBoundingClientRect()).top-c.top,r=n.bottom-1-c.top,i=n.left-c.left,a=n.width+"px"),o=Math.floor(o),r=Math.ceil(r),u=void 0===u?p-n.bottom{e?this.dropdown.selectOption.call(this,e):this.dropdown.hide.call(this)})).catch((t=>t));break;case"Backspace":{if("mix"==this.settings.mode||this.state.editing.scope)return;let t=this.state.inputText.trim();""!=t&&8203!=t.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}}},onMouseOver(t){var e=t.target.closest(this.settings.classNames.dropdownItemSelector);e&&this.dropdown.highlightOption.call(this,e)},onMouseLeave(t){this.dropdown.highlightOption.call(this)},onClick(t){if(0==t.button&&t.target!=this.DOM.dropdown&&t.target!=this.DOM.dropdown.content){var e=t.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode.call(this,e);this.state.actions.selectOption=!0,setTimeout((()=>this.state.actions.selectOption=!1),50),this.settings.hooks.suggestionClick(t,{tagify:this,tagData:n,suggestionElm:e}).then((()=>{e?this.dropdown.selectOption.call(this,e):this.dropdown.hide.call(this)})).catch((t=>t))}},onScroll(t){var e=t.target,n=e.scrollTop/(e.scrollHeight-e.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(n)})}}},getSuggestionDataByNode(t){var e=t?+t.getAttribute("tagifySuggestionIdx"):-1;return this.suggestedListItems[e]||null},highlightOption(t,e){var n,o=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(o),this.state.ddItemElm.removeAttribute("aria-selected")),!t)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);n=this.suggestedListItems[this.getNodeIndex(t)],this.state.ddItemData=n,this.state.ddItemElm=t,t.classList.add(o),t.setAttribute("aria-selected",!0),e&&(t.parentNode.scrollTop=t.clientHeight+t.offsetTop-t.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,n),this.dropdown.position.call(this))},selectOption(t){var e=this.settings.dropdown,n=e.clearOnSelect,o=e.closeOnSelect;if(!t)return this.addTags(this.state.inputText,!0),void(o&&this.dropdown.hide.call(this));var r=t.getAttribute("tagifySuggestionIdx"),i=this.suggestedListItems[+r];if(this.trigger("dropdown:select",{data:i,elm:t}),r&&i){if(this.state.editing?this.onEditTagDone(null,a({__isValid:!0},i)):this["mix"==this.settings.mode?"addMixTags":"addTags"]([i],n),setTimeout((()=>{this.DOM.input.focus(),this.toggleFocusClass(!0)})),o)return this.dropdown.hide.call(this);this.dropdown.refilter.call(this)}else this.dropdown.hide.call(this)},selectAll(){return this.suggestedListItems.length=0,this.dropdown.hide.call(this),this.addTags(this.dropdown.filterListItems.call(this,""),!0),this},filterListItems(t,e){var n,o,r,a,s,u=this.settings,p=u.dropdown,l=(e=e||{},[]),d=u.whitelist,f=p.maxItems||1/0,b=p.searchKeys,M=0;if(!t||!b.length||"select"==u.mode)return(u.duplicates?d:d.filter((t=>!this.isTagDuplicate(i(t)?t.value:t)))).slice(0,f);function z(t,e){return e.toLowerCase().split(" ").every((e=>t.includes(e.toLowerCase())))}for(s=p.caseSensitive?""+t:(""+t).toLowerCase();Mb.includes(t)))?b:["value"];if(p.fuzzySearch&&!e.exact?(r=t.reduce(((t,e)=>t+" "+(n[e]||"")),"").toLowerCase(),p.accentedSearch&&(r=c(r),s=c(s)),o=z(r,s)):o=t.some((t=>{var o=""+(n[t]||"");return p.accentedSearch&&(o=c(o),s=c(s)),p.caseSensitive||(o=o.toLowerCase()),e.exact?o==s:0==o.indexOf(s)})),a=!u.duplicates&&this.isTagDuplicate(i(n)?n.value:n),o&&!a&&f--&&l.push(n),0==f)break}return l},getMappedValue(t){var e=this.settings.dropdown.mapValueTo;return e?"function"==typeof e?e(t):t[e]||t.value:t.value},createListHTML(t){return a([],t).map(((t,e)=>{"string"!=typeof t&&"number"!=typeof t||(t={value:t});var n=this.dropdown.getMappedValue.call(this,t);t.value=n&&"string"==typeof n?o(n):n;var r=this.settings.templates.dropdownItem.call(this,t);return r.replace(/\s*tagifySuggestionIdx=(["'])(.*?)\1/gim,"").replace(">",` tagifySuggestionIdx="${e}">`)})).join("")}},l={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,keepInvalidTags:!1,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,editTags:{clicks:2,keepInvalid:!0},transformTag:()=>{},trim:!0,mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tag:"tagify__tag",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",inputInvalid:"tagify__input--invalid",tagX:"tagify__tag__removeBtn",tagText:"tagify__tag-text",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownInital:"tagify__dropdown--initial",scopeLoading:"tagify--loading",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:()=>Promise.resolve(),suggestionClick:()=>Promise.resolve()}},d={wrapper:(t,e)=>`\n \n `,tag(t){return`\n \n
\n ${t[this.settings.tagTextProp]||t.value}\n
\n
`},dropdown(t){var e=t.dropdown,n="manual"==e.position,o=`${t.classNames.dropdown}`;return`
\n
\n
`},dropdownItem(t){return`
${t.value}
`},dropdownItemNoMatch:null},f={customBinding(){this.customEventsList.forEach((t=>{this.on(t,this.settings.callbacks[t])}))},binding(t=!0){var e,n=this.events.callbacks,o=t?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!t)for(var r in this.state.mainEvents=t,t&&!this.listeners.main&&(this.DOM.input.addEventListener(this.isIE?"keydown":"input",n[this.isIE?"onInputIE":"onInput"].bind(this)),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),e=this.listeners.main=this.listeners.main||{focus:["input",n.onFocusBlur.bind(this)],blur:["input",n.onFocusBlur.bind(this)],keydown:["input",n.onKeydown.bind(this)],click:["scope",n.onClickScope.bind(this)],dblclick:["scope",n.onDoubleClickScope.bind(this)],paste:["input",n.onPaste.bind(this)]})("blur"!=r||t)&&this.DOM[e[r][0]][o](r,e[r][1])},callbacks:{onFocusBlur(t){var e=t.target?this.trim(t.target.textContent):"",n=this.settings,o=t.type,r=n.dropdown.enabled>=0,i={relatedTarget:t.relatedTarget},a=this.state.actions.selectOption&&(r||!n.dropdown.closeOnSelect),c=this.state.actions.addNew&&r;if("blur"==o){if(t.relatedTarget===this.DOM.scope)return this.dropdown.hide.call(this),void this.DOM.input.focus();this.postUpdate(),this.triggerChangeEvent()}if(!a&&!c)if(this.state.hasFocus="focus"==o&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=n.mode){if("focus"==o)return this.trigger("focus",i),void(0===n.dropdown.enabled&&this.dropdown.show.call(this));"blur"==o&&(this.trigger("blur",i),this.loading(!1),("select"==this.settings.mode?!this.value.length||this.value[0].value!=e:e&&!this.state.actions.selectOption&&n.addTagOnBlur)&&this.addTags(e,!0)),this.DOM.input.removeAttribute("style"),this.dropdown.hide.call(this)}else"focus"==o?this.trigger("focus",i):"blur"==t.type&&(this.trigger("blur",i),this.loading(!1),this.dropdown.hide.call(this),this.state.dropdown.visible=void 0,this.setStateSelection())},onKeydown(t){var o=this.trim(t.target.textContent);if(this.trigger("keydown",{originalEvent:this.cloneEvent(t)}),"mix"==this.settings.mode){switch(t.key){case"Left":case"ArrowLeft":this.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(this.state.editing)return;var r,i,a=document.getSelection(),c="Delete"==t.key&&a.anchorOffset==(a.anchorNode.length||0),p=1==a.anchorNode.nodeType||!a.anchorOffset&&a.anchorNode.previousElementSibling,l=e(this.DOM.input.innerHTML),d=this.getTagElms();if(u()&&p)return i=n(p),p.hasAttribute("readonly")||p.remove(),this.DOM.input.focus(),void setTimeout((()=>{this.placeCaretAfterNode(i),this.DOM.input.click()}));if("BR"==a.anchorNode.nodeName)return;if((c||p)&&1==a.anchorNode.nodeType?r=0==a.anchorOffset?c?d[0]:null:d[a.anchorOffset-1]:c?r=a.anchorNode.nextElementSibling:p&&(r=p),3==a.anchorNode.nodeType&&!a.anchorNode.nodeValue&&a.anchorNode.previousElementSibling&&t.preventDefault(),(p||c)&&!this.settings.backspace)return void t.preventDefault();if("Range"!=a.type&&!a.anchorOffset&&a.anchorNode==this.DOM.input&&"Delete"!=t.key)return void t.preventDefault();if("Range"!=a.type&&r&&r.hasAttribute("readonly"))return void this.placeCaretAfterNode(n(r));clearTimeout(s),s=setTimeout((()=>{console.log(111);var t=document.getSelection(),n=e(this.DOM.input.innerHTML),o=t.anchorNode.previousElementSibling;if(!u()&&n.length>=l.length&&o&&!o.hasAttribute("readonly")&&(this.removeTags(o),this.fixFirefoxLastTagNoCaret(),2==this.DOM.input.children.length&&"BR"==this.DOM.input.children[1].tagName))return this.DOM.input.innerHTML="",this.value.length=0,!0;this.value=[].map.call(d,((t,e)=>{var n=this.tagData(t);if(t.parentNode||n.readonly)return n;this.trigger("remove",{tag:t,index:e,data:n})})).filter((t=>t))}),20)}return!0}switch(t.key){case"Backspace":this.state.dropdown.visible&&"manual"!=this.settings.dropdown.position||""!=o&&8203!=o.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0));break;case"Esc":case"Escape":if(this.state.dropdown.visible)return;t.target.blur();break;case"Down":case"ArrowDown":this.state.dropdown.visible||this.dropdown.show.call(this);break;case"ArrowRight":{let t=this.state.inputSuggestion||this.state.ddItemData;if(t&&this.settings.autoComplete.rightKey)return void this.addTags([t],!0);break}case"Tab":{let e="select"==this.settings.mode;if(!o||e)return!0;t.preventDefault()}case"Enter":if(this.state.dropdown.visible||229==t.keyCode)return;t.preventDefault(),setTimeout((()=>{this.state.actions.selectOption||this.addTags(o,!0)}))}},onInput(t){if("mix"==this.settings.mode)return this.events.callbacks.onMixTagsInput.call(this,t);var e=this.input.normalize.call(this),n=e.length>=this.settings.dropdown.enabled,o={value:e,inputElm:this.DOM.input};o.isValid=this.validateTag({value:e}),this.trigger("input",o),this.state.inputText!=e&&(this.input.set.call(this,e,!1),-1!=e.search(this.settings.delimiters)?this.addTags(e)&&this.input.set.call(this):this.settings.dropdown.enabled>=0&&this.dropdown[n?"show":"hide"].call(this,e))},onMixTagsInput(t){var e,n,o,r,i,c,s,p,l=this.settings,d=this.value.length,f=this.getTagElms(),b=document.createDocumentFragment(),M=window.getSelection().getRangeAt(0),z=[].map.call(f,(t=>this.tagData(t).value));if("deleteContentBackward"==t.inputType&&u()&&this.events.callbacks.onKeydown.call(this,{target:t.target,key:"Backspace"}),this.value.slice().forEach((t=>{t.readonly&&!z.includes(t.value)&&b.appendChild(this.createTagElem(t))})),b.childNodes.length&&(M.insertNode(b),this.setRangeAtStartEnd(!1,b.lastChild)),f.length!=d)return this.value=[].map.call(this.getTagElms(),(t=>this.tagData(t))),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&(c=window.getSelection()).rangeCount>0&&3==c.anchorNode.nodeType){if((M=c.getRangeAt(0).cloneRange()).collapse(!0),M.setStart(c.focusNode,0),o=(e=M.toString().slice(0,M.endOffset)).split(l.pattern).length-1,(n=e.match(l.pattern))&&(r=e.slice(e.lastIndexOf(n[n.length-1]))),r){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:r.match(l.pattern)[0],value:r.replace(l.pattern,"")},this.state.tag.baseOffset=c.baseOffset-this.state.tag.value.length,p=this.state.tag.value.match(l.delimiters))return this.state.tag.value=this.state.tag.value.replace(l.delimiters,""),this.state.tag.delimiters=p[0],this.addTags(this.state.tag.value,l.dropdown.clearOnSelect),void this.dropdown.hide.call(this);i=this.state.tag.value.length>=l.dropdown.enabled;try{s=(s=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&s.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(t){}(s||o{this.update({withoutChangeEvent:!0}),this.trigger("input",a({},this.state.tag,{textContent:this.DOM.input.textContent})),this.state.tag&&this.dropdown[i?"show":"hide"].call(this,this.state.tag.value)}),10)},onInputIE(t){var e=this;setTimeout((function(){e.events.callbacks.onInput.call(e,t)}))},onClickScope(t){var e=this.settings,n=t.target.closest("."+e.classNames.tag),o=+new Date-this.state.hasFocus;if(t.target!=this.DOM.scope){if(!t.target.classList.contains(e.classNames.tagX))return n?(this.trigger("click",{tag:n,index:this.getNodeIndex(n),data:this.tagData(n),originalEvent:this.cloneEvent(t)}),void(1!==e.editTags&&1!==e.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,t))):void(t.target==this.DOM.input&&("mix"==e.mode&&this.fixFirefoxLastTagNoCaret(),o>500)?this.state.dropdown.visible?this.dropdown.hide.call(this):0===e.dropdown.enabled&&"mix"!=e.mode&&this.dropdown.show.call(this):"select"==e.mode&&!this.state.dropdown.visible&&this.dropdown.show.call(this));this.removeTags(t.target.parentNode)}else this.state.hasFocus||this.DOM.input.focus()},onPaste(t){var e;t.preventDefault(),this.settings.readonly||(e=(t.clipboardData||window.clipboardData).getData("Text"),this.injectAtCaret(e,window.getSelection().getRangeAt(0)),"mix"!=this.settings.mode&&this.addTags(this.DOM.input.textContent,!0))},onEditTagInput(t,e){var n=t.closest("."+this.settings.classNames.tag),o=this.getNodeIndex(n),r=this.tagData(n),i=this.input.normalize.call(this,t),c=n.innerHTML!=n.__tagifyTagData.__originalHTML,s=this.validateTag({[this.settings.tagTextProp]:i});c||!0!==t.originalIsValid||(s=!0),n.classList.toggle(this.settings.classNames.tagInvalid,!0!==s),r.__isValid=s,n.title=!0===s?r.title||r.value:s,i.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=i),this.dropdown.show.call(this,i)),this.trigger("edit:input",{tag:n,index:o,data:a({},this.value[o],{newValue:i}),originalEvent:this.cloneEvent(e)})},onEditTagFocus(t){this.state.editing={scope:t,input:t.querySelector("[contenteditable]")}},onEditTagBlur(t){if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(t)){var e,n=this.settings,o=t.closest("."+n.classNames.tag),r=this.input.normalize.call(this,t),i=this.tagData(o).__originalData,c=o.innerHTML!=o.__tagifyTagData.__originalHTML,s=this.validateTag({[n.tagTextProp]:r});if(r)if(c){if(e=this.getWhitelistItem(r)||a({},i,{[n.tagTextProp]:r,value:r}),n.transformTag.call(this,e,i),!0!==(s=this.validateTag({[n.tagTextProp]:e[n.tagTextProp]}))){if(this.trigger("invalid",{data:e,tag:o,message:s}),n.editTags.keepInvalid)return;n.keepInvalidTags?e.__isValid=s:e=i}this.onEditTagDone(o,e)}else this.onEditTagDone(o,i);else this.onEditTagDone(o)}},onEditTagkeydown(t,e){switch(this.trigger("edit:keydown",{originalEvent:this.cloneEvent(t)}),t.key){case"Esc":case"Escape":e.innerHTML=e.__tagifyTagData.__originalHTML;case"Enter":case"Tab":t.preventDefault(),t.target.blur()}},onDoubleClickScope(t){var e,n,o=t.target.closest("."+this.settings.classNames.tag),r=this.settings;o&&(e=o.classList.contains(this.settings.classNames.tagEditing),n=o.hasAttribute("readonly"),"select"==r.mode||r.readonly||e||n||!this.settings.editTags||this.editTag(o),this.toggleFocusClass(!0),this.trigger("dblclick",{tag:o,index:this.getNodeIndex(o),data:this.tagData(o)}))}}};function b(t,e){return t?t.previousElementSibling&&t.previousElementSibling.classList.contains("tagify")?(console.warn("Tagify: ","input element is already Tagified",t),this):(a(this,function(t){var e=document.createTextNode("");function n(t,n,o){o&&n.split(/\s+/g).forEach((n=>e[t+"EventListener"].call(e,n,o)))}return{off(t,e){return n("remove",t,e),this},on(t,e){return e&&"function"==typeof e&&n("add",t,e),this},trigger(n,o,r){var i;if(r=r||{cloneData:!0},n)if(t.settings.isJQueryPlugin)"remove"==n&&(n="removeTag"),jQuery(t.DOM.originalInput).triggerHandler(n,[o]);else{try{var c="object"==typeof o?o:{value:o};if((c=r.cloneData?a({},c):c).tagify=this,o instanceof Object)for(var s in o)o[s]instanceof HTMLElement&&(c[s]=o[s]);i=new CustomEvent(n,{detail:c})}catch(t){console.warn(t)}e.dispatchEvent(i)}}}}(this)),this.isFirefox="undefined"!=typeof InstallTrigger,this.isIE=window.document.documentMode,this.applySettings(t,e||{}),this.state={inputText:"",editing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(t),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),void(t.autofocus&&this.DOM.input.focus())):(console.warn("Tagify: ","input element not found",t),this)}return b.prototype={dropdown:p,TEXTS:{empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},customEventsList:["change","add","remove","invalid","input","click","keydown","focus","blur","edit:input","edit:beforeUpdate","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch"],trim(t){return this.settings.trim&&t&&"string"==typeof t?t.trim():t},parseHTML:function(t){return(new DOMParser).parseFromString(t.trim(),"text/html").body.firstElementChild},templates:d,parseTemplate(t,e){return t=this.settings.templates[t]||t,this.parseHTML(t.apply(this,e))},applySettings(t,e){l.templates=this.templates;var n=this.settings=a({},l,e);n.readonly=t.hasAttribute("readonly"),n.placeholder=t.getAttribute("placeholder")||n.placeholder||"",n.required=t.hasAttribute("required");for(let t in n.classNames)Object.defineProperty(n.classNames,t+"Selector",{get(){return"."+this[t].split(" ").join(".")}});if(this.isIE&&(n.autoComplete=!1),["whitelist","blacklist"].forEach((e=>{var o=t.getAttribute("data-"+e);o&&(o=o.split(n.delimiters))instanceof Array&&(n[e]=o)})),"autoComplete"in e&&!i(e.autoComplete)&&(n.autoComplete=l.autoComplete,n.autoComplete.enabled=e.autoComplete),"mix"==n.mode&&(n.autoComplete.rightKey=!0,n.delimiters=e.delimiters||null,n.tagTextProp&&!n.dropdown.searchKeys.includes(n.tagTextProp)&&n.dropdown.searchKeys.push(n.tagTextProp)),t.pattern)try{n.pattern=new RegExp(t.pattern)}catch(t){}if(this.settings.delimiters)try{n.delimiters=new RegExp(this.settings.delimiters,"g")}catch(t){}"select"==n.mode&&(n.dropdown.enabled=0),n.dropdown.appendTarget=e.dropdown&&e.dropdown.appendTarget?e.dropdown.appendTarget:document.body},getAttributes(t){if("[object Object]"!=Object.prototype.toString.call(t))return"";var e,n,o=Object.keys(t),r="";for(n=o.length;n--;)"class"!=(e=o[n])&&t.hasOwnProperty(e)&&void 0!==t[e]&&(r+=" "+e+(void 0!==t[e]?`="${t[e]}"`:""));return r},setStateSelection(){var t=window.getSelection(),e={anchorOffset:t.anchorOffset,anchorNode:t.anchorNode,range:t.getRangeAt&&t.rangeCount&&t.getRangeAt(0)};return this.state.selection=e,e},getCaretGlobalPosition(){const t=document.getSelection();if(t.rangeCount){const e=t.getRangeAt(0),n=e.startContainer,o=e.startOffset;let r,i;if(o>0)return i=document.createRange(),i.setStart(n,o-1),i.setEnd(n,o),r=i.getBoundingClientRect(),{left:r.right,top:r.top,bottom:r.bottom};if(n.getBoundingClientRect)return n.getBoundingClientRect()}return{left:-9999,top:-9999}},getCSSVars(){var t,e=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(({value:t,unit:e})=>"s"==e?1e3*t:t)(function(t){if(!t)return{};var e=(t=t.trim().split(" ")[0]).split(/\d+/g).filter((t=>t)).pop().trim();return{value:+t.split(e).filter((t=>t))[0].trim(),unit:e}}((t="tag-hide-transition",e.getPropertyValue("--"+t))))}},build(t){var e=this.DOM;this.settings.mixMode.integrated?(e.originalInput=null,e.scope=t,e.input=t):(e.originalInput=t,e.scope=this.parseTemplate("wrapper",[t,this.settings]),e.input=e.scope.querySelector(this.settings.classNames.inputSelector),t.parentNode.insertBefore(e.scope,t)),this.settings.dropdown.enabled>=0&&this.dropdown.init.call(this)},destroy(){this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.dropdown.hide.call(this,!0),clearTimeout(this.dropdownHide__bindEventsTimeout)},loadOriginalValues(t){var e,n=this.settings;if(t=t||(n.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value))if(this.removeAllTags({withoutChangeEvent:!0}),"mix"==n.mode)this.parseMixTags(t.trim()),(e=this.DOM.input.lastChild)&&"BR"==e.tagName||this.DOM.input.insertAdjacentHTML("beforeend","
");else{try{JSON.parse(t)instanceof Array&&(t=JSON.parse(t))}catch(t){}this.addTags(t).forEach((t=>t&&t.classList.add(n.classNames.tagNoAnimation)))}else this.postUpdate();this.state.lastOriginalValueReported=n.mixMode.integrated?"":this.DOM.originalInput.value,this.state.loadedOriginalValues=!0},cloneEvent(t){var e={};for(var n in t)e[n]=t[n];return e},loading(t){return this.state.isLoading=t,this.DOM.scope.classList[t?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading(t,e){return t&&t.classList[e?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass(t,e){"string"==typeof t&&this.DOM.scope.classList.toggle(t,e)},toggleFocusClass(t){this.toggleClass(this.settings.classNames.focus,!!t)},triggerChangeEvent:function(){if(!this.settings.mixMode.integrated){var t=this.DOM.originalInput,e=this.state.lastOriginalValueReported!==t.value,n=new CustomEvent("change",{bubbles:!0});e&&(this.state.lastOriginalValueReported=t.value,n.simulated=!0,t._valueTracker&&t._valueTracker.setValue(Math.random()),t.dispatchEvent(n),this.trigger("change",this.state.lastOriginalValueReported),t.value=this.state.lastOriginalValueReported)}},events:f,fixFirefoxLastTagNoCaret(){},placeCaretAfterNode(t){if(t&&t.parentNode){var e=t.nextSibling,n=window.getSelection(),o=n.getRangeAt(0);n.rangeCount&&(o.setStartBefore(e||t),o.setEndBefore(e||t),n.removeAllRanges(),n.addRange(o))}},insertAfterTag(t,e){if(e=e||this.settings.mixMode.insertAfterTag,t&&t.parentNode&&e)return e="string"==typeof e?document.createTextNode(e):e,t.parentNode.insertBefore(e,t.nextSibling),e},editTag(t,e){t=t||this.getLastTag(),e=e||{},this.dropdown.hide.call(this);var n=this.settings;function o(){return t.querySelector(n.classNames.tagTextSelector)}var r=o(),i=this.getNodeIndex(t),c=this.tagData(t),s=this.events.callbacks,u=this,p=!0;if(r){if(!(c instanceof Object&&"editable"in c)||c.editable)return r.setAttribute("contenteditable",!0),t.classList.add(n.classNames.tagEditing),this.tagData(t,{__originalData:a({},c),__originalHTML:t.innerHTML}),r.addEventListener("focus",s.onEditTagFocus.bind(this,t)),r.addEventListener("blur",(function(){setTimeout((()=>s.onEditTagBlur.call(u,o())))})),r.addEventListener("input",s.onEditTagInput.bind(this,r)),r.addEventListener("keydown",(e=>s.onEditTagkeydown.call(this,e,t))),r.focus(),this.setRangeAtStartEnd(!1,r),e.skipValidation||(p=this.editTagToggleValidity(t,c.value)),r.originalIsValid=p,this.trigger("edit:start",{tag:t,index:i,data:c,isValid:p}),this}else console.warn("Cannot find element in Tag template: .",n.classNames.tagTextSelector)},editTagToggleValidity(t,e){var n,o=this.tagData(t);if(o)return n=!(!o.__isValid||1==o.__isValid),t.classList.toggle(this.settings.classNames.tagInvalid,n),o.__isValid;console.warn("tag has no data: ",t,o)},onEditTagDone(t,e){e=e||{};var n={tag:t=t||this.state.editing.scope,index:this.getNodeIndex(t),previousData:this.tagData(t),data:e};this.trigger("edit:beforeUpdate",n,{cloneData:!1}),this.state.editing=!1,delete e.__originalData,delete e.__originalHTML,t&&e[this.settings.tagTextProp]?(this.editTagToggleValidity(t),this.replaceTag(t,e)):t&&this.removeTags(t),this.trigger("edit:updated",n),this.dropdown.hide.call(this),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag(t,e){e&&e.value||(e=t.__tagifyTagData),e.__isValid&&1!=e.__isValid&&a(e,this.getInvalidTagAttrs(e,e.__isValid));var n=this.createTagElem(e);t.parentNode.replaceChild(n,t),this.updateValueByDOMTags()},updateValueByDOMTags(){this.value.length=0,[].forEach.call(this.getTagElms(),(t=>{t.classList.contains(this.settings.classNames.tagNotAllowed.split(" ")[0])||this.value.push(this.tagData(t))})),this.update()},setRangeAtStartEnd(t,e){t="number"==typeof t?t:!!t,e=(e=e||this.DOM.input).lastChild||e;var n=document.getSelection();try{n.rangeCount>=1&&["Start","End"].forEach((o=>n.getRangeAt(0)["set"+o](e,t||e.length)))}catch(t){console.warn("Tagify: ",t)}},injectAtCaret(t,e){if(e=e||this.state.selection.range)return"string"==typeof t&&(t=document.createTextNode(t)),e.deleteContents(),e.insertNode(t),this.setRangeAtStartEnd(!1,t),this.updateValueByDOMTags(),this.update(),this},input:{set(t="",e=!0){var n=this.settings.dropdown.closeOnSelect;this.state.inputText=t,e&&(this.DOM.input.innerHTML=o(""+t)),!t&&n&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},validate(){var t=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!t),t},normalize(t){var e=t||this.DOM.input,n=[];e.childNodes.forEach((t=>3==t.nodeType&&n.push(t.nodeValue))),n=n.join("\n");try{n=n.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(t){}return n=n.replace(/\s/g," "),this.settings.trim&&(n=n.replace(/^\s+/,"")),n},autocomplete:{suggest(t){if(this.settings.autoComplete.enabled){"string"==typeof(t=t||{})&&(t={value:t});var e=t.value?""+t.value:"",n=e.substr(0,this.state.inputText.length).toLowerCase(),o=e.substring(this.state.inputText.length);e&&this.state.inputText&&n==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute("data-suggest",o),this.state.inputSuggestion=t):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion)}},set(t){var e=this.DOM.input.getAttribute("data-suggest"),n=t||(e?this.state.inputText+e:null);return!!n&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+n)):(this.input.set.call(this,n),this.setRangeAtStartEnd()),this.input.autocomplete.suggest.call(this),this.dropdown.hide.call(this),!0)}}},getTagIdx(t){return this.value.findIndex((e=>e.value==(t||{}).value))},getNodeIndex(t){var e=0;if(t)for(;t=t.previousElementSibling;)e++;return e},getTagElms(...t){var e="."+[...this.settings.classNames.tag.split(" "),...t].join(".");return[].slice.call(this.DOM.scope.querySelectorAll(e))},getLastTag(){var t=this.DOM.scope.querySelectorAll(`${this.settings.classNames.tagSelector}:not(.${this.settings.classNames.tagHide}):not([readonly])`);return t[t.length-1]},tagData:(t,e,n)=>t?(e&&(t.__tagifyTagData=n?e:a({},t.__tagifyTagData||{},e)),t.__tagifyTagData):(console.warn("tag elment doesn't exist",t,e),e),isTagDuplicate(e,n){var o=this.settings;return"select"!=o.mode&&this.value.reduce(((r,i)=>t(this.trim(""+e),i.value,n||o.dropdown.caseSensitive)?r+1:r),0)},getTagIndexByValue(e){var n=[];return this.getTagElms().forEach(((o,r)=>{t(this.trim(o.textContent),e,this.settings.dropdown.caseSensitive)&&n.push(r)})),n},getTagElmByValue(t){var e=this.getTagIndexByValue(t)[0];return this.getTagElms()[e]},flashTag(t){t&&(t.classList.add(this.settings.classNames.tagFlash),setTimeout((()=>{t.classList.remove(this.settings.classNames.tagFlash)}),100))},isTagBlacklisted(t){return t=this.trim(t.toLowerCase()),this.settings.blacklist.filter((e=>(""+e).toLowerCase()==t)).length},isTagWhitelisted(t){return!!this.getWhitelistItem(t)},getWhitelistItem(e,n,o){n=n||"value";var r,i=this.settings;return(o=o||i.whitelist).some((o=>{var a="string"==typeof o?o:o[n]||o.value;if(t(a,e,i.dropdown.caseSensitive,i.trim))return r="string"==typeof o?{value:o}:o,!0})),r||"value"!=n||"value"==i.tagTextProp||(r=this.getWhitelistItem(e,i.tagTextProp,o)),r},validateTag(t){var e=this.settings,n="value"in t?"value":e.tagTextProp,o=this.trim(t[n]+"");return(t[n]+"").trim()?e.pattern&&e.pattern instanceof RegExp&&!e.pattern.test(o)?this.TEXTS.pattern:!e.duplicates&&this.isTagDuplicate(o,this.state.editing)?this.TEXTS.duplicate:this.isTagBlacklisted(o)||e.enforceWhitelist&&!this.isTagWhitelisted(o)?this.TEXTS.notAllowed:!e.validate||e.validate(t):this.TEXTS.empty},getInvalidTagAttrs(t,e){return{"aria-invalid":!0,class:`${t.class||""} ${this.settings.classNames.tagNotAllowed}`.trim(),title:e}},hasMaxTags(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly(t){var e=this.settings;document.activeElement.blur(),e.readonly=t,this.DOM.scope[(t?"set":"remove")+"Attribute"]("readonly",!0),"mix"==e.mode&&(this.DOM.input.contentEditable=!t)},normalizeTags(t){var e=this.settings,n=e.whitelist,o=e.delimiters,r=e.mode,i=e.tagTextProp;e.enforceWhitelist;var a=[],c=!!n&&n[0]instanceof Object,s=t instanceof Array,u=t=>(t+"").split(o).filter((t=>t)).map((t=>({[i]:this.trim(t),value:this.trim(t)})));if("number"==typeof t&&(t=t.toString()),"string"==typeof t){if(!t.trim())return[];t=u(t)}else s&&(t=[].concat(...t.map((t=>t.value?t:u(t)))));return c&&(t.forEach((t=>{var e=a.map((t=>t.value)),n=this.dropdown.filterListItems.call(this,t[i],{exact:!0}).filter((t=>!e.includes(t.value))),o=n.length>1?this.getWhitelistItem(t[i],i,n):n[0];o&&o instanceof Object?a.push(o):"mix"!=r&&(null==t.value&&(t.value=t[i]),a.push(t))})),t=a),t},parseMixTags(t){var e=this.settings,n=e.mixTagsInterpolator,o=e.duplicates,r=e.transformTag,i=e.enforceWhitelist,a=e.maxTags,c=e.tagTextProp,s=[];return t=t.split(n[0]).map(((t,e)=>{var u,p,l,d=t.split(n[1]),f=d[0],b=s.length==a;try{if(f==+f)throw Error;p=JSON.parse(f)}catch(t){p=this.normalizeTags(f)[0]||{value:f}}if(b||!(d.length>1)||i&&!this.isTagWhitelisted(p.value)||!o&&this.isTagDuplicate(p.value)){if(t)return e?n[0]+t:t}else r.call(this,p),p[u=p[c]?c:"value"]=this.trim(p[u]),l=this.createTagElem(p),s.push(p),l.classList.add(this.settings.classNames.tagNoAnimation),d[0]=l.outerHTML,this.value.push(p);return d.join("")})).join(""),this.DOM.input.innerHTML=t,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize(),this.getTagElms().forEach(((t,e)=>this.tagData(t,s[e]))),this.update({withoutChangeEvent:!0}),t},replaceTextWithNode(t,e){if(this.state.tag||e){e=e||this.state.tag.prefix+this.state.tag.value;var n,o,r=window.getSelection(),i=r.anchorNode,a=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return i.splitText(r.anchorOffset-a),n=i.nodeValue.lastIndexOf(e),o=i.splitText(n),t&&i.parentNode.replaceChild(t,o),!0}},selectTag(t,e){if(!this.settings.enforceWhitelist||this.isTagWhitelisted(e.value))return this.input.set.call(this,e.value,!0),this.state.actions.selectOption&&setTimeout(this.setRangeAtStartEnd.bind(this)),this.getLastTag()?this.replaceTag(this.getLastTag(),e):this.appendTag(t),this.value[0]=e,this.trigger("add",{tag:t,data:e}),this.update(),[t]},addEmptyTag(t){var e=a({value:""},t||{}),n=this.createTagElem(e);this.tagData(n,e),this.appendTag(n),this.editTag(n,{skipValidation:!0})},addTags(t,e,n=this.settings.skipInvalid){var o=[],r=this.settings;return t&&0!=t.length?(t=this.normalizeTags(t),"mix"==r.mode?this.addMixTags(t):("select"==r.mode&&(e=!1),this.DOM.input.removeAttribute("style"),t.forEach((t=>{var e,i={},c=Object.assign({},t,{value:t.value+""});if((t=Object.assign({},c)).__isValid=this.hasMaxTags()||this.validateTag(t),r.transformTag.call(this,t),!0!==t.__isValid){if(n)return;a(i,this.getInvalidTagAttrs(t,t.__isValid),{__preInvalidData:c}),t.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(t.value))}if(t.readonly&&(i["aria-readonly"]=!0),e=this.createTagElem(a({},t,i)),o.push(e),"select"==r.mode)return this.selectTag(e,t);this.appendTag(e),t.__isValid&&!0===t.__isValid?(this.value.push(t),this.update(),this.trigger("add",{tag:e,index:this.value.length-1,data:t})):(this.trigger("invalid",{data:t,index:this.value.length,tag:e,message:t.__isValid}),r.keepInvalidTags||setTimeout((()=>this.removeTags(e,!0)),1e3)),this.dropdown.position.call(this)})),t.length&&e&&this.input.set.call(this),this.dropdown.refilter.call(this),o)):("select"==r.mode&&this.removeAllTags(),o)},addMixTags(t){if(t[0].prefix||this.state.tag)this.prefixedTextToTag(t[0]);else{"string"==typeof t&&(t=[{value:t}]);var e=!!this.state.selection,n=document.createDocumentFragment();t.forEach((t=>{var e=this.createTagElem(t);n.appendChild(e),this.insertAfterTag(e)})),e?this.injectAtCaret(n):(this.DOM.input.focus(),(e=this.setStateSelection()).range.setStart(this.DOM.input,e.range.endOffset),e.range.setEnd(this.DOM.input,e.range.endOffset),this.DOM.input.appendChild(n),this.updateValueByDOMTags(),this.update())}},prefixedTextToTag(t){var e,n=this.settings,o=this.state.tag.delimiters;if(n.transformTag.call(this,t),t.prefix=t.prefix||this.state.tag?this.state.tag.prefix:(n.pattern.source||n.pattern)[0],e=this.createTagElem(t),this.replaceTextWithNode(e)||this.DOM.input.appendChild(e),setTimeout((()=>e.classList.add(this.settings.classNames.tagNoAnimation)),300),this.value.push(t),this.update(),!o){var r=this.insertAfterTag(e)||e;this.placeCaretAfterNode(r)}return this.state.tag=null,this.trigger("add",a({},{tag:e},{data:t})),e},appendTag(t){var e=this.DOM.scope.lastElementChild;e===this.DOM.input?this.DOM.scope.insertBefore(t,e):this.DOM.scope.appendChild(t)},createTagElem(t){var e,n=a({},t,{value:o(t.value+"")});return function(t){for(var e,n=document.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);e=n.nextNode();)e.textContent.trim()||e.parentNode.removeChild(e)}(e=this.parseTemplate("tag",[n])),this.tagData(e,t),e},reCheckInvalidTags(){var t=this.settings,e=`${t.classNames.tagSelector}${t.classNames.tagNotAllowedSelector}`,n=this.DOM.scope.querySelectorAll(e);[].forEach.call(n,(t=>{var e=this.tagData(t),n=t.getAttribute("title")==this.TEXTS.duplicate,o=!0===this.validateTag(e);n&&o&&(e=e.__preInvalidData?e.__preInvalidData:{value:e.value},this.replaceTag(t,e))}))},removeTags(t,e,n){var o;t=t&&t instanceof HTMLElement?[t]:t instanceof Array?t:t?[t]:[this.getLastTag()],o=t.reduce(((t,e)=>(e&&"string"==typeof e&&(e=this.getTagElmByValue(e)),e&&t.push({node:e,idx:this.getTagIdx(this.tagData(e)),data:this.tagData(e,{__removed:!0})}),t)),[]),n="number"==typeof n?n:this.CSSVars.tagHideTransition,"select"==this.settings.mode&&(n=0,this.input.set.call(this)),1==o.length&&o[0].node.classList.contains(this.settings.classNames.tagNotAllowed)&&(e=!0),o.length&&this.settings.hooks.beforeRemoveTag(o,{tagify:this}).then((()=>{function t(t){t.node.parentNode&&(t.node.parentNode.removeChild(t.node),e?this.settings.keepInvalidTags&&this.trigger("remove",{tag:t.node,index:t.idx}):(this.trigger("remove",{tag:t.node,index:t.idx,data:t.data}),this.dropdown.refilter.call(this),this.dropdown.position.call(this),this.DOM.input.normalize(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()))}n&&n>10&&1==o.length?function(e){e.node.style.width=parseFloat(window.getComputedStyle(e.node).width)+"px",document.body.clientTop,e.node.classList.add(this.settings.classNames.tagHide),setTimeout(t.bind(this),n,e)}.call(this,o[0]):o.forEach(t.bind(this)),e||(o.forEach((t=>{var e=Object.assign({},t.data);delete e.__removed;var n=this.getTagIdx(e);n>-1&&this.value.splice(n,1)})),this.update())})).catch((t=>{}))},removeAllTags(t){t=t||{},this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":Array.prototype.slice.call(this.getTagElms()).forEach((t=>t.parentNode.removeChild(t))),this.dropdown.position.call(this),"select"==this.settings.mode&&this.input.set.call(this),this.update(t)},postUpdate(){var t=this.settings.classNames,e="mix"==this.settings.mode?this.settings.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value:this.value.length;this.toggleClass(t.hasMaxTags,this.value.length>=this.settings.maxTags),this.toggleClass(t.hasNoTags,!this.value.length),this.toggleClass(t.empty,!e)},update(t){var e,n,o=this.DOM.originalInput,r=(t||{}).withoutChangeEvent,i=(e=this.value,n=["__isValid","__removed"],e.map((t=>{var e={};for(var o in t)n.indexOf(o)<0&&(e[o]=t[o]);return e})));this.settings.mixMode.integrated||(o.value="mix"==this.settings.mode?this.getMixedTagsAsString(i):i.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(i):JSON.stringify(i):""),this.postUpdate(),!r&&this.state.loadedOriginalValues&&this.triggerChangeEvent()},getMixedTagsAsString(){var t="",e=this,n=this.settings.mixTagsInterpolator;return function o(r){r.childNodes.forEach((r=>{if(1==r.nodeType){if(r.classList.contains(e.settings.classNames.tag)&&e.tagData(r)){if(e.tagData(r).__removed)return;return void(t+=n[0]+JSON.stringify(r.__tagifyTagData)+n[1])}"BR"!=r.tagName||r.parentNode!=e.DOM.input&&1!=r.parentNode.childNodes.length?"DIV"!=r.tagName&&"P"!=r.tagName||(t+="\r\n",o(r)):t+="\r\n"}else t+=r.textContent}))}(this.DOM.input),t}},b.prototype.removeTag=b.prototype.removeTags,b}()},2505:(t,e,n)=>{t.exports=n(8015)},5592:(t,e,n)=>{"use strict";var o=n(9516),r=n(7522),i=n(3948),a=n(9106),c=n(9615),s=n(2012),u=n(4202),p=n(7763),l=n(6987),d=n(1928);t.exports=function(t){return new Promise((function(e,n){var f,b=t.data,M=t.headers,z=t.responseType;function h(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}o.isFormData(b)&&delete M["Content-Type"];var m=new XMLHttpRequest;if(t.auth){var O=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";M.Authorization="Basic "+btoa(O+":"+g)}var A=c(t.baseURL,t.url);function v(){if(m){var o="getAllResponseHeaders"in m?s(m.getAllResponseHeaders()):null,i={data:z&&"text"!==z&&"json"!==z?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:t,request:m};r((function(t){e(t),h()}),(function(t){n(t),h()}),i),m=null}}if(m.open(t.method.toUpperCase(),a(A,t.params,t.paramsSerializer),!0),m.timeout=t.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(p("Request aborted",t,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(p("Network Error",t,null,m)),m=null},m.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",o=t.transitional||l.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(p(e,t,o.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},o.isStandardBrowserEnv()){var y=(t.withCredentials||u(A))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;y&&(M[t.xsrfHeaderName]=y)}"setRequestHeader"in m&&o.forEach(M,(function(t,e){void 0===b&&"content-type"===e.toLowerCase()?delete M[e]:m.setRequestHeader(e,t)})),o.isUndefined(t.withCredentials)||(m.withCredentials=!!t.withCredentials),z&&"json"!==z&&(m.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&m.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(f=function(t){m&&(n(!t||t&&t.type?new d("canceled"):t),m.abort(),m=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f))),b||(b=null),m.send(b)}))}},8015:(t,e,n)=>{"use strict";var o=n(9516),r=n(9012),i=n(5155),a=n(5343);var c=function t(e){var n=new i(e),c=r(i.prototype.request,n);return o.extend(c,i.prototype,n),o.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n(6987));c.Axios=i,c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.VERSION=n(9641).version,c.all=function(t){return Promise.all(t)},c.spread=n(7980),c.isAxiosError=n(5019),t.exports=c,t.exports.default=c},1928:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},3191:(t,e,n)=>{"use strict";var o=n(1928);function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,o=n._listeners.length;for(e=0;e{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},5155:(t,e,n)=>{"use strict";var o=n(9516),r=n(9106),i=n(3471),a=n(4490),c=n(5343),s=n(4841),u=s.validators;function p(t){this.defaults=t,this.interceptors={request:new i,response:new i}}p.prototype.request=function(t,e){if("string"==typeof t?(e=e||{}).url=t:e=t||{},!e.url)throw new Error("Provided config url is not valid");(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&s.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var o=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));var i,p=[];if(this.interceptors.response.forEach((function(t){p.push(t.fulfilled,t.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(p),i=Promise.resolve(e);l.length;)i=i.then(l.shift(),l.shift());return i}for(var d=e;o.length;){var f=o.shift(),b=o.shift();try{d=f(d)}catch(t){b(t);break}}try{i=a(d)}catch(t){return Promise.reject(t)}for(;p.length;)i=i.then(p.shift(),p.shift());return i},p.prototype.getUri=function(t){if(!t.url)throw new Error("Provided config url is not valid");return t=c(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(t){p.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(t){p.prototype[t]=function(e,n,o){return this.request(c(o||{},{method:t,url:e,data:n}))}})),t.exports=p},3471:(t,e,n)=>{"use strict";var o=n(9516);function r(){this.handlers=[]}r.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},9615:(t,e,n)=>{"use strict";var o=n(9137),r=n(4680);t.exports=function(t,e){return t&&!o(e)?r(t,e):e}},7763:(t,e,n)=>{"use strict";var o=n(5449);t.exports=function(t,e,n,r,i){var a=new Error(t);return o(a,e,n,r,i)}},4490:(t,e,n)=>{"use strict";var o=n(9516),r=n(2881),i=n(3864),a=n(6987),c=n(1928);function s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new c("canceled")}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=r.call(t,t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=r.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=r.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5449:t=>{"use strict";t.exports=function(t,e,n,o,r){return t.config=e,n&&(t.code=n),t.request=o,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},5343:(t,e,n)=>{"use strict";var o=n(9516);t.exports=function(t,e){e=e||{};var n={};function r(t,e){return o.isPlainObject(t)&&o.isPlainObject(e)?o.merge(t,e):o.isPlainObject(e)?o.merge({},e):o.isArray(e)?e.slice():e}function i(n){return o.isUndefined(e[n])?o.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function a(t){if(!o.isUndefined(e[t]))return r(void 0,e[t])}function c(n){return o.isUndefined(e[n])?o.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function s(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return o.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,r=e(t);o.isUndefined(r)&&e!==s||(n[t]=r)})),n}},7522:(t,e,n)=>{"use strict";var o=n(7763);t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(o("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},2881:(t,e,n)=>{"use strict";var o=n(9516),r=n(6987);t.exports=function(t,e,n){var i=this||r;return o.forEach(n,(function(n){t=n.call(i,t,e)})),t}},6987:(t,e,n)=>{"use strict";var o=n(5606),r=n(9516),i=n(7018),a=n(5449),c={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,p={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==o&&"[object process]"===Object.prototype.toString.call(o))&&(u=n(5592)),u),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||p.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){p.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){p.headers[t]=r.merge(c)})),t.exports=p},9641:t=>{t.exports={version:"0.25.0"}},9012:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),o=0;o{"use strict";var o=n(9516);function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,(function(t,e){null!=t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,(function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},4680:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},3948:(t,e,n)=>{"use strict";var o=n(9516);t.exports=o.isStandardBrowserEnv()?{write:function(t,e,n,r,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),o.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),o.isString(r)&&c.push("path="+r),o.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9137:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},5019:(t,e,n)=>{"use strict";var o=n(9516);t.exports=function(t){return o.isObject(t)&&!0===t.isAxiosError}},4202:(t,e,n)=>{"use strict";var o=n(9516);t.exports=o.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var o=t;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=o.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},7018:(t,e,n)=>{"use strict";var o=n(9516);t.exports=function(t,e){o.forEach(t,(function(n,o){o!==e&&o.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[o])}))}},2012:(t,e,n)=>{"use strict";var o=n(9516),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(o.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=o.trim(t.substr(0,i)).toLowerCase(),n=o.trim(t.substr(i+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},7980:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4841:(t,e,n)=>{"use strict";var o=n(9641).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){r[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};r.transitional=function(t,e,n){function r(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,o,a){if(!1===t)throw new Error(r(o," has been removed"+(e?" in "+e:"")));return e&&!i[o]&&(i[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var o=Object.keys(t),r=o.length;r-- >0;){var i=o[r],a=e[i];if(a){var c=t[i],s=void 0===c||a(c,i,t);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:r}},9516:(t,e,n)=>{"use strict";var o=n(9012),r=Object.prototype.toString;function i(t){return Array.isArray(t)}function a(t){return void 0===t}function c(t){return"[object ArrayBuffer]"===r.call(t)}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function p(t){return"[object Function]"===r.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,o=t.length;n{"use strict";n.r(e);n(1292),n(5199),n(6075),n(2598),n(378),n(1627),n(2205),n(5791),n(5775),n(1532),n(2025),n(9638),n(8088),n(3683),n(6912),n(1310),n(5081),n(9204),n(3715),n(3847),n(9311),n(8022),n(7426),n(7828),n(1694),n(2440),n(2073);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n{"use strict";e.byteLength=function(t){var e=c(t),n=e[0],o=e[1];return 3*(n+o)/4-o},e.toByteArray=function(t){var e,n,i=c(t),a=i[0],s=i[1],u=new r(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),p=0,l=s>0?a-4:a;for(n=0;n>16&255,u[p++]=e>>8&255,u[p++]=255&e;2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,u[p++]=255&e);1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,u[p++]=e>>8&255,u[p++]=255&e);return u},e.fromByteArray=function(t){for(var e,o=t.length,r=o%3,i=[],a=16383,c=0,u=o-r;cu?u:c+a));1===r?(e=t[o-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[o-2]<<8)+t[o-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],o[i.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function s(t,e,o){for(var r,i,a=[],c=e;c>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},8287:(t,e,n)=>{"use strict";var o=n(7526),r=n(251),i=n(4634);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function b(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(o)return Y(t).length;e=(""+e).toLowerCase(),o=!0}}function M(t,e,n){var o=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return W(this,e,n);case"ascii":return w(this,e,n);case"latin1":case"binary":return x(this,e,n);case"base64":return _(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function z(t,e,n){var o=t[e];t[e]=t[n],t[n]=o}function h(t,e,n,o,r){if(0===t.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=s.from(e,o)),s.isBuffer(e))return 0===e.length?-1:m(t,e,n,o,r);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,o,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,o,r){var i,a=1,c=t.length,s=e.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(t.length<2||e.length<2)return-1;a=2,c/=2,s/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var p=-1;for(i=n;ic&&(n=c-s),i=n;i>=0;i--){for(var l=!0,d=0;dr&&(o=r):o=r;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a>8,r=n%256,i.push(r),i.push(o);return i}(e,t.length-n),t,n,o)}function _(t,e,n){return 0===e&&n===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,n))}function W(t,e,n){n=Math.min(t.length,n);for(var o=[],r=e;r239?4:u>223?3:u>191?2:1;if(r+l<=n)switch(l){case 1:u<128&&(p=u);break;case 2:128==(192&(i=t[r+1]))&&(s=(31&u)<<6|63&i)>127&&(p=s);break;case 3:i=t[r+1],a=t[r+2],128==(192&i)&&128==(192&a)&&(s=(15&u)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(p=s);break;case 4:i=t[r+1],a=t[r+2],c=t[r+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&s<1114112&&(p=s)}null===p?(p=65533,l=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|1023&p),o.push(p),r+=l}return function(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var n="",o=0;for(;o0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},s.prototype.compare=function(t,e,n,o,r){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),e<0||n>t.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&e>=n)return 0;if(o>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(e>>>=0),c=Math.min(i,a),u=this.slice(o,r),p=t.slice(e,n),l=0;lr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return O(this,t,e,n);case"utf8":case"utf-8":return g(this,t,e,n);case"ascii":return A(this,t,e,n);case"latin1":case"binary":return v(this,t,e,n);case"base64":return y(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function w(t,e,n){var o="";n=Math.min(t.length,n);for(var r=e;ro)&&(n=o);for(var r="",i=e;in)throw new RangeError("Trying to access beyond buffer length")}function S(t,e,n,o,r,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function C(t,e,n,o){e<0&&(e=65535+e+1);for(var r=0,i=Math.min(t.length-n,2);r>>8*(o?r:1-r)}function N(t,e,n,o){e<0&&(e=4294967295+e+1);for(var r=0,i=Math.min(t.length-n,4);r>>8*(o?r:3-r)&255}function B(t,e,n,o,r,i){if(n+o>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,o,i){return i||B(t,0,n,4),r.write(t,e,n,o,23,4),n+4}function E(t,e,n,o,i){return i||B(t,0,n,8),r.write(t,e,n,o,52,8),n+8}s.prototype.slice=function(t,e){var n,o=this.length;if((t=~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),(e=void 0===e?o:~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),e0&&(r*=256);)o+=this[t+--e]*r;return o},s.prototype.readUInt8=function(t,e){return e||k(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||k(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||k(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||k(t,e,this.length);for(var o=this[t],r=1,i=0;++i=(r*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||k(t,e,this.length);for(var o=e,r=1,i=this[t+--o];o>0&&(r*=256);)i+=this[t+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||k(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,o){(t=+t,e|=0,n|=0,o)||S(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+r]=t/i&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e|=0,!o){var r=Math.pow(2,8*n-1);S(this,t,e,n,r-1,-r)}var i=0,a=1,c=0;for(this[e]=255&t;++i=0&&(a*=256);)t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a|0)-c&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return E(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return E(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,o){if(n||(n=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(e-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(t){return o.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,n,o){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}},4783:function(t,e,n){var o,r,i;r="undefined"!=typeof window?window:this,i=function(t){function e(t,e,n,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,n))}var n={};return e(n,"Core/Globals.js",[],(function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},n=e.document,o=e.navigator&&e.navigator.userAgent||"",r=n&&n.createElementNS&&!!n.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i=/(edge|msie|trident)/i.test(o)&&!e.opera,a=-1!==o.indexOf("Firefox"),c=-1!==o.indexOf("Chrome"),s=a&&4>parseInt(o.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.2.2",deg2rad:2*Math.PI/360,doc:n,hasBidiBug:s,hasTouch:!!e.TouchEvent,isMS:i,isWebKit:-1!==o.indexOf("AppleWebKit"),isFirefox:a,isChrome:c,isSafari:!c&&-1!==o.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(o),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:r,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(t,n,o,r){var i=n?"Highcharts error":"Highcharts warning";32===t&&(t=i+": Deprecated member");var a=M(t),c=a?i+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(i=function(){if(n)throw Error(c);u.console&&-1===e.messages.indexOf(c)&&console.log(c)},void 0!==r){var s="";a&&(c+="?"),H(r,(function(t,e){s+="\n - "+e+": "+t,a&&(c+=encodeURI(e)+"="+encodeURI(t))})),c+=s}o?V(o,"displayError",{code:t,message:c,params:r},i):i(),e.messages.push(c)}function n(){var t,e=arguments,n={},r=function(t,e){return"object"!=typeof t&&(t={}),H(e,(function(n,i){!o(n,!0)||b(n)||f(n)?t[i]=e[i]:t[i]=r(t[i]||{},n)})),t};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var i=e.length;for(t=0;tt&&-1/0=n&&(e=[1/n]))),o=0;o=t||!r&&c<=(e[o]+(e[o+1]||e[o]))/2));o++);return B(a*n,-Math.round(Math.log(.001)/Math.LN10))},T=t.stableSort=function(t,e){var n,o,r=t.length;for(o=0;on&&(n=t[e]);return n},C=t.destroyObjectProperties=function(t,e){H(t,(function(n,o){n&&n!==e&&n.destroy&&n.destroy(),delete t[o]}))},N=t.discardElement=function(e){var n=t.garbageBin;n||(n=y("div")),e&&n.appendChild(e),n.innerHTML=""},B=t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},D=t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},E=t.numberFormat=function(e,n,o,r){e=+e||0,n=+n;var a=t.defaultOptions.lang,c=(e.toString().split(".")[1]||"").split("e")[0].length,s=e.toString().split("e");if(-1===n)n=Math.min(c,20);else if(M(n)){if(n&&s[1]&&0>s[1]){var u=n+ +s[1];0<=u?(s[0]=(+s[0]).toExponential(u).split("e")[0],n=u):(s[0]=s[0].split(".")[0]||0,e=20>n?(s[0]*Math.pow(10,s[1])).toFixed(n):0,s[1]=0)}}else n=2;var l=(Math.abs(s[1]?s[0]:e)+Math.pow(10,-Math.max(n,c)-1)).toFixed(n);return u=3<(c=String(p(l))).length?c.length%3:0,o=i(o,a.decimalPoint),r=i(r,a.thousandsSep),e=(0>e?"-":"")+(u?c.substr(0,u)+r:""),e+=c.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+r),n&&(e+=o+l.slice(-n)),s[1]&&0!=+e&&(e+="e"+s[1]),e};Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var P=t.getStyle=function(n,o,r){return"width"===o?(o=Math.min(n.offsetWidth,n.scrollWidth),(r=n.getBoundingClientRect&&n.getBoundingClientRect().width)=o-1&&(o=Math.floor(r)),Math.max(0,o-t.getStyle(n,"padding-left")-t.getStyle(n,"padding-right"))):"height"===o?Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-t.getStyle(n,"padding-top")-t.getStyle(n,"padding-bottom")):(u.getComputedStyle||e(27,!0),(n=u.getComputedStyle(n,void 0))&&(n=n.getPropertyValue(o),i(r,"opacity"!==o)&&(n=p(n))),n)},X=t.inArray=function(t,n,o){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,o)},Y=t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,o=t.length;for(n=0;ne?t>16,(65280&t)>>8,255&t,1]:4===r&&(n=[(3840&t)>>4|(3840&t)>>8,(240&t)>>4|240&t,(15&t)<<4|15&t,1])}if(!n)for(o=this.parsers.length;o--&&!n;){var i=this.parsers[o];(r=i.regex.exec(t))&&(n=i.parse(r))}}this.rgba=n||[]},e.prototype.get=function(t){var e=this.input,r=this.rgba;if(void 0!==this.stops){var i=o(e);i.stops=[].concat(i.stops),this.stops.forEach((function(e,n){i.stops[n]=[i.stops[n][0],e.get(t)]}))}else i=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;return i},e.prototype.brighten=function(t){var e,o=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(e=0;3>e;e++)o[e]+=r(255*t),0>o[e]&&(o[e]=0),255o)for(var r=0;r=a+this.startTime){this.now=this.end,this.pos=1,this.update();var s=c[this.prop]=!0;r(c,(function(t){!0!==t&&(s=!1)})),s&&i&&i.call(o),t=!1}else this.pos=n.easing((e-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},e.prototype.initPath=function(t,e,n){function r(t,e){for(;t.lengtho.width)&&(o={width:0,height:0})}else o=this.htmlGetBBox();if(r.isSVG&&(e=o.width,r=o.height,l&&(o.height=r={"11px,17":14,"13px,20":16}[a&&a.fontSize+","+Math.round(r)]||r),n&&(a=n*c,o.width=Math.abs(r*Math.sin(a))+Math.abs(e*Math.cos(a)),o.height=Math.abs(r*Math.cos(a))+Math.abs(e*Math.sin(a)))),f&&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 o=this.shadows;if(o)for(var r=o.length;r--;)n.call(o[r],"height"===t?Math.max(e-(o[r].cutHeight||0),0):"d"===t?this.d:e,t,o[r])},t.prototype.updateTransform=function(){var t=this.translateX||0,e=this.translateY||0,n=this.scaleX,o=this.scaleY,r=this.inverted,i=this.rotation,a=this.matrix,c=this.element;r&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],m(a)&&t.push("matrix("+a.join(",")+")"),r?t.push("rotate(90) scale(-1,1)"):i&&t.push("rotate("+i+" "+w(this.rotationOriginX,c.getAttribute("x"),0)+" "+w(this.rotationOriginY,c.getAttribute("y")||0)+")"),(m(n)||m(o))&&t.push("scale("+w(n,1)+" "+w(o,1)+")"),t.length&&c.setAttribute("transform",t.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,o=this.parentGroup,r=(o||n).element||n.box,i=this.element,a=!1;n=r===n.box;var c,s=this.added;if(m(t)?(i.setAttribute("data-z-index",t),t=+t,this[e]===t&&(s=!1)):m(this[e])&&i.removeAttribute("data-z-index"),this[e]=t,s){for((t=this.zIndex)&&o&&(o.handleZ=!0),c=(e=r.childNodes).length-1;0<=c&&!a;c--){s=(o=e[c]).getAttribute("data-z-index");var u=!m(s);o!==i&&(0>t&&u&&!n&&!c?(r.insertBefore(i,e[c]),a=!0):(x(s)<=t||u&&(!m(t)||0<=t))&&(r.insertBefore(i,e[c+1]||null),a=!0))}a||(r.insertBefore(i,e[n?3:0]||null),a=!0)}return a},t}(),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},n.SVGElement=t,n.SVGElement})),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])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=e.defined,r=e.extend,i=e.isNumber,a=e.merge,c=e.removeEvent;return function(e){function s(t,n,o,r,i,a,c,u,p,l){var d=e.call(this)||this;if(d.init(t,"g"),d.textStr=n,d.x=o,d.y=r,d.anchorX=a,d.anchorY=c,d.baseline=p,d.className=l,"button"!==l&&d.addClass("highcharts-label"),l&&d.addClass("highcharts-"+l),d.text=t.text("",0,0,u).attr({zIndex:1}),"string"==typeof i){var f=/^url\((.*?)\)$/.test(i);(d.renderer.symbols[i]||f)&&(d.symbolKey=i)}return d.bBox=s.emptyBBox,d.padding=3,d.paddingLeft=0,d.baselineOffset=0,d.needsBox=t.styledMode||f,d.deferredAttr={},d.alignFactor=0,d}return n(s,e),s.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&i(this.xSetting)&&this.attr({x:this.xSetting}))},s.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},s.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},s.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},s.prototype.css=function(e){if(e){var n={};e=a(e),s.textProps.forEach((function(t){void 0!==e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var o="fontSize"in n||"fontWeight"in n;("width"in n||o)&&(this.updateBoxSize(),o&&this.updateTextPadding())}return t.prototype.css.call(this,e)},s.prototype.destroy=function(){c(this.element,"mouseenter"),c(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},s.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},s.prototype.getBBox=function(){var t=this.bBox,e=this.padding;return{width:t.width+2*e,height:t.height+2*e,x:t.x-e,y:t.y-e}},s.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},s.prototype.heightSetter=function(t){this.heightSetting=t},s.prototype.on=function(e,n){var o=this,r=o.text,i=r&&"SPAN"===r.element.tagName?r:void 0;if(i){var a=function(t){("mouseenter"===e||"mouseleave"===e)&&t.relatedTarget instanceof Element&&(o.element.contains(t.relatedTarget)||i.element.contains(t.relatedTarget))||n.call(o.element,t)};i.on(e,a)}return t.prototype.on.call(o,e,a||n),o},s.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:o(t)?t:"",x:this.x,y:this.y}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},s.prototype.paddingSetter=function(t){o(t)&&t!==this.padding&&(this.padding=t,this.updateTextPadding())},s.prototype.paddingLeftSetter=function(t){o(t)&&t!==this.paddingLeft&&(this.paddingLeft=t,this.updateTextPadding())},s.prototype.rSetter=function(t,e){this.boxAttr(e,t)},s.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},s.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},s.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},s.prototype["text-alignSetter"]=function(t){this.textAlign=t},s.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateBoxSize(),this.updateTextPadding()},s.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},n=this.padding,a=this.paddingLeft,c=i(this.widthSetting)&&i(this.heightSetting)&&!this.textAlign||!o(this.text.textStr)?s.emptyBBox:this.text.getBBox();this.width=(this.widthSetting||c.width||0)+2*n+a,this.height=(this.heightSetting||c.height||0)+2*n,this.baselineOffset=n+Math.min(this.renderer.fontMetrics(t&&t.fontSize,this.text).b,c.height||1/0),this.needsBox&&(this.box||((t=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":"")),t.add(this),t=this.getCrispAdjust(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t),e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(r(e,this.deferredAttr)),this.deferredAttr={}),this.bBox=c},s.prototype.updateTextPadding=function(){var t=this.text,e=this.baseline?0:this.baselineOffset,n=this.paddingLeft+this.padding;o(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),this.updateBoxSize()),void 0!==e&&t.attr("y",e)),t.x=n,t.y=e},s.prototype.widthSetter=function(t){this.widthSetting=i(t)?t:void 0},s.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*((this.widthSetting||this.bBox.width)+2*this.padding),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},s.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},s.emptyBBox={width:0,height:0,x:0,y:0},s.textProps="color cursor direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),s}(t)})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Utilities.js"]],(function(t,e,n,o,r){var i=r.addEvent,a=r.attr,c=r.createElement,s=r.css,u=r.defined,p=r.destroyObjectProperties,l=r.extend,d=r.isArray,f=r.isNumber,b=r.isObject,M=r.isString,z=r.merge,h=r.objectEach,m=r.pick,O=r.pInt,g=r.splat,A=r.uniqueKey,v=e.charts,y=e.deg2rad,q=e.doc,_=e.isFirefox,W=e.isMS,L=e.isWebKit;r=e.noop;var w=e.svg,x=e.SVG_NS,R=e.symbolSizes,T=e.win,k=function(){function e(t,e,n,o,r,i,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,o,r,i,a)}return e.prototype.init=function(t,e,n,o,r,c,u){var p,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});u||l.css(this.getStyle(o)),o=l.element,t.appendChild(o),a(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&a(o,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=o,this.boxWrapper=l,this.alignedObjects=[],this.url=(_||L)&&q.getElementsByTagName("base").length?T.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(q.createTextNode("Created with Highcharts 8.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=c,this.forExport=r,this.styledMode=u,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),_&&t.getBoundingClientRect&&((e=function(){s(t,{left:0,top:0}),p=t.getBoundingClientRect(),s(t,{left:Math.ceil(p.left)-p.left+"px",top:Math.ceil(p.top)-p.top+"px"})})(),this.unSubPixelFix=i(T,"resize",e))},e.prototype.definition=function(t){var e=this;return function t(n,o){var r;return g(n).forEach((function(n){var i=e.createElement(n.tagName),a={};h(n,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(a[e]=t)})),i.attr(a),i.add(o||e.defs),n.textContent&&i.element.appendChild(q.createTextNode(n.textContent)),t(n.children||[],i),r=i})),r}(t)},e.prototype.getStyle=function(t){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},e.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),p(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},e.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},e.prototype.truncate=function(t,e,n,o,r,i,a){var c,s,u=this,p=t.rotation,l=o?1:0,d=(n||o).length,f=d,b=[],M=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(q.createTextNode(t))},z=function(i,c){if(void 0===b[c=c||i])if(e.getSubStringLength)try{b[c]=r+e.getSubStringLength(0,o?c+1:c)}catch(t){}else u.getSpanWidth&&(M(a(n||o,i)),b[c]=r+u.getSpanWidth(t,e));return b[c]};t.rotation=0;var h=z(e.textContent.length);if(s=r+h>i){for(;l<=d;)f=Math.ceil((l+d)/2),o&&(c=a(o,f)),h=z(f,c&&c.length-1),l===d?l=d+1:h>i?d=f-1:l=f;0===d?M(""):n&&d===n.length-1||M(c||a(n||o,f))}return o&&o.splice(0,f),t.actualWidth=h,t.rotation=p,s},e.prototype.buildText=function(t){var e,n,o=t.element,r=this,i=r.forExport,c=m(t.textStr,"").toString(),u=-1!==c.indexOf("<"),p=o.childNodes,l=a(o,"x"),d=t.styles,f=t.textWidth,b=d&&d.lineHeight,z=d&&d.textOutline,g=d&&"ellipsis"===d.textOverflow,A=d&&"nowrap"===d.whiteSpace,v=d&&d.fontSize,y=p.length;d=f&&!t.added&&this.box;var _=function(t){var e;return r.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:v||r.style.fontSize||12),b?O(b):r.fontMetrics(e,t.getAttribute("style")?t:o).h},W=function(t,e){return h(r.escapes,(function(n,o){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),o))})),t},L=function(t,e){var n=t.indexOf("<");if(-1!==(n=(t=t.substring(n,t.indexOf(">")-n)).indexOf(e+"="))&&(n=n+e.length+1,'"'===(e=t.charAt(n))||"'"===e))return(t=t.substring(n+1)).substring(0,t.indexOf(e))},R=//g,T=[c,g,A,b,z,v,f].join();if(T!==t.textCache){for(t.textCache=T;y--;)o.removeChild(p[y]);u||z||g||f||-1!==c.indexOf(" ")&&(!A||R.test(c))?(d&&d.appendChild(o),c=(c=u?(c=r.styledMode?c.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''):c.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'')).replace(//g,"").split(R):[c]).filter((function(t){return""!==t})),c.forEach((function(c,u){var p=0,d=0,b=(c=c.replace(/^\s+|\s+$/g,"").replace(//g,"|||")).split("|||");b.forEach((function(c){if(""!==c||1===b.length){var M,z,h={},m=q.createElementNS(r.SVG_NS,"tspan");if((M=L(c,"class"))&&a(m,"class",M),(M=L(c,"style"))&&(M=M.replace(/(;| |^)color([ :])/,"$1fill$2"),a(m,"style",M)),(z=L(c,"href"))&&!i&&-1===z.split(":")[0].toLowerCase().indexOf("javascript")){var O=q.createElementNS(r.SVG_NS,"a");a(O,"href",z),a(m,"class","highcharts-anchor"),O.appendChild(m),r.styledMode||s(m,{cursor:"pointer"})}if(" "!==(c=W(c.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(m.appendChild(q.createTextNode(c)),p?h.dx=0:u&&null!==l&&(h.x=l),a(m,h),o.appendChild(O||m),!p&&n&&(!w&&i&&s(m,{display:"block"}),a(m,"dy",_(m))),f){var y=c.replace(/([^\^])-/g,"$1- ").split(" ");if(h=!A&&(1(t=/px/.test(t)?O(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},e.prototype.rotCorr=function(t,e,n){var o=t;return e&&n&&(o=Math.max(o*Math.cos(e*y),4)),{x:-t/3*Math.sin(e*y),y:o}},e.prototype.pathToSegments=function(t){for(var e=[],n=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r":">","'":"'",'"':"""},k.prototype.symbols={circle:function(t,e,n,o){return this.arc(t+n/2,e+o/2,n/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,n,o){return[["M",t,e],["L",t+n,e],["L",t+n,e+o],["L",t,e+o],["Z"]]},triangle:function(t,e,n,o){return[["M",t+n/2,e],["L",t+n,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,n,o){return[["M",t,e],["L",t+n,e],["L",t+n/2,e+o],["Z"]]},diamond:function(t,e,n,o){return[["M",t+n/2,e],["L",t+n,e+o/2],["L",t+n/2,e+o],["L",t,e+o/2],["Z"]]},arc:function(t,e,n,o,r){var i=[];if(r){var a=r.start||0,c=r.end||0,s=r.r||n;n=r.r||o||n;var p=.001>Math.abs(c-a-2*Math.PI);c-=.001,o=r.innerR,p=m(r.open,p);var l=Math.cos(a),d=Math.sin(a),f=Math.cos(c),b=Math.sin(c);a=m(r.longArc,.001>c-a-Math.PI?0:1),i.push(["M",t+s*l,e+n*d],["A",s,n,0,a,m(r.clockwise,1),t+s*f,e+n*b]),u(o)&&i.push(p?["M",t+o*f,e+o*b]:["L",t+o*f,e+o*b],["A",o,o,0,a,u(r.clockwise)?1-r.clockwise:0,t+o*l,e+o*d]),p||i.push(["Z"])}return i},callout:function(t,e,n,o,r){var i=Math.min(r&&r.r||0,n,o),a=i+6,c=r&&r.anchorX||0;r=r&&r.anchorY||0;var s=[["M",t+i,e],["L",t+n-i,e],["C",t+n,e,t+n,e,t+n,e+i],["L",t+n,e+o-i],["C",t+n,e+o,t+n,e+o,t+n-i,e+o],["L",t+i,e+o],["C",t,e+o,t,e+o,t,e+o-i],["L",t,e+i],["C",t,e,t,e,t+i,e]];return c&&c>n?r>e+a&&rc?r>e+a&&ro&&c>t+a&&cr&&c>t+a&&cthis.oldTextWidth)&&((f=this.textPxLength)||(o(e,{width:"",whiteSpace:d||"nowrap"}),f=e.offsetWidth),f=f>b),f&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(o(e,{width:b+"px",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=b,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,M!==this.cTT&&(d=t.fontMetrics(e.style.fontSize,e).b,!r(l)||l===(this.oldRotation||0)&&u===this.oldAlign||this.setSpanRotation(l,p,d),this.getSpanCorrection(!r(l)&&this.textPxLength||e.offsetWidth,d,p,l,u)),o(e,{left:a+(this.xCorr||0)+"px",top:s+(this.yCorr||0)+"px"}),this.cTT=M,this.oldRotation=l,this.oldAlign=u}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,n){var r={},i=this.renderer.getTransformKey();r[i]=r.transform="rotate("+t+"deg)",r[i+(s?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",o(this.element,r)},getSpanCorrection:function(t,e,n){this.xCorr=-t*n,this.yCorr=-e}}),e})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,o){var r=t.isFirefox,i=t.isMS,a=t.isWebKit,c=t.win,s=o.attr,u=o.createElement,p=o.extend,l=o.pick;return p(n.prototype,{getTransformKey:function(){return i&&!/Edge/.test(c.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":r?"MozTransform":c.opera?"-o-transform":""},html:function(t,n,o){var r=this.createElement("span"),i=r.element,a=r.renderer,c=a.isSVG,d=function(t,n){["opacity","visibility"].forEach((function(o){t[o+"Setter"]=function(r,i,a){var c=t.div?t.div.style:n;e.prototype[o+"Setter"].call(this,r,i,a),c&&(c[i]=r)}})),t.addedSetters=!0};return r.textSetter=function(t){t!==i.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,i.innerHTML=l(t,""),r.doTransform=!0},c&&d(r,r.element.style),r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(t,e){"align"===e?r.alignValue=r.textAlign=t:r[e]=t,r.doTransform=!0},r.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},r.attr({text:t,x:Math.round(n),y:Math.round(o)}).css({position:"absolute"}),a.styledMode||r.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),i.style.whiteSpace="nowrap",r.css=r.htmlCss,c&&(r.add=function(t){var e=a.box.parentNode,n=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function i(e,n){t[n]=e,"translateX"===n?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var a=s(t.element,"class"),c=(o=t.div=t.div||u("div",a?{className:a}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},o||e)).style;p(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return n[0].div&&r.on.apply({element:n[0].div},arguments),t},translateXSetter:i,translateYSetter:i}),t.addedSetters||d(t)}))}}else o=e;return o.appendChild(i),r.added=!0,r.alignOnAdd&&r.htmlUpdateTransform(),r}),r}}),n})),e(n,"Core/Axis/Tick.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.clamp,o=e.correctFloat,r=e.defined,i=e.destroyObjectProperties,a=e.extend,c=e.fireEvent,s=e.isNumber,u=e.merge,p=e.objectEach,l=e.pick,d=t.deg2rad;return e=function(){function t(t,e,n,o,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,c(this,"init"),n||o||this.addLabel()}return t.prototype.addLabel=function(){var t=this,e=t.axis,n=e.options,i=e.chart,c=e.categories,s=e.logarithmic,u=e.names,p=t.pos,d=l(t.options&&t.options.labels,n.labels),f=e.tickPositions,b=p===f[0],M=p===f[f.length-1];u=this.parameters.category||(c?l(c[p],u[p],p):p);var z,h,m=t.label;if(c=(!d.step||1===d.step)&&1===e.tickInterval,f=f.info,e.dateTime&&f)var O=i.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&f.higherRanks[p]||f.unitName]),g=O.main;t.isFirst=b,t.isLast=M,t.formatCtx={axis:e,chart:i,isFirst:b,isLast:M,dateTimeLabelFormat:g,tickPositionInfo:f,value:s?o(s.lin2log(u)):u,pos:p},n=e.labelFormatter.call(t.formatCtx,this.formatCtx),(h=O&&O.list)&&(t.shortenLabel=function(){for(z=0;zu&&o-p*fi&&(c=Math.round((r-o)/Math.cos(u*d))):(r=o+(1-p)*f,o-p*fi&&(M=i-t.x+M*p,z=-1),(M=Math.min(b,M))M||e.autoRotation&&(s.styles||{}).width)&&(c=M)),c&&(this.shortenLabel?this.shortenLabel():(h.width=Math.floor(c)+"px",(n.style||{}).textOverflow||(h.textOverflow="ellipsis"),s.css(h)))},t.prototype.moveLabel=function(t,e){var n=this,o=n.label,r=!1,i=n.axis,a=i.reversed;if(o&&o.textStr===t?(n.movedLabel=o,r=!0,delete n.label):p(i.ticks,(function(e){r||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,r=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!r&&(n.labelPos||o)){var c=n.labelPos||o.xy;o=i.horiz?a?0:i.width+i.left:c.x,i=i.horiz?c.y:a?i.width+i.left:0,n.movedLabel=n.createLabel({x:o,y:i},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},t.prototype.render=function(t,e,n){var o=this.axis,r=o.horiz,i=this.pos,a=l(this.tickmarkOffset,o.tickmarkOffset);a=(i=this.getPosition(r,i,a,e)).x;var s=i.y;o=r&&a===o.pos+o.len||!r&&s===o.pos?-1:1,n=l(n,1),this.isActive=!0,this.renderGridLine(e,n,o),this.renderMark(i,n,o),this.renderLabel(i,e,n,t),this.isNew=!1,c(this,"afterRender")},t.prototype.renderGridLine=function(t,e,n){var o=this.axis,r=o.options,i=this.gridLine,a={},c=this.pos,s=this.type,u=l(this.tickmarkOffset,o.tickmarkOffset),p=o.chart.renderer,d=s?s+"Grid":"grid",f=r[d+"LineWidth"],b=r[d+"LineColor"];r=r[d+"LineDashStyle"],i||(o.chart.styledMode||(a.stroke=b,a["stroke-width"]=f,r&&(a.dashstyle=r)),s||(a.zIndex=1),t&&(e=0),this.gridLine=i=p.path().attr(a).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(o.gridGroup)),i&&(n=o.getPlotLinePath({value:c+u,lineWidth:i.strokeWidth()*n,force:"pass",old:t}))&&i[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},t.prototype.renderMark=function(t,e,n){var o=this.axis,r=o.options,i=o.chart.renderer,a=this.type,c=a?a+"Tick":"tick",s=o.tickSize(c),u=this.mark,p=!u,d=t.x;t=t.y;var f=l(r[c+"Width"],!a&&o.isXAxis?1:0);r=r[c+"Color"],s&&(o.opposite&&(s[0]=-s[0]),p&&(this.mark=u=i.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(o.axisGroup),o.chart.styledMode||u.attr({stroke:r,"stroke-width":f})),u[p?"attr":"animate"]({d:this.getMarkPath(d,t,s[0],u.strokeWidth()*n,o.horiz,i),opacity:e}))},t.prototype.renderLabel=function(t,e,n,o){var r=this.axis,i=r.horiz,a=r.options,c=this.label,u=a.labels,p=u.step;r=l(this.tickmarkOffset,r.tickmarkOffset);var d=!0,f=t.x;t=t.y,c&&s(f)&&(c.xy=t=this.getLabelPosition(f,t,c,i,u,r,o,p),this.isFirst&&!this.isLast&&!l(a.showFirstLabel,1)||this.isLast&&!this.isFirst&&!l(a.showLastLabel,1)?d=!1:!i||u.step||u.rotation||e||0===n||this.handleOverflow(t),p&&o%p&&(d=!1),d&&s(t.y)?(t.opacity=n,c[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(c.attr("y",-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var o=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:o,y:n,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t.Tick=e,t.Tick})),e(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.defined,o=e.error,r=e.extend,i=e.isObject,a=e.merge,c=e.objectEach,s=e.pad,u=e.pick,p=e.splat,l=e.timeUnits,d=t.win;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=d.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var n=e.getTime(),o=n-this.getTimezoneOffset(e);return e.setTime(o),t=e["getUTC"+t](),e.setTime(n),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t)return e["setUTC"+t](n);var o=this.getTimezoneOffset(e);return o=e.getTime()-o,e.setTime(o),e["setUTC"+t](n),t=this.getTimezoneOffset(e),o=e.getTime()+t,e.setTime(o)}return this.useUTC?e["setUTC"+t](n):e["set"+t](n)},e.prototype.update=function(t){var e=u(t&&t.useUTC,!0);this.options=t=a(!0,this.options||{},t),this.Date=t.Date||d.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,n,o,r,i,a){if(this.useUTC){var c=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(c);c+=s;var p=this.getTimezoneOffset(c);s!==p?c+=p-s:s-36e5!==this.getTimezoneOffset(c-36e5)||t.isSafari||(c-=36e5)}else c=new this.Date(e,n,u(o,1),u(r,0),u(i,0),u(a,0)).getTime();return c},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,n=e.moment||d.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(n)return function(t){return 6e4*-n.tz(t,e.timezone).utcOffset()};o(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,o,i){var a;if(!n(o)||isNaN(o))return(null===(a=t.defaultOptions.lang)||void 0===a?void 0:a.invalidDate)||"";e=u(e,"%Y-%m-%d %H:%M:%S");var p=this;a=new this.Date(o);var l=this.get("Hours",a),d=this.get("Day",a),f=this.get("Date",a),b=this.get("Month",a),M=this.get("FullYear",a),z=t.defaultOptions.lang,h=null==z?void 0:z.weekdays,m=null==z?void 0:z.shortWeekdays;return a=r({a:m?m[d]:h[d].substr(0,3),A:h[d],d:s(f),e:s(f,2," "),w:d,b:z.shortMonths[b],B:z.months[b],m:s(b+1),o:b+1,y:M.toString().substr(2,2),Y:M,H:s(l),k:l,I:s(l%12||12),l:l%12||12,M:s(this.get("Minutes",a)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:s(a.getSeconds()),L:s(Math.floor(o%1e3),3)},t.dateFormats),c(a,(function(t,n){for(;-1!==e.indexOf("%"+n);)e=e.replace("%"+n,"function"==typeof t?t.call(p,o):t)})),i?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return i(t,!0)?t:{main:(t=p(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,o,i){var a,c=this,s=[],p={},d=new c.Date(e),f=t.unitRange,b=t.count||1;if(i=u(i,1),n(e)){if(c.set("Milliseconds",d,f>=l.second?0:b*Math.floor(c.get("Milliseconds",d)/b)),f>=l.second&&c.set("Seconds",d,f>=l.minute?0:b*Math.floor(c.get("Seconds",d)/b)),f>=l.minute&&c.set("Minutes",d,f>=l.hour?0:b*Math.floor(c.get("Minutes",d)/b)),f>=l.hour&&c.set("Hours",d,f>=l.day?0:b*Math.floor(c.get("Hours",d)/b)),f>=l.day&&c.set("Date",d,f>=l.month?1:Math.max(1,b*Math.floor(c.get("Date",d)/b))),f>=l.month){c.set("Month",d,f>=l.year?0:b*Math.floor(c.get("Month",d)/b));var M=c.get("FullYear",d)}f>=l.year&&c.set("FullYear",d,M-M%b),f===l.week&&(M=c.get("Day",d),c.set("Date",d,c.get("Date",d)-M+i+(M4*l.month||c.getTimezoneOffset(e)!==c.getTimezoneOffset(o)),e=d.getTime(),d=1;es.length&&s.forEach((function(t){0==t%18e5&&"000000000"===c.dateFormat("%H%M%S%L",t)&&(p[t]="day")}))}return s.info=r(t,{higherRanks:p,totalRange:f*b}),s},e}(),t.Time=e,t.Time})),e(n,"Core/Options.js",[n["Core/Globals.js"],n["Core/Color/Color.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,o){var r=t.isTouchDevice,i=t.svg;return e=e.parse,o=o.merge,t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),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:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},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,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:i,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:"",padding:8,snap:r?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},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"}},t.time=new n(o(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,n,o){return t.time.dateFormat(e,n,o)},{dateFormat:t.dateFormat,defaultOptions:t.defaultOptions,time:t.time}})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"],n["Core/Options.js"]],(function(t,e,n,o,r,i){var a=t.animObject,c=r.addEvent,s=r.arrayMax,u=r.arrayMin,p=r.clamp,l=r.correctFloat,d=r.defined,f=r.destroyObjectProperties,b=r.error,M=r.extend,z=r.fireEvent,h=r.format,m=r.getMagnitude,O=r.isArray,g=r.isFunction,A=r.isNumber,v=r.isString,y=r.merge,q=r.normalizeTickInterval,_=r.objectEach,W=r.pick,L=r.relativeLength,w=r.removeEvent,x=r.splat,R=r.syncTimeout,T=i.defaultOptions,k=n.deg2rad;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.oldMin=this.oldMax=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.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,o=this;o.chart=t,o.horiz=t.inverted&&!o.isZAxis?!n:n,o.isXAxis=n,o.coll=o.coll||(n?"xAxis":"yAxis"),z(this,"init",{userOptions:e}),o.opposite=e.opposite,o.side=e.side||(o.horiz?o.opposite?0:2:o.opposite?1:3),o.setOptions(e);var r=this.options,i=r.type;o.labelFormatter=r.labels.formatter||o.defaultLabelFormatter,o.userOptions=e,o.minPixelPadding=0,o.reversed=r.reversed,o.visible=!1!==r.visible,o.zoomEnabled=!1!==r.zoomEnabled,o.hasNames="category"===i||!0===r.categories,o.categories=r.categories||o.hasNames,o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.positiveValuesOnly=!!o.logarithmic,o.isLinked=d(r.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len=0,o.minRange=o.userMinRange=r.minRange||r.maxZoom,o.range=r.range,o.offset=r.offset||0,o.max=null,o.min=null,o.crosshair=W(r.crosshair,x(t.options.tooltip.crosshairs)[n?0:1],!1),e=o.options.events,-1===t.axes.indexOf(o)&&(n?t.axes.splice(t.xAxis.length,0,o):t.axes.push(o),t[o.coll].push(o)),o.series=o.series||[],t.inverted&&!o.isZAxis&&n&&void 0===o.reversed&&(o.reversed=!0),o.labelRotation=o.options.labels.rotation,_(e,(function(t,e){g(t)&&c(o,e,t)})),z(this,"afterInit")},t.prototype.setOptions=function(e){this.options=y(t.defaultOptions,"yAxis"===this.coll&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],y(T[this.coll],e)),z(this,"afterSetOptions",{userOptions:e})},t.prototype.defaultLabelFormatter=function(){var t=this.axis,e=A(this.value)?this.value:NaN,n=t.chart.time,o=t.categories,r=this.dateTimeLabelFormat,i=T.lang,a=i.numericSymbols;i=i.numericSymbolMagnitude||1e3;var c=a&&a.length,s=t.options.labels.format;t=t.logarithmic?Math.abs(e):t.tickInterval;var u=this.chart,p=u.numberFormatter;if(s)var l=h(s,this,u);else if(o)l=""+this.value;else if(r)l=n.dateFormat(r,e);else if(c&&1e3<=t)for(;c--&&void 0===l;)t>=(n=Math.pow(i,c+1))&&0==10*e%n&&null!==a[c]&&0!==e&&(l=p(e/n,-1)+a[c]);return void 0===l&&(l=1e4<=Math.abs(e)?p(e,-1):p(e,-1,void 0,"")),l},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;z(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(o){if(o.visible||!n.options.chart.ignoreHiddenSeries){var r=o.options,i=r.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=i&&(i=null),e.isXAxis){if((r=o.xData).length){r=e.logarithmic?r.filter(e.validatePositiveValue):r;var a=(t=o.getXExtremes(r)).min,c=t.max;A(a)||a instanceof Date||(r=r.filter(A),a=(t=o.getXExtremes(r)).min,c=t.max),r.length&&(e.dataMin=Math.min(W(e.dataMin,a),a),e.dataMax=Math.max(W(e.dataMax,c),c))}}else o=o.applyExtremes(),A(o.dataMin)&&(a=o.dataMin,e.dataMin=Math.min(W(e.dataMin,a),a)),A(o.dataMax)&&(c=o.dataMax,e.dataMax=Math.max(W(e.dataMax,c),c)),d(i)&&(e.threshold=i),(!r.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),z(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,o,r,i){var a=this.linkedParent||this,c=1,s=0,u=o?a.oldTransA:a.transA;o=o?a.oldMin:a.min;var p=a.minPixelPadding;return r=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&r)&&a.lin2val,u||(u=a.transA),n&&(c*=-1,s=a.len),a.reversed&&(s-=(c*=-1)*(a.sector||a.len)),e?(t=(t*c+s-p)/u+o,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=A(o)?c*(t-o)*u+s+c*p+(A(i)?u*i: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"!==h&&tn)&&(h?t=p(t,e,n):a=!0),t}var n,o,r,i,a,c=this,s=c.chart,u=c.left,l=c.top,d=t.old,f=t.value,b=t.translatedValue,M=t.lineWidth,h=t.force,m=d&&s.oldChartHeight||s.chartHeight,O=d&&s.oldChartWidth||s.chartWidth,g=c.transB;return t={value:f,lineWidth:M,old:d,force:h,acrossPanes:t.acrossPanes,translatedValue:b},z(this,"getPlotLinePath",t,(function(t){b=W(b,c.translate(f,null,null,d)),b=p(b,-1e5,1e5),n=r=Math.round(b+g),o=i=Math.round(m-b-g),A(b)?c.horiz?(o=l,i=m-c.bottom,n=r=e(n,u,u+c.width)):(n=u,r=O-c.right,o=i=e(o,l,l+c.height)):(a=!0,h=!1),t.path=a&&!h?null:s.renderer.crispLine([["M",n,o],["L",r,i]],M||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var o=l(Math.floor(e/t)*t);n=l(Math.ceil(n/t)*t);var r,i=[];if(l(o+t)===o&&(r=20),this.single)return[e];for(e=o;e<=n&&(i.push(e),(e=l(e+t,r))!==a);)var a=e;return i},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?W(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,o=[],r=this.pointRangePadding||0,i=this.min-r,a=(r=this.max+r)-i;if(a&&a/n=this.minRange,l=this.minRange,f=(l-a+i)/2;f=[i-f,W(r.min,i-f)],p&&(f[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(i=s(f))+l,W(r.max,i+l)],p&&(a[2]=c?c.log2lin(this.dataMax):this.dataMax),(a=u(a))-i=M)v=M,s=0;else if(e.dataMax<=M){var y=M;c=0}e.min=W(O,v,e.dataMin),e.max=W(g,y,e.dataMax)}o&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,W(e.dataMin,e.min))&&b(10,1,n),e.min=l(o.log2lin(e.min),16),e.max=l(o.log2lin(e.max),16)),e.range&&d(e.max)&&(e.userMin=e.min=O=Math.max(e.dataMin,e.minFromRange()),e.userMax=g=e.max,e.range=null),z(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(f||e.axisPointRange||e.stacking&&e.stacking.usePercentage||a)&&d(e.min)&&d(e.max)&&(n=e.max-e.min)&&(!d(O)&&s&&(e.min-=n*s),!d(g)&&c&&(e.max+=n*c)),A(e.userMin)||(A(r.softMin)&&r.softMine.max&&(e.max=g=r.softMax),A(r.ceiling)&&(e.max=Math.min(e.max,r.ceiling))),h&&d(e.dataMin)&&(M=M||0,!d(O)&&e.min=M?e.min=e.options.minRange?Math.min(M,e.max-e.minRange):M:!d(g)&&e.max>M&&e.dataMax<=M&&(e.max=e.options.minRange?Math.max(M,e.min+e.minRange):M)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:a&&!u&&p===e.linkedParent.options.tickPixelInterval?u=e.linkedParent.tickInterval:W(u,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,f?1:(e.max-e.min)*p/Math.max(e.len,p)),i&&!t&&e.series.forEach((function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)})),e.setAxisTranslation(!0),z(this,"initialAxisTranslation"),e.pointRange&&!u&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=W(r.minTickInterval,e.dateTime&&!e.series.some((function(t){return t.noSharedTooltip}))?e.closestPointRange:0),!u&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),o=t.tickPositioner,r=this.hasVerticalPanning(),i="colorAxis"===this.coll,a=(i||!r)&&t.startOnTick;r=(i||!r)&&t.endOnTick,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&&d(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,o&&(o=o.apply(this,[this.min,this.max])))&&(this.tickPositions=n=o),this.paddedTicks=n.slice(0),this.trimTicks(n,a,r),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||o||this.adjustTickAmount()),z(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var o=t[0],r=t[t.length-1],i=!this.isOrdinal&&this.minPointOffset||0;if(z(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==o)this.min=o;else for(;this.min-i>t[0];)t.shift();if(n)this.max=r;else for(;this.max+ie&&(this.finalTickAmt=e,e=5),this.tickAmount=e},t.prototype.adjustTickAmount=function(){var t,e=this.options,n=this.tickInterval,o=this.tickPositions,r=this.tickAmount,i=this.finalTickAmt,a=o&&o.length,c=W(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(ar&&(this.tickInterval*=2,this.setTickPositions());if(d(i)){for(n=e=o.length;n--;)(3===i&&1==n%2||2>=i&&0c&&(e=c)),d(r)&&(ic&&(i=c))),n.displayBtn=void 0!==e||void 0!==i,n.setExtremes(e,i,!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],o=this.horiz,r=this.width=Math.round(L(W(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),i=this.height=Math.round(L(W(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(L(W(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(L(W(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-i-a,this.right=t.chartWidth-r-e,this.len=Math.max(o?r:i,0),this.pos=o?e:a},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?l(t.lin2log(this.min)):this.min,max:t?l(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=e["tick"===t?"tickLength":"minorTickLength"],o=W(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(o&&n){"inside"===e[t+"Position"]&&(n=-n);var r=[n,o]}return z(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&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n,o=this.options.labels,r=this.horiz,i=this.tickInterval,a=i,c=this.len/(((this.categories?1:0)+this.max-this.min)/i),s=o.rotation,u=this.labelMetrics(),p=Number.MAX_VALUE,f=this.max-this.min,b=function(t){var e=t/(c||1);return(e=1f&&1/0!==t&&1/0!==c&&f&&(e=Math.ceil(f/i)),l(e*i)};return r?(n=!o.staggerLines&&!o.step&&(d(s)?[s]:c=n){var o=(e=b(Math.abs(u.h/Math.sin(k*n))))+Math.abs(n/360);o(r.step||0))return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!o){if(void 0!==(t=null===(e=null==r?void 0:r.style)||void 0===e?void 0:e.width))return parseInt(t,10);if(a)return a-n.spacing[3]}return.33*n.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,o=this.ticks,r=this.options.labels,i=r&&r.style||{},a=this.horiz,c=this.getSlotWidth(),s=Math.max(1,Math.round(c-2*(r.padding||5))),u={},p=this.labelMetrics(),l=r.style&&r.style.textOverflow,d=0;if(v(r.rotation)||(u.rotation=r.rotation||0),n.forEach((function(t){(t=o[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>d&&(d=t.label.textPxLength)})),this.maxLabelLength=d,this.autoRotation)d>s&&d>p.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(c){var f=s;if(!l){var b="clip";for(s=n.length;!a&&s--;){var M=n[s];(M=o[M].label)&&(M.styles&&"ellipsis"===M.styles.textOverflow?M.css({textOverflow:"clip"}):M.textPxLength>c&&M.css({width:c+"px"}),M.getBBox().height>this.len/n.length-(p.h-p.f)&&(M.specificTextOverflow="ellipsis"))}}}u.rotation&&(f=d>.5*t.chartHeight?.33*t.chartHeight:d,l||(b="ellipsis")),(this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation))&&(u.align=this.labelAlign),n.forEach((function(t){var e=(t=o[t])&&t.label,n=i.width,r={};e&&(e.attr(u),t.shortenLabel?t.shortenLabel():f&&!n&&"nowrap"!==i.whiteSpace&&(f=this.min&&t<=this.max||null!==(n=this.grid)&&void 0!==n&&n.isColumn)&&(i[t]||(i[t]=new o(this,t)),a&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))},t.prototype.render=function(){var t,e,r=this,i=r.chart,c=r.logarithmic,s=r.options,u=r.isLinked,p=r.tickPositions,l=r.axisTitle,d=r.ticks,f=r.minorTicks,b=r.alternateBands,M=s.stackLabels,h=s.alternateGridColor,m=r.tickmarkOffset,O=r.axisLine,g=r.showAxis,v=a(i.renderer.globalAnimation);r.labelEdge.length=0,r.overlap=!1,[d,f,b].forEach((function(t){_(t,(function(t){t.isActive=!1}))})),(r.hasData()||u)&&(r.minorTickInterval&&!r.categories&&r.getMinorTickPositions().forEach((function(t){r.renderMinorTick(t)})),p.length&&(p.forEach((function(t,e){r.renderTick(t,e)})),m&&(0===r.min||r.single)&&(d[-1]||(d[-1]=new o(r,-1,null,!0)),d[-1].render(-1))),h&&p.forEach((function(o,a){e=void 0!==p[a+1]?p[a+1]+m:r.max-m,0==a%2&&oe&&(!a||M<=n)&&void 0!==M&&p.push(M),M>n&&(d=!0);var M=b}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?c.getMinorTickInterval():u.tickInterval,t=i("auto"===t?null:t,this.minorAutoInterval,u.tickPixelInterval/(a?5:1)*(n-e)/((a?s/c.tickPositions.length:s)||1)),t=r(t,void 0,o(t)),p=c.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this.minorAutoInterval=t/5);return a||(c.tickInterval=t),p},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic");var e=t.prototype,o=a.prototype;e.log2lin=o.log2lin,e.lin2log=o.lin2log,n(t,"init",(function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:(e||(e=this.logarithmic=new a(this)),this.log2lin!==e.log2lin&&(e.log2lin=this.log2lin.bind(this)),this.lin2log!==e.lin2log&&(e.lin2log=this.lin2log.bind(this)))})),n(t,"afterInit",(function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}))},t}(),e.compose(t),e})),e(n,"Core/Axis/PlotLineOrBand.js",[n["Core/Axis/Axis.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var o=n.arrayMax,r=n.arrayMin,i=n.defined,a=n.destroyObjectProperties,c=n.erase,s=n.extend,u=n.merge,p=n.objectEach,l=n.pick;return n=function(){function t(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return t.prototype.render=function(){e.fireEvent(this,"render");var t=this,n=t.axis,o=n.horiz,r=n.logarithmic,a=t.options,c=a.label,s=t.label,d=a.to,f=a.from,b=a.value,M=i(f)&&i(d),z=i(b),h=t.svgElem,m=!h,O=[],g=a.color,A=l(a.zIndex,0),v=a.events;O={class:"highcharts-plot-"+(M?"band ":"line ")+(a.className||"")};var y={},q=n.chart.renderer,_=M?"bands":"lines";if(r&&(f=r.log2lin(f),d=r.log2lin(d),b=r.log2lin(b)),n.chart.styledMode||(z?(O.stroke=g||"#999999",O["stroke-width"]=l(a.width,1),a.dashStyle&&(O.dashstyle=a.dashStyle)):M&&(O.fill=g||"#e6ebf5",a.borderWidth&&(O.stroke=a.borderColor,O["stroke-width"]=a.borderWidth))),y.zIndex=A,_+="-"+A,(r=n.plotLinesAndBandsGroups[_])||(n.plotLinesAndBandsGroups[_]=r=q.g("plot-"+_).attr(y).add()),m&&(t.svgElem=h=q.path().attr(O).add(r)),z)O=n.getPlotLinePath({value:b,lineWidth:h.strokeWidth(),acrossPanes:a.acrossPanes});else{if(!M)return;O=n.getPlotBandPath(f,d,a)}return!t.eventsAdded&&v&&(p(v,(function(e,n){h.on(n,(function(e){v[n].apply(t,[e])}))})),t.eventsAdded=!0),(m||!h.d)&&O&&O.length?h.attr({d:O}):h&&(O?(h.show(!0),h.animate({d:O})):h.d&&(h.hide(),s&&(t.label=s=s.destroy()))),c&&(i(c.text)||i(c.formatter))&&O&&O.length&&0this.max&&e>this.max,n&&o){if(t){var c=n.toString()===o.toString();a=0}for(t=0;tt){s=c;break}if(a[s]&&i.substr(a[s])!=="01-01 00:00:00.000".substr(a[s]))break;"week"!==s&&(c=s)}if(s)var u=r.resolveDTLFormat(o[s]).main;return u},h.prototype.getLabel=function(){var e,n,o,a=this,c=this.chart.renderer,s=this.chart.styledMode,u=this.options,p="tooltip"+(i(u.className)?" "+u.className:""),l=(null===(e=u.style)||void 0===e?void 0:e.pointerEvents)||(!this.followPointer&&u.stickOnContact?"auto":"none");if(e=function(){a.inContact=!0},!this.label){if(this.outside&&(this.container=o=t.doc.createElement("div"),o.className="highcharts-tooltip-container",r(o,{position:"absolute",top:"1px",pointerEvents:l,zIndex:3}),t.doc.body.appendChild(o),this.renderer=c=new t.Renderer(o,0,0,null===(n=this.chart.options.chart)||void 0===n?void 0:n.style,void 0,void 0,c.styledMode)),this.split?this.label=c.g(p):(this.label=c.label("",0,0,u.shape||"callout",null,null,u.useHTML,null,p).attr({padding:u.padding,r:u.borderRadius}),s||this.label.attr({fill:u.backgroundColor,"stroke-width":u.borderWidth}).css(u.style).css({pointerEvents:l}).shadow(u.shadow)),s&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),a.outside&&!a.split){var d=this.label,f=d.xSetter,b=d.ySetter;d.xSetter=function(t){f.call(d,a.distance),o.style.left=t+"px"},d.ySetter=function(t){b.call(d,a.distance),o.style.top=t+"px"}}this.label.on("mouseenter",e).on("mouseleave",(function(){var t=a.chart.hoverSeries;a.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()})).attr({zIndex:8}).add()}return this.label},h.prototype.getPosition=function(t,e,o){var r,i=this.chart,a=this.distance,c={},s=i.inverted&&o.h||0,u=this.outside,p=u?n.documentElement.clientWidth-2*a:i.chartWidth,l=u?Math.max(n.body.scrollHeight,n.documentElement.scrollHeight,n.body.offsetHeight,n.documentElement.offsetHeight,n.documentElement.clientHeight):i.chartHeight,d=i.pointer.getChartPosition(),b=i.containerScaling,M=function(t){return b?t*b.scaleX:t},z=function(t){return b?t*b.scaleY:t},h=function(n){var r="x"===n;return[n,r?p:l,r?t:e].concat(u?[r?M(t):z(e),r?d.left-a+M(o.plotX+i.plotLeft):d.top-a+z(o.plotY+i.plotTop),0,r?p:l]:[r?t:e,r?o.plotX+i.plotLeft:o.plotY+i.plotTop,r?i.plotLeft:i.plotTop,r?i.plotLeft+i.plotWidth:i.plotTop+i.plotHeight])},m=h("y"),O=h("x"),g=!this.followPointer&&f(o.ttBelow,!i.inverted==!!o.negative),A=function(t,e,n,o,r,i,u){var p="y"===t?z(a):M(a),l=(n-o)/2,d=ob-s?b:b-s);else{if(!f)return!1;c[t]=Math.max(i,r+s+n>e?r:r+s)}},v=function(t,e,n,o,r){var i;return re-a?i=!1:c[t]=re-o/2?e-o-2:r-n/2,i},y=function(t){var e=m;m=O,O=e,r=t},q=function(){!1!==A.apply(0,m)?!1!==v.apply(0,O)||r||(y(!0),q()):r?c.x=c.y=0:(y(!0),q())};return(i.inverted||1=O+d&&R.pos+m<=O+d+u-h&&(T=R.pos+m);z=o(z,q.left-A,q.right+A),"number"==typeof T?(b=b.height+1,m=y?y.call(i,s,b,a):r(z,T,c,s),t.push({align:y?0:void 0,anchorX:z,anchorY:T,boxWidth:s,point:a,rank:f(m.rank,c?1:0),size:b,target:m.y,tt:e,x:m.x})):e.isActive=!1}return t}),[]),!y&&e.some((function(t){return t.xn[0]?Math.max(Math.abs(n[0]),r.width-n[0]):Math.max(Math.abs(n[0]),r.width),o.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(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},h.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}"')},h.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=e?"footer":"header",o=t.series,r=o.tooltipOptions,i=r.xDateFormat,a=o.xAxis,c=a&&"datetime"===a.options.type&&p(t.key),l=r[n+"Format"];return s(this,"headerFormatter",e={isFooter:e,labelConfig:t},(function(e){c&&!i&&(i=this.getXDateFormat(t,r,a)),c&&i&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+i+"}")})),o.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=u(l,{point:t,series:o},this.chart)})),e.text},h.prototype.update=function(t){this.destroy(),d(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,d(!0,this.options,t))},h.prototype.updatePosition=function(t){var e=this.chart,n=e.pointer,o=this.getLabel(),i=t.plotX+e.plotLeft,a=t.plotY+e.plotTop;if(n=n.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,o.width,o.height,t),this.outside){var c=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(o.width+c,o.height+c,!1),(e=e.containerScaling)&&(r(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),i*=e.scaleX,a*=e.scaleY),i+=n.left-t.x,a+=n.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),i,a)},h}();return t.Tooltip=h,t.Tooltip})),e(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Tooltip.js"],n["Core/Utilities.js"]],(function(t,e,n,o){var r=t.parse,i=e.charts,a=e.noop,c=o.addEvent,s=o.attr,u=o.css,p=o.defined,l=o.extend,d=o.find,f=o.fireEvent,b=o.isNumber,M=o.isObject,z=o.objectEach,h=o.offset,m=o.pick,O=o.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=t,this.hasDragged=!1,this.options=e,this.unbindContainerMouseLeave=function(){},this.unbindContainerMouseEnter=function(){},this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,n=[];(t||[]).forEach((function(t){e=t.series,n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&(n=n.concat(e.linkedSeries)),e.navigatorSeries&&n.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===n.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var t=this;void 0!==t.unDocMouseMove&&t.unDocMouseMove(),this.unbindContainerMouseLeave(),e.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),z(t,(function(e,n){t[n]=void 0}))},t.prototype.drag=function(t){var e=this.chart,n=e.options.chart,o=t.chartX,i=t.chartY,a=this.zoomHor,c=this.zoomVert,s=e.plotLeft,u=e.plotTop,p=e.plotWidth,l=e.plotHeight,d=this.selectionMarker,f=this.mouseDownX||0,b=this.mouseDownY||0,z=M(n.panning)?n.panning&&n.panning.enabled:n.panning,h=n.panKey&&t[n.panKey+"Key"];if((!d||!d.touch)&&(os+p&&(o=s+p),iu+l&&(i=u+l),this.hasDragged=Math.sqrt(Math.pow(f-o,2)+Math.pow(b-i,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=M(t,!0))&&!(r=!M(o,!0))){r=o.distX-t.distX;var i=o.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);r=0<(0!==r&&e?r:0!==i?i:0!==a?a:o.series.index>t.series.index?-1:1)}r&&(o=t)})),o)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,o=n.xAxis;n=n.yAxis;var r=m(t.clientX,t.plotX),i=t.shapeArgs;return o&&n?e?{chartX:o.len+o.pos-r,chartY:n.len+n.pos-t.plotY}:{chartX:r+o.pos,chartY:t.plotY+n.pos}:i&&i.x&&i.y?{chartX:i.x,chartY:i.y}:void 0},t.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=h(this.chart.container))},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,n,o,r,i){var a,c=[];o=!(!o||!t);var s=e&&!e.stickyTracking,u={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:r};return f(this,"beforeGetHoverData",u),s=s?[e]:n.filter((function(t){return u.filter?u.filter(t):t.visible&&!(!r&&t.directTouch)&&m(t.options.enableMouseTracking,!0)&&t.stickyTracking})),e=(a=o||!i?t:this.findNearestKDPoint(s,r,i))&&a.series,a&&(r&&!e.noSharedTooltip?(s=n.filter((function(t){return u.filter?u.filter(t):t.visible&&!(!r&&t.directTouch)&&m(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})),s.forEach((function(t){var e=d(t.points,(function(t){return t.x===a.x&&!t.isNull}));M(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),c.push(e))}))):c.push(a)),f(this,"afterGetHoverData",u={hoverPoint:a}),{hoverPoint:u.hoverPoint,hoverSeries:e,hoverPoints:c}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var n;t;){if(n=s(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},n&&(t.tooltip=new n(t,e.tooltip),this.followTouchMove=m(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var n=t.touches,o=n?n.length?n.item(0):m(n.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),n=o.pageX-e.left,e=o.pageY-e.top,(o=this.chart.containerScaling)&&(n/=o.scaleX,e/=o.scaleY),l(t,{chartX:Math.round(n),chartY:Math.round(e)})},t.prototype.onContainerClick=function(t){var e=this.chart,n=e.hoverPoint;t=this.normalize(t);var o=e.plotLeft,r=e.plotTop;e.cancelClick||(n&&this.inClass(t.target,"highcharts-tracker")?(f(n.series,"click",l(t,{point:n})),e.hoverPoint&&n.firePointEvent("click",t)):(l(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-o,t.chartY-r)&&f(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var n=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||n)&&(this.zoomOption(t),n&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(t){var n=i[m(e.hoverChartIndex,-1)],o=this.chart.tooltip;t=this.normalize(t),n&&(t.relatedTarget||t.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},t.prototype.onDocumentTouchEnd=function(t){i[e.hoverChartIndex]&&i[e.hoverChartIndex].pointer.drop(t)},t.prototype.onContainerTouchMove=function(t){this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.zoomOption(t),this.touch(t,!0)},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,n=this.chartPosition;t=this.normalize(t,n);var o=e.tooltip;!n||o&&o.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(t){var n=i[m(e.hoverChartIndex,-1)];n&&n.pointer.drop(t)},t.prototype.pinch=function(t){var e=this,n=e.chart,o=e.pinchDown,r=t.touches||[],i=r.length,c=e.lastValidTouch,s=e.hasZoom,u=e.selectionMarker,p={},d=1===i&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),f={};1m.max&&(e=m.max-s,q=!0);q?(A-=.8*(A-a[l][0]),"number"==typeof y&&(y-=.8*(y-a[l][1])),n()):a[l]=[A,y],h||(i[l]=u-M,i[b]=s),i=h?1/z:z,r[b]=s,r[l]=e,o[h?t?"scaleY":"scaleX":"scale"+d]=z,o["translate"+d]=i*M+(A-i*g)},t.prototype.reset=function(t,e){var n=this.chart,o=n.hoverSeries,r=n.hoverPoint,i=n.hoverPoints,a=n.tooltip,c=a&&a.shared?i:r;t&&c&&O(c).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?a&&c&&O(c).length&&(a.refresh(c),a.shared&&i?i.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(),i&&i.forEach((function(t){t.setState()})),o&&o.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(t,n){var o=this.chart,r=o.tooltip&&o.tooltip.options.enabled?o.tooltip:void 0,a=!!r&&r.shared,s=n||o.hoverPoint,u=s&&s.series||o.hoverSeries;s=(u=this.getHoverData(s,u,o.series,(!t||"touchmove"!==t.type)&&(!!n||u&&u.directTouch&&this.isDirectTouch),a,t)).hoverPoint;var p=u.hoverPoints;if(n=(u=u.hoverSeries)&&u.tooltipOptions.followPointer,a=a&&u&&!u.noSharedTooltip,s&&(s!==o.hoverPoint||r&&r.isHidden)){if((o.hoverPoints||[]).forEach((function(t){-1===p.indexOf(t)&&t.setState()})),o.hoverSeries!==u&&u.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach((function(t){t.setState("hover")})),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!s.series)return;o.hoverPoints=p,o.hoverPoint=s,s.firePointEvent("mouseOver"),r&&r.refresh(a?p:s,t)}else n&&r&&!r.isHidden&&(s=r.getAnchor([{}],t),r.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=c(o.container.ownerDocument,"mousemove",(function(t){var n=i[e.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(t)}))),o.axes.forEach((function(e){var n,r=m((e.crosshair||{}).snap,!0);r&&((n=o.hoverPoint)&&n.series[e.coll]===e||(n=d(p,(function(t){return t.series[e.coll]===e})))),n||!r?e.drawCrosshair(t,n):e.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n,o=this.chart;o.series.forEach((function(r){n=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(n),r.markerGroup&&(r.markerGroup.attr(n),r.markerGroup.clip(e?o.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(n))})),o.clipRect.attr(e||o.clipBox)},t.prototype.setDOMEvents=function(){var t=this.chart.container,n=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=c(t,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=c(t,"mouseleave",this.onContainerMouseLeave.bind(this)),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=c(n,"mouseup",this.onDocumentMouseUp.bind(this))),e.hasTouch&&(c(t,"touchstart",this.onContainerTouchStart.bind(this)),c(t,"touchmove",this.onContainerTouchMove.bind(this)),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=c(n,"touchend",this.onDocumentTouchEnd.bind(this))))},t.prototype.setHoverChartIndex=function(){var t=this.chart,n=e.charts[m(e.hoverChartIndex,-1)];n&&n!==t&&n.pointer.onContainerMouseLeave({relatedTarget:!0}),n&&n.mouseIsDown||(e.hoverChartIndex=t.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)&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var o=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));m(o,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart,o=n.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(o=m(n.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=o=/y/.test(o),this.zoomHor=t&&!e||o&&e,this.zoomVert=o&&!e||t&&e,this.hasZoom=t||o},t}(),e.Pointer=t})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function o(){var t=[];return t.item=function(t){return this[t]},l(f,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function r(e,n,r,i){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!a[t.hoverChartIndex]||(i(e),(i=a[t.hoverChartIndex].pointer)[n]({type:r,target:e.currentTarget,preventDefault:s,touches:o()}))}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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a=t.charts,c=t.doc,s=t.noop,u=n.addEvent,p=n.css,l=n.objectEach,d=n.removeEvent,f={},b=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,b?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,b?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(c,b?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(d),t.prototype.destroy.call(this)},e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this.hasZoom&&p(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){r(t,"onContainerTouchStart","touchstart",(function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},e.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)}))},e.prototype.onDocumentPointerUp=function(t){r(t,"onDocumentTouchEnd","touchend",(function(t){delete f[t.pointerId]}))},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(u)},e}(e)})),e(n,"Core/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var o=t.animObject,r=t.setAnimation,i=n.addEvent,a=n.css,c=n.defined,s=n.discardElement,u=n.find,p=n.fireEvent,l=n.format,d=n.isNumber,f=n.merge,b=n.pick,M=n.relativeLength,z=n.stableSort,h=n.syncTimeout;t=n.wrap,n=e.isFirefox;var m=e.marginNames,O=e.win,g=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(),i(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=i(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=f(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(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(f(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,b(e,!0)&&n.redraw(),p(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,o=t.legendItem,r=t.legendLine,i=t.legendSymbol,a=this.itemHiddenStyle.color;n=e?n.itemStyle.color:a;var c=e&&t.color||a,s=t.options&&t.options.marker,u={fill:c};o&&o.css({fill:n,color:n}),r&&r.attr({stroke:c}),i&&(s&&i.isMarker&&(u=t.pointAttribs(),e||(u.stroke=u.fill=a)),i.attr(u))}p(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,o=n.symbolPadding,r=!n.rtl,i=t._legendItemPos;n=i[0],i=i[1];var a=t.checkbox,s=t.legendGroup;s&&s.element&&(o={translateX:r?n:this.legendWidth-n-2*o-4,translateY:i},r=function(){p(e,"afterPositionItem",{item:t})},c(s.translateY)?s.animate(o,void 0,r):(s.attr(o),r())),a&&(a.x=n,a.y=i)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&s(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 o=t.translateY;this.allItems.forEach((function(r){var i=r.checkbox;if(i){var c=o+n+i.y+(this.scrollOffset||0)+3;a(i,{left:t.translateX+r.checkboxOffset+i.x-20+"px",top:c+"px",display:this.proximate||c>o-6&&cs?this.maxItemWidth:t.itemWidth,o&&this.itemX-n+e>s&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+i),this.lastLineHeight=0),this.lastItemY=a+this.itemY+i,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=e:(this.itemY+=a+r+i,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-n-(t.checkbox?0:c):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&b(n.showInLegend,!c(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),p(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,o=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(i,a){i.test(r)&&!c(t[a])&&(n[m[a]]=Math.max(n[m[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*o[a%2?"x":"y"]+b(o.margin,12)+e[a]+(n.titleOffset[a]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,n=[],o="left"===this.options.align;this.allItems.forEach((function(e){var r,i=o;if(e.yAxis){e.xAxis.options.reversed&&(i=!i),e.points&&(r=u(i?e.points:e.points.slice(0).reverse(),(function(t){return d(t.plotY)}))),i=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var a=e.yAxis.top-t.plotTop;e.visible?(r=r?r.plotY:e.yAxis.height,r+=a-.3*i):r=a+e.yAxis.height,n.push({target:r,size:i,item:e})}}),this),e.distribute(n,t.plotHeight),n.forEach((function(e){e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.group,o=this.box,r=this.options,i=this.padding;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=M(r.width,t.spacingBox.width-i);var a=t.spacingBox.width-2*i-r.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,n||(this.group=n=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(n),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var c=this.getAllItems();z(c,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),r.reversed&&c.reverse(),this.allItems=c,this.display=a=!!c.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),c=(this.widthOption||this.offsetWidth)+i;var s=this.lastItemY+this.lastLineHeight+this.titleHeight;s=this.handleOverflow(s),s+=i,o||(this.box=o=e.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(n),o.isNew=!0),t.styledMode||o.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow),0i&&!1!==l.enabled?(this.clipHeight=c=Math.max(i-20-this.titleHeight-a,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,h.forEach((function(t,e){var n=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),r=z.length;(!r||n-z[r-1]>c&&(s||n)!==z[r-1])&&(z.push(s||n),r++),t.pageIx=r-1,s&&(h[e-1].pageIx=r-1),e===h.length-1&&n+o-z[r-1]>c&&n!==s&&(z.push(n),t.pageIx=r),n!==s&&(s=n)})),p||(p=e.clipRect=o.clipRect(0,a,9999,0),e.contentGroup.clip(p)),m(c),M||(this.nav=M=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).add(M),O("upTracker").on("click",(function(){e.scroll(-1,d)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),n.styledMode||this.pager.css(l.style),this.pager.add(M),this.down=o.symbol("triangle-down",0,0,f,f).add(M),O("downTracker").on("click",(function(){e.scroll(1,d)}))),e.scroll(0),t=i):M&&(m(),this.nav=M.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,i=this.chart,a=this.pages,c=a.length,s=this.currentPage+t;t=this.clipHeight;var u=this.options.navigation,l=this.pager,d=this.padding;s>c&&(s=c),0=n.value;)n=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=r(this.id)?this.id:z(),this.resolveColor(),t.chart.pointCount++,c(this,"afterInit"),this},t.prototype.optionsToObject=function(e){var n={},o=this.series,r=o.options.keys,i=r||o.pointArrayMap||["y"],a=i.length,c=0,s=0;if(l(e)||null===e)n[i[0]]=e;else if(p(e))for(!r&&e.length>a&&("string"==(o=typeof e[0])?n.name=e[0]:"number"===o&&(n.x=e[0]),c++);s=w(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 w(e,t.length-1)},bindAxes:function(){var t,e=this,n=e.options,o=e.chart;g(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(r){o[r].forEach((function(o){t=o.options,(n[r]===t.index||void 0!==n[r]&&n[r]===t.id||void 0===n[r]&&0===t.index)&&(e.insert(o.series),e[r]=o,o.isDirty=!0)})),e[r]||e.optionalAxis===r||h(18,!0,o)}))})),g(this,"afterBindAxes")},updateParallelArrays:function(t,e){var n=t.series,o=arguments,r=q(e)?function(o){var r="y"===o&&n.toYData?n.toYData(t):t[o];n[o+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(o,2))};n.parallelArrays.forEach(r)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?u-this.cropStart:u),!n&&i[u]&&i[u].touched&&(u=void 0),u},drawLegendSymbol:o.drawLineMarker,updateData:function(t,e){var n,o,r,i=this.options,a=i.dataSorting,c=this.points,s=[],u=this.requireSorting,p=t.length===c.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,e){var o=M(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},l=o.x;o.id||q(l)?(-1===(l=this.findPointIndex(o,r))||void 0===l?s.push(t):c[l]&&t!==i.data[l]?(c[l].update(t,!1,null,!1),c[l].touched=!0,u&&(r=l+1)):c[l]&&(c[l].touched=!0),(!p||e!==l||a&&a.enabled||this.hasDerivedData)&&(n=!0)):s.push(t)}),this),n)for(t=c.length;t--;)(o=c[t])&&!o.touched&&o.remove&&o.remove(!1,e);else!p||a&&a.enabled?d=!1:(t.forEach((function(t,e){c[e].update&&t!==c[e].y&&c[e].update(t,!1,null,!1)})),s.length=0);return c.forEach((function(t){t&&(t.touched=!1)})),!!d&&(s.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=l(this.xData),this.autoIncrement()),!0)},setData:function(t,e,n,o){var r,i=this,a=i.points,c=a&&a.length||0,s=i.options,u=i.chart,p=s.dataSorting,l=null,d=i.xAxis;l=s.turboThreshold;var f,b=this.xData,M=this.yData,z=(r=i.pointArrayMap)&&r.length,m=s.keys,O=0,g=1;if(r=(t=t||[]).length,e=w(e,!0),p&&p.enabled&&(t=this.sortData(t)),!1!==o&&r&&c&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.isSeriesBoosting&&(f=this.updateData(t,n)),!f){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach((function(t){i[t+"Data"].length=0})),l&&r>l)if(l=i.getFirstValidPoint(t),q(l))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,i){r[i]=o(e,n),t[i]&&(r[i].x=t[i].x,r[i].index=i)})),e.setData(r,!1))})),t},getProcessedData:function(t){var e=this.xData,n=this.yData,o=e.length,r=0,i=this.xAxis,a=this.options,c=a.cropThreshold,s=t||this.getExtremesFromAll||a.getExtremesFromAll,u=this.isCartesian;t=i&&i.val2lin,a=!(!i||!i.logarithmic);var p=this.requireSorting;if(i)var l=(i=i.getExtremes()).min,d=i.max;if(u&&this.sorted&&!s&&(!c||o>c||this.forceCrop))if(e[o-1]d)e=[],n=[];else if(this.yData&&(e[0]d)){e=(r=this.cropData(this.xData,this.yData,l,d)).xData,n=r.yData,r=r.start;var f=!0}for(c=e.length||1;--c;)if(0<(o=a?t(e[c])-t(e[c-1]):e[c]-e[c-1])&&(void 0===b||oo&&p&&(h(15,!1,this.chart),p=!1);return{xData:e,yData:n,cropped:f,cropStart:r,closestPointRange:b}},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},cropData:function(t,e,n,o,r){var i,a=t.length,c=0,s=a;for(r=w(r,this.cropShoulder),i=0;i=n){c=Math.max(0,i-r);break}for(n=i;no){s=n+r;break}return{xData:t.slice(c,s),yData:e.slice(c,s),start:c,end:s}},generatePoints:function(){var t,e=this.options,n=e.data,o=this.data,r=this.processedXData,i=this.processedYData,a=this.pointClass,c=r.length,s=this.cropStart||0,u=this.hasGroupedData;e=e.keys;var p,l=[];for(o||u||((o=[]).length=n.length,o=this.data=o),e&&u&&(this.options.keys=!1),p=0;p=s&&(i[n-p]||b)<=u,z&&b)if(z=M.length)for(;z--;)q(M[z])&&(a[c++]=M[z]);else a[c++]=M}return t={dataMin:d(a),dataMax:l(a)},g(this,"afterGetExtremes",{dataExtremes:t}),t},applyExtremes:function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},getFirstValidPoint:function(t){for(var e=null,n=t.length,o=0;null===e&&o=W&&(W=null),A.total=A.stackTotal=R.total,A.percentage=R.total&&A.y/R.total*100,A.stackY=_,this.irregularWidths||R.setOffset(this.pointXOffset||0,this.barW||0)),A.yBottom=M(W)?f(c.translate(W,0,1,0,1),-1e5,1e5):null,p&&(_=this.modifyValue(_,A)),A.plotY="number"==typeof _&&1/0!==_?f(c.translate(_,0,1,0,1),-1e5,1e5):void 0,A.isInside=this.isPointInside(A),A.clientX=d?b(r.translate(y,0,0,0,1,l)):e,A.negative=A[m]<(n[m+"Threshold"]||z||0),A.category=i&&void 0!==i[A.x]?i[A.x]:A.x,!A.isNull&&!1!==A.visible){void 0!==k&&(O=Math.min(O,Math.abs(e-k)));var k=e}A.zone=this.zones.length&&A.getZone(),!A.graphic&&this.group&&a&&(A.isNew=!0)}this.closestPointRangePx=O,g(this,"afterTranslate")},getValidPoints:function(t,e,n){var o=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!o.isInsidePlot(t.plotX,t.plotY,o.inverted))&&!1!==t.visible&&(n||!t.isNull)}))},getClipBox:function(t,e){var n=this.options,o=this.chart,r=o.inverted,i=this.xAxis,a=i&&this.yAxis,c=o.options.chart.scrollablePlotArea||{};return t&&!1===n.clip&&a?t=r?{y:-o.chartWidth+a.len+a.pos,height:o.chartWidth,width:o.chartHeight,x:-o.chartHeight+i.len+i.pos}:{y:-a.pos,height:o.chartHeight,width:o.chartWidth,x:-i.pos}:(t=this.clipBox||o.clipBox,e&&(t.width=o.plotSizeX,t.x=(o.scrollablePixelsX||0)*(c.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,n=this.options,o=e.renderer,r=e.inverted,i=this.clipBox,a=this.getClipBox(t),c=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,a.height,n.xAxis,n.yAxis].join(),s=e[c],u=e[c+"m"];t&&(a.width=0,r&&(a.x=e.plotHeight+(!1!==n.clip?0:e.plotTop))),s?e.hasLoaded||s.attr(a):(t&&(e[c+"m"]=u=o.clipRect(r?e.plotSizeX+99:-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[c]=s=o.clipRect(a),s.count={length:0}),t&&!s.count[this.index]&&(s.count[this.index]=!0,s.count.length+=1),(!1!==n.clip||t)&&(this.group.clip(t||i?s:e.clipRect),this.markerGroup.clip(u),this.sharedClipKey=c),t||(s.count[this.index]&&(delete s.count[this.index],--s.count.length),0===s.count.length&&c&&e[c]&&(i||(e[c]=e[c].destroy()),e[c+"m"]&&(e[c+"m"]=e[c+"m"].destroy())))},animate:function(t){var e=this.chart,n=s(this.options.animation);if(!e.hasRendered)if(t)this.setClip(n);else{var o=this.sharedClipKey;t=e[o];var r=this.getClipBox(n,!0);t&&t.animate(r,n),e[o+"m"]&&e[o+"m"].animate({width:r.width+99,x:r.x-(e.inverted?0:99)},n)}},afterAnimate:function(){this.setClip(),g(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,n=this.points,o=this.chart,r=this.options.marker,i=this[this.specialGroup]||this.markerGroup,a=this.xAxis,c=w(r.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=r.enabledThreshold*r.radius);if(!1!==r.enabled||this._hasPointMarkers)for(t=0;ti&&e.shadow)),c&&(c.startX=n.xMap,c.isArea=n.isArea)}))},getZonesGraphs:function(t){return this.zones.forEach((function(e,n){n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||"")],this.chart.styledMode||n.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(n)}),this),t},applyZones:function(){var t,e,n,o,r,i,a,c,s=this,u=this.chart,p=u.renderer,l=this.zones,d=this.clips||[],b=this.graph,M=this.area,z=Math.max(u.chartWidth,u.chartHeight),h=this[(this.zoneAxis||"y")+"Axis"],m=u.inverted,O=!1;if(l.length&&(b||M)&&h&&void 0!==h.min){var g=h.reversed,A=h.horiz;b&&!this.showLine&&b.hide(),M&&M.hide();var v=h.getExtremes();l.forEach((function(l,y){t=g?A?u.plotWidth:0:A?0:h.toPixels(v.min)||0,t=f(w(e,t),0,z),e=f(Math.round(h.toPixels(w(l.value,v.max),!0)||0),0,z),O&&(t=e=h.toPixels(v.max)),o=Math.abs(t-e),r=Math.min(t,e),i=Math.max(t,e),h.isXAxis?(n={x:m?i:r,y:0,width:o,height:z},A||(n.x=u.plotHeight-n.x)):(n={x:0,y:m?i:r,width:z,height:o},A&&(n.y=u.plotWidth-n.y)),m&&p.isVML&&(n=h.isXAxis?{x:0,y:g?r:i,height:n.width,width:u.chartWidth}:{x:n.y-u.plotLeft-u.spacingBox.x,y:0,width:n.height,height:u.chartHeight}),d[y]?d[y].animate(n):d[y]=p.clipRect(n),a=s["zone-area-"+y],c=s["zone-graph-"+y],b&&c&&c.clip(d[y]),M&&a&&a.clip(d[y]),O=l.value>v.max,s.resetZones&&0===e&&(e=void 0)})),this.clips=d}else s.visible&&(b&&b.show(!0),M&&M.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(o.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,o=n.chart;n.xAxis&&(n.eventsToUnbind.push(p(o,"resize",e)),e(),n.invertGroups=e)},plotGroup:function(t,e,n,o,r){var i=this[t],a=!i;return n={visibility:n,zIndex:o||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),a&&(this[t]=i=this.chart.renderer.g().add(r)),i.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(M(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(i.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),i.attr(n)[a?"attr":"animate"](this.getPlotBox()),i},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}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0):x(this)},render:function(){var t=this,e=t.chart,n=t.options,o=s(n.animation),r=!t.finishedAnimating&&e.renderer.isSVG&&o.duration,i=t.visible?"inherit":"hidden",a=n.zIndex,c=t.hasRendered,u=e.seriesGroup,p=e.inverted;g(this,"render");var l=t.plotGroup("group","series",i,a,u);t.markerGroup=t.plotGroup("markerGroup","markers",i,a,u),r&&t.animate&&t.animate(!0),l.inverted=!(!t.isCartesian&&!t.invertable)&&p,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(p),!1===n.clip||t.sharedClipKey||c||l.clip(e.clipRect),r&&t.animate&&t.animate(),c||(r&&o.defer&&(r+=o.defer),t.animationTimeout=T((function(){t.afterAnimate()}),r||0)),t.isDirty=!1,t.hasRendered=!0,g(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,o=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:w(o&&o.left,t.plotLeft),translateY:w(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var n=this.xAxis,o=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},buildKDTree:function(t){function e(t,o,r){var i;if(i=t&&t.length){var a=n.kdAxisArray[o%r];return t.sort((function(t,e){return t[a]-e[a]})),{point:t[i=Math.floor(i/2)],left:e(t.slice(0,i),o+1,r),right:e(t.slice(i+1),o+1,r)}}}this.buildingKdTree=!0;var n=this,o=-1(p=e[p]-u[p])?"right":"left",n[f=0>p?"left":"right"]&&(l=(f=t(e,n[f],c+1,s))[a]f;)b--;this.updateParallelArrays(d,"splice",b,0,0),this.updateParallelArrays(d,b),s&&d.name&&(s[f]=d.name),p.splice(b,0,t),u&&(this.data.splice(b,0,null),this.processData()),"point"===i.legendType&&this.generatePoints(),n&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(d,"shift"),p.shift())),!1!==r&&A(this,"addPoint",{point:d}),this.isDirtyData=this.isDirty=!0,e&&c.redraw(o)},removePoint:function(t,e,n){var o=this,r=o.data,i=r[t],a=o.points,c=o.chart,s=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),o.options.data.splice(t,1),o.updateParallelArrays(i||{series:o},"splice",t,1),i&&i.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&c.redraw()};l(n,c),e=w(e,!0),i?i.firePointEvent("remove",null,s):s()},remove:function(t,e,n,o){function r(){i.destroy(o),i.remove=null,a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),w(t,!0)&&a.redraw(e)}var i=this,a=i.chart;!1!==n?A(i,"remove",null,r):r()},update:function(t,e){t=r.cleanRecursively(t,this.userOptions),A(this,"update",{options:t});var n,o=this,i=o.chart,a=o.userOptions,c=o.initialType||o.type,s=i.options.plotOptions,u=t.type||a.type||i.options.chart.type,p=!(this.hasDerivedData||u&&u!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||o.hasOptionChanged("dataGrouping")||o.hasOptionChanged("pointStart")||o.hasOptionChanged("pointInterval")||o.hasOptionChanged("pointIntervalUnit")||o.hasOptionChanged("keys")),l=d[c].prototype,f=["eventOptions","navigatorSeries","baseSeries"],b=o.finishedAnimating&&{animation:!1},M={};for(n in p&&(f.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&f.push("area","graph"),o.parallelArrays.forEach((function(t){f.push(t+"Data")})),t.data&&(t.dataSorting&&g(o.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=W(a,b,{index:void 0===a.index?o.index:a.index,pointStart:w(s&&s.series&&s.series.pointStart,a.pointStart,o.xData[0])},!p&&{data:o.options.data},t),p&&t.data&&(t.data=o.options.data),(f=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(f)).forEach((function(t){f[t]=o[t],delete o[t]})),o.remove(!1,null,!1,!0),l)o[n]=void 0;if(d[u||c]?g(o,d[u||c].prototype):O(17,!0,i,{missingModuleFor:u||c}),f.forEach((function(t){o[t]=f[t]})),o.init(i,t),p&&this.points){var z=o.options;!1===z.visible?(M.graphic=1,M.dataLabel=1):o._hasPointLabels||(t=z.marker,a=z.dataLabels,t&&(!1===t.enabled||"symbol"in t)&&(M.graphic=1),a&&!1===a.enabled&&(M.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(M).length&&t.destroyElements(M),!1===z.showInLegend&&t.legendItem&&i.legend.destroyItem(t))}),this)}o.initialType=c,i.linkSeries(),A(this,"afterUpdate"),w(e,!0)&&i.redraw(!!p&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},hasOptionChanged:function(t){var e=this.options[t],n=this.chart.options.plotOptions,o=this.userOptions[t];return o?e!==o:e!==w(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)}}),g(e.prototype,{update:function(t,e){var n=this.chart,o=t&&t.events||{};t=W(this.userOptions,t),n.options[this.coll].indexOf&&(n.options[this.coll][n.options[this.coll].indexOf(this.userOptions)]=t),L(n.options[this.coll].events,(function(t,e){void 0===o[e]&&(o[e]=void 0)})),this.destroy(!0),this.init(n,g(t,{events:o})),n.isDirtyBox=!0,w(e,!0)&&n.redraw()},remove:function(t){for(var e=this.chart,n=this.coll,o=this.series,r=o.length;r--;)o[r]&&o[r].remove(!1);m(e.axes,this),m(e[n],this),v(e.options[n])?e.options[n].splice(this.options.index,1):delete e.options[n],e[n].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,w(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})})),e(n,"Series/AreaSeries.js",[n["Core/Series/Series.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Mixins/LegendSymbol.js"],n["Core/Utilities.js"]],(function(t,e,n,o,r){var i=e.parse,a=r.objectEach,c=r.pick,s=n.Series;t.seriesType("area","line",{threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,n=[],o=[],r=this.xAxis,i=this.yAxis,s=i.stacking.stacks[this.stackKey],u={},p=this.index,l=i.series,d=l.length,f=c(i.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;et&&p>i?l=2*i-(p=Math.max(t,i)):po&&l>i?p=2*i-(l=Math.max(o,i)):l=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;o=t.borderWidth=M(n.borderWidth,o?0:1);var r=t.xAxis,a=t.yAxis,c=n.threshold,s=t.translatedThreshold=a.getThreshold(c),l=M(n.minPointLength,5),d=t.getColumnMetrics(),b=d.width,z=t.barW=Math.max(b,1+2*o),h=t.pointXOffset=d.offset,m=t.dataMin,O=t.dataMax;e.inverted&&(s-=.5),n.pointPadding&&(z=Math.ceil(z)),i.prototype.translate.apply(t),t.points.forEach((function(o){var i=M(o.yBottom,s),g=999+Math.abs(i),A=b,v=o.plotX||0;g=u(o.plotY,-g,a.len+g);var y=v+h,q=z,_=Math.min(g,i),W=Math.max(g,i)-_;if(l&&Math.abs(W)l?i-l:s-(L?l:0)}p(o.options.pointWidth)&&(A=q=Math.ceil(o.options.pointWidth),y-=Math.round((A-b)/2)),n.centerInCategory&&(y=t.adjustForMissingColumns(y,A,o,d)),o.barX=y,o.pointWidth=A,o.tooltipPos=e.inverted?[a.len+a.pos-e.plotLeft-g,r.len+r.pos-e.plotTop-(v||0)-h-q/2,W]:[y+q/2,g+a.pos-e.plotTop,W],o.shapeType=t.pointClass.prototype.shapeType||"rect",o.shapeArgs=t.crispCol.apply(t,o.isNull?[y,s,q,0]:[y,_,q,W])}))},getSymbol:t,drawLegendSymbol:r.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var n=this.options,o=this.pointAttrToOptions||{},r=o.stroke||"borderColor",i=o["stroke-width"]||"borderWidth",a=t&&t.color||this.color,c=t&&t[r]||n[r]||this.color||a,u=t&&t[i]||n[i]||this[i]||0;o=t&&t.options.dashStyle||n.dashStyle;var p=M(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var l=t.getZone();a=t.options.color||l&&(l.color||t.nonZonedColor)||this.color,l&&(c=l.borderColor||c,o=l.dashStyle||o,u=l.borderWidth||u)}return e&&t&&(e=(t=b(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&s(a).brighten(t.brightness).get()||a,c=t[r]||c,u=t[i]||u,o=t.dashStyle||o,p=M(t.opacity,p)),r={fill:a,stroke:c,"stroke-width":u,opacity:p},o&&(r.dashstyle=o),r},drawPoints:function(){var t,e=this,n=this.chart,o=e.options,r=n.renderer,i=o.animationLimit||250;e.points.forEach((function(a){var c=a.graphic,s=!!c,u=c&&n.pointCount
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&o.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,n=this.points.length;e&&this.points.forEach((function(o,r){["x","y"].forEach((function(i,a){var c="plot"+i.toUpperCase();if(e[i]&&!o.isNull){var s=t[i+"Axis"],u=e[i]*s.transA;if(s&&!s.isLog){var p=Math.max(0,o[c]-u);s=Math.min(s.len,o[c]+u),a=1e4*Math.sin(r+a*n),o[c]=p+(s-p)*(a-Math.floor(a)),"x"===i&&(o.clientX=o.plotX)}}}))}))}}),n(o,"afterTranslate",(function(){this.applyJitter&&this.applyJitter()}))})),e(n,"Mixins/CenteredSeries.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.isNumber,o=e.pick,r=e.relativeLength,i=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var e=this.options,n=this.chart,i=2*(e.slicedOffset||0),a=n.plotWidth-2*i,c=n.plotHeight-2*i,s=e.center,u=Math.min(a,c),p=e.size,l=e.innerSize||0;for("string"==typeof p&&(p=parseFloat(p)),"string"==typeof l&&(l=parseFloat(l)),e=[o(s[0],"50%"),o(s[1],"50%"),o(p&&0>p?void 0:e.size,"100%"),o(l&&0>l?void 0:e.innerSize||0,"0%")],!n.angular||this instanceof t.Series||(e[3]=0),s=0;4>s;++s)p=e[s],n=2>s||2===s&&/%$/.test(p),e[s]=r(p,[a,c,u,e[2]][s])+(n?i:0);return e[3]>e[2]&&(e[3]=e[2]),e},getStartAndEndRadians:function(t,e){return t=n(t)?t:0,e=n(e)&&e>t&&360>e-t?e:t+360,{start:i*(t+-90),end:i*(e+-90)}}}})),e(n,"Series/PieSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Series.js"],n["Mixins/CenteredSeries.js"],n["Core/Globals.js"],n["Mixins/LegendSymbol.js"],n["Series/LineSeries.js"],n["Core/Series/Point.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,o,r,i,a,c,s){var u=t.setAnimation,p=n.getStartAndEndRadians;t=o.noop;var l=s.addEvent,d=s.clamp,f=s.defined,b=s.fireEvent,M=s.isNumber,z=s.merge,h=s.pick,m=s.relativeLength;e.seriesType("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:e.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,n=e.points,o=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,r=t.shapeArgs;n&&r&&(n.attr({r:h(t.startR,e.center&&e.center[3]/2),start:o,end:o}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}))},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,n=this.points,o=n.length,r=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?M-=2*Math.PI:M<-Math.PI/2&&(M+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(M)*o),translateY:Math.round(Math.sin(M)*o)};var z=Math.cos(M)*t[2]/2,O=Math.sin(M)*t[2]/2;d.tooltipPos=[t[0]+.7*z,t[1]+.7*O],d.half=M<-Math.PI/2||M>Math.PI/2?1:0,d.angle=M,f=Math.min(r,d.labelDistance/5),d.labelPosition={natural:{x:t[0]+z+Math.cos(M)*d.labelDistance,y:t[1]+O+Math.sin(M)*d.labelDistance},final:{},alignment:0>d.labelDistance?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+z+Math.cos(M)*f,y:t[1]+O+Math.sin(M)*f},touchingSliceAt:{x:t[0]+z,y:t[1]+O}}}}b(this,"afterTranslate")},drawEmpty:function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var o=this.center[0],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,r,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:c.prototype.symbols.arc(o,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())},redrawPoints:function(){var t,e,n,o,r=this,i=r.chart,a=i.renderer,c=r.options.shadow;this.drawEmpty(),!c||r.shadowGroup||i.styledMode||(r.shadowGroup=a.g("shadow").attr({zIndex:-1}).add(r.group)),r.points.forEach((function(s){var u={};if(e=s.graphic,!s.isNull&&e){if(o=s.shapeArgs,t=s.getTranslate(),!i.styledMode){var p=s.shadowGroup;c&&!p&&(p=s.shadowGroup=a.g("shadow").add(r.shadowGroup)),p&&p.attr(t),n=r.pointAttribs(s,s.selected&&"select")}s.delayedRendering?(e.setRadialReference(r.center).attr(o).attr(t),i.styledMode||e.attr(n).attr({"stroke-linejoin":"round"}).shadow(c,p),s.delayedRendering=!1):(e.setRadialReference(r.center),i.styledMode||z(!0,u,n),z(!0,u,o,t),e.animate(u)),e.attr({visibility:s.visible?"inherit":"hidden"}),e.addClass(s.getClassName())}else e&&(s.graphic=e.destroy())}))},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)}))},searchPoint:t,sortByAngle:function(t,e){t.sort((function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e}))},drawLegendSymbol:r.drawRectangle,getCenter:n.getCenter,getSymbol:t,drawGraph:null},{init:function(){a.prototype.init.apply(this,arguments);var t=this;t.name=h(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return l(t,"select",e),l(t,"unselect",e),t},isValid:function(){return M(this.y)&&0<=this.y},setVisible:function(t,e){var n=this,o=n.series,r=o.chart,i=o.options.ignoreHiddenPoint;e=h(e,i),t!==n.visible&&(n.visible=n.options.visible=t=void 0===t?!n.visible:t,o.options.data[o.data.indexOf(n)]=n.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](!0)})),n.legendItem&&r.legend.colorizeItem(n,t),t||"hover"!==n.state||n.setState(""),i&&(o.isDirty=!0),e&&r.redraw())},slice:function(t,e,n){var o=this.series;u(n,o.chart),h(e,!0),this.sliced=this.options.sliced=f(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},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})},connectorShapes:{fixedOffset:function(t,e,n){var o=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-e.x,2*o.y-e.y,o.x,o.y]:["L",o.x,o.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 o=this.series,r=o.center[0],i=o.chart.plotWidth,a=o.chart.plotLeft;o=t.alignment;var c=this.shapeArgs.r;return n=m(n.crookDistance,1),n=["L",i="left"===o?r+c+(i+a-r-c)*(1-n):a+(r-c)*n,t.y],r=!0,("left"===o?i>t.x||ie.x)&&(r=!1),t=[["M",t.x,t.y]],r&&t.push(n),t.push(["L",e.x,e.y]),t}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=e.connectorShape,o=this.connectorShapes;return o[n]&&(n=o[n]),n.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})})),e(n,"Core/Series/DataLabels.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Series/CartesianSeries.js"],n["Core/Utilities.js"]],(function(t,e,n,o){var r=t.getDeferredAnimation;t=e.noop;var i=e.seriesTypes,a=o.arrayMax,c=o.clamp,s=o.defined,u=o.extend,p=o.fireEvent,l=o.format,d=o.isArray,f=o.merge,b=o.objectEach,M=o.pick,z=o.relativeLength,h=o.splat,m=o.stableSort;e.distribute=function(t,n,o){function r(t,e){return t.target-e.target}var i,a=!0,s=t,u=[],p=0,l=s.reducedLen||n;for(i=t.length;i--;)p+=t[i].size;if(p>l){for(m(t,(function(t,e){return(e.rank||0)-(t.rank||0)})),p=i=0;p<=l;)p+=t[i].size,i++;u=t.splice(i-1,t.length)}for(m(t,r),t=t.map((function(t){return{size:t.size,targets:[t.target],align:M(t.align,.5)}}));a;){for(i=t.length;i--;)a=t[i],p=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=c(p-a.size*a.align,0,n-a.size);for(i=t.length,a=!1;i--;)0t[i].pos&&(t[i-1].size+=t[i].size,t[i-1].targets=t[i-1].targets.concat(t[i].targets),t[i-1].align=.5,t[i-1].pos+t[i-1].size>n&&(t[i-1].pos=n-t[i-1].size),t.splice(i,1),a=!0)}s.push.apply(s,u),i=0,t.some((function(t){var r=0;if(t.targets.some((function(){if(s[i].pos=t.pos+r,void 0!==o&&Math.abs(s[i].pos-s[i].target)>o)return s.slice(0,i+1).forEach((function(t){delete t.pos})),s.reducedLen=(s.reducedLen||n)-.1*n,s.reducedLen>.1*n&&e.distribute(s,n,o),!0;r+=s[i].size,i++})))return!0})),m(s,r)},n.prototype.drawDataLabels=function(){function t(t,e){var n,o=[];if(d(t)&&!d(e))o=t.map((function(t){return f(t,e)}));else if(d(e)&&!d(t))o=e.map((function(e){return f(t,e)}));else if(d(t)||d(e))for(n=Math.max(t.length,e.length);n--;)o[n]=f(t[n],e[n]);else o=f(t,e);return o}var e=this,n=e.chart,o=e.options,i=o.dataLabels,a=e.points,c=e.hasRendered||0,u=i.animation;u=i.defer?r(n,u,e):{defer:0,duration:0};var z=n.renderer;if(i=t(t(n.options.plotOptions&&n.options.plotOptions.series&&n.options.plotOptions.series.dataLabels,n.options.plotOptions&&n.options.plotOptions[e.type]&&n.options.plotOptions[e.type].dataLabels),i),p(this,"drawDataLabels"),d(i)||i.enabled||e._hasPointLabels){var m=e.plotGroup("dataLabelsGroup","data-labels",c?"inherit":"hidden",i.zIndex||6);m.attr({opacity:+c}),!c&&(c=e.dataLabelsGroup)&&(e.visible&&m.show(!0),c[o.animation?"animate":"attr"]({opacity:1},u)),a.forEach((function(r){h(t(i,r.dlOptions||r.options&&r.options.dataLabels)).forEach((function(t,i){var a=t.enabled&&(!r.isNull||r.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)}(r,t),c=r.dataLabels?r.dataLabels[i]:r.dataLabel,u=r.connectors?r.connectors[i]:r.connector,p=M(t.distance,r.labelDistance),d=!c;if(a){var f=r.getLabelConfig(),h=M(t[r.formatPrefix+"Format"],t.format);f=s(h)?l(h,f,n):(t[r.formatPrefix+"Formatter"]||t.formatter).call(f,t),h=t.style;var O=t.rotation;n.styledMode||(h.color=M(t.color,h.color,e.color,"#000000"),"contrast"===h.color?(r.contrastColor=z.getContrast(r.color||e.color),h.color=!s(p)&&t.inside||0>p||o.stacking?r.contrastColor:"#000000"):delete r.contrastColor,o.cursor&&(h.cursor=o.cursor));var g={r:t.borderRadius||0,rotation:O,padding:t.padding,zIndex:1};n.styledMode||(g.fill=t.backgroundColor,g.stroke=t.borderColor,g["stroke-width"]=t.borderWidth),b(g,(function(t,e){void 0===t&&delete g[e]}))}!c||a&&s(f)?a&&s(f)&&(c?g.text=f:(r.dataLabels=r.dataLabels||[],c=r.dataLabels[i]=O?z.text(f,0,-9999,t.useHTML).addClass("highcharts-data-label"):z.label(f,0,-9999,t.shape,null,null,t.useHTML,null,"data-label"),i||(r.dataLabel=c),c.addClass(" highcharts-data-label-color-"+r.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":""))),c.options=t,c.attr(g),n.styledMode||c.css(h).shadow(t.shadow),c.added||c.add(m),t.textPath&&!t.useHTML&&(c.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(c)||r.graphic,t.textPath),r.dataLabelPath&&!t.textPath.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),e.alignDataLabel(r,c,t,null,d)):(r.dataLabel=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(1===r.dataLabels.length?delete r.dataLabels:delete r.dataLabels[i]),i||delete r.dataLabel,u&&(r.connector=r.connector.destroy(),r.connectors&&(1===r.connectors.length?delete r.connectors:delete r.connectors[i])))}))}))}p(this,"afterDrawDataLabels")},n.prototype.alignDataLabel=function(t,e,n,o,r){var i=this,a=this.chart,c=this.isCartesian&&a.inverted,s=this.enabledDataSorting,p=M(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),l=M(t.plotY,-9999),d=e.getBBox(),f=n.rotation,b=n.align,z=a.isInsidePlot(p,Math.round(l),c),h="justify"===M(n.overflow,s?"none":"justify"),m=this.visible&&!1!==t.visible&&(t.series.forceDL||s&&!h||z||n.inside&&o&&a.isInsidePlot(p,c?o.x+1:o.y+o.height-1,c)),O=function(n){s&&i.xAxis&&!h&&i.setDataLabelStartPos(t,e,r,z,n)};if(m){var g=a.renderer.fontMetrics(a.styledMode?void 0:n.style.fontSize,e).b;o=u({x:c?this.yAxis.len-l:p,y:Math.round(c?this.xAxis.len-p:l),width:0,height:0},o),u(n,{width:d.width,height:d.height}),f?(h=!1,p=a.renderer.rotCorr(g,f),O(p={x:o.x+(n.x||0)+o.width/2+p.x,y:o.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*o.height}),e[r?"attr":"animate"](p).attr({align:b}),O=180<(O=(f+720)%360)&&360>O,"left"===b?p.y-=O?d.height:0:"center"===b?(p.x-=d.width/2,p.y-=d.height/2):"right"===b&&(p.x-=d.width,p.y-=O?0:d.height),e.placed=!0,e.alignAttr=p):(O(o),e.align(n,null,o),p=e.alignAttr),h&&0<=o.height?this.justifyDataLabel(e,n,p,d,o,r):M(n.crop,!0)&&(m=a.isInsidePlot(p.x,p.y)&&a.isInsidePlot(p.x+d.width,p.y+d.height)),n.shape&&!f&&e[r?"attr":"animate"]({anchorX:c?a.plotWidth-t.plotY:t.plotX,anchorY:c?a.plotHeight-t.plotX:t.plotY})}r&&s&&(e.placed=!1),m||s&&!h||(e.hide(!0),e.placed=!1)},n.prototype.setDataLabelStartPos=function(t,e,n,o,r){var i=this.chart,a=i.inverted,c=this.xAxis,s=c.reversed,u=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,c=a?r.x:s?-u-t:c.width-u+t,r=a?s?this.yAxis.height-u+t:-u-t:r.y,e.startXPos=c,e.startYPos=r,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),i.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},n.prototype.justifyDataLabel=function(t,e,n,o,r,i){var a=this.chart,c=e.align,s=e.verticalAlign,u=t.box?0:t.padding||0,p=e.x;p=void 0===p?0:p;var l=e.y,d=void 0===l?0:l;if(0>(l=n.x+u)){"right"===c&&0<=p?(e.align="left",e.inside=!0):p-=l;var f=!0}return(l=n.x+o.width-u)>a.plotWidth&&("left"===c&&0>=p?(e.align="right",e.inside=!0):p+=a.plotWidth-l,f=!0),0>(l=n.y+u)&&("bottom"===s&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=l,f=!0),(l=n.y+o.height-u)>a.plotHeight&&("top"===s&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=a.plotHeight-l,f=!0),f&&(e.x=p,e.y=d,t.placed=!i,t.align(e,void 0,r)),f},i.pie&&(i.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,n,o){return t.getX(ne.bottom-2?o:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,o){return t=t.getBBox().width,e?t+o:n-t-o},alignToConnectors:function(t,e,n,o){var r,i=0;return t.forEach((function(t){(r=t.dataLabel.getBBox().width)>i&&(i=r)})),e?i+o:n-i-o}},i.pie.prototype.drawDataLabels=function(){var t,o,r,i,c,u,p,l,d,b,z,h,m=this,O=m.data,g=m.chart,A=m.options.dataLabels||{},v=A.connectorPadding,y=g.plotWidth,q=g.plotHeight,_=g.plotLeft,W=Math.round(g.chartWidth/3),L=m.center,w=L[2]/2,x=L[1],R=[[],[]],T=[0,0,0,0],k=m.dataLabelPositioners;m.visible&&(A.enabled||m._hasPointLabels)&&(O.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),n.prototype.drawDataLabels.apply(m),O.forEach((function(t){t.dataLabel&&(t.visible?(R[t.half].push(t),t.dataLabel._pos=null,!s(A.style.width)&&!s(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>W&&(t.dataLabel.css({width:Math.round(.7*W)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),R.forEach((function(n,o){var r,a=n.length,f=[];if(a){if(m.sortByAngle(n,o-.5),0y-v&&0===o&&(O=Math.round(l+c-y+v),T[1]=Math.max(O,T[1])),0>d-p/2?T[0]=Math.max(Math.round(p/2-d),T[0]):d+p/2>q&&(T[2]=Math.max(Math.round(d+p/2-q),T[2])),i.sideOverflow=O)}}})),0===a(T)||this.verifyDataLabelOverflow(T))&&(this.placeDataLabels(),this.points.forEach((function(t){var e;h=f(A,t.options.dataLabels),(o=M(h.connectorWidth,1))&&(r=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0M(this.translatedThreshold,c.yAxis.len)),p=M(o.inside,!!this.options.stacking);s&&(0>(r=f(s)).y&&(r.height+=r.y,r.y=0),0<(s=r.y+r.height-c.yAxis.len)&&s=l.x+l.width||d.x+d.width<=l.x||d.y>=l.y+l.height||d.y+d.height<=l.y||((p.labelrank=c&&i<=s||u||!b(i))&&(p=!0),o[u?"zoomX":"zoomY"]&&p&&(e=a.zoom(t.min,t.max),a.displayBtn&&(r=!0))}));var a=n.resetZoomButton;r&&!a?n.showResetZoom():!r&&g(a)&&(n.resetZoomButton=a.destroy()),e&&n.redraw(y(n.options.chart.animation,t&&t.animation,100>n.pointCount))},pan:function(t,e){var n,o=this,r=o.hoverPoints,i=o.options.chart,a=o.options.mapNavigation&&o.options.mapNavigation.enabled;e="object"==typeof e?e:{enabled:e,type:"x"},i&&i.panning&&(i.panning=e);var c=e.type;z(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var e=[1];"xy"===c?e=[1,0]:"y"===c&&(e=[0]),e.forEach((function(e){var r=o[e?"xAxis":"yAxis"][0],i=r.horiz,s=t[i?"chartX":"chartY"],u=o[i=i?"mouseDownX":"mouseDownY"],p=(r.pointRange||0)/2,l=r.reversed&&!o.inverted||!r.reversed&&o.inverted?-1:1,d=r.getExtremes(),f=r.toValue(u-s,!0)+p*l,b=(l=r.toValue(u+r.len-s,!0)-p*l)=l&&f<=p&&(r.setExtremes(u,f,!1,!1,{trigger:"pan"}),o.resetZoomButton||a||u===l||f===p||!c.match("y")||(o.showResetZoom(),r.displayBtn=!1),n=!0),o[i]=s)})),n&&o.redraw(!1),f(o.container,{cursor:"move"})}))}}),M(a.prototype,{select:function(t,e){var n=this,o=n.series,r=o.chart;this.selectedStaging=t=y(t,!n.selected),n.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){n.selected=n.options.selected=t,o.options.data[o.data.indexOf(n)]=n.options,n.setState(t&&"select"),e||r.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==n&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,n=e.pointer;t=t?n.normalize(t):n.getChartCoordinatesFromPoint(this,e.inverted),n.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var t=this,e=A(t.series.options.point,t.options).events;t.events=e,v(e,(function(e,n){m(e)&&l(t,n,e)})),this.hasImportedEvents=!0}},setState:function(t,e){var n,o=this.series,r=this.state,i=o.options.states[t||"normal"]||{},a=p.plotOptions[o.type].marker&&o.options.marker,c=a&&!1===a.enabled,s=a&&a.states&&a.states[t||"normal"]||{},u=!1===s.enabled,l=o.stateMarkerGraphic,d=this.marker||{},f=o.chart,b=o.halo,h=a&&o.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===i.enabled||t&&(u||c&&!1===s.enabled)||t&&d.states&&d.states[t]&&!1===d.states[t].enabled)){if(this.state=t,h&&(n=o.markerAttribs(this,t)),this.graphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),t&&this.graphic.addClass("highcharts-point-"+t),!f.styledMode){var m=o.pointAttribs(this,t),O=y(f.options.chart.animation,i.animation);o.options.inactiveOtherPoints&&m.opacity&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:m.opacity},O)})),this.connector&&this.connector.animate({opacity:m.opacity},O)),this.graphic.animate(m,O)}n&&this.graphic.animate(n,y(f.options.chart.animation,s.animation,a.animation)),l&&l.hide()}else t&&s&&(r=d.symbol||o.symbol,l&&l.currentSymbol!==r&&(l=l.destroy()),n&&(l?l[e?"animate":"attr"]({x:n.x,y:n.y}):r&&(o.stateMarkerGraphic=l=f.renderer.symbol(r,n.x,n.y,n.width,n.height).add(o.markerGroup),l.currentSymbol=r)),!f.styledMode&&l&&l.attr(o.pointAttribs(this,t))),l&&(l[t&&this.isInside?"show":"hide"](),l.element.point=this);t=i.halo,i=(l=this.graphic||l)&&l.visibility||"inherit",t&&t.size&&l&&"hidden"!==i&&!this.isCluster?(b||(o.halo=b=f.renderer.path().add(l.parentGroup)),b.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),b.attr({class:"highcharts-halo highcharts-color-"+y(this.colorIndex,o.colorIndex)+(this.className?" "+this.className:""),visibility:i,zIndex:-1}),b.point=this,f.styledMode||b.attr(M({fill:this.color||o.color,"fill-opacity":t.opacity},t.attributes))):b&&b.point&&b.point.haloPath&&b.animate({d:b.point.haloPath(0)},null,b.hide),z(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),M(r.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&z(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,n=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&z(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},setState:function(t,e){var n=this,o=n.options,r=n.graph,i=o.inactiveOtherPoints,a=o.states,c=o.lineWidth,s=o.opacity,u=y(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation);if(o=0,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&&(c=a[t].lineWidth||c+(a[t].lineWidthPlus||0),s=y(a[t].opacity,s)),r&&!r.dashstyle)for(a={"stroke-width":c},r.animate(a,u);n["zone-graph-"+o];)n["zone-graph-"+o].attr(a),o+=1;i||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:s},u)}))}e&&i&&n.points&&n.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},setVisible:function(t,e){var n=this,o=n.chart,r=n.legendItem,i=o.options.chart.ignoreHiddenSeries,a=n.visible,c=(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][c]()})),o.hoverSeries!==n&&(o.hoverPoint&&o.hoverPoint.series)!==n||n.onMouseOut(),r&&o.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&o.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),i&&(o.isDirtyBox=!0),z(n,c),!1!==e&&o.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),z(this,t?"select":"unselect")},drawTracker:n.drawTrackerGraph})})),e(n,"Core/Responsive.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.find,o=e.isArray,r=e.isObject,i=e.merge,a=e.objectEach,c=e.pick,s=e.splat,u=e.uniqueKey;t.prototype.setResponsive=function(t,e){var o=this.options.responsive,r=[],a=this.currentResponsive;!e&&o&&o.rules&&o.rules.forEach((function(t){void 0===t._id&&(t._id=u()),this.matchResponsiveRule(t,r)}),this),e=i.apply(0,r.map((function(t){return n(o.rules,(function(e){return e._id===t})).chartOptions}))),e.isResponsiveOptions=!0,(r=r.toString()||void 0)!==(a&&a.ruleIds)&&(a&&this.update(a.undoOptions,t,!0),r?((a=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:r,mergedOptions:e,undoOptions:a},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var n=t.condition;(n.callback||function(){return this.chartWidth<=c(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=c(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=c(n.minWidth,0)&&this.chartHeight>=c(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){var e=this,n={};return function t(n,i,c,u){var p;a(n,(function(n,a){if(!u&&-1{var o,r,i;i=function(t){function e(t,e,n,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,n))}e(t=t?t._modules:{},"Extensions/FullScreen.js",[t["Core/Chart/Chart.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,n){var o=n.addEvent;return n=function(){function t(t){this.chart=t,this.isOpen=!1,t=t.renderTo,this.browserProps||("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}return t.prototype.close=function(){var t=this.chart;this.isOpen&&this.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[this.browserProps.exitFullscreen](),this.unbindFullscreenEvent&&this.unbindFullscreenEvent(),this.isOpen=!1,this.setButtonText()},t.prototype.open=function(){var t=this,e=t.chart;if(t.browserProps){t.unbindFullscreenEvent=o(e.container.ownerDocument,t.browserProps.fullscreenChange,(function(){t.isOpen?(t.isOpen=!1,t.close()):(t.isOpen=!0,t.setButtonText())}));var n=e.renderTo[t.browserProps.requestFullscreen]();n&&n.catch((function(){alert("Full screen is not supported inside a frame.")})),o(e,"destroy",t.unbindFullscreenEvent)}},t.prototype.setButtonText=function(){var t,e=this.chart,n=e.exportDivElements,o=e.options.exporting,r=null===(t=null==o?void 0:o.buttons)||void 0===t?void 0:t.contextButton.menuItems;t=e.options.lang,null!=o&&o.menuItemDefinitions&&null!=t&&t.exitFullscreen&&t.viewFullscreen&&r&&n&&n.length&&(n[r.indexOf("viewFullscreen")].innerHTML=this.isOpen?t.exitFullscreen:o.menuItemDefinitions.viewFullscreen.text||t.viewFullscreen)},t.prototype.toggle=function(){this.isOpen?this.close():this.open()},t}(),e.Fullscreen=n,o(t,"beforeRender",(function(){this.fullscreen=new e.Fullscreen(this)})),e.Fullscreen})),e(t,"Mixins/Navigation.js",[],(function(){return{initUpdate:function(t){t.navigation||(t.navigation={updates:[],update:function(t,e){this.updates.forEach((function(n){n.update.call(n.context,t,e)}))}})},addUpdate:function(t,e){e.navigation||this.initUpdate(e),e.navigation.updates.push({update:t,context:e})}}})),e(t,"Extensions/Exporting.js",[t["Core/Chart/Chart.js"],t["Mixins/Navigation.js"],t["Core/Globals.js"],t["Core/Options.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],(function(t,e,n,o,r,i){var a=n.doc,c=n.isTouchDevice,s=n.win;o=o.defaultOptions;var u=i.addEvent,p=i.css,l=i.createElement,d=i.discardElement,f=i.extend,b=i.find,M=i.fireEvent,z=i.isObject,h=i.merge,m=i.objectEach,O=i.pick,g=i.removeEvent,A=i.uniqueKey,v=s.navigator.userAgent,y=n.Renderer.prototype.symbols,q=/Edge\/|Trident\/|MSIE /.test(v),_=/firefox/i.test(v);f(o.lang,{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"}),o.navigation||(o.navigation={}),h(!0,o.navigation,{buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}}),h(!0,o.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",color:"#333333",background:"none",fontSize:c?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{padding:5}}}),o.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},n.post=function(t,e,n){var o=l("form",h({method:"post",action:t,enctype:"multipart/form-data"},n),{display:"none"},a.body);m(e,(function(t,e){l("input",{type:"hidden",name:e,value:t},null,o)})),o.submit(),d(o)},n.isSafari&&n.win.matchMedia("print").addListener((function(t){n.printingChart&&(t.matches?n.printingChart.beforePrint():n.printingChart.afterPrint())})),f(t.prototype,{sanitizeSVG:function(t,e){var n=t.indexOf("")+6,o=t.substr(n);return t=t.substr(0,n),e&&e.exporting&&e.exporting.allowHTML&&o&&(o=''+o.replace(/(<(?:img|br).*?(?=>))>/g,"$1 />")+"",t=t.replace("",o+"")),t=t.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|");?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!e||5>e.length)&&(e="chart"),e)},exportChart:function(t,e){e=this.getSVGForExport(t,e),t=h(this.options.exporting,t),n.post(t.url,{filename:t.filename?t.filename.replace(/\//g,"-"):this.getFilename(),type:t.type,width:t.width||0,scale:t.scale,svg:e},t.formAttributes)},moveContainers:function(t){(this.fixedDiv?[this.fixedDiv,this.scrollingContainer]:[this.container]).forEach((function(e){t.appendChild(e)}))},beforePrint:function(){var t=a.body,e=this.options.exporting.printMaxWidth,n={childNodes:t.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer.reset(null,0),M(this,"beforePrint"),e&&this.chartWidth>e&&(n.resetParams=[this.options.chart.width,void 0,!1],this.setSize(e,void 0,!1)),[].forEach.call(n.childNodes,(function(t,e){1===t.nodeType&&(n.origDisplay[e]=t.style.display,t.style.display="none")})),this.moveContainers(t),this.printReverseInfo=n},afterPrint:function(){if(this.printReverseInfo){var t=this.printReverseInfo.childNodes,e=this.printReverseInfo.origDisplay,o=this.printReverseInfo.resetParams;this.moveContainers(this.renderTo),[].forEach.call(t,(function(t,n){1===t.nodeType&&(t.style.display=e[n]||"")})),this.isPrinting=!1,o&&this.setSize.apply(this,o),delete this.printReverseInfo,delete n.printingChart,M(this,"afterPrint")}},print:function(){var t=this;t.isPrinting||(n.printingChart=t,n.isSafari||t.beforePrint(),setTimeout((function(){s.focus(),s.print(),n.isSafari||setTimeout((function(){t.afterPrint()}),1e3)}),1))},contextMenu:function(t,e,n,o,r,c,d){var b=this,h=b.options.navigation,m=b.chartWidth,O=b.chartHeight,g="cache-"+t,A=b[g],v=Math.max(r,c);if(!A){b.exportContextMenu=b[g]=A=l("div",{className:t},{position:"absolute",zIndex:1e3,padding:v+"px",pointerEvents:"auto"},b.fixedDiv||b.container);var y=l("ul",{className:"highcharts-menu"},{listStyle:"none",margin:0,padding:0},A);b.styledMode||p(y,f({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},h.menuStyle)),A.hideMenu=function(){p(A,{display:"none"}),d&&d.setState(0),b.openMenu=!1,p(b.renderTo,{overflow:"hidden"}),i.clearTimeout(A.hideTimer),M(b,"exportMenuHidden")},b.exportEvents.push(u(A,"mouseleave",(function(){A.hideTimer=s.setTimeout(A.hideMenu,500)})),u(A,"mouseenter",(function(){i.clearTimeout(A.hideTimer)})),u(a,"mouseup",(function(e){b.pointer.inClass(e.target,t)||A.hideMenu()})),u(A,"click",(function(){b.openMenu&&A.hideMenu()}))),e.forEach((function(t){if("string"==typeof t&&(t=b.options.exporting.menuItemDefinitions[t]),z(t,!0)){if(t.separator)var e=l("hr",null,null,y);else"viewData"===t.textKey&&b.isDataTableVisible&&(t.textKey="hideData"),e=l("li",{className:"highcharts-menu-item",onclick:function(e){e&&e.stopPropagation(),A.hideMenu(),t.onclick&&t.onclick.apply(b,arguments)},innerHTML:t.text||b.options.lang[t.textKey]},null,y),b.styledMode||(e.onmouseover=function(){p(this,h.menuItemHoverStyle)},e.onmouseout=function(){p(this,h.menuItemStyle)},p(e,f({cursor:"pointer"},h.menuItemStyle)));b.exportDivElements.push(e)}})),b.exportDivElements.push(y,A),b.exportMenuWidth=A.offsetWidth,b.exportMenuHeight=A.offsetHeight}e={display:"block"},n+b.exportMenuWidth>m?e.right=m-n-r-v+"px":e.left=n-v+"px",o+c+b.exportMenuHeight>O&&"top"!==d.alignOptions.verticalAlign?e.bottom=O-o-v+"px":e.top=o+c-v+"px",p(A,e),p(b.renderTo,{overflow:""}),b.openMenu=!0,M(b,"exportMenuShown")},addButton:function(t){var e=this,n=e.renderer,o=h(e.options.navigation.buttonOptions,t),r=o.onclick,i=o.menuItems,a=o.symbolSize||12;if(e.btnCount||(e.btnCount=0),e.exportDivElements||(e.exportDivElements=[],e.exportSVGElements=[]),!1!==o.enabled){var c,s=o.theme,u=s.states,p=u&&u.hover;u=u&&u.select,e.styledMode||(s.fill=O(s.fill,"#ffffff"),s.stroke=O(s.stroke,"none")),delete s.states,r?c=function(t){t&&t.stopPropagation(),r.call(e,t)}:i&&(c=function(t){t&&t.stopPropagation(),e.contextMenu(l.menuClassName,i,l.translateX,l.translateY,l.width,l.height,l),l.setState(2)}),o.text&&o.symbol?s.paddingLeft=O(s.paddingLeft,25):o.text||f(s,{width:o.width,height:o.height,padding:0}),e.styledMode||(s["stroke-linecap"]="round",s.fill=O(s.fill,"#ffffff"),s.stroke=O(s.stroke,"none"));var l=n.button(o.text,0,0,c,s,p,u).addClass(t.className).attr({title:O(e.options.lang[o._titleKey||o.titleKey],"")});if(l.menuClassName=t.menuClassName||"highcharts-menu-"+e.btnCount++,o.symbol){var d=n.symbol(o.symbol,o.symbolX-a/2,o.symbolY-a/2,a,a,{width:a,height:a}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(l);e.styledMode||d.attr({stroke:o.symbolStroke,fill:o.symbolFill,"stroke-width":o.symbolStrokeWidth||1})}l.add(e.exportingGroup).align(f(o,{width:l.width,x:O(o.x,e.buttonOffset)}),!0,"spacingBox"),e.buttonOffset+=(l.width+o.buttonSpacing)*("right"===o.align?-1:1),e.exportSVGElements.push(l,d)}},destroyExport:function(t){var e=t?t.target:this;t=e.exportSVGElements;var n,o=e.exportDivElements,r=e.exportEvents;t&&(t.forEach((function(t,o){t&&(t.onclick=t.ontouchstart=null,n="cache-"+t.menuClassName,e[n]&&delete e[n],e.exportSVGElements[o]=t.destroy())})),t.length=0),e.exportingGroup&&(e.exportingGroup.destroy(),delete e.exportingGroup),o&&(o.forEach((function(t,n){i.clearTimeout(t.hideTimer),g(t,"mouseleave"),e.exportDivElements[n]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null,d(t)})),o.length=0),r&&(r.forEach((function(t){t()})),r.length=0)}}),r.prototype.inlineToAttributes="fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" "),r.prototype.inlineBlacklist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/],r.prototype.unstyledElements=["clipPath","defs","desc"],t.prototype.inlineStyles=function(){function t(t){return t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))}var e,n=this.renderer,o=n.inlineToAttributes,r=n.inlineBlacklist,i=n.inlineWhitelist,c=n.unstyledElements,u={};n=a.createElement("iframe"),p(n,{width:"1px",height:"1px",visibility:"hidden"}),a.body.appendChild(n);var l=n.contentWindow.document;l.open(),l.write(''),l.close(),function n(a){function p(e,n){if(d=f=!1,i){for(b=i.length;b--&&!f;)f=i[b].test(n);d=!f}for("transform"===n&&"none"===e&&(d=!0),b=r.length;b--&&!d;)d=r[b].test(n)||"function"==typeof e;d||O[n]===e&&"svg"!==a.nodeName||u[a.nodeName][n]===e||(o&&-1===o.indexOf(n)?M+=t(n)+":"+e+";":e&&a.setAttribute(t(n),e))}var d,f,b,M="";if(1===a.nodeType&&-1===c.indexOf(a.nodeName)){var z=s.getComputedStyle(a,null),O="svg"===a.nodeName?{}:s.getComputedStyle(a.parentNode,null);if(!u[a.nodeName]){e=l.getElementsByTagName("svg")[0];var g=l.createElementNS(a.namespaceURI,a.nodeName);e.appendChild(g),u[a.nodeName]=h(s.getComputedStyle(g,null)),"text"===a.nodeName&&delete u.text.fill,e.removeChild(g)}if(_||q)for(var A in z)p(z[A],A);else m(z,p);M&&(z=a.getAttribute("style"),a.setAttribute("style",(z?z+";":"")+M)),"svg"===a.nodeName&&a.setAttribute("stroke-width","1px"),"text"!==a.nodeName&&[].forEach.call(a.children||a.childNodes,n)}}(this.container.querySelector("svg")),e.parentNode.remove(),n.remove()},y.menu=function(t,e,n,o){return[["M",t,e+2.5],["L",t+n,e+2.5],["M",t,e+o/2+.5],["L",t+n,e+o/2+.5],["M",t,e+o-1.5],["L",t+n,e+o-1.5]]},y.menuball=function(t,e,n,o){return o=o/3-2,[].concat(this.circle(n-o,e,o,o),this.circle(n-o,e+o+4,o,o),this.circle(n-o,e+2*(o+4),o,o))},t.prototype.renderExporting=function(){var t=this,e=t.options.exporting,n=e.buttons,o=t.isDirtyExporting||!t.exportSVGElements;t.buttonOffset=0,t.isDirtyExporting&&t.destroyExport(),o&&!1!==e.enabled&&(t.exportEvents=[],t.exportingGroup=t.exportingGroup||t.renderer.g("exporting-group").attr({zIndex:3}).add(),m(n,(function(e){t.addButton(e)})),t.isDirtyExporting=!1),u(t,"destroy",t.destroyExport)},u(t,"init",(function(){var t=this;t.exporting={update:function(e,n){t.isDirtyExporting=!0,h(!0,t.options.exporting,e),O(n,!0)&&t.redraw()}},e.addUpdate((function(e,n){t.isDirtyExporting=!0,h(!0,t.options.navigation,e),O(n,!0)&&t.redraw()}),t)})),t.prototype.callbacks.push((function(t){t.renderExporting(),u(t,"redraw",t.renderExporting)}))})),e(t,"masters/modules/exporting.src.js",[],(function(){}))},t.exports?(i.default=i,t.exports=i):(o=[n(4783)],void 0===(r=function(t){return i(t),i.Highcharts=t,i}.apply(e,o))||(t.exports=r))},3425:()=>{!function(t){function e(t,e,r){var i=t[0],a=/er/.test(r)?_indeterminate:/bl/.test(r)?f:l,c=r==_update?{checked:i[l],disabled:i[f],indeterminate:"true"==t.attr(_indeterminate)||"false"==t.attr(_determinate)}:i[a];if(/^(ch|di|in)/.test(r)&&!c)n(t,a);else if(/^(un|en|de)/.test(r)&&c)o(t,a);else if(r==_update)for(var s in c)c[s]?n(t,s,!0):o(t,s,!0);else e&&"toggle"!=r||(e||t[_callback]("ifClicked"),c?i[_type]!==p&&o(t,a):n(t,a))}function n(e,n,r){var b=e[0],M=e.parent(),z=n==l,h=n==_indeterminate,m=n==f,O=h?_determinate:z?d:"enabled",g=i(e,O+a(b[_type])),A=i(e,n+a(b[_type]));if(!0!==b[n]){if(!r&&n==l&&b[_type]==p&&b.name){var v=e.closest("form"),y='input[name="'+b.name+'"]';(y=v.length?v.find(y):t(y)).each((function(){this!==b&&t(this).data(s)&&o(t(this),n)}))}h?(b[n]=!0,b[l]&&o(e,l,"force")):(r||(b[n]=!0),z&&b[_indeterminate]&&o(e,_indeterminate,!1)),c(e,z,n,r)}b[f]&&i(e,_cursor,!0)&&M.find("."+u).css(_cursor,"default"),M[_add](A||i(e,n)||""),M.attr("role")&&!h&&M.attr("aria-"+(m?f:l),"true"),M[_remove](g||i(e,O)||"")}function o(t,e,n){var o=t[0],r=t.parent(),s=e==l,p=e==_indeterminate,b=e==f,M=p?_determinate:s?d:"enabled",z=i(t,M+a(o[_type])),h=i(t,e+a(o[_type]));!1!==o[e]&&(!p&&n&&"force"!=n||(o[e]=!1),c(t,s,M,n)),!o[f]&&i(t,_cursor,!0)&&r.find("."+u).css(_cursor,"pointer"),r[_remove](h||i(t,e)||""),r.attr("role")&&!p&&r.attr("aria-"+(b?f:l),"false"),r[_add](z||i(t,M)||"")}function r(e,n){e.data(s)&&(e.parent().html(e.attr("style",e.data(s).s||"")),n&&e[_callback](n),e.off(".i").unwrap(),t(_label+'[for="'+e[0].id+'"]').add(e.closest(_label)).off(".i"))}function i(t,e,n){if(t.data(s))return t.data(s).o[e+(n?"":"Class")]}function a(t){return t.charAt(0).toUpperCase()+t.slice(1)}function c(t,e,n,o){o||(e&&t[_callback]("ifToggled"),t[_callback]("ifChanged")[_callback]("if"+a(n)))}var s="iCheck",u=s+"-helper",p="radio",l="checked",d="un"+l,f="disabled";_determinate="determinate",_indeterminate="in"+_determinate,_update="update",_type="type",_click="click",_touch="touchbegin.i touchend.i",_add="addClass",_remove="removeClass",_callback="trigger",_label="label",_cursor="cursor",_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent),t.fn[s]=function(i,a){var c='input[type="checkbox"], input[type="'+p+'"]',d=t(),b=function(e){e.each((function(){var e=t(this);d=e.is(c)?d.add(e):d.add(e.find(c))}))};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(i))return i=i.toLowerCase(),b(this),d.each((function(){var n=t(this);"destroy"==i?r(n,"ifDestroyed"):e(n,!0,i),t.isFunction(a)&&a()}));if("object"!=typeof i&&i)return this;var M=t.extend({checkedClass:l,disabledClass:f,indeterminateClass:_indeterminate,labelHover:!0},i),z=M.handle,h=M.hoverClass||"hover",m=M.focusClass||"focus",O=M.activeClass||"active",g=!!M.labelHover,A=M.labelHoverClass||"hover",v=0|(""+M.increaseArea).replace("%","");return"checkbox"!=z&&z!=p||(c='input[type="'+z+'"]'),-50>v&&(v=-50),b(this),d.each((function(){var i=t(this);r(i);var a=this,c=a.id,d={position:"absolute",top:b=-v+"%",left:b,display:"block",width:d=100+2*v+"%",height:d,margin:0,padding:0,background:"#fff",border:0,opacity:0},b=_mobile?{position:"absolute",visibility:"hidden"}:v?d:{position:"absolute",opacity:0},z="checkbox"==a[_type]?M.checkboxClass||"icheckbox":M.radioClass||"i"+p,y=t(_label+'[for="'+c+'"]').add(i.closest(_label)),q=!!M.aria,_=s+"-"+Math.random().toString(36).substr(2,6),W='
")[_callback]("ifCreated").parent().append(M.insert),d=t('').css(d).appendTo(W),i.data(s,{o:M,s:i.attr("style")}).css(b),M.inheritClass&&W[_add](a.className||""),M.inheritID&&c&&W.attr("id",s+"-"+c),"static"==W.css("position")&&W.css("position","relative"),e(i,!0,_update),y.length&&y.on(_click+".i mouseover.i mouseout.i "+_touch,(function(n){var o=n[_type],r=t(this);if(!a[f]){if(o==_click){if(t(n.target).is("a"))return;e(i,!1,!0)}else g&&(/ut|nd/.test(o)?(W[_remove](h),r[_remove](A)):(W[_add](h),r[_add](A)));if(!_mobile)return!1;n.stopPropagation()}})),i.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",(function(t){var e=t[_type];return t=t.keyCode,e!=_click&&("keydown"==e&&32==t?(a[_type]==p&&a[l]||(a[l]?o(i,l):n(i,l)),!1):void("keyup"==e&&a[_type]==p?!a[l]&&n(i,l):/us|ur/.test(e)&&W["blur"==e?_remove:_add](m)))})),d.on(_click+" mousedown mouseup mouseover mouseout "+_touch,(function(t){var n=t[_type],o=/wn|up/.test(n)?O:h;if(!a[f]){if(n==_click?e(i,!1,!0):(/wn|er|in/.test(n)?W[_add](o):W[_remove](o+" "+O),y.length&&g&&o==h&&y[/ut|nd/.test(n)?_remove:_add](A)),!_mobile)return!1;t.stopPropagation()}}))}))}}(window.jQuery||window.Zepto)},251:(t,e)=>{e.read=function(t,e,n,o,r){var i,a,c=8*r-o-1,s=(1<>1,p=-7,l=n?r-1:0,d=n?-1:1,f=t[e+l];for(l+=d,i=f&(1<<-p)-1,f>>=-p,p+=c;p>0;i=256*i+t[e+l],l+=d,p-=8);for(a=i&(1<<-p)-1,i>>=-p,p+=o;p>0;a=256*a+t[e+l],l+=d,p-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),i-=u}return(f?-1:1)*a*Math.pow(2,i-o)},e.write=function(t,e,n,o,r,i){var a,c,s,u=8*i-r-1,p=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:i-1,b=o?1:-1,M=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+l>=1?d/s:d*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=p?(c=0,a=p):a+l>=1?(c=(e*s-1)*Math.pow(2,r),a+=l):(c=e*Math.pow(2,l-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&c,f+=b,c/=256,r-=8);for(a=a<0;t[n+f]=255&a,f+=b,a/=256,u-=8);t[n+f-b]|=128*M}},4634:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},1292:(t,e,n)=>{!function t(e,n,o){function r(a,c){if(!n[a]){if(!e[a]){if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return r(e[a][1][t]||t)}),u,u.exports,t,e,n,o)}return n[a].exports}for(var i=void 0,a=0;a-1||e.setAttribute("data-"+o,n[o])}function u(e){var n=e;if(t.options.itemHandleOptions.enabled)if(void 0===(t.options.itemHandleOptions.customHandler||void 0)){var o=t.options.itemHandleOptions.customCssHandler,r=t.options.itemHandleOptions.customCssIconHandler;void 0===(o||void 0)&&(o="drag_handler"),void 0===(r||void 0)&&(r=o+"_icon"),n="
"+n+"
"}else n=t.options.itemHandleOptions.customHandler.replace("%s",n);return n}arguments[0]&&"object"==typeof arguments[0]&&(this.options=function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(r,arguments[0])),this.__getCanMove=function(e){return t.options.itemHandleOptions.enabled?t.options.itemHandleOptions.handleClass?e.classList.contains(t.options.itemHandleOptions.handleClass):e.classList.contains("item_handle"):!!t.options.dragItems},this.init=function(){!function(){t.element=document.querySelector(t.options.element);var e=document.createElement("div");e.classList.add("kanban-container"),t.container=e,document.querySelector(t.options.element).dataset.hasOwnProperty("board")?(url=document.querySelector(t.options.element).dataset.board,window.fetch(url,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>{e.json().then((function(e){t.options.boards=e,t.addBoards(t.options.boards,!0)}))})).catch((t=>{console.log("Error: ",t)}))):t.addBoards(t.options.boards,!0),t.element.appendChild(t.container)}(),window.innerWidth>t.options.responsive&&(t.drakeBoard=t.dragula([t.container],{moves:function(e,n,o,r){return!!t.options.dragBoards&&(o.classList.contains("kanban-board-header")||o.classList.contains("kanban-title-board"))},accepts:function(t,e,n,o){return e.classList.contains("kanban-container")},revertOnSpill:!0,direction:"horizontal"}).on("drag",(function(e,n){e.classList.add("is-moving"),t.options.dragBoard(e,n),"function"==typeof e.dragfn&&e.dragfn(e,n)})).on("dragend",(function(e){!function(){for(var e=1,n=0;n-1)t.drake.cancel(!0);else{e.classList.add("is-moving"),t.options.dragEl(e,n);var r=c(n.parentNode.dataset.id);void 0!==r.dragTo&&t.options.boards.map((function(e){-1===r.dragTo.indexOf(e.id)&&e.id!==n.parentNode.dataset.id&&t.findBoard(e.id).classList.add("disabled-board")})),null!==e&&"function"==typeof e.dragfn&&e.dragfn(e,n)}})).on("dragend",(function(e){t.options.dragendEl(e),null!==e&&"function"==typeof e.dragendfn&&e.dragendfn(e)})).on("drop",(function(e,n,o,r){t.enableAllBoards();var i=c(o.parentNode.dataset.id);void 0!==i.dragTo&&-1===i.dragTo.indexOf(n.parentNode.dataset.id)&&n.parentNode.dataset.id!==o.parentNode.dataset.id&&t.drake.cancel(!0),null!==e&&(!1===t.options.dropEl(e,n,o,r)&&t.drake.cancel(!0),e.classList.remove("is-moving"),"function"==typeof e.dropfn&&e.dropfn(e,n,o,r))})))},this.enableAllBoards=function(){var t=document.querySelectorAll(".kanban-board");if(t.length>0&&void 0!==t)for(var e=0;et.options.responsive)var o=(100-2*e.length)/e.length;else o=100-2*e.length;else o=t.options.widthBoard;var r=t.options.itemAddOptions.enabled,c=t.options.itemAddOptions.content,p=t.options.itemAddOptions.class,l=t.options.itemAddOptions.footer;for(var d in e){var f=e[d];n||t.options.boards.push(f),t.options.responsivePercentage||(""===t.container.style.width?t.container.style.width=parseInt(o)+2*parseInt(t.options.gutter)+"px":t.container.style.width=parseInt(t.container.style.width)+parseInt(o)+2*parseInt(t.options.gutter)+"px");var b=document.createElement("div");b.dataset.id=f.id,b.dataset.order=t.container.childNodes.length+1,b.classList.add("kanban-board"),t.options.responsivePercentage?b.style.width=o+"%":b.style.width=o,b.style.marginLeft=t.options.gutter,b.style.marginRight=t.options.gutter;var M=document.createElement("header");if(""!==f.class&&void 0!==f.class)var z=f.class.split(",");else z=[];M.classList.add("kanban-board-header"),z.map((function(t){t=t.replace(/^[ ]+/g,""),M.classList.add(t)})),M.innerHTML='
'+f.title+"
";var h=document.createElement("main");if(h.classList.add("kanban-drag"),""!==f.bodyClass&&void 0!==f.bodyClass)var m=f.bodyClass.split(",");else m=[];for(var O in m.map((function(t){h.classList.add(t)})),t.boardContainer.push(h),f.item){var g=f.item[O],A=document.createElement("div");A.classList.add("kanban-item"),g.id&&(A.dataset.eid=g.id),g.class&&Array.isArray(g.class)&&g.class.forEach((function(t){A.classList.add(t)})),A.innerHTML=u(g.title),A.clickfn=g.click,A.dragfn=g.drag,A.dragendfn=g.dragend,A.dropfn=g.drop,s(A,g),i(A),t.options.itemHandleOptions.enabled&&(A.style.cursor="default"),h.appendChild(A)}var v=document.createElement("footer");if(r){var y=document.createElement("BUTTON"),q=document.createTextNode(c||"+");y.setAttribute("class",p||"kanban-title-button btn btn-default btn-xs"),y.appendChild(q),l?v.appendChild(y):M.appendChild(y),a(y,f.id)}b.appendChild(M),b.appendChild(h),b.appendChild(v),t.container.appendChild(b)}return t},this.findBoard=function(e){return t.element.querySelector('[data-id="'+e+'"]')},this.getParentBoardID=function(e){return"string"==typeof e&&(e=t.element.querySelector('[data-eid="'+e+'"]')),null===e?null:e.parentNode.parentNode.dataset.id},this.moveElement=function(t,e,n){if(t!==this.getParentBoardID(e))return this.removeElement(e),this.addElement(t,n)},this.replaceElement=function(e,n){var o=e;return"string"==typeof o&&(o=t.element.querySelector('[data-eid="'+e+'"]')),o.innerHTML=n.title,o.clickfn=n.click,o.dragfn=n.drag,o.dragendfn=n.dragend,o.dropfn=n.drop,s(o,n),t},this.findElement=function(e){return t.element.querySelector('[data-eid="'+e+'"]')},this.getBoardElements=function(e){return t.element.querySelector('[data-id="'+e+'"] .kanban-drag').childNodes},this.removeElement=function(e){return"string"==typeof e&&(e=t.element.querySelector('[data-eid="'+e+'"]')),null!==e&&("function"==typeof e.remove?e.remove():e.parentNode.removeChild(e)),t},this.removeBoard=function(e){var n=null;"string"==typeof e&&(n=t.element.querySelector('[data-id="'+e+'"]')),null!==n&&("function"==typeof n.remove?n.remove():n.parentNode.removeChild(n));for(var o=0;o0?t:k.revertOnSpill,n=w||A,o=z(n),r=K(o);!1===r&&e&&(w?o&&o.removeChild(w):g.insertBefore(n,W)),r||e?S.emit("cancel",n,g,g):S.emit("drop",n,o,g,L),$()}}function $(){var t=w||A;I(),n&&(i.rm(k.mirrorContainer,"gu-unselectable"),s(c,"remove","mousemove",Q),z(n).removeChild(n),n=null),t&&i.rm(t,"gu-transit"),x&&clearTimeout(x),S.dragging=!1,T&&S.emit("out",t,T,g),S.emit("dragend",t),g=A=w=W=L=x=T=null}function K(t,e){var o;return o=void 0!==e?e:n?L:m(w||A),t===g&&o===W}function J(t,e,n){for(var o=t;o&&!r();)o=z(o);return o;function r(){if(!1===C(o))return!1;var r=Z(o,t),i=tt(o,r,e,n);return!!K(o,i)||k.accepts(A,o,g,i)}}function Q(t){if(n){t.preventDefault();var e=O("clientX",t)||0,o=O("clientY",t)||0,r=e-v,i=o-y;n.style.left=r+"px",n.style.top=i+"px";var a=w||A,c=l(n,e,o),s=J(c,e,o),u=null!==s&&s!==T;(u||null===s)&&(T&&b("out"),T=s,u&&b("over"));var p=z(a);if(s!==g||!w||k.copySortSource){var d,f=Z(s,c);if(null!==f)d=tt(s,f,e,o);else{if(!0!==k.revertOnSpill||w)return void(w&&p&&p.removeChild(a));d=W,s=g}(null===d&&u||d!==a&&d!==m(a))&&(L=d,s.insertBefore(a,d),S.emit("shadow",a,s,g))}else p&&p.removeChild(a)}function b(t){S.emit(t,a,T,g)}}function Z(t,e){for(var n=e;n!==t&&z(n)!==t;)n=z(n);return n===c?null:n}function tt(t,e,n,o){var r,i="horizontal"===k.direction;return e!==t?(r=e.getBoundingClientRect(),function(t){return t?m(e):e}(i?n>r.left+b(r)/2:o>r.top+M(r)/2)):function(){var e,r,a,c=t.children.length;for(e=0;en)return r;if(!i&&a.top+a.height/2>o)return r}return null}()}}}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":8,"contra/emitter":4,crossvent:5}],10:[function(t,e,n){var o,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function s(t){if(o===setTimeout)return setTimeout(t,0);if((o===a||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:a}catch(t){o=a}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(t){r=c}}();var u,p=[],l=!1,d=-1;function f(){l&&u&&(l=!1,u.length?p=u.concat(p):d=-1,p.length&&b())}function b(){if(!l){var t=s(f);l=!0;for(var e=p.length;e;){for(u=p,p=[];++d1)for(var n=1;n=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"==typeof e?e:function(t){var e=s++,o=!(arguments.length<2)&&a.call(arguments,1);return c[e]=!0,r((function(){c[e]&&(o?t.apply(null,o):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"==typeof o?o:function(t){delete c[t]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":10,timers:12}]},{},[1])},4692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(o,r){"use strict";var i=[],a=Object.getPrototypeOf,c=i.slice,s=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},u=i.push,p=i.indexOf,l={},d=l.toString,f=l.hasOwnProperty,b=f.toString,M=b.call(Object),z={},h=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},O=o.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function A(t,e,n){var o,r,i=(n=n||O).createElement("script");if(i.text=t,e)for(o in g)(r=e[o]||e.getAttribute&&e.getAttribute(o))&&i.setAttribute(o,r);n.head.appendChild(i).parentNode.removeChild(i)}function v(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[d.call(t)]||"object":typeof t}var y="3.7.1",q=/HTML$/i,_=function(t,e){return new _.fn.init(t,e)};function W(t){var e=!!t&&"length"in t&&t.length,n=v(t);return!h(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function L(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}_.fn=_.prototype={jquery:y,constructor:_,length:0,toArray:function(){return c.call(this)},get:function(t){return null==t?c.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+T+")"+T+"*"),Y=new RegExp(T+"|>"),j=new RegExp(D),H=new RegExp("^"+S+"$"),I={ID:new RegExp("^#("+S+")"),CLASS:new RegExp("^\\.("+S+")"),TAG:new RegExp("^("+S+"|[*])"),ATTR:new RegExp("^"+C),PSEUDO:new RegExp("^"+D),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i"),bool:new RegExp("^(?:"+W+")$","i"),needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},F=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){st()},Q=dt((function(t){return!0===t.disabled&&L(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{M.apply(i=c.call(N.childNodes),N.childNodes),i[N.childNodes.length].nodeType}catch(t){M={apply:function(t,e){B.apply(t,c.call(e))},call:function(t){B.apply(t,c.call(arguments,1))}}}function Z(t,e,n,o){var r,i,a,c,u,p,f,b=e&&e.ownerDocument,m=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return n;if(!o&&(st(e),e=e||s,l)){if(11!==m&&(u=V.exec(t)))if(r=u[1]){if(9===m){if(!(a=e.getElementById(r)))return n;if(a.id===r)return M.call(n,a),n}else if(b&&(a=b.getElementById(r))&&Z.contains(e,a)&&a.id===r)return M.call(n,a),n}else{if(u[2])return M.apply(n,e.getElementsByTagName(t)),n;if((r=u[3])&&e.getElementsByClassName)return M.apply(n,e.getElementsByClassName(r)),n}if(!(y[t+" "]||d&&d.test(t))){if(f=t,b=e,1===m&&(Y.test(t)||X.test(t))){for((b=G.test(t)&&ct(e.parentNode)||e)==e&&z.scope||((c=e.getAttribute("id"))?c=_.escapeSelector(c):e.setAttribute("id",c=h)),i=(p=pt(t)).length;i--;)p[i]=(c?"#"+c:":scope")+" "+lt(p[i]);f=p.join(",")}try{return M.apply(n,b.querySelectorAll(f)),n}catch(e){y(t,!0)}finally{c===h&&e.removeAttribute("id")}}}return mt(t.replace(k,"$1"),e,n,o)}function tt(){var t=[];return function n(o,r){return t.push(o+" ")>e.cacheLength&&delete n[t.shift()],n[o+" "]=r}}function et(t){return t[h]=!0,t}function nt(t){var e=s.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ot(t){return function(e){return L(e,"input")&&e.type===t}}function rt(t){return function(e){return(L(e,"input")||L(e,"button"))&&e.type===t}}function it(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Q(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(n,o){for(var r,i=t([],n.length,e),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))}))}))}function ct(t){return t&&void 0!==t.getElementsByTagName&&t}function st(t){var n,o=t?t.ownerDocument||t:N;return o!=s&&9===o.nodeType&&o.documentElement?(u=(s=o).documentElement,l=!_.isXMLDoc(s),b=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&N!=s&&(n=s.defaultView)&&n.top!==n&&n.addEventListener("unload",J),z.getById=nt((function(t){return u.appendChild(t).id=_.expando,!s.getElementsByName||!s.getElementsByName(_.expando).length})),z.disconnectedMatch=nt((function(t){return b.call(t,"*")})),z.scope=nt((function(){return s.querySelectorAll(":scope")})),z.cssHas=nt((function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),z.getById?(e.filter.ID=function(t){var e=t.replace($,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&l){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace($,K);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&l){var n,o,r,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(r=e.getElementsByName(t),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&l)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;u.appendChild(t).innerHTML="
",t.querySelectorAll("[selected]").length||d.push("\\["+T+"*(?:value|"+W+")"),t.querySelectorAll("[id~="+h+"-]").length||d.push("~="),t.querySelectorAll("a#"+h+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=s.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=s.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")")})),z.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),q=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!z.sortDetached&&e.compareDocumentPosition(t)===n?t===s||t.ownerDocument==N&&Z.contains(N,t)?-1:e===s||e.ownerDocument==N&&Z.contains(N,e)?1:r?p.call(r,t)-p.call(r,e):0:4&n?-1:1)},s):s}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(st(t),l&&!y[e+" "]&&(!d||!d.test(e)))try{var n=b.call(t,e);if(n||z.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){y(e,!0)}return Z(e,s,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=s&&st(t),_.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=s&&st(t);var o=e.attrHandle[n.toLowerCase()],r=o&&f.call(e.attrHandle,n.toLowerCase())?o(t,n,!l):void 0;return void 0!==r?r:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},_.uniqueSort=function(t){var e,n=[],o=0,i=0;if(a=!z.sortStable,r=!z.sortStable&&c.call(t,0),x.call(t,q),a){for(;e=t[i++];)e===t[i]&&(o=n.push(i));for(;o--;)R.call(t,n[o],1)}return r=null,t},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(c.apply(this)))},e=_.expr={cacheLength:50,createPseudo:et,match:I,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,K),t[3]=(t[3]||t[4]||t[5]||"").replace($,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return I.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&j.test(n)&&(e=pt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return L(t,e)}},CLASS:function(t){var e=g[t+" "];return e||(e=new RegExp("(^|"+T+")"+t+"("+T+"|$)"))&&g(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(o){var r=Z.attr(o,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(E," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,o,r){var i="nth"!==t.slice(0,3),a="last"!==t.slice(-4),c="of-type"===e;return 1===o&&0===r?function(t){return!!t.parentNode}:function(e,n,s){var u,p,l,d,f,b=i!==a?"nextSibling":"previousSibling",M=e.parentNode,z=c&&e.nodeName.toLowerCase(),O=!s&&!c,g=!1;if(M){if(i){for(;b;){for(l=e;l=l[b];)if(c?L(l,z):1===l.nodeType)return!1;f=b="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?M.firstChild:M.lastChild],a&&O){for(g=(d=(u=(p=M[h]||(M[h]={}))[t]||[])[0]===m&&u[1])&&u[2],l=d&&M.childNodes[d];l=++d&&l&&l[b]||(g=d=0)||f.pop();)if(1===l.nodeType&&++g&&l===e){p[t]=[m,d,g];break}}else if(O&&(g=d=(u=(p=e[h]||(e[h]={}))[t]||[])[0]===m&&u[1]),!1===g)for(;(l=++d&&l&&l[b]||(g=d=0)||f.pop())&&(!(c?L(l,z):1===l.nodeType)||!++g||(O&&((p=l[h]||(l[h]={}))[t]=[m,g]),l!==e)););return(g-=r)===o||g%o==0&&g/o>=0}}},PSEUDO:function(t,n){var o,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return r[h]?r(n):r.length>1?(o=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var o,i=r(t,n),a=i.length;a--;)t[o=p.call(t,i[a])]=!(e[o]=i[a])})):function(t){return r(t,0,o)}):r}},pseudos:{not:et((function(t){var e=[],n=[],o=ht(t.replace(k,"$1"));return o[h]?et((function(t,e,n,r){for(var i,a=o(t,null,r,[]),c=t.length;c--;)(i=a[c])&&(t[c]=!(e[c]=i))})):function(t,r,i){return e[0]=t,o(e,null,i,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Z(t,e).length>0}})),contains:et((function(t){return t=t.replace($,K),function(e){return(e.textContent||_.text(e)).indexOf(t)>-1}})),lang:et((function(t){return H.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace($,K).toLowerCase(),function(e){var n;do{if(n=l?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=o.location&&o.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},focus:function(t){return t===function(){try{return s.activeElement}catch(t){}}()&&s.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:it(!1),disabled:it(!0),checked:function(t){return L(t,"input")&&!!t.checked||L(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return U.test(t.nodeName)},input:function(t){return F.test(t.nodeName)},button:function(t){return L(t,"input")&&"button"===t.type||L(t,"button")},text:function(t){var e;return L(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;ne?e:n;--o>=0;)t.push(o);return t})),gt:at((function(t,e,n){for(var o=n<0?n+e:n;++o1?function(e,n,o){for(var r=t.length;r--;)if(!t[r](e,n,o))return!1;return!0}:t[0]}function bt(t,e,n,o,r){for(var i,a=[],c=0,s=t.length,u=null!=e;c-1&&(i[u]=!(a[u]=d))}}else f=bt(f===a?f.splice(h,f.length):f),r?r(null,a,f,s):M.apply(a,f)}))}function zt(t){for(var o,r,i,a=t.length,c=e.relative[t[0].type],s=c||e.relative[" "],u=c?1:0,l=dt((function(t){return t===o}),s,!0),d=dt((function(t){return p.call(o,t)>-1}),s,!0),f=[function(t,e,r){var i=!c&&(r||e!=n)||((o=e).nodeType?l(t,e,r):d(t,e,r));return o=null,i}];u1&&ft(f),u>1&<(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(k,"$1"),r,u0,i=t.length>0,a=function(a,c,u,p,d){var f,b,z,h=0,O="0",g=a&&[],A=[],v=n,y=a||i&&e.find.TAG("*",d),q=m+=null==v?1:Math.random()||.1,W=y.length;for(d&&(n=c==s||c||d);O!==W&&null!=(f=y[O]);O++){if(i&&f){for(b=0,c||f.ownerDocument==s||(st(f),u=!l);z=t[b++];)if(z(f,c||s,u)){M.call(p,f);break}d&&(m=q)}r&&((f=!z&&f)&&h--,a&&g.push(f))}if(h+=O,r&&O!==h){for(b=0;z=o[b++];)z(g,A,c,u);if(a){if(h>0)for(;O--;)g[O]||A[O]||(A[O]=w.call(p));A=bt(A)}M.apply(p,A),d&&!a&&A.length>0&&h+o.length>1&&_.uniqueSort(p)}return d&&(m=q,n=v),g};return r?et(a):a}(a,i)),c.selector=t}return c}function mt(t,n,o,r){var i,a,c,s,u,p="function"==typeof t&&t,d=!r&&pt(t=p.selector||t);if(o=o||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(c=a[0]).type&&9===n.nodeType&&l&&e.relative[a[1].type]){if(!(n=(e.find.ID(c.matches[0].replace($,K),n)||[])[0]))return o;p&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(i=I.needsContext.test(t)?0:a.length;i--&&(c=a[i],!e.relative[s=c.type]);)if((u=e.find[s])&&(r=u(c.matches[0].replace($,K),G.test(a[0].type)&&ct(n.parentNode)||n))){if(a.splice(i,1),!(t=r.length&<(a)))return M.apply(o,r),o;break}}return(p||ht(t,d))(r,n,!l,o,!n||G.test(t)&&ct(n.parentNode)||n),o}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,z.sortStable=h.split("").sort(q).join("")===h,st(),z.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(s.createElement("fieldset"))})),_.find=Z,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,Z.compile=ht,Z.select=mt,Z.setDocument=st,Z.tokenize=pt,Z.escape=_.escapeSelector,Z.getText=_.text,Z.isXML=_.isXMLDoc,Z.selectors=_.expr,Z.support=_.support,Z.uniqueSort=_.uniqueSort}();var D=function(t,e,n){for(var o=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&_(t).is(n))break;o.push(t)}return o},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},P=_.expr.match.needsContext,X=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Y(t,e,n){return h(e)?_.grep(t,(function(t,o){return!!e.call(t,o,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return p.call(e,t)>-1!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var o=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===o.nodeType?_.find.matchesSelector(o,t)?[o]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,o=this.length,r=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(Y(this,t||[],!1))},not:function(t){return this.pushStack(Y(this,t||[],!0))},is:function(t){return!!Y(this,"string"==typeof t&&P.test(t)?_(t):t||[],!1).length}});var j,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var o,r;if(!t)return this;if(n=n||j,"string"==typeof t){if(!(o="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:H.exec(t))||!o[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(o[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(o[1],e&&e.nodeType?e.ownerDocument||e:O,!0)),X.test(o[1])&&_.isPlainObject(e))for(o in e)h(this[o])?this[o](e[o]):this.attr(o,e[o]);return this}return(r=O.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):h(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,j=_(O);var I=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&_.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(i.length>1?_.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?p.call(_(t),this[0]):p.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return D(t,"parentNode")},parentsUntil:function(t,e,n){return D(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return D(t,"nextSibling")},prevAll:function(t){return D(t,"previousSibling")},nextUntil:function(t,e,n){return D(t,"nextSibling",n)},prevUntil:function(t,e,n){return D(t,"previousSibling",n)},siblings:function(t){return E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(L(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,o){var r=_.map(this,e,n);return"Until"!==t.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=_.filter(o,r)),this.length>1&&(F[t]||_.uniqueSort(r),I.test(t)&&r.reverse()),this.pushStack(r)}}));var V=/[^\x20\t\r\n\f]+/g;function G(t){return t}function $(t){throw t}function K(t,e,n,o){var r;try{t&&h(r=t.promise)?r.call(t).done(e).fail(n):t&&h(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(o))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(V)||[],(function(t,n){e[n]=!0})),e}(t):_.extend({},t);var e,n,o,r,i=[],a=[],c=-1,s=function(){for(r=r||t.once,o=e=!0;a.length;c=-1)for(n=a.shift();++c-1;)i.splice(n,1),n<=c&&c--})),this},has:function(t){return t?_.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||e||(i=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||s()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},_.extend({Deferred:function(t){var e=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(n){_.each(e,(function(e,o){var r=h(t[o[4]])&&t[o[4]];i[o[1]]((function(){var t=r&&r.apply(this,arguments);t&&h(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var i=0;function a(t,e,n,r){return function(){var c=this,s=arguments,u=function(){var o,u;if(!(t=i&&(n!==$&&(c=void 0,s=[o]),e.rejectWith(c,s))}};t?p():(_.Deferred.getErrorHook?p.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(p.error=_.Deferred.getStackHook()),o.setTimeout(p))}}return _.Deferred((function(o){e[0][3].add(a(0,o,h(r)?r:G,o.notifyWith)),e[1][3].add(a(0,o,h(t)?t:G)),e[2][3].add(a(0,o,h(n)?n:$))})).promise()},promise:function(t){return null!=t?_.extend(t,r):r}},i={};return _.each(e,(function(t,o){var a=o[2],c=o[5];r[o[1]]=a.add,c&&a.add((function(){n=c}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(o[3].fire),i[o[0]]=function(){return i[o[0]+"With"](this===i?void 0:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),t&&t.call(i,i),i},when:function(t){var e=arguments.length,n=e,o=Array(n),r=c.call(arguments),i=_.Deferred(),a=function(t){return function(n){o[t]=this,r[t]=arguments.length>1?c.call(arguments):n,--e||i.resolveWith(o,r)}};if(e<=1&&(K(t,i.done(a(n)).resolve,i.reject,!e),"pending"===i.state()||h(r[n]&&r[n].then)))return i.then();for(;n--;)K(r[n],a(n),i.reject);return i.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,e){o.console&&o.console.warn&&t&&J.test(t.name)&&o.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},_.readyException=function(t){o.setTimeout((function(){throw t}))};var Q=_.Deferred();function Z(){O.removeEventListener("DOMContentLoaded",Z),o.removeEventListener("load",Z),_.ready()}_.fn.ready=function(t){return Q.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||Q.resolveWith(O,[_]))}}),_.ready.then=Q.then,"complete"===O.readyState||"loading"!==O.readyState&&!O.documentElement.doScroll?o.setTimeout(_.ready):(O.addEventListener("DOMContentLoaded",Z),o.addEventListener("load",Z));var tt=function(t,e,n,o,r,i,a){var c=0,s=t.length,u=null==n;if("object"===v(n))for(c in r=!0,n)tt(t,e,c,n[c],!0,i,a);else if(void 0!==o&&(r=!0,h(o)||(a=!0),u&&(a?(e.call(t,o),e=null):(u=e,e=function(t,e,n){return u.call(_(t),n)})),e))for(;c1,null,!0)},removeData:function(t){return this.each((function(){st.remove(this,t)}))}}),_.extend({queue:function(t,e,n){var o;if(t)return e=(e||"fx")+"queue",o=ct.get(t,e),n&&(!o||Array.isArray(n)?o=ct.access(t,e,_.makeArray(n)):o.push(n)),o||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),o=n.length,r=n.shift(),i=_._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===e&&n.unshift("inprogress"),delete i.stop,r.call(t,(function(){_.dequeue(t,e)}),i)),!o&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ct.get(t,n)||ct.access(t,n,{empty:_.Callbacks("once memory").add((function(){ct.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,Lt=/^$|^module$|\/(?:java|ecma)script/i;yt=O.createDocumentFragment().appendChild(O.createElement("div")),(qt=O.createElement("input")).setAttribute("type","radio"),qt.setAttribute("checked","checked"),qt.setAttribute("name","t"),yt.appendChild(qt),z.checkClone=yt.cloneNode(!0).cloneNode(!0).lastChild.checked,yt.innerHTML="",z.noCloneChecked=!!yt.cloneNode(!0).lastChild.defaultValue,yt.innerHTML="",z.option=!!yt.lastChild;var wt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function xt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&L(t,e)?_.merge([t],n):n}function Rt(t,e){for(var n=0,o=t.length;n",""]);var Tt=/<|&#?\w+;/;function kt(t,e,n,o,r){for(var i,a,c,s,u,p,l=e.createDocumentFragment(),d=[],f=0,b=t.length;f-1)r&&r.push(i);else if(u=zt(i),a=xt(l.appendChild(i),"script"),u&&Rt(a),n)for(p=0;i=a[p++];)Lt.test(i.type||"")&&n.push(i);return l}var St=/^([^.]*)(?:\.(.+)|)/;function Ct(){return!0}function Nt(){return!1}function Bt(t,e,n,o,r,i){var a,c;if("object"==typeof e){for(c in"string"!=typeof n&&(o=o||n,n=void 0),e)Bt(t,c,n,o,e[c],i);return t}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Nt;else if(!r)return t;return 1===i&&(a=r,r=function(t){return _().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=_.guid++)),t.each((function(){_.event.add(this,e,r,o,n)}))}function Dt(t,e,n){n?(ct.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var n,o=ct.get(this,e);if(1&t.isTrigger&&this[e]){if(o)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=c.call(arguments),ct.set(this,e,o),this[e](),n=ct.get(this,e),ct.set(this,e,!1),o!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else o&&(ct.set(this,e,_.event.trigger(o[0],o.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ct)}})):void 0===ct.get(t,e)&&_.event.add(t,e,Ct)}_.event={global:{},add:function(t,e,n,o,r){var i,a,c,s,u,p,l,d,f,b,M,z=ct.get(t);if(it(t))for(n.handler&&(n=(i=n).handler,r=i.selector),r&&_.find.matchesSelector(Mt,r),n.guid||(n.guid=_.guid++),(s=z.events)||(s=z.events=Object.create(null)),(a=z.handle)||(a=z.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(V)||[""]).length;u--;)f=M=(c=St.exec(e[u])||[])[1],b=(c[2]||"").split(".").sort(),f&&(l=_.event.special[f]||{},f=(r?l.delegateType:l.bindType)||f,l=_.event.special[f]||{},p=_.extend({type:f,origType:M,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&_.expr.match.needsContext.test(r),namespace:b.join(".")},i),(d=s[f])||((d=s[f]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,o,b,a)||t.addEventListener&&t.addEventListener(f,a)),l.add&&(l.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,p):d.push(p),_.event.global[f]=!0)},remove:function(t,e,n,o,r){var i,a,c,s,u,p,l,d,f,b,M,z=ct.hasData(t)&&ct.get(t);if(z&&(s=z.events)){for(u=(e=(e||"").match(V)||[""]).length;u--;)if(f=M=(c=St.exec(e[u])||[])[1],b=(c[2]||"").split(".").sort(),f){for(l=_.event.special[f]||{},d=s[f=(o?l.delegateType:l.bindType)||f]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=d.length;i--;)p=d[i],!r&&M!==p.origType||n&&n.guid!==p.guid||c&&!c.test(p.namespace)||o&&o!==p.selector&&("**"!==o||!p.selector)||(d.splice(i,1),p.selector&&d.delegateCount--,l.remove&&l.remove.call(t,p));a&&!d.length&&(l.teardown&&!1!==l.teardown.call(t,b,z.handle)||_.removeEvent(t,f,z.handle),delete s[f])}else for(f in s)_.event.remove(t,f+e[u],n,o,!0);_.isEmptyObject(s)&&ct.remove(t,"handle events")}},dispatch:function(t){var e,n,o,r,i,a,c=new Array(arguments.length),s=_.event.fix(t),u=(ct.get(this,"events")||Object.create(null))[s.type]||[],p=_.event.special[s.type]||{};for(c[0]=s,e=1;e=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(i=[],a={},n=0;n-1:_.find(r,this,null,[u]).length),a[r]&&i.push(o);i.length&&c.push({elem:u,handlers:i})}return u=this,s\s*$/g;function Yt(t,e){return L(t,"table")&&L(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function It(t,e){var n,o,r,i,a,c;if(1===e.nodeType){if(ct.hasData(t)&&(c=ct.get(t).events))for(r in ct.remove(e,"handle events"),c)for(n=0,o=c[r].length;n1&&"string"==typeof b&&!z.checkClone&&Pt.test(b))return t.each((function(r){var i=t.eq(r);M&&(e[0]=b.call(this,r,i.html())),Ut(i,e,n,o)}));if(d&&(i=(r=kt(e,t[0].ownerDocument,!1,t,o)).firstChild,1===r.childNodes.length&&(r=i),i||o)){for(c=(a=_.map(xt(r,"script"),jt)).length;l0&&Rt(a,!s&&xt(t,"script")),c},cleanData:function(t){for(var e,n,o,r=_.event.special,i=0;void 0!==(n=t[i]);i++)if(it(n)){if(e=n[ct.expando]){if(e.events)for(o in e.events)r[o]?_.event.remove(n,o):_.removeEvent(n,o,e.handle);n[ct.expando]=void 0}n[st.expando]&&(n[st.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Yt(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Yt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(_.cleanData(xt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,o=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!wt[(Wt.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n=0&&(s+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-s-c-.5))||0),s+u}function pe(t,e,n){var o=Kt(t),r=(!z.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,o),i=r,a=Zt(t,e,o),c="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(a)){if(!n)return a;a="auto"}return(!z.boxSizingReliable()&&r||!z.reliableTrDimensions()&&L(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(t,"display",!1,o))&&t.getClientRects().length&&(r="border-box"===_.css(t,"boxSizing",!1,o),(i=c in t)&&(a=t[c])),(a=parseFloat(a)||0)+ue(t,e,n||(r?"border":"content"),i,o,a)+"px"}function le(t,e,n,o,r){return new le.prototype.init(t,e,n,o,r)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,i,a,c=rt(e),s=$t.test(e),u=t.style;if(s||(e=re(c)),a=_.cssHooks[e]||_.cssHooks[c],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,o))?r:u[e];"string"===(i=typeof n)&&(r=ft.exec(n))&&r[1]&&(n=Ot(t,e,r),i="number"),null!=n&&n==n&&("number"!==i||s||(n+=r&&r[3]||(_.cssNumber[c]?"":"px")),z.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,o))||(s?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,o){var r,i,a,c=rt(e);return $t.test(e)||(e=re(c)),(a=_.cssHooks[e]||_.cssHooks[c])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Zt(t,e,o)),"normal"===r&&e in ce&&(r=ce[e]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,o){if(n)return!ie.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?pe(t,e,o):Jt(t,ae,(function(){return pe(t,e,o)}))},set:function(t,n,o){var r,i=Kt(t),a=!z.scrollboxSize()&&"absolute"===i.position,c=(a||o)&&"border-box"===_.css(t,"boxSizing",!1,i),s=o?ue(t,e,o,c,i):0;return c&&a&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-ue(t,e,"border",!1,i)-.5)),s&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),se(0,n,s)}}})),_.cssHooks.marginLeft=te(z.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];o<4;o++)r[t+bt[o]+e]=i[o]||i[o-2]||i[0];return r}},"margin"!==t&&(_.cssHooks[t+e].set=se)})),_.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var o,r,i={},a=0;if(Array.isArray(e)){for(o=Kt(t),r=e.length;a1)}}),_.Tween=le,le.prototype={constructor:le,init:function(t,e,n,o,r,i){this.elem=t,this.prop=n,this.easing=r||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=o,this.unit=i||(_.cssNumber[n]?"":"px")},cur:function(){var t=le.propHooks[this.prop];return t&&t.get?t.get(this):le.propHooks._default.get(this)},run:function(t){var e,n=le.propHooks[this.prop];return this.options.duration?this.pos=e=_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):le.propHooks._default.set(this),this}},le.prototype.init.prototype=le.prototype,le.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}},le.propHooks.scrollTop=le.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=le.prototype.init,_.fx.step={};var de,fe,be=/^(?:toggle|show|hide)$/,Me=/queueHooks$/;function ze(){fe&&(!1===O.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(ze):o.setTimeout(ze,_.fx.interval),_.fx.tick())}function he(){return o.setTimeout((function(){de=void 0})),de=Date.now()}function me(t,e){var n,o=0,r={height:t};for(e=e?1:0;o<4;o+=2-e)r["margin"+(n=bt[o])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function Oe(t,e,n){for(var o,r=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),i=0,a=r.length;i1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var o,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===t.getAttribute?_.prop(t,e,n):(1===i&&_.isXMLDoc(t)||(r=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?Ae:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):r&&"set"in r&&void 0!==(o=r.set(t,n,e))?o:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(o=r.get(t,e))?o:null==(o=_.find.attr(t,e))?void 0:o)},attrHooks:{type:{set:function(t,e){if(!z.radioValue&&"radio"===e&&L(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,o=0,r=e&&e.match(V);if(r&&1===t.nodeType)for(;n=r[o++];)t.removeAttribute(n)}}),Ae={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ve[e]||_.find.attr;ve[e]=function(t,e,o){var r,i,a=e.toLowerCase();return o||(i=ve[a],ve[a]=r,r=null!=n(t,e,o)?a:null,ve[a]=i),r}}));var ye=/^(?:input|select|textarea|button)$/i,qe=/^(?:a|area)$/i;function _e(t){return(t.match(V)||[]).join(" ")}function We(t){return t.getAttribute&&t.getAttribute("class")||""}function Le(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(V)||[]}_.fn.extend({prop:function(t,e){return tt(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var o,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&_.isXMLDoc(t)||(e=_.propFix[e]||e,r=_.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(t,n,e))?o:t[e]=n:r&&"get"in r&&null!==(o=r.get(t,e))?o:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):ye.test(t.nodeName)||qe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),z.optSelected||(_.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,o,r,i,a;return h(t)?this.each((function(e){_(this).addClass(t.call(this,e,We(this)))})):(e=Le(t)).length?this.each((function(){if(o=We(this),n=1===this.nodeType&&" "+_e(o)+" "){for(i=0;i-1;)n=n.replace(" "+r+" "," ");a=_e(n),o!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,o,r,i,a=typeof t,c="string"===a||Array.isArray(t);return h(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,We(this),e),e)})):"boolean"==typeof e&&c?e?this.addClass(t):this.removeClass(t):(n=Le(t),this.each((function(){if(c)for(i=_(this),r=0;r-1)return!0;return!1}});var we=/\r/g;_.fn.extend({val:function(t){var e,n,o,r=this[0];return arguments.length?(o=h(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=o?t.call(this,n,_(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=_.map(r,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=_.valHooks[r.type]||_.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(we,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:_e(_.text(t))}},select:{get:function(t){var e,n,o,r=t.options,i=t.selectedIndex,a="select-one"===t.type,c=a?null:[],s=a?i+1:r.length;for(o=i<0?s:a?i:0;o-1)&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},z.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var xe=o.location,Re={guid:Date.now()},Te=/\?/;_.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new o.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var ke=/^(?:focusinfocus|focusoutblur)$/,Se=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(t,e,n,r){var i,a,c,s,u,p,l,d,b=[n||O],M=f.call(t,"type")?t.type:t,z=f.call(t,"namespace")?t.namespace.split("."):[];if(a=d=c=n=n||O,3!==n.nodeType&&8!==n.nodeType&&!ke.test(M+_.event.triggered)&&(M.indexOf(".")>-1&&(z=M.split("."),M=z.shift(),z.sort()),u=M.indexOf(":")<0&&"on"+M,(t=t[_.expando]?t:new _.Event(M,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=z.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+z.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:_.makeArray(e,[t]),l=_.event.special[M]||{},r||!l.trigger||!1!==l.trigger.apply(n,e))){if(!r&&!l.noBubble&&!m(n)){for(s=l.delegateType||M,ke.test(s+M)||(a=a.parentNode);a;a=a.parentNode)b.push(a),c=a;c===(n.ownerDocument||O)&&b.push(c.defaultView||c.parentWindow||o)}for(i=0;(a=b[i++])&&!t.isPropagationStopped();)d=a,t.type=i>1?s:l.bindType||M,(p=(ct.get(a,"events")||Object.create(null))[t.type]&&ct.get(a,"handle"))&&p.apply(a,e),(p=u&&a[u])&&p.apply&&it(a)&&(t.result=p.apply(a,e),!1===t.result&&t.preventDefault());return t.type=M,r||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(b.pop(),e)||!it(n)||u&&h(n[M])&&!m(n)&&((c=n[u])&&(n[u]=null),_.event.triggered=M,t.isPropagationStopped()&&d.addEventListener(M,Se),n[M](),t.isPropagationStopped()&&d.removeEventListener(M,Se),_.event.triggered=void 0,c&&(n[u]=c)),t.result}},simulate:function(t,e,n){var o=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(o,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.event.trigger(t,e,n,!0)}});var Ce=/\[\]$/,Ne=/\r?\n/g,Be=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;function Ee(t,e,n,o){var r;if(Array.isArray(e))_.each(e,(function(e,r){n||Ce.test(t)?o(t,r):Ee(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,o)}));else if(n||"object"!==v(e))o(t,e);else for(r in e)Ee(t+"["+r+"]",e[r],n,o)}_.param=function(t,e){var n,o=[],r=function(t,e){var n=h(e)?e():e;o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){r(this.name,this.value)}));else for(n in t)Ee(n,t[n],e,r);return o.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&De.test(this.nodeName)&&!Be.test(t)&&(this.checked||!_t.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}})):{name:e.name,value:n.replace(Ne,"\r\n")}})).get()}});var Pe=/%20/g,Xe=/#.*$/,Ye=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:GET|HEAD)$/,Ie=/^\/\//,Fe={},Ue={},Ve="*/".concat("*"),Ge=O.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var o,r=0,i=e.toLowerCase().match(V)||[];if(h(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(t[o]=t[o]||[]).unshift(n)):(t[o]=t[o]||[]).push(n)}}function Ke(t,e,n,o){var r={},i=t===Ue;function a(c){var s;return r[c]=!0,_.each(t[c]||[],(function(t,c){var u=c(e,n,o);return"string"!=typeof u||i||r[u]?i?!(s=u):void 0:(e.dataTypes.unshift(u),a(u),!1)})),s}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Je(t,e){var n,o,r=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:o||(o={}))[n]=e[n]);return o&&_.extend(!0,t,o),t}Ge.href=xe.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,_.ajaxSettings),e):Je(_.ajaxSettings,t)},ajaxPrefilter:$e(Fe),ajaxTransport:$e(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,i,a,c,s,u,p,l,d,f=_.ajaxSetup({},e),b=f.context||f,M=f.context&&(b.nodeType||b.jquery)?_(b):_.event,z=_.Deferred(),h=_.Callbacks("once memory"),m=f.statusCode||{},g={},A={},v="canceled",y={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=je.exec(i);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(t,e){return null==u&&(t=A[t.toLowerCase()]=A[t.toLowerCase()]||t,g[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)y.always(t[y.status]);else for(e in t)m[e]=[m[e],t[e]];return this},abort:function(t){var e=t||v;return n&&n.abort(e),q(0,e),this}};if(z.promise(y),f.url=((t||f.url||xe.href)+"").replace(Ie,xe.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(V)||[""],null==f.crossDomain){s=O.createElement("a");try{s.href=f.url,s.href=s.href,f.crossDomain=Ge.protocol+"//"+Ge.host!=s.protocol+"//"+s.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),Ke(Fe,f,e,y),u)return y;for(l in(p=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!He.test(f.type),r=f.url.replace(Xe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pe,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Te.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ye,"$1"),d=(Te.test(r)?"&":"?")+"_="+Re.guid+++d),f.url=r+d),f.ifModified&&(_.lastModified[r]&&y.setRequestHeader("If-Modified-Since",_.lastModified[r]),_.etag[r]&&y.setRequestHeader("If-None-Match",_.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&y.setRequestHeader("Content-Type",f.contentType),y.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ve+"; q=0.01":""):f.accepts["*"]),f.headers)y.setRequestHeader(l,f.headers[l]);if(f.beforeSend&&(!1===f.beforeSend.call(b,y,f)||u))return y.abort();if(v="abort",h.add(f.complete),y.done(f.success),y.fail(f.error),n=Ke(Ue,f,e,y)){if(y.readyState=1,p&&M.trigger("ajaxSend",[y,f]),u)return y;f.async&&f.timeout>0&&(c=o.setTimeout((function(){y.abort("timeout")}),f.timeout));try{u=!1,n.send(g,q)}catch(t){if(u)throw t;q(-1,t)}}else q(-1,"No Transport");function q(t,e,a,s){var l,d,O,g,A,v=e;u||(u=!0,c&&o.clearTimeout(c),n=void 0,i=s||"",y.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(g=function(t,e,n){for(var o,r,i,a,c=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(r in c)if(c[r]&&c[r].test(o)){s.unshift(r);break}if(s[0]in n)i=s[0];else{for(r in n){if(!s[0]||t.converters[r+" "+s[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==s[0]&&s.unshift(i),n[i]}(f,y,a)),!l&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),g=function(t,e,n,o){var r,i,a,c,s,u={},p=t.dataTypes.slice();if(p[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(i=p.shift();i;)if(t.responseFields[i]&&(n[t.responseFields[i]]=e),!s&&o&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=i,i=p.shift())if("*"===i)i=s;else if("*"!==s&&s!==i){if(!(a=u[s+" "+i]||u["* "+i]))for(r in u)if((c=r.split(" "))[1]===i&&(a=u[s+" "+c[0]]||u["* "+c[0]])){!0===a?a=u[r]:!0!==u[r]&&(i=c[0],p.unshift(c[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+s+" to "+i}}}return{state:"success",data:e}}(f,g,y,l),l?(f.ifModified&&((A=y.getResponseHeader("Last-Modified"))&&(_.lastModified[r]=A),(A=y.getResponseHeader("etag"))&&(_.etag[r]=A)),204===t||"HEAD"===f.type?v="nocontent":304===t?v="notmodified":(v=g.state,d=g.data,l=!(O=g.error))):(O=v,!t&&v||(v="error",t<0&&(t=0))),y.status=t,y.statusText=(e||v)+"",l?z.resolveWith(b,[d,v,y]):z.rejectWith(b,[y,v,O]),y.statusCode(m),m=void 0,p&&M.trigger(l?"ajaxSuccess":"ajaxError",[y,f,l?d:O]),h.fireWith(b,[y,v]),p&&(M.trigger("ajaxComplete",[y,f]),--_.active||_.event.trigger("ajaxStop")))}return y},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,o,r){return h(n)&&(r=r||o,o=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:r,data:n,success:o},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(h(t)&&(t=t.call(this[0])),e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return h(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=h(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(t){}};var Qe={0:200,1223:204},Ze=_.ajaxSettings.xhr();z.cors=!!Ze&&"withCredentials"in Ze,z.ajax=Ze=!!Ze,_.ajaxTransport((function(t){var e,n;if(z.cors||Ze&&!t.crossDomain)return{send:function(r,i){var a,c=t.xhr();if(c.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)c[a]=t.xhrFields[a];for(a in t.mimeType&&c.overrideMimeType&&c.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)c.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=c.onload=c.onerror=c.onabort=c.ontimeout=c.onreadystatechange=null,"abort"===t?c.abort():"error"===t?"number"!=typeof c.status?i(0,"error"):i(c.status,c.statusText):i(Qe[c.status]||c.status,c.statusText,"text"!==(c.responseType||"text")||"string"!=typeof c.responseText?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=e(),n=c.onerror=c.ontimeout=e("error"),void 0!==c.onabort?c.onabort=n:c.onreadystatechange=function(){4===c.readyState&&o.setTimeout((function(){e&&n()}))},e=e("abort");try{c.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(o,r){e=_("