lesli_admin 0.6.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/lesli_admin/admin-logo.svg +1 -1
  3. data/app/assets/javascripts/lesli_admin/application.js +14 -1
  4. data/app/assets/stylesheets/lesli_admin/application.css +594 -0
  5. data/app/controllers/lesli_admin/abouts_controller.rb +9 -6
  6. data/app/controllers/lesli_admin/accounts_controller.rb +14 -42
  7. data/app/controllers/lesli_admin/settings_controller.rb +58 -0
  8. data/app/helpers/lesli_admin/settings_helper.rb +4 -0
  9. data/app/models/lesli_admin/account.rb +2 -2
  10. data/app/models/lesli_admin/dashboard.rb +1 -19
  11. data/app/models/lesli_admin/setting.rb +4 -0
  12. data/app/services/lesli_admin/account_service.rb +1 -0
  13. data/app/views/lesli_admin/abouts/show.html.erb +73 -1
  14. data/app/views/lesli_admin/accounts/show.html.erb +16 -33
  15. data/app/views/lesli_admin/accounts/update.turbo_stream.erb +3 -0
  16. data/app/views/lesli_admin/dashboards/_component-installed-engines.html.erb +5 -0
  17. data/app/views/lesli_admin/dashboards/show.html.erb +4 -3
  18. data/app/views/lesli_admin/partials/{_engine-navigation.html.erb → _navigation.html.erb} +1 -0
  19. data/app/views/lesli_admin/settings/_form.html.erb +17 -0
  20. data/app/views/lesli_admin/settings/_setting.html.erb +2 -0
  21. data/app/views/lesli_admin/settings/edit.html.erb +12 -0
  22. data/app/views/lesli_admin/settings/index.html.erb +16 -0
  23. data/app/views/lesli_admin/settings/new.html.erb +11 -0
  24. data/app/views/lesli_admin/settings/show.html.erb +11 -0
  25. data/config/locales/translations.en.yml +1 -40
  26. data/config/locales/translations.es.yml +1 -40
  27. data/config/locales/translations.fr.yml +1 -40
  28. data/config/locales/translations.it.yml +1 -40
  29. data/config/locales/translations.pt.yml +1 -40
  30. data/config/routes.rb +3 -1
  31. data/db/migrate/{0101050210_create_lesli_admin_dashboard_components.rb → v1/0101000110_create_lesli_admin_accounts.rb} +4 -20
  32. data/db/migrate/{0101000110_create_lesli_admin_accounts.rb → v1/0101003010_create_lesli_admin_dashboards.rb} +2 -7
  33. data/db/seeds.rb +4 -10
  34. data/lib/lesli_admin/version.rb +2 -2
  35. data/lib/scss/application.scss +4 -0
  36. data/lib/vue/apps/about/show.vue +6 -6
  37. data/lib/vue/apps/dashboards/components/lesli-version.vue +2 -0
  38. data/lib/vue/stores/translations.json +0 -100
  39. data/readme.md +26 -20
  40. metadata +24 -27
  41. data/app/views/layouts/lesli_admin/application.html.erb +0 -15
  42. data/db/migrate/0101050110_create_lesli_admin_dashboards.rb +0 -51
@@ -1 +1,14 @@
1
- (()=>{var e={5927:(e,t,n)=>{"use strict";var i;function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,n)}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(s.push(i.value),!t||s.length!==t);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return s}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var y=function(){function e(){o(this,e)}return c(e,[{key:"shadeRGBColor",value:function(e,t){var n=t.split(","),i=e<0?0:255,r=e<0?-1*e:e,s=parseInt(n[0].slice(4),10),a=parseInt(n[1],10),o=parseInt(n[2],10);return"rgb("+(Math.round((i-s)*r)+s)+","+(Math.round((i-a)*r)+a)+","+(Math.round((i-o)*r)+o)+")"}},{key:"shadeHexColor",value:function(e,t){var n=parseInt(t.slice(1),16),i=e<0?0:255,r=e<0?-1*e:e,s=n>>16,a=n>>8&255,o=255&n;return"#"+(16777216+65536*(Math.round((i-s)*r)+s)+256*(Math.round((i-a)*r)+a)+(Math.round((i-o)*r)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return e.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===a(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,n=[];for(t=0;t<e.length;t++)n[t]=e[t];return n}},{key:"extend",value:function(e,t){var n=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t});var i=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){n.isObject(t[r])&&r in e?i[r]=n.extend(e[r],t[r]):Object.assign(i,u({},r,t[r]))})),i}},{key:"extendArray",value:function(t,n){var i=[];return t.map((function(t){i.push(e.extend(n,t))})),i}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(t){if(e.is("Array",t)){for(var n=[],i=0;i<t.length;i++)n[i]=this.clone(t[i]);return n}if(e.is("Null",t))return null;if(e.is("Date",t))return t;if("object"===a(t)){var r={};for(var s in t)t.hasOwnProperty(s)&&(r[s]=this.clone(t[s]));return r}return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var n="",i=e<0?"-":"",r=t[0].replace(".",""),s=Number(t[1])+1;if(s<0){for(n=i+"0.";s++;)n+="0";return n+r.replace(/^-/,"")}for(s-=r.length;s--;)n+="0";return r+n}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),n=e.clientHeight,i=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),n]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var i=0;i<n.length;i++)n[i]=parseInt(1===n[i].length?n[i]+n[i]:n[i],16);return void 0!==t&&n.push(t),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var n=[],i=2*Math.PI/t,r=0;r<t;r++){var s={};s.x=e*Math.sin(r*i),s.y=-e*Math.cos(r*i),n.push(s)}return n}},{key:"polarToCartesian",value:function(e,t,n,i){var r=(i-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=e.toString().slice();return n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style.key=t[n])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var i=e.indexOf("Edge/");return i>0&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)}},{key:"getGCD",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,i=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*i),t=Math.round(Math.abs(t)*i);t;){var r=t;t=e%t,e=r}return e/i}},{key:"getPrimeFactors",value:function(e){for(var t=[],n=2;e>=2;)e%n==0?(t.push(n),e/=n):n++;return t}},{key:"mod",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,i=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*i))%(t=Math.round(Math.abs(t)*i))/i}}]),e}(),w=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return c(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,n,i){e.attr(t).animate(i).attr(n)}},{key:"animateMarker",value:function(e,t,n,i,r,s){t||(t=0),e.attr({r:t,width:t,height:t}).animate(i,r).attr({r:n,width:n.width,height:n.height}).afterAll((function(){s()}))}},{key:"animateCircle",value:function(e,t,n,i,r){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(i,r).attr({r:n.r,cx:n.cx,cy:n.cy})}},{key:"animateRect",value:function(e,t,n,i,r){e.attr(t).animate(i).attr(n).afterAll((function(){return r()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,i=e.j,r=e.fill,s=e.pathFrom,a=e.pathTo,o=e.speed,l=e.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(t,n,i,"line"!==c.config.chart.type||c.globals.comboCharts?r:"stroke",s,a,o,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,n,i,r,s,a,o){var l=this,c=this.w;r||(r=e.attr("pathFrom")),s||(s=e.attr("pathTo"));var u=function(e){return"radar"===c.config.chart.type&&(a=1),"M 0 ".concat(c.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=u()),(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=u()),c.globals.shouldAnimate||(a=1),e.plot(r).animate(1,c.globals.easing,o).plot(r).animate(a,c.globals.easing,o).plot(s).afterAll((function(){y.isNumber(n)?n===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==i&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),k=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==n.config.states.normal.filter?this.applyFilter(e,t,n.config.states.normal.filter.type,n.config.states.normal.filter.value):n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var n=this.w;n.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,n){var i=this,r=this.w,s=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=r.config.chart.dropShadow;(n.enabled?i.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:s}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,n){var i=this,r=this.w,s=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=r.config.chart.dropShadow;(n.enabled?i.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:s}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(n){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:i});break;case"darken":this.addDarkenFilter(e,t,{intensity:i})}}},{key:"addShadow",value:function(e,t,n){var i,r=this.w,s=n.blur,a=n.top,o=n.left,l=n.color,c=n.opacity;if((null===(i=r.config.chart.dropShadow.enabledOnSeries)||void 0===i?void 0:i.length)>0&&-1===r.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;var u=e.flood(Array.isArray(l)?l[t]:l,c).composite(e.sourceAlpha,"in").offset(o,a).gaussianBlur(s).merge(e.source);return e.blend(e.source,u)}},{key:"dropShadow",value:function(e,t){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=t.top,a=t.left,o=t.blur,l=t.color,c=t.opacity,u=t.noUserSpaceOnUse,h=this.w;return e.unfilter(!0),y.isIE()&&"radialBar"===h.config.chart.type||(null===(n=h.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.length)>0&&-1===(null===(i=h.config.chart.dropShadow.enabledOnSeries)||void 0===i?void 0:i.indexOf(r))||(l=Array.isArray(l)?l[r]:l,e.filter((function(e){var t;t=y.isSafari()||y.isFirefox()||y.isIE()?e.flood(l,c).composite(e.sourceAlpha,"in").offset(a,s).gaussianBlur(o):e.flood(l,c).composite(e.sourceAlpha,"in").offset(a,s).gaussianBlur(o).merge(e.source),e.blend(e.source,t)})),u||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,n){var i=this.w;if(void 0!==i.globals.selectedDataPoints[t]&&i.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var r=i.config.states.active.filter;"none"!==r&&this.applyFilter(e,t,r.type,r.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),A=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"roundPathCorners",value:function(e,t){function n(e,t,n){var r=t.x-e.x,s=t.y-e.y,a=Math.sqrt(r*r+s*s);return i(e,t,Math.min(1,n/a))}function i(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function r(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function s(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var a=e.split(/[,\s]/).reduce((function(e,t){var n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e}),[]).reduce((function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e}),[]),o=[];if(a.length>1){var l=s(a[0]),c=null;"Z"==a[a.length-1][0]&&a[0].length>2&&(c=["L",l.x,l.y],a[a.length-1]=c),o.push(a[0]);for(var u=1;u<a.length;u++){var h=o[o.length-1],d=a[u],p=d==c?a[1]:a[u+1];if(p&&h&&h.length>2&&"L"==d[0]&&p.length>2&&"L"==p[0]){var f,g,m=s(h),v=s(d),b=s(p);f=n(v,m,t),g=n(v,b,t),r(d,f),d.origPoint=v,o.push(d);var x=i(f,v,.5),y=i(v,g,.5),w=["C",x.x,x.y,y.x,y.y,g.x,g.y];w.origPoint=v,o.push(w)}else o.push(d)}if(c){var k=s(o[o.length-1]);o.push(["Z"]),r(o[0],k)}}else o=a;return o.reduce((function(e,t){return e+t.join(" ")+" "}),"")}},{key:"drawLine",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:i,stroke:r,"stroke-dasharray":s,"stroke-width":a,"stroke-linecap":o})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w.globals.dom.Paper.rect();return u.attr({x:e,y:t,width:n>0?n:0,height:i>0?i:0,rx:r,ry:r,opacity:a,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),u.node.setAttribute("fill",s),u}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:i,stroke:t,"stroke-width":n})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var n=this.w.globals.dom.Paper.circle(2*e);return null!==t&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,n=void 0===t?"":t,i=e.stroke,r=void 0===i?"#a8a8a8":i,s=e.strokeWidth,a=void 0===s?1:s,o=e.fill,l=e.fillOpacity,c=void 0===l?1:l,u=e.strokeOpacity,h=void 0===u?1:u,d=e.classes,p=e.strokeLinecap,f=void 0===p?null:p,g=e.strokeDashArray,m=void 0===g?0:g,v=this.w;return null===f&&(f=v.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(n).attr({fill:o,"fill-opacity":c,stroke:r,"stroke-opacity":h,"stroke-linecap":f,"stroke-width":a,"stroke-dasharray":m,class:d})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;return null===n?i=[" L",e,t].join(" "):"H"===n?i=[" H",e].join(" "):"V"===n&&(i=[" V",t].join(" ")),i}},{key:"curve",value:function(e,t,n,i,r,s){return["C",e,t,n,i,r,s].join(" ")}},{key:"quadraticCurve",value:function(e,t,n,i){return["Q",e,t,n,i].join(" ")}},{key:"arc",value:function(e,t,n,i,r,s,a){var o="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a"),[o,e,t,n,i,r,s,a].join(" ")}},{key:"renderPaths",value:function(e){var t,n=e.j,i=e.realIndex,r=e.pathFrom,a=e.pathTo,o=e.stroke,l=e.strokeWidth,c=e.strokeLinecap,u=e.fill,h=e.animationDelay,d=e.initialSpeed,p=e.dataChangeSpeed,f=e.className,g=e.shouldClipToGrid,m=void 0===g||g,v=e.bindEventsOnPaths,b=void 0===v||v,x=e.drawShadow,y=void 0===x||x,A=this.w,S=new k(this.ctx),C=new w(this.ctx),_=this.w.config.chart.animations.enabled,E=_&&this.w.config.chart.animations.dynamicAnimation.enabled,L=!!(_&&!A.globals.resized||E&&A.globals.dataChanged&&A.globals.shouldAnimate);L?t=r:(t=a,A.globals.animationEnded=!0);var T,D=A.config.stroke.dashArray;T=Array.isArray(D)?D[i]:A.config.stroke.dashArray;var P=this.drawPath({d:t,stroke:o,strokeWidth:l,fill:u,fillOpacity:1,classes:f,strokeLinecap:c,strokeDashArray:T});if(P.attr("index",i),m&&P.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)S.getDefaultFilter(P,i);else if(A.config.chart.dropShadow.enabled&&y){var M=A.config.chart.dropShadow;S.dropShadow(P,M,i)}b&&(P.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,P)),P.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,P)),P.node.addEventListener("mousedown",this.pathMouseDown.bind(this,P))),P.attr({pathTo:a,pathFrom:r});var O={el:P,j:n,realIndex:i,pathFrom:r,pathTo:a,fill:u,strokeWidth:l,delay:h};return!_||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||C.showDelayedElements():C.animatePathsGradually(s(s({},O),{},{speed:d})),A.globals.dataChanged&&E&&L&&C.animatePathsGradually(s(s({},O),{},{speed:p})),P}},{key:"drawPattern",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,n,(function(s){"horizontalLines"===e?s.line(0,0,n,0).stroke({color:i,width:r+1}):"verticalLines"===e?s.line(0,0,0,t).stroke({color:i,width:r+1}):"slantedLines"===e?s.line(0,0,t,n).stroke({color:i,width:r}):"squares"===e?s.rect(t,n).fill("none").stroke({color:i,width:r}):"circles"===e&&s.circle(t).fill("none").stroke({color:i,width:r})}))}},{key:"drawGradient",value:function(e,t,n,i,r){var s,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=y.hexToRgba(t,i)),n.length<9&&0===n.indexOf("#")&&(n=y.hexToRgba(n,r));var h=0,d=1,p=1,f=null;null!==o&&(h=void 0!==o[0]?o[0]/100:0,d=void 0!==o[1]?o[1]/100:1,p=void 0!==o[2]?o[2]/100:1,f=void 0!==o[3]?o[3]/100:null);var g=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(s=null===l||0===l.length?u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){e.at(h,t,i),e.at(d,n,r),e.at(p,n,r),null!==f&&e.at(f,t,i)})):u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),g){var m=u.globals.gridWidth/2,v=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?s.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:v,r:a}):s.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?s.from(0,0).to(0,1):"diagonal"===e?s.from(0,0).to(1,1):"horizontal"===e?s.from(0,1).to(1,1):"diagonal2"===e&&s.from(1,0).to(0,1);return s}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,i=e.fontSize,r=e.fontFamily,s=this.getTextRects(t,i,r),a=s.width/t.length,o=Math.floor(n/a);return n<s.width?t.slice(0,o-3)+"...":t}},{key:"drawText",value:function(e){var t=this,n=e.x,i=e.y,r=e.text,a=e.textAnchor,o=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.foreColor,h=e.opacity,d=e.maxWidth,p=e.cssClass,f=void 0===p?"":p,g=e.isPlainText,m=void 0===g||g,v=e.dominantBaseline,b=void 0===v?"auto":v,x=this.w;void 0===r&&(r="");var y=r;a||(a="start"),u&&u.length||(u=x.config.chart.foreColor),l=l||x.config.chart.fontFamily,c=c||"regular";var w,k={maxWidth:d,fontSize:o=o||"11px",fontFamily:l};return Array.isArray(r)?w=x.globals.dom.Paper.text((function(e){for(var n=0;n<r.length;n++)y=r[n],d&&(y=t.getTextBasedOnMaxWidth(s({text:r[n]},k))),0===n?e.tspan(y):e.tspan(y).newLine()})):(d&&(y=this.getTextBasedOnMaxWidth(s({text:r},k))),w=m?x.globals.dom.Paper.plain(r):x.globals.dom.Paper.text((function(e){return e.tspan(y)}))),w.attr({x:n,y:i,"text-anchor":a,"dominant-baseline":b,"font-size":o,"font-family":l,"font-weight":c,fill:u,class:"apexcharts-text "+f}),w.node.style.fontFamily=l,w.node.style.opacity=h,w}},{key:"createGroupWithAttributes",value:function(e,t,n,i){var r=this.group();return n.forEach((function(e){return r.add(e)})),r.attr({class:i.class?i.class:"",cy:t,cx:e}),r}},{key:"drawPlus",value:function(e,t,n,i){var r=n/2,s=this.drawLine(e,t-r,e,t+r,i.pointStrokeColor,i.pointStrokeDashArray,i.pointStrokeWidth,i.pointStrokeLineCap),a=this.drawLine(e-r,t,e+r,t,i.pointStrokeColor,i.pointStrokeDashArray,i.pointStrokeWidth,i.pointStrokeLineCap);return this.createGroupWithAttributes(e,t,[s,a],i)}},{key:"drawX",value:function(e,t,n,i){var r=n/2,s=this.drawLine(e-r,t-r,e+r,t+r,i.pointStrokeColor,i.pointStrokeDashArray,i.pointStrokeWidth,i.pointStrokeLineCap),a=this.drawLine(e-r,t+r,e+r,t-r,i.pointStrokeColor,i.pointStrokeDashArray,i.pointStrokeWidth,i.pointStrokeLineCap);return this.createGroupWithAttributes(e,t,[s,a],i)}},{key:"drawMarker",value:function(e,t,n){e=e||0;var i=n.pSize||0,r=null;if("X"===(null==n?void 0:n.shape)||"x"===(null==n?void 0:n.shape))r=this.drawX(e,t,i,n);else if("plus"===(null==n?void 0:n.shape)||"+"===(null==n?void 0:n.shape))r=this.drawPlus(e,t,i,n);else if("square"===n.shape||"rect"===n.shape){var s=void 0===n.pRadius?i/2:n.pRadius;null!==t&&i||(i=0,s=0);var a=1.2*i+s,o=this.drawRect(a,a,a,a,s);o.attr({x:e-a/2,y:t-a/2,cx:e,cy:t,class:n.class?n.class:"",fill:n.pointFillColor,"fill-opacity":n.pointFillOpacity?n.pointFillOpacity:1,stroke:n.pointStrokeColor,"stroke-width":n.pointStrokeWidth?n.pointStrokeWidth:0,"stroke-opacity":n.pointStrokeOpacity?n.pointStrokeOpacity:1}),r=o}else"circle"!==n.shape&&n.shape||(y.isNumber(t)||(i=0,t=0),r=this.drawCircle(i,{cx:e,cy:t,class:n.class?n.class:"",stroke:n.pointStrokeColor,fill:n.pointFillColor,"fill-opacity":n.pointFillOpacity?n.pointFillOpacity:1,"stroke-width":n.pointStrokeWidth?n.pointStrokeWidth:0,"stroke-opacity":n.pointStrokeOpacity?n.pointStrokeOpacity:1}));return r}},{key:"pathMouseEnter",value:function(e,t){var n=this.w,i=new k(this.ctx),r=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10);if("function"==typeof n.config.chart.events.dataPointMouseEnter&&n.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}]),("none"===n.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==n.config.states.hover.filter.type&&!n.globals.isTouchDevice){var a=n.config.states.hover.filter;i.applyFilter(e,r,a.type,a.value)}}},{key:"pathMouseLeave",value:function(e,t){var n=this.w,i=new k(this.ctx),r=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10);"function"==typeof n.config.chart.events.dataPointMouseLeave&&n.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:r,dataPointIndex:s,w:n}]),"none"!==n.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==n.config.states.hover.filter.type&&i.getDefaultFilter(e,r)}},{key:"pathMouseDown",value:function(e,t){var n=this.w,i=new k(this.ctx),r=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10),a="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),n.globals.selectedDataPoints[r].indexOf(s)>-1){var o=n.globals.selectedDataPoints[r].indexOf(s);n.globals.selectedDataPoints[r].splice(o,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var l=n.globals.dom.Paper.select(".apexcharts-series path").members,c=n.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),i.getDefaultFilter(e,r)}))};u(l),u(c)}e.node.setAttribute("selected","true"),a="true",void 0===n.globals.selectedDataPoints[r]&&(n.globals.selectedDataPoints[r]=[]),n.globals.selectedDataPoints[r].push(s)}if("true"===a){var h=n.config.states.active.filter;if("none"!==h)i.applyFilter(e,r,h.type,h.value);else if("none"!==n.config.states.hover.filter&&!n.globals.isTouchDevice){var d=n.config.states.hover.filter;i.applyFilter(e,r,d.type,d.value)}}else"none"!==n.config.states.active.filter.type&&("none"===n.config.states.hover.filter.type||n.globals.isTouchDevice?i.getDefaultFilter(e,r):(d=n.config.states.hover.filter,i.applyFilter(e,r,d.type,d.value)));"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:s,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:s,w:n}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,n,i){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.w,a=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});i&&a.attr("transform",i),s.globals.dom.Paper.add(a);var o=a.bbox();return r||(o=a.node.getBoundingClientRect()),a.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(e,t,n){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(var i=t.length-3;i>0;i-=3)if(e.getSubStringLength(0,i)<=n/1.1)return void(e.textContent=t.substring(0,i)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),e}(),S=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,n=[];if(0===t.globals.series.length)return n;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var r=0,s=0;s<t.globals.series.length;s++)void 0!==t.globals.series[s][i]&&-1===e.indexOf(s)&&(r+=t.globals.series[s][i]);n.push(r)}return n}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,n=[];return t.globals.seriesGroups.forEach((function(i){var r=[];t.config.series.forEach((function(e,t){i.indexOf(e.name)>-1&&r.push(t)}));var s=t.globals.series.map((function(e,t){return-1===r.indexOf(t)?t:-1})).filter((function(e){return-1!==e}));n.push(e.getStackedSeriesTotals(s))})),n}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,n){return e===n[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map((function(e,n){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach((function(e){t=Math.max(t,e.size)})),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var n=0;if(Array.isArray(e))for(var i=0;i<e.length;i++)n+=e[i];else n+=e;return n}))}},{key:"getSeriesTotalsXRange",value:function(e,t){var n=this.w;return n.globals.series.map((function(i,r){for(var s=0,a=0;a<i.length;a++)n.globals.seriesX[r][a]>e&&n.globals.seriesX[r][a]<t&&(s+=i[a]);return s}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,n){var i=[];if(Array.isArray(t))for(var r=0;r<t.length;r++){var s=e.globals.stackedSeriesTotals[r],a=0;s&&(a=100*t[r]/s),i.push(a)}else{var o=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);i.push(o)}return i}))}},{key:"getCalculatedRatios",value:function(){var e,t,n,i=this.w.globals,r=[],s=0,a=[],o=.1,l=0;if(i.yRange=[],i.isMultipleYAxis)for(var c=0;c<i.minYArr.length;c++)i.yRange.push(Math.abs(i.minYArr[c]-i.maxYArr[c])),a.push(0);else i.yRange.push(Math.abs(i.minY-i.maxY));i.xRange=Math.abs(i.maxX-i.minX),i.zRange=Math.abs(i.maxZ-i.minZ);for(var u=0;u<i.yRange.length;u++)r.push(i.yRange[u]/i.gridHeight);if(t=i.xRange/i.gridWidth,e=i.yRange/i.gridWidth,n=i.xRange/i.gridHeight,(s=i.zRange/i.gridHeight*16)||(s=1),i.minY!==Number.MIN_VALUE&&0!==Math.abs(i.minY)&&(i.hasNegs=!0),i.isMultipleYAxis){a=[];for(var h=0;h<r.length;h++)a.push(-i.minYArr[h]/r[h])}else a.push(-i.minY/r[0]),i.minY!==Number.MIN_VALUE&&0!==Math.abs(i.minY)&&(o=-i.minY/e,l=i.minX/t);return{yRatio:r,invertedYRatio:e,zRatio:s,xRatio:t,invertedXRatio:n,baseLineInvertedY:o,baseLineY:a,baseLineX:l}}},{key:"getLogSeries",value:function(e){var t=this,n=this.w;return n.globals.seriesLog=e.map((function(e,i){return n.config.yaxis[i]&&n.config.yaxis[i].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(n.config.yaxis[i].logBase,e,i)})):e})),n.globals.invalidLogScale?e:n.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,n){if(0===t)return 0;var i=this.w,r=0===i.globals.minYArr[n]?-1:this.getBaseLog(e,i.globals.minYArr[n]),s=(0===i.globals.maxYArr[n]?0:this.getBaseLog(e,i.globals.maxYArr[n]))-r;return t<1?t/s:(this.getBaseLog(e,t)-r)/s}},{key:"getLogYRatios",value:function(e){var t=this,n=this.w,i=this.w.globals;return i.yLogRatio=e.slice(),i.logYRange=i.yRange.map((function(e,r){if(n.config.yaxis[r]&&t.w.config.yaxis[r].logarithmic){var s,a=-Number.MAX_VALUE,o=Number.MIN_VALUE;return i.seriesLog.forEach((function(e,t){e.forEach((function(e){n.config.yaxis[t]&&n.config.yaxis[t].logarithmic&&(a=Math.max(e,a),o=Math.min(e,o))}))})),s=Math.pow(i.yRange[r],Math.abs(o-a)/i.yRange[r]),i.yLogRatio[r]=s/i.gridHeight,s}})),i.invalidLogScale?e.slice():i.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,n=0,i=0;return e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||n++,void 0!==e.type&&i++})),i>0&&(t=!0),{comboBarCount:n,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,n){return t.yaxis&&(t=e.extendYAxis(t,n)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),C=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t}return c(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.w;if("vertical"===e.label.orientation){var i=null!==t?t:0,r=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i,"']"));if(null!==r){var s=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-s.height+4),"top"===e.label.position?r.setAttribute("y",parseFloat(r.getAttribute("y"))+s.width):r.setAttribute("y",parseFloat(r.getAttribute("y"))-s.width);var a=this.annoCtx.graphics.rotateAroundCenter(r),o=a.x,l=a.y;r.setAttribute("transform","rotate(-90 ".concat(o," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||void 0===t.label.text||void 0!==t.label.text&&!String(t.label.text).trim())return null;var i=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=e.getBoundingClientRect(),s=t.label.style.padding.left,a=t.label.style.padding.right,o=t.label.style.padding.top,l=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(o=t.label.style.padding.left,l=t.label.style.padding.right,s=t.label.style.padding.top,a=t.label.style.padding.bottom);var c=r.left-i.left-s,u=r.top-i.top-o,h=this.annoCtx.graphics.drawRect(c-n.globals.barPadForNumericAxis,u,r.width+s+a,r.height+o+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&h.node.classList.add(t.id),h}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(n,i,r){var s=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(i,"']"));if(s){var a=s.parentNode,o=e.addBackgroundToAnno(s,n);o&&(a.insertBefore(o.node,s),n.label.mouseEnter&&o.node.addEventListener("mouseenter",n.label.mouseEnter.bind(e,n)),n.label.mouseLeave&&o.node.addEventListener("mouseleave",n.label.mouseLeave.bind(e,n)),n.label.click&&o.node.addEventListener("click",n.label.click.bind(e,n)))}};t.config.annotations.xaxis.map((function(e,t){n(e,t,"xaxis")})),t.config.annotations.yaxis.map((function(e,t){n(e,t,"yaxis")})),t.config.annotations.points.map((function(e,t){n(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var n,i="y1"===e?t.y:t.y2,r=this.w;if(this.annoCtx.invertAxis){var s=r.globals.labels.indexOf(i);r.config.xaxis.convertedCatToNumeric&&(s=r.globals.categoryLabels.indexOf(i));var a=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(s+1)+")");a&&(n=parseFloat(a.getAttribute("y"))),void 0!==t.seriesIndex&&r.globals.barHeight&&(n=n-r.globals.barHeight/2*(r.globals.series.length-1)+r.globals.barHeight*t.seriesIndex)}else{var o;o=r.config.yaxis[t.yAxisIndex].logarithmic?(i=new S(this.annoCtx.ctx).getLogVal(i,t.yAxisIndex))/r.globals.yLogRatio[t.yAxisIndex]:(i-r.globals.minYArr[t.yAxisIndex])/(r.globals.yRange[t.yAxisIndex]/r.globals.gridHeight),n=r.globals.gridHeight-o,!t.marker||void 0!==t.y&&null!==t.y||(n=0),r.config.yaxis[t.yAxisIndex]&&r.config.yaxis[t.yAxisIndex].reversed&&(n=o)}return"string"==typeof i&&i.indexOf("px")>-1&&(n=parseFloat(i)),n}},{key:"getX1X2",value:function(e,t){var n=this.w,i=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,r=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,s=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,a=(t.x-i)/(s/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(a=(r-t.x)/(s/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||(a=this.getStringX(t.x));var o=(t.x2-i)/(s/n.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(o=(r-t.x2)/(s/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||(o=this.getStringX(t.x2)),void 0!==t.x&&null!==t.x||!t.marker||(a=n.globals.gridWidth),"x1"===e&&"string"==typeof t.x&&t.x.indexOf("px")>-1&&(a=parseFloat(t.x)),"x2"===e&&"string"==typeof t.x2&&t.x2.indexOf("px")>-1&&(o=parseFloat(t.x2)),void 0!==t.seriesIndex&&n.globals.barWidth&&!this.annoCtx.invertAxis&&(a=a-n.globals.barWidth/2*(n.globals.series.length-1)+n.globals.barWidth*t.seriesIndex),"x1"===e?a:o}},{key:"getStringX",value:function(e){var t=this.w,n=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var i=t.globals.labels.indexOf(e),r=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(i+1)+")");return r&&(n=parseFloat(r.getAttribute("x"))),n}}]),e}(),_=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new C(this.annoCtx)}return c(e,[{key:"addXaxisAnnotation",value:function(e,t,n){var i,r=this.w,s=this.helpers.getX1X2("x1",e),a=e.label.text,o=e.strokeDashArray;if(y.isNumber(s)){if(null===e.x2||void 0===e.x2){var l=this.annoCtx.graphics.drawLine(s+e.offsetX,0+e.offsetY,s+e.offsetX,r.globals.gridHeight+e.offsetY,e.borderColor,o,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((i=this.helpers.getX1X2("x2",e))<s){var c=s;s=i,i=c}var u=this.annoCtx.graphics.drawRect(s+e.offsetX,0+e.offsetY,i-s,r.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,o);u.node.classList.add("apexcharts-annotation-rect"),u.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}var h=this.annoCtx.graphics.getTextRects(a,parseFloat(e.label.style.fontSize)),d="top"===e.label.position?4:"center"===e.label.position?r.globals.gridHeight/2+("vertical"===e.label.orientation?h.width/2:0):r.globals.gridHeight,p=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:d+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?h.width/2-12:-h.width/2:0),text:a,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});p.attr({rel:n}),t.appendChild(p.node),this.annoCtx.helpers.setOrientations(e,n)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,i){e.addXaxisAnnotation(t,n.node,i)})),n}}]),e}(),E=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new C(this.annoCtx)}return c(e,[{key:"addYaxisAnnotation",value:function(e,t,n){var i,r=this.w,s=e.strokeDashArray,a=this.helpers.getY1Y2("y1",e),o=e.label.text;if(null===e.y2||void 0===e.y2){var l=this.annoCtx.graphics.drawLine(0+e.offsetX,a+e.offsetY,this._getYAxisAnnotationWidth(e),a+e.offsetY,e.borderColor,s,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((i=this.helpers.getY1Y2("y2",e))>a){var c=a;a=i,i=c}var u=this.annoCtx.graphics.drawRect(0+e.offsetX,i+e.offsetY,this._getYAxisAnnotationWidth(e),a-i,0,e.fillColor,e.opacity,1,e.borderColor,s);u.node.classList.add("apexcharts-annotation-rect"),u.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}var h="right"===e.label.position?r.globals.gridWidth:"center"===e.label.position?r.globals.gridWidth/2:0,d=this.annoCtx.graphics.drawText({x:h+e.label.offsetX,y:(null!=i?i:a)+e.label.offsetY-3,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});d.attr({rel:n}),t.appendChild(d.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map((function(t,i){e.addYaxisAnnotation(t,n.node,i)})),n}}]),e}(),L=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new C(this.annoCtx)}return c(e,[{key:"addPointAnnotation",value:function(e,t,n){this.w;var i=this.helpers.getX1X2("x1",e),r=this.helpers.getY1Y2("y1",e);if(y.isNumber(i)){var s={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},a=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,r+e.marker.offsetY,s);t.appendChild(a.node);var o=e.label.text?e.label.text:"",l=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:r+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(l.attr({rel:n}),t.appendChild(l.node),e.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});c.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(r+e.customSVG.offsetY,")")}),c.node.innerHTML=e.customSVG.SVG,t.appendChild(c.node)}if(e.image.path){var u=e.image.width?e.image.width:20,h=e.image.height?e.image.height:20;a=this.annoCtx.addImage({x:i+e.image.offsetX-u/2,y:r+e.image.offsetY-h/2,width:u,height:h,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&a.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&a.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&a.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,i){e.addPointAnnotation(t,n.node,i)})),n}}]),e}(),T={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},D=function(){function e(){o(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return c(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[T],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),P=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.graphics=new A(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new C(this),this.xAxisAnnotations=new _(this),this.yAxisAnnotations=new E(this),this.pointsAnnotations=new L(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return c(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),i=this.pointsAnnotations.drawPointAnnotations(),r=e.config.chart.animations.enabled,s=[t,n,i],a=[n.node,t.node,i.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(s[o]),!r||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&a[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:a[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,n){e.addImage(t,n)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,n){e.addText(t,n)}))}},{key:"addXaxisAnnotation",value:function(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}},{key:"addYaxisAnnotation",value:function(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}},{key:"addPointAnnotation",value:function(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}},{key:"addText",value:function(e,t){var n=e.x,i=e.y,r=e.text,s=e.textAnchor,a=e.foreColor,o=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.cssClass,h=e.backgroundColor,d=e.borderWidth,p=e.strokeDashArray,f=e.borderRadius,g=e.borderColor,m=e.appendTo,v=void 0===m?".apexcharts-svg":m,b=e.paddingLeft,x=void 0===b?4:b,y=e.paddingRight,w=void 0===y?4:y,k=e.paddingBottom,A=void 0===k?2:k,S=e.paddingTop,C=void 0===S?2:S,_=this.w,E=this.graphics.drawText({x:n,y:i,text:r,textAnchor:s||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||_.config.chart.fontFamily,foreColor:a||_.config.chart.foreColor,cssClass:u}),L=_.globals.dom.baseEl.querySelector(v);L&&L.appendChild(E.node);var T=E.bbox();if(r){var D=this.graphics.drawRect(T.x-x,T.y-C,T.width+x+w,T.height+A+C,f,h||"transparent",1,d,g,p);L.insertBefore(D.node,E.node)}}},{key:"addImage",value:function(e,t){var n=this.w,i=e.path,r=e.x,s=void 0===r?0:r,a=e.y,o=void 0===a?0:a,l=e.width,c=void 0===l?20:l,u=e.height,h=void 0===u?20:u,d=e.appendTo,p=void 0===d?".apexcharts-svg":d,f=n.globals.dom.Paper.image(i);f.size(c,h).move(s,o);var g=n.globals.dom.baseEl.querySelector(p);return g&&g.appendChild(f.node),f}},{key:"addXaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,t,n){return void 0===this.invertAxis&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var t=e.params,n=e.pushToMemory,i=e.context,r=e.type,s=e.contextMethod,a=i,o=a.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),c=l.childNodes.length+1,u=new D,h=Object.assign({},"xaxis"===r?u.xAxisAnnotation:"yaxis"===r?u.yAxisAnnotation:u.pointAnnotation),d=y.extend(h,t);switch(r){case"xaxis":this.addXaxisAnnotation(d,l,c);break;case"yaxis":this.addYaxisAnnotation(d,l,c);break;case"point":this.addPointAnnotation(d,l,c)}var p=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(p,d);return f&&l.insertBefore(f.node,p),n&&o.globals.memory.methodsToExec.push({context:a,id:d.id?d.id:y.randomId(),method:s,label:"addAnnotation",params:t}),i}},{key:"clearAnnotations",value:function(e){var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map((function(e,n){"addText"!==e.label&&"addAnnotation"!==e.label||t.globals.memory.methodsToExec.splice(n,1)})),n=y.listToArray(n),Array.prototype.forEach.call(n,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var n=e.w,i=n.globals.dom.baseEl.querySelectorAll(".".concat(t));i&&(n.globals.memory.methodsToExec.map((function(e,i){e.id===t&&n.globals.memory.methodsToExec.splice(i,1)})),Array.prototype.forEach.call(i,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),M=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return c(e,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var n=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(v(n.months)),s=[""].concat(v(n.shortMonths)),a=[""].concat(v(n.days)),o=[""].concat(v(n.shortDays));function l(e,t){var n=e+"";for(t=t||2;n.length<t;)n="0"+n;return n}var c=i?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(i?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+s[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var h=i?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+a[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(h))).replace(/(^|[^\\])d/g,"$1"+h);var d=i?e.getUTCHours():e.getHours(),p=d>12?d-12:0===d?12:d;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(d))).replace(/(^|[^\\])H/g,"$1"+d)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var f=i?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(f))).replace(/(^|[^\\])m/g,"$1"+f);var g=i?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var m=i?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var b=d<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var x=b.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+x)).replace(/(^|[^\\])t/g,"$1"+x.charAt(0));var y=-e.getTimezoneOffset(),w=i||!y?"Z":y>0?"+":"-";if(!i){var k=(y=Math.abs(y))%60;w+=l(Math.floor(y/60))+":"+l(k)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var A=(i?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(a[0],"g"),a[A])).replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(r[0],"g"),r[u])).replace(new RegExp(s[0],"g"),s[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var i=this.w;void 0!==i.config.xaxis.min&&(e=i.config.xaxis.min),void 0!==i.config.xaxis.max&&(t=i.config.xaxis.max);var r=this.getDate(e),s=this.getDate(t),a=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(a[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(a[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(a[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(a[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(a[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(a[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(a[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,n){return this.determineDaysOfMonths(e,t)-n}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,n){var i=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&i++,i}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=y.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),e}(),O=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return c(e,[{key:"xLabelFormat",value:function(e,t,n,i){var r=this.w;if("datetime"===r.config.xaxis.type&&void 0===r.config.xaxis.labels.formatter&&void 0===r.config.tooltip.x.formatter){var s=new M(this.ctx);return s.formatDate(s.getDate(t),r.config.tooltip.x.format)}return e(t,n,i)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,n){var i=this.w;return y.isNumber(e)&&(e=0!==i.globals.yValueDecimal?e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:i.globals.yValueDecimal):i.globals.maxYArr[n]-i.globals.minYArr[n]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(y.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(y.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var n=t.globals.maxX-t.globals.minX;return n>0&&n<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(n,i){void 0!==n.labels.formatter?t.globals.yLabelFormatters[i]=n.labels.formatter:t.globals.yLabelFormatters[i]=function(r){return t.globals.xyCharts?Array.isArray(r)?r.map((function(t){return e.defaultYFormatter(t,n,i)})):e.defaultYFormatter(r,n,i):r}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),R=function(e){var t,n=e.isTimeline,i=e.ctx,r=e.seriesIndex,s=e.dataPointIndex,a=e.y1,o=e.y2,l=e.w,c=l.globals.seriesRangeStart[r][s],u=l.globals.seriesRangeEnd[r][s],h=l.globals.labels[s],d=l.config.series[r].name?l.config.series[r].name:"",p=l.globals.ttKeyFormatter,f=l.config.tooltip.y.title.formatter,g={w:l,seriesIndex:r,dataPointIndex:s,start:c,end:u};"function"==typeof f&&(d=f(d,g)),null!==(t=l.config.series[r].data[s])&&void 0!==t&&t.x&&(h=l.config.series[r].data[s].x),n||"datetime"===l.config.xaxis.type&&(h=new O(i).xLabelFormat(l.globals.ttKeyFormatter,h,h,{i:void 0,dateFormatter:new M(i).formatDate,w:l})),"function"==typeof p&&(h=p(h,g)),Number.isFinite(a)&&Number.isFinite(o)&&(c=a,u=o);var m="",v="",b=l.globals.colors[r];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var x=new M(i);m=x.formatDate(x.getDate(c),l.config.tooltip.x.format),v=x.formatDate(x.getDate(u),l.config.tooltip.x.format)}else m=c,v=u;else m=l.config.tooltip.x.formatter(c),v=l.config.tooltip.x.formatter(u);return{start:c,end:u,startVal:m,endVal:v,ylabel:h,color:b,seriesName:d}},I=function(e){var t=e.color,n=e.seriesName,i=e.ylabel,r=e.start,s=e.end,a=e.seriesIndex,o=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(a);r=l.yLbFormatter(r),s=l.yLbFormatter(s);var c=l.yLbFormatter(e.w.globals.series[a][o]),u='<span class="value start-value">\n '.concat(r,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(s,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(n||"")+'</span></div><div> <span class="category">'+i+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[a].type||"rangeBar"===e.w.config.series[a].type?u:"<span>".concat(c,"</span>"):u)+" </div></div>"},N=function(){function e(t){o(this,e),this.opts=t}return c(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),y.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),s(s({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,i=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,n,i,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,i=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,n,i,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var n=t.seriesIndex,i=t.dataPointIndex,r=t.w,s=function(){var e=r.globals.seriesRangeStart[n][i];return r.globals.seriesRangeEnd[n][i]-e};return r.globals.comboCharts?"rangeBar"===r.config.series[n].type||"rangeArea"===r.config.series[n].type?s():e:s()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=R(s(s({},e),{},{isTimeline:!0})),n=t.color,i=t.seriesName,r=t.ylabel,a=t.startVal,o=t.endVal;return I(s(s({},e),{},{color:n,seriesName:i,ylabel:r,start:a,end:o}))}(e):function(e){var t=R(e),n=t.color,i=t.seriesName,r=t.ylabel,a=t.start,o=t.end;return I(s(s({},e),{},{color:n,seriesName:i,ylabel:r,start:a,end:o}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,n;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(n=e.plotOptions.bar)&&void 0!==n&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=R(e),n=t.color,i=t.seriesName,r=t.ylabel,a=t.start,o=t.end;return I(s(s({},e),{},{color:n,seriesName:i,ylabel:r,start:a,end:o}))}(e)}}}}},{key:"brush",value:function(e){return y.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return s(s({},e),{},{plotOptions:s(s({},e.plotOptions),{},{bar:s(s({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return y.isNumber(e)?Math.floor(e):e};var i=e.xaxis.labels.formatter,r=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(r=n.map((function(e){return Array.isArray(e)?e:String(e)}))),r&&r.length&&(e.xaxis.labels.formatter=function(e){return y.isNumber(e)?i(r[Math.floor(e)-1]):i(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,n,i,r){var s=e.globals.seriesCandleO[t][n],a=e.globals.seriesCandleH[t][n],o=e.globals.seriesCandleM[t][n],l=e.globals.seriesCandleL[t][n],c=e.globals.seriesCandleC[t][n];return e.config.series[t].type&&e.config.series[t].type!==r?'<div class="apexcharts-custom-tooltip">\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][n],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(i[0],': <span class="value">')+s+"</span></div>"+"<div>".concat(i[1],': <span class="value">')+a+"</span></div>"+(o?"<div>".concat(i[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(i[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(i[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),F=function(){function e(t){o(this,e),this.opts=t}return c(e,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,i=new D,r=new N(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var s=i.init(),o={};if(n&&"object"===a(n)){var l,c,u,h,d,p,f,g,m={};m=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?r[n.chart.type]():r.line(),null!==(l=n.plotOptions)&&void 0!==l&&null!==(c=l.bar)&&void 0!==c&&c.isFunnel&&(m=r.funnel()),n.chart.stacked&&"bar"===n.chart.type&&(m=r.stackedBars()),null!==(u=n.chart.brush)&&void 0!==u&&u.enabled&&(m=r.brush(m)),n.chart.stacked&&"100%"===n.chart.stackType&&(n=r.stacked100(n)),null!==(h=n.plotOptions)&&void 0!==h&&null!==(d=h.bar)&&void 0!==d&&d.isDumbbell&&(n=r.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),(null!==(p=(n=this.checkForCatToNumericXAxis(this.chartType,m,n)).chart.sparkline)&&void 0!==p&&p.enabled||null!==(f=window.Apex.chart)&&void 0!==f&&null!==(g=f.sparkline)&&void 0!==g&&g.enabled)&&(m=r.sparkline(m)),o=y.extend(s,m)}var v=y.extend(o,window.Apex);return s=y.extend(v,n),this.handleUserInputErrors(s)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var i,r,s=new N(n),a=("bar"===e||"boxPlot"===e)&&(null===(i=n.plotOptions)||void 0===i||null===(r=i.bar)||void 0===r?void 0:r.horizontal),o="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==n.xaxis.type&&"numeric"!==n.xaxis.type,c=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return a||o||!l||"between"===c||(n=s.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new D;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=y.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[y.extend(n.yAxis,e.yaxis)]:e.yaxis=y.extendArray(e.yaxis,n.yAxis);var i=!1;e.yaxis.forEach((function(e){e.logarithmic&&(i=!0)}));var r=e.series;return t&&!r&&(r=t.config.series),i&&r.length!==e.yaxis.length&&r.length&&(e.yaxis=r.map((function(t,i){if(t.name||(r[i].name="series-".concat(i+1)),e.yaxis[i])return e.yaxis[i].seriesName=r[i].name,e.yaxis[i];var s=y.extend(n.yAxis,e.yaxis[0]);return s.show=!1,s}))),i&&r.length>1&&r.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new D;return e.annotations.yaxis=y.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new D;return e.annotations.xaxis=y.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new D;return e.annotations.points=y.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),B=function(){function e(){o(this,e)}return c(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=y.extend({},e),t.initialSeries=y.clone(e.series),t.lastXAxis=y.clone(t.initialConfig.xaxis),t.lastYAxis=y.clone(t.initialConfig.yaxis),t}}]),e}(),z=function(){function e(t){o(this,e),this.opts=t}return c(e,[{key:"init",value:function(){var e=new F(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new B).init(e)}}}]),e}(),Y=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return c(e,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,i=parseInt(t.globals.gridWidth,10),r=parseInt(t.globals.gridHeight,10),s=i>r?i:r,a=e.image,o=0,l=0;void 0===e.width&&void 0===e.height?void 0!==n.fill.image.width&&void 0!==n.fill.image.height?(o=n.fill.image.width+1,l=n.fill.image.height):(o=s+1,l=s):(o=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");A.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",a),A.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),u.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w,n=t.config.chart.type;return("bar"===n||"rangeBar"===n)&&t.config.plotOptions.bar.distributed||"heatmap"===n||"treemap"===n?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var n,i,r,s=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var a=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(a=t.globals.seriesColors[this.seriesIndex]),"function"==typeof a&&(a=a({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var o=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(s.fill.opacity)?s.fill.opacity[this.seriesIndex]:s.fill.opacity;e.color&&(a=e.color),a||(a="#fff",console.warn("undefined color - ApexCharts"));var c=a;if(-1===a.indexOf("rgb")?a.length<9&&(c=y.hexToRgba(a,l)):a.indexOf("rgba")>-1&&(l=y.getOpacityFromRGBA(a)),e.opacity&&(l=e.opacity),"pattern"===o&&(i=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:i,fillColor:a,fillOpacity:l,defaultColor:c})),"gradient"===o&&(r=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:a,fillOpacity:l,i:this.seriesIndex})),"image"===o){var u=s.fill.image.src,h=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(u)?e.seriesNumber<u.length?u[e.seriesNumber]:u[0]:u,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(h)}),n="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(h,")")}else n="gradient"===o?r:"pattern"===o?i:c;return e.solid&&(n=c),n}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,n=this.opts,i=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors),void 0!==n.fillColors&&(i=[],Array.isArray(n.fillColors)?i=n.fillColors.slice():i.push(n.fillColors)),i}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,n=(e.patternFill,e.fillColor),i=e.fillOpacity,r=e.defaultColor,s=this.w.config.fill;t&&(s=t);var a=this.opts,o=new A(this.ctx),l=Array.isArray(s.pattern.strokeWidth)?s.pattern.strokeWidth[this.seriesIndex]:s.pattern.strokeWidth,c=n;return Array.isArray(s.pattern.style)?void 0!==s.pattern.style[a.seriesNumber]?o.drawPattern(s.pattern.style[a.seriesNumber],s.pattern.width,s.pattern.height,c,l,i):r:o.drawPattern(s.pattern.style,s.pattern.width,s.pattern.height,c,l,i)}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,n=e.fillOpacity,i=e.fillConfig,r=e.i,a=this.w.config.fill;i&&(a=s(s({},a),i));var o,l=this.opts,c=new A(this.ctx),u=new y,h=a.gradient.type,d=t,p=void 0===a.gradient.opacityFrom?n:Array.isArray(a.gradient.opacityFrom)?a.gradient.opacityFrom[r]:a.gradient.opacityFrom;d.indexOf("rgba")>-1&&(p=y.getOpacityFromRGBA(d));var f=void 0===a.gradient.opacityTo?n:Array.isArray(a.gradient.opacityTo)?a.gradient.opacityTo[r]:a.gradient.opacityTo;if(void 0===a.gradient.gradientToColors||0===a.gradient.gradientToColors.length)o="dark"===a.gradient.shade?u.shadeColor(-1*parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?y.rgb2hex(t):t):u.shadeColor(parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?y.rgb2hex(t):t);else if(a.gradient.gradientToColors[l.seriesNumber]){var g=a.gradient.gradientToColors[l.seriesNumber];o=g,g.indexOf("rgba")>-1&&(f=y.getOpacityFromRGBA(g))}else o=t;if(a.gradient.gradientFrom&&(d=a.gradient.gradientFrom),a.gradient.gradientTo&&(o=a.gradient.gradientTo),a.gradient.inverseColors){var m=d;d=o,o=m}return d.indexOf("rgb")>-1&&(d=y.rgb2hex(d)),o.indexOf("rgb")>-1&&(o=y.rgb2hex(o)),c.drawGradient(h,d,o,p,f,l.size,a.gradient.stops,a.gradient.colorStops,r)}}]),e}(),j=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e,t,n,i){var r,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.w,o=t,l=e,c=null,u=new A(this.ctx),h=a.config.markers.discrete&&a.config.markers.discrete.length;if((a.globals.markers.size[t]>0||s||h)&&(c=u.group({class:s||h?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(l.x))for(var d=0;d<l.x.length;d++){var p=n;1===n&&0===d&&(p=0),1===n&&1===d&&(p=1);var f="apexcharts-marker";if("line"!==a.config.chart.type&&"area"!==a.config.chart.type||a.globals.comboCharts||a.config.tooltip.intersect||(f+=" no-pointer-events"),(Array.isArray(a.config.markers.size)?a.globals.markers.size[t]>0:a.config.markers.size>0)||s||h){y.isNumber(l.y[d])?f+=" w".concat(y.randomId()):f="apexcharts-nullpoint";var g=this.getMarkerConfig({cssClass:f,seriesIndex:t,dataPointIndex:p});a.config.series[o].data[p]&&(a.config.series[o].data[p].fillColor&&(g.pointFillColor=a.config.series[o].data[p].fillColor),a.config.series[o].data[p].strokeColor&&(g.pointStrokeColor=a.config.series[o].data[p].strokeColor)),i&&(g.pSize=i),(l.x[d]<0||l.x[d]>a.globals.gridWidth||l.y[d]<-a.globals.markers.largestSize||l.y[d]>a.globals.gridHeight+a.globals.markers.largestSize)&&(g.pSize=0),(r=u.drawMarker(l.x[d],l.y[d],g)).attr("rel",p),r.attr("j",p),r.attr("index",t),r.node.setAttribute("default-marker-size",g.pSize),new k(this.ctx).setSelectionFilter(r,t,p),this.addEvents(r),c&&c.add(r)}else void 0===a.globals.pointsArray[t]&&(a.globals.pointsArray[t]=[]),a.globals.pointsArray[t].push([l.x[d],l.y[d]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,i=e.dataPointIndex,r=void 0===i?null:i,s=e.finishRadius,a=void 0===s?null:s,o=this.w,l=this.getMarkerStyle(n),c=o.globals.markers.size[n],u=o.config.markers;return null!==r&&u.discrete.length&&u.discrete.map((function(e){e.seriesIndex===n&&e.dataPointIndex===r&&(l.pointStrokeColor=e.strokeColor,l.pointFillColor=e.fillColor,c=e.size,l.pointShape=e.shape)})),{pSize:null===a?c:a,pRadius:u.radius,width:Array.isArray(u.width)?u.width[n]:u.width,height:Array.isArray(u.height)?u.height[n]:u.height,pointStrokeWidth:Array.isArray(u.strokeWidth)?u.strokeWidth[n]:u.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(u.shape)?u.shape[n]:u.shape),class:t,pointStrokeOpacity:Array.isArray(u.strokeOpacity)?u.strokeOpacity[n]:u.strokeOpacity,pointStrokeDashArray:Array.isArray(u.strokeDashArray)?u.strokeDashArray[n]:u.strokeDashArray,pointFillOpacity:Array.isArray(u.fillOpacity)?u.fillOpacity[n]:u.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var t=this.w,n=new A(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,n=t.globals.markers.colors,i=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[e]:i,pointFillColor:Array.isArray(n)?n[e]:n}}}]),e}(),H=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return c(e,[{key:"draw",value:function(e,t,n){var i=this.w,r=new A(this.ctx),s=n.realIndex,a=n.pointsPos,o=n.zRatio,l=n.elParent,c=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(i.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(i.globals.cuid,")")),Array.isArray(a.x))for(var u=0;u<a.x.length;u++){var h=t+1,d=!0;0===t&&0===u&&(h=0),0===t&&1===u&&(h=1);var p=0,f=i.globals.markers.size[s];if(o!==1/0){var g=i.config.plotOptions.bubble;f=i.globals.seriesZ[s][h],g.zScaling&&(f/=o),g.minBubbleRadius&&f<g.minBubbleRadius&&(f=g.minBubbleRadius),g.maxBubbleRadius&&f>g.maxBubbleRadius&&(f=g.maxBubbleRadius)}i.config.chart.animations.enabled||(p=f);var m=a.x[u],v=a.y[u];if(p=p||0,null!==v&&void 0!==i.globals.series[s][h]||(d=!1),d){var b=this.drawPoint(m,v,p,f,s,h,t);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(e,t,n,i,r,s,a){var o=this.w,l=r,c=new w(this.ctx),u=new k(this.ctx),h=new Y(this.ctx),d=new j(this.ctx),p=new A(this.ctx),f=d.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:s,finishRadius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[r]&&"bubble"===o.config.series[r].type?i:null});i=f.pSize;var g,m=h.fillPath({seriesNumber:r,dataPointIndex:s,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[r][a]});if("circle"===f.shape?g=p.drawCircle(n):"square"!==f.shape&&"rect"!==f.shape||(g=p.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),o.config.series[l].data[s]&&o.config.series[l].data[s].fillColor&&(m=o.config.series[l].data[s].fillColor),g.attr({x:e-f.width/2-f.pointStrokeWidth/2,y:t-f.height/2-f.pointStrokeWidth/2,cx:e,cy:t,fill:m,"fill-opacity":f.pointFillOpacity,stroke:f.pointStrokeColor,r:i,"stroke-width":f.pointStrokeWidth,"stroke-dasharray":f.pointStrokeDashArray,"stroke-opacity":f.pointStrokeOpacity}),o.config.chart.dropShadow.enabled){var v=o.config.chart.dropShadow;u.dropShadow(g,v,r)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var b=o.config.chart.animations.speed;c.animateMarker(g,0,"circle"===f.shape?i:{width:f.width,height:f.height},b,o.globals.easing,(function(){window.setTimeout((function(){c.animationCompleted(g)}),100)}))}if(o.globals.dataChanged&&"circle"===f.shape)if(this.dynamicAnim){var x,y,S,C,_=o.config.chart.animations.dynamicAnimation.speed;null!=(C=o.globals.previousPaths[r]&&o.globals.previousPaths[r][a])&&(x=C.x,y=C.y,S=void 0!==C.r?C.r:i);for(var E=0;E<o.globals.collapsedSeries.length;E++)o.globals.collapsedSeries[E].index===r&&(_=1,i=0);0===e&&0===t&&(i=0),c.animateCircle(g,{cx:x,cy:y,r:S},{cx:e,cy:t,r:i},_,o.globals.easing)}else g.attr({r:i});return g.attr({rel:s,j:s,index:r,"default-marker-size":i}),u.setSelectionFilter(g,r,s),d.addEvents(g),g.node.classList.add("apexcharts-marker"),g}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),W=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"dataLabelsCorrection",value:function(e,t,n,i,r,s,a){var o=this.w,l=!1,c=new A(this.ctx).getTextRects(n,a),u=c.width,h=c.height;t<0&&(t=0),t>o.globals.gridHeight+h&&(t=o.globals.gridHeight+h/2),void 0===o.globals.dataLabelsRects[i]&&(o.globals.dataLabelsRects[i]=[]),o.globals.dataLabelsRects[i].push({x:e,y:t,width:u,height:h});var d=o.globals.dataLabelsRects[i].length-2,p=void 0!==o.globals.lastDrawnDataLabelsIndexes[i]?o.globals.lastDrawnDataLabelsIndexes[i][o.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(void 0!==o.globals.dataLabelsRects[i][d]){var f=o.globals.dataLabelsRects[i][p];(e>f.x+f.width||t>f.y+f.height||t+h<f.y||e+u<f.x)&&(l=!0)}return(0===r||s)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,n=e.type,i=e.pos,r=e.i,s=e.j,a=e.isRangeStart,o=e.strokeWidth,l=void 0===o?2:o,c=this.w,u=new A(this.ctx),h=c.config.dataLabels,d=0,p=0,f=s,g=null;if(!h.enabled||!Array.isArray(i.x))return g;g=u.group({class:"apexcharts-data-labels"});for(var m=0;m<i.x.length;m++)if(d=i.x[m]+h.offsetX,p=i.y[m]+h.offsetY+l,!isNaN(d)){1===s&&0===m&&(f=0),1===s&&1===m&&(f=1);var v=c.globals.series[r][f];"rangeArea"===n&&(v=a?c.globals.seriesRangeStart[r][f]:c.globals.seriesRangeEnd[r][f]);var b="",x=function(e){return c.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:r,dataPointIndex:f,w:c})};"bubble"===c.config.chart.type?(b=x(v=c.globals.seriesZ[r][f]),p=i.y[m],p=new H(this.ctx).centerTextInBubble(p,r,f).y):void 0!==v&&(b=x(v)),this.plotDataLabelsText({x:d,y:p,text:b,i:r,j:f,parent:g,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels})}return g}},{key:"plotDataLabelsText",value:function(e){var t=this.w,n=new A(this.ctx),i=e.x,r=e.y,s=e.i,a=e.j,o=e.text,l=e.textAnchor,c=e.fontSize,u=e.parent,h=e.dataLabelsConfig,d=e.color,p=e.alwaysDrawDataLabel,f=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(s)<0)){var g={x:i,y:r,drawnextLabel:!0,textRects:null};f&&(g=this.dataLabelsCorrection(i,r,o,s,a,p,parseInt(h.style.fontSize,10))),t.globals.zoomed||(i=g.x,r=g.y),g.textRects&&(i<-20-g.textRects.width||i>t.globals.gridWidth+g.textRects.width+30)&&(o="");var m=t.globals.dataLabels.style.colors[s];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(m=t.globals.dataLabels.style.colors[a]),"function"==typeof m&&(m=m({series:t.globals.series,seriesIndex:s,dataPointIndex:a,w:t})),d&&(m=d);var v=h.offsetX,b=h.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(v=0,b=0),g.drawnextLabel){var x=n.drawText({width:100,height:parseInt(h.style.fontSize,10),x:i+v,y:r+b,foreColor:m,textAnchor:l||h.textAnchor,text:o,fontSize:c||h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight||"normal"});if(x.attr({class:"apexcharts-datalabel",cx:i,cy:r}),h.dropShadow.enabled){var y=h.dropShadow;new k(this.ctx).dropShadow(x,y)}u.add(x),void 0===t.globals.lastDrawnDataLabelsIndexes[s]&&(t.globals.lastDrawnDataLabelsIndexes[s]=[]),t.globals.lastDrawnDataLabelsIndexes[s].push(a)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,i=n.config.dataLabels.background,r=i.padding,s=i.padding/2,a=t.width,o=t.height,l=new A(this.ctx).drawRect(t.x-r,t.y-s/2,a+2*r,o+s,i.borderRadius,"transparent"===n.config.chart.background?"#fff":n.config.chart.background,i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new k(this.ctx).dropShadow(l,i.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n<t.length;n++){var i=t[n],r=i.getBBox(),s=null;if(r.width&&r.height&&(s=this.addBackgroundToDataLabel(i,r)),s){i.parentNode.insertBefore(s.node,i);var a=i.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?s.attr({fill:a}):s.animate().attr({fill:a}),i.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),i=0;i<t.length;i++)n&&n.insertBefore(t[i],n.nextSibling)}}]),e}(),X=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return c(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(y.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),n=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:n}}},{key:"addCollapsedClassToSeries",value:function(e,t){var n=this.w;function i(n){for(var i=0;i<n.length;i++)n[i].index===t&&e.node.classList.add("apexcharts-series-collapsed")}i(n.globals.collapsedSeries),i(n.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.w,r=y.clone(i.globals.initialSeries);i.globals.previousPaths=[],n?(i.globals.collapsedSeries=[],i.globals.ancillaryCollapsedSeries=[],i.globals.collapsedSeriesIndices=[],i.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),i.config.series=r,e&&(t&&(i.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n<e.length;n++)t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===e.type){var r=parseInt(t.getAttribute("rel"),10)-1,s=null,a=null;n.globals.axisCharts||"radialBar"===n.config.chart.type?n.globals.axisCharts?(s=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),a=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"))):s=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):s=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var o=0;o<i.length;o++)i[o].classList.add(this.legendInactiveClass);null!==s&&(n.globals.axisCharts||s.parentNode.classList.remove(this.legendInactiveClass),s.classList.remove(this.legendInactiveClass),null!==a&&a.classList.remove(this.legendInactiveClass))}else if("mouseout"===e.type)for(var l=0;l<i.length;l++)i[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var n=this,i=this.w,r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),s=function(e){for(var t=0;t<r.length;t++)r[t].classList[e](n.legendInactiveClass)};if("mousemove"===e.type){var a=parseInt(t.getAttribute("rel"),10)-1;s("add"),function(e){for(var t=0;t<r.length;t++){var i=parseInt(r[t].getAttribute("val"),10);i>=e.from&&i<=e.to&&r[t].classList.remove(n.legendInactiveClass)}}(i.config.plotOptions.heatmap.colorScale.ranges[a])}else"mouseout"===e.type&&s("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.w,i=0;if(n.config.series.length>1)for(var r=n.config.series.map((function(e,i){return e.data&&e.data.length>0&&-1===n.globals.collapsedSeriesIndices.indexOf(i)&&(!n.globals.comboCharts||0===t.length||t.length&&t.indexOf(n.config.series[i].type)>-1)?i:-1})),s="asc"===e?0:r.length-1;"asc"===e?s<r.length:s>=0;"asc"===e?s++:s--)if(-1!==r[s]){i=r[s];break}return i}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(e,t){return"bar"===e.type||"column"===e.type?t:-1})).filter((function(e){return-1!==e})):this.w.config.series.map((function(e,t){return t}))}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,n,i){for(var r=t[n].childNodes,s={type:i,paths:[],realIndex:t[n].getAttribute("data:realIndex")},a=0;a<r.length;a++)if(r[a].hasAttribute("pathTo")){var o=r[a].getAttribute("pathTo");s.paths.push({d:o})}e.globals.previousPaths.push(s)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach((function(n){for(var i,r=(i=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(i,"-series .apexcharts-series"))),s=0;s<r.length;s++)t(r,s,n)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(n.length>0)for(var i=function(t){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),i=[],r=function(e){var t=function(t){return n[e].getAttribute(t)},r={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};i.push({rect:r,color:n[e].getAttribute("color")})},s=0;s<n.length;s++)r(s);e.globals.previousPaths.push(i)},r=0;r<n.length;r++)i(r);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(n.length>0)for(var i=0;i<n.length;i++){for(var r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(i,"'] circle")),s=[],a=0;a<r.length;a++)s.push({x:r[a].getAttribute("cx"),y:r[a].getAttribute("cy"),r:r[a].getAttribute("r")});t.globals.previousPaths.push(s)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,n=new A(this.ctx),i=e.globals.svgWidth/2,r=e.globals.svgHeight/2,s="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(i=10,s="start"):"right"===t.align&&(i=e.globals.svgWidth-10,s="end"),"top"===t.verticalAlign?r=50:"bottom"===t.verticalAlign&&(r=e.globals.svgHeight-50),i+=t.offsetX,r=r+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var a=n.drawText({x:i,y:r,text:t.text,textAnchor:s,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(a)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,n=0;n<e.length;n++)if(0===e[n].length)for(var i=0;i<e[t.globals.maxValsInArrayIndex].length;i++)e[n].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,n=this.filteredSeriesX(),i=0;i<n.length-1;i++)if(n[i][0]!==n[i+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),V=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new S(this.ctx)}return c(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new X(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new X(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var n=this.w.config,i=this.w.globals,r="boxPlot"===n.chart.type||"boxPlot"===n.series[t].type,s=0;s<e[t].data.length;s++)if(void 0!==e[t].data[s][1]&&(Array.isArray(e[t].data[s][1])&&4===e[t].data[s][1].length&&!r?this.twoDSeries.push(y.parseNumber(e[t].data[s][1][3])):e[t].data[s].length>=5?this.twoDSeries.push(y.parseNumber(e[t].data[s][4])):this.twoDSeries.push(y.parseNumber(e[t].data[s][1])),i.dataFormatXNumeric=!0),"datetime"===n.xaxis.type){var a=new Date(e[t].data[s][0]);a=new Date(a).getTime(),this.twoDSeriesX.push(a)}else this.twoDSeriesX.push(e[t].data[s][0]);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o][2]&&(this.threeDSeries.push(e[t].data[o][2]),i.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var n=this.w.config,i=this.w.globals,r=new M(this.ctx),s=t;i.collapsedSeriesIndices.indexOf(t)>-1&&(s=this.activeSeriesIndex);for(var a=0;a<e[t].data.length;a++)void 0!==e[t].data[a].y&&(Array.isArray(e[t].data[a].y)?this.twoDSeries.push(y.parseNumber(e[t].data[a].y[e[t].data[a].y.length-1])):this.twoDSeries.push(y.parseNumber(e[t].data[a].y))),void 0!==e[t].data[a].goals&&Array.isArray(e[t].data[a].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[a].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var o=0;o<e[s].data.length;o++){var l="string"==typeof e[s].data[o].x,c=Array.isArray(e[s].data[o].x),u=!c&&!!r.isValidDate(e[s].data[o].x);if(l||u)if(l||n.xaxis.convertedCatToNumeric){var h=i.isBarHorizontal&&i.isRangeData;"datetime"!==n.xaxis.type||h?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[s].data[o].x),isNaN(e[s].data[o].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[s].data[o].x||(i.isXNumeric=!0)):this.twoDSeriesX.push(r.parseDate(e[s].data[o].x))}else"datetime"===n.xaxis.type?this.twoDSeriesX.push(r.parseDate(e[s].data[o].x.toString())):(i.dataFormatXNumeric=!0,i.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[s].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[s].data[o].x)):(i.isXNumeric=!0,i.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[s].data[o].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var d=0;d<e[t].data.length;d++)this.threeDSeries.push(e[t].data[d].z);i.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var n=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleRangeDataFormat("xy",e,t)),n.seriesRangeStart.push(i.start),n.seriesRangeEnd.push(i.end),n.seriesRange.push(i.rangeUniques),n.seriesRange.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,n){for(var i=0;i<e.y.length;i++)if(n!==i){var r=t.y1,s=t.y2,a=e.y[i].y1;r<=e.y[i].y2&&a<=s&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[i].rangeName)<0&&e.overlaps.push(e.y[i].rangeName))}}))}))})),i}},{key:"handleCandleStickBoxData",value:function(e,t){var n=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleCandleStickBoxDataFormat("xy",e,t)),n.seriesCandleO[t]=i.o,n.seriesCandleH[t]=i.h,n.seriesCandleM[t]=i.m,n.seriesCandleL[t]=i.l,n.seriesCandleC[t]=i.c,i}},{key:"handleRangeDataFormat",value:function(e,t,n){var i=[],r=[],s=t[n].data.filter((function(e,t,n){return t===n.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}}));if("array"===e)for(var a=0;a<t[n].data.length;a++)Array.isArray(t[n].data[a])?(i.push(t[n].data[a][1][0]),r.push(t[n].data[a][1][1])):(i.push(t[n].data[a]),r.push(t[n].data[a]));else if("xy"===e)for(var o=function(e){var a=Array.isArray(t[n].data[e].y),o=y.randomId(),l=t[n].data[e].x,c={y1:a?t[n].data[e].y[0]:t[n].data[e].y,y2:a?t[n].data[e].y[1]:t[n].data[e].y,rangeName:o};t[n].data[e].rangeName=o;var u=s.findIndex((function(e){return e.x===l}));s[u].y.push(c),i.push(c.y1),r.push(c.y2)},l=0;l<t[n].data.length;l++)o(l);return{start:i,end:r,rangeUniques:s}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,n){var i=this.w,r="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[n].type,s=[],a=[],o=[],l=[],c=[];if("array"===e)if(r&&6===t[n].data[0].length||!r&&5===t[n].data[0].length)for(var u=0;u<t[n].data.length;u++)s.push(t[n].data[u][1]),a.push(t[n].data[u][2]),r?(o.push(t[n].data[u][3]),l.push(t[n].data[u][4]),c.push(t[n].data[u][5])):(l.push(t[n].data[u][3]),c.push(t[n].data[u][4]));else for(var h=0;h<t[n].data.length;h++)Array.isArray(t[n].data[h][1])&&(s.push(t[n].data[h][1][0]),a.push(t[n].data[h][1][1]),r?(o.push(t[n].data[h][1][2]),l.push(t[n].data[h][1][3]),c.push(t[n].data[h][1][4])):(l.push(t[n].data[h][1][2]),c.push(t[n].data[h][1][3])));else if("xy"===e)for(var d=0;d<t[n].data.length;d++)Array.isArray(t[n].data[d].y)&&(s.push(t[n].data[d].y[0]),a.push(t[n].data[d].y[1]),r?(o.push(t[n].data[d].y[2]),l.push(t[n].data[d].y[3]),c.push(t[n].data[d].y[4])):(l.push(t[n].data[d].y[2]),c.push(t[n].data[d].y[3])));return{o:s,h:a,m:o,l,c}}},{key:"parseDataAxisCharts",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,r=this.w.config,s=this.w.globals,a=new M(i),o=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();if(s.isRangeBar="rangeBar"===r.chart.type&&s.isBarHorizontal,s.hasXaxisGroups="category"===r.xaxis.type&&r.xaxis.group.groups.length>0,s.hasXaxisGroups&&(s.groups=r.xaxis.group.groups),s.hasSeriesGroups=null===(t=e[0])||void 0===t?void 0:t.group,s.hasSeriesGroups){var l=[],c=v(new Set(e.map((function(e){return e.group}))));e.forEach((function(e,t){var n=c.indexOf(e.group);l[n]||(l[n]=[]),l[n].push(e.name)})),s.seriesGroups=l}for(var u=function(){for(var e=0;e<o.length;e++)if("string"==typeof o[e]){if(!a.isValidDate(o[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");n.twoDSeriesX.push(a.parseDate(o[e]))}else n.twoDSeriesX.push(o[e])},h=0;h<e.length;h++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[h].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type&&"rangeBar"!==e[h].type&&"rangeArea"!==e[h].type||(s.isRangeData=!0,"rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type||this.handleRangeData(e,h)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,h):this.isFormatXY()&&this.handleFormatXY(e,h),"candlestick"!==r.chart.type&&"candlestick"!==e[h].type&&"boxPlot"!==r.chart.type&&"boxPlot"!==e[h].type||this.handleCandleStickBoxData(e,h),s.series.push(this.twoDSeries),s.labels.push(this.twoDSeriesX),s.seriesX.push(this.twoDSeriesX),s.seriesGoals=this.seriesGoals,h!==this.activeSeriesIndex||this.fallbackToCategory||(s.isXNumeric=!0);else{"datetime"===r.xaxis.type?(s.isXNumeric=!0,u(),s.seriesX.push(this.twoDSeriesX)):"numeric"===r.xaxis.type&&(s.isXNumeric=!0,o.length>0&&(this.twoDSeriesX=o,s.seriesX.push(this.twoDSeriesX))),s.labels.push(this.twoDSeriesX);var d=e[h].data.map((function(e){return y.parseNumber(e)}));s.series.push(d)}s.seriesZ.push(this.threeDSeries),void 0!==e[h].name?s.seriesNames.push(e[h].name):s.seriesNames.push("series-"+parseInt(h+1,10)),void 0!==e[h].color?s.seriesColors.push(e[h].color):s.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,n=this.w.config;t.series=e.slice(),t.seriesNames=n.labels.slice();for(var i=0;i<t.series.length;i++)void 0===t.seriesNames[i]&&t.seriesNames.push("series-"+(i+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,n=this.w.globals;t.xaxis.categories.length>0?n.labels=t.xaxis.categories:t.labels.length>0?n.labels=t.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map((function(e){e.forEach((function(e){n.labels.indexOf(e.x)<0&&e.x&&n.labels.push(e.x)}))})),n.labels=Array.from(new Set(n.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new N(t).convertCatToNumericXaxis(t,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,n=this.w.config,i=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var r=n.series.map((function(e,t){return e.data.filter((function(e,t,n){return n.findIndex((function(t){return t.x===e.x}))===t}))})),s=r.reduce((function(e,t,n,i){return i[e].length>t.length?e:n}),0),a=0;a<r[s].length;a++)i.push(a+1);else for(var o=0;o<t.series[t.maxValsInArrayIndex].length;o++)i.push(o+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(i);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===i.length){i=t.axisCharts?[]:t.series.map((function(e,t){return t+1}));for(var c=0;c<e.length;c++)t.seriesX.push(i)}t.labels=i,n.xaxis.convertedCatToNumeric&&(t.categoryLabels=i.map((function(e){return n.xaxis.labels.formatter(e)}))),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,n=t.config,i=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),i.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),n.chart.stacked){var r=new X(this.ctx);i.series=r.setNullSeriesToZeroValues(i.series)}this.coreUtils.getSeriesTotals(),i.axisCharts&&(i.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),i.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),i.dataFormatXNumeric||i.isXNumeric&&("numeric"!==n.xaxis.type||0!==n.labels.length||0!==n.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var s=this.coreUtils.getCategoryLabels(i.labels),a=0;a<s.length;a++)if(Array.isArray(s[a])){i.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this,t=this.w;t.globals.ignoreYAxisIndexes=t.globals.collapsedSeries.map((function(n,i){if(e.w.globals.isMultipleYAxis&&!t.config.chart.stacked)return n.index}))}}]),e}(),U=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getLabel",value:function(e,t,n,i){var r,s,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,u=void 0===e[i]?"":e[i],h=u,d=c.globals.xLabelFormatter,p=c.config.xaxis.labels.formatter,f=!1,g=new O(this.ctx),m=u;l&&(h=g.xLabelFormat(d,u,m,{i,dateFormatter:new M(this.ctx).formatDate,w:c}),void 0!==p&&(h=p(u,e[i],{i,dateFormatter:new M(this.ctx).formatDate,w:c}))),t.length>0?(r=t[i].unit,s=null,t.forEach((function(e){"month"===e.unit?s="year":"day"===e.unit?s="month":"hour"===e.unit?s="day":"minute"===e.unit&&(s="hour")})),f=s===r,n=t[i].position,h=t[i].value):"datetime"===c.config.xaxis.type&&void 0===p&&(h=""),void 0===h&&(h=""),h=Array.isArray(h)?h:h.toString();var v,b=new A(this.ctx);v=c.globals.rotateXLabels&&l?b.getTextRects(h,parseInt(o,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(h,parseInt(o,10));var x=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(h)&&("NaN"===String(h)||a.indexOf(h)>=0&&x)&&(h=""),{x:n,text:h,textRect:v,isBold:f}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var i=this.w,r=i.config.xaxis.tickAmount;return"dataPoints"===r&&(r=Math.round(i.globals.gridWidth/120)),r>n||e%Math.round(n/(r+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,i,r){var s=this.w;if(0===e&&s.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&s.globals.skipLastTimelinelabel&&(t.text=""),s.config.xaxis.labels.hideOverlappingLabels&&i.length>0){var a=r[r.length-1];t.x<a.textRect.width/(s.globals.rotateXLabels?Math.abs(s.config.xaxis.labels.rotate)/12:1.01)+a.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(e){var t=this.w,n=new S(this.ctx);return!t.config.yaxis[e].show||!t.config.yaxis[e].showForNullSeries&&n.isSeriesNull(e)&&-1===t.globals.collapsedSeriesIndices.indexOf(e)}},{key:"getYAxisForeColor",value:function(e,t){var n=this.w;return Array.isArray(e)&&n.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,n.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,n,i,r,s,a){var o=this.w,l=new A(this.ctx),c=o.globals.translateY;if(i.show&&t>0){!0===o.config.yaxis[r].opposite&&(e+=i.width);for(var u=t;u>=0;u--){var h=c+t/10+o.config.yaxis[r].labels.offsetY-1;o.globals.isBarHorizontal&&(h=s*u),"heatmap"===o.config.chart.type&&(h+=s/2);var d=l.drawLine(e+n.offsetX-i.width+i.offsetX,h+i.offsetY,e+n.offsetX+i.offsetX,h+i.offsetY,i.color);a.add(d),c+=s}}}}]),e}(),$=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),i=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",i*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+i)}},{key:"fixSvgStringForIe11",value:function(e){if(!y.isIE11())return e.replace(/&nbsp;/g,"&#160;");var t=0,n=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(e){return 2==++t?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':e}));return(n=n.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){null==e&&(e=1);var t=this.w.globals.dom.Paper.svg();if(1!==e){var n=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(n,e),t=(new XMLSerializer).serializeToString(n)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),n=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(i,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),n&&n[0]&&(n[0].setAttribute("y",-100),n[0].setAttribute("y1",-100),n[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(n){var i=t.w,r=e?e.scale||e.width/i.globals.svgWidth:1;t.cleanup();var s=document.createElement("canvas");s.width=i.globals.svgWidth*r,s.height=parseInt(i.globals.dom.elWrap.style.height,10)*r;var a="transparent"===i.config.chart.background?"#fff":i.config.chart.background,o=s.getContext("2d");o.fillStyle=a,o.fillRect(0,0,s.width*r,s.height*r);var l=t.getSvgString(r);if(window.canvg&&y.isIE11()){var c=window.canvg.Canvg.fromString(o,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var u=s.msToBlob();c.stop(),n({blob:u})}else{var h="data:image/svg+xml,"+encodeURIComponent(l),d=new Image;d.crossOrigin="anonymous",d.onload=function(){if(o.drawImage(d,0,0),s.msToBlob){var e=s.msToBlob();n({blob:e})}else{var t=s.toDataURL("image/png");n({imgURI:t})}},d.src=h}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then((function(t){var n=t.imgURI,i=t.blob;i?navigator.msSaveOrOpenBlob(i,e.w.globals.chartID+".png"):e.triggerDownload(n,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,n=e.series,i=e.fileName,r=e.columnDelimiter,s=void 0===r?",":r,a=e.lineDelimiter,o=void 0===a?"\n":a,l=this.w;n||(n=l.config.series);var c,u,h=[],d=[],p="",f=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),g=function(e){return"datetime"===l.config.xaxis.type&&String(e).length>=10},m=Math.max.apply(Math,v(n.map((function(e){return e.data?e.data.length:0})))),b=new V(this.ctx),x=new U(this.ctx),w=function(e){var n="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var i=l.globals.yLabelFormatters[0],r=new X(t.ctx).getActiveConfigSeriesIndex();n=i(l.globals.labels[e],{seriesIndex:r,dataPointIndex:e,w:l})}else n=x.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?n=l.config.xaxis.categories[e]:l.config.labels.length&&(n=l.config.labels[e]))}else n=l.config.labels[e];return Array.isArray(n)&&(n=n.join(" ")),y.isNumber(n)?n:n.split(s).join("")};h.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(h.push("minimum"),h.push("q1"),h.push("median"),h.push("q3"),h.push("maximum")):"candlestick"===l.config.chart.type?(h.push("open"),h.push("high"),h.push("low"),h.push("close")):"rangeBar"===l.config.chart.type?(h.push("minimum"),h.push("maximum")):n.map((function(e,t){var n=(e.name?e.name:"series-".concat(t))+"";l.globals.axisCharts&&h.push(n.split(s).join("")?n.split(s).join(""):"series-".concat(t))})),l.globals.axisCharts||(h.push(l.config.chart.toolbar.export.csv.headerValue),d.push(h.join(s))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?n.map((function(e,t){l.globals.axisCharts?function(e,t){if(h.length&&0===t&&d.push(h.join(s)),e.data){e.data=e.data.length&&e.data||v(Array(m)).map((function(){return""}));for(var i=0;i<e.data.length;i++){h=[];var r=w(i);if(r||(b.isFormatXY()?r=n[t].data[i].x:b.isFormat2DArray()&&(r=n[t].data[i]?n[t].data[i][0]:"")),0===t){h.push(g(r)?l.config.chart.toolbar.export.csv.dateFormatter(r):y.isNumber(r)?r:r.split(s).join(""));for(var a=0;a<l.globals.series.length;a++){var o;b.isFormatXY()?h.push(null===(o=n[a].data[i])||void 0===o?void 0:o.y):h.push(f[a][i])}}("candlestick"===l.config.chart.type||e.type&&"candlestick"===e.type)&&(h.pop(),h.push(l.globals.seriesCandleO[t][i]),h.push(l.globals.seriesCandleH[t][i]),h.push(l.globals.seriesCandleL[t][i]),h.push(l.globals.seriesCandleC[t][i])),("boxPlot"===l.config.chart.type||e.type&&"boxPlot"===e.type)&&(h.pop(),h.push(l.globals.seriesCandleO[t][i]),h.push(l.globals.seriesCandleH[t][i]),h.push(l.globals.seriesCandleM[t][i]),h.push(l.globals.seriesCandleL[t][i]),h.push(l.globals.seriesCandleC[t][i])),"rangeBar"===l.config.chart.type&&(h.pop(),h.push(l.globals.seriesRangeStart[t][i]),h.push(l.globals.seriesRangeEnd[t][i])),h.length&&d.push(h.join(s))}}}(e,t):((h=[]).push(l.globals.labels[t].split(s).join("")),h.push(f[t]),d.push(h.join(s)))})):(c=new Set,u={},n.forEach((function(e,t){null==e||e.data.forEach((function(e){var i,r;if(b.isFormatXY())i=e.x,r=e.y;else{if(!b.isFormat2DArray())return;i=e[0],r=e[1]}u[i]||(u[i]=Array(n.length).fill("")),u[i][t]=r,c.add(i)}))})),h.length&&d.push(h.join(s)),Array.from(c).sort().forEach((function(e){d.push([g(e)&&"datetime"===l.config.xaxis.type?l.config.chart.toolbar.export.csv.dateFormatter(e):y.isNumber(e)?e:e.split(s).join(""),u[e].join(s)])}))),p+=d.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+p),i||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,n){var i=document.createElement("a");i.href=e,i.download=(t||this.w.globals.chartID)+n,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}]),e}(),G=function(){function e(t,n){o(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var i=this.w;this.axesUtils=new U(t),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===i.config.xaxis.position?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return c(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new A(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),i=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(i);for(var r=[],s=0;s<this.xaxisLabels.length;s++)r.push(this.xaxisLabels[s]);if(this.drawXAxisLabelAndGroup(!0,t,i,r,e.globals.isXNumeric,(function(e,t){return t})),e.globals.hasXaxisGroups){var a=e.globals.groups;r=[];for(var o=0;o<a.length;o++)r.push(a[o].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,i,r,!1,(function(e,t){return a[e].cols*t}),l)}if(void 0!==e.config.xaxis.title.text){var c=t.group({class:"apexcharts-xaxis-title"}),u=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(u),n.add(c)}if(e.config.xaxis.axisBorder.show){var h=e.globals.barPadForNumericAxis,d=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-h,this.offY,this.xaxisBorderWidth+h,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(d):n.add(d)}return n}},{key:"drawXAxisLabelAndGroup",value:function(e,t,n,i,r,s){var a,o=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],u=[],h=this.w,d=l.xaxisFontSize||this.xaxisFontSize,p=l.xaxisFontFamily||this.xaxisFontFamily,f=l.xaxisForeColors||this.xaxisForeColors,g=l.fontWeight||h.config.xaxis.labels.style.fontWeight,m=l.cssClass||h.config.xaxis.labels.style.cssClass,v=h.globals.padHorizontal,b=i.length,x="category"===h.config.xaxis.type?h.globals.dataPoints:b;if(0===x&&b>x&&(x=b),r){var y=x>1?x-1:x;a=h.globals.gridWidth/Math.min(y,b-1),v=v+s(0,a)/2+h.config.xaxis.labels.offsetX}else a=h.globals.gridWidth/x,v=v+s(0,a)+h.config.xaxis.labels.offsetX;for(var w=function(r){var l=v-s(r,a)/2+h.config.xaxis.labels.offsetX;0===r&&1===b&&a/2===v&&1===x&&(l=h.globals.gridWidth/2);var y=o.axesUtils.getLabel(i,h.globals.timescaleLabels,l,r,c,d,e),w=28;if(h.globals.rotateXLabels&&e&&(w=22),h.config.xaxis.title.text&&"top"===h.config.xaxis.position&&(w+=parseFloat(h.config.xaxis.title.style.fontSize)+2),e||(w=w+parseFloat(d)+(h.globals.xAxisLabelsHeight-h.globals.xAxisGroupLabelsHeight)+(h.globals.rotateXLabels?10:0)),y=void 0!==h.config.xaxis.tickAmount&&"dataPoints"!==h.config.xaxis.tickAmount&&"datetime"!==h.config.xaxis.type?o.axesUtils.checkLabelBasedOnTickamount(r,y,b):o.axesUtils.checkForOverflowingLabels(r,y,b,c,u),h.config.xaxis.labels.show){var k=t.drawText({x:y.x,y:o.offY+h.config.xaxis.labels.offsetY+w-("top"===h.config.xaxis.position?h.globals.xAxisHeight+h.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:g,fontSize:d,fontFamily:p,foreColor:Array.isArray(f)?e&&h.config.xaxis.convertedCatToNumeric?f[h.globals.minX+r-1]:f[r]:f,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(n.add(k),k.on("click",(function(e){if("function"==typeof h.config.chart.events.xAxisLabelClick){var t=Object.assign({},h,{labelIndex:r});h.config.chart.events.xAxisLabelClick(e,o.ctx,t)}})),e){var A=document.createElementNS(h.globals.SVGNS,"title");A.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,k.node.appendChild(A),""!==y.text&&(c.push(y.text),u.push(y))}}r<b-1&&(v+=s(r+1,a))},k=0;k<=b-1;k++)w(k)}},{key:"drawXaxisInversed",value:function(e){var t,n,i=this,r=this.w,s=new A(this.ctx),a=r.config.yaxis[0].opposite?r.globals.translateYAxisX[e]:0,o=s.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=s.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+a+", 0)"});o.add(l);var c=[];if(r.config.yaxis[e].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);t=r.globals.gridHeight/c.length,n=-t/2.2;var h=r.globals.yLabelFormatters[0],d=r.config.yaxis[0].labels;if(d.show)for(var p=function(a){var o=void 0===c[a]?"":c[a];o=h(o,{seriesIndex:e,dataPointIndex:a,w:r});var u=i.axesUtils.getYAxisForeColor(d.style.colors,e),p=0;Array.isArray(o)&&(p=o.length/2*parseInt(d.style.fontSize,10));var f=d.offsetX-15,g="end";i.yaxis.opposite&&(g="start"),"left"===r.config.yaxis[0].labels.align?(f=d.offsetX,g="start"):"center"===r.config.yaxis[0].labels.align?(f=d.offsetX,g="middle"):"right"===r.config.yaxis[0].labels.align&&(g="end");var m=s.drawText({x:f,y:n+t+d.offsetY-p,text:o,textAnchor:g,foreColor:Array.isArray(u)?u[a]:u,fontSize:d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+d.style.cssClass,maxWidth:d.maxWidth});l.add(m),m.on("click",(function(e){if("function"==typeof r.config.chart.events.xAxisLabelClick){var t=Object.assign({},r,{labelIndex:a});r.config.chart.events.xAxisLabelClick(e,i.ctx,t)}}));var v=document.createElementNS(r.globals.SVGNS,"title");if(v.textContent=Array.isArray(o)?o.join(" "):o,m.node.appendChild(v),0!==r.config.yaxis[e].labels.rotate){var b=s.rotateAroundCenter(m.node);m.node.setAttribute("transform","rotate(".concat(r.config.yaxis[e].labels.rotate," 0 ").concat(b.y,")"))}n+=t},f=0;f<=c.length-1;f++)p(f);if(void 0!==r.config.yaxis[0].title.text){var g=s.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+a+", 0)"}),m=s.drawText({x:r.config.yaxis[0].title.offsetX,y:r.globals.gridHeight/2+r.config.yaxis[0].title.offsetY,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});g.add(m),o.add(g)}var v=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(v=r.globals.gridWidth);var b=r.config.xaxis.axisBorder;if(b.show){var x=s.drawLine(r.globals.padHorizontal+b.offsetX+v,1+b.offsetY,r.globals.padHorizontal+b.offsetX+v,r.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&r.config.grid.show?this.elgrid.elGridBorders.add(x):o.add(x)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(v,c.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,t,o),o}},{key:"drawXaxisTicks",value:function(e,t,n){var i=this.w,r=e;if(!(e<0||e-2>i.globals.gridWidth)){var s=this.offY+i.config.xaxis.axisTicks.offsetY;if(t=t+s+i.config.xaxis.axisTicks.height,"top"===i.config.xaxis.position&&(t=s-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var a=new A(this.ctx).drawLine(e+i.config.xaxis.axisTicks.offsetX,s+i.config.xaxis.offsetY,r+i.config.xaxis.axisTicks.offsetX,t+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);n.add(a),a.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,i=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var r=0;r<n;r++)i=this.xaxisLabels[r].position,t.push(i);else for(var s=n,a=0;a<s;a++){var o=s;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(o-=1),i+=e.globals.gridWidth/o,t.push(i)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new A(this.ctx),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var a=0;a<i.length;a++){var o=t.rotateAroundCenter(i[a]);o.y=o.y-1,o.x=o.x+1,i[a].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),i[a].setAttribute("text-anchor","end"),n.setAttribute("transform","translate(0, ".concat(-10,")"));var l=i[a].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(n){t.placeTextWithEllipsis(n,n.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))}))}else!function(){for(var n=e.globals.gridWidth/(e.globals.labels.length+1),r=0;r<i.length;r++){var s=i[r].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(s,(function(e){t.placeTextWithEllipsis(e,e.textContent,n)}))}}();if(r.length>0){var c=r[r.length-1].getBBox(),u=r[0].getBBox();c.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var h=0;h<s.length;h++)t.placeTextWithEllipsis(s[h],s[h].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),q=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),this.axesUtils=new U(t),this.isRangeBar=n.globals.seriesRange.length&&n.globals.isBarHorizontal,n.globals.timescaleLabels.length>0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return c(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=new A(this.ctx);null===e&&(e=n.group({class:"apexcharts-grid"}));var i=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),r=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(r),e.add(i),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new A(this.ctx),i=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var r=0;e.config.stroke.width.forEach((function(e){r=Math.max(r,e)})),i=r}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var s=e.config.chart.type,a=0,o=0;("bar"===s||"rangeBar"===s||"candlestick"===s||"boxPlot"===s||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(a=e.config.grid.padding.left,o=e.config.grid.padding.right,t.barPadForNumericAxis>a&&(a=t.barPadForNumericAxis,o=t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(-i-a-2,2*-i-2,t.gridWidth+i+o+a+4,t.gridHeight+4*i+4,0,"#fff");var l=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=n.drawRect(2*-l,2*-l,t.gridWidth+4*l,t.gridHeight+4*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,i=e.y1,r=e.x2,s=e.y2,a=e.xCount,o=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===a-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:n,y1:i,x2:r,y2:s,xCount:a,parent:o});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var u=l.globals.groups;if(u){for(var h=0,d=0;h<t&&d<u.length;d++)h+=u[d].cols;h===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new G(this.ctx).drawXaxisTicks(n,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,n=e.x1,i=e.y1,r=e.x2,s=e.y2,a=e.xCount,o=e.parent,l=this.w,c=!1,u=o.node.classList.contains("apexcharts-gridlines-horizontal"),h=l.config.grid.strokeDashArray,d=l.globals.barPadForNumericAxis;(0===i&&0===s||0===n&&0===r)&&(c=!0),i===l.globals.gridHeight&&s===l.globals.gridHeight&&(c=!0),!l.globals.isBarHorizontal||0!==t&&t!==a-1||(c=!0);var p=new A(this).drawLine(n-(u?d:0),i,r+(u?d:0),s,l.config.grid.borderColor,h);p.node.classList.add("apexcharts-gridline"),c&&l.config.grid.show?this.elGridBorders.add(p):o.add(p)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,n=e.x1,i=e.y1,r=e.x2,s=e.y2,a=e.type,o=this.w,l=new A(this.ctx),c=o.globals.barPadForNumericAxis;if("column"!==a||"datetime"!==o.config.xaxis.type){var u=o.config.grid[a].colors[t],h=l.drawRect(n-("row"===a?c:0),i,r+("row"===a?2*c:0),s,0,u,o.config.grid[a].opacity);this.elg.add(h),h.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),h.node.classList.add("apexcharts-grid-".concat(a))}}},{key:"_drawXYLines",value:function(e){var t=this,n=e.xCount,i=e.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var s,a=r.globals.padHorizontal,o=r.globals.gridHeight;r.globals.timescaleLabels.length?function(e){for(var i=e.xC,r=e.x1,s=e.y1,a=e.x2,o=e.y2,l=0;l<i;l++)r=t.xaxisLabels[l].position,a=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:r,y1:s,x2:a,y2:o,xCount:n,parent:t.elgridLinesV})}({xC:n,x1:a,y1:0,x2:s,y2:o}):(r.globals.isXNumeric&&(n=r.globals.xAxisScale.result.length),function(e){for(var i=e.xC,s=e.x1,a=e.y1,o=e.x2,l=e.y2,c=0;c<i+(r.globals.isXNumeric?0:1);c++)0===c&&1===i&&1===r.globals.dataPoints&&(o=s=r.globals.gridWidth/2),t._drawGridLines({i:c,x1:s,y1:a,x2:o,y2:l,xCount:n,parent:t.elgridLinesV}),o=s+=r.globals.gridWidth/(r.globals.isXNumeric?i-1:i)}({xC:n,x1:a,y1:0,x2:s,y2:o}))}if(r.config.grid.yaxis.lines.show){var l=0,c=0,u=r.globals.gridWidth,h=i+1;this.isRangeBar&&(h=r.globals.labels.length);for(var d=0;d<h+(this.isRangeBar?1:0);d++)this._drawGridLine({i:d,xCount:h+(this.isRangeBar?1:0),x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=r.globals.gridHeight/(this.isRangeBar?h:i)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show)for(var i,r=n.globals.padHorizontal,s=n.globals.gridHeight,a=0;a<t+1;a++)n.config.grid.xaxis.lines.show&&this._drawGridLine({i:a,xCount:t+1,x1:r,y1:0,x2:i,y2:s,parent:this.elgridLinesV}),new G(this.ctx).drawXaxisTicks(r,0,n.globals.dom.elGraphical),i=r=r+n.globals.gridWidth/t+.3;if(n.config.grid.yaxis.lines.show)for(var o=0,l=0,c=n.globals.gridWidth,u=0;u<n.globals.dataPoints+1;u++)this._drawGridLine({i:u,xCount:n.globals.dataPoints+1,x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=n.globals.gridHeight/n.globals.dataPoints}},{key:"renderGrid",value:function(){var e,t,n,i=this.w,r=new A(this.ctx);this.elg=r.group({class:"apexcharts-grid"}),this.elgridLinesH=r.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=r.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=r.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),i.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var s,a=i.globals.yAxisScale.length?i.globals.yAxisScale[0].result.length-1:5,o=0;o<i.globals.series.length&&(void 0!==i.globals.yAxisScale[o]&&(a=i.globals.yAxisScale[o].result.length-1),!(a>2));o++);!i.globals.isBarHorizontal||this.isRangeBar?(s=this.xaxisLabels.length,this.isRangeBar&&(s--,a=i.globals.labels.length,i.config.xaxis.tickAmount&&i.config.xaxis.labels.formatter&&(s=i.config.xaxis.tickAmount),(null===(e=i.globals.yAxisScale)||void 0===e||null===(t=e[0])||void 0===t||null===(n=t.result)||void 0===n?void 0:n.length)>0&&"datetime"!==i.config.xaxis.type&&(s=i.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:s,tickAmount:a})):(s=a,a=i.globals.xTickAmount,this._drawInvertedXYLines({xCount:s,tickAmount:a}));return this.drawGridBands(s,a),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:i.globals.gridWidth/s}}},{key:"drawGridBands",value:function(e,t){var n=this.w;if(void 0!==n.config.grid.row.colors&&n.config.grid.row.colors.length>0)for(var i=0,r=n.globals.gridHeight/t,s=n.globals.gridWidth,a=0,o=0;a<t;a++,o++)o>=n.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:i,x2:s,y2:r,type:"row"}),i+=n.globals.gridHeight/t;if(void 0!==n.config.grid.column.colors&&n.config.grid.column.colors.length>0)for(var l=n.globals.isBarHorizontal||"on"!==n.config.xaxis.tickPlacement||"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric?e:e-1,c=n.globals.padHorizontal,u=n.globals.padHorizontal+n.globals.gridWidth/l,h=n.globals.gridHeight,d=0,p=0;d<e;d++,p++)p>=n.config.grid.column.colors.length&&(p=0),this._drawGridBandRect({c:p,x1:c,y1:0,x2:u,y2:h,type:"column"}),c+=n.globals.gridWidth/l}}]),e}(),Z=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"niceScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=1e-11,r=this.w,s=r.globals,a=r.config.xaxis,o=r.config.yaxis[n],l=void 0!==o.min&&null!==o.min,c=void 0!==o.max&&null!==o.min,u=void 0!==o.stepSize&&null!==o.stepSize,h=void 0!==o.tickAmount&&null!==o.tickAmount,d=((s.isBarHorizontal?s.svgWidth:s.svgHeight)-100)/15,p=h?o.tickAmount:10;if(s.isMultipleYAxis&&!h&&s.multiAxisTickAmount>0&&(p=s.multiAxisTickAmount,h=!0),p="dataPoints"===p?s.dataPoints-1:Math.abs(Math.round(p)),(e===Number.MIN_VALUE&&0===t||!y.isNumber(e)&&!y.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=0,t=p,s.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var f=t;t=e,e=f}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);var g=[];p<1&&(p=1);var m=p,v=Math.abs(t-e);o.forceNiceScale&&(!l&&e>0&&e/v<.15&&(e=0,l=!0),!c&&t<0&&-t/v<.15&&(t=0,c=!0),v=Math.abs(t-e));var b=v/m,x=b,w=Math.floor(Math.log10(x)),k=Math.pow(10,w),A=Math.ceil(x/k);if(b=x=(A=s.niceScaleAllowedMagMsd[0===s.yValueDecimal?0:1][A])*k,s.isBarHorizontal&&a.stepSize&&"datetime"!==a.type?(b=a.stepSize,u=!0):u&&(b=o.stepSize),u&&o.forceNiceScale&&Math.round(Math.log10(b))!=w){for(var S=v/p;b<S;)b*=10;for(;b>S;)b/=10}if(l&&c){var C=v/m;if(h)if(u)if(0!=y.mod(v,b)){var _=y.getGCD(b,C);b=C/_<10?_:C}else 0==y.mod(b,C)?b=C:(C=b,h=!1);else b=C;else if(u)0==y.mod(v,b)?C=b:b=C;else if(C=v/(m=Math.round(v/x)),0!=y.mod(v,b)){var E=y.getGCD(v,x);x/E<10&&(C=E),b=C}else C=b;m=Math.round(v/b)}else{if(l||c)c?e=h?t-b*m:b*Math.floor(e/b):l&&(t=h?e+b*m:b*Math.ceil(t/b));else if(h){var L=b/(t-e>t?1:2);t=(e=L*Math.floor(e/L))+b*m}else e=b*Math.floor(e/b),t=b*Math.ceil(t/b);v=Math.abs(t-e),b=y.getGCD(v,b),m=Math.round(v/b)}if(h||l||c||(m=Math.ceil((v-i)/(b+i)))>16&&y.getPrimeFactors(m).length<2&&m++,s.isMultipleYAxis&&0==s.multiAxisTickAmount&&(s.multiAxisTickAmount=m),m>d&&(!h&&!u||o.forceNiceScale)){var T=y.getPrimeFactors(m),D=T.length-1,P=m;e:for(var M=0;M<D;M++)for(var O=0;O<=D-M;O++){for(var R=Math.min(O+M,D),I=P,N=1,F=O;F<=R;F++)N*=T[F];if((I/=N)<d){P=I;break e}}b=P===m&&o.forceNiceScale?v:v/P}var B=e-b,z=b*i;do{B+=b,g.push(y.stripNumber(B,7))}while(t-B>z);return{result:g,niceMin:g[0],niceMax:g[g.length-1]}}},{key:"linearScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,s=Math.abs(t-e);"dataPoints"===(n=this._adjustTicksForSmallRange(n,i,s))&&(n=this.w.globals.dataPoints-1),r||(r=s/n),n===Number.MAX_VALUE&&(n=5,r=1);for(var a=[],o=e;n>=0;)a.push(o),o+=r,n-=1;return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var i=[],r=Math.ceil(Math.log(t)/Math.log(n)+1),s=Math.floor(Math.log(e)/Math.log(n));s<r;s++)i.push(Math.pow(n,s));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}},{key:"logarithmicScale",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var i=[],r=Math.log(t)/Math.log(n),s=Math.log(e)/Math.log(n),a=r-s,o=Math.round(a),l=a/o,c=0,u=s;c<o;c++,u+=l)i.push(Math.pow(n,u));return i.push(Math.pow(n,r)),{result:i,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,n){var i=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var r=Number(this.w.config.yaxis[t].labels.formatter(1));y.isNumber(r)&&0===this.w.globals.yValueDecimal&&(i=Math.ceil(n))}return i<e?i:e}},{key:"setYScaleForIndex",value:function(e,t,n){var i=this.w.globals,r=this.w.config,s=i.isBarHorizontal?r.xaxis:r.yaxis[e];void 0===i.yAxisScale[e]&&(i.yAxisScale[e]=[]);var a=Math.abs(n-t);s.logarithmic&&a<=5&&(i.invalidLogScale=!0),s.logarithmic&&a>5?(i.allSeriesCollapsed=!1,i.yAxisScale[e]=s.forceNiceScale?this.logarithmicScaleNice(t,n,s.logBase):this.logarithmicScale(t,n,s.logBase)):n!==-Number.MAX_VALUE&&y.isNumber(n)?(i.allSeriesCollapsed=!1,i.yAxisScale[e]=this.niceScale(t,n,e)):i.yAxisScale[e]=this.linearScale(0,10,10,e,r.yaxis[e].stepSize)}},{key:"setXScale",value:function(e,t){var n=this.w,i=n.globals,r=Math.abs(t-e);return t!==-Number.MAX_VALUE&&y.isNumber(t)?i.xAxisScale=this.linearScale(e,t,n.config.xaxis.tickAmount?n.config.xaxis.tickAmount:r<10&&r>1?r+1:10,0,n.config.xaxis.stepSize):i.xAxisScale=this.linearScale(0,10,10),i.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,n=this.w.config,i=t.minYArr.concat([]),r=t.maxYArr.concat([]),s=[];n.yaxis.forEach((function(t,a){var o=a;n.series.forEach((function(e,n){e.name===t.seriesName&&(o=n,a!==n?s.push({index:n,similarIndex:a,alreadyExists:!0}):s.push({index:n}))}));var l=i[o],c=r[o];e.setYScaleForIndex(a,l,c)})),this.sameScaleInMultipleAxes(i,r,s)}},{key:"sameScaleInMultipleAxes",value:function(e,t,n){var i=this,r=this.w.config,s=this.w.globals,a=[];n.forEach((function(e){e.alreadyExists&&(void 0===a[e.index]&&(a[e.index]=[]),a[e.index].push(e.index),a[e.index].push(e.similarIndex))})),s.yAxisSameScaleIndices=a,a.forEach((function(e,t){a.forEach((function(n,i){var r,s;t!==i&&(r=e,s=n,r.filter((function(e){return-1!==s.indexOf(e)}))).length>0&&(a[t]=a[t].concat(a[i]))}))}));var o=a.map((function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))})).map((function(e){return e.sort()}));a=a.filter((function(e){return!!e}));var l=o.slice(),c=l.map((function(e){return JSON.stringify(e)}));l=l.filter((function(e,t){return c.indexOf(JSON.stringify(e))===t}));var u=[],h=[];e.forEach((function(e,n){l.forEach((function(i,r){i.indexOf(n)>-1&&(void 0===u[r]&&(u[r]=[],h[r]=[]),u[r].push({key:n,value:e}),h[r].push({key:n,value:t[n]}))}))}));var d=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);u.forEach((function(e,t){e.forEach((function(e,n){d[t]=Math.min(e.value,d[t])}))})),h.forEach((function(e,t){e.forEach((function(e,n){p[t]=Math.max(e.value,p[t])}))})),e.forEach((function(e,t){h.forEach((function(e,n){var a=d[n],o=p[n];r.chart.stacked&&(o=0,e.forEach((function(e,t){e.value!==-Number.MAX_VALUE&&(o+=e.value),a!==Number.MIN_VALUE&&(a+=u[n][t].value)}))),e.forEach((function(n,l){e[l].key===t&&(void 0!==r.yaxis[t].min&&(a="function"==typeof r.yaxis[t].min?r.yaxis[t].min(s.minY):r.yaxis[t].min),void 0!==r.yaxis[t].max&&(o="function"==typeof r.yaxis[t].max?r.yaxis[t].max(s.maxY):r.yaxis[t].max),i.setYScaleForIndex(t,a,o))}))}))}))}},{key:"autoScaleY",value:function(e,t,n){e||(e=this);var i=e.w;if(i.globals.isMultipleYAxis||i.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),t;var r=i.globals.seriesX[0],s=i.config.chart.stacked;return t.forEach((function(e,a){for(var o=0,l=0;l<r.length;l++)if(r[l]>=n.xaxis.min){o=l;break}var c,u,h=i.globals.minYArr[a],d=i.globals.maxYArr[a],p=i.globals.stackedSeriesTotals;i.globals.series.forEach((function(a,l){var f=a[o];s?(f=p[o],c=u=f,p.forEach((function(e,t){r[t]<=n.xaxis.max&&r[t]>=n.xaxis.min&&(e>u&&null!==e&&(u=e),a[t]<c&&null!==a[t]&&(c=a[t]))}))):(c=u=f,a.forEach((function(e,t){if(r[t]<=n.xaxis.max&&r[t]>=n.xaxis.min){var s=e,a=e;i.globals.series.forEach((function(n,i){null!==e&&(s=Math.min(n[t],s),a=Math.max(n[t],a))})),a>u&&null!==a&&(u=a),s<c&&null!==s&&(c=s)}}))),void 0===c&&void 0===u&&(c=h,u=d),u*=u<0?.9:1.1,0==(c*=c<0?1.1:.9)&&0===u&&(c=-1,u=1),u<0&&u<d&&(u=d),c<0&&c>h&&(c=h),t.length>1?(t[l].min=void 0===e.min?c:e.min,t[l].max=void 0===e.max?u:e.max):(t[0].min=void 0===e.min?c:e.min,t[0].max=void 0===e.max?u:e.max)}))})),t}}]),e}(),K=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.scales=new Z(t)}return c(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w.config,s=this.w.globals,a=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===i&&(i=e+1);var l=0,c=0,u=void 0;if(s.seriesX.length>=i){var h;if(l=0,c=(u=v(new Set((h=[]).concat.apply(h,v(s.seriesX.slice(e,i)))))).length-1,r.xaxis.min)for(l=0;l<c&&u[l]<=r.xaxis.min;l++);if(r.xaxis.max)for(;c>l&&u[c]>=r.xaxis.max;c--);}var d=s.series,p=d,f=d;"candlestick"===r.chart.type?(p=s.seriesCandleL,f=s.seriesCandleH):"boxPlot"===r.chart.type?(p=s.seriesCandleO,f=s.seriesCandleC):s.isRangeData&&(p=s.seriesRangeStart,f=s.seriesRangeEnd);for(var g=e;g<i;g++){s.dataPoints=Math.max(s.dataPoints,d[g].length),s.categoryLabels.length&&(s.dataPoints=s.categoryLabels.filter((function(e){return void 0!==e})).length),s.labels.length&&"datetime"!==r.xaxis.type&&0!==s.series.reduce((function(e,t){return e+t.length}),0)&&(s.dataPoints=Math.max(s.dataPoints,s.labels.length)),u||(l=0,c=s.series[g].length);for(var m=l;m<=c;m++){var b=d[g][m];if(null!==b&&y.isNumber(b)){switch(void 0!==f[g][m]&&(a=Math.max(a,f[g][m]),t=Math.min(t,f[g][m])),void 0!==p[g][m]&&(t=Math.min(t,p[g][m]),n=Math.max(n,p[g][m])),r.series[g].type){case"candlestick":void 0!==s.seriesCandleC[g][m]&&(a=Math.max(a,s.seriesCandleH[g][m]),t=Math.min(t,s.seriesCandleL[g][m]));case"boxPlot":void 0!==s.seriesCandleC[g][m]&&(a=Math.max(a,s.seriesCandleC[g][m]),t=Math.min(t,s.seriesCandleO[g][m]))}r.series[g].type&&"candlestick"!==r.series[g].type&&"boxPlot"!==r.series[g].type&&"rangeArea"!==r.series[g].type&&"rangeBar"!==r.series[g].type&&(a=Math.max(a,s.series[g][m]),t=Math.min(t,s.series[g][m])),n=a,s.seriesGoals[g]&&s.seriesGoals[g][m]&&Array.isArray(s.seriesGoals[g][m])&&s.seriesGoals[g][m].forEach((function(e){o!==Number.MIN_VALUE&&(o=Math.min(o,e.value),t=o),a=Math.max(a,e.value),n=a})),y.isFloat(b)&&(b=y.noExponents(b),s.yValueDecimal=Math.max(s.yValueDecimal,b.toString().split(".")[1].length)),o>p[g][m]&&p[g][m]<0&&(o=p[g][m])}else s.hasNullValues=!0}}return"rangeBar"===r.chart.type&&s.seriesRangeStart.length&&s.isBarHorizontal&&(o=t),"bar"===r.chart.type&&(o<0&&a<0&&(a=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:a,lowestY:t,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n=Number.MAX_VALUE;if(e.isMultipleYAxis){n=Number.MAX_VALUE;for(var i=0;i<e.series.length;i++){var r=this.getMinYMaxY(i);e.minYArr[i]=r.lowestY,e.maxYArr[i]=r.highestY,n=Math.min(n,r.lowestY)}}var s=this.getMinYMaxY(0,n,null,e.series.length);return e.minY=s.lowestY,e.maxY=s.highestY,n=s.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"===t.chart.type||"area"===t.chart.type||"scatter"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&n!==-Number.MAX_VALUE&&n!==e.maxY&&(e.minY=n):e.minY=s.minY,t.yaxis.forEach((function(t,n){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[n]=t.max:"function"==typeof t.max&&(e.maxYArr[n]=t.max(e.isMultipleYAxis?e.maxYArr[n]:e.maxY)),e.maxY=e.maxYArr[n]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[n]=t.min:"function"==typeof t.min&&(e.minYArr[n]=t.min(e.isMultipleYAxis?e.minYArr[n]===Number.MIN_VALUE?0:e.minYArr[n]:e.minY)),e.minY=e.minYArr[n])})),e.isBarHorizontal&&["min","max"].forEach((function(n){void 0!==t.xaxis[n]&&"number"==typeof t.xaxis[n]&&("min"===n?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])})),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=n,e.yAxisScale.forEach((function(t,n){e.minYArr[n]=t.niceMin,e.maxYArr[n]=t.niceMax}))):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,n="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var n=0;n<e.labels[t].length;n++)null!==e.labels[t][n]&&y.isNumber(e.labels[t][n])&&(e.maxX=Math.max(e.maxX,e.labels[t][n]),e.initialMaxX=Math.max(e.maxX,e.labels[t][n]),e.minX=Math.min(e.minX,e.labels[t][n]),e.initialMinX=Math.min(e.minX,e.labels[t][n]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var i;if(void 0===t.xaxis.tickAmount?(i=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(i=e.dataPoints-1),i>e.dataPoints&&0!==e.dataPoints&&(i=e.dataPoints-1)):"dataPoints"===t.xaxis.tickAmount?(e.series.length>1&&(i=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(i=e.maxX-e.minX-1)):i=t.xaxis.tickAmount,e.xTickAmount=i,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var r=[],s=e.minX-1;s<e.maxX;s++)r.push(s+1);e.xAxisScale={result:r,niceMin:r[0],niceMax:r[r.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,i,i,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,i-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var n=0;n<e.seriesZ[t].length;n++)null!==e.seriesZ[t][n]&&y.isNumber(e.seriesZ[t][n])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][n]),e.minZ=Math.min(e.minZ,e.seriesZ[t][n]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var n=new M(this.ctx);if("datetime"===t.xaxis.type){var i=n.getDate(e.minX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()-2):i.setDate(i.getDate()-2),e.minX=new Date(i).getTime();var r=n.getDate(e.maxX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()+2):r.setDate(r.getDate()+2),e.maxX=new Date(r).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach((function(t,n){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort((function(e,t){return e-t})),i.forEach((function(t,n){if(n>0){var r=t-i[n-1];r>0&&(e.minXDiff=Math.min(r,e.minXDiff))}})),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var n=t.seriesGroups;n.length||(n=[this.w.config.series.map((function(e){return e.name}))]);var i={},r={};n.forEach((function(n){i[n]=[],r[n]=[],e.w.config.series.map((function(e,t){return n.indexOf(e.name)>-1?t:null})).filter((function(e){return null!==e})).forEach((function(s){for(var a=0;a<t.series[t.maxValsInArrayIndex].length;a++){var o,l;void 0===i[n][a]&&(i[n][a]=0,r[n][a]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(o=e.w.config.series)||void 0===o||null===(l=o[s])||void 0===l?void 0:l.type)))&&null!==t.series[s][a]&&y.isNumber(t.series[s][a])&&(t.series[s][a]>0?i[n][a]+=parseFloat(t.series[s][a])+1e-4:r[n][a]+=parseFloat(t.series[s][a]))}}))})),Object.entries(i).forEach((function(e){var n=m(e,1)[0];i[n].forEach((function(e,s){t.maxY=Math.max(t.maxY,i[n][s]),t.minY=Math.min(t.minY,r[n][s])}))}))}}}]),e}(),J=function(){function e(t,n){o(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===i.config.xaxis.position&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new U(t)}return c(e,[{key:"drawYaxis",value:function(e){var t=this,n=this.w,i=new A(this.ctx),r=n.config.yaxis[e].labels.style,s=r.fontSize,a=r.fontFamily,o=r.fontWeight,l=i.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+n.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return l;var c=i.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var u=n.globals.yAxisScale[e].result.length-1,h=n.globals.gridHeight/u,d=n.globals.translateY,p=n.globals.yLabelFormatters[e],f=n.globals.yAxisScale[e].result.slice();f=this.axesUtils.checkForReversedLabels(e,f);var g="";if(n.config.yaxis[e].labels.show)for(var m=function(l){var m=f[l];m=p(m,l,n);var v=n.config.yaxis[e].labels.padding;n.config.yaxis[e].opposite&&0!==n.config.yaxis.length&&(v*=-1);var b="end";n.config.yaxis[e].opposite&&(b="start"),"left"===n.config.yaxis[e].labels.align?b="start":"center"===n.config.yaxis[e].labels.align?b="middle":"right"===n.config.yaxis[e].labels.align&&(b="end");var x=t.axesUtils.getYAxisForeColor(r.colors,e),y=n.config.yaxis[e].labels.offsetY;"heatmap"===n.config.chart.type&&(y-=(n.globals.gridHeight/n.globals.series.length-1)/2);var w=i.drawText({x:v,y:d+u/10+y+1,text:m,textAnchor:b,fontSize:s,fontFamily:a,fontWeight:o,maxWidth:n.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(x)?x[l]:x,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.cssClass});l===u&&(g=w),c.add(w);var k=document.createElementNS(n.globals.SVGNS,"title");if(k.textContent=Array.isArray(m)?m.join(" "):m,w.node.appendChild(k),0!==n.config.yaxis[e].labels.rotate){var A=i.rotateAroundCenter(g.node),S=i.rotateAroundCenter(w.node);w.node.setAttribute("transform","rotate(".concat(n.config.yaxis[e].labels.rotate," ").concat(A.x," ").concat(S.y,")"))}d+=h},v=u;v>=0;v--)m(v);if(void 0!==n.config.yaxis[e].title.text){var b=i.group({class:"apexcharts-yaxis-title"}),x=0;n.config.yaxis[e].opposite&&(x=n.globals.translateYAxisX[e]);var y=i.drawText({x,y:n.globals.gridHeight/2+n.globals.translateY+n.config.yaxis[e].title.offsetY,text:n.config.yaxis[e].title.text,textAnchor:"end",foreColor:n.config.yaxis[e].title.style.color,fontSize:n.config.yaxis[e].title.style.fontSize,fontWeight:n.config.yaxis[e].title.style.fontWeight,fontFamily:n.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[e].title.style.cssClass});b.add(y),l.add(b)}var w=n.config.yaxis[e].axisBorder,k=31+w.offsetX;if(n.config.yaxis[e].opposite&&(k=-31-w.offsetX),w.show){var S=i.drawLine(k,n.globals.translateY+w.offsetY-2,k,n.globals.gridHeight+n.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(S)}return n.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,u,w,n.config.yaxis[e].axisTicks,e,h,l),l}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new A(this.ctx),i=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(r);var s=t.globals.yAxisScale[e].result.length-1,a=t.globals.gridWidth/s+.1,o=a+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),u=t.globals.timescaleLabels;u.length>0&&(this.xaxisLabels=u.slice(),s=(c=u.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var h=u.length;if(t.config.xaxis.labels.show)for(var d=h?0:s;h?d<h:d>=0;h?d++:d--){var p=c[d];p=l(p,d,t);var f=t.globals.gridWidth+t.globals.padHorizontal-(o-a+t.config.xaxis.labels.offsetX);if(u.length){var g=this.axesUtils.getLabel(c,u,f,d,this.drawnLabels,this.xaxisFontSize);f=g.x,p=g.text,this.drawnLabels.push(g.text),0===d&&t.globals.skipFirstTimelinelabel&&(p=""),d===c.length-1&&t.globals.skipLastTimelinelabel&&(p="")}var m=n.drawText({x:f,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:p,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});r.add(m),m.tspan(p);var v=document.createElementNS(t.globals.SVGNS,"title");v.textContent=p,m.node.appendChild(v),o+=a}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new A(this.ctx),i=t.config.xaxis.axisBorder;if(i.show){var r=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(r-=15);var s=n.drawLine(t.globals.padHorizontal+r+i.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,i.color,0,i.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(s):e.add(s)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new A(this.ctx);if(void 0!==t.config.xaxis.title.text){var i=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=n.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});i.add(r),e.add(i)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,i=new A(this.ctx),r={width:0,height:0},s={width:0,height:0},a=n.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));null!==a&&(r=a.getBoundingClientRect());var o=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(null!==o&&(s=o.getBoundingClientRect()),null!==o){var l=this.xPaddingForYAxisTitle(e,r,s,t);o.setAttribute("x",l.xPos-(t?10:0))}if(null!==o){var c=i.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,n,i){var r=this.w,s=0,a=0,o=10;return void 0===r.config.yaxis[e].title.text||e<0?{xPos:a,padd:0}:(i?(a=t.width+r.config.yaxis[e].title.offsetX+n.width/2+o/2,0===(s+=1)&&(a-=o/2)):(a=-1*t.width+r.config.yaxis[e].title.offsetX+o/2+n.width/2,r.globals.isBarHorizontal&&(o=25,a=-1*t.width-r.config.yaxis[e].title.offsetX-o)),{xPos:a,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,i=0,r=0,s=18,a=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.map((function(o,l){var c=n.globals.ignoreYAxisIndexes.indexOf(l)>-1||!o.show||o.floating||0===e[l].width,u=e[l].width+t[l].width;o.opposite?n.globals.isBarHorizontal?(r=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[l]=r-o.labels.offsetX):(r=n.globals.gridWidth+n.globals.translateX+a,c||(a=a+u+20),n.globals.translateYAxisX[l]=r-o.labels.offsetX+20):(i=n.globals.translateX-s,c||(s=s+u+20),n.globals.translateYAxisX[l]=i+o.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=y.listToArray(t)).forEach((function(t,n){var i=e.config.yaxis[n];if(i&&!i.floating&&void 0!==i.labels.align){var r=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"));s=y.listToArray(s);var a=r.getBoundingClientRect();"left"===i.labels.align?(s.forEach((function(e,t){e.setAttribute("text-anchor","start")})),i.opposite||r.setAttribute("transform","translate(-".concat(a.width,", 0)"))):"center"===i.labels.align?(s.forEach((function(e,t){e.setAttribute("text-anchor","middle")})),r.setAttribute("transform","translate(".concat(a.width/2*(i.opposite?1:-1),", 0)"))):"right"===i.labels.align&&(s.forEach((function(e,t){e.setAttribute("text-anchor","end")})),i.opposite&&r.setAttribute("transform","translate(".concat(a.width,", 0)")))}}))}}]),e}(),Q=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.documentEvent=y.bind(this.documentEvent,this)}return c(e,[{key:"addEventListener",value:function(e,t){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var i=n.globals.events[e].indexOf(t);-1!==i&&n.globals.events[e].splice(i,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var i=n.globals.events[e],r=i.length,s=0;s<r;s++)i[s].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,n=this.ctx,i=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach((function(e){i.addEventListener(e,(function(e){var i=Object.assign({},t,{seriesIndex:t.globals.capturedSeriesIndex,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,n,i):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,n,i):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,n,i),n.ctx.events.fireEvent("click",[e,n,i]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(n){t.globals.dom.baseEl.addEventListener(n,e.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,n=e.target.className;if("click"===e.type){var i=t.globals.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==n&&i.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),ee=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=t.filter((function(t){return t.name===e}))[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var i=y.extend(T,n);this.w.globals.locale=i.options}}]),e}(),te=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawAxis",value:function(e,t){var n,i,r=this,s=this.w.globals,a=this.w.config,o=new G(this.ctx,t),l=new J(this.ctx,t);s.axisCharts&&"radar"!==e&&(s.isBarHorizontal?(i=l.drawYaxisInversed(0),n=o.drawXaxisInversed(0),s.dom.elGraphical.add(n),s.dom.elGraphical.add(i)):(n=o.drawXaxis(),s.dom.elGraphical.add(n),a.yaxis.map((function(e,t){if(-1===s.ignoreYAxisIndexes.indexOf(t)&&(i=l.drawYaxis(t),s.dom.Paper.add(i),"back"===r.w.config.grid.position)){var n=s.dom.Paper.children()[1];n.remove(),s.dom.Paper.add(n)}}))))}}]),e}(),ne=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new A(this.ctx),n=new k(this.ctx),i=e.config.xaxis.crosshairs.fill.gradient,r=e.config.xaxis.crosshairs.dropShadow,s=e.config.xaxis.crosshairs.fill.type,a=i.colorFrom,o=i.colorTo,l=i.opacityFrom,c=i.opacityTo,u=i.stops,h=r.enabled,d=r.left,p=r.top,f=r.blur,g=r.color,m=r.opacity,v=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===s&&(v=t.drawGradient("vertical",a,o,l,c,null,u,null));var b=t.drawRect();1===e.config.xaxis.crosshairs.width&&(b=t.drawLine());var x=e.globals.gridHeight;(!y.isNumber(x)||x<0)&&(x=0);var w=e.config.xaxis.crosshairs.width;(!y.isNumber(w)||w<0)&&(w=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:x,width:w,height:x,fill:v,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),h&&(b=n.dropShadow(b,{left:d,top:p,blur:f,color:g,opacity:m})),e.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new A(this.ctx),n=e.config.yaxis[0].crosshairs,i=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var r=t.drawLine(-i,0,e.globals.gridWidth+i,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(r)}var s=t.drawLine(-i,0,e.globals.gridWidth+i,0,n.stroke.color,0,0);s.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(s)}}]),e}(),ie=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,i=n.config;if(0!==i.responsive.length){var r=i.responsive.slice();r.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var s=new F({}),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r[0].breakpoint,a=window.innerWidth>0?window.innerWidth:screen.width;if(a>i){var o=S.extendArrayProps(s,n.globals.initialConfig,n);e=y.extend(o,e),e=y.extend(n.config,e),t.overrideResponsiveOptions(e)}else for(var l=0;l<r.length;l++)a<r[l].breakpoint&&(e=S.extendArrayProps(s,r[l].options,n),e=y.extend(n.config,e),t.overrideResponsiveOptions(e))};if(e){var o=S.extendArrayProps(s,e,n);o=y.extend(n.config,o),a(o=y.extend(o,e))}else a({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new F(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),re=function(){function e(t){o(this,e),this.ctx=t,this.colors=[],this.w=t.w;var n=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===n.config.chart.type&&n.config.plotOptions.treemap.distributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.distributed,this.isBarDistributed=n.config.plotOptions.bar.distributed&&("bar"===n.config.chart.type||"rangeBar"===n.config.chart.type)}return c(e,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e,t=this,n=this.w,i=new y;if(n.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(n.config.theme.mode)),void 0===n.config.colors||0===(null===(e=n.config.colors)||void 0===e?void 0:e.length)?n.globals.colors=this.predefined():(n.globals.colors=n.config.colors,Array.isArray(n.config.colors)&&n.config.colors.length>0&&"function"==typeof n.config.colors[0]&&(n.globals.colors=n.config.series.map((function(e,i){var r=n.config.colors[i];return r||(r=n.config.colors[0]),"function"==typeof r?(t.isColorFn=!0,r({value:n.globals.axisCharts?n.globals.series[i][0]?n.globals.series[i][0]:0:n.globals.series[i],seriesIndex:i,dataPointIndex:i,w:n})):r})))),n.globals.seriesColors.map((function(e,t){e&&(n.globals.colors[t]=e)})),n.config.theme.monochrome.enabled){var r=[],s=n.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(s=n.globals.series[0].length*n.globals.series.length);for(var a=n.config.theme.monochrome.color,o=1/(s/n.config.theme.monochrome.shadeIntensity),l=n.config.theme.monochrome.shadeTo,c=0,u=0;u<s;u++){var h=void 0;"dark"===l?(h=i.shadeColor(-1*c,a),c+=o):(h=i.shadeColor(c,a),c+=o),r.push(h)}n.globals.colors=r.slice()}var d=n.globals.colors.slice();this.pushExtraColors(n.globals.colors),["fill","stroke"].forEach((function(e){void 0===n.config[e].colors?n.globals[e].colors=t.isColorFn?n.config.colors:d:n.globals[e].colors=n.config[e].colors.slice(),t.pushExtraColors(n.globals[e].colors)})),void 0===n.config.dataLabels.style.colors?n.globals.dataLabels.style.colors=d:n.globals.dataLabels.style.colors=n.config.dataLabels.style.colors.slice(),this.pushExtraColors(n.globals.dataLabels.style.colors,50),void 0===n.config.plotOptions.radar.polygons.fill.colors?n.globals.radarPolygons.fill.colors=["dark"===n.config.theme.mode?"#424242":"none"]:n.globals.radarPolygons.fill.colors=n.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(n.globals.radarPolygons.fill.colors,20),void 0===n.config.markers.colors?n.globals.markers.colors=d:n.globals.markers.colors=n.config.markers.colors.slice(),this.pushExtraColors(n.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.w,r=t||i.globals.series.length;if(null===n&&(n=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.colorScale.inverse),n&&i.globals.series.length&&(r=i.globals.series[i.globals.maxValsInArrayIndex].length*i.globals.series.length),e.length<r)for(var s=r-e.length,a=0;a<s;a++)e.push(e[a])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",n=e.theme.palette?e.theme.palette:"dark"===t?"palette4":"palette1",i=e.chart.foreColor?e.chart.foreColor:"dark"===t?"#f6f7f8":"#373d3f";return e.tooltip.theme=t,e.chart.foreColor=i,e.theme.palette=n,e}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),e}(),se=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,n="title"===e?t.config.title:t.config.subtitle,i=t.globals.svgWidth/2,r=n.offsetY,s="middle";if("left"===n.align?(i=10,s="start"):"right"===n.align&&(i=t.globals.svgWidth-10,s="end"),i+=n.offsetX,r=r+parseInt(n.style.fontSize,10)+n.margin/2,void 0!==n.text){var a=new A(this.ctx).drawText({x:i,y:r,text:n.text,textAnchor:s,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});a.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(a)}}}]),e}(),ae=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,n=0,i=0,r="title"===e?t.config.title.floating:t.config.subtitle.floating,s=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==s&&!r){var a=s.getBoundingClientRect();n=a.width,i=t.globals.axisCharts?a.height+5:a.height}return{width:n,height:i}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var n=Object.assign({},y.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:0===n.height?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var i=t.map((function(e,t){return Array.isArray(e)?e.length:1})),r=Math.max.apply(Math,v(i));n=t[i.indexOf(r)]}return n}}]),e}(),oe=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,n=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===n.length&&(n=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var i=this.getxAxisTimeScaleLabelsCoords();e={width:i.width,height:i.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var r=t.globals.xLabelFormatter,s=y.getLargestStringFromArr(n),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,n);t.globals.isBarHorizontal&&(a=s=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var o=new O(this.dCtx.ctx),l=s;s=o.xLabelFormat(r,s,l,{i:void 0,dateFormatter:new M(this.dCtx.ctx).formatDate,w:t}),a=o.xLabelFormat(r,a,l,{i:void 0,dateFormatter:new M(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===s||""===String(s).trim())&&(a=s="1");var c=new A(this.dCtx.ctx),u=c.getTextRects(s,t.config.xaxis.labels.style.fontSize),h=u;if(s!==a&&(h=c.getTextRects(a,t.config.xaxis.labels.style.fontSize)),(e={width:u.width>=h.width?u.width:h.width,height:u.height>=h.height?u.height:h.height}).width*n.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var d=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};u=d(s),s!==a&&(h=d(a)),e.height=(u.height>h.height?u.height:h.height)/1.5,e.width=u.width>h.width?u.width:h.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var n,i=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,r=t.globals.groups.map((function(e){return e.title})),s=y.getLargestStringFromArr(r),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,r),o=new A(this.dCtx.ctx),l=o.getTextRects(s,i),c=l;return s!==a&&(c=o.getTextRects(a,i)),n={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,n=0;if(void 0!==e.config.xaxis.title.text){var i=new A(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=i.width,n=i.height}return{width:t,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map((function(e){return e.value})),i=n.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new A(this.dCtx.ctx).getTextRects(i,t.config.xaxis.labels.style.fontSize)).width*n.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,n=this.w,i=n.globals,r=n.config,s=r.xaxis.type,a=e.width;i.skipLastTimelinelabel=!1,i.skipFirstTimelinelabel=!1;var o=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,l=function(e,o){r.yaxis.length>1&&function(e){return-1!==i.collapsedSeriesIndices.indexOf(e)}(o)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var o=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+a/1.75-t.dCtx.yAxisWidthRight,c=o.position-a/1.75+t.dCtx.yAxisWidthLeft,u="right"===n.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>i.svgWidth-i.translateX-u&&(i.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==r.chart.type&&"candlestick"!==r.chart.type&&"rangeBar"!==r.chart.type&&"boxPlot"!==r.chart.type?10:a/1.75)&&(i.skipFirstTimelinelabel=!0)}else"datetime"===s?t.dCtx.gridPad.right<a&&!i.rotateXLabels&&(i.skipLastTimelinelabel=!0):"datetime"!==s&&t.dCtx.gridPad.right<a/2-t.dCtx.yAxisWidthRight&&!i.rotateXLabels&&!n.config.xaxis.labels.trim&&("between"!==n.config.xaxis.tickPlacement||n.globals.isBarHorizontal)&&(t.dCtx.xPadRight=a/2+1)}(e)};r.yaxis.forEach((function(e,n){o?(t.dCtx.gridPad.left<a&&(t.dCtx.xPadLeft=a/2+1),t.dCtx.xPadRight=a/2+1):l(e,n)}))}}]),e}(),le=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,n=[],i=10,r=new U(this.dCtx.ctx);return t.config.yaxis.map((function(s,a){var o={seriesIndex:a,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[a],c=0;if(!r.isYAxisHidden(a)&&s.labels.show&&void 0!==s.labels.minWidth&&(c=s.labels.minWidth),!r.isYAxisHidden(a)&&s.labels.show&&l.result.length){var u=t.globals.yLabelFormatters[a],h=l.niceMin===Number.MIN_VALUE?0:l.niceMin,d=l.result.reduce((function(e,t){var n,i;return(null===(n=String(u(e,o)))||void 0===n?void 0:n.length)>(null===(i=String(u(t,o)))||void 0===i?void 0:i.length)?e:t}),h),p=d=u(d,o);if(void 0!==d&&0!==d.length||(d=l.niceMax),t.globals.isBarHorizontal){i=0;var f=t.globals.labels.slice();d=y.getLargestStringFromArr(f),d=u(d,{seriesIndex:a,dataPointIndex:-1,w:t}),p=e.dCtx.dimHelpers.getLargestStringFromMultiArr(d,f)}var g=new A(e.dCtx.ctx),m="rotate(".concat(s.labels.rotate," 0 0)"),v=g.getTextRects(d,s.labels.style.fontSize,s.labels.style.fontFamily,m,!1),b=v;d!==p&&(b=g.getTextRects(p,s.labels.style.fontSize,s.labels.style.fontFamily,m,!1)),n.push({width:(c>b.width||c>v.width?c:b.width>v.width?b.width:v.width)+i,height:b.height>v.height?b.height:v.height})}else n.push({width:0,height:0})})),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,n=[];return t.config.yaxis.map((function(t,i){if(t.show&&void 0!==t.title.text){var r=new A(e.dCtx.ctx),s="rotate(".concat(t.title.rotate," 0 0)"),a=r.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,s,!1);n.push({width:a.width,height:a.height})}else n.push({width:0,height:0})})),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,i=0,r=e.globals.yAxisScale.length>1?10:0,s=new U(this.dCtx.ctx),a=function(a,o){var l=e.config.yaxis[o].floating,c=0;a.width>0&&!l?(c=a.width+r,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(o)&&(c=c-a.width-r)):c=l||s.isYAxisHidden(o)?0:5,e.config.yaxis[o].opposite?i+=c:n+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){a(e,t)})),e.globals.yTitleCoords.map((function(e,t){a(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=i,t}}]),e}(),ce=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var n=function(e){return"bar"===e||"rangeBar"===e||"candlestick"===e||"boxPlot"===e},i=t.config.chart.type,r=0,s=n(i)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(s=t.globals.comboBarCount),t.globals.collapsedSeries.forEach((function(e){n(e.type)&&(s-=1)})),t.config.chart.stacked&&(s=1),(n(i)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&s>0){var a,o,l=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);l<=3&&(l=t.globals.dataPoints),a=l/e,t.globals.minXDiff&&t.globals.minXDiff/a>0&&(o=t.globals.minXDiff/a),o>e/2&&(o/=2),(r=o*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),t.globals.barPadForNumericAxis=r}return r}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,i=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach((function(n){void 0!==t.config[n].text?i+=t.config[n].margin:i+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||t.globals.axisCharts||(i+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),s=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight=n.gridHeight-r.height-s.height-i,n.translateY=n.translateY+r.height+s.height+i}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,i=new U(this.dCtx.ctx);n.config.yaxis.map((function(r,s){-1!==n.globals.ignoreYAxisIndexes.indexOf(s)||r.floating||i.isYAxisHidden(s)||(r.opposite&&(n.globals.translateX=n.globals.translateX-(t[s].width+e[s].width)-parseInt(n.config.yaxis[s].labels.style.fontSize,10)/1.2-12),n.globals.translateX<2&&(n.globals.translateX=2))}))}}]),e}(),ue=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ae(this),this.dimYAxis=new le(this),this.dimXAxis=new oe(this),this.dimGrid=new ce(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return c(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,n=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(t){var n=m(t,2),i=n[0],r=n[1];e.gridPad[i]=Math.max(r,e.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(t.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(t.config.stroke.width/2,this.gridPad.bottom)),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*i,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(i>0?i+4:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,i=this.dimYAxis.getyAxisLabelsCoords(),r=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,n){t.globals.yLabelsCoords.push({width:i[n].width,index:n}),t.globals.yTitleCoords.push({width:r[n].width,index:n})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var s=this.dimXAxis.getxAxisLabelsCoords(),a=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(s,o,a),n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-o.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-s.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var u=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=n.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,u=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(s);var h=function(){n.translateX=l,n.gridHeight=n.svgHeight-e.lgRect.height-c-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-l};switch("top"===t.config.xaxis.position&&(u=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=u,h();break;case"top":n.translateY=this.lgRect.height+u,h();break;case"left":n.translateY=u,n.translateX=this.lgRect.width+l,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l;break;case"right":n.translateY=u,n.translateX=l,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(r,i),new J(this.ctx).setYAxisXPosition(i,r)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,i=0;e.config.legend.show&&!e.config.legend.floating&&(i=20);var r="pie"===n.chart.type||"polarArea"===n.chart.type||"donut"===n.chart.type?"pie":"radialBar",s=n.plotOptions[r].offsetY,a=n.plotOptions[r].offsetX;if(!n.legend.show||n.legend.floating)return t.gridHeight=t.svgHeight-n.grid.padding.left+n.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=s,void(t.translateX=a+(t.svgWidth-t.gridWidth)/2);switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=s-10,t.translateX=a+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+s+10,t.translateX=a+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-i,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=s,t.translateX=a+this.lgRect.width+i;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-i-5,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=s,t.translateX=a+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var i=this.w,r=i.globals.hasXaxisGroups?2:1,s=n.height+e.height+t.height,a=i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO,o=i.globals.rotateXLabels?22:10,l=i.globals.rotateXLabels&&"bottom"===i.config.legend.position?10:0;this.xAxisHeight=s*a+r*o+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,u=0;i.config.yaxis.forEach((function(e){c+=e.labels.minWidth,u+=e.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>u&&(this.yAxisWidth=u)}}]),e}(),he=function(){function e(t){o(this,e),this.w=t.w,this.lgCtx=t}return c(e,[{key:"getLegendStyles",value:function(){var e,t,n,i=document.createElement("style");i.setAttribute("type","text/css");var r=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(n=t.chart)||void 0===n?void 0:n.nonce)||this.w.config.chart.nonce;r&&i.setAttribute("nonce",r);var s=document.createTextNode("\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n border-style: solid;\n }\n\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\n display: inline-block;\n }\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return i.appendChild(s),i}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var n=this,i=this.w;if(i.globals.axisCharts||"radialBar"===i.config.chart.type){i.globals.resized=!0;var r=null,s=null;i.globals.risingSeries=[],i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),s=parseInt(r.getAttribute("data:realIndex"),10)):(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),s=parseInt(r.getAttribute("rel"),10)-1),t?[{cs:i.globals.collapsedSeries,csi:i.globals.collapsedSeriesIndices},{cs:i.globals.ancillaryCollapsedSeries,csi:i.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){n.riseCollapsedSeries(e.cs,e.csi,s)})):this.hideSeries({seriesEl:r,realIndex:s})}else{var a=i.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=i.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=i.config.plotOptions.pie.donut.labels;new A(this.lgCtx.ctx).pathMouseDown(a.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(a.members[0].node,l)}a.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,n=e.realIndex,i=this.w,r=y.clone(i.config.series);if(i.globals.axisCharts){var s=!1;if(i.config.yaxis[n]&&i.config.yaxis[n].show&&i.config.yaxis[n].showAlways&&(s=!0,i.globals.ancillaryCollapsedSeriesIndices.indexOf(n)<0&&(i.globals.ancillaryCollapsedSeries.push({index:n,data:r[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.ancillaryCollapsedSeriesIndices.push(n))),!s){i.globals.collapsedSeries.push({index:n,data:r[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.collapsedSeriesIndices.push(n);var a=i.globals.risingSeries.indexOf(n);i.globals.risingSeries.splice(a,1)}}else i.globals.collapsedSeries.push({index:n,data:r[n]}),i.globals.collapsedSeriesIndices.push(n);for(var o=t.childNodes,l=0;l<o.length;l++)o[l].classList.contains("apexcharts-series-markers-wrap")&&(o[l].classList.contains("apexcharts-hide")?o[l].classList.remove("apexcharts-hide"):o[l].classList.add("apexcharts-hide"));i.globals.allSeriesCollapsed=i.globals.collapsedSeries.length===i.config.series.length,r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,n){var i=this.w,r=y.clone(i.config.series);if(e.length>0){for(var s=0;s<e.length;s++)e[s].index===n&&(i.globals.axisCharts?(r[n].data=e[s].data.slice(),e.splice(s,1),t.splice(s,1),i.globals.risingSeries.push(n)):(r[n]=e[s].data,e.splice(s,1),t.splice(s,1),i.globals.risingSeries.push(n)));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w;return t.globals.axisCharts?e.forEach((function(n,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[])})):e.forEach((function(n,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i]=0)})),e}}]),e}(),de=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new he(this)}return c(e,[{key:"init",value:function(){var e=this.w,t=e.globals,n=e.config;if((n.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),y.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===n.legend.position||"top"===n.legend.position?this.legendAlignHorizontal():"right"!==n.legend.position&&"left"!==n.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,n=t.config.legend.fontFamily,i=t.globals.seriesNames,r=t.globals.colors.slice();if("heatmap"===t.config.chart.type){var s=t.config.plotOptions.heatmap.colorScale.ranges;i=s.map((function(e){return e.name?e.name:e.from+" - "+e.to})),r=s.map((function(e){return e.color}))}else this.isBarsDistributed&&(i=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(i=t.config.legend.customLegendItems);for(var a=t.globals.legendFormatter,o=t.config.legend.inverseOrder,l=o?i.length-1:0;o?l>=0:l<=i.length-1;o?l--:l++){var c,u=a(i[l],{seriesIndex:l,w:t}),h=!1,d=!1;if(t.globals.collapsedSeries.length>0)for(var p=0;p<t.globals.collapsedSeries.length;p++)t.globals.collapsedSeries[p].index===l&&(h=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var f=0;f<t.globals.ancillaryCollapsedSeriesIndices.length;f++)t.globals.ancillaryCollapsedSeriesIndices[f]===l&&(d=!0);var g=document.createElement("span");g.classList.add("apexcharts-legend-marker");var m=t.config.legend.markers.offsetX,v=t.config.legend.markers.offsetY,b=t.config.legend.markers.height,x=t.config.legend.markers.width,w=t.config.legend.markers.strokeWidth,k=t.config.legend.markers.strokeColor,C=t.config.legend.markers.radius,_=g.style;_.background=r[l],_.color=r[l],_.setProperty("background",r[l],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[l]&&(_.background=t.config.legend.markers.fillColors[l]),void 0!==t.globals.seriesColors[l]&&(_.background=t.globals.seriesColors[l],_.color=t.globals.seriesColors[l]),_.height=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",_.width=Array.isArray(x)?parseFloat(x[l])+"px":parseFloat(x)+"px",_.left=(Array.isArray(m)?parseFloat(m[l]):parseFloat(m))+"px",_.top=(Array.isArray(v)?parseFloat(v[l]):parseFloat(v))+"px",_.borderWidth=Array.isArray(w)?w[l]:w,_.borderColor=Array.isArray(k)?k[l]:k,_.borderRadius=Array.isArray(C)?parseFloat(C[l])+"px":parseFloat(C)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[l]&&(g.innerHTML=t.config.legend.markers.customHTML[l]()):g.innerHTML=t.config.legend.markers.customHTML()),A.setAttrs(g,{rel:l+1,"data:collapsed":h||d}),(h||d)&&g.classList.add("apexcharts-inactive-legend");var E=document.createElement("div"),L=document.createElement("span");L.classList.add("apexcharts-legend-text"),L.innerHTML=Array.isArray(u)?u.join(" "):u;var T=t.config.legend.labels.useSeriesColors?t.globals.colors[l]:Array.isArray(t.config.legend.labels.colors)?null===(c=t.config.legend.labels.colors)||void 0===c?void 0:c[l]:t.config.legend.labels.colors;T||(T=t.config.chart.foreColor),L.style.color=T,L.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",L.style.fontWeight=t.config.legend.fontWeight,L.style.fontFamily=n||t.config.chart.fontFamily,A.setAttrs(L,{rel:l+1,i:l,"data:default-text":encodeURIComponent(u),"data:collapsed":h||d}),E.appendChild(g),E.appendChild(L);var D=new S(this.ctx);t.config.legend.showForZeroSeries||0===D.getSeriesTotalByIndex(l)&&D.seriesHaveSameValues(l)&&!D.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&E.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||D.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&E.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(E),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),E.classList.add("apexcharts-legend-series"),E.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",A.setAttrs(E,{rel:l+1,seriesName:y.escapeString(i[l]),"data:collapsed":h||d}),(h||d)&&E.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||E.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&0===t.config.legend.customLegendItems.length&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var n=this.w,i=n.globals.dom.elLegendWrap,r=i.getBoundingClientRect(),s=0,a=0;if("bottom"===n.config.legend.position)a+=n.globals.svgHeight-r.height/2;else if("top"===n.config.legend.position){var o=new ue(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;a=a+(l>0?l-10:0)+(c>0?c-10:0)}i.style.position="absolute",s=s+e+n.config.legend.offsetX,a=a+t+n.config.legend.offsetY,i.style.left=s+"px",i.style.top=a+"px","bottom"===n.config.legend.position?(i.style.top="auto",i.style.bottom=5-n.config.legend.offsetY+"px"):"right"===n.config.legend.position&&(i.style.left="auto",i.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach((function(e){i.style[e]&&(i.style[e]=parseInt(n.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendBBox(),n=new ue(this.ctx),i=n.dimHelpers.getTitleSubtitleCoords("title"),r=n.dimHelpers.getTitleSubtitleCoords("subtitle"),s=0;"bottom"===e.config.legend.position?s=-t.clwh/1.8:"top"===e.config.legend.position&&(s=i.height+r.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,s)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),n=0;"left"===e.config.legend.position&&(n=20),"right"===e.config.legend.position&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,n=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(n){var i=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,i,this.w]),new X(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new X(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,i="true"===e.target.getAttribute("data:collapsed"),r=this.w.config.chart.events.legendClick;"function"==typeof r&&r(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var s=this.w.config.legend.markers.onClick;"function"==typeof s&&e.target.classList.contains("apexcharts-legend-marker")&&(s(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,i)}}}]),e}(),pe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return c(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},i=n();if(i.setAttribute("class","apexcharts-toolbar"),i.style.top=t.config.chart.toolbar.offsetY+"px",i.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(i),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(n());var s=[],a=function(n,i,r){var a=n.toLowerCase();e.t[a]&&t.config.chart.zoom.enabled&&s.push({el:i,icon:"string"==typeof e.t[a]?e.t[a]:r,title:e.localeValues[n],class:"apexcharts-".concat(a,"-icon")})};a("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),a("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var o=function(n){e.t[n]&&t.config.chart[n].enabled&&s.push({el:"zoom"===n?e.elZoom:e.elSelection,icon:"string"==typeof e.t[n]?e.t[n]:"zoom"===n?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===n?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})};o("zoom"),o("selection"),this.t.pan&&t.config.chart.zoom.enabled&&s.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),a("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&s.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)s.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});s.forEach((function(e,t){e.index&&y.moveIndexInArray(s,t,e.index)}));for(var c=0;c<s.length;c++)A.setAttrs(s[c].el,{class:s[c].class,title:s[c].title}),s[c].el.innerHTML=s[c].icon,i.appendChild(s[c].el);this._createHamburgerMenu(i),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),A.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],n=0;n<t.length;n++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[n].innerHTML=t[n].title,A.setAttrs(this.elMenuItems[n],{class:"apexcharts-menu-item ".concat(t[n].name),title:t[n].title}),this.elMenu.appendChild(this.elMenuItems[n])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))}));for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls();var n="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[i]=!t.w.globals[i],n.classList.contains(t.ctx.toolbar.selectedClass)?n.classList.remove(t.ctx.toolbar.selectedClass):n.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,n="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(t){t&&t.classList.remove(e.selectedClass)}))}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,n=(this.minX+t)/2,i=(this.maxX+t)/2,r=this._getNewMinXMaxX(n,i);e.globals.disableZoomIn||this.zoomUpdateOptions(r.minX,r.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,n=this.minX-(t-this.minX),i=this.maxX-(t-this.maxX),r=this._getNewMinXMaxX(n,i);e.globals.disableZoomOut||this.zoomUpdateOptions(r.minX,r.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var n=this.w;if(void 0!==e||void 0!==t){if(!(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=n.globals.dataPoints),t-e<2))){var i={min:e,max:t},r=this.getBeforeZoomRange(i);r&&(i=r.xaxis);var s={xaxis:i},a=y.clone(n.globals.initialConfig.yaxis);n.config.chart.zoom.autoScaleYaxis&&(a=new Z(this.ctx).autoScaleY(this.ctx,a,{xaxis:i})),n.config.chart.group||(s.yaxis=a),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(s,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(i,a)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var n=null;return"function"==typeof this.ev.beforeZoom&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),n}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout((function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(e){var t=this.w,n=new $(this.ctx);switch(e){case"svg":n.exportToSVG(this.ctx);break;case"png":n.exportToPng(this.ctx);break;case"csv":n.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach((function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var n=t.config.chart.events.beforeResetZoom(e,t);n&&e.updateHelpers.revertDefaultAxisMinMax(n)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var i=e.ctx.series.emptyCollapsedSeries(y.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(i,t.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),fe=function(){h(t,pe);var e=g(t);function t(n){var i;return o(this,t),(i=e.call(this,n)).ctx=n,i.w=n.w,i.dragged=!1,i.graphics=new A(i.ctx),i.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],i.clientX=0,i.clientY=0,i.startX=0,i.endX=0,i.dragX=0,i.startY=0,i.endY=0,i.dragY=0,i.moveDirection="none",i}return c(t,[{key:"init",value:function(e){var t=this,n=e.xyRatios,i=this.w,r=this;this.xyRatios=n,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=i.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),i.globals.dom.elGraphical.add(this.zoomRect),i.globals.dom.elGraphical.add(this.selectionRect),"x"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:i.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=i.globals.dom.baseEl.querySelector("".concat(i.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(e){t.hoverArea.addEventListener(e,r.svgMouseEvents.bind(r,n),{capture:!1,passive:!0})}))}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var n=this.w,i=this,r=this.ctx.toolbar,s=n.globals.zoomEnabled?n.config.chart.zoom.type:n.config.chart.selection.type,a=n.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,r.enableZoomPanFromToolbar("pan"===a?"zoom":"pan")):this.shiftWasPressed&&(r.enableZoomPanFromToolbar(a),this.shiftWasPressed=!1),t.target){var o,l=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(o=t.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||o&&o.contains("apexcharts-toolbar"))){if(i.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,i.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which){var c=i.gridRect.getBoundingClientRect();i.startX=i.clientX-c.left,i.startY=i.clientY-c.top,i.dragged=!1,i.w.globals.mousedown=!0}if(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(i.dragged=!0,n.globals.panEnabled?(n.globals.selection=null,i.w.globals.mousedown&&i.panDragging({context:i,zoomtype:s,xyRatios:e})):(i.w.globals.mousedown&&n.globals.zoomEnabled||i.w.globals.mousedown&&n.globals.selectionEnabled)&&(i.selection=i.selectionDrawing({context:i,zoomtype:s}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type){var u=i.gridRect.getBoundingClientRect();i.w.globals.mousedown&&(i.endX=i.clientX-u.left,i.endY=i.clientY-u.top,i.dragX=Math.abs(i.endX-i.startX),i.dragY=Math.abs(i.endY-i.startY),(n.globals.zoomEnabled||n.globals.selectionEnabled)&&i.selectionDrawn({context:i,zoomtype:s}),n.globals.panEnabled&&n.config.xaxis.convertedCatToNumeric&&i.delayedPanScrolled()),n.globals.zoomEnabled&&i.hideSelectionRect(this.selectionRect),i.dragged=!1,i.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var e=this.w;if(this.selectionRect){var t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var n=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,i=e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-n;e.globals.isRangeBar&&(n=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,i=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var r={x:n,y:0,width:i,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(r),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,n=e.y,i=e.width,r=e.height,s=e.translateX,a=void 0===s?0:s,o=e.translateY,l=void 0===o?0:o,c=this.w,u=this.zoomRect,h=this.selectionRect;if(this.dragged||null!==c.globals.selection){var d={transform:"translate("+a+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(i<0&&(i=1),u.attr({x:t,y:n,width:i,height:r,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),A.setAttrs(u.node,d)),c.globals.selectionEnabled&&(h.attr({x:t,y:n,width:i>0?i:0,height:r>0?r:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),A.setAttrs(h.node,d))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t,n=e.context,i=e.zoomtype,r=this.w,s=n,a=this.gridRect.getBoundingClientRect(),o=s.startX-1,l=s.startY,c=!1,u=!1,h=s.clientX-a.left-o,d=s.clientY-a.top-l;return Math.abs(h+o)>r.globals.gridWidth?h=r.globals.gridWidth-o:s.clientX-a.left<0&&(h=o),o>s.clientX-a.left&&(c=!0,h=Math.abs(h)),l>s.clientY-a.top&&(u=!0,d=Math.abs(d)),t="x"===i?{x:c?o-h:o,y:0,width:h,height:r.globals.gridHeight}:"y"===i?{x:0,y:u?l-d:l,width:r.globals.gridWidth,height:d}:{x:c?o-h:o,y:u?l-d:l,width:h,height:d},s.drawSelectionRect(t),s.selectionDragging("resizing"),t}},{key:"selectionDragging",value:function(e,t){var n=this,i=this.w,r=this.xyRatios,s=this.selectionRect,a=0;"resizing"===e&&(a=30);var o=function(e){return parseFloat(s.node.getAttribute(e))},l={x:o("x"),y:o("y"),width:o("width"),height:o("height")};i.globals.selection=l,"function"==typeof i.config.chart.events.selection&&i.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e,t,a,o,l=n.gridRect.getBoundingClientRect(),c=s.node.getBoundingClientRect();i.globals.isRangeBar?(e=i.globals.yAxisScale[0].niceMin+(c.left-l.left)*r.invertedYRatio,t=i.globals.yAxisScale[0].niceMin+(c.right-l.left)*r.invertedYRatio,a=0,o=1):(e=i.globals.xAxisScale.niceMin+(c.left-l.left)*r.xRatio,t=i.globals.xAxisScale.niceMin+(c.right-l.left)*r.xRatio,a=i.globals.yAxisScale[0].niceMin+(l.bottom-c.bottom)*r.yRatio[0],o=i.globals.yAxisScale[0].niceMax-(c.top-l.top)*r.yRatio[0]);var u={xaxis:{min:e,max:t},yaxis:{min:a,max:o}};i.config.chart.events.selection(n.ctx,u),i.config.chart.brush.enabled&&void 0!==i.config.chart.events.brushScrolled&&i.config.chart.events.brushScrolled(n.ctx,u)}),a))}},{key:"selectionDrawn",value:function(e){var t=e.context,n=e.zoomtype,i=this.w,r=t,s=this.xyRatios,a=this.ctx.toolbar;if(r.startX>r.endX){var o=r.startX;r.startX=r.endX,r.endX=o}if(r.startY>r.endY){var l=r.startY;r.startY=r.endY,r.endY=l}var c=void 0,u=void 0;i.globals.isRangeBar?(c=i.globals.yAxisScale[0].niceMin+r.startX*s.invertedYRatio,u=i.globals.yAxisScale[0].niceMin+r.endX*s.invertedYRatio):(c=i.globals.xAxisScale.niceMin+r.startX*s.xRatio,u=i.globals.xAxisScale.niceMin+r.endX*s.xRatio);var h=[],d=[];if(i.config.yaxis.forEach((function(e,t){h.push(i.globals.yAxisScale[t].niceMax-s.yRatio[t]*r.startY),d.push(i.globals.yAxisScale[t].niceMax-s.yRatio[t]*r.endY)})),r.dragged&&(r.dragX>10||r.dragY>10)&&c!==u)if(i.globals.zoomEnabled){var p=y.clone(i.globals.initialConfig.yaxis),f=y.clone(i.globals.initialConfig.xaxis);if(i.globals.zoomed=!0,i.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=i.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==n&&"x"!==n||(f={min:c,max:u}),"xy"!==n&&"y"!==n||p.forEach((function(e,t){p[t].min=d[t],p[t].max=h[t]})),i.config.chart.zoom.autoScaleYaxis){var g=new Z(r.ctx);p=g.autoScaleY(r.ctx,p,{xaxis:f})}if(a){var m=a.getBeforeZoomRange(f,p);m&&(f=m.xaxis?m.xaxis:f,p=m.yaxis?m.yaxis:p)}var v={xaxis:f};i.config.chart.group||(v.yaxis=p),r.ctx.updateHelpers._updateOptions(v,!1,r.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof i.config.chart.events.zoomed&&a.zoomCallback(f,p)}else if(i.globals.selectionEnabled){var b,x=null;b={min:c,max:u},"xy"!==n&&"y"!==n||(x=y.clone(i.config.yaxis)).forEach((function(e,t){x[t].min=d[t],x[t].max=h[t]})),i.globals.selection=r.selection,"function"==typeof i.config.chart.events.selection&&i.config.chart.events.selection(r.ctx,{xaxis:b,yaxis:x})}}},{key:"panDragging",value:function(e){var t=e.context,n=this.w,i=t;if(void 0!==n.globals.lastClientPosition.x){var r=n.globals.lastClientPosition.x-i.clientX,s=n.globals.lastClientPosition.y-i.clientY;Math.abs(r)>Math.abs(s)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(s)&&r<0?this.moveDirection="right":Math.abs(s)>Math.abs(r)&&s>0?this.moveDirection="up":Math.abs(s)>Math.abs(r)&&s<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:i.clientX,y:i.clientY};var a=n.globals.isRangeBar?n.globals.minY:n.globals.minX,o=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||i.panScrolled(a,o)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,n=e.globals.maxX,i=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+i,n=e.globals.maxX+i):"right"===this.moveDirection&&(t=e.globals.minX-i,n=e.globals.maxX-i),t=Math.floor(t),n=Math.floor(n),this.updateScrolledChart({xaxis:{min:t,max:n}},t,n)}},{key:"panScrolled",value:function(e,t){var n=this.w,i=this.xyRatios,r=y.clone(n.globals.initialConfig.yaxis),s=i.xRatio,a=n.globals.minX,o=n.globals.maxX;n.globals.isRangeBar&&(s=i.invertedYRatio,a=n.globals.minY,o=n.globals.maxY),"left"===this.moveDirection?(e=a+n.globals.gridWidth/15*s,t=o+n.globals.gridWidth/15*s):"right"===this.moveDirection&&(e=a-n.globals.gridWidth/15*s,t=o-n.globals.gridWidth/15*s),n.globals.isRangeBar||(e<n.globals.initialMinX||t>n.globals.initialMaxX)&&(e=a,t=o);var l={min:e,max:t};n.config.chart.zoom.autoScaleYaxis&&(r=new Z(this.ctx).autoScaleY(this.ctx,r,{xaxis:l}));var c={xaxis:{min:e,max:t}};n.config.chart.group||(c.yaxis=r),this.updateScrolledChart(c,e,t)}},{key:"updateScrolledChart",value:function(e,t,n){var i=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof i.config.chart.events.scrolled&&i.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:n}})}}]),t}(),ge=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return c(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,i=e.clientX,r=e.clientY,s=this.w,a=n.getBoundingClientRect(),o=a.width,l=a.height,c=o/(s.globals.dataPoints-1),u=l/s.globals.dataPoints,h=this.hasBars();!s.globals.comboCharts&&!h||s.config.xaxis.convertedCatToNumeric||(c=o/s.globals.dataPoints);var d=i-a.left-s.globals.barPadForNumericAxis,p=r-a.top;d<0||p<0||d>o||p>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):s.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):s.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var f=Math.round(d/c),g=Math.floor(p/u);h&&!s.config.xaxis.convertedCatToNumeric&&(f=Math.ceil(d/c),f-=1);var m=null,v=null,b=s.globals.seriesXvalues.map((function(e){return e.filter((function(e){return y.isNumber(e)}))})),x=s.globals.seriesYvalues.map((function(e){return e.filter((function(e){return y.isNumber(e)}))}));if(s.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),k=d*(w.width/o),A=p*(w.height/l);m=(v=this.closestInMultiArray(k,A,b,x)).index,f=v.j,null!==m&&(b=s.globals.seriesXvalues[m],f=(v=this.closestInArray(k,b)).index)}return s.globals.capturedSeriesIndex=null===m?-1:m,(!f||f<1)&&(f=0),s.globals.isBarHorizontal?s.globals.capturedDataPointIndex=g:s.globals.capturedDataPointIndex=f,{capturedSeries:m,j:s.globals.isBarHorizontal?g:f,hoverX:d,hoverY:p}}},{key:"closestInMultiArray",value:function(e,t,n,i){var r=this.w,s=0,a=null,o=-1;r.globals.series.length>1?s=this.getFirstActiveXArray(n):a=0;var l=n[s][0],c=Math.abs(e-l);if(n.forEach((function(t){t.forEach((function(t,n){var i=Math.abs(e-t);i<=c&&(c=i,o=n)}))})),-1!==o){var u=i[s][o],h=Math.abs(t-u);a=s,i.forEach((function(e,n){var i=Math.abs(t-e[o]);i<=h&&(h=i,a=n)}))}return{index:a,j:o}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,n=0,i=e.map((function(e,t){return e.length>0?t:-1})),r=0;r<i.length;r++)if(-1!==i[r]&&-1===t.globals.collapsedSeriesIndices.indexOf(r)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(r)){n=i[r];break}return n}},{key:"closestInArray",value:function(e,t){for(var n=t[0],i=null,r=Math.abs(e-n),s=0;s<t.length;s++){var a=Math.abs(e-t[s]);a<r&&(r=a,i=s)}return{index:i}}},{key:"isXoverlap",value:function(e){var t=[],n=this.w.globals.seriesX.filter((function(e){return void 0!==e[0]}));if(n.length>0)for(var i=0;i<n.length-1;i++)void 0!==n[i][e]&&void 0!==n[i+1][e]&&n[i][e]!==n[i+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,n=0;n<t.length-1;n++)if(t[n].data.length!==t[n+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return v(e).reduce((function(e,t){return e+t.getBBox().height}),0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=v(e)).sort((function(e,t){var n=Number(e.getAttribute("data:realIndex")),i=Number(t.getAttribute("data:realIndex"));return i<n?1:i>n?-1:0}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,n=t.config.markers.hover.size;return void 0===n&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,n=this.ttCtx;0===n.allTooltipSeriesGroups.length&&(n.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var i=n.allTooltipSeriesGroups,r=0;r<i.length;r++)"enable"===e?(i[r].classList.add("apexcharts-active"),i[r].style.display=t.config.tooltip.items.display):(i[r].classList.remove("apexcharts-active"),i[r].style.display="none")}}]),e}(),me=function(){function e(t){o(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new ge(t)}return c(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,n=void 0===t||t,i=e.ttItems,r=e.i,s=void 0===r?0:r,a=e.j,o=void 0===a?null:a,l=e.y1,c=e.y2,u=e.e,h=this.w;void 0!==h.config.tooltip.custom?this.handleCustomTooltip({i:s,j:o,y1:l,y2:c,w:h}):this.toggleActiveInactiveSeries(n);var d=this.getValuesToPrint({i:s,j:o});this.printLabels({i:s,j:o,values:d,ttItems:i,shared:n,e:u});var p=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=p.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=p.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,n=this,i=e.i,r=e.j,a=e.values,o=e.ttItems,l=e.shared,c=e.e,u=this.w,h=[],d=function(e){return u.globals.seriesGoals[e]&&u.globals.seriesGoals[e][r]&&Array.isArray(u.globals.seriesGoals[e][r])},p=a.xVal,f=a.zVal,g=a.xAxisTTVal,m="",v=u.globals.colors[i];null!==r&&u.config.plotOptions.bar.distributed&&(v=u.globals.colors[r]);for(var b=function(e,a){var b=n.getFormatters(i);m=n.getSeriesName({fn:b.yLbTitleFormatter,index:i,seriesIndex:i,j:r}),"treemap"===u.config.chart.type&&(m=b.yLbTitleFormatter(String(u.config.series[i].data[r].x),{series:u.globals.series,seriesIndex:i,dataPointIndex:r,w:u}));var x=u.config.tooltip.inverseOrder?a:e;if(u.globals.axisCharts){var y=function(e){var t,n,i,s;return u.globals.isRangeData?b.yLbFormatter(null===(t=u.globals.seriesRangeStart)||void 0===t||null===(n=t[e])||void 0===n?void 0:n[r],{series:u.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:r,w:u})+" - "+b.yLbFormatter(null===(i=u.globals.seriesRangeEnd)||void 0===i||null===(s=i[e])||void 0===s?void 0:s[r],{series:u.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:r,w:u}):b.yLbFormatter(u.globals.series[e][r],{series:u.globals.series,seriesIndex:e,dataPointIndex:r,w:u})};if(l)b=n.getFormatters(x),m=n.getSeriesName({fn:b.yLbTitleFormatter,index:x,seriesIndex:i,j:r}),v=u.globals.colors[x],t=y(x),d(x)&&(h=u.globals.seriesGoals[x][r].map((function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:x,dataPointIndex:r,w:u})}})));else{var w,k=null==c||null===(w=c.target)||void 0===w?void 0:w.getAttribute("fill");k&&(v=-1!==k.indexOf("url")?document.querySelector(k.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):k),t=y(i),d(i)&&Array.isArray(u.globals.seriesGoals[i][r])&&(h=u.globals.seriesGoals[i][r].map((function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:i,dataPointIndex:r,w:u})}})))}}null===r&&(t=b.yLbFormatter(u.globals.series[i],s(s({},u),{},{seriesIndex:i,dataPointIndex:i}))),n.DOMHandling({i,t:x,j:r,ttItems:o,values:{val:t,goalVals:h,xVal:p,xAxisTTVal:g,zVal:f},seriesName:m,shared:l,pColor:v})},x=0,y=u.globals.series.length-1;x<u.globals.series.length;x++,y--)b(x,y)}},{key:"getFormatters",value:function(e){var t,n=this.w,i=n.globals.yLabelFormatters[e];return void 0!==n.globals.ttVal?Array.isArray(n.globals.ttVal)?(i=n.globals.ttVal[e]&&n.globals.ttVal[e].formatter,t=n.globals.ttVal[e]&&n.globals.ttVal[e].title&&n.globals.ttVal[e].title.formatter):(i=n.globals.ttVal.formatter,"function"==typeof n.globals.ttVal.title.formatter&&(t=n.globals.ttVal.title.formatter)):t=n.config.tooltip.y.title.formatter,"function"!=typeof i&&(i=n.globals.yLabelFormatters[0]?n.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e}),{yLbFormatter:i,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,n=e.index,i=e.seriesIndex,r=e.j,s=this.w;return t(String(s.globals.seriesNames[n]),{series:s.globals.series,seriesIndex:i,dataPointIndex:r,w:s})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,n=e.j,i=e.ttItems,r=e.values,s=e.seriesName,a=e.shared,o=e.pColor,l=this.w,c=this.ttCtx,u=r.val,h=r.goalVals,d=r.xVal,p=r.xAxisTTVal,f=r.zVal,g=null;g=i[t].children,l.config.tooltip.fillSeriesColor&&(i[t].style.backgroundColor=o,g[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=d),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==p?p:d);var m=i[t].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=s||"");var v=i[t].querySelector(".apexcharts-tooltip-text-y-value");v&&(v.innerHTML=void 0!==u?u:""),g[0]&&g[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[t]),g[0].style.backgroundColor=o),l.config.tooltip.marker.show||(g[0].style.display="none");var b=i[t].querySelector(".apexcharts-tooltip-text-goals-label"),x=i[t].querySelector(".apexcharts-tooltip-text-goals-value");if(h.length&&l.globals.seriesGoals[t]){var y=function(){var e="<div >",t="<div>";h.forEach((function(n,i){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(n.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(n.attrs.name,"</div>"),t+="<div>".concat(n.val,"</div>")})),b.innerHTML=e+"</div>",x.innerHTML=t+"</div>"};a?l.globals.seriesGoals[t][n]&&Array.isArray(l.globals.seriesGoals[t][n])?y():(b.innerHTML="",x.innerHTML=""):y()}else b.innerHTML="",x.innerHTML="";if(null!==f&&(i[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,i[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==f?f:""),a&&g[0]){if(l.config.tooltip.hideEmptySeries){var w=i[t].querySelector(".apexcharts-tooltip-marker"),k=i[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(u)?(w.style.display="none",k.style.display="none"):(w.style.display="block",k.style.display="block")}null==u||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1?g[0].parentNode.style.display="none":g[0].parentNode.style.display=l.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var n=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");n&&(n.classList.add("apexcharts-active"),n.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,i=this.w,r=this.ctx.series.filteredSeriesX(),s="",a="",o=null,l=null,c={series:i.globals.series,seriesIndex:t,dataPointIndex:n,w:i},u=i.globals.ttZFormatter;null===n?l=i.globals.series[t]:i.globals.isXNumeric&&"treemap"!==i.config.chart.type?(s=r[t][n],0===r[t].length&&(s=r[this.tooltipUtil.getFirstActiveXArray(r)][n])):s=void 0!==i.globals.labels[n]?i.globals.labels[n]:"";var h=s;return s=i.globals.isXNumeric&&"datetime"===i.config.xaxis.type?new O(this.ctx).xLabelFormat(i.globals.ttKeyFormatter,h,h,{i:void 0,dateFormatter:new M(this.ctx).formatDate,w:this.w}):i.globals.isBarHorizontal?i.globals.yLabelFormatters[0](h,c):i.globals.xLabelFormatter(h,c),void 0!==i.config.tooltip.x.formatter&&(s=i.globals.ttKeyFormatter(h,c)),i.globals.seriesZ.length>0&&i.globals.seriesZ[t].length>0&&(o=u(i.globals.seriesZ[t][n],i)),a="function"==typeof i.config.xaxis.tooltip.formatter?i.globals.xaxisTooltipFormatter(h,c):s,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(s)?s.join(" "):s,xAxisTTVal:Array.isArray(a)?a.join(" "):a,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,i=e.y1,r=e.y2,s=e.w,a=this.ttCtx.getElTooltip(),o=s.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]),a.innerHTML=o({ctx:this.ctx,series:s.globals.series,seriesIndex:t,dataPointIndex:n,y1:i,y2:r,w:s})}}]),e}(),ve=function(){function e(t){o(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return c(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.ttCtx,i=this.w,r=n.getElXCrosshairs(),s=e-n.xcrosshairsWidth/2,a=i.globals.labels.slice().length;if(null!==t&&(s=i.globals.gridWidth/a*t),null===r||i.globals.isBarHorizontal||(r.setAttribute("x",s),r.setAttribute("x1",s),r.setAttribute("x2",s),r.setAttribute("y2",i.globals.gridHeight),r.classList.add("apexcharts-active")),s<0&&(s=0),s>i.globals.gridWidth&&(s=i.globals.gridWidth),n.isXAxisTooltipEnabled){var o=s;"tickWidth"!==i.config.xaxis.crosshairs.width&&"barWidth"!==i.config.xaxis.crosshairs.width||(o=s+n.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&A.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&A.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;if(null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth){n.xaxisTooltip.classList.add("apexcharts-active");var i,r=n.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e))e+=t.globals.translateX,i=new A(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=i.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=r+"px"}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;null===n.yaxisTTEls&&(n.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var i=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),r=t.globals.translateY+i,s=n.yaxisTTEls[e].getBoundingClientRect().height,a=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(a-=26),r-=s/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=r+"px",n.yaxisTTEls[e].style.left=a+t.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.w,r=this.ttCtx,s=r.getElTooltip(),a=r.tooltipRect,o=null!==n?parseFloat(n):1,l=parseFloat(e)+o+5,c=parseFloat(t)+o/2;if(l>i.globals.gridWidth/2&&(l=l-a.ttWidth-o-10),l>i.globals.gridWidth-a.ttWidth-10&&(l=i.globals.gridWidth-a.ttWidth),l<-20&&(l=-20),i.config.tooltip.followCursor){var u=r.getElGrid().getBoundingClientRect();(l=r.e.clientX-u.left)>i.globals.gridWidth/2&&(l-=r.tooltipRect.ttWidth),(c=r.e.clientY+i.globals.translateY-u.top)>i.globals.gridHeight/2&&(c-=r.tooltipRect.ttHeight)}else i.globals.isBarHorizontal||a.ttHeight/2+c>i.globals.gridHeight&&(c=i.globals.gridHeight-a.ttHeight+i.globals.translateY);isNaN(l)||(l+=i.globals.translateX,s.style.left=l+"px",s.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,i=this.ttCtx;if(n.globals.markers.size[e]>0)for(var r=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),s=0;s<r.length;s++)parseInt(r[s].getAttribute("rel"),10)===t&&(i.marker.resetPointsSize(),i.marker.enlargeCurrentPoint(t,r[s]));else i.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var n,i,r=this.w,s=this.ttCtx,a=r.globals.pointsArray,o=s.tooltipUtil.getHoverMarkerSize(t),l=r.config.series[t].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){n=a[t][e][0],i=a[t][e][1]?a[t][e][1]:0;var c=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));c&&i<r.globals.gridHeight&&i>0&&(c.setAttribute("r",o),c.setAttribute("cx",n),c.setAttribute("cy",i)),this.moveXCrosshairs(n),s.fixedTooltip||this.moveTooltip(n,i,o)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,i=n.w,r=0,s=0,a=i.globals.pointsArray;t=new X(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var o=n.tooltipUtil.getHoverMarkerSize(t);a[t]&&(r=a[t][e][0],s=a[t][e][1]);var l=n.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<i.globals.series.length;c++){var u=a[c];if(i.globals.comboCharts&&void 0===u&&l.splice(c,0,null),u&&u.length){var h=a[c][e][1],d=void 0;if(l[c].setAttribute("cx",r),"rangeArea"===i.config.chart.type&&!i.globals.comboCharts){var p=e+i.globals.series[c].length;d=a[c][p][1],h-=Math.abs(h-d)/2}null!==h&&!isNaN(h)&&h<i.globals.gridHeight+o&&h+o>0?(l[c]&&l[c].setAttribute("r",o),l[c]&&l[c].setAttribute("cy",h)):l[c]&&l[c].setAttribute("r",0)}}this.moveXCrosshairs(r),n.fixedTooltip||this.moveTooltip(r,s||i.globals.gridHeight,o)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var n=this.w,i=this.ttCtx,r=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length,s=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;n.globals.isBarHorizontal&&(s=new X(this.ctx).getActiveConfigSeriesIndex("desc")+1);var a=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(s,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"']"));a||"number"!=typeof t||(a=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var o=a?parseFloat(a.getAttribute("cx")):0,l=a?parseFloat(a.getAttribute("cy")):0,c=a?parseFloat(a.getAttribute("barWidth")):0,u=i.getElGrid().getBoundingClientRect(),h=a&&(a.classList.contains("apexcharts-candlestick-area")||a.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(a&&!h&&(o-=r%2!=0?c/2:0),a&&h&&n.globals.comboCharts&&(o-=c/2)):n.globals.isBarHorizontal||(o=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(o)&&(o=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?l-=i.tooltipRect.ttHeight:n.config.tooltip.followCursor?l=i.e.clientY-u.top-i.tooltipRect.ttHeight/2:l+i.tooltipRect.ttHeight+15>n.globals.gridHeight&&(l=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(o),i.fixedTooltip||this.moveTooltip(o,l||n.globals.gridHeight)}}]),e}(),be=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ve(t)}return c(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new A(this.ctx),n=new j(this.ctx),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");i=v(i),e.config.chart.stacked&&i.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var r=0;r<i.length;r++){var s=i[r].querySelector(".apexcharts-series-markers-wrap");if(null!==s){var a=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(o+=" no-pointer-events");var l=n.getMarkerConfig({cssClass:o,seriesIndex:Number(s.getAttribute("data:realIndex"))});(a=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(a.node),s.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w;"bubble"!==r.config.chart.type&&this.newPointSize(e,t);var s=t.getAttribute("cx"),a=t.getAttribute("cy");if(null!==n&&null!==i&&(s=n,a=i),this.tooltipPosition.moveXCrosshairs(s),!this.fixedTooltip){if("radar"===r.config.chart.type){var o=this.ttCtx.getElGrid().getBoundingClientRect();s=this.ttCtx.e.clientX-o.left}this.tooltipPosition.moveTooltip(s,a,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,i=this.ttCtx,r=e,s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),a=t.config.markers.hover.size,o=0;o<s.length;o++){var l=s[o].getAttribute("rel"),c=s[o].getAttribute("index");if(void 0===a&&(a=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),r===parseInt(l,10)){n.newPointSize(r,s[o]);var u=s[o].getAttribute("cx"),h=s[o].getAttribute("cy");n.tooltipPosition.moveXCrosshairs(u),i.fixedTooltip||n.tooltipPosition.moveTooltip(u,h,a)}else n.oldPointSize(s[o])}}},{key:"newPointSize",value:function(e,t){var n=this.w,i=n.config.markers.hover.size,r=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==r.getAttribute("default-marker-size")){var s=parseInt(r.getAttribute("index"),10);void 0===i&&(i=n.globals.markers.size[s]+n.config.markers.hover.sizeOffset),i<0&&(i=0),r.setAttribute("r",i)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size"));e.setAttribute("r",t)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var n=parseFloat(e[t].getAttribute("default-marker-size"));y.isNumber(n)&&n>=0?e[t].setAttribute("r",n):e[t].setAttribute("r",0)}}}]),e}(),xe=function(){function e(t){o(this,e),this.w=t.w;var n=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&"rangeBar"===n.config.chart.type&&n.config.plotOptions.bar.rangeBarGroupRows}return c(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,n=e.opt,i=e.x,r=e.y,s=e.type,a=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(s,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),u=this.getAttr(t,"cx"),h=this.getAttr(t,"cy"),d=this.getAttr(t,"width"),p=this.getAttr(t,"height");if(a.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:l,j:c,shared:!1,e:t}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,i=u+a.tooltipRect.ttWidth/2+d,r=h+a.tooltipRect.ttHeight/2-p/2,a.tooltipPosition.moveXCrosshairs(u+d/2),i>o.globals.gridWidth/2&&(i=u-a.tooltipRect.ttWidth/2+d),a.w.config.tooltip.followCursor){var f=o.globals.dom.elWrap.getBoundingClientRect();i=o.globals.clientX-f.left-(i>o.globals.gridWidth/2?a.tooltipRect.ttWidth:0),r=o.globals.clientY-f.top-(r>o.globals.gridHeight/2?a.tooltipRect.ttHeight:0)}}return{x:i,y:r}}},{key:"handleMarkerTooltip",value:function(e){var t,n,i=e.e,r=e.opt,s=e.x,a=e.y,o=this.w,l=this.ttCtx;if(i.target.classList.contains("apexcharts-marker")){var c=parseInt(r.paths.getAttribute("cx"),10),u=parseInt(r.paths.getAttribute("cy"),10),h=parseFloat(r.paths.getAttribute("val"));if(n=parseInt(r.paths.getAttribute("rel"),10),t=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var d=y.findAncestor(r.paths,"apexcharts-series");d&&(t=parseInt(d.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:t,j:n,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:i}),"mouseup"===i.type&&l.markerClick(i,t,n),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=n,s=c,a=u+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var p=l.getElGrid().getBoundingClientRect();a=l.e.clientY+o.globals.translateY-p.top}h<0&&(a=u),l.marker.enlargeCurrentPoint(n,r.paths,s,a)}return{x:s,y:a}}},{key:"handleBarTooltip",value:function(e){var t,n,i=e.e,r=e.opt,s=this.w,a=this.ttCtx,o=a.getElTooltip(),l=0,c=0,u=0,h=this.getBarTooltipXY({e:i,opt:r});t=h.i;var d=h.barHeight,p=h.j;s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=p,s.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||!s.config.tooltip.shared?(c=h.x,u=h.y,n=Array.isArray(s.config.stroke.width)?s.config.stroke.width[t]:s.config.stroke.width,l=c):s.globals.comboCharts||s.config.tooltip.shared||(l/=2),isNaN(u)&&(u=s.globals.svgHeight-a.tooltipRect.ttHeight);var f=parseInt(r.paths.parentNode.getAttribute("data:realIndex"),10),g=s.globals.isMultipleYAxis?s.config.yaxis[f]&&s.config.yaxis[f].reversed:s.config.yaxis[0].reversed;if(c+a.tooltipRect.ttWidth>s.globals.gridWidth&&!g?c-=a.tooltipRect.ttWidth:c<0&&(c=0),a.w.config.tooltip.followCursor){var m=a.getElGrid().getBoundingClientRect();u=a.e.clientY-m.top}null===a.tooltip&&(a.tooltip=s.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),s.config.tooltip.shared||(s.globals.comboBarCount>0?a.tooltipPosition.moveXCrosshairs(l+n/2):a.tooltipPosition.moveXCrosshairs(l)),!a.fixedTooltip&&(!s.config.tooltip.shared||s.globals.isBarHorizontal&&a.tooltipUtil.hasBars())&&(g&&(c-=a.tooltipRect.ttWidth)<0&&(c=0),!g||s.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||(u=u+d-2*(s.globals.series[t][p]<0?d:0)),u=u+s.globals.translateY-a.tooltipRect.ttHeight/2,o.style.left=c+s.globals.translateX+"px",o.style.top=u+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,n=e.e,i=e.opt,r=this.w,s=null,a=this.ttCtx,o=0,l=0,c=0,u=0,h=0,d=n.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-boxPlot-area")||d.contains("apexcharts-rangebar-area")){var p=n.target,f=p.getBoundingClientRect(),g=i.elGrid.getBoundingClientRect(),m=f.height;h=f.height;var v=f.width,b=parseInt(p.getAttribute("cx"),10),x=parseInt(p.getAttribute("cy"),10);u=parseFloat(p.getAttribute("barWidth"));var y="touchmove"===n.type?n.touches[0].clientX:n.clientX;s=parseInt(p.getAttribute("j"),10),o=parseInt(p.parentNode.getAttribute("rel"),10)-1;var w=p.getAttribute("data-range-y1"),k=p.getAttribute("data-range-y2");r.globals.comboCharts&&(o=parseInt(p.parentNode.getAttribute("data:realIndex"),10));var A=function(e){return r.globals.isXNumeric?b-v/2:t.isVerticalGroupedRangeBar?b+v/2:b-a.dataPointsDividedWidth+v/2},S=function(){return x-a.dataPointsDividedHeight+m/2-a.tooltipRect.ttHeight/2};a.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:o,j:s,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!a.showOnIntersect&&r.config.tooltip.shared,e:n}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(l=y-g.left+15,c=S()):(l=A(),c=n.clientY-g.top-a.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?((l=b)<a.xyRatios.baseLineInvertedY&&(l=b-a.tooltipRect.ttWidth),c=S()):(l=A(),c=x)}return{x:l,y:c,barHeight:h,barWidth:u,i:o,j:s}}}]),e}(),ye=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t}return c(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,n="bottom"===e.config.xaxis.position;t.xaxisOffY=n?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var i=n?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",r=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),r.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,n=function(n){var i=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;t.yaxisOffX=i?e.globals.gridWidth+1:1;var r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,i?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");e.globals.yAxisSameScaleIndices.map((function(t,i){t.map((function(t,i){i===n&&(r+=e.config.yaxis[i].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var s=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.yaxisTooltip),0===n&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[n]=document.createElement("div"),t.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[n]))},i=0;i<e.config.yaxis.length;i++)n(i)}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,n=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var i=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==i&&"barWidth"===e.config.xaxis.crosshairs.width){var r=parseFloat(i.getAttribute("barWidth"));t.xcrosshairsWidth=r}else if("tickWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/s}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var a=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/a}else if("barWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==n&&t.xcrosshairsWidth>0&&n.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,n){var i=this.ttCtx,r=this.w,s=r.globals.yLabelFormatters[e];if(i.yaxisTooltips[e]){var a=i.getElGrid().getBoundingClientRect(),o=(t-a.top)*n.yRatio[e],l=r.globals.maxYArr[e]-r.globals.minYArr[e],c=r.globals.minYArr[e]+(l-o);i.tooltipPosition.moveYCrosshairs(t-a.top),i.yaxisTooltipText[e].innerHTML=s(c),i.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),we=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new ge(this),this.tooltipLabels=new me(this),this.tooltipPosition=new ve(this),this.marker=new be(this),this.intersect=new xe(this),this.axesTooltip=new ye(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return c(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,n){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&n.classList.add(t.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(n),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var i=new G(this.ctx);this.xAxisTicksPositions=i.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var r=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,i=[],r=this.getElTooltip(),s=function(s){var a=document.createElement("div");a.classList.add("apexcharts-tooltip-series-group"),a.style.order=n.config.tooltip.inverseOrder?e-s:s+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(s)<0&&a.classList.add("apexcharts-tooltip-series-group-hidden");var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),o.style.backgroundColor=n.globals.colors[s],a.appendChild(o);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(n);var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(i),l.appendChild(t)})),a.appendChild(l),r.appendChild(a),i.push(a)},a=0;a<e;a++)s(a);return i}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,n=this.getElTooltip(),i=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),r="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,s=e.globals.dom.Paper.node,a=this.getElGrid();a&&(this.seriesBound=a.getBoundingClientRect());var o,l=[],c=[],u={hoverArea:s,elGrid:a,tooltipEl:n,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(r?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var h=0;h<o.length;h++)l.push(o[h].getAttribute("cy")),c.push(o[h].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([s],u);else if(i&&!e.globals.comboCharts||r&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var d=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(d,u)}if(this.showOnIntersect){var p=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),n=t.getBoundingClientRect(),i=n.width+10,r=n.height+10,s=this.tConfig.fixed.offsetX,a=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(s=s+e.globals.svgWidth-i+10),o.indexOf("bottom")>-1&&(a=a+e.globals.svgHeight-r-10),t.style.left=s+"px",t.style.top=a+"px",{x:s,y:a,ttWidth:i,ttHeight:r}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var n=this,i=function(i){var r={paths:e[i],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[i].addEventListener(t,n.onSeriesHover.bind(n,r),{capture:!1,passive:!0})}))},r=0;r<e.length;r++)i(r)}},{key:"onSeriesHover",value:function(e,t){var n=this,i=Date.now()-this.lastHoverTime;i>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){n.seriesHover(e,t)}),100-i))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var i=[],r=this.w;r.config.chart.group&&(i=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||0===r.globals.dataPoints)||(i.length?i.forEach((function(i){var r=n.getElTooltip(i),s={paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:i.w.globals.tooltip.ttItems};i.w.globals.minX===n.w.globals.minX&&i.w.globals.maxX===n.w.globals.maxX&&i.w.globals.tooltip.seriesHoverByContext({chartCtx:i,ttCtx:i.w.globals.tooltip,opt:s,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,n=e.ttCtx,i=e.opt,r=e.e,s=t.w,a=this.getElTooltip();a&&(n.tooltipRect={x:0,y:0,ttWidth:a.getBoundingClientRect().width,ttHeight:a.getBoundingClientRect().height},n.e=r,!n.tooltipUtil.hasBars()||s.globals.comboCharts||n.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new X(t).toggleSeriesOnHover(r,r.target.parentNode),n.fixedTooltip&&n.drawFixedTooltipRect(),s.globals.axisCharts?n.axisChartsTooltips({e:r,opt:i,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:r,opt:i,tooltipRect:n.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,n,i=e.e,r=e.opt,s=this.w,a=r.elGrid.getBoundingClientRect(),o="touchmove"===i.type?i.touches[0].clientX:i.clientX,l="touchmove"===i.type?i.touches[0].clientY:i.clientY;if(this.clientY=l,this.clientX=o,s.globals.capturedSeriesIndex=-1,s.globals.capturedDataPointIndex=-1,l<a.top||l>a.top+a.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!s.config.tooltip.shared){var c=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(r)}var u=this.getElTooltip(),h=this.getElXCrosshairs(),d=s.globals.xyCharts||"bar"===s.config.chart.type&&!s.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||s.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===i.type||"touchmove"===i.type||"mouseup"===i.type){if(s.globals.collapsedSeries.length+s.globals.ancillaryCollapsedSeries.length===s.globals.series.length)return;null!==h&&h.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),d&&!this.showOnIntersect)this.handleStickyTooltip(i,o,l,r);else if("heatmap"===s.config.chart.type||"treemap"===s.config.chart.type){var f=this.intersect.handleHeatTreeTooltip({e:i,opt:r,x:t,y:n,type:s.config.chart.type});t=f.x,n=f.y,u.style.left=t+"px",u.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:i,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:i,opt:r,x:t,y:n});if(this.yaxisTooltips.length)for(var g=0;g<s.config.yaxis.length;g++)this.axesTooltip.drawYaxisTooltipText(g,l,this.xyRatios);r.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==i.type&&"touchend"!==i.type||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,n=e.opt,i=e.tooltipRect,r=this.w,s=n.paths.getAttribute("rel"),a=this.getElTooltip(),o=r.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){a.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:parseInt(s,10)-1,shared:!1});var l=r.globals.clientX-o.left-i.ttWidth/2,c=r.globals.clientY-o.top-i.ttHeight-10;if(a.style.left=l+"px",a.style.top=c+"px",r.config.legend.tooltipHoverFormatter){var u=s-1,h=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:r});this.legendLabels[u].innerHTML=h}}else"mouseout"!==t.type&&"touchend"!==t.type||(a.classList.remove("apexcharts-active"),r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})))}},{key:"handleStickyTooltip",value:function(e,t,n,i){var r=this.w,s=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:t,clientY:n}),a=s.j,o=s.capturedSeries;r.globals.collapsedSeriesIndices.includes(o)&&(o=null);var l=i.elGrid.getBoundingClientRect();if(s.hoverX<0||s.hoverX>l.width)this.handleMouseOut(i);else if(null!==o)this.handleStickyCapturedSeries(e,o,i,a);else if(this.tooltipUtil.isXoverlap(a)||r.globals.isBarHorizontal){var c=r.globals.series.findIndex((function(e,t){return!r.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,c,a,i.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,n,i){var r=this.w;if(this.tConfig.shared||null!==r.globals.series[t][i]){if(void 0!==r.globals.series[t][i])this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,i,n.ttItems):this.create(e,this,t,i,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){var s=r.globals.series.findIndex((function(e,t){return!r.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,s,i,n.ttItems)}}else this.handleMouseOut(n)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new A(this.ctx),n=e.globals.dom.Paper.select(".apexcharts-bar-area"),i=0;i<n.length;i++)t.pathMouseLeave(n[i])}},{key:"handleMouseOut",value:function(e){var t=this.w,n=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==n&&n.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var i=0;i<this.yaxisTTEls.length;i++)this.yaxisTTEls[i].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"markerClick",value:function(e,t,n){var i=this.w;"function"==typeof i.config.chart.events.markerClick&&i.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:i}])}},{key:"create",value:function(e,t,n,i,r){var a,o,l,c,u,h,d,p,f,g,m,v,b,x,y,w,k=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,S=this.w,C=t;"mouseup"===e.type&&this.markerClick(e,n,i),null===k&&(k=this.tConfig.shared);var _=this.tooltipUtil.hasMarkers(n),E=this.tooltipUtil.getElBars();if(S.config.legend.tooltipHoverFormatter){var L=S.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var D=0;D<T.length;D++){var P=T[D],M=parseInt(P.getAttribute("i"),10),O=decodeURIComponent(P.getAttribute("data:default-text")),R=L(O,{seriesIndex:k?M:n,dataPointIndex:i,w:S});if(k)P.innerHTML=S.globals.collapsedSeriesIndices.indexOf(M)<0?R:O;else if(P.innerHTML=M===n?R:O,n===M)break}}var I=s(s({ttItems:r,i:n,j:i},void 0!==(null===(a=S.globals.seriesRange)||void 0===a||null===(o=a[n])||void 0===o||null===(l=o[i])||void 0===l||null===(c=l.y[0])||void 0===c?void 0:c.y1)&&{y1:null===(u=S.globals.seriesRange)||void 0===u||null===(h=u[n])||void 0===h||null===(d=h[i])||void 0===d||null===(p=d.y[0])||void 0===p?void 0:p.y1}),void 0!==(null===(f=S.globals.seriesRange)||void 0===f||null===(g=f[n])||void 0===g||null===(m=g[i])||void 0===m||null===(v=m.y[0])||void 0===v?void 0:v.y2)&&{y2:null===(b=S.globals.seriesRange)||void 0===b||null===(x=b[n])||void 0===x||null===(y=x[i])||void 0===y||null===(w=y.y[0])||void 0===w?void 0:w.y2});if(k){if(C.tooltipLabels.drawSeriesTexts(s(s({},I),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),_)S.globals.markers.largestSize>0?C.marker.enlargePoints(i):C.tooltipPosition.moveDynamicPointsOnHover(i);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(E),this.barSeriesHeight>0)){var N=new A(this.ctx),F=S.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(i,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(i,n);for(var B=0;B<F.length;B++)N.pathMouseEnter(F[B])}}else C.tooltipLabels.drawSeriesTexts(s({shared:!1},I)),this.tooltipUtil.hasBars()&&C.tooltipPosition.moveStickyTooltipOverBars(i,n),_&&C.tooltipPosition.moveMarkers(n,i)}}]),e}(),ke=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return c(e,[{key:"handleBarDataLabels",value:function(e){var t=e.x,n=e.y,i=e.y1,r=e.y2,s=e.i,a=e.j,o=e.realIndex,l=e.groupIndex,c=e.series,u=e.barHeight,h=e.barWidth,d=e.barXPosition,p=e.barYPosition,f=e.visibleSeries,g=e.renderedPath,m=this.w,v=new A(this.barCtx.ctx),b=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth,x=t+parseFloat(h*f),y=n+parseFloat(u*f);m.globals.isXNumeric&&!m.globals.isBarHorizontal&&(x=t+parseFloat(h*(f+1)),y=n+parseFloat(u*(f+1))-b);var w,k,S=null,C=t,_=n,E=m.config.dataLabels,L=this.barCtx.barOptions.dataLabels,T=this.barCtx.barOptions.dataLabels.total;void 0!==p&&this.barCtx.isRangeBar&&(y=p,_=p),void 0!==d&&this.barCtx.isVerticalGroupedRangeBar&&(x=d,C=d);var D=E.offsetX,P=E.offsetY,M={width:0,height:0};if(m.config.dataLabels.enabled){var O=this.barCtx.series[s][a];M=v.getTextRects(m.globals.yLabelFormatters[0](O),parseFloat(E.style.fontSize))}var R={x:t,y:n,i:s,j:a,realIndex:o,groupIndex:l||-1,renderedPath:g,bcx:x,bcy:y,barHeight:u,barWidth:h,textRects:M,strokeWidth:b,dataLabelsX:C,dataLabelsY:_,dataLabelsConfig:E,barDataLabelsConfig:L,barTotalDataLabelsConfig:T,offX:D,offY:P};return k=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(R):this.calculateColumnsDataLabelsPosition(R),g.attr({cy:k.bcy,cx:k.bcx,j:a,val:c[s][a],barHeight:u,barWidth:h}),w=this.drawCalculatedDataLabels({x:k.dataLabelsX,y:k.dataLabelsY,val:this.barCtx.isRangeBar?[i,r]:c[s][a],i:o,j:a,barWidth:h,barHeight:u,textRects:M,dataLabelsConfig:E}),m.config.chart.stacked&&T.enabled&&(S=this.drawTotalDataLabels({x:k.totalDataLabelsX,y:k.totalDataLabelsY,barWidth:h,barHeight:u,realIndex:o,textAnchor:k.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:o,j:a}),dataLabelsConfig:E,barTotalDataLabelsConfig:T})),{dataLabels:w,totalDataLabels:S}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,n=e.j,i=this.w,r=this.barCtx.stackedSeriesTotals[n];return this.totalFormatter&&(r=this.totalFormatter(r,s(s({},i),{},{seriesIndex:t,dataPointIndex:n,w:i}))),r}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,n,i=this.w,r=e.i,s=e.j,a=e.realIndex,o=e.groupIndex,l=e.y,c=e.bcx,u=e.barWidth,h=e.barHeight,d=e.textRects,p=e.dataLabelsX,f=e.dataLabelsY,g=e.dataLabelsConfig,m=e.barDataLabelsConfig,v=e.barTotalDataLabelsConfig,b=e.strokeWidth,x=e.offX,y=e.offY;h=Math.abs(h);var w="vertical"===i.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:s}).zeroEncounters;c=c-b/2+(-1!==o?o*u:0);var S=i.globals.gridWidth/i.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?p+=u/2:(p=i.globals.isXNumeric?c-u/2+x:c-S+u/2+x,k>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(p-=u*k)),w&&(p=p+d.height/2-b/2-2);var C=this.barCtx.series[r][s]<0,_=l;switch(this.barCtx.isReversed&&(_=l-h+(C?2*h:0),l-=h),m.position){case"center":f=w?C?_-h/2+y:_+h/2-y:C?_-h/2+d.height/2+y:_+h/2+d.height/2-y;break;case"bottom":f=w?C?_-h+y:_+h-y:C?_-h+d.height+b+y:_+h-d.height/2+b-y;break;case"top":f=w?C?_+y:_-y:C?_-d.height/2-y:_+d.height+y}if(this.barCtx.lastActiveBarSerieIndex===a&&v.enabled){var E=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:s}),g.fontSize);t=C?_-E.height/2-y-v.offsetY+18:_+E.height+y+v.offsetY-18,n=p+v.offsetX}return i.config.chart.stacked||(f<0?f=0+b:f+d.height/3>i.globals.gridHeight&&(f=i.globals.gridHeight-b)),{bcx:c,bcy:l,dataLabelsX:p,dataLabelsY:f,totalDataLabelsX:n,totalDataLabelsY:t,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,n=e.x,i=e.i,r=e.j,s=e.realIndex,a=e.groupIndex,o=e.bcy,l=e.barHeight,c=e.barWidth,u=e.textRects,h=e.dataLabelsX,d=e.strokeWidth,p=e.dataLabelsConfig,f=e.barDataLabelsConfig,g=e.barTotalDataLabelsConfig,m=e.offX,v=e.offY,b=t.globals.gridHeight/t.globals.dataPoints;c=Math.abs(c);var x,y,w=(o+=-1!==a?a*l:0)-(this.barCtx.isRangeBar?0:b)+l/2+u.height/2+v-3,k="start",S=this.barCtx.series[i][r]<0,C=n;switch(this.barCtx.isReversed&&(C=n+c-(S?2*c:0),n=t.globals.gridWidth-c),f.position){case"center":h=S?C+c/2-m:Math.max(u.width/2,C-c/2)+m;break;case"bottom":h=S?C+c-d-Math.round(u.width/2)-m:C-c+d+Math.round(u.width/2)+m;break;case"top":h=S?C-d+Math.round(u.width/2)-m:C-d-Math.round(u.width/2)+m}if(this.barCtx.lastActiveBarSerieIndex===s&&g.enabled){var _=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:s,j:r}),p.fontSize);S?(x=C-d+Math.round(_.width/2)-m-g.offsetX-15,k="end"):x=C-d-Math.round(_.width/2)+m+g.offsetX+15,y=w+g.offsetY}return t.config.chart.stacked||(h<0?h=h+u.width+d:h+u.width/2>t.globals.gridWidth&&(h=t.globals.gridWidth-u.width-d)),{bcx:n,bcy:o,dataLabelsX:h,dataLabelsY:w,totalDataLabelsX:x,totalDataLabelsY:y,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,i=e.val,r=e.i,a=e.j,o=e.textRects,l=e.barHeight,c=e.barWidth,u=e.dataLabelsConfig,h=this.w,d="rotate(0)";"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(t,", ").concat(n,")"));var p=new W(this.barCtx.ctx),f=new A(this.barCtx.ctx),g=u.formatter,m=null,v=h.globals.collapsedSeriesIndices.indexOf(r)>-1;if(u.enabled&&!v){m=f.group({class:"apexcharts-data-labels",transform:d});var b="";void 0!==i&&(b=g(i,s(s({},h),{},{seriesIndex:r,dataPointIndex:a,w:h}))),!i&&h.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b="");var x=h.globals.series[r][a]<0,y=h.config.plotOptions.bar.dataLabels.position;"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(u.textAnchor=x?"end":"start"),"center"===y&&(u.textAnchor="middle"),"bottom"===y&&(u.textAnchor=x?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<f.getTextRects(b,parseFloat(u.style.fontSize)).width&&(b=""),h.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(c)&&(b=""):o.height/1.6>Math.abs(l)&&(b=""));var w=s({},u);this.barCtx.isHorizontal&&i<0&&("start"===u.textAnchor?w.textAnchor="end":"end"===u.textAnchor&&(w.textAnchor="start")),p.plotDataLabelsText({x:t,y:n,text:b,i:r,j:a,parent:m,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}},{key:"drawTotalDataLabels",value:function(e){var t,n=e.x,i=e.y,r=e.val,s=e.barWidth,a=e.barHeight,o=e.realIndex,l=e.textAnchor,c=e.barTotalDataLabelsConfig,u=this.w,h=new A(this.barCtx.ctx);return c.enabled&&void 0!==n&&void 0!==i&&this.barCtx.lastActiveBarSerieIndex===o&&(t=h.drawText({x:n-(!u.globals.isBarHorizontal&&u.globals.seriesGroups.length?s/u.globals.seriesGroups.length:0),y:i-(u.globals.isBarHorizontal&&u.globals.seriesGroups.length?a/u.globals.seriesGroups.length:0),foreColor:c.style.color,text:r,textAnchor:l,fontFamily:c.style.fontFamily,fontSize:c.style.fontSize,fontWeight:c.style.fontWeight})),t}}]),e}(),Ae=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t}return c(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var i=0;i<e[n].length;i++)t.globals.seriesX[n][i]>t.globals.minX&&t.globals.seriesX[n][i]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,n,i,r,s,a,o,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var u=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)r=(n=l.globals.gridHeight/c)/u,l.globals.isXNumeric&&(r=(n=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),r=r*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.barHeight,10)),o=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(o=l.globals.gridWidth/2),t=(n-r*this.barCtx.seriesLen)/2;else{if(i=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(i=l.globals.gridWidth/l.globals.dataPoints),s=i/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var h=this.barCtx.xRatio;l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/h>0&&(i=l.globals.minXDiff/h),(s=i/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(s=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(s=parseInt(this.barCtx.barOptions.columnWidth,10)),a=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=l.globals.padHorizontal+(i-s*this.barCtx.seriesLen)/2}return l.globals.barHeight=r,l.globals.barWidth=s,{x:e,y:t,yDivision:n,xDivision:i,barHeight:r,barWidth:s,zeroH:a,zeroW:o}}},{key:"initializeStackedPrevVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})):(e.prevY=[],e.prevX=[],e.prevYF=[],e.prevXF=[],e.prevYVal=[],e.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})):(e.xArrj=[],e.xArrjF=[],e.xArrjVal=[],e.yArrj=[],e.yArrjF=[],e.yArrjVal=[])}},{key:"getPathFillColor",value:function(e,t,n,i){var r,s,a,o,l=this.w,c=new Y(this.barCtx.ctx),u=null,h=this.barCtx.barOptions.distributed?n:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(i){e[t][n]>=i.from&&e[t][n]<=i.to&&(u=i.color)})),l.config.series[t].data[n]&&l.config.series[t].data[n].fillColor&&(u=l.config.series[t].data[n].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?h:i,dataPointIndex:n,color:u,value:e[t][n],fillConfig:null===(r=l.config.series[t].data[n])||void 0===r?void 0:r.fill,fillType:null!==(s=l.config.series[t].data[n])&&void 0!==s&&null!==(a=s.fill)&&void 0!==a&&a.type?null===(o=l.config.series[t].data[n])||void 0===o?void 0:o.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[t]:l.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,n){var i=0,r=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,r.config.stroke.show&&(this.barCtx.isNullValue||(i=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),i}},{key:"shouldApplyRadius",value:function(e){var t=this.w,n=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&"last"===t.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===e&&(n=!0):n=!0),n}},{key:"barBackground",value:function(e){var t=e.j,n=e.i,i=e.x1,r=e.x2,s=e.y1,a=e.y2,o=e.elSeries,l=this.w,c=new A(this.barCtx.ctx),u=new X(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===n){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var h=this.barCtx.barOptions.colors.backgroundBarColors[t],d=c.drawRect(void 0!==i?i:0,void 0!==s?s:0,void 0!==r?r:l.globals.gridWidth,void 0!==a?a:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,h,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(d),d.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,n=e.barWidth,i=e.barXPosition,r=e.y1,s=e.y2,a=e.strokeWidth,o=e.seriesGroup,l=e.realIndex,c=e.i,u=e.j,h=e.w,d=new A(this.barCtx.ctx);(a=Array.isArray(a)?a[l]:a)||(a=0);var p=n,f=i;null!==(t=h.config.series[l].data[u])&&void 0!==t&&t.columnWidthOffset&&(f=i-h.config.series[l].data[u].columnWidthOffset/2,p=n+h.config.series[l].data[u].columnWidthOffset);var g=f,m=f+p;r+=.001,s+=.001;var v=d.move(g,r),b=d.move(g,r),x=d.line(m-a,r);if(h.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,u,!1)),v=v+d.line(g,s)+d.line(m-a,s)+d.line(m-a,r)+("around"===h.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+d.line(g,r)+x+x+x+x+x+d.line(g,r)+("around"===h.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(v=d.roundPathCorners(v,h.config.plotOptions.bar.borderRadius)),h.config.chart.stacked){var y=this.barCtx;h.globals.hasSeriesGroups&&o&&(y=this.barCtx[o]),y.yArrj.push(s),y.yArrjF.push(Math.abs(r-s)),y.yArrjVal.push(this.barCtx.series[c][u])}return{pathTo:v,pathFrom:b}}},{key:"getBarpaths",value:function(e){var t,n=e.barYPosition,i=e.barHeight,r=e.x1,s=e.x2,a=e.strokeWidth,o=e.seriesGroup,l=e.realIndex,c=e.i,u=e.j,h=e.w,d=new A(this.barCtx.ctx);(a=Array.isArray(a)?a[l]:a)||(a=0);var p=n,f=i;null!==(t=h.config.series[l].data[u])&&void 0!==t&&t.barHeightOffset&&(p=n-h.config.series[l].data[u].barHeightOffset/2,f=i+h.config.series[l].data[u].barHeightOffset);var g=p,m=p+f;r+=.001,s+=.001;var v=d.move(r,g),b=d.move(r,g);h.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,u,!1));var x=d.line(r,m-a);if(v=v+d.line(s,g)+d.line(s,m-a)+x+("around"===h.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+d.line(r,g)+x+x+x+x+x+d.line(r,g)+("around"===h.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(v=d.roundPathCorners(v,h.config.plotOptions.bar.borderRadius)),h.config.chart.stacked){var y=this.barCtx;h.globals.hasSeriesGroups&&o&&(y=this.barCtx[o]),y.xArrj.push(s),y.xArrjF.push(Math.abs(r-s)),y.xArrjVal.push(this.barCtx.series[c][u])}return{pathTo:v,pathFrom:b}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,n=this.w,i=0;i<t.length;i++){for(var r=0,s=0;s<t[n.globals.maxValsInArrayIndex].length;s++)r+=t[i][s];0===r&&this.barCtx.zeroSerieses.push(i)}}},{key:"getXForValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(n=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(e,t,n,i,r){var a=this,o=this.w,l=[],c=function(i,r){var s;l.push((u(s={},e,"x"===e?a.getXForValue(i,t,!1):a.getYForValue(i,n,!1)),u(s,"attrs",r),s))};if(o.globals.seriesGoals[i]&&o.globals.seriesGoals[i][r]&&Array.isArray(o.globals.seriesGoals[i][r])&&o.globals.seriesGoals[i][r].forEach((function(e){c(e.value,e)})),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var h=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,d={strokeHeight:"x"===e?0:o.globals.markers.size[i],strokeWidth:"x"===e?o.globals.markers.size[i]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(h[i])?h[i][0]:h[i]};c(o.globals.seriesRangeStart[i][r],d),c(o.globals.seriesRangeEnd[i][r],s(s({},d),{},{strokeColor:Array.isArray(h[i])?h[i][1]:h[i]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,i=e.goalX,r=e.goalY,s=e.barWidth,a=e.barHeight,o=new A(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(i)&&i.forEach((function(e){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:a/2,i=n+t+a/2;c=o.drawLine(e.x,i-2*t,e.x,i,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)})):Array.isArray(r)&&r.forEach((function(e){var n=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:s/2,i=t+n+s/2;c=o.drawLine(i-2*n,e.y,i,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)})),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,n=e.currPaths,i=e.color,r=this.w,s=t.x,a=t.x1,o=t.barYPosition,l=n.x,c=n.x1,u=n.barYPosition,h=o+n.barHeight,d=new A(this.barCtx.ctx),p=new y,f=d.move(a,h)+d.line(s,h)+d.line(l,u)+d.line(c,u)+d.line(a,h)+("around"===r.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return d.drawPath({d:f,fill:p.shadeColor(.5,y.rgb2hex(i)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t=e.i,n=e.j,i=this.w,r=0,s=0;return i.globals.seriesPercent.forEach((function(e,i){e[n]&&r++,i<t&&0===e[n]&&s++})),{nonZeroColumns:r,zeroEncounters:s}}}]),e}(),Se=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var r=new X(this.ctx);this.lastActiveBarSerieIndex=r.getActiveConfigSeriesIndex("desc",["bar","column"]);var s=r.getBarSeriesIndices(),a=new S(this.ctx);this.stackedSeriesTotals=a.getStackedSeriesTotals(this.w.config.series.map((function(e,t){return-1===s.indexOf(t)?t:-1})).filter((function(e){return-1!==e}))),this.barHelpers=new Ae(this)}return c(e,[{key:"draw",value:function(e,t){var n=this.w,i=new A(this.ctx),r=new S(this.ctx,n);e=r.getLogSeries(e),this.series=e,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var a=i.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var o=0,l=0;o<e.length;o++,l++){var c,u,h,d,p=void 0,f=void 0,g=[],m=[],v=n.globals.comboCharts?t[o]:o,b=i.group({class:"apexcharts-series",rel:o+1,seriesName:y.escapeString(n.globals.seriesNames[v]),"data:realIndex":v});this.ctx.series.addCollapsedClassToSeries(b,v),e[o].length>0&&(this.visibleI=this.visibleI+1);var x=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=v),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var k=this.barHelpers.initialPositions();f=k.y,x=k.barHeight,u=k.yDivision,d=k.zeroW,p=k.x,w=k.barWidth,c=k.xDivision,h=k.zeroH,this.horizontal||m.push(p+w/2);var C=i.group({class:"apexcharts-datalabels","data:realIndex":v});n.globals.delayedElements.push({el:C.node}),C.node.classList.add("apexcharts-element-hidden");var _=i.group({class:"apexcharts-bar-goals-markers"}),E=i.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:E.node}),E.node.classList.add("apexcharts-element-hidden");for(var L=0;L<e[o].length;L++){var T=this.barHelpers.getStrokeWidth(o,L,v),D=null,P={indexes:{i:o,j:L,realIndex:v,bc:l},x:p,y:f,strokeWidth:T,elSeries:b};this.isHorizontal?(D=this.drawBarPaths(s(s({},P),{},{barHeight:x,zeroW:d,yDivision:u})),w=this.series[o][L]/this.invertedYRatio):(D=this.drawColumnPaths(s(s({},P),{},{xDivision:c,barWidth:w,zeroH:h})),x=this.series[o][L]/this.yRatio[this.yaxisIndex]);var M=this.barHelpers.getPathFillColor(e,o,L,v);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&L>0){var O=this.barHelpers.drawBarShadow({color:"string"==typeof M&&-1===(null==M?void 0:M.indexOf("url"))?M:y.hexToRgba(n.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:D});O&&E.add(O)}this.pathArr.push(D);var R=this.barHelpers.drawGoalLine({barXPosition:D.barXPosition,barYPosition:D.barYPosition,goalX:D.goalX,goalY:D.goalY,barHeight:x,barWidth:w});R&&_.add(R),f=D.y,p=D.x,L>0&&m.push(p+w/2),g.push(f),this.renderSeries({realIndex:v,pathFill:M,j:L,i:o,pathFrom:D.pathFrom,pathTo:D.pathTo,strokeWidth:T,elSeries:b,x:p,y:f,series:e,barHeight:D.barHeight?D.barHeight:x,barWidth:D.barWidth?D.barWidth:w,elDataLabelsWrap:C,elGoalsMarkers:_,elBarShadows:E,visibleSeries:this.visibleI,type:"bar"})}n.globals.seriesXvalues[v]=m,n.globals.seriesYvalues[v]=g,a.add(b)}return a}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,i=e.lineFill,r=e.j,s=e.i,a=e.groupIndex,o=e.pathFrom,l=e.pathTo,c=e.strokeWidth,u=e.elSeries,h=e.x,d=e.y,p=e.y1,f=e.y2,g=e.series,m=e.barHeight,v=e.barWidth,b=e.barXPosition,x=e.barYPosition,y=e.elDataLabelsWrap,w=e.elGoalsMarkers,S=e.elBarShadows,C=e.visibleSeries,_=e.type,E=this.w,L=new A(this.ctx);i||(i=this.barOptions.distributed?E.globals.stroke.colors[r]:E.globals.stroke.colors[t]),E.config.series[s].data[r]&&E.config.series[s].data[r].strokeColor&&(i=E.config.series[s].data[r].strokeColor),this.isNullValue&&(n="none");var T=r/E.config.chart.animations.animateGradually.delay*(E.config.chart.animations.speed/E.globals.dataPoints)/2.4,D=L.renderPaths({i:s,j:r,realIndex:t,pathFrom:o,pathTo:l,stroke:i,strokeWidth:c,strokeLineCap:E.config.stroke.lineCap,fill:n,animationDelay:T,initialSpeed:E.config.chart.animations.speed,dataChangeSpeed:E.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(_,"-area")});D.attr("clip-path","url(#gridRectMask".concat(E.globals.cuid,")"));var P=E.config.forecastDataPoints;P.count>0&&r>=E.globals.dataPoints-P.count&&(D.node.setAttribute("stroke-dasharray",P.dashArray),D.node.setAttribute("stroke-width",P.strokeWidth),D.node.setAttribute("fill-opacity",P.fillOpacity)),void 0!==p&&void 0!==f&&(D.attr("data-range-y1",p),D.attr("data-range-y2",f)),new k(this.ctx).setSelectionFilter(D,t,r),u.add(D);var M=new ke(this).handleBarDataLabels({x:h,y:d,y1:p,y2:f,i:s,j:r,series:g,realIndex:t,groupIndex:a,barHeight:m,barWidth:v,barXPosition:b,barYPosition:x,renderedPath:D,visibleSeries:C});return null!==M.dataLabels&&y.add(M.dataLabels),M.totalDataLabels&&y.add(M.totalDataLabels),u.add(y),w&&u.add(w),S&&u.add(S),u}},{key:"drawBarPaths",value:function(e){var t,n=e.indexes,i=e.barHeight,r=e.strokeWidth,s=e.zeroW,a=e.x,o=e.y,l=e.yDivision,c=e.elSeries,u=this.w,h=n.i,d=n.j;if(u.globals.isXNumeric)t=(o=(u.globals.seriesX[h][d]-u.globals.minX)/this.invertedXRatio-i)+i*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var p=0,f=0;u.globals.seriesPercent.forEach((function(e,t){e[d]&&p++,t<h&&0===e[d]&&f++})),p>0&&(i=this.seriesLen*i/p),t=o+i*this.visibleI,t-=i*f}else t=o+i*this.visibleI;this.isFunnel&&(s-=(this.barHelpers.getXForValue(this.series[h][d],s)-s)/2),a=this.barHelpers.getXForValue(this.series[h][d],s);var g=this.barHelpers.getBarpaths({barYPosition:t,barHeight:i,x1:s,x2:a,strokeWidth:r,series:this.series,realIndex:n.realIndex,i:h,j:d,w:u});return u.globals.isXNumeric||(o+=l),this.barHelpers.barBackground({j:d,i:h,y1:t-i*this.visibleI,y2:i*this.seriesLen,elSeries:c}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x1:s,x:a,y:o,goalX:this.barHelpers.getGoalValues("x",s,null,h,d),barYPosition:t,barHeight:i}}},{key:"drawColumnPaths",value:function(e){var t,n=e.indexes,i=e.x,r=e.y,s=e.xDivision,a=e.barWidth,o=e.zeroH,l=e.strokeWidth,c=e.elSeries,u=this.w,h=n.realIndex,d=n.i,p=n.j,f=n.bc;if(u.globals.isXNumeric){var g=this.getBarXForNumericXAxis({x:i,j:p,realIndex:h,barWidth:a});i=g.x,t=g.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var m=this.barHelpers.getZeroValueEncounters({i:d,j:p}),v=m.nonZeroColumns,b=m.zeroEncounters;v>0&&(a=this.seriesLen*a/v),t=i+a*this.visibleI,t-=a*b}else t=i+a*this.visibleI;r=this.barHelpers.getYForValue(this.series[d][p],o);var x=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:a,y1:o,y2:r,strokeWidth:l,series:this.series,realIndex:n.realIndex,i:d,j:p,w:u});return u.globals.isXNumeric||(i+=s),this.barHelpers.barBackground({bc:f,j:p,i:d,x1:t-l/2-a*this.visibleI,x2:a*this.seriesLen+l/2,elSeries:c}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:i,y:r,goalY:this.barHelpers.getGoalValues("y",null,o,d,p),barXPosition:t,barWidth:a}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,n=e.barWidth,i=e.realIndex,r=e.j,s=this.w,a=i;return s.globals.seriesX[i].length||(a=s.globals.maxValsInArrayIndex),s.globals.seriesX[a][r]&&(t=(s.globals.seriesX[a][r]-s.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:t+n*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var n,i=this.w,r=0;r<i.globals.previousPaths.length;r++){var s=i.globals.previousPaths[r];s.paths&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(e,10)&&void 0!==i.globals.previousPaths[r].paths[t]&&(n=i.globals.previousPaths[r].paths[t].d)}return n}}]),e}(),Ce=function(){h(t,Se);var e=g(t);function t(){return o(this,t),e.apply(this,arguments)}return c(t,[{key:"draw",value:function(e,t){var n=this,i=this.w;this.graphics=new A(this.ctx),this.bar=new Se(this.ctx,this.xyRatios);var r=new S(this.ctx,i);e=r.getLogSeries(e),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===i.config.chart.stackType&&(e=i.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var a=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),o=0,l=0,c=function(r,c){var u=void 0,h=void 0,d=void 0,p=void 0,f=-1;n.groupCtx=n,i.globals.seriesGroups.forEach((function(e,t){e.indexOf(i.config.series[r].name)>-1&&(f=t)})),-1!==f&&(n.groupCtx=n[i.globals.seriesGroups[f]]);var g=[],m=[],v=i.globals.comboCharts?t[r]:r;n.yRatio.length>1&&(n.yaxisIndex=v),n.isReversed=i.config.yaxis[n.yaxisIndex]&&i.config.yaxis[n.yaxisIndex].reversed;var b=n.graphics.group({class:"apexcharts-series",seriesName:y.escapeString(i.globals.seriesNames[v]),rel:r+1,"data:realIndex":v});n.ctx.series.addCollapsedClassToSeries(b,v);var x=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":v}),w=n.graphics.group({class:"apexcharts-bar-goals-markers"}),k=0,A=0,S=n.initialPositions(o,l,u,h,d,p);l=S.y,k=S.barHeight,h=S.yDivision,p=S.zeroW,o=S.x,A=S.barWidth,u=S.xDivision,d=S.zeroH,i.globals.barHeight=k,i.globals.barWidth=A,n.barHelpers.initializeStackedXYVars(n),1===n.groupCtx.prevY.length&&n.groupCtx.prevY[0].every((function(e){return isNaN(e)}))&&(n.groupCtx.prevY[0]=n.groupCtx.prevY[0].map((function(e){return d})),n.groupCtx.prevYF[0]=n.groupCtx.prevYF[0].map((function(e){return 0})));for(var C=0;C<i.globals.dataPoints;C++){var _=n.barHelpers.getStrokeWidth(r,C,v),E={indexes:{i:r,j:C,realIndex:v,bc:c},strokeWidth:_,x:o,y:l,elSeries:b,groupIndex:f,seriesGroup:i.globals.seriesGroups[f]},L=null;n.isHorizontal?(L=n.drawStackedBarPaths(s(s({},E),{},{zeroW:p,barHeight:k,yDivision:h})),A=n.series[r][C]/n.invertedYRatio):(L=n.drawStackedColumnPaths(s(s({},E),{},{xDivision:u,barWidth:A,zeroH:d})),k=n.series[r][C]/n.yRatio[n.yaxisIndex]);var T=n.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:L.barYPosition,goalX:L.goalX,goalY:L.goalY,barHeight:k,barWidth:A});T&&w.add(T),l=L.y,o=L.x,g.push(o),m.push(l);var D=n.barHelpers.getPathFillColor(e,r,C,v);b=n.renderSeries({realIndex:v,pathFill:D,j:C,i:r,groupIndex:f,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:_,elSeries:b,x:o,y:l,series:e,barHeight:k,barWidth:A,elDataLabelsWrap:x,elGoalsMarkers:w,type:"bar",visibleSeries:0})}i.globals.seriesXvalues[v]=g,i.globals.seriesYvalues[v]=m,n.groupCtx.prevY.push(n.groupCtx.yArrj),n.groupCtx.prevYF.push(n.groupCtx.yArrjF),n.groupCtx.prevYVal.push(n.groupCtx.yArrjVal),n.groupCtx.prevX.push(n.groupCtx.xArrj),n.groupCtx.prevXF.push(n.groupCtx.xArrjF),n.groupCtx.prevXVal.push(n.groupCtx.xArrjVal),a.add(b)},u=0,h=0;u<e.length;u++,h++)c(u,h);return a}},{key:"initialPositions",value:function(e,t,n,i,r,s){var a,o,l,c,u=this.w;return this.isHorizontal?(l=(l=i=u.globals.gridHeight/u.globals.dataPoints)*parseInt(u.config.plotOptions.bar.barHeight,10)/100,-1===String(u.config.plotOptions.bar.barHeight).indexOf("%")&&(l=parseInt(u.config.plotOptions.bar.barHeight,10)),s=this.baseLineInvertedY+u.globals.padHorizontal+(this.isReversed?u.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),t=(i-l)/2):(c=n=u.globals.gridWidth/u.globals.dataPoints,c=u.globals.isXNumeric&&u.globals.dataPoints>1?(n=u.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(u.config.plotOptions.bar.columnWidth,10)/100,-1===String(u.config.plotOptions.bar.columnWidth).indexOf("%")&&(c=parseInt(u.config.plotOptions.bar.columnWidth,10)),r=u.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?u.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),e=u.globals.padHorizontal+(n-c)/2),{x:e,y:t,yDivision:i,xDivision:n,barHeight:null!==(a=u.globals.seriesGroups)&&void 0!==a&&a.length?l/u.globals.seriesGroups.length:l,barWidth:null!==(o=u.globals.seriesGroups)&&void 0!==o&&o.length?c/u.globals.seriesGroups.length:c,zeroH:r,zeroW:s}}},{key:"drawStackedBarPaths",value:function(e){for(var t,n=e.indexes,i=e.barHeight,r=e.strokeWidth,s=e.zeroW,a=e.x,o=e.y,l=e.groupIndex,c=e.seriesGroup,u=e.yDivision,h=e.elSeries,d=this.w,p=o+(-1!==l?l*i:0),f=n.i,g=n.j,m=0,v=0;v<this.groupCtx.prevXF.length;v++)m+=this.groupCtx.prevXF[v][g];var b=f;if(c&&(b=c.indexOf(d.config.series[f].name)),b>0){var x=s;this.groupCtx.prevXVal[b-1][g]<0?x=this.series[f][g]>=0?this.groupCtx.prevX[b-1][g]+m-2*(this.isReversed?m:0):this.groupCtx.prevX[b-1][g]:this.groupCtx.prevXVal[b-1][g]>=0&&(x=this.series[f][g]>=0?this.groupCtx.prevX[b-1][g]:this.groupCtx.prevX[b-1][g]-m+2*(this.isReversed?m:0)),t=x}else t=s;a=null===this.series[f][g]?t:t+this.series[f][g]/this.invertedYRatio-2*(this.isReversed?this.series[f][g]/this.invertedYRatio:0);var y=this.barHelpers.getBarpaths({barYPosition:p,barHeight:i,x1:t,x2:a,strokeWidth:r,series:this.series,realIndex:n.realIndex,seriesGroup:c,i:f,j:g,w:d});return this.barHelpers.barBackground({j:g,i:f,y1:p,y2:i,elSeries:h}),o+=u,{pathTo:y.pathTo,pathFrom:y.pathFrom,goalX:this.barHelpers.getGoalValues("x",s,null,f,g),barYPosition:p,x:a,y:o}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,n=e.x,i=e.y,r=e.xDivision,s=e.barWidth,a=e.zeroH,o=e.groupIndex,l=e.seriesGroup,c=e.elSeries,u=this.w,h=t.i,d=t.j,p=t.bc;if(u.globals.isXNumeric){var f=u.globals.seriesX[h][d];f||(f=0),n=(f-u.globals.minX)/this.xRatio-s/2,u.globals.seriesGroups.length&&(n=(f-u.globals.minX)/this.xRatio-s/2*u.globals.seriesGroups.length)}for(var g,m=n+(-1!==o?o*s:0),v=0,b=0;b<this.groupCtx.prevYF.length;b++)v+=isNaN(this.groupCtx.prevYF[b][d])?0:this.groupCtx.prevYF[b][d];var x=h;if(l&&(x=l.indexOf(u.config.series[h].name)),x>0&&!u.globals.isXNumeric||x>0&&u.globals.isXNumeric&&u.globals.seriesX[h-1][d]===u.globals.seriesX[h][d]){var y,w,k,A=Math.min(this.yRatio.length+1,h+1);if(void 0!==this.groupCtx.prevY[x-1]&&this.groupCtx.prevY[x-1].length)for(var S=1;S<A;S++){var C;if(!isNaN(null===(C=this.groupCtx.prevY[x-S])||void 0===C?void 0:C[d])){k=this.groupCtx.prevY[x-S][d];break}}for(var _=1;_<A;_++){var E,L;if((null===(E=this.groupCtx.prevYVal[x-_])||void 0===E?void 0:E[d])<0){w=this.series[h][d]>=0?k-v+2*(this.isReversed?v:0):k;break}if((null===(L=this.groupCtx.prevYVal[x-_])||void 0===L?void 0:L[d])>=0){w=this.series[h][d]>=0?k:k+v-2*(this.isReversed?v:0);break}}void 0===w&&(w=u.globals.gridHeight),g=null!==(y=this.groupCtx.prevYF[0])&&void 0!==y&&y.every((function(e){return 0===e}))&&this.groupCtx.prevYF.slice(1,x).every((function(e){return e.every((function(e){return isNaN(e)}))}))?a:w}else g=a;i=this.series[h][d]?g-this.series[h][d]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[h][d]/this.yRatio[this.yaxisIndex]:0):g;var T=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:s,y1:g,y2:i,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:h,j:d,w:u});return this.barHelpers.barBackground({bc:p,j:d,i:h,x1:m,x2:s,elSeries:c}),n+=r,{pathTo:T.pathTo,pathFrom:T.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,a,h,d),barXPosition:m,x:u.globals.isXNumeric?n-r:n,y:i}}}]),t}(),_e=function(){h(t,Se);var e=g(t);function t(){return o(this,t),e.apply(this,arguments)}return c(t,[{key:"draw",value:function(e,t,n){var i=this,r=this.w,a=new A(this.ctx),o=r.globals.comboCharts?t:r.config.chart.type,l=new Y(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=r.config.plotOptions.bar.horizontal;var c=new S(this.ctx,r);e=c.getLogSeries(e),this.series=e,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var u=a.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),h=function(t){i.isBoxPlot="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[t].type;var o,c,h,d,p,f,g=void 0,m=void 0,v=[],b=[],x=r.globals.comboCharts?n[t]:t,w=a.group({class:"apexcharts-series",seriesName:y.escapeString(r.globals.seriesNames[x]),rel:t+1,"data:realIndex":x});i.ctx.series.addCollapsedClassToSeries(w,x),e[t].length>0&&(i.visibleI=i.visibleI+1),i.yRatio.length>1&&(i.yaxisIndex=x);var k=i.barHelpers.initialPositions();m=k.y,p=k.barHeight,c=k.yDivision,d=k.zeroW,g=k.x,f=k.barWidth,o=k.xDivision,h=k.zeroH,b.push(g+f/2);for(var A=a.group({class:"apexcharts-datalabels","data:realIndex":x}),S=function(n){var a=i.barHelpers.getStrokeWidth(t,n,x),u=null,y={indexes:{i:t,j:n,realIndex:x},x:g,y:m,strokeWidth:a,elSeries:w};u=i.isHorizontal?i.drawHorizontalBoxPaths(s(s({},y),{},{yDivision:c,barHeight:p,zeroW:d})):i.drawVerticalBoxPaths(s(s({},y),{},{xDivision:o,barWidth:f,zeroH:h})),m=u.y,g=u.x,n>0&&b.push(g+f/2),v.push(m),u.pathTo.forEach((function(s,o){var c=!i.isBoxPlot&&i.candlestickOptions.wick.useFillColor?u.color[o]:r.globals.stroke.colors[t],h=l.fillPath({seriesNumber:x,dataPointIndex:n,color:u.color[o],value:e[t][n]});i.renderSeries({realIndex:x,pathFill:h,lineFill:c,j:n,i:t,pathFrom:u.pathFrom,pathTo:s,strokeWidth:a,elSeries:w,x:g,y:m,series:e,barHeight:p,barWidth:f,elDataLabelsWrap:A,visibleSeries:i.visibleI,type:r.config.chart.type})}))},C=0;C<r.globals.dataPoints;C++)S(C);r.globals.seriesXvalues[x]=b,r.globals.seriesYvalues[x]=v,u.add(w)},d=0;d<e.length;d++)h(d);return u}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,n=e.x;e.y;var i=e.xDivision,r=e.barWidth,s=e.zeroH,a=e.strokeWidth,o=this.w,l=new A(this.ctx),c=t.i,u=t.j,h=!0,d=o.config.plotOptions.candlestick.colors.upward,p=o.config.plotOptions.candlestick.colors.downward,f="";this.isBoxPlot&&(f=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[this.yaxisIndex],m=t.realIndex,v=this.getOHLCValue(m,u),b=s,x=s;v.o>v.c&&(h=!1);var y=Math.min(v.o,v.c),w=Math.max(v.o,v.c),k=v.m;o.globals.isXNumeric&&(n=(o.globals.seriesX[m][u]-o.globals.minX)/this.xRatio-r/2);var S=n+r*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(y=s,w=s):(y=s-y/g,w=s-w/g,b=s-v.h/g,x=s-v.l/g,k=s-v.m/g);var C=l.move(S,s),_=l.move(S+r/2,y);return o.globals.previousPaths.length>0&&(_=this.getPreviousPath(m,u,!0)),C=this.isBoxPlot?[l.move(S,y)+l.line(S+r/2,y)+l.line(S+r/2,b)+l.line(S+r/4,b)+l.line(S+r-r/4,b)+l.line(S+r/2,b)+l.line(S+r/2,y)+l.line(S+r,y)+l.line(S+r,k)+l.line(S,k)+l.line(S,y+a/2),l.move(S,k)+l.line(S+r,k)+l.line(S+r,w)+l.line(S+r/2,w)+l.line(S+r/2,x)+l.line(S+r-r/4,x)+l.line(S+r/4,x)+l.line(S+r/2,x)+l.line(S+r/2,w)+l.line(S,w)+l.line(S,k)+"z"]:[l.move(S,w)+l.line(S+r/2,w)+l.line(S+r/2,b)+l.line(S+r/2,w)+l.line(S+r,w)+l.line(S+r,y)+l.line(S+r/2,y)+l.line(S+r/2,x)+l.line(S+r/2,y)+l.line(S,y)+l.line(S,w-a/2)],_+=l.move(S,y),o.globals.isXNumeric||(n+=i),{pathTo:C,pathFrom:_,x:n,y:w,barXPosition:S,color:this.isBoxPlot?f:h?[d]:[p]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var n=e.y,i=e.yDivision,r=e.barHeight,s=e.zeroW,a=e.strokeWidth,o=this.w,l=new A(this.ctx),c=t.i,u=t.j,h=this.boxOptions.colors.lower;this.isBoxPlot&&(h=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var d=this.invertedYRatio,p=t.realIndex,f=this.getOHLCValue(p,u),g=s,m=s,v=Math.min(f.o,f.c),b=Math.max(f.o,f.c),x=f.m;o.globals.isXNumeric&&(n=(o.globals.seriesX[p][u]-o.globals.minX)/this.invertedXRatio-r/2);var y=n+r*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(v=s,b=s):(v=s+v/d,b=s+b/d,g=s+f.h/d,m=s+f.l/d,x=s+f.m/d);var w=l.move(s,y),k=l.move(v,y+r/2);return o.globals.previousPaths.length>0&&(k=this.getPreviousPath(p,u,!0)),w=[l.move(v,y)+l.line(v,y+r/2)+l.line(g,y+r/2)+l.line(g,y+r/2-r/4)+l.line(g,y+r/2+r/4)+l.line(g,y+r/2)+l.line(v,y+r/2)+l.line(v,y+r)+l.line(x,y+r)+l.line(x,y)+l.line(v+a/2,y),l.move(x,y)+l.line(x,y+r)+l.line(b,y+r)+l.line(b,y+r/2)+l.line(m,y+r/2)+l.line(m,y+r-r/4)+l.line(m,y+r/4)+l.line(m,y+r/2)+l.line(b,y+r/2)+l.line(b,y)+l.line(x,y)+"z"],k+=l.move(v,y),o.globals.isXNumeric||(n+=i),{pathTo:w,pathFrom:k,x:b,y:n,barYPosition:y,color:h}}},{key:"getOHLCValue",value:function(e,t){var n=this.w;return{o:this.isBoxPlot?n.globals.seriesCandleH[e][t]:n.globals.seriesCandleO[e][t],h:this.isBoxPlot?n.globals.seriesCandleO[e][t]:n.globals.seriesCandleH[e][t],m:n.globals.seriesCandleM[e][t],l:this.isBoxPlot?n.globals.seriesCandleC[e][t]:n.globals.seriesCandleL[e][t],c:this.isBoxPlot?n.globals.seriesCandleL[e][t]:n.globals.seriesCandleC[e][t]}}}]),t}(),Ee=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map((function(e,n){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,n,i){var r=this.w,s=1,a=r.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,n);r.globals.hasNegs||i?s=r.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*a):(1-o.percent/100)*(1.25*a):o.percent<=0?1-(1+o.percent/100)*a:(1-o.percent/100)*a:(s=1-o.percent/100,"treemap"===e&&(s=(1-o.percent/100)*(1.25*a)));var l=o.color,c=new y;return r.config.plotOptions[e].enableShades&&(l="dark"===this.w.config.theme.mode?y.hexToRgba(c.shadeColor(-1*s,o.color),r.config.fill.opacity):y.hexToRgba(c.shadeColor(s,o.color),r.config.fill.opacity)),{color:l,colorProps:o}}},{key:"determineColor",value:function(e,t,n){var i=this.w,r=i.globals.series[t][n],s=i.config.plotOptions[e],a=s.colorScale.inverse?n:t;s.distributed&&"treemap"===i.config.chart.type&&(a=n);var o=i.globals.colors[a],l=null,c=Math.min.apply(Math,v(i.globals.series[t])),u=Math.max.apply(Math,v(i.globals.series[t]));s.distributed||"heatmap"!==e||(c=i.globals.minY,u=i.globals.maxY),void 0!==s.colorScale.min&&(c=s.colorScale.min<i.globals.minY?s.colorScale.min:i.globals.minY,u=s.colorScale.max>i.globals.maxY?s.colorScale.max:i.globals.maxY);var h=Math.abs(u)+Math.abs(c),d=100*r/(0===h?h-1e-6:h);return s.colorScale.ranges.length>0&&s.colorScale.ranges.map((function(e,t){if(r>=e.from&&r<=e.to){o=e.color,l=e.foreColor?e.foreColor:null,c=e.from,u=e.to;var n=Math.abs(u)+Math.abs(c);d=100*r/(0===n?n-1e-6:n)}})),{color:o,foreColor:l,percent:d}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,i=e.y,r=e.i,s=e.j,a=e.colorProps,o=e.fontSize,l=this.w.config.dataLabels,c=new A(this.ctx),u=new W(this.ctx),h=null;if(l.enabled){h=c.group({class:"apexcharts-data-labels"});var d=l.offsetX,p=l.offsetY,f=n+d,g=i+parseFloat(l.style.fontSize)/3+p;u.plotDataLabelsText({x:f,y:g,text:t,i:r,j:s,color:a.foreColor,parent:h,fontSize:o,dataLabelsConfig:l})}return h}},{key:"addListeners",value:function(e){var t=new A(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Le=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Ee(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return c(e,[{key:"draw",value:function(e){var t=this.w,n=new A(this.ctx),i=n.group({class:"apexcharts-heatmap"});i.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var r=t.globals.gridWidth/t.globals.dataPoints,s=t.globals.gridHeight/t.globals.series.length,a=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var u=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:y.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),t.config.chart.dropShadow.enabled){var h=t.config.chart.dropShadow;new k(this.ctx).dropShadow(u,h,c)}for(var d=0,p=t.config.plotOptions.heatmap.shadeIntensity,f=0;f<l[c].length;f++){var g=this.helpers.getShadeColor(t.config.chart.type,c,f,this.negRange),m=g.color,v=g.colorProps;"image"===t.config.fill.type&&(m=new Y(this.ctx).fillPath({seriesNumber:c,dataPointIndex:f,opacity:t.globals.hasNegs?v.percent<0?1-(1+v.percent/100):p+v.percent/100:v.percent/100,patternID:y.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:r,height:t.config.fill.image.height?t.config.fill.image.height:s}));var b=this.rectRadius,x=n.drawRect(d,a,r,s,b);if(x.attr({cx:d,cy:a}),x.node.classList.add("apexcharts-heatmap-rect"),u.add(x),x.attr({fill:m,i:c,index:c,j:f,val:e[c][f],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?m:t.globals.stroke.colors[0],color:m}),this.helpers.addListeners(x),t.config.chart.animations.enabled&&!t.globals.dataChanged){var w=1;t.globals.resized||(w=t.config.chart.animations.speed),this.animateHeatMap(x,d,a,r,s,w)}if(t.globals.dataChanged){var S=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){S=this.dynamicAnim.speed;var C=t.globals.previousPaths[c]&&t.globals.previousPaths[c][f]&&t.globals.previousPaths[c][f].color;C||(C="rgba(255, 255, 255, 0)"),this.animateHeatColor(x,y.isColorHex(C)?C:y.rgb2hex(C),y.isColorHex(m)?m:y.rgb2hex(m),S)}}var _=(0,t.config.dataLabels.formatter)(t.globals.series[c][f],{value:t.globals.series[c][f],seriesIndex:c,dataPointIndex:f,w:t}),E=this.helpers.calculateDataLabels({text:_,x:d+r/2,y:a+s/2,i:c,j:f,colorProps:v,series:l});null!==E&&u.add(E),d+=r}a+=s,i.add(u)}var L=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?L.unshift(""):L.push(""),t.globals.yAxisScale[0].result=L,i}},{key:"animateHeatMap",value:function(e,t,n,i,r,s){var a=new w(this.ctx);a.animateRect(e,{x:t+i/2,y:n+r/2,width:0,height:0},{x:t,y:n,width:i,height:r},s,(function(){a.animationCompleted(e)}))}},{key:"animateHeatColor",value:function(e,t,n,i){e.attr({fill:t}).animate(i).attr({fill:n})}}]),e}(),Te=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawYAxisTexts",value:function(e,t,n,i){var r=this.w,s=r.config.yaxis[0],a=r.globals.yLabelFormatters[0];return new A(this.ctx).drawText({x:e+s.labels.offsetX,y:t+s.labels.offsetY,text:a(i,n),textAnchor:"middle",fontSize:s.labels.style.fontSize,fontFamily:s.labels.style.fontFamily,foreColor:Array.isArray(s.labels.style.colors)?s.labels.style.colors[n]:s.labels.style.colors})}}]),e}(),De=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=Math.min(n.globals.gridWidth,n.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,"radialBar"===n.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(n.config.plotOptions.pie.endAngle-n.config.plotOptions.pie.startAngle),this.initialAngle=n.config.plotOptions.pie.startAngle%this.fullAngle,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-(n.config.chart.sparkline.enabled?0:n.config.chart.dropShadow.blur),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return c(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new A(this.ctx);if(this.ret=i.group({class:"apexcharts-pie"}),n.globals.noData)return this.ret;for(var r=0,s=0;s<e.length;s++)r+=y.negToZero(e[s]);var a=[],o=i.group();0===r&&(r=1e-5),e.forEach((function(e){t.maxY=Math.max(t.maxY,e)})),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),"back"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<e.length;l++){var c=this.fullAngle*y.negToZero(e[l])/r;a.push(c),"polarArea"===this.chartType?(a[l]=this.fullAngle/e.length,this.sliceSizes.push(n.globals.radialSize*e[l]/this.maxY)):this.sliceSizes.push(n.globals.radialSize)}if(n.globals.dataChanged){for(var u,h=0,d=0;d<n.globals.previousPaths.length;d++)h+=y.negToZero(n.globals.previousPaths[d]);for(var p=0;p<n.globals.previousPaths.length;p++)u=this.fullAngle*y.negToZero(n.globals.previousPaths[p])/h,this.prevSectorAngleArr.push(u)}this.donutSize<0&&(this.donutSize=0);var f=n.config.plotOptions.pie.customScale,g=n.globals.gridWidth/2,m=n.globals.gridHeight/2,v=g-n.globals.gridWidth/2*f,b=m-n.globals.gridHeight/2*f;if("donut"===this.chartType){var x=i.drawCircle(this.donutSize);x.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:"transparent"}),o.add(x)}var w=this.drawArcs(a,e);if(this.sliceLabels.forEach((function(e){w.add(e)})),o.attr({transform:"translate(".concat(v,", ").concat(b,") scale(").concat(f,")")}),o.add(w),this.ret.add(o),this.donutDataLabels.show){var k=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:v,translateY:b});this.ret.add(k)}return"front"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var n=this.w,i=new k(this.ctx),r=new A(this.ctx),s=new Y(this.ctx),a=r.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0;for(var h=0;h<e.length;h++){var d=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:y.escapeString(n.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});a.add(d),l=u,c=(o=c)+e[h],u=l+this.prevSectorAngleArr[h];var p=c<o?this.fullAngle+c-o:c-o,f=s.fillPath({seriesNumber:h,size:this.sliceSizes[h],value:t[h]}),g=this.getChangedPath(l,u),m=r.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[h]:this.lineColorArr,strokeWidth:0,fill:f,fillOpacity:n.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(h)});if(m.attr({index:0,j:h}),i.setSelectionFilter(m,0,h),n.config.chart.dropShadow.enabled){var v=n.config.chart.dropShadow;i.dropShadow(m,v,h)}this.addListeners(m,this.donutDataLabels),A.setAttrs(m.node,{"data:angle":p,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":t[h]});var b={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?b=y.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize/1.25+n.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle):"donut"===this.chartType&&(b=y.polarToCartesian(this.centerX,this.centerY,(n.globals.radialSize+this.donutSize)/2+n.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle)),d.add(m);var x=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged?this.animBeginArr.push(0):(0==(x=p/this.fullAngle*n.config.chart.animations.speed)&&(x=1),this.animDur=x+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&n.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[h],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:h,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:n.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[h],endAngle:c,startAngle:o,i:h,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:x}),n.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.click(this.pieClicked.bind(this,h)),void 0!==n.globals.selectedDataPoints[0]&&n.globals.selectedDataPoints[0].indexOf(h)>-1&&this.pieClicked(h),n.config.dataLabels.enabled){var w=b.x,S=b.y,C=100*p/this.fullAngle+"%";if(0!==p&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[h]){var _=n.config.dataLabels.formatter;void 0!==_&&(C=_(n.globals.seriesPercent[h][0],{seriesIndex:h,w:n}));var E=n.globals.dataLabels.style.colors[h],L=r.group({class:"apexcharts-datalabels"}),T=r.drawText({x:w,y:S,text:C,textAnchor:"middle",fontSize:n.config.dataLabels.style.fontSize,fontFamily:n.config.dataLabels.style.fontFamily,fontWeight:n.config.dataLabels.style.fontWeight,foreColor:E});if(L.add(T),n.config.dataLabels.dropShadow.enabled){var D=n.config.dataLabels.dropShadow;i.dropShadow(T,D)}T.node.classList.add("apexcharts-pie-label"),n.config.chart.animations.animate&&!1===n.globals.resized&&(T.node.classList.add("apexcharts-pie-label-delay"),T.node.style.animationDelay=n.config.chart.animations.speed/940+"s"),this.sliceLabels.push(L)}}}return a}},{key:"addListeners",value:function(e,t){var n=new A(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var n=this.w,i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,r=i,s=t.startAngle,a=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(s=t.prevEndAngle,r=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===n.config.series.length-1&&(i+a>this.fullAngle?t.endAngle=t.endAngle-(i+a):i+a<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(i+a)))),i===this.fullAngle&&(i=this.fullAngle-.01),this.animateArc(e,s,a,i,r,t)}},{key:"animateArc",value:function(e,t,n,i,r,s){var a,o=this,l=this.w,c=new w(this.ctx),u=s.size;(isNaN(t)||isNaN(r))&&(t=n,r=i,s.dur=0);var h=i,d=n,p=t<n?this.fullAngle+t-n:t-n;l.globals.dataChanged&&s.shouldSetPrevPaths&&s.prevEndAngle&&(a=o.getPiePath({me:o,startAngle:s.prevStartAngle,angle:s.prevEndAngle<s.prevStartAngle?this.fullAngle+s.prevEndAngle-s.prevStartAngle:s.prevEndAngle-s.prevStartAngle,size:u}),e.attr({d:a})),0!==s.dur?e.animate(s.dur,l.globals.easing,s.animBeginArr[s.i]).afterAll((function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),s.i===l.config.series.length-1&&c.animationCompleted(e)})).during((function(l){h=p+(i-p)*l,s.animateStartingPos&&(h=r+(i-r)*l,d=t-r+(n-(t-r))*l),a=o.getPiePath({me:o,startAngle:d,angle:h,size:u}),e.node.setAttribute("data:pathOrig",a),e.attr({d:a})})):(a=o.getPiePath({me:o,startAngle:d,angle:i,size:u}),s.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",a),e.attr({d:a,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,n=this.w,i=this,r=i.sliceSizes[e]+(n.config.plotOptions.pie.expandOnClick?4:0),s=n.globals.dom.Paper.select(".apexcharts-".concat(i.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==s.attr("data:pieClicked")){var a=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(a,(function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)})),s.attr("data:pieClicked","true");var o=parseInt(s.attr("data:startAngle"),10),l=parseInt(s.attr("data:angle"),10);t=i.getPiePath({me:i,startAngle:o,angle:l,size:r}),360!==l&&s.plot(t)}else{s.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(s.node,this.donutDataLabels);var c=s.attr("data:pathOrig");s.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var n="";return this.dynamicAnim&&this.w.globals.dataChanged&&(n=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),n}},{key:"getPiePath",value:function(e){var t,n=e.me,i=e.startAngle,r=e.angle,s=e.size,a=new A(this.ctx),o=i,l=Math.PI*(o-90)/180,c=r+i;Math.ceil(c)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var u=Math.PI*(c-90)/180,h=n.centerX+s*Math.cos(l),d=n.centerY+s*Math.sin(l),p=n.centerX+s*Math.cos(u),f=n.centerY+s*Math.sin(u),g=y.polarToCartesian(n.centerX,n.centerY,n.donutSize,c),m=y.polarToCartesian(n.centerX,n.centerY,n.donutSize,o),v=r>180?1:0,b=["M",h,d,"A",s,s,0,v,1,p,f];return t="donut"===n.chartType?[].concat(b,["L",g.x,g.y,"A",n.donutSize,n.donutSize,0,v,0,m.x,m.y,"L",h,d,"z"]).join(" "):"pie"===n.chartType||"polarArea"===n.chartType?[].concat(b,["L",n.centerX,n.centerY,"L",h,d]).join(" "):[].concat(b).join(" "),a.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new Z(this.ctx),i=new A(this.ctx),r=new Te(this.ctx),s=i.group(),a=i.group(),o=n.niceScale(0,Math.ceil(this.maxY),0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var u=t.globals.radialSize,h=u/(c-1),d=0;d<c-1;d++){var p=i.drawCircle(u);if(p.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var f=r.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,d,l[d]);a.add(f)}s.add(p),u-=h}this.drawSpokes(e),e.add(s),e.add(a)}},{key:"renderInnerDataLabels",value:function(e,t){var n=this.w,i=new A(this.ctx),r=i.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(n.config.plotOptions.pie.customScale,")")}),s=e.total.show;r.node.style.opacity=t.opacity;var a,o,l=t.centerX,c=t.centerY;a=void 0===e.name.color?n.globals.colors[0]:e.name.color;var u=e.name.fontSize,h=e.name.fontFamily,d=e.name.fontWeight;o=void 0===e.value.color?n.config.chart.foreColor:e.value.color;var p=e.value.formatter,f="",g="";if(s?(a=e.total.color,u=e.total.fontSize,h=e.total.fontFamily,d=e.total.fontWeight,g=e.total.label,f=e.total.formatter(n)):1===n.globals.series.length&&(f=p(n.globals.series[0],n),g=n.globals.seriesNames[0]),g&&(g=e.name.formatter(g,e.total.show,n)),e.name.show){var m=i.drawText({x:l,y:c+parseFloat(e.name.offsetY),text:g,textAnchor:"middle",foreColor:a,fontSize:u,fontWeight:d,fontFamily:h});m.node.classList.add("apexcharts-datalabel-label"),r.add(m)}if(e.value.show){var v=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,b=i.drawText({x:l,y:c+v,text:f,textAnchor:"middle",foreColor:o,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),r.add(b)}return r}},{key:"printInnerLabels",value:function(e,t,n,i){var r,s=this.w;i?r=void 0===e.name.color?s.globals.colors[parseInt(i.parentNode.getAttribute("rel"),10)-1]:e.name.color:s.globals.series.length>1&&e.total.show&&(r=e.total.color);var a=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,s),i||"function"!=typeof e.total.formatter||(n=e.total.formatter(s));var l=t===e.total.label;t=e.name.formatter(t,l,s),null!==a&&(a.textContent=t),null!==o&&(o.textContent=n),null!==a&&(a.style.fill=r)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,i=e.getAttribute("data:value"),r=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,r,i,e);var s=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==s&&(s.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,i=new A(this.ctx),r=n.config.plotOptions.polarArea.spokes;if(0!==r.strokeWidth){for(var s=[],a=360/n.globals.series.length,o=0;o<n.globals.series.length;o++)s.push(y.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize,n.config.plotOptions.pie.startAngle+a*o));s.forEach((function(n,s){var a=i.drawLine(n.x,n.y,t.centerX,t.centerY,Array.isArray(r.connectorColors)?r.connectorColors[s]:r.connectorColors);e.add(a)}))}}},{key:"revertDataLabelsInner",value:function(e,t,n){var i=this,r=this.w,s=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),a=!1,o=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(e){var n=e.makeSliceOut,r=e.printLabel;Array.prototype.forEach.call(o,(function(e){"true"===e.getAttribute("data:pieClicked")&&(n&&(a=!0),r&&i.printDataLabelsInner(e,t))}))};if(l({makeSliceOut:!0,printLabel:!1}),t.total.show&&r.globals.series.length>1)a&&!t.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(r));else if(l({makeSliceOut:!1,printLabel:!0}),!a)if(r.globals.selectedDataPoints.length&&r.globals.series.length>1)if(r.globals.selectedDataPoints[0].length>0){var c=r.globals.selectedDataPoints[0],u=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(u,t)}else s&&r.globals.selectedDataPoints.length&&0===r.globals.selectedDataPoints[0].length&&(s.style.opacity=0);else s&&r.globals.series.length>1&&(s.style.opacity=0)}}]),e}(),Pe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new A(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.gridHeight+1.5*n.globals.goldenPadding:n.globals.gridWidth,this.isLog=n.config.yaxis[0].logarithmic,this.coreUtils=new S(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(n.globals.maxY,0):n.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):n.globals.minY,this.polygons=n.config.plotOptions.radar.polygons,this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-n.config.chart.dropShadow.blur,n.config.xaxis.labels.show&&(this.size=this.size-n.globals.xAxisLabelsWidth/1.75),void 0!==n.config.plotOptions.radar.size&&(this.size=n.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return c(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new Y(this.ctx),r=[],a=new W(this.ctx);e.length&&(this.dataPointsLen=e[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=n.globals.gridWidth/2,l=n.globals.gridHeight/2,c=o+n.config.plotOptions.radar.offsetX,u=l+n.config.plotOptions.radar.offsetY,h=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(u||0,")")}),d=[],p=null,f=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((function(e,o){var l=e.length===n.globals.dataPoints,c=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:y.escapeString(n.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});t.dataRadiusOfPercent[o]=[],t.dataRadius[o]=[],t.angleArr[o]=[],e.forEach((function(e,n){var i=Math.abs(t.maxValue-t.minValue);e+=Math.abs(t.minValue),t.isLog&&(e=t.coreUtils.getLogVal(e,0)),t.dataRadiusOfPercent[o][n]=e/i,t.dataRadius[o][n]=t.dataRadiusOfPercent[o][n]*t.size,t.angleArr[o][n]=n*t.disAngle})),d=t.getDataPointsPos(t.dataRadius[o],t.angleArr[o]);var u=t.createPaths(d,{x:0,y:0});p=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),f=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":o}),n.globals.delayedElements.push({el:p.node,index:o});var h={i:o,realIndex:o,animationDelay:o,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[o],strokeLineCap:n.config.stroke.lineCap},g=null;n.globals.previousPaths.length>0&&(g=t.getPreviousPath(o));for(var m=0;m<u.linePathsTo.length;m++){var v=t.graphics.renderPaths(s(s({},h),{},{pathFrom:null===g?u.linePathsFrom[m]:g,pathTo:u.linePathsTo[m],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[o]:t.strokeWidth,fill:"none",drawShadow:!1}));c.add(v);var b=i.fillPath({seriesNumber:o}),x=t.graphics.renderPaths(s(s({},h),{},{pathFrom:null===g?u.areaPathsFrom[m]:g,pathTo:u.areaPathsTo[m],strokeWidth:0,fill:b,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var w=new k(t.ctx),A=n.config.chart.dropShadow;w.dropShadow(x,Object.assign({},A,{noUserSpaceOnUse:!0}),o)}c.add(x)}e.forEach((function(e,i){var r=new j(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:i}),l=t.graphics.drawMarker(d[i].x,d[i].y,r);l.attr("rel",i),l.attr("j",i),l.attr("index",o),l.node.setAttribute("default-marker-size",r.pSize);var u=t.graphics.group({class:"apexcharts-series-markers"});u&&u.add(l),p.add(u),c.add(p);var h=n.config.dataLabels;if(h.enabled){var g=h.formatter(n.globals.series[o][i],{seriesIndex:o,dataPointIndex:i,w:n});a.plotDataLabelsText({x:d[i].x,y:d[i].y,text:g,textAnchor:"middle",i:o,j:o,parent:f,offsetCorrection:!1,dataLabelsConfig:s({},h)})}c.add(f)})),r.push(c)})),this.drawPolygons({parent:h}),n.config.xaxis.labels.show){var g=this.drawXAxisTexts();h.add(g)}return r.forEach((function(e){h.add(e)})),h.add(this.yaxisLabels),h}},{key:"drawPolygons",value:function(e){for(var t=this,n=this.w,i=e.parent,r=new Te(this.ctx),s=n.globals.yAxisScale[0].result.reverse(),a=s.length,o=[],l=this.size/(a-1),c=0;c<a;c++)o[c]=l*c;o.reverse();var u=[],h=[];o.forEach((function(e,n){var i=y.getPolygonPos(e,t.dataPointsLen),r="";i.forEach((function(e,i){if(0===n){var s=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[i]:t.polygons.connectorColors);h.push(s)}0===i&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),r+=e.x+","+e.y+" "})),u.push(r)})),u.forEach((function(e,r){var s=t.polygons.strokeColors,a=t.polygons.strokeWidth,o=t.graphics.drawPolygon(e,Array.isArray(s)?s[r]:s,Array.isArray(a)?a[r]:a,n.globals.radarPolygons.fill.colors[r]);i.add(o)})),h.forEach((function(e){i.add(e)})),n.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(e,n){var i=r.drawYAxisTexts(e.x,e.y,n,s[n]);t.yaxisLabels.add(i)}))}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,n=t.config.xaxis.labels,i=this.graphics.group({class:"apexcharts-xaxis"}),r=y.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach((function(a,o){var l=t.config.xaxis.labels.formatter,c=new W(e.ctx);if(r[o]){var u=e.getTextPos(r[o],e.size),h=l(a,{seriesIndex:-1,dataPointIndex:o,w:t});c.plotDataLabelsText({x:u.newX,y:u.newY,text:h,textAnchor:u.textAnchor,i:o,j:o,parent:i,color:Array.isArray(n.style.colors)&&n.style.colors[o]?n.style.colors[o]:"#a8a8a8",dataLabelsConfig:s({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1})}})),i}},{key:"createPaths",value:function(e,t){var n=this,i=[],r=[],s=[],a=[];if(e.length){r=[this.graphics.move(t.x,t.y)],a=[this.graphics.move(t.x,t.y)];var o=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((function(t,i){o+=n.graphics.line(t.x,t.y),l+=n.graphics.line(t.x,t.y),i===e.length-1&&(o+="Z",l+="Z")})),i.push(o),s.push(l)}return{linePathsFrom:r,linePathsTo:i,areaPathsFrom:a,areaPathsTo:s}}},{key:"getTextPos",value:function(e,t){var n="middle",i=e.x,r=e.y;return Math.abs(e.x)>=10?e.x>0?(n="start",i+=10):e.x<0&&(n="end",i-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?r-=10:e.y>0&&(r+=10)),{textAnchor:n,newX:i,newY:r}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,i=0;i<t.globals.previousPaths.length;i++){var r=t.globals.previousPaths[i];r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[i].paths[0]&&(n=t.globals.previousPaths[i].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var i=[],r=0;r<n;r++){var s={};s.x=e[r]*Math.sin(t[r]),s.y=-e[r]*Math.cos(t[r]),i.push(s)}return i}}]),e}(),Me=function(){h(t,De);var e=g(t);function t(n){var i;o(this,t),(i=e.call(this,n)).ctx=n,i.w=n.w,i.animBeginArr=[0],i.animDur=0;var r=i.w;return i.startAngle=r.config.plotOptions.radialBar.startAngle,i.endAngle=r.config.plotOptions.radialBar.endAngle,i.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),i.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,i.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,i.barLabels=i.w.config.plotOptions.radialBar.barLabels,i.donutDataLabels=i.w.config.plotOptions.radialBar.dataLabels,i.radialDataLabels=i.donutDataLabels,i.trackStartAngle||(i.trackStartAngle=i.startAngle),i.trackEndAngle||(i.trackEndAngle=i.endAngle),360===i.endAngle&&(i.endAngle=359.99),i.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),i.onBarLabelClick=i.onBarLabelClick.bind(f(i)),i}return c(t,[{key:"draw",value:function(e){var t=this.w,n=new A(this.ctx),i=n.group({class:"apexcharts-radialbar"});if(t.globals.noData)return i;var r=n.group(),s=this.defaultSize/2,a=t.globals.gridWidth/2,o=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(o=o-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:a,centerY:s,colorArr:l,series:e});r.add(c)}var u=this.drawArcs({size:o,centerX:a,centerY:s,colorArr:l,series:e}),h=360;t.config.plotOptions.radialBar.startAngle<0&&(h=this.totalAngle);var d=(360-h)/360;if(t.globals.radialSize=o-o*d,this.radialDataLabels.value.show){var p=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=p*d}return r.add(u.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),i.add(r),i}},{key:"drawTracks",value:function(e){var t=this.w,n=new A(this.ctx),i=n.group({class:"apexcharts-tracks"}),r=new k(this.ctx),s=new Y(this.ctx),a=this.getStrokeWidth(e);e.size=e.size-a/2;for(var o=0;o<e.series.length;o++){var l=n.group({class:"apexcharts-radialbar-track apexcharts-track"});i.add(l),l.attr({rel:o+1}),e.size=e.size-a-this.margin;var c=t.config.plotOptions.radialBar.track,u=s.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),h=this.trackStartAngle,d=this.trackEndAngle;Math.abs(d)+Math.abs(h)>=360&&(d=360-Math.abs(this.startAngle)-.1);var p=n.drawPath({d:"",stroke:u,strokeWidth:a*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var f=c.dropShadow;r.dropShadow(p,f)}l.add(p),p.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(p,{centerX:e.centerX,centerY:e.centerY,endAngle:d,startAngle:h,size:e.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return i}},{key:"drawArcs",value:function(e){var t=this.w,n=new A(this.ctx),i=new Y(this.ctx),r=new k(this.ctx),s=n.group(),a=this.getStrokeWidth(e);e.size=e.size-a/2;var o=t.config.plotOptions.radialBar.hollow.background,l=e.size-a*e.series.length-this.margin*e.series.length-a*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(e,s,l,o));var u=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:o||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var h=t.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(u,h)}var d=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(d=0);var p=null;this.radialDataLabels.show&&(p=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:d})),"back"===t.config.plotOptions.radialBar.hollow.position&&(s.add(u),p&&s.add(p));var f=!1;t.config.plotOptions.radialBar.inverseOrder&&(f=!0);for(var g=f?e.series.length-1:0;f?g>=0:g<e.series.length;f?g--:g++){var m=n.group({class:"apexcharts-series apexcharts-radial-series",seriesName:y.escapeString(t.globals.seriesNames[g])});s.add(m),m.attr({rel:g+1,"data:realIndex":g}),this.ctx.series.addCollapsedClassToSeries(m,g),e.size=e.size-a-this.margin;var v=i.fillPath({seriesNumber:g,size:e.size,value:e.series[g]}),b=this.startAngle,x=void 0,w=y.negToZero(e.series[g]>100?100:e.series[g])/100,S=Math.round(this.totalAngle*w)+this.startAngle,C=void 0;t.globals.dataChanged&&(x=this.startAngle,C=Math.round(this.totalAngle*y.negToZero(t.globals.previousPaths[g])/100)+x),Math.abs(S)+Math.abs(b)>=360&&(S-=.01),Math.abs(C)+Math.abs(x)>=360&&(C-=.01);var _=S-b,E=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[g]:t.config.stroke.dashArray,L=n.drawPath({d:"",stroke:v,strokeWidth:a,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+g,strokeDashArray:E});if(A.setAttrs(L.node,{"data:angle":_,"data:value":e.series[g]}),t.config.chart.dropShadow.enabled){var T=t.config.chart.dropShadow;r.dropShadow(L,T,g)}if(r.setSelectionFilter(L,0,g),this.addListeners(L,this.radialDataLabels),m.add(L),L.attr({index:0,j:g}),this.barLabels.enabled){var D=y.polarToCartesian(e.centerX,e.centerY,e.size,b),P=this.barLabels.formatter(t.globals.seriesNames[g],{seriesIndex:g,w:t}),M=["apexcharts-radialbar-label"];this.barLabels.onClick||M.push("apexcharts-no-click");var O=this.barLabels.useSeriesColors?t.globals.colors[g]:t.config.chart.foreColor;O||(O=t.config.chart.foreColor);var R=D.x-this.barLabels.margin,I=D.y,N=n.drawText({x:R,y:I,text:P,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:O,cssClass:M.join(" ")});N.on("click",this.onBarLabelClick),N.attr({rel:g+1}),0!==b&&N.attr({"transform-origin":"".concat(R," ").concat(I),transform:"rotate(".concat(b," 0 0)")}),m.add(N)}var F=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(F=t.config.chart.animations.speed),t.globals.dataChanged&&(F=t.config.chart.animations.dynamicAnimation.speed),this.animDur=F/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(L,{centerX:e.centerX,centerY:e.centerY,endAngle:S,startAngle:b,prevEndAngle:C,prevStartAngle:x,size:e.size,i:g,totalItems:2,animBeginArr:this.animBeginArr,dur:F,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:s,elHollow:u,dataLabels:p}}},{key:"drawHollow",value:function(e){var t=new A(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,n,i){var r=this.w,s=new Y(this.ctx),a=y.randomId(),o=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)s.clippedImgArea({width:n,height:n,image:o,patternID:"pattern".concat(r.globals.cuid).concat(a)}),i="url(#pattern".concat(r.globals.cuid).concat(a,")");else{var l=r.config.plotOptions.radialBar.hollow.imageWidth,c=r.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=r.globals.dom.Paper.image(o).loaded((function(t){this.move(e.centerX-t.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(u)}else{var h=r.globals.dom.Paper.image(o).loaded((function(t){this.move(e.centerX-l/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(h)}}return i}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(e){var t=parseInt(e.target.getAttribute("rel"),10)-1,n=this.barLabels.onClick,i=this.w;n&&n(i.globals.seriesNames[t],{w:i,seriesIndex:t})}}]),t}(),Oe=function(){h(t,Se);var e=g(t);function t(){return o(this,t),e.apply(this,arguments)}return c(t,[{key:"draw",value:function(e,t){var n=this.w,i=new A(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var r=i.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),a=0;a<e.length;a++){var o,l,c,h,d=void 0,p=void 0,f=n.globals.comboCharts?t[a]:a,g=i.group({class:"apexcharts-series",seriesName:y.escapeString(n.globals.seriesNames[f]),rel:a+1,"data:realIndex":f});this.ctx.series.addCollapsedClassToSeries(g,f),e[a].length>0&&(this.visibleI=this.visibleI+1);var m=0,v=0;this.yRatio.length>1&&(this.yaxisIndex=f);var b=this.barHelpers.initialPositions();p=b.y,h=b.zeroW,d=b.x,v=b.barWidth,m=b.barHeight,o=b.xDivision,l=b.yDivision,c=b.zeroH;for(var x=i.group({class:"apexcharts-datalabels","data:realIndex":f}),w=i.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<n.globals.dataPoints;k++){var S,C=this.barHelpers.getStrokeWidth(a,k,f),_=this.seriesRangeStart[a][k],E=this.seriesRangeEnd[a][k],L=null,T=null,D=null,P={x:d,y:p,strokeWidth:C,elSeries:g},M=this.seriesLen;if(n.config.plotOptions.bar.rangeBarGroupRows&&(M=1),void 0===n.config.series[a].data[k])break;if(this.isHorizontal){D=p+m*this.visibleI;var O=(l-m*M)/2;if(n.config.series[a].data[k].x){var R=this.detectOverlappingBars({i:a,j:k,barYPosition:D,srty:O,barHeight:m,yDivision:l,initPositions:b});m=R.barHeight,D=R.barYPosition}v=(L=this.drawRangeBarPaths(s({indexes:{i:a,j:k,realIndex:f},barHeight:m,barYPosition:D,zeroW:h,yDivision:l,y1:_,y2:E},P))).barWidth}else{n.globals.isXNumeric&&(d=(n.globals.seriesX[a][k]-n.globals.minX)/this.xRatio-v/2),T=d+v*this.visibleI;var I=(o-v*M)/2;if(n.config.series[a].data[k].x){var N=this.detectOverlappingBars({i:a,j:k,barXPosition:T,srtx:I,barWidth:v,xDivision:o,initPositions:b});v=N.barWidth,T=N.barXPosition}m=(L=this.drawRangeColumnPaths(s({indexes:{i:a,j:k,realIndex:f},barWidth:v,barXPosition:T,zeroH:c,xDivision:o},P))).barHeight}var F=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:D,goalX:L.goalX,goalY:L.goalY,barHeight:m,barWidth:v});F&&w.add(F),p=L.y,d=L.x;var B=this.barHelpers.getPathFillColor(e,a,k,f),z=n.globals.stroke.colors[f];this.renderSeries((u(S={realIndex:f,pathFill:B,lineFill:z,j:k,i:a,x:d,y:p,y1:_,y2:E,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:C,elSeries:g,series:e,barHeight:m,barWidth:v,barXPosition:T,barYPosition:D},"barWidth",v),u(S,"elDataLabelsWrap",x),u(S,"elGoalsMarkers",w),u(S,"visibleSeries",this.visibleI),u(S,"type","rangebar"),S))}r.add(g)}return r}},{key:"detectOverlappingBars",value:function(e){var t=e.i,n=e.j,i=e.barYPosition,r=e.barXPosition,s=e.srty,a=e.srtx,o=e.barHeight,l=e.barWidth,c=e.yDivision,u=e.xDivision,h=e.initPositions,d=this.w,p=[],f=d.config.series[t].data[n].rangeName,g=d.config.series[t].data[n].x,m=Array.isArray(g)?g.join(" "):g,v=d.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(m),b=d.globals.seriesRange[t].findIndex((function(e){return e.x===m&&e.overlaps.length>0}));return this.isHorizontal?(i=d.config.plotOptions.bar.rangeBarGroupRows?s+c*v:s+o*this.visibleI+c*v,b>-1&&!d.config.plotOptions.bar.rangeBarOverlap&&(p=d.globals.seriesRange[t][b].overlaps).indexOf(f)>-1&&(i=(o=h.barHeight/p.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+p.indexOf(f))+c*v)):(v>-1&&(r=d.config.plotOptions.bar.rangeBarGroupRows?a+u*v:a+l*this.visibleI+u*v),b>-1&&!d.config.plotOptions.bar.rangeBarOverlap&&(p=d.globals.seriesRange[t][b].overlaps).indexOf(f)>-1&&(r=(l=h.barWidth/p.length)*this.visibleI+u*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+p.indexOf(f))+u*v)),{barYPosition:i,barXPosition:r,barHeight:o,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,n=e.x,i=e.xDivision,r=e.barWidth,s=e.barXPosition,a=e.zeroH,o=this.w,l=t.i,c=t.j,u=this.yRatio[this.yaxisIndex],h=t.realIndex,d=this.getRangeValue(h,c),p=Math.min(d.start,d.end),f=Math.max(d.start,d.end);void 0===this.series[l][c]||null===this.series[l][c]?p=a:(p=a-p/u,f=a-f/u);var g=Math.abs(f-p),m=this.barHelpers.getColumnPaths({barXPosition:s,barWidth:r,y1:p,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:t.realIndex,i:h,j:c,w:o});if(o.globals.isXNumeric){var v=this.getBarXForNumericXAxis({x:n,j:c,realIndex:h,barWidth:r});n=v.x,s=v.barXPosition}else n+=i;return{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:g,x:n,y:f,goalY:this.barHelpers.getGoalValues("y",null,a,l,c),barXPosition:s}}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,n=e.y,i=e.y1,r=e.y2,s=e.yDivision,a=e.barHeight,o=e.barYPosition,l=e.zeroW,c=this.w,u=l+i/this.invertedYRatio,h=l+r/this.invertedYRatio,d=Math.abs(h-u),p=this.barHelpers.getBarpaths({barYPosition:o,barHeight:a,x1:u,x2:h,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:t.realIndex,realIndex:t.realIndex,j:t.j,w:c});return c.globals.isXNumeric||(n+=s),{pathTo:p.pathTo,pathFrom:p.pathFrom,barWidth:d,x:h,goalX:this.barHelpers.getGoalValues("x",l,null,t.realIndex,t.j),y:n}}},{key:"getRangeValue",value:function(e,t){var n=this.w;return{start:n.globals.seriesRangeStart[e][t],end:n.globals.seriesRangeEnd[e][t]}}}]),t}(),Re=function(){function e(t){o(this,e),this.w=t.w,this.lineCtx=t}return c(e,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if(("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[e])&&new S(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var i=t[e].slice();i[i.length-1]=i[i.length-1]+1e-6,t[e]=i}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,i=e.x,r=e.y,s=e.i,a=e.j,o=e.prevY,l=this.w,c=[],u=[];if(0===a){var h=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(h=(l.globals.seriesX[n][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(h),u.push(y.isNumber(t[s][0])?o+l.config.markers.offsetY:null),c.push(i+l.config.markers.offsetX),u.push(y.isNumber(t[s][a+1])?r+l.config.markers.offsetY:null)}else c.push(i+l.config.markers.offsetX),u.push(y.isNumber(t[s][a+1])?r+l.config.markers.offsetY:null);return{x:c,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,i=e.realIndex,r=this.w,s=0;s<r.globals.previousPaths.length;s++){var a=r.globals.previousPaths[s];("line"===a.type||"area"===a.type)&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(i,10)&&("line"===a.type?(this.lineCtx.appendPathFrom=!1,t=r.globals.previousPaths[s].paths[0].d):"area"===a.type&&(this.lineCtx.appendPathFrom=!1,n=r.globals.previousPaths[s].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[s].paths[1]&&(t=r.globals.previousPaths[s].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n,i=e.i,r=e.series,s=e.prevY,a=e.lineYPosition,o=this.w,l=o.config.chart.stacked&&!o.globals.comboCharts||o.config.chart.stacked&&o.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[i])||void 0===t?void 0:t.type));if(void 0!==(null===(n=r[i])||void 0===n?void 0:n[0]))s=(a=l&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-r[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?r[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(l&&i>0&&void 0===r[i][0])for(var c=i-1;c>=0;c--)if(null!==r[c][0]&&void 0!==r[c][0]){s=a=this.lineCtx.prevSeriesY[c][0];break}return{prevY:s,lineYPosition:a}}}]),e}(),Ie=function(e){for(var t="",n=0;n<e.length;n++){var i=e[n],r=i.length;r>4?(t+="C".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]),t+=", ".concat(i[4],", ").concat(i[5])):r>2&&(t+="S".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]))}return t},Ne=function(e){var t=function(e){for(var t,n,i,r,s=function(e){for(var t=[],n=e[0],i=e[1],r=t[0]=Fe(n,i),s=1,a=e.length-1;s<a;s++)n=i,i=e[s+1],t[s]=.5*(r+(r=Fe(n,i)));return t[s]=r,t}(e),a=e.length-1,o=[],l=0;l<a;l++)i=Fe(e[l],e[l+1]),Math.abs(i)<1e-6?s[l]=s[l+1]=0:(r=(t=s[l]/i)*t+(n=s[l+1]/i)*n)>9&&(r=3*i/Math.sqrt(r),s[l]=r*t,s[l+1]=r*n);for(var c=0;c<=a;c++)r=(e[Math.min(a,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+s[c]*s[c])),o.push([r||0,s[c]*r||0]);return o}(e),n=e[1],i=e[0],r=[],s=t[1],a=t[0];r.push(i,[i[0]+a[0],i[1]+a[1],n[0]-s[0],n[1]-s[1],n[0],n[1]]);for(var o=2,l=t.length;o<l;o++){var c=e[o],u=t[o];r.push([c[0]-u[0],c[1]-u[1],c[0],c[1]])}return r};function Fe(e,t){return(t[1]-e[1])/(t[0]-e[0])}var Be=function(){function e(t,n,i){o(this,e),this.ctx=t,this.w=t.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||i,this.scatter=new H(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Re(this),this.markers=new j(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return c(e,[{key:"draw",value:function(e,t,n,i){var r,a=this.w,o=new A(this.ctx),l=a.globals.comboCharts?t:a.config.chart.type,c=o.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),u=new S(this.ctx,a);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=u.getLogSeries(e),this.yRatio=u.getLogYRatios(this.yRatio);for(var h=[],d=0;d<e.length;d++){e=this.lineHelpers.sameValueSeriesFix(d,e);var p=a.globals.comboCharts?n[d]:d;this._initSerieVariables(e,d,p);var f=[],g=[],m=[],v=a.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,p),a.globals.isXNumeric&&a.globals.seriesX.length>0&&(v=(a.globals.seriesX[p][0]-a.globals.minX)/this.xRatio),m.push(v);var b,x=v,y=void 0,w=x,k=this.zeroY,C=this.zeroY;k=this.lineHelpers.determineFirstPrevY({i:d,series:e,prevY:k,lineYPosition:0}).prevY,"monotonCubic"===a.config.stroke.curve&&null===e[d][0]?f.push(null):f.push(k),b=k,"rangeArea"===l&&(y=C=this.lineHelpers.determineFirstPrevY({i:d,series:i,prevY:C,lineYPosition:0}).prevY,g.push(C));var _={type:l,series:e,realIndex:p,i:d,x:v,y:1,pX:x,pY:b,pathsFrom:this._calculatePathsFrom({type:l,series:e,i:d,realIndex:p,prevX:w,prevY:k,prevY2:C}),linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:m,yArrj:f,y2Arrj:g,seriesRangeEnd:i},E=this._iterateOverDataPoints(s(s({},_),{},{iterations:"rangeArea"===l?e[d].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){var L=this._calculatePathsFrom({series:i,i:d,realIndex:p,prevX:w,prevY:C}),T=this._iterateOverDataPoints(s(s({},_),{},{series:i,pY:y,pathsFrom:L,iterations:i[d].length-1,isRangeStart:!1}));E.linePaths[0]=T.linePath+E.linePath,E.pathFromLine=T.pathFromLine+E.pathFromLine}this._handlePaths({type:l,realIndex:p,i:d,paths:E}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),h.push(this.elSeries)}if(void 0!==(null===(r=a.config.series[0])||void 0===r?void 0:r.zIndex)&&h.sort((function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))})),a.config.chart.stacked)for(var D=h.length;D>0;D--)c.add(h[D-1]);else for(var P=0;P<h.length;P++)c.add(h[P]);return c}},{key:"_initSerieVariables",value:function(e,t,n){var i=this.w,r=new A(this.ctx);this.xDivision=i.globals.gridWidth/(i.globals.dataPoints-("on"===i.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(i.config.stroke.width)?i.config.stroke.width[n]:i.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=n),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.zeroY=i.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?i.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>i.globals.gridHeight||"end"===i.config.plotOptions.area.fillTo)&&(this.areaBottomY=i.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",zIndex:void 0!==i.config.series[n].zIndex?i.config.series[n].zIndex:n,seriesName:y.escapeString(i.globals.seriesNames[n])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":n});var s=e[t].length===i.globals.dataPoints;this.elSeries.attr({"data:longestSeries":s,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,n,i,r,s=e.type,a=e.series,o=e.i,l=e.realIndex,c=e.prevX,u=e.prevY,h=e.prevY2,d=this.w,p=new A(this.ctx);if(null===a[o][0]){for(var f=0;f<a[o].length;f++)if(null!==a[o][f]){c=this.xDivision*f,u=this.zeroY-a[o][f]/this.yRatio[this.yaxisIndex],t=p.move(c,u),n=p.move(c,this.areaBottomY);break}}else t=p.move(c,u),"rangeArea"===s&&(t=p.move(c,h)+p.line(c,u)),n=p.move(c,this.areaBottomY)+p.line(c,u);if(i=p.move(-1,this.zeroY)+p.line(-1,this.zeroY),r=p.move(-1,this.zeroY)+p.line(-1,this.zeroY),d.globals.previousPaths.length>0){var g=this.lineHelpers.checkPreviousPaths({pathFromLine:i,pathFromArea:r,realIndex:l});i=g.pathFromLine,r=g.pathFromArea}return{prevX:c,prevY:u,linePath:t,areaPath:n,pathFromLine:i,pathFromArea:r}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,i=e.i,r=e.paths,a=this.w,o=new A(this.ctx),l=new Y(this.ctx);this.prevSeriesY.push(r.yArrj),a.globals.seriesXvalues[n]=r.xArrj,a.globals.seriesYvalues[n]=r.yArrj;var c=a.config.forecastDataPoints;if(c.count>0&&"rangeArea"!==t){var u=a.globals.seriesXvalues[n][a.globals.seriesXvalues[n].length-c.count-1],h=o.drawRect(u,0,a.globals.gridWidth,a.globals.gridHeight,0);a.globals.dom.elForecastMask.appendChild(h.node);var d=o.drawRect(0,0,u,a.globals.gridHeight,0);a.globals.dom.elNonForecastMask.appendChild(d.node)}this.pointsChart||a.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var p={i,realIndex:n,animationDelay:i,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var f=l.fillPath({seriesNumber:n}),g=0;g<r.areaPaths.length;g++){var m=o.renderPaths(s(s({},p),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:f}));this.elSeries.add(m)}if(a.config.stroke.show&&!this.pointsChart){var v=null;if("line"===t)v=l.fillPath({seriesNumber:n,i});else if("solid"===a.config.stroke.fill.type)v=a.globals.stroke.colors[n];else{var b=a.config.fill;a.config.fill=a.config.stroke.fill,v=l.fillPath({seriesNumber:n,i}),a.config.fill=b}for(var x=0;x<r.linePaths.length;x++){var y=v;"rangeArea"===t&&(y=l.fillPath({seriesNumber:n}));var w=s(s({},p),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[x],stroke:v,strokeWidth:this.strokeWidth,strokeLineCap:a.config.stroke.lineCap,fill:"rangeArea"===t?y:"none"}),k=o.renderPaths(w);if(this.elSeries.add(k),k.attr("fill-rule","evenodd"),c.count>0&&"rangeArea"!==t){var S=o.renderPaths(w);S.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&S.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(S),S.attr("clip-path","url(#forecastMask".concat(a.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(a.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,n=this,i=e.type,r=e.series,s=e.iterations,a=e.realIndex,o=e.i,l=e.x,c=e.y,u=e.pX,h=e.pY,d=e.pathsFrom,p=e.linePaths,f=e.areaPaths,g=e.seriesIndex,m=e.lineYPosition,v=e.xArrj,b=e.yArrj,x=e.y2Arrj,w=e.isRangeStart,k=e.seriesRangeEnd,S=this.w,C=new A(this.ctx),_=this.yRatio,E=d.prevY,L=d.linePath,T=d.areaPath,D=d.pathFromLine,P=d.pathFromArea,M=y.isNumber(S.globals.minYArr[a])?S.globals.minYArr[a]:S.globals.minY;s||(s=S.globals.dataPoints>1?S.globals.dataPoints-1:S.globals.dataPoints);for(var O=function(e,t){return t-e/_[n.yaxisIndex]+2*(n.isReversed?e/_[n.yaxisIndex]:0)},R=c,I=S.config.chart.stacked&&!S.globals.comboCharts||S.config.chart.stacked&&S.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[a])||void 0===t?void 0:t.type)),N=0;N<s;N++){var F=void 0===r[o][N+1]||null===r[o][N+1];if(S.globals.isXNumeric){var B=S.globals.seriesX[a][N+1];void 0===S.globals.seriesX[a][N+1]&&(B=S.globals.seriesX[a][s-1]),l=(B-S.globals.minX)/this.xRatio}else l+=this.xDivision;m=I&&o>0&&S.globals.collapsedSeries.length<S.config.series.length-1?this.prevSeriesY[function(e){for(var t=e,n=0;n<S.globals.series.length;n++)if(S.globals.collapsedSeriesIndices.indexOf(e)>-1){t--;break}return t>=0?t:0}(o-1)][N+1]:this.zeroY,F?c=O(M,m):(c=O(r[o][N+1],m),"rangeArea"===i&&(R=O(k[o][N+1],m))),v.push(l),F&&"smooth"===S.config.stroke.curve?b.push(null):b.push(c),x.push(R);var z=this.lineHelpers.calculatePoints({series:r,x:l,y:c,realIndex:a,i:o,j:N,prevY:E}),Y=this._createPaths({type:i,series:r,i:o,realIndex:a,j:N,x:l,y:c,y2:R,xArrj:v,yArrj:b,y2Arrj:x,pX:u,pY:h,linePath:L,areaPath:T,linePaths:p,areaPaths:f,seriesIndex:g,isRangeStart:w});f=Y.areaPaths,p=Y.linePaths,u=Y.pX,h=Y.pY,T=Y.areaPath,L=Y.linePath,!this.appendPathFrom||"monotoneCubic"===S.config.stroke.curve&&"rangeArea"===i||(D+=C.line(l,this.zeroY),P+=C.line(l,this.zeroY)),this.handleNullDataPoints(r,z,o,N,a),this._handleMarkersAndLabels({type:i,pointsPos:z,i:o,j:N,realIndex:a,isRangeStart:w})}return{yArrj:b,xArrj:v,pathFromArea:P,areaPaths:f,pathFromLine:D,linePaths:p,linePath:L,areaPath:T}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,i=e.isRangeStart,r=e.i,s=e.j,a=e.realIndex,o=this.w,l=new W(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,s,{realIndex:a,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[r].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(n,a,s+1);null!==c&&this.elPointsMain.add(c)}var u=l.drawDataLabel({type:t,isRangeStart:i,pos:n,i:a,j:s+1});null!==u&&this.elDataLabelsWrap.add(u)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,i=e.i,r=e.realIndex,s=e.j,a=e.x,o=e.y,l=e.xArrj,c=e.yArrj,u=e.y2,h=e.y2Arrj,d=e.pX,p=e.pY,f=e.linePath,g=e.areaPath,m=e.linePaths,v=e.areaPaths,b=e.seriesIndex,x=e.isRangeStart,y=this.w,w=new A(this.ctx),k=y.config.stroke.curve,S=this.areaBottomY;if(Array.isArray(y.config.stroke.curve)&&(k=Array.isArray(b)?y.config.stroke.curve[b[i]]:y.config.stroke.curve[i]),"rangeArea"===t&&(y.globals.hasNullValues||y.config.forecastDataPoints.count>0)&&"monotoneCubic"===k&&(k="straight"),"monotoneCubic"===k){var C="rangeArea"===t?l.length===y.globals.dataPoints:s===n[i].length-2,_=l.map((function(e,t){return[l[t],c[t]]})).filter((function(e){return null!==e[1]}));if(C&&_.length>1){var E=Ne(_);if(f+=Ie(E),null===n[i][0]?g=f:g+=Ie(E),"rangeArea"===t&&x){f+=w.line(l[l.length-1],h[h.length-1]);var L=l.slice().reverse(),T=h.slice().reverse(),D=L.map((function(e,t){return[L[t],T[t]]})),P=Ne(D);g=f+=Ie(P)}else g+=w.line(_[_.length-1][0],S)+w.line(_[0][0],S)+w.move(_[0][0],_[0][1])+"z";m.push(f),v.push(g)}}else if("smooth"===k){var M=.35*(a-d);y.globals.hasNullValues?(null!==n[i][s]&&(null!==n[i][s+1]?(f=w.move(d,p)+w.curve(d+M,p,a-M,o,a+1,o),g=w.move(d+1,p)+w.curve(d+M,p,a-M,o,a+1,o)+w.line(a,S)+w.line(d,S)+"z"):(f=w.move(d,p),g=w.move(d,p)+"z")),m.push(f),v.push(g)):(f+=w.curve(d+M,p,a-M,o,a,o),g+=w.curve(d+M,p,a-M,o,a,o)),d=a,p=o,s===n[i].length-2&&(g=g+w.curve(d,p,a,o,a,S)+w.move(a,o)+"z","rangeArea"===t&&x?f=f+w.curve(d,p,a,o,a,u)+w.move(a,u)+"z":y.globals.hasNullValues||(m.push(f),v.push(g)))}else{if(null===n[i][s+1]){f+=w.move(a,o);var O=y.globals.isXNumeric?(y.globals.seriesX[r][s]-y.globals.minX)/this.xRatio:a-this.xDivision;g=g+w.line(O,S)+w.move(a,o)+"z"}null===n[i][s]&&(f+=w.move(a,o),g+=w.move(a,S)),"stepline"===k?(f=f+w.line(a,null,"H")+w.line(null,o,"V"),g=g+w.line(a,null,"H")+w.line(null,o,"V")):"straight"===k&&(f+=w.line(a,o),g+=w.line(a,o)),s===n[i].length-2&&(g=g+w.line(a,S)+w.move(a,o)+"z","rangeArea"===t&&x?f=f+w.line(a,u)+w.move(a,u)+"z":(m.push(f),v.push(g)))}return{linePaths:m,areaPaths:v,pX:d,pY:p,linePath:f,areaPath:g}}},{key:"handleNullDataPoints",value:function(e,t,n,i,r){var s=this.w;if(null===e[n][i]&&s.config.markers.showNullDataPoints||1===e[n].length){var a=this.markers.plotChartMarkers(t,r,i+1,this.strokeWidth-s.config.markers.strokeWidth/2,!0);null!==a&&this.elPointsMain.add(a)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,n,i,r){this.xoffset=t,this.yoffset=n,this.height=r,this.width=i,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,n=[],i=this.xoffset,r=this.yoffset,a=s(e)/this.height,o=s(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)n.push([i,r,i+a,r+e[t]/a]),r+=e[t]/a;else for(t=0;t<e.length;t++)n.push([i,r,i+e[t]/o,r+o]),i+=e[t]/o;return n},this.cutArea=function(t){var n;if(this.width>=this.height){var i=t/this.height,r=this.width-i;n=new e(this.xoffset+i,this.yoffset,r,this.height)}else{var s=t/this.width,a=this.height-s;n=new e(this.xoffset,this.yoffset+s,this.width,a)}return n}}function t(t,i,r,a,o){a=void 0===a?0:a,o=void 0===o?0:o;var l=n(function(e,t){var n,i=[],r=t/s(e);for(n=0;n<e.length;n++)i[n]=e[n]*r;return i}(t,i*r),[],new e(a,o,i,r),[]);return function(e){var t,n,i=[];for(t=0;t<e.length;t++)for(n=0;n<e[t].length;n++)i.push(e[t][n]);return i}(l)}function n(e,t,r,a){var o,l,c;if(0!==e.length)return o=r.shortestEdge(),function(e,t,n){var r;return 0===e.length||((r=e.slice()).push(t),i(e,n)>=i(r,n))}(t,l=e[0],o)?(t.push(l),n(e.slice(1),t,r,a)):(c=r.cutArea(s(t),a),a.push(r.getCoordinates(t)),n(e,[],c,a)),a;a.push(r.getCoordinates(t))}function i(e,t){var n=Math.min.apply(Math,e),i=Math.max.apply(Math,e),r=s(e);return Math.max(Math.pow(t,2)*i/Math.pow(r,2),Math.pow(r,2)/(Math.pow(t,2)*n))}function r(e){return e&&e.constructor===Array}function s(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t];return n}function a(e){var t,n=0;if(r(e[0]))for(t=0;t<e.length;t++)n+=a(e[t]);else n=s(e);return n}return function e(n,i,s,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,u,h=[],d=[];if(r(n[0])){for(u=0;u<n.length;u++)h[u]=a(n[u]);for(c=t(h,i,s,o,l),u=0;u<n.length;u++)d.push(e(n[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else d=t(n,i,s,o,l);return d}}();var ze,Ye,je=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Ee(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return c(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new A(this.ctx),r=new Y(this.ctx),s=i.group({class:"apexcharts-treemap"});if(n.globals.noData)return s;var a=[];return e.forEach((function(e){var t=e.map((function(e){return Math.abs(e)}));a.push(t)})),this.negRange=this.helpers.checkColorRange(),n.config.series.forEach((function(e,n){e.data.forEach((function(e){Array.isArray(t.labels[n])||(t.labels[n]=[]),t.labels[n].push(e.x)}))})),window.TreemapSquared.generate(a,n.globals.gridWidth,n.globals.gridHeight).forEach((function(a,o){var l=i.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:y.escapeString(n.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(n.config.chart.dropShadow.enabled){var c=n.config.chart.dropShadow;new k(t.ctx).dropShadow(s,c,o)}var u=i.group({class:"apexcharts-data-labels"});a.forEach((function(s,a){var c=s[0],u=s[1],h=s[2],d=s[3],p=i.drawRect(c,u,h-c,d-u,n.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?g:n.globals.stroke.colors[o]);p.attr({cx:c,cy:u,index:o,i:o,j:a,width:h-c,height:d-u});var f=t.helpers.getShadeColor(n.config.chart.type,o,a,t.negRange),g=f.color;void 0!==n.config.series[o].data[a]&&n.config.series[o].data[a].fillColor&&(g=n.config.series[o].data[a].fillColor);var m=r.fillPath({color:g,seriesNumber:o,dataPointIndex:a});p.node.classList.add("apexcharts-treemap-rect"),p.attr({fill:m}),t.helpers.addListeners(p);var v={x:c+(h-c)/2,y:u+(d-u)/2,width:0,height:0},b={x:c,y:u,width:h-c,height:d-u};if(n.config.chart.animations.enabled&&!n.globals.dataChanged){var x=1;n.globals.resized||(x=n.config.chart.animations.speed),t.animateTreemap(p,v,b,x)}if(n.globals.dataChanged){var y=1;t.dynamicAnim.enabled&&n.globals.shouldAnimate&&(y=t.dynamicAnim.speed,n.globals.previousPaths[o]&&n.globals.previousPaths[o][a]&&n.globals.previousPaths[o][a].rect&&(v=n.globals.previousPaths[o][a].rect),t.animateTreemap(p,v,b,y))}var w=t.getFontSize(s),k=n.config.dataLabels.formatter(t.labels[o][a],{value:n.globals.series[o][a],seriesIndex:o,dataPointIndex:a,w:n});"truncate"===n.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(n.config.dataLabels.style.fontSize,10),k=t.truncateLabels(k,w,c,u,h,d));var A=t.helpers.calculateDataLabels({text:k,x:(c+h)/2,y:(u+d)/2+t.strokeWidth/2+w/3,i:o,j:a,colorProps:f,fontSize:w,series:e});n.config.dataLabels.enabled&&A&&t.rotateToFitLabel(A,w,k,c,u,h,d),l.add(p),null!==A&&l.add(A)})),l.add(u),s.add(l)})),s}},{key:"getFontSize",value:function(e){var t,n,i=this.w,r=function e(t){var n,i=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)i+=e(t[n]);else for(n=0;n<t.length;n++)i+=t[n].length;return i}(this.labels)/function e(t){var n,i=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)i+=e(t[n]);else for(n=0;n<t.length;n++)i+=1;return i}(this.labels);return t=(e[2]-e[0])*(e[3]-e[1]),n=Math.pow(t,.5),Math.min(n/r,parseInt(i.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,n,i,r,s,a){var o=new A(this.ctx),l=o.getTextRects(n,t);if(l.width+this.w.config.stroke.width+5>s-i&&l.width<=a-r){var c=o.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,n,i,r,s){var a=new A(this.ctx),o=a.getTextRects(e,t).width+this.w.config.stroke.width+5>r-n&&s-i>r-n?s-i:r-n,l=a.getTextBasedOnMaxWidth({text:e,maxWidth:o,fontSize:t});return e.length!==l.length&&o/t<5?"":l}},{key:"animateTreemap",value:function(e,t,n,i){var r=new w(this.ctx);r.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:n.x,y:n.y,width:n.width,height:n.height},i,(function(){r.animationCompleted(e)}))}}]),e}(),He=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return c(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,i=this.w;if(i.globals.allSeriesCollapsed)return i.globals.labels=[],i.globals.timescaleLabels=[],[];var r=new M(this.ctx),a=(t-e)/864e5;this.determineInterval(a),i.globals.disableZoomIn=!1,i.globals.disableZoomOut=!1,a<.00011574074074074075?i.globals.disableZoomIn=!0:a>5e4&&(i.globals.disableZoomOut=!0);var o=r.getTimeUnitsfromTimestamp(e,t,this.utc),l=i.globals.gridWidth/a,c=l/24,u=c/60,h=u/60,d=Math.floor(24*a),p=Math.floor(1440*a),f=Math.floor(86400*a),g=Math.floor(a),m=Math.floor(a/30),v=Math.floor(a/365),b={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},x={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:u,secondsWidthOnXAxis:h,numberOfSeconds:f,numberOfMinutes:p,numberOfHours:d,numberOfDays:g,numberOfMonths:m,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(x);break;case"months":case"half_year":this.generateMonthScale(x);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(x);break;case"hours":this.generateHourScale(x);break;case"minutes_fives":case"minutes":this.generateMinuteScale(x);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(x)}var y=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?s(s({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?s(s({},t),{},{value:e.value}):"minute"===e.unit?s(s({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?s(s({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return y.filter((function(e){var t=1,r=Math.ceil(i.globals.gridWidth/120),s=e.value;void 0!==i.config.xaxis.tickAmount&&(r=i.config.xaxis.tickAmount),y.length>r&&(t=Math.floor(y.length/r));var a=!1,o=!1;switch(n.tickInterval){case"years":"year"===e.unit&&(a=!0);break;case"half_year":t=7,"year"===e.unit&&(a=!0);break;case"months":t=1,"year"===e.unit&&(a=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(a=!0),30===s&&(o=!0);break;case"months_days":t=10,"month"===e.unit&&(a=!0),30===s&&(o=!0);break;case"week_days":t=8,"month"===e.unit&&(a=!0);break;case"days":t=1,"month"===e.unit&&(a=!0);break;case"hours":"day"===e.unit&&(a=!0);break;case"minutes_fives":case"seconds_fives":s%5!=0&&(o=!0);break;case"seconds_tens":s%10!=0&&(o=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!o)return!0}else if((s%t==0||a)&&!o)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,i=this.formatDates(e),r=this.removeOverlappingTS(i);n.globals.timescaleLabels=r.slice(),new ue(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,n=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,n=e.currentMonth,i=e.currentYear,r=e.daysWidthOnXAxis,s=e.numberOfYears,a=t.minYear,o=0,l=new M(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var u=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(l.determineDaysOfYear(t.minYear)-u+1)*r,a=t.minYear+1,this.timeScaleArray.push({position:o,value:a,unit:c,year:a,month:y.monthMod(n+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:o,value:a,unit:c,year:i,month:y.monthMod(n+1)});for(var h=a,d=o,p=0;p<s;p++)h++,d=l.determineDaysOfYear(h-1)*r+d,this.timeScaleArray.push({position:d,value:h,unit:c,year:h,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,n=e.currentMonthDate,i=e.currentMonth,r=e.currentYear,s=e.daysWidthOnXAxis,a=e.numberOfMonths,o=i,l=0,c=new M(this.ctx),u="month",h=0;if(t.minDate>1){l=(c.determineDaysOfMonths(i+1,t.minYear)-n+1)*s,o=y.monthMod(i+1);var d=r+h,p=y.monthMod(o),f=o;0===o&&(u="year",f=d,p=1,d+=h+=1),this.timeScaleArray.push({position:l,value:f,unit:u,year:d,month:p})}else this.timeScaleArray.push({position:l,value:o,unit:u,year:r,month:y.monthMod(i)});for(var g=o+1,m=l,v=0,b=1;v<a;v++,b++){0===(g=y.monthMod(g))?(u="year",h+=1):u="month";var x=this._getYear(r,g,h);m=c.determineDaysOfMonths(g,x)*s+m;var w=0===g?x:g;this.timeScaleArray.push({position:m,value:w,unit:u,year:x,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,n=e.currentMonth,i=e.currentYear,r=e.hoursWidthOnXAxis,s=e.numberOfDays,a=new M(this.ctx),o="day",l=t.minDate+1,c=l,u=function(e,t,n){return e>a.determineDaysOfMonths(t+1,n)?(c=1,o="month",d=t+=1,t):t},h=(24-t.minHour)*r,d=l,p=u(c,n,i);0===t.minHour&&1===t.minDate?(h=0,d=y.monthMod(t.minMonth),o="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(h=0,l=t.minDate,d=l,p=u(c=l,n,i)),this.timeScaleArray.push({position:h,value:d,unit:o,year:this._getYear(i,p,0),month:y.monthMod(p),day:c});for(var f=h,g=0;g<s;g++){o="day",p=u(c+=1,p,this._getYear(i,p,0));var m=this._getYear(i,p,0);f=24*r+f;var v=1===c?y.monthMod(p):c;this.timeScaleArray.push({position:f,value:v,unit:o,year:m,month:y.monthMod(p),day:v})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,n=e.currentDate,i=e.currentMonth,r=e.currentYear,s=e.minutesWidthOnXAxis,a=e.numberOfHours,o=new M(this.ctx),l="hour",c=function(e,t){return e>o.determineDaysOfMonths(t+1,r)&&(g=1,t+=1),{month:t,date:g}},u=function(e,t){return e>o.determineDaysOfMonths(t+1,r)?t+=1:t},h=60-(t.minMinute+t.minSecond/60),d=h*s,p=t.minHour+1,f=p;60===h&&(d=0,f=p=t.minHour);var g=n;f>=24&&(f=0,g+=1,l="day");var m=c(g,i).month;m=u(g,m),this.timeScaleArray.push({position:d,value:p,unit:l,day:g,hour:f,year:r,month:y.monthMod(m)}),f++;for(var v=d,b=0;b<a;b++){l="hour",f>=24&&(f=0,l="day",m=c(g+=1,m).month,m=u(g,m));var x=this._getYear(r,m,0);v=60*s+v;var w=0===f?g:f;this.timeScaleArray.push({position:v,value:w,unit:l,hour:f,day:g,year:x,month:y.monthMod(m)}),f++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,i=e.currentMinute,r=e.currentHour,s=e.currentDate,a=e.currentMonth,o=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,u=e.numberOfMinutes,h=i+1,d=s,p=a,f=o,g=r,m=(60-n-t/1e3)*c,v=0;v<u;v++)h>=60&&(h=0,24===(g+=1)&&(g=0)),this.timeScaleArray.push({position:m,value:h,unit:"minute",hour:g,minute:h,day:d,year:this._getYear(f,p,0),month:y.monthMod(p)}),m+=l,h++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,i=e.currentMinute,r=e.currentHour,s=e.currentDate,a=e.currentMonth,o=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,u=n+1,h=i,d=s,p=a,f=o,g=r,m=(1e3-t)/1e3*l,v=0;v<c;v++)u>=60&&(u=0,++h>=60&&(h=0,24==++g&&(g=0))),this.timeScaleArray.push({position:m,value:u,unit:"second",hour:g,minute:h,second:u,day:d,year:this._getYear(f,p,0),month:y.monthMod(p)}),m+=l,u++}},{key:"createRawDateString",value:function(e,t){var n=e.year;return 0===e.month&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?n+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?n+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?n+=":"+("0"+t).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?n+=":"+("0"+t).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var t=this,n=this.w;return e.map((function(e){var i=e.value.toString(),r=new M(t.ctx),s=t.createRawDateString(e,i),a=r.getDate(r.parseDate(s));if(t.utc||(a=r.getDate(r.parseDateWithTimezone(s))),void 0===n.config.xaxis.labels.format){var o="dd MMM",l=n.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(o=l.year),"month"===e.unit&&(o=l.month),"day"===e.unit&&(o=l.day),"hour"===e.unit&&(o=l.hour),"minute"===e.unit&&(o=l.minute),"second"===e.unit&&(o=l.second),i=r.formatDate(a,o)}else i=r.formatDate(a,n.config.xaxis.labels.format);return{dateString:s,position:e.position,value:i,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,n=this,i=new A(this.ctx),r=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(r=!0,t=i.getTextRects(e[0].value).width);var s=0,a=e.map((function(a,o){if(o>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var l=r?t:i.getTextRects(e[s].value).width,c=e[s].position;return a.position>c+l+10?(s=o,a):null}return a}));return a.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),e}(),We=function(){function e(t,n){o(this,e),this.ctx=n,this.w=n.w,this.el=t}return c(e,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,n=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(n)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(n)>-1,e.isBarHorizontal=("bar"===t.chart.type||"rangeBar"===t.chart.type||"boxPlot"===t.chart.type)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),A.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?t.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),A.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.dom.elLegendForeign.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,i=n.config,r=n.globals,s={series:[],i:[]},a={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},u={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]},p={series:[],seriesRangeEnd:[],i:[]};r.series.map((function(t,f){var g=0;void 0!==e[f].type?("column"===e[f].type||"bar"===e[f].type?(r.series.length>1&&i.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(t),c.i.push(f),g++,n.globals.columnSeries=c.series):"area"===e[f].type?(a.series.push(t),a.i.push(f),g++):"line"===e[f].type?(s.series.push(t),s.i.push(f),g++):"scatter"===e[f].type?(o.series.push(t),o.i.push(f)):"bubble"===e[f].type?(l.series.push(t),l.i.push(f),g++):"candlestick"===e[f].type?(u.series.push(t),u.i.push(f),g++):"boxPlot"===e[f].type?(h.series.push(t),h.i.push(f),g++):"rangeBar"===e[f].type?(d.series.push(t),d.i.push(f),g++):"rangeArea"===e[f].type?(p.series.push(r.seriesRangeStart[f]),p.seriesRangeEnd.push(r.seriesRangeEnd[f]),p.i.push(f),g++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),g>1&&(r.comboCharts=!0)):(s.series.push(t),s.i.push(f))}));var f=new Be(this.ctx,t),g=new _e(this.ctx,t);this.ctx.pie=new De(this.ctx);var m=new Me(this.ctx);this.ctx.rangeBar=new Oe(this.ctx,t);var v=new Pe(this.ctx),b=[];if(r.comboCharts){if(a.series.length>0&&b.push(f.draw(a.series,"area",a.i)),c.series.length>0)if(n.config.chart.stacked){var x=new Ce(this.ctx,t);b.push(x.draw(c.series,c.i))}else this.ctx.bar=new Se(this.ctx,t),b.push(this.ctx.bar.draw(c.series,c.i));if(p.series.length>0&&b.push(f.draw(p.series,"rangeArea",p.i,p.seriesRangeEnd)),s.series.length>0&&b.push(f.draw(s.series,"line",s.i)),u.series.length>0&&b.push(g.draw(u.series,"candlestick",u.i)),h.series.length>0&&b.push(g.draw(h.series,"boxPlot",h.i)),d.series.length>0&&b.push(this.ctx.rangeBar.draw(d.series,d.i)),o.series.length>0){var y=new Be(this.ctx,t,!0);b.push(y.draw(o.series,"scatter",o.i))}if(l.series.length>0){var w=new Be(this.ctx,t,!0);b.push(w.draw(l.series,"bubble",l.i))}}else switch(i.chart.type){case"line":b=f.draw(r.series,"line");break;case"area":b=f.draw(r.series,"area");break;case"bar":i.chart.stacked?b=new Ce(this.ctx,t).draw(r.series):(this.ctx.bar=new Se(this.ctx,t),b=this.ctx.bar.draw(r.series));break;case"candlestick":b=new _e(this.ctx,t).draw(r.series,"candlestick");break;case"boxPlot":b=new _e(this.ctx,t).draw(r.series,i.chart.type);break;case"rangeBar":b=this.ctx.rangeBar.draw(r.series);break;case"rangeArea":b=f.draw(r.seriesRangeStart,"rangeArea",void 0,r.seriesRangeEnd);break;case"heatmap":b=new Le(this.ctx,t).draw(r.series);break;case"treemap":b=new je(this.ctx,t).draw(r.series);break;case"pie":case"donut":case"polarArea":b=this.ctx.pie.draw(r.series);break;case"radialBar":b=m.draw(r.series);break;case"radar":b=v.draw(r.series);break;default:b=f.draw(r.series)}return b}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var n=y.getDimensions(this.el),i=t.chart.width.toString().split(/[0-9]+/g).pop();"%"===i?y.isNumber(n[0])&&(0===n[0].width&&(n=y.getDimensions(this.el.parentNode)),e.svgWidth=n[0]*parseInt(t.chart.width,10)/100):"px"!==i&&""!==i||(e.svgWidth=parseInt(t.chart.width,10));var r=t.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===r){var s=y.getDimensions(this.el.parentNode);e.svgHeight=s[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),A.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==r){var a=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+a+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n={transform:"translate("+e.translateX+", "+t+")"};A.setAttrs(e.dom.elGraphical.node,n)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,i=e.config.chart.sparkline.enabled?1:15;i+=e.config.grid.padding.bottom,"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||!e.config.legend.show||e.config.legend.floating||(n=new de(this.ctx).legendHelpers.getLegendBBox().clwh+10);var r=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),s=2.05*e.globals.radialSize;if(r&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var a=y.getBoundingClientRect(r);s=a.bottom;var o=a.bottom-a.top;s=Math.max(2.05*e.globals.radialSize,o)}var l=s+t.translateY+n+i;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=l+"px",A.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new K(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(e){return[]}))},n=new B,i=this.w.globals;n.initGlobalVars(i),i.seriesXvalues=t(),i.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new ne(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new ne(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new He(this.ctx);var n=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}e=new S(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var n=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];n.forEach((function(t){var n=ApexCharts.getChartByID(t);n.w.globals.brushSource=e.ctx,"function"!=typeof n.w.config.chart.events.zoomed&&(n.w.config.chart.events.zoomed=function(){e.updateSourceChart(n)}),"function"!=typeof n.w.config.chart.events.scrolled&&(n.w.config.chart.events.scrolled=function(){e.updateSourceChart(n)})})),t.config.chart.events.selection=function(e,t){n.forEach((function(e){ApexCharts.getChartByID(e).ctx.updateHelpers._updateOptions({xaxis:{min:t.xaxis.min,max:t.xaxis.max}},!1,!1,!1,!1)}))}}}}]),e}(),Xe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(o){var l=[t.ctx];r&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach((function(r,c){var u=r.w;if(u.globals.shouldAnimate=i,n||(u.globals.resized=!0,u.globals.dataChanged=!0,i&&r.series.getPreviousPaths()),e&&"object"===a(e)&&(r.config=new F(e),e=S.extendArrayProps(r.config,e,u),r.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,u.config=y.extend(u.config,e),s&&(u.globals.lastXAxis=e.xaxis?y.clone(e.xaxis):[],u.globals.lastYAxis=e.yaxis?y.clone(e.yaxis):[],u.globals.initialConfig=y.extend({},u.config),u.globals.initialSeries=y.clone(u.config.series),e.series))){for(var h=0;h<u.globals.collapsedSeriesIndices.length;h++){var d=u.config.series[u.globals.collapsedSeriesIndices[h]];u.globals.collapsedSeries[h].data=u.globals.axisCharts?d.data.slice():d}for(var p=0;p<u.globals.ancillaryCollapsedSeriesIndices.length;p++){var f=u.config.series[u.globals.ancillaryCollapsedSeriesIndices[p]];u.globals.ancillaryCollapsedSeries[p].data=u.globals.axisCharts?f.data.slice():f}r.series.emptyCollapsedSeries(u.config.series)}return r.update(e).then((function(){c===l.length-1&&o(r)}))}))}))}},{key:"_updateSeries",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(r){var s,a=n.w;return a.globals.shouldAnimate=t,a.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),a.globals.axisCharts?(0===(s=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(s=[{data:[]}]),a.config.series=s):a.config.series=e.slice(),i&&(a.globals.initialConfig.series=y.clone(a.config.series),a.globals.initialSeries=y.clone(a.config.series)),n.ctx.update().then((function(){r(n.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var n=this.w,i=n.config.series[t];return s(s({},n.config.series[t]),{},{name:e.name?e.name:null==i?void 0:i.name,color:e.color?e.color:null==i?void 0:i.color,type:e.type?e.type:null==i?void 0:i.type,group:e.group?e.group:null==i?void 0:i.group,data:e.data?e.data:null==i?void 0:i.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,i=null,r=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?i=n.globals.dom.Paper.select("".concat(r," path[j='").concat(t,"'], ").concat(r," circle[j='").concat(t,"'], ").concat(r," rect[j='").concat(t,"']")).members[0]:void 0===t&&(i=n.globals.dom.Paper.select("".concat(r," path[j='").concat(e,"']")).members[0],"pie"!==n.config.chart.type&&"polarArea"!==n.config.chart.type&&"donut"!==n.config.chart.type||this.ctx.pie.pieClicked(e)),i?(new A(this.ctx).pathMouseDown(i,null),i.node?i.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(n){void 0!==e.xaxis[n]&&(t.config.xaxis[n]=e.xaxis[n],t.globals.lastXAxis[n]=e.xaxis[n])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var n=new N(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,n=this.w,i=n.globals.lastXAxis,r=n.globals.lastYAxis;e&&e.xaxis&&(i=e.xaxis),e&&e.yaxis&&(r=e.yaxis),n.config.xaxis.min=i.min,n.config.xaxis.max=i.max;n.config.yaxis.map((function(e,i){n.globals.zoomed||void 0!==r[i]?function(e){void 0!==r[e]&&(n.config.yaxis[e].min=r[e].min,n.config.yaxis[e].max=r[e].max)}(i):void 0!==t.ctx.opts.yaxis[i]&&(e.min=t.ctx.opts.yaxis[i].min,e.max=t.ctx.opts.yaxis[i].max)}))}}]),e}();ze="undefined"!=typeof window?window:void 0,Ye=function(e,t){var n=(void 0!==this?this:e).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.dev",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(e){return"Svgjs"+h(e)+n.did++},n.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},n.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var i=e.length-1;i>=0;i--)if(e[i])for(var r in t)e[i].prototype[r]=t[r];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},n.adopt=function(t){return t?t.instance?t.instance:((i="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[h(t.nodeName)]?new(n[h(t.nodeName)]):new n.Element(t)).type=t.nodeName,i.node=t,t.instance=i,i instanceof n.Doc&&i.namespace().defs(),i.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),i):null;var i},n.prepare=function(){var e=t.getElementsByTagName("body")[0],i=(e?new n.Doc(e):n.adopt(t.documentElement).nested()).size(2,0);n.parser={body:e||t.documentElement,draw:i.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:i.polyline().node,path:i.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},t.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){for(var n=e.length,i=[],r=0;r<n;r++)i.push(t(e[r]));return i},filter:function(e,t){for(var n=e.length,i=[],r=0;r<n;r++)t(e[r])&&i.push(e[r]);return i},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},n.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},n.Color=function(e){var t,i;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?n.regex.isRgb.test(e)?(t=n.regex.rgb.exec(e.replace(n.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):n.regex.isHex.test(e)&&(t=n.regex.hex.exec(4==(i=e).length?["#",i.substring(1,2),i.substring(1,2),i.substring(2,3),i.substring(2,3),i.substring(3,4),i.substring(3,4)].join(""):i),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===a(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+d(this.r)+d(this.g)+d(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new n.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var i={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]}},r="mlhvqtcsaz".split(""),s=0,o=r.length;s<o;++s)i[r[s]]=function(e){return function(t,n,r){if("H"==e)t[0]=t[0]+n.x;else if("V"==e)t[0]=t[0]+n.y;else if("A"==e)t[5]=t[5]+n.x,t[6]=t[6]+n.y;else for(var s=0,a=t.length;s<a;++s)t[s]=t[s]+(s%2?n.y:n.x);if(i&&"function"==typeof i[e])return i[e](t,n,r)}}(r[s].toUpperCase());n.PathArray=function(e,t){n.Array.call(this,e,t||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t][0],null!=e[t][1]&&(i+=e[t][1],null!=e[t][2]&&(i+=" ",i+=e[t][2],null!=e[t][3]&&(i+=" ",i+=e[t][3],i+=" ",i+=e[t][4],null!=e[t][5]&&(i+=" ",i+=e[t][5],i+=" ",i+=e[t][6],null!=e[t][7]&&(i+=" ",i+=e[t][7])))));return i+" "}(this.value)},move:function(e,t){var n=this.bbox();return n.x,n.y,this},at:function(e){if(!this.destination)return this;for(var t=this.value,i=this.destination.value,r=[],s=new n.PathArray,a=0,o=t.length;a<o;a++){r[a]=[t[a][0]];for(var l=1,c=t[a].length;l<c;l++)r[a][l]=t[a][l]+(i[a][l]-t[a][l])*e;"A"===r[a][0]&&(r[a][4]=+(0!=r[a][4]),r[a][5]=+(0!=r[a][5]))}return s.value=r,s},parse:function(e){if(e instanceof n.PathArray)return e.valueOf();var t,r={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(n.regex.numbersWithDots,c).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):e.reduce((function(e,t){return[].concat.call(e,t)}),[]);var s=[],a=new n.Point,o=new n.Point,l=0,u=e.length;do{n.regex.isPathLetter.test(e[l])?(t=e[l],++l):"M"==t?t="L":"m"==t&&(t="l"),s.push(i[t].call(null,e.slice(l,l+=r[t.toUpperCase()]).map(parseFloat),a,o))}while(u>l);return s},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var i=p(this,e,t);return this.width(new n.Number(i.width)).height(new n.Number(i.height))},clone:function(e){this.writeDataToDom();var t=m(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},parent:function(t){var i=this;if(!i.node.parentNode)return null;if(i=n.adopt(i.node.parentNode),!t)return i;for(;i&&i.node instanceof e.SVGElement;){if("string"==typeof t?i.matches(t):i instanceof t)return i;if(!i.node.parentNode||"#document"==i.node.parentNode.nodeName)return null;i=n.adopt(i.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(e){var t=[],n=this;do{if(!(n=n.parent(e))||!n.node)break;t.push(n)}while(n.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var i=t.createElement("svg");if(!(e&&this instanceof n.Parent))return i.appendChild(e=t.createElement("svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),i.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");i.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var r=0,s=i.firstChild.childNodes.length;r<s;r++)this.node.appendChild(i.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(e){return this.dom=e,this},is:function(e){return function(e,t){return e instanceof t}(this,e)}}}),n.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,i){return new n.MorphObj(t,i).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,i){"object"===a(e)&&(t=e.ease,i=e.delay,e=e.duration);var r=new n.Situation({duration:e||1e3,delay:i||0,ease:n.easing[t||"-"]||t});return this.queue(r),this},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var i in t.animations){e=this.target()[i](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[i])||(t.animations[i]=[t.animations[i]]);for(var r=e.length;r--;)t.animations[i][r]instanceof n.Number&&(e[r]=new n.Number(e[r])),t.animations[i][r]=e[r].morph(t.animations[i][r])}for(var i in t.attrs)t.attrs[i]=new n.MorphObj(this.target().attr(i),t.attrs[i]);for(var i in t.styles)t.styles[i]=new n.MorphObj(this.target().style(i),t.styles[i]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var n=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!n&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function n(i){i.detail.situation==t&&(e.call(this,t),this.off("finished.fx",n))})),this._callStart()},during:function(e){var t=this.last(),i=function(i){i.detail.situation==t&&e.call(this,i.detail.pos,n.morph(i.detail.pos),i.detail.eased,t)};return this.target().off("during.fx",i).on("during.fx",i),this.after((function(){this.off("during.fx",i)})),this._callStart()},afterAll:function(e){var t=function t(n){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,n){return this.last()[n||"animations"][e]=t,this._callStart()},step:function(e){var t,n,i;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),n=Math.floor(t),!0===this.situation.loops||n<this.situation.loops?(this.pos=t-n,i=this.situation.loop,this.situation.loop=n):(this.absPos=this.situation.loops,this.pos=1,i=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-i)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var r=this.situation.ease(this.pos);for(var s in this.situation.once)s>this.lastPos&&s<=r&&(this.situation.once[s].call(this.target(),this.pos,r),delete this.situation.once[s]);return this.active&&this.target().fire("during",{pos:this.pos,eased:r,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=r,this):this},eachAt:function(){var e,t=this,i=this.target(),r=this.situation;for(var s in r.animations)e=[].concat(r.animations[s]).map((function(e){return"string"!=typeof e&&e.at?e.at(r.ease(t.pos),t.pos):e})),i[s].apply(i,e);for(var s in r.attrs)e=[s].concat(r.attrs[s]).map((function(e){return"string"!=typeof e&&e.at?e.at(r.ease(t.pos),t.pos):e})),i.attr.apply(i,e);for(var s in r.styles)e=[s].concat(r.styles[s]).map((function(e){return"string"!=typeof e&&e.at?e.at(r.ease(t.pos),t.pos):e})),i.style.apply(i,e);if(r.transforms.length){e=r.initialTransformation,s=0;for(var a=r.transforms.length;s<a;s++){var o=r.transforms[s];o instanceof n.Matrix?e=o.relative?e.multiply((new n.Matrix).morph(o).at(r.ease(this.pos))):e.morph(o).at(r.ease(this.pos)):(o.relative||o.undo(e.extract()),e=e.multiply(o.at(r.ease(this.pos))))}i.matrix(e)}return this},once:function(e,t,n){var i=this.last();return n||(e=i.ease(e)),i.once[e]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(e,t,i){return(this.fx||(this.fx=new n.FX(this))).animate(e,t,i)},delay:function(e){return(this.fx||(this.fx=new n.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),n.MorphObj=n.invent({create:function(e,t){return n.Color.isColor(t)?new n.Color(e).morph(t):n.regex.delimiter.test(e)?n.regex.pathLetters.test(e)?new n.PathArray(e).morph(t):new n.Array(e).morph(t):n.regex.numberAndUnit.test(t)?new n.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(e,t,n){if("object"===a(e))for(var i in e)this.attr(i,e[i]);else this.add(e,t,"attrs");return this},plot:function(e,t,n,i){return 4==arguments.length?this.plot([e,t,n,i]):this.add("plot",new(this.target().morphArray)(e))}}),n.Box=n.invent({create:function(e,t,i,r){if(!("object"!==a(e)||e instanceof n.Element))return n.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);var s;4==arguments.length&&(this.x=e,this.y=t,this.width=i,this.height=r),null==(s=this).x&&(s.x=0,s.y=0,s.width=0,s.height=0),s.w=s.width,s.h=s.height,s.x2=s.x+s.width,s.y2=s.y+s.height,s.cx=s.x+s.width/2,s.cy=s.y+s.height/2}}),n.BBox=n.invent({create:function(e){if(n.Box.apply(this,[].slice.call(arguments)),e instanceof n.Element){var i;try{if(!t.documentElement.contains){for(var r=e.node;r.parentNode;)r=r.parentNode;if(r!=t)throw new Error("Element not in the dom")}i=e.node.getBBox()}catch(t){if(e instanceof n.Shape){n.parser.draw||n.prepare();var s=e.clone(n.parser.draw.instance).show();s&&s.node&&"function"==typeof s.node.getBBox&&(i=s.node.getBBox()),s&&"function"==typeof s.remove&&s.remove()}else i={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}n.Box.call(this,i)}},inherit:n.Box,parent:n.Element,construct:{bbox:function(){return new n.BBox(this)}}}),n.BBox.prototype.constructor=n.BBox,n.Matrix=n.invent({create:function(e){var t=g([1,0,0,1,0,0]);e=null===e?t:e instanceof n.Element?e.matrixify():"string"==typeof e?g(e.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?g([].slice.call(arguments)):Array.isArray(e)?g(e):e&&"object"===a(e)?e:t;for(var i=b.length-1;i>=0;--i)this[b[i]]=null!=e[b[i]]?e[b[i]]:t[b[i]]},extend:{extract:function(){var e=f(this,0,1);f(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(e){return this.destination=new n.Matrix(e),this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=b.length-1;t>=0;t--)e[b[t]]=this[b[t]];return e},toString:function(){return"matrix("+v(this.a)+","+v(this.b)+","+v(this.c)+","+v(this.d)+","+v(this.e)+","+v(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,t){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===a(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,t,i){if(null==e){for(e={},i=(t=this.node.attributes).length-1;i>=0;i--)e[t[i].nodeName]=n.regex.isNumber.test(t[i].nodeValue)?parseFloat(t[i].nodeValue):t[i].nodeValue;return e}if("object"===a(e))for(var r in e)this.attr(r,e[r]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof n.Image&&(t=this.doc().defs().pattern(0,0,(function(){this.add(t)})))),"number"==typeof t?t=new n.Number(t):n.Color.isColor(t)?t=new n.Color(t):Array.isArray(t)&&(t=new n.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof i?this.node.setAttributeNS(i,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),n.extend(n.Element,{transform:function(e,t){var i;return"object"!==a(e)?(i=new n.Matrix(this).extract(),"string"==typeof e?i[e]:i):(i=new n.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(i=t?i.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",i))}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map((function(e){return parseFloat(e)}))]})).reduce((function(e,t){return"matrix"==t[0]?e.multiply(g(t[1])):e[t[0]].apply(e,t[1])}),new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),n=e.screenCTM().inverse();return this.addTo(e).untransform().transform(n.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,i=this.arguments.length;n<i;++n)this[this.arguments[n]]=e[n];else if(e&&"object"===a(e))for(n=0,i=this.arguments.length;n<i;++n)this[this.arguments[n]]=e[this.arguments[n]];this.inversed=!1,!0===t&&(this.inversed=!0)}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.extend(n.Element,{style:function(e,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===a(e))for(var i in e)this.style(i,e[i]);else{if(!n.regex.isCss.test(e))return this.node.style[u(e)];for(e=e.split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/)}));t=e.pop();)this.style(t[0],t[1])}else this.node.style[u(e)]=null===t||n.regex.isBlank.test(t)?"":t;return this}}),n.Parent=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),(function(e){return n.adopt(e)}))},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var i=this.children(),r=0,s=i.length;r<s;r++)i[r]instanceof n.Element&&e.apply(i[r],[r,i]),t&&i[r]instanceof n.Container&&i[r].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),n.extend(n.Parent,{ungroup:function(e,t){return 0===t||this instanceof n.Defs||this.node==n.parser.draw||(e=e||(this instanceof n.Doc?this:this.parent(n.Parent)),t=t||1/0,this.each((function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(e,t-1):this.toParent(e)})),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),n.Container=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Parent}),n.ViewBox=n.invent({parent:n.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(e){n.Element.prototype[e]=function(t){return n.on(this.node,e,t),this}})),n.listeners=[],n.handlerMap=[],n.listenerId=0,n.on=function(e,t,i,r,s){var a=i.bind(r||e.instance||e),o=(n.handlerMap.indexOf(e)+1||n.handlerMap.push(e))-1,l=t.split(".")[0],c=t.split(".")[1]||"*";n.listeners[o]=n.listeners[o]||{},n.listeners[o][l]=n.listeners[o][l]||{},n.listeners[o][l][c]=n.listeners[o][l][c]||{},i._svgjsListenerId||(i._svgjsListenerId=++n.listenerId),n.listeners[o][l][c][i._svgjsListenerId]=a,e.addEventListener(l,a,s||{passive:!0})},n.off=function(e,t,i){var r=n.handlerMap.indexOf(e),s=t&&t.split(".")[0],a=t&&t.split(".")[1],o="";if(-1!=r)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;n.listeners[r][s]&&n.listeners[r][s][a||"*"]&&(e.removeEventListener(s,n.listeners[r][s][a||"*"][i],!1),delete n.listeners[r][s][a||"*"][i])}else if(a&&s){if(n.listeners[r][s]&&n.listeners[r][s][a]){for(var l in n.listeners[r][s][a])n.off(e,[s,a].join("."),l);delete n.listeners[r][s][a]}}else if(a)for(var c in n.listeners[r])for(var o in n.listeners[r][c])a===o&&n.off(e,[c,a].join("."));else if(s){if(n.listeners[r][s]){for(var o in n.listeners[r][s])n.off(e,[s,o].join("."));delete n.listeners[r][s]}}else{for(var c in n.listeners[r])n.off(e,c);delete n.listeners[r],delete n.handlerMap[r]}},n.extend(n.Element,{on:function(e,t,i,r){return n.on(this.node,e,t,i,r),this},off:function(e,t){return n.off(this.node,e,t),this},fire:function(t,i){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new n.CustomEvent(t,{detail:i,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),n.Defs=n.invent({create:"defs",inherit:n.Container}),n.G=n.invent({create:"g",inherit:n.Container,extend:{x:function(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(e){e&&("svg"==(e="string"==typeof e?t.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,n.create("svg")),e.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:n.Container,extend:{namespace:function(){return this.attr({xmlns:n.ns,version:"1.1"}).attr("xmlns:xlink",n.xlink,n.xmlns).attr("xmlns:svgjs",n.svgjs,n.xmlns)},defs:function(){var e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(e):this._defs=new n.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,n.parser.draw&&!n.parser.draw.parentNode&&this.node.appendChild(n.parser.draw),this},clone:function(e){this.writeDataToDom();var t=this.node,n=m(t.cloneNode(!0));return e?(e.node||e).appendChild(n.node):t.parentNode.insertBefore(n.node,t.nextSibling),n}}}),n.extend(n.Element,{}),n.Gradient=n.invent({create:function(e){this.constructor.call(this,n.create(e+"Gradient")),this.type=e},inherit:n.Container,extend:{at:function(e,t,i){return this.put(new n.Stop).update(e,t,i)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,i){return"transform"==e&&(e="gradientTransform"),n.Container.prototype.attr.call(this,e,t,i)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),n.extend(n.Gradient,n.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(e),fy:new n.Number(t)}):this.attr({x1:new n.Number(e),y1:new n.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(e),cy:new n.Number(t)}):this.attr({x2:new n.Number(e),y2:new n.Number(t)})}}),n.extend(n.Defs,{gradient:function(e,t){return this.put(new n.Gradient(e)).update(t)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(e){return("number"==typeof e||e instanceof n.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new n.Number(e.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,i){return"transform"==e&&(e="patternTransform"),n.Container.prototype.attr.call(this,e,t,i)}},construct:{pattern:function(e,t,n){return this.defs().pattern(e,t,n)}}}),n.extend(n.Defs,{pattern:function(e,t,i){return this.put(new n.Pattern).update(i).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element}),n.Symbol=n.invent({create:"symbol",inherit:n.Container,construct:{symbol:function(){return this.put(new n.Symbol)}}}),n.Use=n.invent({create:"use",inherit:n.Shape,extend:{element:function(e,t){return this.attr("href",(t||"")+"#"+e,n.xlink)}},construct:{use:function(e,t){return this.put(new n.Use).element(e,t)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(e,t){return this.put(new n.Rect).size(e,t)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(e){return this.put(new n.Circle).rx(new n.Number(e).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(e,t){return this.put(new n.Ellipse).size(e,t).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),n.extend(n.Circle,n.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new n.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new n.Number(e).divide(2))},size:function(e,t){var i=p(this,e,t);return this.rx(new n.Number(i.width).divide(2)).ry(new n.Number(i.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(e,t,i,r){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:i,y2:r}:new n.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var n=p(this,e,t);return this.attr(this.array().size(n.width,n.height).toLine())}},construct:{line:function(e,t,i,r){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=e?[e,t,i,r]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(e){return this.put(new n.Polyline).plot(e||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(e){return this.put(new n.Polygon).plot(e||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new n.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var n=p(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new n.PathArray(e))},clear:function(){return delete this._array,this}},construct:{path:function(e){return this.put(new n.Path).plot(e||new n.PathArray)}}}),n.Image=n.invent({create:"image",inherit:n.Shape,extend:{load:function(t){if(!t)return this;var i=this,r=new e.Image;return n.on(r,"load",(function(){n.off(r);var e=i.parent(n.Pattern);null!==e&&(0==i.width()&&0==i.height()&&i.size(r.width,r.height),e&&0==e.width()&&0==e.height()&&e.size(i.width(),i.height()),"function"==typeof i._loaded&&i._loaded.call(i,{width:r.width,height:r.height,ratio:r.width/r.height,url:t}))})),n.on(r,"error",(function(e){n.off(r),"function"==typeof i._error&&i._error.call(i,e)})),this.attr("href",r.src=this.src=t,n.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,i){return this.put(new n.Image).load(e).size(t||0,i||t||0)}}}),n.Text=n.invent({create:function(){this.constructor.call(this,n.create("text")),this.dom.leading=new n.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",n.defaults.attrs["font-family"])},inherit:n.Shape,extend:{x:function(e){return null==e?this.attr("x"):this.attr("x",e)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,i=0,r=t.length;i<r;++i)0!=i&&3!=t[i].nodeType&&1==n.adopt(t[i]).dom.newLined&&(e+="\n"),e+=t[i].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{i=0;for(var s=(e=e.split("\n")).length;i<s;i++)this.tspan(e[i]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new n.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=n.utils.map(n.utils.filterSVGElements(e.childNodes),(function(e){return n.adopt(e)}));return new n.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,i=0,r=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?i+=r:(this.attr("dy",r+i),i=0))})),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new n.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new n.Text).text(e)},plain:function(e){return this.put(new n.Text).plain(e)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(n.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,i=new n.Tspan;return!1===this._build&&this.clear(),t.appendChild(i.node),i.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,array:function(){var e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),n=null;return t&&(n=t.plot(e)),null==e?n:this},track:function(){var e=this.textPath();if(e)return e.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"==t?e:e+"-"+t}};function c(e,t,i,r){return i+r.replace(n.regex.dots," .")}function u(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function p(e,t,n){if(null==t||null==n){var i=e.bbox();null==t?t=i.width/i.height*n:null==n&&(n=i.height/i.width*t)}return{width:t,height:n}}function f(e,t,n){return{x:t*e.a+n*e.c+0,y:t*e.b+n*e.d+0}}function g(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function m(t){for(var i=t.childNodes.length-1;i>=0;i--)t.childNodes[i]instanceof e.SVGElement&&m(t.childNodes[i]);return n.adopt(t).id(n.eid(t.nodeName))}function v(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||n.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var i=l[e].length-1;i>=0;i--)null!=t[l[e][i]]&&this.attr(l.prefix(e,l[e][i]),t[l[e][i]]);return this},n.extend(n.Element,n.FX,t)})),n.extend(n.Element,n.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.Set=n.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,n=e.length;t<n;t++)this.members.push(e[t]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,n=this.members.length;t<n;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){n.Set.prototype[e]=function(){for(var t=0,i=this.members.length;t<i;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new n.FX.Set(this)):this}})),e=[],n.FX.prototype)"function"==typeof n.FX.prototype[t]&&"function"!=typeof n.FX.Set.prototype[t]&&e.push(t);e.forEach((function(e){n.FX.Set.prototype[e]=function(){for(var t=0,n=this.set.members.length;t<n;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}}))},n.extend(n.Element,{}),n.extend(n.Element,{remember:function(e,t){if("object"===a(arguments[0]))for(var n in e)this.remember(n,e[n]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var i=t.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(i)},n.select=function(e,i){return new n.Set(n.utils.map((i||t).querySelectorAll(e),(function(e){return n.adopt(e)})))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var b="abcdef".split("");if("function"!=typeof e.CustomEvent){var x=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=t.createEvent("CustomEvent");return i.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),i};x.prototype=e.Event.prototype,n.CustomEvent=x}else n.CustomEvent=e.CustomEvent;return n},void 0!==(i=function(){return Ye(ze,ze.document)}.call(t,n,t,e))&&(e.exports=i),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,n){return this.put(new SVG.BlendEffect(e,t,n))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,n){return this.put(new SVG.CompositeEffect(e,t,n))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,n){return this.put(new SVG.DiffuseLightingEffect(e,t,n))},displacementMap:function(e,t,n,i,r){return this.put(new SVG.DisplacementMapEffect(e,t,n,i,r))},specularLighting:function(e,t,n,i){return this.put(new SVG.SpecularLightingEffect(e,t,n,i))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,n,i,r){return this.put(new SVG.TurbulenceEffect(e,t,n,i,r))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,n){return this.parent()&&this.parent().diffuseLighting(e,t,n).in(this)},displacementMap:function(e,t,n,i){return this.parent()&&this.parent().displacementMap(this,e,t,n,i)},specularLighting:function(e,t,n,i){return this.parent()&&this.parent().specularLighting(e,t,n,i).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,n,i,r){return this.parent()&&this.parent().turbulence(e,t,n,i,r).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,n){this.attr({in:e,in2:t,mode:n||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=r(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=r(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,n){this.attr({in:e,in2:t,operator:n})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,n,i,r){this.attr({in:e,in2:t,scale:n,xChannelSelector:i,yChannelSelector:r})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",function(e){if(!Array.isArray(e))return e;for(var t=0,n=e.length,i=[];t<n;t++)i.push(e[t]);return i.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,n,i,r){this.attr({numOctaves:t,seed:n,stitchTiles:i,baseFrequency:e,type:r})}},n={merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each((function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))}))}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var n=0;n<e.length;n++)e[n]instanceof SVG.MergeNode?this.put(e[n]):this.put(new SVG.MergeNode(e[n]))}},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(e){this[e]=new(SVG["Func"+e.toUpperCase()])("identity"),this.rgb.add(this[e]),this.node.appendChild(this[e].node)}.bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(e,t,n){this.attr({surfaceScale:e,diffuseConstant:t,kernelUnitLength:n})},specularLighting:function(e,t,n,i){this.attr({surfaceScale:e,diffuseConstant:t,specularExponent:n,kernelUnitLength:i})}},i={distantLight:function(e,t){this.attr({azimuth:e,elevation:t})},pointLight:function(e,t,n){this.attr({x:e,y:t,z:n})},spotLight:function(e,t,n,i,r,s){this.attr({x:e,y:t,z:n,pointsAtX:i,pointsAtY:r,pointsAtZ:s})},mergeNode:function(e){this.attr("in",e)}};function r(e){return Array.isArray(e)&&(e=new SVG.Array(e)),e.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function s(){var e=function(){};for(var t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var n in arguments[t])e(arguments[t][n],n,arguments[t])}["r","g","b","a"].forEach((function(e){i["Func"+e.toUpperCase()]=function(e){switch(this.attr("type",e),e){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}})),s(t,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),s(n,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),s(i,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(e){return e instanceof SVG.MergeNode?this.add(e,0):this.add(new SVG.MergeNode(e),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",e)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function e(e,r,s,a,o,l,c){for(var u=e.slice(r,s||c),h=a.slice(o,l||c),d=0,p={pos:[0,0],start:[0,0]},f={pos:[0,0],start:[0,0]};u[d]=t.call(p,u[d]),h[d]=t.call(f,h[d]),u[d][0]!=h[d][0]||"M"==u[d][0]||"A"==u[d][0]&&(u[d][4]!=h[d][4]||u[d][5]!=h[d][5])?(Array.prototype.splice.apply(u,[d,1].concat(i.call(p,u[d]))),Array.prototype.splice.apply(h,[d,1].concat(i.call(f,h[d])))):(u[d]=n.call(p,u[d]),h[d]=n.call(f,h[d])),++d!=u.length||d!=h.length;)d==u.length&&u.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]),d==h.length&&h.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]);return{start:u,dest:h}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function n(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function i(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":t=function(e,t){var n,i,r,s,a,o,l,c,u,h,d,p,f,g,m,v,b,x,y,w,k,A,S,C,_,E,L=Math.abs(t[1]),T=Math.abs(t[2]),D=t[3]%360,P=t[4],M=t[5],O=t[6],R=t[7],I=new SVG.Point(e),N=new SVG.Point(O,R),F=[];if(0===L||0===T||I.x===N.x&&I.y===N.y)return[["C",I.x,I.y,N.x,N.y,N.x,N.y]];for((i=(n=new SVG.Point((I.x-N.x)/2,(I.y-N.y)/2).transform((new SVG.Matrix).rotate(D))).x*n.x/(L*L)+n.y*n.y/(T*T))>1&&(L*=i=Math.sqrt(i),T*=i),r=(new SVG.Matrix).rotate(D).scale(1/L,1/T).rotate(-D),I=I.transform(r),o=(s=[(N=N.transform(r)).x-I.x,N.y-I.y])[0]*s[0]+s[1]*s[1],a=Math.sqrt(o),s[0]/=a,s[1]/=a,l=o<4?Math.sqrt(1-o/4):0,P===M&&(l*=-1),c=new SVG.Point((N.x+I.x)/2+l*-s[1],(N.y+I.y)/2+l*s[0]),u=new SVG.Point(I.x-c.x,I.y-c.y),h=new SVG.Point(N.x-c.x,N.y-c.y),d=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(d*=-1),p=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(p*=-1),M&&d>p&&(p+=2*Math.PI),!M&&d<p&&(p-=2*Math.PI),v=[],b=d,f=(p-d)/(g=Math.ceil(2*Math.abs(d-p)/Math.PI)),m=4*Math.tan(f/4)/3,k=0;k<=g;k++)y=Math.cos(b),x=Math.sin(b),w=new SVG.Point(c.x+y,c.y+x),v[k]=[new SVG.Point(w.x+m*x,w.y-m*y),w,new SVG.Point(w.x-m*x,w.y+m*y)],b+=f;for(v[0][0]=v[0][1].clone(),v[v.length-1][2]=v[v.length-1][1].clone(),r=(new SVG.Matrix).rotate(D).scale(L,T).rotate(-D),k=0,A=v.length;k<A;k++)v[k][0]=v[k][0].transform(r),v[k][1]=v[k][1].transform(r),v[k][2]=v[k][2].transform(r);for(k=1,A=v.length;k<A;k++)S=(w=v[k-1][2]).x,C=w.y,_=(w=v[k][0]).x,E=w.y,O=(w=v[k][1]).x,R=w.y,F.push(["C",S,C,_,E,O,R]);return F}(this.pos,e),e=t[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function r(e,t){if(!1===t)return!1;for(var n=t,i=e.length;n<i;++n)if("M"==e[n][0])return n;return!1}SVG.extend(SVG.PathArray,{morph:function(t){for(var n=this.value,i=this.parse(t),s=0,a=0,o=!1,l=!1;!1!==s||!1!==a;){var c;o=r(n,!1!==s&&s+1),l=r(i,!1!==a&&a+1),!1===s&&(s=0==(c=new SVG.PathArray(u.start).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===a&&(a=0==(c=new SVG.PathArray(u.dest).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var u=e(n,s,o,i,a,l);n=n.slice(0,s).concat(u.start,!1===o?[]:n.slice(o)),i=i.slice(0,a).concat(u.dest,!1===l?[]:i.slice(l)),s=!1!==o&&s+u.start.length,a=!1!==l&&a+u.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=i,this}})}(),function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.init=function(e,t){var n=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",(function(e){n.start(e)})),this.el.on("touchstart.drag",(function(e){n.start(e)}))},e.prototype.transformPoint=function(e,t){var n=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=n.clientX-(t||0),this.p.y=n.clientY,this.p.matrixTransform(this.m)},e.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},e.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var n,i=this.getBBox();if(this.el instanceof SVG.Text)switch(n=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":n/=2;break;case"start":n=0}this.startPoints={point:this.transformPoint(e,n),box:i,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(e){t.drag(e)})),SVG.on(window,"touchmove.drag",(function(e){t.drag(e)})),SVG.on(window,"mouseup.drag",(function(e){t.end(e)})),SVG.on(window,"touchend.drag",(function(e){t.end(e)})),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},e.prototype.drag=function(e){var t=this.getBBox(),n=this.transformPoint(e),i=this.startPoints.box.x+n.x-this.startPoints.point.x,r=this.startPoints.box.y+n.y-this.startPoints.point.y,s=this.constraint,a=n.x-this.startPoints.point.x,o=n.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:n,m:this.m,handler:this}),this.el.event().defaultPrevented)return n;if("function"==typeof s){var l=s.call(this.el,i,r,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(i):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(r):!1!==l.y&&this.el.y(l.y)}else"object"==typeof s&&(null!=s.minX&&i<s.minX?a=(i=s.minX)-this.startPoints.box.x:null!=s.maxX&&i>s.maxX-t.width&&(a=(i=s.maxX-t.width)-this.startPoints.box.x),null!=s.minY&&r<s.minY?o=(r=s.minY)-this.startPoints.box.y:null!=s.maxY&&r>s.maxY-t.height&&(o=(r=s.maxY-t.height)-this.startPoints.box.y),null!=s.snapToGrid&&(i-=i%s.snapToGrid,r-=r%s.snapToGrid,a-=a%s.snapToGrid,o-=o%s.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:a,y:o},!0):this.el.move(i,r));return n},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,n){"function"!=typeof t&&"object"!=typeof t||(n=t,t=!0);var i=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?i.init(n||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,n){var i="string"!=typeof e?e:t[e];return n?i/2:i},this.pointCoords=function(e,t){var n=this.pointsList[e];return{x:this.pointCoord(n[0],t,"t"===e||"b"===e),y:this.pointCoord(n[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var n=this.el.bbox();this.options={};var i=this.el.selectize.defaults.points;for(var r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],void 0!==t[r]&&(this.options[r]=t[r]);var s=["points","pointsExclude"];for(var r in s){var a=this.options[s[r]];"string"==typeof a?a=a.length>0?a.split(/\s*,\s*/i):[]:"boolean"==typeof a&&"points"===s[r]&&(a=a?i:[]),this.options[s[r]]=a}this.options.points=[i,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),n=0,i=t.length;n<i;++n){var r=function(t){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var i=n.pageX||n.touches[0].pageX,r=n.pageY||n.touches[0].pageY;e.el.fire("point",{x:i,y:r,i:t,event:n})}}(n),s=this.drawPoint(t[n][0],t[n][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",r).on("mousedown",r);this.pointSelection.set.add(s)}},e.prototype.drawPoint=function(e,t){var n=this.options.pointType;switch(n){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof n)return n.call(this,e,t);throw new Error("Unknown "+n+" point type!")}},e.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},e.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},e.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each((function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])}))},e.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map((function(n,i){var r=e.pointCoords(n,t);e.rectSelection.set.get(i+1).center(r.x,r.y)})),this.options.rotationPoint){var n=this.rectSelection.set.length();this.rectSelection.set.get(n-1).center(t.width/2,20)}},e.prototype.selectRect=function(e){var t=this,n=this.el.bbox();function i(e){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var i=n.pageX||n.touches[0].pageX,r=n.pageY||n.touches[0].pageY;t.el.fire(e,{x:i,y:r,event:n})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(n.width,n.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(e,r){var s=t.pointCoords(e,n),a=t.drawPoint(s.x,s.y).attr("class",t.options.classPoints+"_"+e).on("mousedown",i(e)).on("touchstart",i(e));t.rectSelection.set.add(a)})),this.rectSelection.set.each((function(){this.addClass(t.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var r=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var n=e.pageX||e.touches[0].pageX,i=e.pageY||e.touches[0].pageY;t.el.fire("rot",{x:n,y:i,event:e})},s=this.drawPoint(n.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",r).on("mousedown",r);this.rectSelection.set.add(s)}},e.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},e.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){e.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(e){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){e.handler()}))},e.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each((function(){this.remove()})),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each((function(){this.remove()})),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,n){return"object"==typeof t&&(n=t,t=!0),(this.remember("_selectHandler")||new e(this)).init(void 0===t||t,n||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function e(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}e.prototype.transformPoint=function(e,t,n){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(n||this.m)},e.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},e.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var n in this.options={},this.el.resize.defaults)this.options[n]=this.el.resize.defaults[n],void 0!==e[n]&&(this.options[n]=e[n]);this.el.on("lt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rb.resize",(function(e){t.resize(e||window.event)})),this.el.on("lb.resize",(function(e){t.resize(e||window.event)})),this.el.on("t.resize",(function(e){t.resize(e||window.event)})),this.el.on("r.resize",(function(e){t.resize(e||window.event)})),this.el.on("b.resize",(function(e){t.resize(e||window.event)})),this.el.on("l.resize",(function(e){t.resize(e||window.event)})),this.el.on("rot.resize",(function(e){t.resize(e||window.event)})),this.el.on("point.resize",(function(e){t.resize(e||window.event)})),this.update()}},e.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},e.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var n=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(n.x,n.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==e.detail.i){var i=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[i[e.detail.i][0],i[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(e,t){var n=this.snapToGrid(e,t);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y+n[1]).size(this.parameters.box.width-n[0],this.parameters.box.height-n[1])}};break;case"rt":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).size(this.parameters.box.width+n[0],this.parameters.box.height-n[1])}};break;case"rb":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+n[0],this.parameters.box.height+n[1])}};break;case"lb":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).size(this.parameters.box.width-n[0],this.parameters.box.height+n[1])}};break;case"t":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).height(this.parameters.box.height-n[1])}};break;case"r":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+n[0])}};break;case"b":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+n[1])}};break;case"l":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).width(this.parameters.box.width-n[0])}};break;case"rot":this.calc=function(e,t){var n=e+this.parameters.p.x,i=t+this.parameters.p.y,r=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),s=Math.atan2(i-this.parameters.box.y-this.parameters.box.height/2,n-this.parameters.box.x-this.parameters.box.width/2),a=this.parameters.rotation+180*(s-r)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(a-a%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var n=this.snapToGrid(e,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),i=this.el.array().valueOf();i[this.parameters.i][0]=this.parameters.pointCoords[0]+n[0],i[this.parameters.i][1]=this.parameters.pointCoords[1]+n[1],this.el.plot(i)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),n=this.transformPoint(t.x,t.y),i=n.x-this.parameters.p.x,r=n.y-this.parameters.p.y;this.lastUpdateCall=[i,r],this.calc(i,r),this.el.fire("resizing",{dx:i,dy:r,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},e.prototype.snapToGrid=function(e,t,n,i){var r;return void 0!==i?r=[(n+e)%this.options.snapToGrid,(i+t)%this.options.snapToGrid]:(n=null==n?3:n,r=[(this.parameters.box.x+e+(1&n?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&n?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(r[0]-=this.options.snapToGrid),t<0&&(r[1]-=this.options.snapToGrid),e-=Math.abs(r[0])<this.options.snapToGrid/2?r[0]:r[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(r[1])<this.options.snapToGrid/2?r[1]:r[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,n,i)},e.prototype.constraintToBox=function(e,t,n,i){var r,s,a=this.options.constraint||{};return void 0!==i?(r=n,s=i):(r=this.parameters.box.x+(1&n?0:this.parameters.box.width),s=this.parameters.box.y+(2&n?0:this.parameters.box.height)),void 0!==a.minX&&r+e<a.minX&&(e=a.minX-r),void 0!==a.maxX&&r+e>a.maxX&&(e=a.maxX-r),void 0!==a.minY&&s+t<a.minY&&(t=a.minY-s),void 0!==a.maxY&&s+t>a.maxY&&(t=a.maxY-s),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var n=e.slice(),i=this.parameters.box.width/this.parameters.box.height,r=this.parameters.box.width+e[0],s=this.parameters.box.height-e[1],a=r/s;return a<i?(n[1]=r/i-this.parameters.box.height,t&&(n[1]=-n[1])):a>i&&(n[0]=this.parameters.box.width-s*i,t&&(n[0]=-n[0])),n},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Ve=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new w(this.ctx),this.ctx.axes=new te(this.ctx),this.ctx.core=new We(this.ctx.el,this.ctx),this.ctx.config=new F({}),this.ctx.data=new V(this.ctx),this.ctx.grid=new q(this.ctx),this.ctx.graphics=new A(this.ctx),this.ctx.coreUtils=new S(this.ctx),this.ctx.crosshairs=new ne(this.ctx),this.ctx.events=new Q(this.ctx),this.ctx.exports=new $(this.ctx),this.ctx.localization=new ee(this.ctx),this.ctx.options=new D,this.ctx.responsive=new ie(this.ctx),this.ctx.series=new X(this.ctx),this.ctx.theme=new re(this.ctx),this.ctx.formatters=new O(this.ctx),this.ctx.titleSubtitle=new se(this.ctx),this.ctx.legend=new de(this.ctx),this.ctx.toolbar=new pe(this.ctx),this.ctx.tooltip=new we(this.ctx),this.ctx.dimensions=new ue(this.ctx),this.ctx.updateHelpers=new Xe(this.ctx),this.ctx.zoomPanSelection=new fe(this.ctx),this.ctx.w.globals.tooltip=new we(this.ctx)}}]),e}(),Ue=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each((function(e,t){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,i=this.w.globals.dom.Paper.node;i.parentNode&&i.parentNode.parentNode&&!n&&(i.parentNode.parentNode.style.minHeight="unset");var r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach((function(e){r.removeEventListener(e,t.ctx.events.documentEvent)}));var s=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(s.Paper),s.Paper.remove(),s.elWrap=null,s.elGraphical=null,s.elLegendWrap=null,s.elLegendForeign=null,s.baseEl=null,s.elGridRect=null,s.elGridRectMask=null,s.elGridRectMarkerMask=null,s.elForecastMask=null,s.elNonForecastMask=null,s.elDefs=null}}]),e}(),$e=new WeakMap,Ge=function(){function e(t,n){o(this,e),this.opts=n,this.ctx=this,this.w=new z(n).init(),this.el=t,this.w.globals.cuid=y.randomId(),this.w.globals.chartID=this.w.config.chart.id?y.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ve(this).initModules(),this.create=y.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return c(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,n){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var i=e.w.config.chart.events.beforeMount;if("function"==typeof i&&i(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var n=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var i=e.getBoundingClientRect();"none"!==e.style.display&&0!==i.width||(n=!0)}var r=new ResizeObserver((function(i){n&&t.call(e,i),n=!0}));e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return r.observe(e)})):r.observe(e),$e.set(t,r)}(e.el.parentNode,e.parentResizeHandler),!e.css){var r=e.el.getRootNode&&e.el.getRootNode(),s=y.is("ShadowRoot",r),a=e.el.ownerDocument,o=a.getElementById("apexcharts-css");if(s||!o){var l;e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n 0%,to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\n.legend-mouseover-inactive {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0,0,0,.7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0,0,0,.7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n opacity: 0\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers{\n pointer-events: none\n}\n\n.apexcharts-bar-shadows{\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers{\n pointer-events: none\n}';var c=(null===(l=e.opts.chart)||void 0===l?void 0:l.nonce)||e.w.config.chart.nonce;c&&e.css.setAttribute("nonce",c),s?r.prepend(e.css):a.head.appendChild(e.css)}}var u=e.create(e.w.config.series,{});if(!u)return t(e);e.mount(u).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(u)})).catch((function(e){n(e)}))}else n(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var n=this.w;new Ve(this).initModules();var i=this.w.globals;if(i.noData=!1,i.animationEnded=!1,this.responsive.checkResponsiveConfig(t),n.config.xaxis.convertedCatToNumeric&&new N(n.config).convertCatToNumericXaxis(n.config,this.ctx),null===this.el)return i.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===n.config.chart.type&&(n.config.grid.show=!1,n.config.yaxis[0].show=!1),0===i.svgWidth)return i.animationEnded=!0,null;var r=S.checkComboSeries(e);i.comboCharts=r.comboCharts,i.comboBarCount=r.comboBarCount;var s=e.every((function(e){return e.data&&0===e.data.length}));(0===e.length||s)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new j(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),i.noData&&i.collapsedSeries.length!==i.series.length&&!n.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),i.axisCharts&&(this.core.coreCalculations(),"category"!==n.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=n.globals.minX,this.ctx.toolbar.maxX=n.globals.maxX),this.formatters.heatmapLabelFormatters(),new S(this).getLargestMarkerSize(),this.dimensions.plotCoords();var a=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(e,a),l=new W(this);return l.bringForward(),n.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:o,xyRatios:a,dimensions:{plot:{left:n.globals.translateX,top:n.globals.translateY,width:n.globals.gridWidth,height:n.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this,i=n.w;return new Promise((function(r,s){if(null===n.el)return s(new Error("Not enough data to display or target element not found"));(null===t||i.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new q(n);var a,o,l=n.grid.drawGrid();if(n.annotations=new P(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),"back"===i.config.grid.position&&(l&&i.globals.dom.elGraphical.add(l.el),null!=l&&null!==(a=l.elGridBorders)&&void 0!==a&&a.node&&i.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)i.globals.dom.elGraphical.add(t.elGraph[c]);else i.globals.dom.elGraphical.add(t.elGraph);"front"===i.config.grid.position&&(l&&i.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&i.globals.dom.elGraphical.add(l.elGridBorders)),"front"===i.config.xaxis.crosshairs.position&&n.crosshairs.drawXCrosshairs(),"front"===i.config.yaxis[0].crosshairs.position&&n.crosshairs.drawYCrosshairs(),"treemap"!==i.config.chart.type&&n.axes.drawAxis(i.config.chart.type,l);var u=new G(e.ctx,l),h=new J(e.ctx,l);if(null!==l&&(u.xAxisLabelCorrections(l.xAxisTickWidth),h.setYAxisTextAlignments(),i.config.yaxis.map((function(e,t){-1===i.globals.ignoreYAxisIndexes.indexOf(t)&&h.yAxisTitleRotate(t,e.opposite)}))),n.annotations.drawAxesAnnotations(),!i.globals.noData){if(i.config.tooltip.enabled&&!i.globals.noData&&n.w.globals.tooltip.drawTooltip(t.xyRatios),i.globals.axisCharts&&(i.globals.isXNumeric||i.config.xaxis.convertedCatToNumeric||i.globals.isRangeBar))(i.config.chart.zoom.enabled||i.config.chart.selection&&i.config.chart.selection.enabled||i.config.chart.pan&&i.config.chart.pan.enabled)&&n.zoomPanSelection.init({xyRatios:t.xyRatios});else{var d=i.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(e){d[e]=!1}))}i.config.chart.toolbar.show&&!i.globals.allSeriesCollapsed&&n.toolbar.createToolbar()}i.globals.memory.methodsToExec.length>0&&i.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),i.globals.axisCharts||i.globals.noData||n.core.resizeNonAxisCharts(),r(n)}))}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=$e.get(e))&&(t.disconnect(),$e.delete(e));var n=this.w.config.chart.id;n&&Apex._chartInstances.forEach((function(e,t){e.id===y.escapeString(n)&&Apex._chartInstances.splice(t,1)})),new Ue(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w;return a.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,n){return t.updateHelpers._extendSeries(e,n)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),a.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,i,r,s)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.w.config.series.slice();return i.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(i,t,n)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var i=n.w.config.series.slice(),r=0;r<i.length;r++)if(null!==e[r]&&void 0!==e[r])for(var s=0;s<e[r].data.length;s++)i[r].data.push(e[r].data[s]);return n.w.config.series=i,t&&(n.w.globals.initialSeries=y.clone(n.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise((function(n,i){new Ue(t.ctx).clear({isUpdating:!0});var r=t.create(t.w.config.series,e);if(!r)return n(t);t.mount(r).then((function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,n(t)})).catch((function(e){i(e)}))}))}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach((function(e){t.push(e)}))),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter((function(e){if(e.group)return!0})).map((function(t){return e.w.config.chart.group===t.group?t.chart:e}))}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this;n&&(i=n),i.annotations.addXaxisAnnotationExternal(e,t,i)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this;n&&(i=n),i.annotations.addYaxisAnnotationExternal(e,t,i)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this;n&&(i=n),i.annotations.addPointAnnotationExternal(e,t,i)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this;t&&(n=t),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new K(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new K(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new $(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new $(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=y.escapeString(e);if(Apex._chartInstances){var n=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return n&&n.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),n=0;n<t.length;n++)new e(t[n],JSON.parse(t[n].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var n=this.getChartByID(e);if(n){n.w.globals.isExecCalled=!0;var i=null;if(-1!==n.publicMethods.indexOf(t)){for(var r=arguments.length,s=new Array(r>2?r-2:0),a=2;a<r;a++)s[a-2]=arguments[a];i=n[t].apply(n,s)}return i}}},{key:"merge",value:function(e,t){return y.extend(e,t)}}]),e}();e.exports=Ge},1778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(8081),r=n.n(i),s=n(3645),a=n.n(s)()(r());a.push([e.id,"\n.vc-popover-content-wrapper {\n --popover-horizontal-content-offset: 8px;\n --popover-vertical-content-offset: 10px;\n --popover-caret-horizontal-offset: 18px;\n --popover-caret-vertical-offset: 8px;\n\n position: absolute;\n display: block;\n outline: none;\n z-index: 10;\n}\n.vc-popover-content-wrapper:not(.is-interactive) {\n pointer-events: none;\n}\n.vc-popover-content {\n position: relative;\n color: var(--vc-popover-content-color);\n font-weight: var(--vc-font-medium);\n background-color: var(--vc-popover-content-bg);\n border: 1px solid;\n border-color: var(--vc-popover-content-border);\n border-radius: var(--vc-rounded-lg);\n padding: 4px;\n outline: none;\n z-index: 10;\n box-shadow: var(--vc-shadow-lg);\n}\n.vc-popover-content.direction-bottom {\n margin-top: var(--popover-vertical-content-offset);\n}\n.vc-popover-content.direction-top {\n margin-bottom: var(--popover-vertical-content-offset);\n}\n.vc-popover-content.direction-left {\n margin-right: var(--popover-horizontal-content-offset);\n}\n.vc-popover-content.direction-right {\n margin-left: var(--popover-horizontal-content-offset);\n}\n.vc-popover-caret {\n content: '';\n position: absolute;\n display: block;\n width: 12px;\n height: 12px;\n border-top: inherit;\n border-left: inherit;\n background-color: inherit;\n z-index: -1;\n}\n.vc-popover-caret.direction-bottom {\n top: 0;\n}\n.vc-popover-caret.direction-bottom.align-left {\n -webkit-transform: translateY(-50%) rotate(45deg);\n transform: translateY(-50%) rotate(45deg);\n}\n.vc-popover-caret.direction-bottom.align-center {\n -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n}\n.vc-popover-caret.direction-bottom.align-right {\n -webkit-transform: translateY(-50%) rotate(45deg);\n transform: translateY(-50%) rotate(45deg);\n}\n.vc-popover-caret.direction-top {\n top: 100%;\n}\n.vc-popover-caret.direction-top.align-left {\n -webkit-transform: translateY(-50%) rotate(-135deg);\n transform: translateY(-50%) rotate(-135deg);\n}\n.vc-popover-caret.direction-top.align-center {\n -webkit-transform: translateX(-50%) translateY(-50%) rotate(-135deg);\n transform: translateX(-50%) translateY(-50%) rotate(-135deg);\n}\n.vc-popover-caret.direction-top.align-right {\n -webkit-transform: translateY(-50%) rotate(-135deg);\n transform: translateY(-50%) rotate(-135deg);\n}\n.vc-popover-caret.direction-left {\n left: 100%;\n}\n.vc-popover-caret.direction-left.align-top {\n -webkit-transform: translateX(-50%) rotate(135deg);\n transform: translateX(-50%) rotate(135deg);\n}\n.vc-popover-caret.direction-left.align-middle {\n -webkit-transform: translateY(-50%) translateX(-50%) rotate(135deg);\n transform: translateY(-50%) translateX(-50%) rotate(135deg);\n}\n.vc-popover-caret.direction-left.align-bottom {\n -webkit-transform: translateX(-50%) rotate(135deg);\n transform: translateX(-50%) rotate(135deg);\n}\n.vc-popover-caret.direction-right {\n left: 0;\n}\n.vc-popover-caret.direction-right.align-top {\n -webkit-transform: translateX(-50%) rotate(-45deg);\n transform: translateX(-50%) rotate(-45deg);\n}\n.vc-popover-caret.direction-right.align-middle {\n -webkit-transform: translateY(-50%) translateX(-50%) rotate(-45deg);\n transform: translateY(-50%) translateX(-50%) rotate(-45deg);\n}\n.vc-popover-caret.direction-right.align-bottom {\n -webkit-transform: translateX(-50%) rotate(-45deg);\n transform: translateX(-50%) rotate(-45deg);\n}\n.vc-popover-caret.align-left {\n left: var(--popover-caret-horizontal-offset);\n}\n.vc-popover-caret.align-center {\n left: 50%;\n}\n.vc-popover-caret.align-right {\n right: var(--popover-caret-horizontal-offset);\n}\n.vc-popover-caret.align-top {\n top: var(--popover-caret-vertical-offset);\n}\n.vc-popover-caret.align-middle {\n top: 50%;\n}\n.vc-popover-caret.align-bottom {\n bottom: var(--popover-caret-vertical-offset);\n}\n\n.vc-day-popover-row {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n transition: var(--vc-day-content-transition);\n}\n.vc-day-popover-row-indicator {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-flex-grow: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n width: 15px;\n}\n.vc-day-popover-row-indicator span {\n transition: var(--vc-day-content-transition);\n}\n.vc-day-popover-row-label {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-flex-wrap: none;\n -ms-flex-wrap: none;\n flex-wrap: none;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n width: -webkit-max-content;\n width: max-content;\n margin-left: 4px;\n margin-right: 4px;\n font-size: var(--vc-text-xs);\n line-height: var(--vc-leading-normal);\n}\n.vc-day-popover-row-highlight {\n width: 8px;\n height: 5px;\n border-radius: 3px;\n}\n.vc-day-popover-row-dot {\n}\n.vc-day-popover-row-bar {\n width: 10px;\n height: 3px;\n}\n\n.vc-base-icon {\n display: inline-block;\n stroke: currentColor;\n stroke-width: 2;\n fill: none;\n}\n\n.vc-header {\n display: grid;\n grid-gap: 4px;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 30px;\n margin-top: 10px;\n padding-left: 10px;\n padding-right: 10px;\n}\n.vc-header.is-lg {\n font-size: var(--vc-text-lg);\n}\n.vc-header.is-xl {\n font-size: var(--vc-text-xl);\n}\n.vc-header.is-2xl {\n font-size: var(--vc-text-2xl);\n}\n.vc-header .vc-title-wrapper {\n grid-row: 1;\n grid-column: title;\n}\n.vc-header .vc-prev {\n grid-row: 1;\n grid-column: prev;\n}\n.vc-header .vc-next {\n grid-row: 1;\n grid-column: next;\n}\n.vc-header .vc-title,\n .vc-header .vc-prev,\n .vc-header .vc-next {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n border: 0;\n border-radius: var(--vc-rounded);\n pointer-events: auto;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n.vc-header .vc-title {\n color: var(--vc-header-title-color);\n font-weight: var(--vc-font-semibold);\n white-space: nowrap;\n padding: 0 8px;\n margin: 0;\n line-height: 30px;\n}\n.vc-header .vc-title:hover {\n opacity: 0.75;\n}\n.vc-header .vc-arrow {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n color: var(--vc-header-arrow-color);\n width: 28px;\n height: 30px;\n margin: 0;\n padding: 0;\n}\n.vc-header .vc-arrow:hover {\n background: var(--vc-header-arrow-hover-bg);\n}\n.vc-header .vc-arrow:disabled {\n opacity: 0.25;\n pointer-events: none;\n}\n\n.vc-nav-header {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.vc-nav-title,\n.vc-nav-arrow,\n.vc-nav-item {\n font-size: var(--vc-text-sm);\n margin: 0;\n cursor: pointer;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border: 0;\n border-radius: var(--vc-rounded);\n white-space: nowrap;\n}\n.vc-nav-title:hover, .vc-nav-arrow:hover, .vc-nav-item:hover {\n background-color: var(--vc-nav-hover-bg);\n}\n.vc-nav-title:disabled, .vc-nav-arrow:disabled, .vc-nav-item:disabled {\n opacity: 0.25;\n pointer-events: none;\n}\n.vc-nav-title {\n color: var(--vc-nav-title-color);\n font-weight: var(--vc-font-bold);\n line-height: var(--vc-leading-snug);\n height: 30px;\n padding: 0 6px;\n}\n.vc-nav-arrow {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n color: var(--vc-header-arrow-color);\n width: 26px;\n height: 30px;\n padding: 0;\n}\n.vc-nav-items {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-row-gap: 2px;\n grid-column-gap: 5px;\n margin-top: 2px;\n}\n.vc-nav-item {\n width: 48px;\n text-align: center;\n font-weight: var(--vc-font-semibold);\n line-height: var(--vc-leading-snug);\n padding: 6px 0;\n}\n.vc-nav-item.is-active {\n color: var(--vc-nav-item-active-color);\n background-color: var(--vc-nav-item-active-bg);\n font-weight: var(--vc-font-bold);\n}\n.vc-nav-item.is-active:not(:focus) {\n box-shadow: var(--vc-nav-item-active-box-shadow);\n}\n.vc-nav-item.is-current {\n color: var(--vc-nav-item-current-color);\n}\n\n.vc-day {\n position: relative;\n min-height: 32px;\n z-index: 1;\n /* &.is-not-in-month * {\n opacity: 0;\n pointer-events: none;\n } */\n}\n.vc-monthly .is-not-in-month * {\n opacity: 0;\n pointer-events: none;\n}\n.vc-day-layer {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n}\n.vc-day-box-center-center {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-transform-origin: 50% 50%;\n transform-origin: 50% 50%;\n}\n.vc-day-box-left-center {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: flex-start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-transform-origin: 0% 50%;\n transform-origin: 0% 50%;\n}\n.vc-day-box-right-center {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: flex-end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-transform-origin: 100% 50%;\n transform-origin: 100% 50%;\n}\n.vc-day-box-center-bottom {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: flex-end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.vc-day-content {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n font-size: var(--vc-text-sm);\n font-weight: var(--vc-font-medium);\n width: 28px;\n height: 28px;\n line-height: 28px;\n border-radius: var(--vc-rounded-full);\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n.vc-day-content:hover {\n background-color: var(--vc-day-content-hover-bg);\n}\n.vc-day-content.vc-disabled {\n color: var(--vc-day-content-disabled-color);\n}\n\n/* ----Content---- */\n.vc-content:not(.vc-base) {\n font-weight: var(--vc-font-bold);\n color: var(--vc-content-color);\n}\n\n/* ----Highlights---- */\n.vc-highlights {\n overflow: hidden;\n pointer-events: none;\n z-index: -1;\n}\n.vc-highlight {\n width: 28px;\n height: 28px;\n}\n.vc-highlight.vc-highlight-base-start {\n width: 50% !important;\n border-radius: 0 !important;\n border-right-width: 0 !important;\n}\n.vc-highlight.vc-highlight-base-end {\n width: 50% !important;\n border-radius: 0 !important;\n border-left-width: 0 !important;\n}\n.vc-highlight.vc-highlight-base-middle {\n width: 100%;\n border-radius: 0 !important;\n border-left-width: 0 !important;\n border-right-width: 0 !important;\n margin: 0 -1px;\n}\n.vc-highlight-bg-outline,\n.vc-highlight-bg-none {\n background-color: var(--vc-highlight-outline-bg);\n border: 2px solid;\n border-color: var(--vc-highlight-outline-border);\n border-radius: var(--vc-rounded-full);\n}\n.vc-highlight-bg-light {\n background-color: var(--vc-highlight-light-bg);\n border-radius: var(--vc-rounded-full);\n}\n.vc-highlight-bg-solid {\n background-color: var(--vc-highlight-solid-bg);\n border-radius: var(--vc-rounded-full);\n}\n.vc-highlight-content-outline,\n.vc-highlight-content-none {\n font-weight: var(--vc-font-bold);\n color: var(--vc-highlight-outline-content-color);\n}\n.vc-highlight-content-light {\n font-weight: var(--vc-font-bold);\n color: var(--vc-highlight-light-content-color);\n}\n.vc-highlight-content-solid {\n font-weight: var(--vc-font-bold);\n color: var(--vc-highlight-solid-content-color);\n}\n\n/* ----Dots---- */\n.vc-dots {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.vc-dot {\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n transition: var(--vc-day-content-transition);\n}\n.vc-dot:not(:last-child) {\n margin-right: 3px;\n}\n\n/* ----Bars---- */\n.vc-bars {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: flex-start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n width: 75%;\n}\n.vc-bar {\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n height: 3px;\n transition: var(--vc-day-content-transition);\n}\n.vc-dot {\n background-color: var(--vc-dot-bg);\n}\n.vc-bar {\n background-color: var(--vc-bar-bg);\n}\n\n.vc-pane {\n min-width: 250px;\n}\n.vc-weeknumber {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n position: absolute;\n}\n.vc-weeknumber.is-left {\n left: calc(var(--vc-weeknumber-offset-inside) * -1);\n}\n.vc-weeknumber.is-right {\n right: calc(var(--vc-weeknumber-offset-inside) * -1);\n}\n.vc-weeknumber.is-left-outside {\n left: calc(var(--vc-weeknumber-offset-outside) * -1);\n}\n.vc-weeknumber.is-right-outside {\n right: calc(var(--vc-weeknumber-offset-outside) * -1);\n}\n.vc-weeknumber-content {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n font-size: var(--vc-text-xs);\n font-weight: var(--vc-font-medium);\n font-style: italic;\n width: 28px;\n height: 28px;\n margin-top: 2px;\n color: var(--vc-weeknumber-color);\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.vc-weeks {\n position: relative;\n /* overflow: auto; */\n -webkit-overflow-scrolling: touch;\n padding: 6px;\n min-width: 232px;\n}\n.vc-weeks.vc-show-weeknumbers-left {\n margin-left: var(--vc-weeknumber-offset-inside);\n}\n.vc-weeks.vc-show-weeknumbers-right {\n margin-right: var(--vc-weeknumber-offset-inside);\n}\n.vc-weekday {\n text-align: center;\n color: var(--vc-weekday-color);\n font-size: var(--vc-text-sm);\n font-weight: var(--vc-font-bold);\n line-height: 14px;\n padding-top: 4px;\n padding-bottom: 8px;\n cursor: default;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.vc-week,\n.vc-weekdays {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n position: relative;\n}\n\n.vc-pane-container {\n width: 100%;\n position: relative;\n}\n.vc-pane-container.in-transition {\n overflow: hidden;\n}\n.vc-pane-layout {\n display: grid;\n}\n.vc-pane-header-wrapper {\n position: absolute;\n top: 0;\n width: 100%;\n pointer-events: none;\n}\n.vc-day-popover-container {\n font-size: var(--vc-text-xs);\n font-weight: var(--vc-font-medium);\n}\n.vc-day-popover-header {\n font-size: var(--vc-text-xs);\n color: var(--vc-day-popover-header-color);\n font-weight: var(--vc-font-semibold);\n text-align: center;\n}\n\n.vc-base-select {\n position: relative;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 30px;\n font-size: var(--vc-text-base);\n font-weight: var(--vc-font-medium);\n}\n.vc-base-select.vc-has-icon select {\n padding: 0 27px 0 9px;\n}\n.vc-base-select.vc-has-icon .vc-base-sizer {\n padding: 0 28px 0 10px;\n}\n.vc-base-select.vc-fit-content select {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n}\n.vc-base-select .vc-base-icon {\n position: absolute;\n top: 6px;\n right: 4px;\n opacity: 0.6;\n pointer-events: none;\n}\n.vc-base-select .vc-base-sizer {\n font-size: var(--vc-text-base);\n font-weight: var(--vc-font-medium);\n color: transparent;\n padding: 0px 8px;\n margin: 0;\n}\n.vc-base-select select {\n display: -webkit-inline-flex;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n color: var(--vc-select-color);\n display: block;\n -webkit-appearance: none;\n appearance: none;\n background-color: var(--vc-select-bg);\n border-radius: var(--vc-rounded);\n height: 30px;\n width: -webkit-max-content;\n width: max-content;\n padding: 0px 7px;\n margin: 0;\n line-height: var(--leading-none);\n text-indent: 0px;\n background-image: none;\n cursor: pointer;\n text-align: center;\n}\n.vc-base-select select:hover {\n background-color: var(--vc-select-hover-bg);\n}\n.vc-base-select select.vc-align-left {\n text-align: left;\n}\n.vc-base-select select.vc-align-right {\n text-align: right;\n}\n\n.vc-time-picker {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 8px 4px;\n}\n.vc-time-picker.vc-invalid {\n pointer-events: none;\n opacity: 0.5;\n}\n.vc-time-picker.vc-attached {\n border-top: 1px solid var(--vc-time-picker-border);\n}\n.vc-time-picker > * + * {\n margin-top: 4px;\n}\n.vc-time-header {\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n font-size: var(--vc-text-sm);\n font-weight: var(--vc-font-semibold);\n text-transform: uppercase;\n margin-top: -4px;\n padding-left: 4px;\n padding-right: 4px;\n line-height: 21px;\n}\n.vc-time-select-group {\n display: -webkit-inline-flex;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 0 4px;\n background: var(--vc-time-select-group-bg);\n border-radius: var(--vc-rounded-md);\n border: 1px solid var(--vc-time-select-group-border);\n}\n.vc-time-select-group .vc-base-icon {\n margin-right: 4px;\n color: var(--vc-time-select-group-icon-color);\n}\n.vc-time-select-group select {\n background: transparent;\n padding: 0px 4px;\n}\n.vc-time-weekday {\n color: var(--vc-time-weekday-color);\n letter-spacing: var(--tracking-wide);\n}\n.vc-time-month {\n color: var(--vc-time-month-color);\n margin-left: 8px;\n}\n.vc-time-day {\n color: var(--vc-time-day-color);\n margin-left: 4px;\n}\n.vc-time-year {\n color: var(--vc-time-year-color);\n margin-left: 8px;\n}\n.vc-time-colon {\n margin: 0 1px 2px 2px;\n}\n.vc-time-decimal {\n margin: 0 0 0 1px;\n}\n.vc-none-enter-active,\n.vc-none-leave-active {\n transition-duration: 0s;\n}\n\n.vc-fade-enter-active,\n.vc-fade-leave-active,\n.vc-slide-left-enter-active,\n.vc-slide-left-leave-active,\n.vc-slide-right-enter-active,\n.vc-slide-right-leave-active,\n.vc-slide-up-enter-active,\n.vc-slide-up-leave-active,\n.vc-slide-down-enter-active,\n.vc-slide-down-leave-active,\n.vc-slide-fade-enter-active,\n.vc-slide-fade-leave-active {\n transition: opacity var(--vc-slide-duration) var(--vc-slide-timing),\n -webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);\n transition: transform var(--vc-slide-duration) var(--vc-slide-timing),\n opacity var(--vc-slide-duration) var(--vc-slide-timing);\n transition: transform var(--vc-slide-duration) var(--vc-slide-timing),\n opacity var(--vc-slide-duration) var(--vc-slide-timing),\n -webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n pointer-events: none;\n}\n\n.vc-none-leave-active,\n.vc-fade-leave-active,\n.vc-slide-left-leave-active,\n.vc-slide-right-leave-active,\n.vc-slide-up-leave-active,\n.vc-slide-down-leave-active {\n position: absolute !important;\n width: 100%;\n}\n\n.vc-none-enter-from,\n.vc-none-leave-to,\n.vc-fade-enter-from,\n.vc-fade-leave-to,\n.vc-slide-left-enter-from,\n.vc-slide-left-leave-to,\n.vc-slide-right-enter-from,\n.vc-slide-right-leave-to,\n.vc-slide-up-enter-from,\n.vc-slide-up-leave-to,\n.vc-slide-down-enter-from,\n.vc-slide-down-leave-to,\n.vc-slide-fade-enter-from,\n.vc-slide-fade-leave-to {\n opacity: 0;\n}\n\n.vc-slide-left-enter-from,\n.vc-slide-right-leave-to,\n.vc-slide-fade-enter-from.direction-left,\n.vc-slide-fade-leave-to.direction-left {\n -webkit-transform: translateX(var(--vc-slide-translate));\n transform: translateX(var(--vc-slide-translate));\n}\n\n.vc-slide-right-enter-from,\n.vc-slide-left-leave-to,\n.vc-slide-fade-enter-from.direction-right,\n.vc-slide-fade-leave-to.direction-right {\n -webkit-transform: translateX(calc(-1 * var(--vc-slide-translate)));\n transform: translateX(calc(-1 * var(--vc-slide-translate)));\n}\n\n.vc-slide-up-enter-from,\n.vc-slide-down-leave-to,\n.vc-slide-fade-enter-from.direction-top,\n.vc-slide-fade-leave-to.direction-top {\n -webkit-transform: translateY(var(--vc-slide-translate));\n transform: translateY(var(--vc-slide-translate));\n}\n\n.vc-slide-down-enter-from,\n.vc-slide-up-leave-to,\n.vc-slide-fade-enter-from.direction-bottom,\n.vc-slide-fade-leave-to.direction-bottom {\n -webkit-transform: translateY(calc(-1 * var(--vc-slide-translate)));\n transform: translateY(calc(-1 * var(--vc-slide-translate)));\n}\n\n:root {\n --vc-white: #ffffff;\n --vc-black: #000000;\n\n --vc-gray-50: #f8fafc;\n --vc-gray-100: #f1f5f9;\n --vc-gray-200: #e2e8f0;\n --vc-gray-300: #cbd5e1;\n --vc-gray-400: #94a3b8;\n --vc-gray-500: #64748b;\n --vc-gray-600: #475569;\n --vc-gray-700: #334155;\n --vc-gray-800: #1e293b;\n --vc-gray-900: #0f172a;\n\n --vc-font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto',\n 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n 'Helvetica', 'Arial', sans-serif;\n\n --vc-font-normal: 400;\n --vc-font-medium: 500;\n --vc-font-semibold: 600;\n --vc-font-bold: 700;\n\n --vc-text-2xs: 10px;\n --vc-text-xs: 12px;\n --vc-text-sm: 14px;\n --vc-text-base: 16px;\n --vc-text-lg: 18px;\n --vc-text-xl: 20px;\n --vc-text-2xl: 24px;\n\n --vc-leading-none: 1;\n --vc-leading-tight: 1.25;\n --vc-leading-snug: 1.375;\n --vc-leading-normal: 1.5;\n\n --vc-rounded: 0.25rem;\n --vc-rounded-md: 0.375rem;\n --vc-rounded-lg: 0.5rem;\n --vc-rounded-full: 9999px;\n\n --vc-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n --vc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),\n 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n --vc-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);\n\n --vc-slide-translate: 22px;\n --vc-slide-duration: 0.15s;\n --vc-slide-timing: ease;\n\n --vc-day-content-transition: all 0.13s ease-in;\n --vc-weeknumber-offset-inside: 26px;\n --vc-weeknumber-offset-outside: 34px;\n}\n\n.vc-gray {\n --vc-accent-50: var(--vc-gray-50);\n --vc-accent-100: var(--vc-gray-100);\n --vc-accent-200: var(--vc-gray-200);\n --vc-accent-300: var(--vc-gray-300);\n --vc-accent-400: var(--vc-gray-400);\n --vc-accent-500: var(--vc-gray-500);\n --vc-accent-600: var(--vc-gray-600);\n --vc-accent-700: var(--vc-gray-700);\n --vc-accent-800: var(--vc-gray-800);\n --vc-accent-900: var(--vc-gray-900);\n}\n\n.vc-red {\n --vc-accent-50: #fef2f2;\n --vc-accent-100: #fee2e2;\n --vc-accent-200: #fecaca;\n --vc-accent-300: #fca5a5;\n --vc-accent-400: #f87171;\n --vc-accent-500: #ef4444;\n --vc-accent-600: #dc2626;\n --vc-accent-700: #b91c1c;\n --vc-accent-800: #991b1b;\n --vc-accent-900: #7f1d1d;\n}\n\n.vc-orange {\n --vc-accent-50: #fff7ed;\n --vc-accent-100: #ffedd5;\n --vc-accent-200: #fed7aa;\n --vc-accent-300: #fdba74;\n --vc-accent-400: #fb923c;\n --vc-accent-500: #f97316;\n --vc-accent-600: #ea580c;\n --vc-accent-700: #c2410c;\n --vc-accent-800: #9a3412;\n --vc-accent-900: #7c2d12;\n}\n\n.vc-yellow {\n --vc-accent-50: #fefce8;\n --vc-accent-100: #fef9c3;\n --vc-accent-200: #fef08a;\n --vc-accent-300: #fde047;\n --vc-accent-400: #facc15;\n --vc-accent-500: #eab308;\n --vc-accent-600: #ca8a04;\n --vc-accent-700: #a16207;\n --vc-accent-800: #854d0e;\n --vc-accent-900: #713f12;\n}\n\n.vc-green {\n --vc-accent-50: #f0fdf4;\n --vc-accent-100: #dcfce7;\n --vc-accent-200: #bbf7d0;\n --vc-accent-300: #86efac;\n --vc-accent-400: #4ade80;\n --vc-accent-500: #22c55e;\n --vc-accent-600: #16a34a;\n --vc-accent-700: #15803d;\n --vc-accent-800: #166534;\n --vc-accent-900: #14532d;\n}\n\n.vc-teal {\n --vc-accent-50: #f0fdfa;\n --vc-accent-100: #ccfbf1;\n --vc-accent-200: #99f6e4;\n --vc-accent-300: #5eead4;\n --vc-accent-400: #2dd4bf;\n --vc-accent-500: #14b8a6;\n --vc-accent-600: #0d9488;\n --vc-accent-700: #0f766e;\n --vc-accent-800: #115e59;\n --vc-accent-900: #134e4a;\n}\n\n.vc-blue {\n --vc-accent-50: #eff6ff;\n --vc-accent-100: #dbeafe;\n --vc-accent-200: #bfdbfe;\n --vc-accent-300: #93c5fd;\n --vc-accent-400: #60a5fa;\n --vc-accent-500: #3b82f6;\n --vc-accent-600: #2563eb;\n --vc-accent-700: #1d4ed8;\n --vc-accent-800: #1e40af;\n --vc-accent-900: #1e3a8a;\n}\n\n.vc-indigo {\n --vc-accent-50: #eef2ff;\n --vc-accent-100: #e0e7ff;\n --vc-accent-200: #c7d2fe;\n --vc-accent-300: #a5b4fc;\n --vc-accent-400: #818cf8;\n --vc-accent-500: #6366f1;\n --vc-accent-600: #4f46e5;\n --vc-accent-700: #4338ca;\n --vc-accent-800: #3730a3;\n --vc-accent-900: #312e81;\n}\n\n.vc-purple {\n --vc-accent-50: #faf5ff;\n --vc-accent-100: #f3e8ff;\n --vc-accent-200: #e9d5ff;\n --vc-accent-300: #d8b4fe;\n --vc-accent-400: #c084fc;\n --vc-accent-500: #a855f7;\n --vc-accent-600: #9333ea;\n --vc-accent-700: #7e22ce;\n --vc-accent-800: #6b21a8;\n --vc-accent-900: #581c87;\n}\n\n.vc-pink {\n --vc-accent-50: #fdf2f8;\n --vc-accent-100: #fce7f3;\n --vc-accent-200: #fbcfe8;\n --vc-accent-300: #f9a8d4;\n --vc-accent-400: #f472b6;\n --vc-accent-500: #ec4899;\n --vc-accent-600: #db2777;\n --vc-accent-700: #be185d;\n --vc-accent-800: #9d174d;\n --vc-accent-900: #831843;\n}\n\n.vc-focus:focus-within {\n outline: 0;\n box-shadow: var(--vc-focus-ring);\n }\n\n.vc-light {\n /* Base */\n --vc-color: var(--vc-gray-900);\n --vc-bg: var(--vc-white);\n --vc-border: var(--vc-gray-300);\n --vc-hover-bg: hsla(211, 25%, 84%, 0.3);\n --vc-focus-ring: 0 0 0 2px rgb(59, 131, 246, 0.4);\n /* Calendar header */\n --vc-header-arrow-color: var(--vc-gray-500);\n --vc-header-arrow-hover-bg: var(--vc-gray-200);\n --vc-header-title-color: var(--vc-gray-900);\n /* Calendar weekdays */\n --vc-weekday-color: var(--vc-gray-500);\n /* Calendar weeknumbers */\n --vc-weeknumber-color: var(--vc-gray-400);\n /* Calendar nav */\n --vc-nav-hover-bg: var(--vc-gray-200);\n --vc-nav-title-color: var(--vc-gray-900);\n --vc-nav-item-hover-box-shadow: none;\n --vc-nav-item-active-color: var(--vc-white);\n --vc-nav-item-active-bg: var(--vc-accent-500);\n --vc-nav-item-active-box-shadow: var(--vc-shadow);\n --vc-nav-item-current-color: var(--vc-accent-600);\n /* Calendar day popover */\n --vc-day-popover-container-color: var(--vc-white);\n --vc-day-popover-container-bg: var(--vc-gray-800);\n --vc-day-popover-container-border: var(--vc-gray-700);\n --vc-day-popover-header-color: var(--vc-gray-700);\n /* Popover content */\n --vc-popover-content-color: var(--vc-gray-900);\n --vc-popover-content-bg: var(--vc-gray-50);\n --vc-popover-content-border: var(--vc-gray-300);\n /* Time picker */\n --vc-time-picker-border: var(--vc-gray-300);\n --vc-time-weekday-color: var(--vc-gray-700);\n --vc-time-month-color: var(--vc-accent-600);\n --vc-time-day-color: var(--vc-accent-600);\n --vc-time-year-color: var(--vc-gray-500);\n /* Time select group */\n --vc-time-select-group-bg: var(--vc-gray-50);\n --vc-time-select-group-border: var(--vc-gray-300);\n --vc-time-select-group-icon-color: var(--vc-accent-500);\n /* Base select */\n --vc-select-color: var(--vc-gray-900);\n --vc-select-bg: var(--vc-gray-100);\n --vc-select-hover-bg: var(--vc-gray-200);\n /* Calendar day */\n --vc-day-content-hover-bg: var(--vc-hover-bg);\n --vc-day-content-disabled-color: var(--vc-gray-400);\n}\n\n/* Calendar attributes */\n\n.vc-light.vc-attr,\n .vc-light .vc-attr {\n --vc-content-color: var(--vc-accent-600);\n --vc-highlight-outline-bg: var(--vc-white);\n --vc-highlight-outline-border: var(--vc-accent-600);\n --vc-highlight-outline-content-color: var(--vc-accent-700);\n --vc-highlight-light-bg: var(--vc-accent-200);\n --vc-highlight-light-content-color: var(--vc-accent-900);\n --vc-highlight-solid-bg: var(--vc-accent-600);\n --vc-highlight-solid-content-color: var(--vc-white);\n --vc-dot-bg: var(--vc-accent-600);\n --vc-bar-bg: var(--vc-accent-600);\n }\n\n.vc-dark {\n /* Base */\n --vc-color: var(--vc-white);\n --vc-bg: var(--vc-gray-900);\n --vc-border: var(--vc-gray-700);\n --vc-hover-bg: hsla(216, 15%, 52%, 0.3);\n --vc-focus-ring: 0 0 0 2px rgb(59 130 246 / 0.7);\n /* Calendar header */\n --vc-header-arrow-color: var(--vc-gray-300);\n --vc-header-arrow-hover-bg: var(--vc-gray-800);\n --vc-header-title-color: var(--vc-gray-100);\n /* Calendar weekdays */\n --vc-weekday-color: var(--vc-accent-200);\n /* Calendar weeknumbers */\n --vc-weeknumber-color: var(--vc-gray-500);\n /* Calendar nav */\n --vc-nav-hover-bg: var(--vc-gray-700);\n --vc-nav-title-color: var(--vc-gray-100);\n --vc-nav-item-hover-box-shadow: none;\n --vc-nav-item-active-color: var(--vc-white);\n --vc-nav-item-active-bg: var(--vc-accent-500);\n --vc-nav-item-active-box-shadow: none;\n --vc-nav-item-current-color: var(--vc-accent-400);\n /* Calendar day popover */\n --vc-day-popover-container-color: var(--vc-gray-800);\n --vc-day-popover-container-bg: var(--vc-white);\n --vc-day-popover-container-border: var(--vc-gray-100);\n --vc-day-popover-header-color: var(--vc-gray-300);\n /* Popover content */\n --vc-popover-content-color: var(--vc-white);\n --vc-popover-content-bg: var(--vc-gray-800);\n --vc-popover-content-border: var(--vc-gray-700);\n /* Time picker */\n --vc-time-picker-border: var(--vc-gray-700);\n --vc-time-weekday-color: var(--vc-gray-400);\n --vc-time-month-color: var(--vc-accent-400);\n --vc-time-day-color: var(--vc-accent-400);\n --vc-time-year-color: var(--vc-gray-500);\n /* Time select group */\n --vc-time-select-group-bg: var(--vc-gray-700);\n --vc-time-select-group-border: var(--vc-gray-500);\n --vc-time-select-group-icon-color: var(--vc-accent-400);\n /* Base select */\n --vc-select-color: var(--vc-gray-200);\n --vc-select-bg: var(--vc-gray-700);\n --vc-select-hover-bg: var(--vc-gray-600);\n /* Calendar day */\n --vc-day-content-hover-bg: var(--vc-hover-bg);\n --vc-day-content-disabled-color: var(--vc-gray-600);\n}\n\n/* Calendar attributes */\n\n.vc-dark.vc-attr,\n .vc-dark .vc-attr {\n --vc-content-color: var(--vc-accent-500);\n --vc-highlight-outline-bg: var(--vc-gray-900);\n --vc-highlight-outline-border: var(--vc-accent-300);\n --vc-highlight-outline-content-color: var(--vc-accent-200);\n --vc-highlight-light-bg: var(--vc-accent-800);\n --vc-highlight-light-content-color: var(--vc-accent-100);\n --vc-highlight-solid-bg: var(--vc-accent-500);\n --vc-highlight-solid-content-color: var(--vc-white);\n --vc-dot-bg: var(--vc-accent-500);\n --vc-bar-bg: var(--vc-accent-500);\n }\n\n.vc-container {\n position: relative;\n display: -webkit-inline-flex;\n display: -ms-inline-flexbox;\n display: inline-flex;\n width: -webkit-max-content;\n width: max-content;\n height: -webkit-max-content;\n height: max-content;\n font-family: var(--vc-font-family);\n color: var(--vc-color);\n background-color: var(--vc-bg);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-tap-highlight-color: transparent;\n}\n\n.vc-container,\n .vc-container * {\n box-sizing: border-box;\n }\n\n.vc-container:focus, .vc-container *:focus {\n outline: none;\n }\n\n/* Hides double border within popovers */\n\n.vc-container .vc-container {\n border: none;\n }\n\n.vc-bordered {\n border: 1px solid;\n border-color: var(--vc-border);\n border-radius: var(--vc-rounded-lg);\n}\n\n.vc-expanded {\n min-width: 100%;\n}\n\n.vc-transparent {\n background-color: transparent;\n}\n\n.vc-date-picker-content {\n padding: 0;\n background-color: var(--vc-bg);\n}\n\n.vc-date-picker-content .vc-container {\n border: 0;\n }\n",""]);const o=a},3935:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(8081),r=n.n(i),s=n(3645),a=n.n(s)()(r());a.push([e.id,"\n.dashboard-components .edit {\n border-radius: 6px;\n padding: 1.2rem 1.4rem;\n border: 1px solid #CCC;\n background-color: #FFF8F8;\n}\n.dashboard-components .edit .control-label {\n width: 100px;\n}\n",""]);const o=a},5099:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(8081),r=n.n(i),s=n(3645),a=n.n(s)()(r());a.push([e.id,"\nfieldset[data-v-6724d9c5] {\n padding: 1.6rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\nlegend[data-v-6724d9c5] {\n color: #555;\n}\n",""]);const o=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&a[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},7484:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,i="millisecond",r="second",s="minute",a="hour",o="day",l="week",c="month",u="quarter",h="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,c),s=n-r<0,a=t.clone().add(i+(s?-1:1),c);return+(-(i+(n-r)/(s?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:h,w:l,d:o,D:d,h:a,m:s,s:r,ms:i,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",y={};y[x]=m;var w="$isDayjsObject",k=function(e){return e instanceof _||!(!e||!e[w])},A=function e(t,n,i){var r;if(!t)return x;if("string"==typeof t){var s=t.toLowerCase();y[s]&&(r=s),n&&(y[s]=n,r=s);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var o=t.name;y[o]=t,r=o}return!i&&r&&(x=r),r||!i&&x},S=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},C=b;C.l=A,C.i=k,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=A(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var r=i[2]-1||0,s=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,i=!!C.u(t)||t,u=C.p(e),p=function(e,t){var r=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?r:r.endOf(o)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case h:return i?p(1,0):p(31,11);case c:return i?p(1,m):p(0,m+1);case l:var x=this.$locale().weekStart||0,y=(g<x?g+7:g)-x;return p(i?v-y:v+(6-y),m);case o:case d:return f(b+"Hours",0);case a:return f(b+"Minutes",1);case s:return f(b+"Seconds",2);case r:return f(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[o]=u+"Date",n[d]=u+"Date",n[c]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[s]=u+"Minutes",n[r]=u+"Seconds",n[i]=u+"Milliseconds",n)[l],f=l===o?this.$D+(t-this.$W):t;if(l===c||l===h){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(i,u){var d,p=this;i=Number(i);var f=C.p(u),g=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*i)),p)};if(f===c)return this.set(c,this.$M+i);if(f===h)return this.set(h,this.$y+i);if(f===o)return g(1);if(f===l)return g(7);var m=(d={},d[s]=t,d[a]=n,d[r]=e,d)[f]||1,v=this.$d.getTime()+i*m;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=C.z(this),s=this.$H,a=this.$m,o=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,h=function(e,n,r,s){return e&&(e[n]||e(t,i))||r[n].slice(0,s)},d=function(e){return C.s(s%12||12,e,"0")},f=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(g,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return o+1;case"MM":return C.s(o+1,2,"0");case"MMM":return h(n.monthsShort,o,c,3);case"MMMM":return h(c,o);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,l,2);case"ddd":return h(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(s);case"HH":return C.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(s,a,!0);case"A":return f(s,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,d,p){var f,g=this,m=C.p(d),v=S(i),b=(v.utcOffset()-this.utcOffset())*t,x=this-v,y=function(){return C.m(g,v)};switch(m){case h:f=y()/12;break;case c:f=y();break;case u:f=y()/3;break;case l:f=(x-b)/6048e5;break;case o:f=(x-b)/864e5;break;case a:f=x/n;break;case s:f=x/t;break;case r:f=x/e;break;default:f=x}return p?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=A(e,t,!0);return i&&(n.$L=i),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),E=_.prototype;return S.prototype=E,[["$ms",i],["$s",r],["$m",s],["$H",a],["$W",o],["$M",c],["$y",h],["$D",d]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,_,S),e.$i=!0),S},S.locale=A,S.isDayjs=k,S.unix=function(e){return S(1e3*e)},S.en=y[x],S.Ls=y,S.p={},S}()},9387:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,i,r){var s,a=function(e,n,i){void 0===i&&(i={});var r=new Date(e),s=function(e,n){void 0===n&&(n={});var i=n.timeZoneName||"short",r=e+"|"+i,s=t[r];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[r]=s),s}(n,i);return s.formatToParts(r)},o=function(t,n){for(var i=a(t,n),s=[],o=0;o<i.length;o+=1){var l=i[o],c=l.type,u=l.value,h=e[c];h>=0&&(s[h]=parseInt(u,10))}var d=s[3],p=24===d?0:d,f=s[0]+"-"+s[1]+"-"+s[2]+" "+p+":"+s[4]+":"+s[5]+":000",g=+t;return(r.utc(f).valueOf()-(g-=g%1e3))/6e4},l=i.prototype;l.tz=function(e,t){void 0===e&&(e=s);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:e}),o=Math.round((i-new Date(a))/1e3/60),l=r(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-o,!0);if(t){var c=l.utcOffset();l=l.add(n-c,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var i=n&&t,a=n||t||s,l=o(+r(),a);if("string"!=typeof e)return r(e).tz(a);var c=function(e,t,n){var i=e-60*t*1e3,r=o(i,n);if(t===r)return[i,t];var s=o(i-=60*(r-t)*1e3,n);return r===s?[i,r]:[e-60*Math.min(r,s)*1e3,Math.max(r,s)]}(r.utc(e,i).valueOf(),l,a),u=c[0],h=c[1],d=r(u).utcOffset(h);return d.$x.$timezone=a,d},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){s=e}}}()},178:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,r,s){var a=r.prototype;s.utc=function(e){return new r({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=s(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var o=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(i,r){var s=this.$utils().u;if(s(i))return this.$u?0:s(this.$offset)?c.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var r=(""+i[0]).match(n)||["-",0,0],s=r[0],a=60*+r[1]+ +r[2];return 0===a?0:"+"===s?a:-a}(i),null===i))return this;var a=Math.abs(i)<=16?60*i:i,o=this;if(r)return o.$offset=a,o.$u=0===i,o;if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(a+l,e)).$offset=a,o.$x.$localOffset=l}else o=this.utc();return o};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var h=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var i=this.local(),r=s(e).local();return d.call(i,r,t,n)}}}()},8552:(e,t,n)=>{var i=n(852)(n(5639),"DataView");e.exports=i},1989:(e,t,n)=>{var i=n(1789),r=n(401),s=n(7667),a=n(1327),o=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},8407:(e,t,n)=>{var i=n(7040),r=n(4125),s=n(2117),a=n(7518),o=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},7071:(e,t,n)=>{var i=n(852)(n(5639),"Map");e.exports=i},3369:(e,t,n)=>{var i=n(4785),r=n(1285),s=n(6e3),a=n(9916),o=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},3818:(e,t,n)=>{var i=n(852)(n(5639),"Promise");e.exports=i},8525:(e,t,n)=>{var i=n(852)(n(5639),"Set");e.exports=i},8668:(e,t,n)=>{var i=n(3369),r=n(619),s=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=s,e.exports=a},6384:(e,t,n)=>{var i=n(8407),r=n(7465),s=n(3779),a=n(7599),o=n(4758),l=n(4309);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=a,c.prototype.has=o,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var i=n(5639).Symbol;e.exports=i},1149:(e,t,n)=>{var i=n(5639).Uint8Array;e.exports=i},577:(e,t,n)=>{var i=n(852)(n(5639),"WeakMap");e.exports=i},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4963:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var a=e[n];t(a,n,e)&&(s[r++]=a)}return s}},7443:(e,t,n)=>{var i=n(2118);e.exports=function(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}},1196:e=>{e.exports=function(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}},4636:(e,t,n)=>{var i=n(2545),r=n(5694),s=n(1469),a=n(4144),o=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=s(e),u=!n&&r(e),h=!n&&!u&&a(e),d=!n&&!u&&!h&&l(e),p=n||u||h||d,f=p?i(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||o(m,g))||f.push(m);return f}},9932:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},2488:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},2663:e=>{e.exports=function(e,t,n,i){var r=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);return n}},2908:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},4286:e=>{e.exports=function(e){return e.split("")}},9029:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},4865:(e,t,n)=>{var i=n(9465),r=n(7813),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];s.call(e,t)&&r(a,n)&&(void 0!==n||t in e)||i(e,t,n)}},8470:(e,t,n)=>{var i=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},9465:(e,t,n)=>{var i=n(8777);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9881:(e,t,n)=>{var i=n(7816),r=n(9291)(i);e.exports=r},1848:e=>{e.exports=function(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1}},1078:(e,t,n)=>{var i=n(2488),r=n(7285);e.exports=function e(t,n,s,a,o){var l=-1,c=t.length;for(s||(s=r),o||(o=[]);++l<c;){var u=t[l];n>0&&s(u)?n>1?e(u,n-1,s,a,o):i(o,u):a||(o[o.length]=u)}return o}},8483:(e,t,n)=>{var i=n(5063)();e.exports=i},7816:(e,t,n)=>{var i=n(8483),r=n(3674);e.exports=function(e,t){return e&&i(e,t,r)}},7786:(e,t,n)=>{var i=n(1811),r=n(327);e.exports=function(e,t){for(var n=0,s=(t=i(t,e)).length;null!=e&&n<s;)e=e[r(t[n++])];return n&&n==s?e:void 0}},8866:(e,t,n)=>{var i=n(2488),r=n(1469);e.exports=function(e,t,n){var s=t(e);return r(e)?s:i(s,n(e))}},4239:(e,t,n)=>{var i=n(2705),r=n(9607),s=n(2333),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):s(e)}},8565:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var i=n(1848),r=n(2722),s=n(2351);e.exports=function(e,t,n){return t==t?s(e,t,n):i(e,r,n)}},9454:(e,t,n)=>{var i=n(4239),r=n(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},939:(e,t,n)=>{var i=n(2492),r=n(7005);e.exports=function e(t,n,s,a,o){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,s,a,e,o))}},2492:(e,t,n)=>{var i=n(6384),r=n(7114),s=n(8351),a=n(6096),o=n(4160),l=n(1469),c=n(4144),u=n(6719),h="[object Arguments]",d="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var b=l(e),x=l(t),y=b?d:o(e),w=x?d:o(t),k=(y=y==h?p:y)==p,A=(w=w==h?p:w)==p,S=y==w;if(S&&c(e)){if(!c(t))return!1;b=!0,k=!1}if(S&&!k)return v||(v=new i),b||u(e)?r(e,t,n,g,m,v):s(e,t,y,n,g,m,v);if(!(1&n)){var C=k&&f.call(e,"__wrapped__"),_=A&&f.call(t,"__wrapped__");if(C||_){var E=C?e.value():e,L=_?t.value():t;return v||(v=new i),m(E,L,n,g,v)}}return!!S&&(v||(v=new i),a(e,t,n,g,m,v))}},2958:(e,t,n)=>{var i=n(6384),r=n(939);e.exports=function(e,t,n,s){var a=n.length,o=a,l=!s;if(null==e)return!o;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){var u=(c=n[a])[0],h=e[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in e))return!1}else{var p=new i;if(s)var f=s(h,d,u,e,t,p);if(!(void 0===f?r(d,h,3,s,p):f))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var i=n(3560),r=n(5346),s=n(3218),a=n(346),o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,d=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||r(e))&&(i(e)?d:o).test(a(e))}},8749:(e,t,n)=>{var i=n(4239),r=n(1780),s=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&r(e.length)&&!!a[i(e)]}},7206:(e,t,n)=>{var i=n(1573),r=n(6432),s=n(6557),a=n(1469),o=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?a(e)?r(e[0],e[1]):i(e):o(e)}},280:(e,t,n)=>{var i=n(5726),r=n(6916),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9199:(e,t,n)=>{var i=n(9881),r=n(8612);e.exports=function(e,t){var n=-1,s=r(e)?Array(e.length):[];return i(e,(function(e,i,r){s[++n]=t(e,i,r)})),s}},1573:(e,t,n)=>{var i=n(2958),r=n(1499),s=n(2634);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},6432:(e,t,n)=>{var i=n(939),r=n(7361),s=n(9095),a=n(5403),o=n(9162),l=n(2634),c=n(327);e.exports=function(e,t){return a(e)&&o(t)?l(c(e),t):function(n){var a=r(n,e);return void 0===a&&a===t?s(n,e):i(t,a,3)}}},9556:(e,t,n)=>{var i=n(9932),r=n(7786),s=n(7206),a=n(9199),o=n(1131),l=n(1717),c=n(5022),u=n(6557),h=n(1469);e.exports=function(e,t,n){t=t.length?i(t,(function(e){return h(e)?function(t){return r(t,1===e.length?e[0]:e)}:e})):[u];var d=-1;t=i(t,l(s));var p=a(e,(function(e,n,r){return{criteria:i(t,(function(t){return t(e)})),index:++d,value:e}}));return o(p,(function(e,t){return c(e,t,n)}))}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var i=n(7786);e.exports=function(e){return function(t){return i(t,e)}}},8674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},98:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,i,r,s){for(var a=-1,o=n(t((i-e)/(r||1)),0),l=Array(o);o--;)l[s?o:++a]=e,e+=r;return l}},8190:e=>{var t=Math.floor;e.exports=function(e,n){var i="";if(!e||n<1||n>9007199254740991)return i;do{n%2&&(i+=e),(n=t(n/2))&&(e+=e)}while(n);return i}},5976:(e,t,n)=>{var i=n(6557),r=n(5357),s=n(61);e.exports=function(e,t){return s(r(e,t,i),e+"")}},611:(e,t,n)=>{var i=n(4865),r=n(1811),s=n(5776),a=n(3218),o=n(327);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=r(t,e)).length,h=u-1,d=e;null!=d&&++c<u;){var p=o(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=h){var g=d[p];void 0===(f=l?l(g,p,d):void 0)&&(f=a(g)?g:s(t[c+1])?[]:{})}i(d,p,f),d=d[p]}return e}},6560:(e,t,n)=>{var i=n(5703),r=n(8777),s=n(6557),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:s;e.exports=a},4259:e=>{e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++i<r;)s[i]=e[i+t];return s}},1131:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},2545:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},531:(e,t,n)=>{var i=n(2705),r=n(9932),s=n(1469),a=n(3448),o=i?i.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return r(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var i=n(7246),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},5652:(e,t,n)=>{var i=n(8668),r=n(7443),s=n(1196),a=n(4757),o=n(3593),l=n(1814);e.exports=function(e,t,n){var c=-1,u=r,h=e.length,d=!0,p=[],f=p;if(n)d=!1,u=s;else if(h>=200){var g=t?null:o(e);if(g)return l(g);d=!1,u=a,f=new i}else f=t?[]:p;e:for(;++c<h;){var m=e[c],v=t?t(m):m;if(m=n||0!==m?m:0,d&&v==v){for(var b=f.length;b--;)if(f[b]===v)continue e;t&&f.push(v),p.push(m)}else u(f,v,n)||(f!==p&&f.push(v),p.push(m))}return p}},1757:e=>{e.exports=function(e,t,n){for(var i=-1,r=e.length,s=t.length,a={};++i<r;){var o=i<s?t[i]:void 0;n(a,e[i],o)}return a}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var i=n(1469),r=n(5403),s=n(5514),a=n(9833);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:s(a(e))}},180:(e,t,n)=>{var i=n(4259);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}},6393:(e,t,n)=>{var i=n(3448);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,s=e==e,a=i(e),o=void 0!==t,l=null===t,c=t==t,u=i(t);if(!l&&!u&&!a&&e>t||a&&o&&c&&!l&&!u||r&&o&&c||!n&&c||!s)return 1;if(!r&&!a&&!u&&e<t||u&&n&&s&&!r&&!a||l&&n&&s||!o&&s||!c)return-1}return 0}},5022:(e,t,n)=>{var i=n(6393);e.exports=function(e,t,n){for(var r=-1,s=e.criteria,a=t.criteria,o=s.length,l=n.length;++r<o;){var c=i(s[r],a[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}},4429:(e,t,n)=>{var i=n(5639)["__core-js_shared__"];e.exports=i},9291:(e,t,n)=>{var i=n(8612);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var s=n.length,a=t?s:-1,o=Object(n);(t?a--:++a<s)&&!1!==r(o[a],a,o););return n}}},5063:e=>{e.exports=function(e){return function(t,n,i){for(var r=-1,s=Object(t),a=i(t),o=a.length;o--;){var l=a[e?o:++r];if(!1===n(s[l],l,s))break}return t}}},8805:(e,t,n)=>{var i=n(180),r=n(2689),s=n(3140),a=n(9833);e.exports=function(e){return function(t){t=a(t);var n=r(t)?s(t):void 0,o=n?n[0]:t.charAt(0),l=n?i(n,1).join(""):t.slice(1);return o[e]()+l}}},5393:(e,t,n)=>{var i=n(2663),r=n(3816),s=n(8748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return i(s(r(t).replace(a,"")),e,"")}}},7445:(e,t,n)=>{var i=n(98),r=n(6612),s=n(8601);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&r(t,n,a)&&(n=a=void 0),t=s(t),void 0===n?(n=t,t=0):n=s(n),a=void 0===a?t<n?1:-1:s(a),i(t,n,a,e)}}},3593:(e,t,n)=>{var i=n(8525),r=n(308),s=n(1814),a=i&&1/s(new i([,-0]))[1]==1/0?function(e){return new i(e)}:r;e.exports=a},9389:(e,t,n)=>{var i=n(8674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=i},8777:(e,t,n)=>{var i=n(852),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},7114:(e,t,n)=>{var i=n(8668),r=n(2908),s=n(4757);e.exports=function(e,t,n,a,o,l){var c=1&n,u=e.length,h=t.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var f=-1,g=!0,m=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],b=t[f];if(a)var x=c?a(b,v,f,t,e,l):a(v,b,f,e,t,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!r(t,(function(e,t){if(!s(m,t)&&(v===e||o(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==b&&!o(v,b,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8351:(e,t,n)=>{var i=n(2705),r=n(1149),s=n(7813),a=n(7114),o=n(8776),l=n(1814),c=i?i.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,i,c,h,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=o;case"[object Set]":var f=1&i;if(p||(p=l),e.size!=t.size&&!f)return!1;var g=d.get(e);if(g)return g==t;i|=2,d.set(e,t);var m=a(p(e),p(t),i,c,h,d);return d.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,n)=>{var i=n(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,a,o){var l=1&n,c=i(e),u=c.length;if(u!=i(t).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in t:r.call(t,d)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var g=!0;o.set(e,t),o.set(t,e);for(var m=l;++h<u;){var v=e[d=c[h]],b=t[d];if(s)var x=l?s(b,v,d,t,e,o):s(v,b,d,e,t,o);if(!(void 0===x?v===b||a(v,b,n,s,o):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(g=!1)}return o.delete(e),o.delete(t),g}},1957:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},8234:(e,t,n)=>{var i=n(8866),r=n(9551),s=n(3674);e.exports=function(e){return i(e,s,r)}},5050:(e,t,n)=>{var i=n(7019);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var i=n(9162),r=n(3674);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var s=t[n],a=e[s];t[n]=[s,a,i(a)]}return t}},852:(e,t,n)=>{var i=n(8458),r=n(7801);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},9607:(e,t,n)=>{var i=n(2705),r=Object.prototype,s=r.hasOwnProperty,a=r.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[o]=n:delete e[o]),r}},9551:(e,t,n)=>{var i=n(4963),r=n(479),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(e){return null==e?[]:(e=Object(e),i(a(e),(function(t){return s.call(e,t)})))}:r;e.exports=o},4160:(e,t,n)=>{var i=n(8552),r=n(7071),s=n(3818),a=n(8525),o=n(577),l=n(4239),c=n(346),u="[object Map]",h="[object Promise]",d="[object Set]",p="[object WeakMap]",f="[object DataView]",g=c(i),m=c(r),v=c(s),b=c(a),x=c(o),y=l;(i&&y(new i(new ArrayBuffer(1)))!=f||r&&y(new r)!=u||s&&y(s.resolve())!=h||a&&y(new a)!=d||o&&y(new o)!=p)&&(y=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case g:return f;case m:return u;case v:return h;case b:return d;case x:return p}return t}),e.exports=y},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var i=n(1811),r=n(5694),s=n(1469),a=n(5776),o=n(1780),l=n(327);e.exports=function(e,t,n){for(var c=-1,u=(t=i(t,e)).length,h=!1;++c<u;){var d=l(t[c]);if(!(h=null!=e&&n(e,d)))break;e=e[d]}return h||++c!=u?h:!!(u=null==e?0:e.length)&&o(u)&&a(d,u)&&(s(e)||r(e))}},2689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},3157:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},1789:(e,t,n)=>{var i=n(4536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},1866:(e,t,n)=>{var i=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},7285:(e,t,n)=>{var i=n(2705),r=n(5694),s=n(1469),a=i?i.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(a&&e&&e[a])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var i=n(7813),r=n(8612),s=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var o=typeof t;return!!("number"==o?r(n)&&s(t,n.length):"string"==o&&t in n)&&i(n[t],e)}},5403:(e,t,n)=>{var i=n(1469),r=n(3448),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(a.test(e)||!s.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var i,r=n(4429),s=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!s&&s in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var i=n(3218);e.exports=function(e){return e==e&&!i(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var i=n(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var i=n(8470);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var i=n(8470);e.exports=function(e){return i(this.__data__,e)>-1}},4705:(e,t,n)=>{var i=n(8470);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},4785:(e,t,n)=>{var i=n(1989),r=n(8407),s=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||r),string:new i}}},1285:(e,t,n)=>{var i=n(5050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).get(e)}},9916:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).has(e)}},5265:(e,t,n)=>{var i=n(5050);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4523:(e,t,n)=>{var i=n(8306);e.exports=function(e){var t=i(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var i=n(852)(Object,"create");e.exports=i},6916:(e,t,n)=>{var i=n(5569)(Object.keys,Object);e.exports=i},1167:(e,t,n)=>{e=n.nmd(e);var i=n(1957),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,a=s&&s.exports===r&&i.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var i=n(6874),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=r(s.length-t,0),l=Array(o);++a<o;)l[a]=s[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=s[a];return c[t]=n(l),i(e,this,c)}}},5639:(e,t,n)=>{var i=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,s=i||r||Function("return this")();e.exports=s},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var i=n(6560),r=n(1275)(i);e.exports=r},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),s=16-(r-i);if(i=r,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var i=n(8407);e.exports=function(){this.__data__=new i,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var i=n(8407),r=n(7071),s=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(a)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}},3140:(e,t,n)=>{var i=n(4286),r=n(2689),s=n(676);e.exports=function(e){return r(e)?s(e):i(e)}},5514:(e,t,n)=>{var i=n(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(s,"$1"):n||e)})),t}));e.exports=a},327:(e,t,n)=>{var i=n(3448);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7246:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},676:e=>{var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",s="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[s,a,o].join("|")+")"+c+l+")*"),h="(?:"+[s+i+"?",i,a,o,n].join("|")+")",d=RegExp(r+"(?="+r+")|"+h+u,"g");e.exports=function(e){return e.match(d)||[]}},2757:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+s+"]",o="\\d+",l="["+n+"]",c="["+i+"]",u="[^"+t+s+o+n+i+r+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+r+"]",f="(?:"+c+"|"+u+")",g="(?:"+p+"|"+u+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",x="[\\ufe0e\\ufe0f]?",y=x+b+("(?:\\u200d(?:"+["[^"+t+"]",h,d].join("|")+")"+x+b+")*"),w="(?:"+[l,h,d].join("|")+")"+y,k=RegExp([p+"?"+c+"+"+m+"(?="+[a,p,"$"].join("|")+")",g+"+"+v+"(?="+[a,p+f,"$"].join("|")+")",p+"?"+f+"+"+m,p+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,w].join("|"),"g");e.exports=function(e){return e.match(k)||[]}},8929:(e,t,n)=>{var i=n(8403),r=n(5393)((function(e,t,n){return t=t.toLowerCase(),e+(n?i(t):t)}));e.exports=r},8403:(e,t,n)=>{var i=n(9833),r=n(1700);e.exports=function(e){return r(i(e).toLowerCase())}},5703:e=>{e.exports=function(e){return function(){return e}}},3816:(e,t,n)=>{var i=n(9389),r=n(9833),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(s,i).replace(a,"")}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2348:(e,t,n)=>{var i=n(1078),r=1/0;e.exports=function(e){return(null==e?0:e.length)?i(e,r):[]}},7361:(e,t,n)=>{var i=n(7786);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},8721:(e,t,n)=>{var i=n(8565),r=n(222);e.exports=function(e,t){return null!=e&&r(e,t,i)}},9095:(e,t,n)=>{var i=n(13),r=n(222);e.exports=function(e,t){return null!=e&&r(e,t,i)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,n)=>{var i=n(9454),r=n(7005),s=Object.prototype,a=s.hasOwnProperty,o=s.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&a.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var i=n(3560),r=n(1780);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},4144:(e,t,n)=>{e=n.nmd(e);var i=n(5639),r=n(5062),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,o=a&&a.exports===s?i.Buffer:void 0,l=(o?o.isBuffer:void 0)||r;e.exports=l},3560:(e,t,n)=>{var i=n(4239),r=n(3218);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,n)=>{var i=n(4239),r=n(7005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},6719:(e,t,n)=>{var i=n(8749),r=n(1717),s=n(1167),a=s&&s.isTypedArray,o=a?r(a):i;e.exports=o},3674:(e,t,n)=>{var i=n(4636),r=n(280),s=n(8612);e.exports=function(e){return s(e)?i(e):r(e)}},8306:(e,t,n)=>{var i=n(3369);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=e.apply(this,i);return n.cache=s.set(r,a)||s,a};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},308:e=>{e.exports=function(){}},9601:(e,t,n)=>{var i=n(371),r=n(9152),s=n(5403),a=n(327);e.exports=function(e){return s(e)?i(a(e)):r(e)}},6026:(e,t,n)=>{var i=n(7445)();e.exports=i},6796:(e,t,n)=>{var i=n(8190),r=n(6612),s=n(554),a=n(9833);e.exports=function(e,t,n){return t=(n?r(e,t,n):void 0===t)?1:s(t),i(a(e),t)}},6968:(e,t,n)=>{var i=n(611);e.exports=function(e,t,n){return null==e?e:i(e,t,n)}},1921:(e,t,n)=>{var i=n(611);e.exports=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:i(e,t,n,r)}},9734:(e,t,n)=>{var i=n(1078),r=n(9556),s=n(5976),a=n(6612),o=s((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])}));e.exports=o},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var i=n(4841),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var i=n(8601);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var i=n(7561),r=n(3218),s=n(3448),a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9833:(e,t,n)=>{var i=n(531);e.exports=function(e){return null==e?"":i(e)}},4908:(e,t,n)=>{var i=n(5652);e.exports=function(e){return e&&e.length?i(e):[]}},1700:(e,t,n)=>{var i=n(8805)("toUpperCase");e.exports=i},8748:(e,t,n)=>{var i=n(9029),r=n(3157),s=n(9833),a=n(2757);e.exports=function(e,t,n){return e=s(e),void 0===(t=n?void 0:t)?r(e)?a(e):i(e):e.match(t)||[]}},7287:(e,t,n)=>{var i=n(4865),r=n(1757);e.exports=function(e,t){return r(e||[],t||[],i)}},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var s={},a=[],o=0;o<e.length;o++){var l=e[o],c=i.base?l[0]+i.base:l[0],u=s[c]||0,h="".concat(c," ").concat(u);s[c]=u+1;var d=n(h),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var f=r(p,i);i.byIndex=o,t.splice(o,0,{identifier:h,updater:f,references:1})}a.push(h)}return a}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var s=i(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<s.length;a++){var o=n(s[a]);t[o].references--}for(var l=i(e,r),c=0;c<s.length;c++){var u=n(s[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}s=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{BaseTransition:()=>Mi,BaseTransitionPropsValidators:()=>Di,Comment:()=>Hs,DeprecationTypes:()=>to,EffectScope:()=>pe,ErrorCodes:()=>cn,ErrorTypeStrings:()=>qa,Fragment:()=>Ys,KeepAlive:()=>Vi,ReactiveEffect:()=>be,Static:()=>Ws,Suspense:()=>oi,Teleport:()=>Bs,Text:()=>js,TrackOpTypes:()=>an,Transition:()=>lo,TransitionGroup:()=>il,TriggerOpTypes:()=>on,VueElement:()=>Zo,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>dn,callWithErrorHandling:()=>hn,camelize:()=>M,capitalize:()=>I,cloneVNode:()=>ca,compatUtils:()=>eo,computed:()=>ja,createApp:()=>Rl,createBlock:()=>Qs,createCommentVNode:()=>da,createElementBlock:()=>Js,createElementVNode:()=>sa,createHydrationRenderer:()=>Cs,createPropsRestProxy:()=>Rr,createRenderer:()=>Ss,createSSRApp:()=>Il,createSlots:()=>dr,createStaticVNode:()=>ha,createTextVNode:()=>ua,createVNode:()=>aa,customRef:()=>Qt,defineAsyncComponent:()=>ji,defineComponent:()=>zi,defineCustomElement:()=>$o,defineEmits:()=>kr,defineExpose:()=>Ar,defineModel:()=>_r,defineOptions:()=>Sr,defineProps:()=>wr,defineSSRCustomElement:()=>Go,defineSlots:()=>Cr,devtools:()=>Za,effect:()=>Ae,effectScope:()=>fe,getCurrentInstance:()=>ka,getCurrentScope:()=>me,getTransitionRawChildren:()=>Bi,guardReactiveProps:()=>la,h:()=>Wa,handleError:()=>pn,hasInjectionContext:()=>es,hydrate:()=>Ol,initCustomFormatter:()=>Xa,initDirectivesForSSR:()=>zl,inject:()=>Qr,isMemoSame:()=>Ua,isProxy:()=>Ot,isReactive:()=>Dt,isReadonly:()=>Pt,isRef:()=>Ht,isRuntimeOnly:()=>Ra,isShallow:()=>Mt,isVNode:()=>ea,markRaw:()=>It,mergeDefaults:()=>Mr,mergeModels:()=>Or,mergeProps:()=>ma,nextTick:()=>An,normalizeClass:()=>Z,normalizeProps:()=>K,normalizeStyle:()=>V,onActivated:()=>$i,onBeforeMount:()=>tr,onBeforeUnmount:()=>sr,onBeforeUpdate:()=>ir,onDeactivated:()=>Gi,onErrorCaptured:()=>ur,onMounted:()=>nr,onRenderTracked:()=>cr,onRenderTriggered:()=>lr,onScopeDispose:()=>ve,onServerPrefetch:()=>or,onUnmounted:()=>ar,onUpdated:()=>rr,openBlock:()=>Us,popScopeId:()=>Hn,provide:()=>Jr,proxyRefs:()=>Kt,pushScopeId:()=>jn,queuePostFlushCb:()=>_n,reactive:()=>Ct,readonly:()=>Et,ref:()=>Wt,registerRuntimeCompiler:()=>Oa,render:()=>Ml,renderList:()=>hr,renderSlot:()=>pr,resolveComponent:()=>Qn,resolveDirective:()=>ni,resolveDynamicComponent:()=>ti,resolveFilter:()=>Qa,resolveTransitionHooks:()=>Ri,setBlockTracking:()=>Zs,setDevtoolsHook:()=>Ka,setTransitionHooks:()=>Fi,shallowReactive:()=>_t,shallowReadonly:()=>Lt,shallowRef:()=>Xt,ssrContextKey:()=>pi,ssrUtils:()=>Ja,stop:()=>Se,toDisplayString:()=>le,toHandlerKey:()=>N,toHandlers:()=>gr,toRaw:()=>Rt,toRef:()=>rn,toRefs:()=>en,toValue:()=>qt,transformVNodeArgs:()=>na,triggerRef:()=>$t,unref:()=>Gt,useAttrs:()=>Tr,useCssModule:()=>Ko,useCssVars:()=>Do,useModel:()=>Ha,useSSRContext:()=>fi,useSlots:()=>Lr,useTransitionState:()=>Li,vModelCheckbox:()=>dl,vModelDynamic:()=>xl,vModelRadio:()=>fl,vModelSelect:()=>gl,vModelText:()=>hl,vShow:()=>Eo,version:()=>$a,warn:()=>Ga,watch:()=>xi,watchEffect:()=>gi,watchPostEffect:()=>mi,watchSyncEffect:()=>vi,withAsyncContext:()=>Ir,withCtx:()=>Xn,withDefaults:()=>Er,withDirectives:()=>Si,withKeys:()=>_l,withMemo:()=>Va,withModifiers:()=>Sl,withScopeId:()=>Wn});var t={};function i(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.r(t),n.d(t,{hasBrowserEnv:()=>Yg,hasStandardBrowserEnv:()=>jg,hasStandardBrowserWebWorkerEnv:()=>Wg});const r={},s=[],a=()=>{},o=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,h=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,g=e=>"[object Map]"===S(e),m=e=>"[object Set]"===S(e),v=e=>"[object Date]"===S(e),b=e=>"function"==typeof e,x=e=>"string"==typeof e,y=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,k=e=>(w(e)||b(e))&&b(e.then)&&b(e.catch),A=Object.prototype.toString,S=e=>A.call(e),C=e=>S(e).slice(8,-1),_=e=>"[object Object]"===S(e),E=e=>x(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,L=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=i("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,M=D((e=>e.replace(P,((e,t)=>t?t.toUpperCase():"")))),O=/\B([A-Z])/g,R=D((e=>e.replace(O,"-$1").toLowerCase())),I=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),N=D((e=>e?`on${I(e)}`:"")),F=(e,t)=>!Object.is(e,t),B=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},z=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Y=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j=e=>{const t=x(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const W=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});const X=i("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function V(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=x(i)?q(i):V(i);if(r)for(const e in r)t[e]=r[e]}return t}if(x(e)||w(e))return e}const U=/;(?![^(]*\))/g,$=/:([^]+)/,G=/\/\*[^]*?\*\//g;function q(e){const t={};return e.replace(G,"").split(U).forEach((e=>{if(e){const n=e.split($);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Z(e){let t="";if(x(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const i=Z(e[n]);i&&(t+=i+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function K(e){if(!e)return null;let{class:t,style:n}=e;return t&&!x(t)&&(e.class=Z(t)),n&&(e.style=V(n)),e}const J=i("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),Q=i("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),ee=i("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),te=i("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),ne="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ie=i(ne);function re(e){return!!e||""===e}function se(e,t){if(e===t)return!0;let n=v(e),i=v(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=y(e),i=y(t),n||i)return e===t;if(n=f(e),i=f(t),n||i)return!(!n||!i)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=se(e[i],t[i]);return n}(e,t);if(n=w(e),i=w(t),n||i){if(!n||!i)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const i=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(i&&!r||!i&&r||!se(e[n],t[n]))return!1}}return String(e)===String(t)}function ae(e,t){return e.findIndex((e=>se(e,t)))}const oe=e=>!(!e||!0!==e.__v_isRef),le=e=>x(e)?e:null==e?"":f(e)||w(e)&&(e.toString===A||!b(e.toString))?oe(e)?le(e.value):JSON.stringify(e,ce,2):String(e),ce=(e,t)=>oe(t)?ce(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],i)=>(e[ue(t,i)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:y(t)?ue(t):!w(t)||f(t)||_(t)?t:String(t),ue=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let he,de;class pe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=he,!e&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=he;try{return he=this,e()}finally{he=t}}else 0}on(){he=this}off(){he=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function fe(e){return new pe(e)}function ge(e,t=he){t&&t.active&&t.effects.push(e)}function me(){return he}function ve(e){he&&he.cleanups.push(e)}class be{constructor(e,t,n,i){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,ge(this,i)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Le();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(xe(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Te()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ce,t=de;try{return Ce=!0,de=this,this._runnings++,ye(this),this.fn()}finally{we(this),this._runnings--,de=t,Ce=e}}stop(){this.active&&(ye(this),we(this),this.onStop&&this.onStop(),this.active=!1)}}function xe(e){return e.value}function ye(e){e._trackId++,e._depsLength=0}function we(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ke(e.deps[t],e);e.deps.length=e._depsLength}}function ke(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function Ae(e,t){e.effect instanceof be&&(e=e.effect.fn);const n=new be(e,a,(()=>{n.dirty&&n.run()}));t&&(u(n,t),t.scope&&ge(n,t.scope)),t&&t.lazy||n.run();const i=n.run.bind(n);return i.effect=n,i}function Se(e){e.effect.stop()}let Ce=!0,_e=0;const Ee=[];function Le(){Ee.push(Ce),Ce=!1}function Te(){const e=Ee.pop();Ce=void 0===e||e}function De(){_e++}function Pe(){for(_e--;!_e&&Oe.length;)Oe.shift()()}function Me(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&ke(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oe=[];function Re(e,t,n){De();for(const n of e.keys()){let i;n._dirtyLevel<t&&(null!=i?i:i=e.get(n)===n._trackId)&&(n._shouldSchedule||(n._shouldSchedule=0===n._dirtyLevel),n._dirtyLevel=t),n._shouldSchedule&&(null!=i?i:i=e.get(n)===n._trackId)&&(n.trigger(),n._runnings&&!n.allowRecurse||2===n._dirtyLevel||(n._shouldSchedule=!1,n.scheduler&&Oe.push(n.scheduler)))}Pe()}const Ie=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ne=new WeakMap,Fe=Symbol(""),Be=Symbol("");function ze(e,t,n){if(Ce&&de){let t=Ne.get(e);t||Ne.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=Ie((()=>t.delete(n)))),Me(de,i)}}function Ye(e,t,n,i,r,s){const a=Ne.get(e);if(!a)return;let o=[];if("clear"===t)o=[...a.values()];else if("length"===n&&f(e)){const e=Number(i);a.forEach(((t,n)=>{("length"===n||!y(n)&&n>=e)&&o.push(t)}))}else switch(void 0!==n&&o.push(a.get(n)),t){case"add":f(e)?E(n)&&o.push(a.get("length")):(o.push(a.get(Fe)),g(e)&&o.push(a.get(Be)));break;case"delete":f(e)||(o.push(a.get(Fe)),g(e)&&o.push(a.get(Be)));break;case"set":g(e)&&o.push(a.get(Fe))}De();for(const e of o)e&&Re(e,4);Pe()}const je=i("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),We=Xe();function Xe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Rt(this);for(let e=0,t=this.length;e<t;e++)ze(n,0,e+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Rt)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Le(),De();const n=Rt(this)[t].apply(this,e);return Pe(),Te(),n}})),e}function Ve(e){y(e)||(e=String(e));const t=Rt(this);return ze(t,0,e),t.hasOwnProperty(e)}class Ue{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const i=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(i?r?St:At:r?kt:wt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=f(e);if(!i){if(s&&p(We,t))return Reflect.get(We,t,n);if("hasOwnProperty"===t)return Ve}const a=Reflect.get(e,t,n);return(y(t)?He.has(t):je(t))?a:(i||ze(e,0,t),r?a:Ht(a)?s&&E(t)?a:a.value:w(a)?i?Et(a):Ct(a):a)}}class $e extends Ue{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];if(!this._isShallow){const t=Pt(r);if(Mt(n)||Pt(n)||(r=Rt(r),n=Rt(n)),!f(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const s=f(e)&&E(t)?Number(t)<e.length:p(e,t),a=Reflect.set(e,t,n,i);return e===Rt(i)&&(s?F(n,r)&&Ye(e,"set",t,n):Ye(e,"add",t,n)),a}deleteProperty(e,t){const n=p(e,t),i=(e[t],Reflect.deleteProperty(e,t));return i&&n&&Ye(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return y(t)&&He.has(t)||ze(e,0,t),n}ownKeys(e){return ze(e,0,f(e)?"length":Fe),Reflect.ownKeys(e)}}class Ge extends Ue{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const qe=new $e,Ze=new Ge,Ke=new $e(!0),Je=new Ge(!0),Qe=e=>e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,i=!1){const r=Rt(e=e.__v_raw),s=Rt(t);n||(F(t,s)&&ze(r,0,t),ze(r,0,s));const{has:a}=et(r),o=i?Qe:n?Ft:Nt;return a.call(r,t)?o(e.get(t)):a.call(r,s)?o(e.get(s)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,i=Rt(n),r=Rt(e);return t||(F(e,r)&&ze(i,0,e),ze(i,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function it(e,t=!1){return e=e.__v_raw,!t&&ze(Rt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e){e=Rt(e);const t=Rt(this);return et(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function st(e,t){t=Rt(t);const n=Rt(this),{has:i,get:r}=et(n);let s=i.call(n,e);s||(e=Rt(e),s=i.call(n,e));const a=r.call(n,e);return n.set(e,t),s?F(t,a)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function at(e){const t=Rt(this),{has:n,get:i}=et(t);let r=n.call(t,e);r||(e=Rt(e),r=n.call(t,e));i&&i.call(t,e);const s=t.delete(e);return r&&Ye(t,"delete",e,void 0),s}function ot(){const e=Rt(this),t=0!==e.size,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function lt(e,t){return function(n,i){const r=this,s=r.__v_raw,a=Rt(s),o=t?Qe:e?Ft:Nt;return!e&&ze(a,0,Fe),s.forEach(((e,t)=>n.call(i,o(e),o(t),r)))}}function ct(e,t,n){return function(...i){const r=this.__v_raw,s=Rt(r),a=g(s),o="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=r[e](...i),u=n?Qe:t?Ft:Nt;return!t&&ze(s,0,l?Be:Fe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:o?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ht(){const e={get(e){return tt(this,e)},get size(){return it(this)},has:nt,add:rt,set:st,delete:at,clear:ot,forEach:lt(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return it(this)},has:nt,add:rt,set:st,delete:at,clear:ot,forEach:lt(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return it(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:lt(!0,!1)},i={get(e){return tt(this,e,!0,!0)},get size(){return it(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:lt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ct(r,!1,!1),n[r]=ct(r,!0,!1),t[r]=ct(r,!1,!0),i[r]=ct(r,!0,!0)})),[e,n,t,i]}const[dt,pt,ft,gt]=ht();function mt(e,t){const n=t?e?gt:ft:e?pt:dt;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(p(n,i)&&i in t?n:t,i,r)}const vt={get:mt(!1,!1)},bt={get:mt(!1,!0)},xt={get:mt(!0,!1)},yt={get:mt(!0,!0)};const wt=new WeakMap,kt=new WeakMap,At=new WeakMap,St=new WeakMap;function Ct(e){return Pt(e)?e:Tt(e,!1,qe,vt,wt)}function _t(e){return Tt(e,!1,Ke,bt,kt)}function Et(e){return Tt(e,!0,Ze,xt,At)}function Lt(e){return Tt(e,!0,Je,yt,St)}function Tt(e,t,n,i,r){if(!w(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const a=(o=e).__v_skip||!Object.isExtensible(o)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(C(o));var o;if(0===a)return e;const l=new Proxy(e,2===a?i:n);return r.set(e,l),l}function Dt(e){return Pt(e)?Dt(e.__v_raw):!(!e||!e.__v_isReactive)}function Pt(e){return!(!e||!e.__v_isReadonly)}function Mt(e){return!(!e||!e.__v_isShallow)}function Ot(e){return!!e&&!!e.__v_raw}function Rt(e){const t=e&&e.__v_raw;return t?Rt(t):e}function It(e){return Object.isExtensible(e)&&z(e,"__v_skip",!0),e}const Nt=e=>w(e)?Ct(e):e,Ft=e=>w(e)?Et(e):e;class Bt{constructor(e,t,n,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new be((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Rt(this);return e._cacheable&&!e.effect.dirty||!F(e._value,e._value=e.effect.run())||jt(e,4),Yt(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function zt(e,t,n=!1){let i,r;const s=b(e);s?(i=e,r=a):(i=e.get,r=e.set);return new Bt(i,r,s||!r,n)}function Yt(e){var t;Ce&&de&&(e=Rt(e),Me(de,null!=(t=e.dep)?t:e.dep=Ie((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n){const i=(e=Rt(e)).dep;i&&Re(i,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Wt(e){return Vt(e,!1)}function Xt(e){return Vt(e,!0)}function Vt(e,t){return Ht(e)?e:new Ut(e,t)}class Ut{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Rt(e),this._value=t?e:Nt(e)}get value(){return Yt(this),this._value}set value(e){const t=this.__v_isShallow||Mt(e)||Pt(e);e=t?e:Rt(e),F(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Nt(e),jt(this,4))}}function $t(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function qt(e){return b(e)?e():Gt(e)}const Zt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Kt(e){return Dt(e)?e:new Proxy(e,Zt)}class Jt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Yt(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Jt(e)}function en(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=sn(e,n);return t}class tn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Ne.get(e);return n&&n.get(t)}(Rt(this._object),this._key)}}class nn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function rn(e,t,n){return Ht(e)?e:b(e)?new nn(e):w(e)&&arguments.length>1?sn(e,t,n):Wt(e)}function sn(e,t,n){const i=e[t];return Ht(i)?i:new tn(e,t,n)}const an={GET:"get",HAS:"has",ITERATE:"iterate"},on={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},un={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function hn(e,t,n,i){try{return i?e(...i):e()}catch(e){pn(e,t,n)}}function dn(e,t,n,i){if(b(e)){const r=hn(e,t,n,i);return r&&k(r)&&r.catch((e=>{pn(e,t,n)})),r}if(f(e)){const r=[];for(let s=0;s<e.length;s++)r.push(dn(e[s],t,n,i));return r}}function pn(e,t,n,i=!0){t&&t.vnode;if(t){let i=t.parent;const r=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;i=i.parent}const a=t.appContext.config.errorHandler;if(a)return Le(),hn(a,null,10,[e,r,s]),void Te()}!function(e){console.error(e)}(e,0,0,i)}let fn=!1,gn=!1;const mn=[];let vn=0;const bn=[];let xn=null,yn=0;const wn=Promise.resolve();let kn=null;function An(e){const t=kn||wn;return e?t.then(this?e.bind(this):e):t}function Sn(e){mn.length&&mn.includes(e,fn&&e.allowRecurse?vn+1:vn)||(null==e.id?mn.push(e):mn.splice(function(e){let t=vn+1,n=mn.length;for(;t<n;){const i=t+n>>>1,r=mn[i],s=Tn(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}(e.id),0,e),Cn())}function Cn(){fn||gn||(gn=!0,kn=wn.then(Pn))}function _n(e){f(e)?bn.push(...e):xn&&xn.includes(e,e.allowRecurse?yn+1:yn)||bn.push(e),Cn()}function En(e,t,n=(fn?vn+1:0)){for(0;n<mn.length;n++){const t=mn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;0,mn.splice(n,1),n--,t()}}}function Ln(e){if(bn.length){const e=[...new Set(bn)].sort(((e,t)=>Tn(e)-Tn(t)));if(bn.length=0,xn)return void xn.push(...e);for(xn=e,yn=0;yn<xn.length;yn++)xn[yn]();xn=null,yn=0}}const Tn=e=>null==e.id?1/0:e.id,Dn=(e,t)=>{const n=Tn(e)-Tn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Pn(e){gn=!1,fn=!0,mn.sort(Dn);try{for(vn=0;vn<mn.length;vn++){const e=mn[vn];e&&!1!==e.active&&hn(e,null,14)}}finally{vn=0,mn.length=0,Ln(),fn=!1,kn=null,(mn.length||bn.length)&&Pn(e)}}let Mn,On=[],Rn=!1;function In(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||r;let s=n;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in i){const e=`${"modelValue"===o?"model":o}Modifiers`,{number:t,trim:a}=i[e]||r;a&&(s=n.map((e=>x(e)?e.trim():e))),t&&(s=n.map(Y))}let l;let c=i[l=N(t)]||i[l=N(M(t))];!c&&a&&(c=i[l=N(R(t))]),c&&dn(c,e,6,s);const u=i[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,dn(u,e,6,s)}}function Nn(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(void 0!==r)return r;const s=e.emits;let a={},o=!1;if(!b(e)){const i=e=>{const n=Nn(e,t,!0);n&&(o=!0,u(a,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return s||o?(f(s)?s.forEach((e=>a[e]=null)):u(a,s),w(e)&&i.set(e,a),a):(w(e)&&i.set(e,null),null)}function Fn(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}let Bn=null,zn=null;function Yn(e){const t=Bn;return Bn=e,zn=e&&e.type.__scopeId||null,t}function jn(e){zn=e}function Hn(){zn=null}const Wn=e=>Xn;function Xn(e,t=Bn,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&Zs(-1);const r=Yn(t);let s;try{s=e(...n)}finally{Yn(r),i._d&&Zs(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Vn(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:a,attrs:o,emit:l,render:u,renderCache:h,props:d,data:p,setupState:f,ctx:g,inheritAttrs:m}=e,v=Yn(e);let b,x;try{if(4&n.shapeFlag){const e=r||i,t=e;b=pa(u.call(t,e,h,d,f,p,g)),x=o}else{const e=t;0,b=pa(e.length>1?e(d,{attrs:o,slots:a,emit:l}):e(d,null)),x=t.props?o:$n(o)}}catch(t){Xs.length=0,pn(t,e,1),b=aa(Hs)}let y=b;if(x&&!1!==m){const e=Object.keys(x),{shapeFlag:t}=y;e.length&&7&t&&(s&&e.some(c)&&(x=Gn(x,s)),y=ca(y,x,!1,!0))}return n.dirs&&(y=ca(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),b=y,Yn(v),b}function Un(e,t=!0){let n;for(let t=0;t<e.length;t++){const i=e[t];if(!ea(i))return;if(i.type!==Hs||"v-if"===i.children){if(n)return;n=i}}return n}const $n=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Gn=(e,t)=>{const n={};for(const i in e)c(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function qn(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(t[s]!==e[s]&&!Fn(n,s))return!0}return!1}function Zn({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i!==e)break;(e=t.vnode).el=n,t=t.parent}}const Kn="components",Jn="directives";function Qn(e,t){return ii(Kn,e,!0,t)||e}const ei=Symbol.for("v-ndc");function ti(e){return x(e)?ii(Kn,e,!1)||e:e||ei}function ni(e){return ii(Jn,e)}function ii(e,t,n=!0,i=!1){const r=Bn||wa;if(r){const n=r.type;if(e===Kn){const e=za(n,!1);if(e&&(e===t||e===M(t)||e===I(M(t))))return n}const s=ri(r[e]||n[e],t)||ri(r.appContext[e],t);return!s&&i?n:s}}function ri(e,t){return e&&(e[t]||e[M(t)]||e[I(M(t))])}const si=e=>e.__isSuspense;let ai=0;const oi={name:"Suspense",__isSuspense:!0,process(e,t,n,i,r,s,a,o,l,c){if(null==e)!function(e,t,n,i,r,s,a,o,l){const{p:c,o:{createElement:u}}=l,h=u("div"),d=e.suspense=ci(e,r,i,t,h,n,s,a,o,l);c(null,d.pendingBranch=e.ssContent,h,null,i,d,s,a),d.deps>0?(li(e,"onPending"),li(e,"onFallback"),c(null,e.ssFallback,t,n,i,null,s,a),di(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,i,r,s,a,o,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,i,r,s,a,o,{p:l,um:c,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:v}=h;if(g)h.pendingBranch=d,ta(d,g)?(l(g,d,h.hiddenContainer,null,r,h,s,a,o),h.deps<=0?h.resolve():m&&(v||(l(f,p,n,i,r,null,s,a,o),di(h,p)))):(h.pendingId=ai++,v?(h.isHydrating=!1,h.activeBranch=g):c(g,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),m?(l(null,d,h.hiddenContainer,null,r,h,s,a,o),h.deps<=0?h.resolve():(l(f,p,n,i,r,null,s,a,o),di(h,p))):f&&ta(d,f)?(l(f,d,n,i,r,h,s,a,o),h.resolve(!0)):(l(null,d,h.hiddenContainer,null,r,h,s,a,o),h.deps<=0&&h.resolve()));else if(f&&ta(d,f))l(f,d,n,i,r,h,s,a,o),di(h,d);else if(li(t,"onPending"),h.pendingBranch=d,512&d.shapeFlag?h.pendingId=d.component.suspenseId:h.pendingId=ai++,l(null,d,h.hiddenContainer,null,r,h,s,a,o),h.deps<=0)h.resolve();else{const{timeout:e,pendingId:t}=h;e>0?setTimeout((()=>{h.pendingId===t&&h.fallback(p)}),e):0===e&&h.fallback(p)}}(e,t,n,i,r,a,o,l,c)}},hydrate:function(e,t,n,i,r,s,a,o,l){const c=t.suspense=ci(t,i,n,e.parentNode,document.createElement("div"),null,r,s,a,o,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,s,a);0===c.deps&&c.resolve(!1,!0);return u},create:ci,normalize:function(e){const{shapeFlag:t,children:n}=e,i=32&t;e.ssContent=ui(i?n.default:n),e.ssFallback=i?ui(n.fallback):aa(Hs)}};function li(e,t){const n=e.props&&e.props[t];b(n)&&n()}function ci(e,t,n,i,r,s,a,o,l,c,u=!1){const{p:h,m:d,um:p,n:f,o:{parentNode:g,remove:m}}=c;let v;const b=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);b&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const x=e.props?j(e.props.timeout):void 0;const y=s,w={vnode:e,parent:t,parentComponent:n,namespace:a,container:i,hiddenContainer:r,deps:0,pendingId:ai++,timeout:"number"==typeof x?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:i,activeBranch:r,pendingBranch:a,pendingId:o,effects:l,parentComponent:c,container:u}=w;let h=!1;w.isHydrating?w.isHydrating=!1:e||(h=r&&a.transition&&"out-in"===a.transition.mode,h&&(r.transition.afterLeave=()=>{o===w.pendingId&&(d(a,u,s===y?f(r):s,0),_n(l))}),r&&(g(r.el)!==w.hiddenContainer&&(s=f(r)),p(r,c,w,!0)),h||d(a,u,s,0)),di(w,a),w.pendingBranch=null,w.isInFallback=!1;let m=w.parent,x=!1;for(;m;){if(m.pendingBranch){m.effects.push(...l),x=!0;break}m=m.parent}x||h||_n(l),w.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),li(i,"onResolve")},fallback(e){if(!w.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:i,container:r,namespace:s}=w;li(t,"onFallback");const a=f(n),c=()=>{w.isInFallback&&(h(null,e,r,a,i,null,s,o,l),di(w,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),w.isInFallback=!0,p(n,i,null,!0),u||c()},move(e,t,n){w.activeBranch&&d(w.activeBranch,e,t,n),w.container=e},next:()=>w.activeBranch&&f(w.activeBranch),registerDep(e,t){const n=!!w.pendingBranch;n&&w.deps++;const i=e.vnode.el;e.asyncDep.catch((t=>{pn(t,e,0)})).then((r=>{if(e.isUnmounted||w.isUnmounted||w.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Ma(e,r,!1),i&&(s.el=i);const o=!i&&e.subTree.el;t(e,s,g(i||e.subTree.el),i?null:f(e.subTree),w,a,l),o&&m(o),Zn(e,s.el),n&&0==--w.deps&&w.resolve()}))},unmount(e,t){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,e,t),w.pendingBranch&&p(w.pendingBranch,n,e,t)}};return w}function ui(e){let t;if(b(e)){const n=qs&&e._c;n&&(e._d=!1,Us()),e=e(),n&&(e._d=!0,t=Vs,$s())}if(f(e)){const t=Un(e);0,e=t}return e=pa(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function hi(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):_n(e)}function di(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,i&&i.subTree===n&&(i.vnode.el=r,Zn(i,r))}const pi=Symbol.for("v-scx"),fi=()=>{{const e=Qr(pi);return e}};function gi(e,t){return yi(e,null,t)}function mi(e,t){return yi(e,null,{flush:"post"})}function vi(e,t){return yi(e,null,{flush:"sync"})}const bi={};function xi(e,t,n){return yi(e,t,n)}function yi(e,t,{immediate:n,deep:i,flush:s,once:o,onTrack:l,onTrigger:c}=r){if(t&&o){const e=t;t=(...t)=>{e(...t),_()}}const u=wa,d=e=>!0===i?e:Ai(e,!1===i?1:void 0);let p,g,m=!1,v=!1;if(Ht(e)?(p=()=>e.value,m=Mt(e)):Dt(e)?(p=()=>d(e),m=!0):f(e)?(v=!0,m=e.some((e=>Dt(e)||Mt(e))),p=()=>e.map((e=>Ht(e)?e.value:Dt(e)?d(e):b(e)?hn(e,u,2):void 0))):p=b(e)?t?()=>hn(e,u,2):()=>(g&&g(),dn(e,u,3,[y])):a,t&&i){const e=p;p=()=>Ai(e())}let x,y=e=>{g=S.onStop=()=>{hn(e,u,4),g=S.onStop=void 0}};if(Da){if(y=a,t?n&&dn(t,u,3,[p(),v?[]:void 0,y]):p(),"sync"!==s)return a;{const e=fi();x=e.__watcherHandles||(e.__watcherHandles=[])}}let w=v?new Array(e.length).fill(bi):bi;const k=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||m||(v?e.some(((e,t)=>F(e,w[t]))):F(e,w)))&&(g&&g(),dn(t,u,3,[e,w===bi?void 0:v&&w[0]===bi?[]:w,y]),w=e)}else S.run()};let A;k.allowRecurse=!!t,"sync"===s?A=k:"post"===s?A=()=>As(k,u&&u.suspense):(k.pre=!0,u&&(k.id=u.uid),A=()=>Sn(k));const S=new be(p,a,A),C=me(),_=()=>{S.stop(),C&&h(C.effects,S)};return t?n?k():w=S.run():"post"===s?As(S.run.bind(S),u&&u.suspense):S.run(),x&&x.push(_),_}function wi(e,t,n){const i=this.proxy,r=x(e)?e.includes(".")?ki(i,e):()=>i[e]:e.bind(i,i);let s;b(t)?s=t:(s=t.handler,n=t);const a=Ca(this),o=yi(r,s.bind(i),n);return a(),o}function ki(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Ai(e,t=1/0,n){if(t<=0||!w(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ht(e))Ai(e.value,t,n);else if(f(e))for(let i=0;i<e.length;i++)Ai(e[i],t,n);else if(m(e)||g(e))e.forEach((e=>{Ai(e,t,n)}));else if(_(e))for(const i in e)Ai(e[i],t,n);return e}function Si(e,t){if(null===Bn)return e;const n=Ba(Bn)||Bn.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[s,a,o,l=r]=t[e];s&&(b(s)&&(s={mounted:s,updated:s}),s.deep&&Ai(a),i.push({dir:s,instance:n,value:a,oldValue:void 0,arg:o,modifiers:l}))}return e}function Ci(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let a=0;a<r.length;a++){const o=r[a];s&&(o.oldValue=s[a].value);let l=o.dir[i];l&&(Le(),dn(l,n,8,[e.el,o,e,t]),Te())}}const _i=Symbol("_leaveCb"),Ei=Symbol("_enterCb");function Li(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nr((()=>{e.isMounted=!0})),sr((()=>{e.isUnmounting=!0})),e}const Ti=[Function,Array],Di={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ti,onEnter:Ti,onAfterEnter:Ti,onEnterCancelled:Ti,onBeforeLeave:Ti,onLeave:Ti,onAfterLeave:Ti,onLeaveCancelled:Ti,onBeforeAppear:Ti,onAppear:Ti,onAfterAppear:Ti,onAppearCancelled:Ti},Pi={name:"BaseTransition",props:Di,setup(e,{slots:t}){const n=ka(),i=Li();return()=>{const r=t.default&&Bi(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==Hs){0,s=t,e=!0;break}}const a=Rt(e),{mode:o}=a;if(i.isLeaving)return Ii(s);const l=Ni(s);if(!l)return Ii(s);const c=Ri(l,a,i,n);Fi(l,c);const u=n.subTree,h=u&&Ni(u);if(h&&h.type!==Hs&&!ta(l,h)){const e=Ri(h,a,i,n);if(Fi(h,e),"out-in"===o&&l.type!==Hs)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Ii(s);"in-out"===o&&l.type!==Hs&&(e.delayLeave=(e,t,n)=>{Oi(i,h)[String(h.key)]=h,e[_i]=()=>{t(),e[_i]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return s}}},Mi=Pi;function Oi(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Ri(e,t,n,i){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:o,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:x}=t,y=String(e.key),w=Oi(n,e),k=(e,t)=>{e&&dn(e,i,9,t)},A=(e,t)=>{const n=t[1];k(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:s,persisted:a,beforeEnter(t){let i=o;if(!n.isMounted){if(!r)return;i=m||o}t[_i]&&t[_i](!0);const s=w[y];s&&ta(e,s)&&s.el[_i]&&s.el[_i](),k(i,[t])},enter(e){let t=l,i=c,s=u;if(!n.isMounted){if(!r)return;t=v||l,i=b||c,s=x||u}let a=!1;const o=e[Ei]=t=>{a||(a=!0,k(t?s:i,[e]),S.delayedLeave&&S.delayedLeave(),e[Ei]=void 0)};t?A(t,[e,o]):o()},leave(t,i){const r=String(e.key);if(t[Ei]&&t[Ei](!0),n.isUnmounting)return i();k(h,[t]);let s=!1;const a=t[_i]=n=>{s||(s=!0,i(),k(n?g:p,[t]),t[_i]=void 0,w[r]===e&&delete w[r])};w[r]=e,d?A(d,[t,a]):a()},clone:e=>Ri(e,t,n,i)};return S}function Ii(e){if(Wi(e))return(e=ca(e)).children=null,e}function Ni(e){if(!Wi(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function Fi(e,t){6&e.shapeFlag&&e.component?Fi(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bi(e,t=!1,n){let i=[],r=0;for(let s=0;s<e.length;s++){let a=e[s];const o=null==n?a.key:String(n)+String(null!=a.key?a.key:s);a.type===Ys?(128&a.patchFlag&&r++,i=i.concat(Bi(a.children,t,o))):(t||a.type!==Hs)&&i.push(null!=o?ca(a,{key:o}):a)}if(r>1)for(let e=0;e<i.length;e++)i[e].patchFlag=-2;return i}function zi(e,t){return b(e)?(()=>u({name:e.name},t,{setup:e}))():e}const Yi=e=>!!e.type.__asyncLoader;function ji(e){b(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:r=200,timeout:s,suspensible:a=!0,onError:o}=e;let l,c=null,u=0;const h=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),o)return new Promise(((t,n)=>{o(e,(()=>t((u++,c=null,h()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return zi({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const e=wa;if(l)return()=>Hi(l,e);const t=t=>{c=null,pn(t,e,13,!i)};if(a&&e.suspense||Da)return h().then((t=>()=>Hi(t,e))).catch((e=>(t(e),()=>i?aa(i,{error:e}):null)));const o=Wt(!1),u=Wt(),d=Wt(!!r);return r&&setTimeout((()=>{d.value=!1}),r),null!=s&&setTimeout((()=>{if(!o.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),h().then((()=>{o.value=!0,e.parent&&Wi(e.parent.vnode)&&(e.parent.effect.dirty=!0,Sn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>o.value&&l?Hi(l,e):u.value&&i?aa(i,{error:u.value}):n&&!d.value?aa(n):void 0}})}function Hi(e,t){const{ref:n,props:i,children:r,ce:s}=t.vnode,a=aa(e,i,r);return a.ref=n,a.ce=s,delete t.vnode.ce,a}const Wi=e=>e.type.__isKeepAlive,Xi={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ka(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,s=new Set;let a=null;const o=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=i,d=h("div");function p(e){Ki(e),u(e,n,o,!0)}function f(e){r.forEach(((t,n)=>{const i=za(t.type);!i||e&&e(i)||g(n)}))}function g(e){const t=r.get(e);a&&ta(t,a)?a&&Ki(a):p(t),r.delete(e),s.delete(e)}i.activate=(e,t,n,i,r)=>{const s=e.component;c(e,t,n,0,o),l(s.vnode,e,t,n,s,o,i,e.slotScopeIds,r),As((()=>{s.isDeactivated=!1,s.a&&B(s.a);const t=e.props&&e.props.onVnodeMounted;t&&va(t,s.parent,e)}),o)},i.deactivate=e=>{const t=e.component;c(e,d,null,1,o),As((()=>{t.da&&B(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&va(n,t.parent,e),t.isDeactivated=!0}),o)},xi((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>Ui(e,t))),t&&f((e=>!Ui(t,e)))}),{flush:"post",deep:!0});let m=null;const v=()=>{null!=m&&r.set(m,Ji(n.subTree))};return nr(v),rr(v),sr((()=>{r.forEach((e=>{const{subTree:t,suspense:i}=n,r=Ji(t);if(e.type!==r.type||e.key!==r.key)p(e);else{Ki(r);const e=r.component.da;e&&As(e,i)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),i=n[0];if(n.length>1)return a=null,n;if(!(ea(i)&&(4&i.shapeFlag||128&i.shapeFlag)))return a=null,i;let o=Ji(i);const l=o.type,c=za(Yi(o)?o.type.__asyncResolved||{}:l),{include:u,exclude:h,max:d}=e;if(u&&(!c||!Ui(u,c))||h&&c&&Ui(h,c))return a=o,i;const p=null==o.key?l:o.key,f=r.get(p);return o.el&&(o=ca(o),128&i.shapeFlag&&(i.ssContent=o)),m=p,f?(o.el=f.el,o.component=f.component,o.transition&&Fi(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),d&&s.size>parseInt(d,10)&&g(s.values().next().value)),o.shapeFlag|=256,a=o,si(i.type)?i:o}}},Vi=Xi;function Ui(e,t){return f(e)?e.some((e=>Ui(e,t))):x(e)?e.split(",").includes(t):"[object RegExp]"===S(e)&&e.test(t)}function $i(e,t){qi(e,"a",t)}function Gi(e,t){qi(e,"da",t)}function qi(e,t,n=wa){const i=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Qi(t,i,n),n){let e=n.parent;for(;e&&e.parent;)Wi(e.parent.vnode)&&Zi(i,t,n,e),e=e.parent}}function Zi(e,t,n,i){const r=Qi(t,e,i,!0);ar((()=>{h(i[t],r)}),n)}function Ki(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ji(e){return 128&e.shapeFlag?e.ssContent:e}function Qi(e,t,n=wa,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Le();const r=Ca(n),s=dn(t,n,e,i);return r(),Te(),s});return i?r.unshift(s):r.push(s),s}}const er=e=>(t,n=wa)=>(!Da||"sp"===e)&&Qi(e,((...e)=>t(...e)),n),tr=er("bm"),nr=er("m"),ir=er("bu"),rr=er("u"),sr=er("bum"),ar=er("um"),or=er("sp"),lr=er("rtg"),cr=er("rtc");function ur(e,t=wa){Qi("ec",e,t)}function hr(e,t,n,i){let r;const s=n&&n[i];if(f(e)||x(e)){r=new Array(e.length);for(let n=0,i=e.length;n<i;n++)r[n]=t(e[n],n,void 0,s&&s[n])}else if("number"==typeof e){0,r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,s&&s[n])}else if(w(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let i=0,a=n.length;i<a;i++){const a=n[i];r[i]=t(e[a],a,i,s&&s[i])}}else r=[];return n&&(n[i]=r),r}function dr(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(f(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.key?(...e)=>{const t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function pr(e,t,n={},i,r){if(Bn.isCE||Bn.parent&&Yi(Bn.parent)&&Bn.parent.isCE)return"default"!==t&&(n.name=t),aa("slot",n,i&&i());let s=e[t];s&&s._c&&(s._d=!1),Us();const a=s&&fr(s(n)),o=Qs(Ys,{key:n.key||a&&a.key||`_${t}`},a||(i?i():[]),a&&1===e._?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),s&&s._c&&(s._d=!0),o}function fr(e){return e.some((e=>!ea(e)||e.type!==Hs&&!(e.type===Ys&&!fr(e.children))))?e:null}function gr(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:N(i)]=e[i];return n}const mr=e=>e?Ea(e)?Ba(e)||e.proxy:mr(e.parent):null,vr=u(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>mr(e.parent),$root:e=>mr(e.root),$emit:e=>e.emit,$options:e=>Yr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Sn(e.update)}),$nextTick:e=>e.n||(e.n=An.bind(e.proxy)),$watch:e=>wi.bind(e)}),br=(e,t)=>e!==r&&!e.__isScriptSetup&&p(e,t),xr={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:a,accessCache:o,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=o[t];if(void 0!==l)switch(l){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(br(i,t))return o[t]=1,i[t];if(s!==r&&p(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&p(u,t))return o[t]=3,a[t];if(n!==r&&p(n,t))return o[t]=4,n[t];Nr&&(o[t]=0)}}const h=vr[t];let d,f;return h?("$attrs"===t&&ze(e.attrs,0,""),h(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==r&&p(n,t)?(o[t]=4,n[t]):(f=c.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:s,ctx:a}=e;return br(s,t)?(s[t]=n,!0):i!==r&&p(i,t)?(i[t]=n,!0):!p(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:a}},o){let l;return!!n[o]||e!==r&&p(e,o)||br(t,o)||(l=a[0])&&p(l,o)||p(i,o)||p(vr,o)||p(s.config.globalProperties,o)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const yr=u({},xr,{get(e,t){if(t!==Symbol.unscopables)return xr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!X(t)});function wr(){return null}function kr(){return null}function Ar(e){0}function Sr(e){0}function Cr(){return null}function _r(){0}function Er(e,t){return null}function Lr(){return Dr().slots}function Tr(){return Dr().attrs}function Dr(){const e=ka();return e.setupContext||(e.setupContext=Fa(e))}function Pr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Mr(e,t){const n=Pr(e);for(const e in t){if(e.startsWith("__skip"))continue;let i=n[e];i?f(i)||b(i)?i=n[e]={type:i,default:t[e]}:i.default=t[e]:null===i&&(i=n[e]={default:t[e]}),i&&t[`__skip_${e}`]&&(i.skipFactory=!0)}return n}function Or(e,t){return e&&t?f(e)&&f(t)?e.concat(t):u({},Pr(e),Pr(t)):e||t}function Rr(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function Ir(e){const t=ka();let n=e();return _a(),k(n)&&(n=n.catch((e=>{throw Ca(t),e}))),[n,()=>Ca(t)]}let Nr=!0;function Fr(e){const t=Yr(e),n=e.proxy,i=e.ctx;Nr=!1,t.beforeCreate&&Br(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:o,watch:l,provide:c,inject:u,created:h,beforeMount:d,mounted:p,beforeUpdate:g,updated:m,activated:v,deactivated:x,beforeDestroy:y,beforeUnmount:k,destroyed:A,unmounted:S,render:C,renderTracked:_,renderTriggered:E,errorCaptured:L,serverPrefetch:T,expose:D,inheritAttrs:P,components:M,directives:O,filters:R}=t;if(u&&function(e,t){f(e)&&(e=Xr(e));for(const n in e){const i=e[n];let r;r=w(i)?"default"in i?Qr(i.from||n,i.default,!0):Qr(i.from||n):Qr(i),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,i,null),o)for(const e in o){const t=o[e];b(t)&&(i[e]=t.bind(n))}if(r){0;const t=r.call(n,n);0,w(t)&&(e.data=Ct(t))}if(Nr=!0,s)for(const e in s){const t=s[e],r=b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):a;0;const o=!b(t)&&b(t.set)?t.set.bind(n):a,l=ja({get:r,set:o});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)zr(l[e],i,n,e);if(c){const e=b(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Jr(t,e[t])}))}function I(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&Br(h,e,"c"),I(tr,d),I(nr,p),I(ir,g),I(rr,m),I($i,v),I(Gi,x),I(ur,L),I(cr,_),I(lr,E),I(sr,k),I(ar,S),I(or,T),f(D))if(D.length){const t=e.exposed||(e.exposed={});D.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});C&&e.render===a&&(e.render=C),null!=P&&(e.inheritAttrs=P),M&&(e.components=M),O&&(e.directives=O)}function Br(e,t,n){dn(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function zr(e,t,n,i){const r=i.includes(".")?ki(n,i):()=>n[i];if(x(e)){const n=t[e];b(n)&&xi(r,n)}else if(b(e))xi(r,e.bind(n));else if(w(e))if(f(e))e.forEach((e=>zr(e,t,n,i)));else{const i=b(e.handler)?e.handler.bind(n):t[e.handler];b(i)&&xi(r,i,e)}else 0}function Yr(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let l;return o?l=o:r.length||n||i?(l={},r.length&&r.forEach((e=>jr(l,e,a,!0))),jr(l,t,a)):l=t,w(t)&&s.set(t,l),l}function jr(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&jr(e,s,n,!0),r&&r.forEach((t=>jr(e,t,n,!0)));for(const r in t)if(i&&"expose"===r);else{const i=Hr[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const Hr={data:Wr,props:$r,emits:$r,methods:Ur,computed:Ur,beforeCreate:Vr,created:Vr,beforeMount:Vr,mounted:Vr,beforeUpdate:Vr,updated:Vr,beforeDestroy:Vr,beforeUnmount:Vr,destroyed:Vr,unmounted:Vr,activated:Vr,deactivated:Vr,errorCaptured:Vr,serverPrefetch:Vr,components:Ur,directives:Ur,watch:function(e,t){if(!e)return t;if(!t)return e;const n=u(Object.create(null),e);for(const i in t)n[i]=Vr(e[i],t[i]);return n},provide:Wr,inject:function(e,t){return Ur(Xr(e),Xr(t))}};function Wr(e,t){return t?e?function(){return u(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function Xr(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Vr(e,t){return e?[...new Set([].concat(e,t))]:t}function Ur(e,t){return e?u(Object.create(null),e,t):t}function $r(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:u(Object.create(null),Pr(e),Pr(null!=t?t:{})):t}function Gr(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let qr=0;function Zr(e,t){return function(n,i=null){b(n)||(n=u({},n)),null==i||w(i)||(i=null);const r=Gr(),s=new WeakSet;let a=!1;const o=r.app={_uid:qr++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:$a,get config(){return r.config},set config(e){0},use:(e,...t)=>(s.has(e)||(e&&b(e.install)?(s.add(e),e.install(o,...t)):b(e)&&(s.add(e),e(o,...t))),o),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),o),component:(e,t)=>t?(r.components[e]=t,o):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,o):r.directives[e],mount(s,l,c){if(!a){0;const u=aa(n,i);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,s):e(u,s,c),a=!0,o._container=s,s.__vue_app__=o,Ba(u.component)||u.component.proxy}},unmount(){a&&(e(null,o._container),delete o._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,o),runWithContext(e){const t=Kr;Kr=o;try{return e()}finally{Kr=t}}};return o}}let Kr=null;function Jr(e,t){if(wa){let n=wa.provides;const i=wa.parent&&wa.parent.provides;i===n&&(n=wa.provides=Object.create(i)),n[e]=t}else 0}function Qr(e,t,n=!1){const i=wa||Bn;if(i||Kr){const r=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Kr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&b(t)?t.call(i&&i.proxy):t}else 0}function es(){return!!(wa||Bn||Kr)}const ts={},ns=()=>Object.create(ts),is=e=>Object.getPrototypeOf(e)===ts;function rs(e,t,n,i){const[s,a]=e.propsOptions;let o,l=!1;if(t)for(let r in t){if(L(r))continue;const c=t[r];let u;s&&p(s,u=M(r))?a&&a.includes(u)?(o||(o={}))[u]=c:n[u]=c:Fn(e.emitsOptions,r)||r in i&&c===i[r]||(i[r]=c,l=!0)}if(a){const t=Rt(n),i=o||r;for(let r=0;r<a.length;r++){const o=a[r];n[o]=ss(s,t,o,i[o],e,!p(i,o))}}return l}function ss(e,t,n,i,r,s){const a=e[n];if(null!=a){const e=p(a,"default");if(e&&void 0===i){const e=a.default;if(a.type!==Function&&!a.skipFactory&&b(e)){const{propsDefaults:s}=r;if(n in s)i=s[n];else{const a=Ca(r);i=s[n]=e.call(null,t),a()}}else i=e}a[0]&&(s&&!e?i=!1:!a[1]||""!==i&&i!==R(n)||(i=!0))}return i}function as(e,t,n=!1){const i=t.propsCache,a=i.get(e);if(a)return a;const o=e.props,l={},c=[];let h=!1;if(!b(e)){const i=e=>{h=!0;const[n,i]=as(e,t,!0);u(l,n),i&&c.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!o&&!h)return w(e)&&i.set(e,s),s;if(f(o))for(let e=0;e<o.length;e++){0;const t=M(o[e]);os(t)&&(l[t]=r)}else if(o){0;for(const e in o){const t=M(e);if(os(t)){const n=o[e],i=l[t]=f(n)||b(n)?{type:n}:u({},n);if(i){const e=us(Boolean,i.type),n=us(String,i.type);i[0]=e>-1,i[1]=n<0||e<n,(e>-1||p(i,"default"))&&c.push(t)}}}}const d=[l,c];return w(e)&&i.set(e,d),d}function os(e){return"$"!==e[0]&&!L(e)}function ls(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function cs(e,t){return ls(e)===ls(t)}function us(e,t){return f(t)?t.findIndex((t=>cs(t,e))):b(t)&&cs(t,e)?0:-1}const hs=e=>"_"===e[0]||"$stable"===e,ds=e=>f(e)?e.map(pa):[pa(e)],ps=(e,t,n)=>{if(t._n)return t;const i=Xn(((...e)=>ds(t(...e))),n);return i._c=!1,i},fs=(e,t,n)=>{const i=e._ctx;for(const n in e){if(hs(n))continue;const r=e[n];if(b(r))t[n]=ps(0,r,i);else if(null!=r){0;const e=ds(r);t[n]=()=>e}}},gs=(e,t)=>{const n=ds(t);e.slots.default=()=>n},ms=(e,t)=>{const n=e.slots=ns();if(32&e.vnode.shapeFlag){const e=t._;e?(u(n,t),z(n,"_",e,!0)):fs(t,n)}else t&&gs(e,t)},vs=(e,t,n)=>{const{vnode:i,slots:s}=e;let a=!0,o=r;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:(u(s,t),n||1!==e||delete s._):(a=!t.$stable,fs(t,s)),o=t}else t&&(gs(e,t),o={default:1});if(a)for(const e in s)hs(e)||null!=o[e]||delete s[e]};function bs(e,t,n,i,s=!1){if(f(e))return void e.forEach(((e,r)=>bs(e,t&&(f(t)?t[r]:t),n,i,s)));if(Yi(i)&&!s)return;const a=4&i.shapeFlag?Ba(i.component)||i.component.proxy:i.el,o=s?null:a,{i:l,r:c}=e;const u=t&&t.r,d=l.refs===r?l.refs={}:l.refs,g=l.setupState;if(null!=u&&u!==c&&(x(u)?(d[u]=null,p(g,u)&&(g[u]=null)):Ht(u)&&(u.value=null)),b(c))hn(c,l,12,[o,d]);else{const t=x(c),i=Ht(c);if(t||i){const r=()=>{if(e.f){const n=t?p(g,c)?g[c]:d[c]:c.value;s?f(n)&&h(n,a):f(n)?n.includes(a)||n.push(a):t?(d[c]=[a],p(g,c)&&(g[c]=d[c])):(c.value=[a],e.k&&(d[e.k]=c.value))}else t?(d[c]=o,p(g,c)&&(g[c]=o)):i&&(c.value=o,e.k&&(d[e.k]=o))};o?(r.id=-1,As(r,n)):r()}else 0}}let xs=!1;const ys=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ws=e=>8===e.nodeType;function ks(e){const{mt:t,p:n,o:{patchProp:i,createText:r,nextSibling:s,parentNode:a,remove:o,insert:c,createComment:u}}=e,h=(n,i,o,l,u,x=!1)=>{x=x||!!i.dynamicChildren;const y=ws(n)&&"["===n.data,w=()=>g(n,i,o,l,u,y),{type:k,ref:A,shapeFlag:S,patchFlag:C}=i;let _=n.nodeType;i.el=n,-2===C&&(x=!1,i.dynamicChildren=null);let E=null;switch(k){case js:3!==_?""===i.children?(c(i.el=r(""),a(n),n),E=n):E=w():(n.data!==i.children&&(xs=!0,n.data=i.children),E=s(n));break;case Hs:b(n)?(E=s(n),v(i.el=n.content.firstChild,n,o)):E=8!==_||y?w():s(n);break;case Ws:if(y&&(_=(n=s(n)).nodeType),1===_||3===_){E=n;const e=!i.children.length;for(let t=0;t<i.staticCount;t++)e&&(i.children+=1===E.nodeType?E.outerHTML:E.data),t===i.staticCount-1&&(i.anchor=E),E=s(E);return y?s(E):E}w();break;case Ys:E=y?f(n,i,o,l,u,x):w();break;default:if(1&S)E=1===_&&i.type.toLowerCase()===n.tagName.toLowerCase()||b(n)?d(n,i,o,l,u,x):w();else if(6&S){i.slotScopeIds=u;const e=a(n);if(E=y?m(n):ws(n)&&"teleport start"===n.data?m(n,n.data,"teleport end"):s(n),t(i,e,null,o,l,ys(e),x),Yi(i)){let t;y?(t=aa(Ys),t.anchor=E?E.previousSibling:e.lastChild):t=3===n.nodeType?ua(""):aa("div"),t.el=n,i.component.subTree=t}}else 64&S?E=8!==_?w():i.type.hydrate(n,i,o,l,u,x,e,p):128&S&&(E=i.type.hydrate(n,i,o,l,ys(a(n)),u,x,e,h))}return null!=A&&bs(A,null,l,i),E},d=(e,t,n,r,s,a)=>{a=a||!!t.dynamicChildren;const{type:c,props:u,patchFlag:h,shapeFlag:d,dirs:f,transition:g}=t,m="input"===c||"option"===c;if(m||-1!==h){f&&Ci(t,null,n,"created");let c,x=!1;if(b(e)){x=Ts(r,g)&&n&&n.vnode.props&&n.vnode.props.appear;const i=e.content.firstChild;x&&g.beforeEnter(i),v(i,e,n),t.el=e=i}if(16&d&&(!u||!u.innerHTML&&!u.textContent)){let i=p(e.firstChild,t,e,n,r,s,a);for(;i;){xs=!0;const e=i;i=i.nextSibling,o(e)}}else 8&d&&e.textContent!==t.children&&(xs=!0,e.textContent=t.children);if(u)if(m||!a||48&h)for(const t in u)(m&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!L(t)||"."===t[0])&&i(e,t,null,u[t],void 0,void 0,n);else u.onClick&&i(e,"onClick",null,u.onClick,void 0,void 0,n);(c=u&&u.onVnodeBeforeMount)&&va(c,n,t),f&&Ci(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f||x)&&hi((()=>{c&&va(c,n,t),x&&g.enter(e),f&&Ci(t,null,n,"mounted")}),r)}return e.nextSibling},p=(e,t,i,r,s,a,o)=>{o=o||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t<c;t++){const c=o?l[t]:l[t]=pa(l[t]);if(e)e=h(e,c,r,s,a,o);else{if(c.type===js&&!c.children)continue;xs=!0,n(null,c,i,null,r,s,ys(i),a)}}return e},f=(e,t,n,i,r,o)=>{const{slotScopeIds:l}=t;l&&(r=r?r.concat(l):l);const h=a(e),d=p(s(e),t,h,n,i,r,o);return d&&ws(d)&&"]"===d.data?s(t.anchor=d):(xs=!0,c(t.anchor=u("]"),h,d),d)},g=(e,t,i,r,l,c)=>{if(xs=!0,t.el=null,c){const t=m(e);for(;;){const n=s(e);if(!n||n===t)break;o(n)}}const u=s(e),h=a(e);return o(e),n(null,t,h,u,i,r,ys(h),l),u},m=(e,t="[",n="]")=>{let i=0;for(;e;)if((e=s(e))&&ws(e)&&(e.data===t&&i++,e.data===n)){if(0===i)return s(e);i--}return e},v=(e,t,n)=>{const i=t.parentNode;i&&i.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},b=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Ln(),void(t._vnode=e);xs=!1,h(t.firstChild,e,null,null,null),Ln(),t._vnode=e,xs&&console.error("Hydration completed but contains mismatches.")},h]}const As=hi;function Ss(e){return _s(e)}function Cs(e){return _s(e,ks)}function _s(e,t){W().__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:l,createText:c,createComment:u,setText:h,setElementText:d,parentNode:f,nextSibling:g,setScopeId:m=a,insertStaticContent:v}=e,b=(e,t,n,i=null,r=null,s=null,a=void 0,o=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ta(e,t)&&(i=Z(e),V(e,r,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case js:x(e,t,n,i);break;case Hs:y(e,t,n,i);break;case Ws:null==e&&w(t,n,i,a);break;case Ys:P(e,t,n,i,r,s,a,o,l);break;default:1&h?A(e,t,n,i,r,s,a,o,l):6&h?O(e,t,n,i,r,s,a,o,l):(64&h||128&h)&&c.process(e,t,n,i,r,s,a,o,l,Q)}null!=u&&r&&bs(u,e&&e.ref,s,t||e,!t)},x=(e,t,i,r)=>{if(null==e)n(t.el=c(t.children),i,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},y=(e,t,i,r)=>{null==e?n(t.el=u(t.children||""),i,r):t.el=e.el},w=(e,t,n,i)=>{[e.el,e.anchor]=v(e.children,t,n,i,e.el,e.anchor)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),i(e),e=n;i(t)},A=(e,t,n,i,r,s,a,o,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?S(t,n,i,r,s,a,o,l):E(e,t,r,s,a,o,l)},S=(e,t,i,r,s,a,c,u)=>{let h,p;const{props:f,shapeFlag:g,transition:m,dirs:v}=e;if(h=e.el=l(e.type,a,f&&f.is,f),8&g?d(h,e.children):16&g&&_(e.children,h,null,r,s,Es(e,a),c,u),v&&Ci(e,null,r,"created"),C(h,e,e.scopeId,c,r),f){for(const t in f)"value"===t||L(t)||o(h,t,null,f[t],a,e.children,r,s,q);"value"in f&&o(h,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&va(p,r,e)}v&&Ci(e,null,r,"beforeMount");const b=Ts(s,m);b&&m.beforeEnter(h),n(h,t,i),((p=f&&f.onVnodeMounted)||b||v)&&As((()=>{p&&va(p,r,e),b&&m.enter(h),v&&Ci(e,null,r,"mounted")}),s)},C=(e,t,n,i,r)=>{if(n&&m(e,n),i)for(let t=0;t<i.length;t++)m(e,i[t]);if(r){if(t===r.subTree){const t=r.vnode;C(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},_=(e,t,n,i,r,s,a,o,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=o?fa(e[c]):pa(e[c]);b(null,l,t,n,i,r,s,a,o)}},E=(e,t,n,i,s,a,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||r,g=t.props||r;let m;if(n&&Ls(n,!1),(m=g.onVnodeBeforeUpdate)&&va(m,n,t,e),p&&Ci(t,e,n,"beforeUpdate"),n&&Ls(n,!0),h?T(e.dynamicChildren,h,c,n,i,Es(t,s),a):l||Y(e,t,c,null,n,i,Es(t,s),a,!1),u>0){if(16&u)D(c,t,f,g,n,i,s);else if(2&u&&f.class!==g.class&&o(c,"class",null,g.class,s),4&u&&o(c,"style",f.style,g.style,s),8&u){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const a=r[t],l=f[a],u=g[a];u===l&&"value"!==a||o(c,a,l,u,s,e.children,n,i,q)}}1&u&&e.children!==t.children&&d(c,t.children)}else l||null!=h||D(c,t,f,g,n,i,s);((m=g.onVnodeUpdated)||p)&&As((()=>{m&&va(m,n,t,e),p&&Ci(t,e,n,"updated")}),i)},T=(e,t,n,i,r,s,a)=>{for(let o=0;o<t.length;o++){const l=e[o],c=t[o],u=l.el&&(l.type===Ys||!ta(l,c)||70&l.shapeFlag)?f(l.el):n;b(l,c,u,null,i,r,s,a,!0)}},D=(e,t,n,i,s,a,l)=>{if(n!==i){if(n!==r)for(const r in n)L(r)||r in i||o(e,r,n[r],null,l,t.children,s,a,q);for(const r in i){if(L(r))continue;const c=i[r],u=n[r];c!==u&&"value"!==r&&o(e,r,u,c,l,t.children,s,a,q)}"value"in i&&o(e,"value",n.value,i.value,l)}},P=(e,t,i,r,s,a,o,l,u)=>{const h=t.el=e?e.el:c(""),d=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(n(h,i,r),n(d,i,r),_(t.children||[],i,d,s,a,o,l,u)):p>0&&64&p&&f&&e.dynamicChildren?(T(e.dynamicChildren,f,i,s,a,o,l),(null!=t.key||s&&t===s.subTree)&&Ds(e,t,!0)):Y(e,t,i,d,s,a,o,l,u)},O=(e,t,n,i,r,s,a,o,l)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,a,l):I(t,n,i,r,s,a,l):N(e,t,l)},I=(e,t,n,i,r,s,a)=>{const o=e.component=ya(e,i,r);if(Wi(e)&&(o.ctx.renderer=Q),Pa(o),o.asyncDep){if(r&&r.registerDep(o,F),!e.el){const e=o.subTree=aa(Hs);y(null,e,t,n)}}else F(o,e,t,n,r,s,a)},N=(e,t,n)=>{const i=t.component=e.component;if(function(e,t,n){const{props:i,children:r,component:s}=e,{props:a,children:o,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!o||o&&o.$stable)||i!==a&&(i?!a||qn(i,a,c):!!a);if(1024&l)return!0;if(16&l)return i?qn(i,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==i[n]&&!Fn(c,n))return!0}}return!1}(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void z(i,t,n);i.next=t,function(e){const t=mn.indexOf(e);t>vn&&mn.splice(t,1)}(i.update),i.effect.dirty=!0,i.update()}else t.el=e.el,i.vnode=t},F=(e,t,n,i,r,s,o)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:i,parent:a,vnode:c}=e;{const n=Ps(e);if(n)return t&&(t.el=c.el,z(e,t,o)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,h=t;0,Ls(e,!1),t?(t.el=c.el,z(e,t,o)):t=c,n&&B(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&va(u,a,t,c),Ls(e,!0);const d=Vn(e);0;const p=e.subTree;e.subTree=d,b(p,d,f(p.el),Z(p),e,r,s),t.el=d.el,null===h&&Zn(e,d.el),i&&As(i,r),(u=t.props&&t.props.onVnodeUpdated)&&As((()=>va(u,a,t,c)),r)}else{let a;const{el:o,props:l}=t,{bm:c,m:u,parent:h}=e,d=Yi(t);if(Ls(e,!1),c&&B(c),!d&&(a=l&&l.onVnodeBeforeMount)&&va(a,h,t),Ls(e,!0),o&&te){const n=()=>{e.subTree=Vn(e),te(o,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const a=e.subTree=Vn(e);0,b(null,a,n,i,e,r,s),t.el=a.el}if(u&&As(u,r),!d&&(a=l&&l.onVnodeMounted)){const e=t;As((()=>va(a,h,e)),r)}(256&t.shapeFlag||h&&Yi(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&As(e.a,r),e.isMounted=!0,t=n=i=null}},c=e.effect=new be(l,a,(()=>Sn(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,Ls(e,!0),u()},z=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:a}}=e,o=Rt(r),[l]=e.propsOptions;let c=!1;if(!(i||a>0)||16&a){let i;rs(e,t,r,s)&&(c=!0);for(const s in o)t&&(p(t,s)||(i=R(s))!==s&&p(t,i))||(l?!n||void 0===n[s]&&void 0===n[i]||(r[s]=ss(l,o,s,void 0,e,!0)):delete r[s]);if(s!==o)for(const e in s)t&&p(t,e)||(delete s[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let a=n[i];if(Fn(e.emitsOptions,a))continue;const u=t[a];if(l)if(p(s,a))u!==s[a]&&(s[a]=u,c=!0);else{const t=M(a);r[t]=ss(l,o,t,u,e,!1)}else u!==s[a]&&(s[a]=u,c=!0)}}c&&Ye(e.attrs,"set","")}(e,t.props,i,n),vs(e,t.children,n),Le(),En(e),Te()},Y=(e,t,n,i,r,s,a,o,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void H(c,h,n,i,r,s,a,o,l);if(256&p)return void j(c,h,n,i,r,s,a,o,l)}8&f?(16&u&&q(c,r,s),h!==c&&d(n,h)):16&u?16&f?H(c,h,n,i,r,s,a,o,l):q(c,r,s,!0):(8&u&&d(n,""),16&f&&_(h,n,i,r,s,a,o,l))},j=(e,t,n,i,r,a,o,l,c)=>{t=t||s;const u=(e=e||s).length,h=t.length,d=Math.min(u,h);let p;for(p=0;p<d;p++){const i=t[p]=c?fa(t[p]):pa(t[p]);b(e[p],i,n,null,r,a,o,l,c)}u>h?q(e,r,a,!0,!1,d):_(t,n,i,r,a,o,l,c,d)},H=(e,t,n,i,r,a,o,l,c)=>{let u=0;const h=t.length;let d=e.length-1,p=h-1;for(;u<=d&&u<=p;){const i=e[u],s=t[u]=c?fa(t[u]):pa(t[u]);if(!ta(i,s))break;b(i,s,n,null,r,a,o,l,c),u++}for(;u<=d&&u<=p;){const i=e[d],s=t[p]=c?fa(t[p]):pa(t[p]);if(!ta(i,s))break;b(i,s,n,null,r,a,o,l,c),d--,p--}if(u>d){if(u<=p){const e=p+1,s=e<h?t[e].el:i;for(;u<=p;)b(null,t[u]=c?fa(t[u]):pa(t[u]),n,s,r,a,o,l,c),u++}}else if(u>p)for(;u<=d;)V(e[u],r,a,!0),u++;else{const f=u,g=u,m=new Map;for(u=g;u<=p;u++){const e=t[u]=c?fa(t[u]):pa(t[u]);null!=e.key&&m.set(e.key,u)}let v,x=0;const y=p-g+1;let w=!1,k=0;const A=new Array(y);for(u=0;u<y;u++)A[u]=0;for(u=f;u<=d;u++){const i=e[u];if(x>=y){V(i,r,a,!0);continue}let s;if(null!=i.key)s=m.get(i.key);else for(v=g;v<=p;v++)if(0===A[v-g]&&ta(i,t[v])){s=v;break}void 0===s?V(i,r,a,!0):(A[s-g]=u+1,s>=k?k=s:w=!0,b(i,t[s],n,null,r,a,o,l,c),x++)}const S=w?function(e){const t=e.slice(),n=[0];let i,r,s,a,o;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(r=n[n.length-1],e[r]<l){t[i]=r,n.push(i);continue}for(s=0,a=n.length-1;s<a;)o=s+a>>1,e[n[o]]<l?s=o+1:a=o;l<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}s=n.length,a=n[s-1];for(;s-- >0;)n[s]=a,a=t[a];return n}(A):s;for(v=S.length-1,u=y-1;u>=0;u--){const e=g+u,s=t[e],d=e+1<h?t[e+1].el:i;0===A[u]?b(null,s,n,d,r,a,o,l,c):w&&(v<0||u!==S[v]?X(s,n,d,2):v--)}}},X=(e,t,i,r,s=null)=>{const{el:a,type:o,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void X(e.component.subTree,t,i,r);if(128&u)return void e.suspense.move(t,i,r);if(64&u)return void o.move(e,t,i,Q);if(o===Ys){n(a,t,i);for(let e=0;e<c.length;e++)X(c[e],t,i,r);return void n(e.anchor,t,i)}if(o===Ws)return void(({el:e,anchor:t},i,r)=>{let s;for(;e&&e!==t;)s=g(e),n(e,i,r),e=s;n(t,i,r)})(e,t,i);if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(a),n(a,t,i),As((()=>l.enter(a)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=l,o=()=>n(a,t,i),c=()=>{e(a,(()=>{o(),s&&s()}))};r?r(a,o,c):c()}else n(a,t,i)},V=(e,t,n,i=!1,r=!1)=>{const{type:s,props:a,ref:o,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d}=e;if(null!=o&&bs(o,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&d,f=!Yi(e);let g;if(f&&(g=a&&a.onVnodeBeforeUnmount)&&va(g,t,e),6&u)G(e.component,n,i);else{if(128&u)return void e.suspense.unmount(n,i);p&&Ci(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,Q,i):c&&(s!==Ys||h>0&&64&h)?q(c,t,n,!1,!0):(s===Ys&&384&h||!r&&16&u)&&q(l,t,n),i&&U(e)}(f&&(g=a&&a.onVnodeUnmounted)||p)&&As((()=>{g&&va(g,t,e),p&&Ci(e,null,t,"unmounted")}),n)},U=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===Ys)return void $(n,r);if(t===Ws)return void k(e);const a=()=>{i(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:i}=s,r=()=>t(n,a);i?i(e.el,a,r):r()}else a()},$=(e,t)=>{let n;for(;e!==t;)n=g(e),i(e),e=n;i(t)},G=(e,t,n)=>{const{bum:i,scope:r,update:s,subTree:a,um:o}=e;i&&B(i),r.stop(),s&&(s.active=!1,V(a,e,t,n)),o&&As(o,t),As((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},q=(e,t,n,i=!1,r=!1,s=0)=>{for(let a=s;a<e.length;a++)V(e[a],t,n,i,r)},Z=e=>6&e.shapeFlag?Z(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el);let K=!1;const J=(e,t,n)=>{null==e?t._vnode&&V(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),K||(K=!0,En(),Ln(),K=!1),t._vnode=e},Q={p:b,um:V,m:X,r:U,mt:I,mc:_,pc:Y,pbc:T,n:Z,o:e};let ee,te;return t&&([ee,te]=t(Q)),{render:J,hydrate:ee,createApp:Zr(J,ee)}}function Es({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ls({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ts(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ds(e,t,n=!1){const i=e.children,r=t.children;if(f(i)&&f(r))for(let e=0;e<i.length;e++){const t=i[e];let s=r[e];1&s.shapeFlag&&!s.dynamicChildren&&((s.patchFlag<=0||32===s.patchFlag)&&(s=r[e]=fa(r[e]),s.el=t.el),n||Ds(t,s)),s.type===js&&(s.el=t.el)}}function Ps(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ps(t)}const Ms=e=>e&&(e.disabled||""===e.disabled),Os=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Rs=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Is=(e,t)=>{const n=e&&e.to;if(x(n)){if(t){const e=t(n);return e}return null}return n},Ns={name:"Teleport",__isTeleport:!0,process(e,t,n,i,r,s,a,o,l,c){const{mc:u,pc:h,pbc:d,o:{insert:p,querySelector:f,createText:g,createComment:m}}=c,v=Ms(t.props);let{shapeFlag:b,children:x,dynamicChildren:y}=t;if(null==e){const e=t.el=g(""),c=t.anchor=g("");p(e,n,i),p(c,n,i);const h=t.target=Is(t.props,f),d=t.targetAnchor=g("");h&&(p(d,h),"svg"===a||Os(h)?a="svg":("mathml"===a||Rs(h))&&(a="mathml"));const m=(e,t)=>{16&b&&u(x,e,t,r,s,a,o,l)};v?m(n,c):h&&m(h,d)}else{t.el=e.el;const i=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,g=Ms(e.props),m=g?n:u,b=g?i:p;if("svg"===a||Os(u)?a="svg":("mathml"===a||Rs(u))&&(a="mathml"),y?(d(e.dynamicChildren,y,m,r,s,a,o),Ds(e,t,!0)):l||h(e,t,m,b,r,s,a,o,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fs(t,n,i,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Is(t.props,f);e&&Fs(t,e,null,c,0)}else g&&Fs(t,u,p,c,1)}zs(t)},remove(e,t,n,i,{um:r,o:{remove:s}},a){const{shapeFlag:o,children:l,anchor:c,targetAnchor:u,target:h,props:d}=e;if(h&&s(u),a&&s(c),16&o){const e=a||!Ms(d);for(let i=0;i<l.length;i++){const s=l[i];r(s,t,n,e,!!s.dynamicChildren)}}},move:Fs,hydrate:function(e,t,n,i,r,s,{o:{nextSibling:a,parentNode:o,querySelector:l}},c){const u=t.target=Is(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Ms(t.props))t.anchor=c(a(e),t,o(e),n,i,r,s),t.targetAnchor=l;else{t.anchor=a(e);let o=l;for(;o;)if(o=a(o),o&&8===o.nodeType&&"teleport anchor"===o.data){t.targetAnchor=o,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(l,t,u,n,i,r,s)}zs(t)}return t.anchor&&a(t.anchor)}};function Fs(e,t,n,{o:{insert:i},m:r},s=2){0===s&&i(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:l,children:c,props:u}=e,h=2===s;if(h&&i(a,t,n),(!h||Ms(u))&&16&l)for(let e=0;e<c.length;e++)r(c[e],t,n,2);h&&i(o,t,n)}const Bs=Ns;function zs(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ys=Symbol.for("v-fgt"),js=Symbol.for("v-txt"),Hs=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),Xs=[];let Vs=null;function Us(e=!1){Xs.push(Vs=e?null:[])}function $s(){Xs.pop(),Vs=Xs[Xs.length-1]||null}let Gs,qs=1;function Zs(e){qs+=e}function Ks(e){return e.dynamicChildren=qs>0?Vs||s:null,$s(),qs>0&&Vs&&Vs.push(e),e}function Js(e,t,n,i,r,s){return Ks(sa(e,t,n,i,r,s,!0))}function Qs(e,t,n,i,r){return Ks(aa(e,t,n,i,r,!0))}function ea(e){return!!e&&!0===e.__v_isVNode}function ta(e,t){return e.type===t.type&&e.key===t.key}function na(e){Gs=e}const ia=({key:e})=>null!=e?e:null,ra=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?x(e)||Ht(e)||b(e)?{i:Bn,r:e,k:t,f:!!n}:e:null);function sa(e,t=null,n=null,i=0,r=null,s=(e===Ys?0:1),a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ia(t),ref:t&&ra(t),scopeId:zn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Bn};return o?(ga(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=x(n)?8:16),qs>0&&!a&&Vs&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&Vs.push(l),l}const aa=oa;function oa(e,t=null,n=null,i=0,r=null,s=!1){if(e&&e!==ei||(e=Hs),ea(e)){const i=ca(e,t,!0);return n&&ga(i,n),qs>0&&!s&&Vs&&(6&i.shapeFlag?Vs[Vs.indexOf(e)]=i:Vs.push(i)),i.patchFlag|=-2,i}if(Ya(e)&&(e=e.__vccOpts),t){t=la(t);let{class:e,style:n}=t;e&&!x(e)&&(t.class=Z(e)),w(n)&&(Ot(n)&&!f(n)&&(n=u({},n)),t.style=V(n))}return sa(e,t,n,i,r,x(e)?1:si(e)?128:(e=>e.__isTeleport)(e)?64:w(e)?4:b(e)?2:0,s,!0)}function la(e){return e?Ot(e)||is(e)?u({},e):e:null}function ca(e,t,n=!1,i=!1){const{props:r,ref:s,patchFlag:a,children:o,transition:l}=e,c=t?ma(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ia(c),ref:t&&t.ref?n&&s?f(s)?s.concat(ra(t)):[s,ra(t)]:ra(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ys?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ca(e.ssContent),ssFallback:e.ssFallback&&ca(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&(u.transition=l.clone(u)),u}function ua(e=" ",t=0){return aa(js,null,e,t)}function ha(e,t){const n=aa(Ws,null,e);return n.staticCount=t,n}function da(e="",t=!1){return t?(Us(),Qs(Hs,null,e)):aa(Hs,null,e)}function pa(e){return null==e||"boolean"==typeof e?aa(Hs):f(e)?aa(Ys,null,e.slice()):"object"==typeof e?fa(e):aa(js,null,String(e))}function fa(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ca(e)}function ga(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),ga(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||is(t)?3===i&&Bn&&(1===Bn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Bn}}else b(t)?(t={default:t,_ctx:Bn},n=32):(t=String(t),64&i?(n=16,t=[ua(t)]):n=8);e.children=t,e.shapeFlag|=n}function ma(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=Z([t.class,i.class]));else if("style"===e)t.style=V([t.style,i.style]);else if(l(e)){const n=t[e],r=i[e];!r||n===r||f(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=i[e])}return t}function va(e,t,n,i=null){dn(e,t,7,[n,i])}const ba=Gr();let xa=0;function ya(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||ba,a={uid:xa++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new pe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:as(i,s),emitsOptions:Nn(i,s),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=In.bind(null,a),e.ce&&e.ce(a),a}let wa=null;const ka=()=>wa||Bn;let Aa,Sa;{const e=W(),t=(t,n)=>{let i;return(i=e[t])||(i=e[t]=[]),i.push(n),e=>{i.length>1?i.forEach((t=>t(e))):i[0](e)}};Aa=t("__VUE_INSTANCE_SETTERS__",(e=>wa=e)),Sa=t("__VUE_SSR_SETTERS__",(e=>Da=e))}const Ca=e=>{const t=wa;return Aa(e),e.scope.on(),()=>{e.scope.off(),Aa(t)}},_a=()=>{wa&&wa.scope.off(),Aa(null)};function Ea(e){return 4&e.vnode.shapeFlag}let La,Ta,Da=!1;function Pa(e,t=!1){t&&Sa(t);const{props:n,children:i}=e.vnode,r=Ea(e);!function(e,t,n,i=!1){const r={},s=ns();e.propsDefaults=Object.create(null),rs(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=i?r:_t(r):e.type.props?e.props=r:e.props=s,e.attrs=s}(e,n,r,t),ms(e,i);const s=r?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xr),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Fa(e):null,r=Ca(e);Le();const s=hn(i,e,0,[e.props,n]);if(Te(),r(),k(s)){if(s.then(_a,_a),t)return s.then((n=>{Ma(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=s}else Ma(e,s,t)}else Ia(e,t)}(e,t):void 0;return t&&Sa(!1),s}function Ma(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:w(t)&&(e.setupState=Kt(t)),Ia(e,n)}function Oa(e){La=e,Ta=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,yr))}}const Ra=()=>!La;function Ia(e,t,n){const i=e.type;if(!e.render){if(!t&&La&&!i.render){const t=i.template||Yr(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:a}=i,o=u(u({isCustomElement:n,delimiters:s},r),a);i.render=La(t,o)}}e.render=i.render||a,Ta&&Ta(e)}{const t=Ca(e);Le();try{Fr(e)}finally{Te(),t()}}}const Na={get:(e,t)=>(ze(e,0,""),e[t])};function Fa(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Na),slots:e.slots,emit:e.emit,expose:t}}function Ba(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Kt(It(e.exposed)),{get:(t,n)=>n in t?t[n]:n in vr?vr[n](e):void 0,has:(e,t)=>t in e||t in vr}))}function za(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}function Ya(e){return b(e)&&"__vccOpts"in e}const ja=(e,t)=>zt(e,0,Da);function Ha(e,t,n=r){const i=ka();const s=M(t),a=R(t),o=Qt(((r,o)=>{let l;return vi((()=>{const n=e[t];F(l,n)&&(l=n,o())})),{get:()=>(r(),n.get?n.get(l):l),set(e){const r=i.vnode.props;r&&(t in r||s in r||a in r)&&(`onUpdate:${t}`in r||`onUpdate:${s}`in r||`onUpdate:${a}`in r)||!F(e,l)||(l=e,o()),i.emit(`update:${t}`,n.set?n.set(e):e)}}})),l="modelValue"===t?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[l]||{}:o,done:!1}:{done:!0}}},o}function Wa(e,t,n){const i=arguments.length;return 2===i?w(t)&&!f(t)?ea(t)?aa(e,null,[t]):aa(e,t):aa(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&ea(n)&&(n=[n]),aa(e,t,n))}function Xa(){return void 0}function Va(e,t,n,i){const r=n[i];if(r&&Ua(r,e))return r;const s=t();return s.memo=e.slice(),n[i]=s}function Ua(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(F(n[e],t[e]))return!1;return qs>0&&Vs&&Vs.push(e),!0}const $a="3.4.27",Ga=a,qa=un,Za=Mn,Ka=function e(t,n){var i,r;if(Mn=t,Mn)Mn.enabled=!0,On.forEach((({event:e,args:t})=>Mn.emit(e,...t))),On=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(i=window.navigator)?void 0:i.userAgent)?void 0:r.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Mn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Rn=!0,On=[])}),3e3)}else Rn=!0,On=[]},Ja={createComponentInstance:ya,setupComponent:Pa,renderComponentRoot:Vn,setCurrentRenderingInstance:Yn,isVNode:ea,normalizeVNode:pa},Qa=null,eo=null,to=null,no="undefined"!=typeof document?document:null,io=no&&no.createElement("template"),ro={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r="svg"===t?no.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?no.createElementNS("http://www.w3.org/1998/Math/MathML",e):no.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>no.createTextNode(e),createComment:e=>no.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>no.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,s){const a=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{io.innerHTML="svg"===i?`<svg>${e}</svg>`:"mathml"===i?`<math>${e}</math>`:e;const r=io.content;if("svg"===i||"mathml"===i){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},so="transition",ao="animation",oo=Symbol("_vtc"),lo=(e,{slots:t})=>Wa(Mi,fo(e),t);lo.displayName="Transition";const co={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},uo=lo.props=u({},Di,co),ho=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},po=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function fo(e){const t={};for(const n in e)n in co||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:i,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=a,appearToClass:h=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(w(e))return[go(e.enter),go(e.leave)];{const t=go(e);return[t,t]}}(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:y,onLeave:k,onLeaveCancelled:A,onBeforeAppear:S=b,onAppear:C=x,onAppearCancelled:_=y}=t,E=(e,t,n)=>{vo(e,t?h:o),vo(e,t?c:a),n&&n()},L=(e,t)=>{e._isLeaving=!1,vo(e,d),vo(e,f),vo(e,p),t&&t()},T=e=>(t,n)=>{const r=e?C:x,a=()=>E(t,e,n);ho(r,[t,a]),bo((()=>{vo(t,e?l:s),mo(t,e?h:o),po(r)||yo(t,i,m,a)}))};return u(t,{onBeforeEnter(e){ho(b,[e]),mo(e,s),mo(e,a)},onBeforeAppear(e){ho(S,[e]),mo(e,l),mo(e,c)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>L(e,t);mo(e,d),mo(e,p),So(),bo((()=>{e._isLeaving&&(vo(e,d),mo(e,f),po(k)||yo(e,i,v,n))})),ho(k,[e,n])},onEnterCancelled(e){E(e,!1),ho(y,[e])},onAppearCancelled(e){E(e,!0),ho(_,[e])},onLeaveCancelled(e){L(e),ho(A,[e])}})}function go(e){return j(e)}function mo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[oo]||(e[oo]=new Set)).add(t)}function vo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[oo];n&&(n.delete(t),n.size||(e[oo]=void 0))}function bo(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let xo=0;function yo(e,t,n,i){const r=e._endId=++xo,s=()=>{r===e._endId&&i()};if(n)return setTimeout(s,n);const{type:a,timeout:o,propCount:l}=wo(e,t);if(!a)return i();const c=a+"end";let u=0;const h=()=>{e.removeEventListener(c,d),s()},d=t=>{t.target===e&&++u>=l&&h()};setTimeout((()=>{u<l&&h()}),o+1),e.addEventListener(c,d)}function wo(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),r=i(`${so}Delay`),s=i(`${so}Duration`),a=ko(r,s),o=i(`${ao}Delay`),l=i(`${ao}Duration`),c=ko(o,l);let u=null,h=0,d=0;t===so?a>0&&(u=so,h=a,d=s.length):t===ao?c>0&&(u=ao,h=c,d=l.length):(h=Math.max(a,c),u=h>0?a>c?so:ao:null,d=u?u===so?s.length:l.length:0);return{type:u,timeout:h,propCount:d,hasTransform:u===so&&/\b(transform|all)(,|$)/.test(i(`${so}Property`).toString())}}function ko(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Ao(t)+Ao(e[n]))))}function Ao(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function So(){return document.body.offsetHeight}const Co=Symbol("_vod"),_o=Symbol("_vsh"),Eo={beforeMount(e,{value:t},{transition:n}){e[Co]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Lo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Lo(e,!0),i.enter(e)):i.leave(e,(()=>{Lo(e,!1)})):Lo(e,t))},beforeUnmount(e,{value:t}){Lo(e,t)}};function Lo(e,t){e.style.display=t?e[Co]:"none",e[_o]=!t}const To=Symbol("");function Do(e){const t=ka();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Mo(e,n)))};const i=()=>{const i=e(t.proxy);Po(t.subTree,i),n(i)};nr((()=>{mi(i);const e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),ar((()=>e.disconnect()))}))}function Po(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Po(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Mo(e.el,t);else if(e.type===Ys)e.children.forEach((e=>Po(e,t)));else if(e.type===Ws){let{el:n,anchor:i}=e;for(;n&&(Mo(n,t),n!==i);)n=n.nextSibling}}function Mo(e,t){if(1===e.nodeType){const n=e.style;let i="";for(const e in t)n.setProperty(`--${e}`,t[e]),i+=`--${e}: ${t[e]};`;n[To]=i}}const Oo=/(^|;)\s*display\s*:/;const Ro=/\s*!important$/;function Io(e,t,n){if(f(n))n.forEach((n=>Io(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=Fo[t];if(n)return n;let i=M(t);if("filter"!==i&&i in e)return Fo[t]=i;i=I(i);for(let n=0;n<No.length;n++){const r=No[n]+i;if(r in e)return Fo[t]=r}return t}(e,t);Ro.test(n)?e.setProperty(R(i),n.replace(Ro,""),"important"):e[i]=n}}const No=["Webkit","Moz","ms"],Fo={};const Bo="http://www.w3.org/1999/xlink";function zo(e,t,n,i){e.addEventListener(t,n,i)}const Yo=Symbol("_vei");function jo(e,t,n,i,r=null){const s=e[Yo]||(e[Yo]={}),a=s[t];if(i&&a)a.value=i;else{const[n,o]=function(e){let t;if(Ho.test(e)){let n;for(t={};n=e.match(Ho);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):R(e.slice(2));return[n,t]}(t);if(i){const a=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();dn(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Vo(),n}(i,r);zo(e,n,a,o)}else a&&(!function(e,t,n,i){e.removeEventListener(t,n,i)}(e,n,a,o),s[t]=void 0)}}const Ho=/(?:Once|Passive|Capture)$/;let Wo=0;const Xo=Promise.resolve(),Vo=()=>Wo||(Xo.then((()=>Wo=0)),Wo=Date.now());const Uo=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function $o(e,t){const n=zi(e);class i extends Zo{constructor(e){super(n,e,t)}}return i.def=n,i}const Go=e=>$o(e,Ol),qo="undefined"!=typeof HTMLElement?HTMLElement:class{};class Zo extends qo{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),An((()=>{this._connected||(Ml(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:i}=e;let r;if(n&&!f(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=j(this._props[e])),(r||(r=Object.create(null)))[M(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(M))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=M(e);this._numberProps&&this._numberProps[n]&&(t=j(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Ml(this._createVNode(),this.shadowRoot)}_createVNode(){const e=aa(this._def,u({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Zo){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Ko(e="$style"){{const t=ka();if(!t)return r;const n=t.type.__cssModules;if(!n)return r;const i=n[e];return i||r}}const Jo=new WeakMap,Qo=new WeakMap,el=Symbol("_moveCb"),tl=Symbol("_enterCb"),nl={name:"TransitionGroup",props:u({},uo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ka(),i=Li();let r,s;return rr((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const i=e.cloneNode(),r=e[oo];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&i.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&i.classList.add(e))),i.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(i);const{hasTransform:a}=wo(i);return s.removeChild(i),a}(r[0].el,n.vnode.el,t))return;r.forEach(rl),r.forEach(sl);const i=r.filter(al);So(),i.forEach((e=>{const n=e.el,i=n.style;mo(n,t),i.transform=i.webkitTransform=i.transitionDuration="";const r=n[el]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[el]=null,vo(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const a=Rt(e),o=fo(a);let l=a.tag||Ys;if(r=[],s)for(let e=0;e<s.length;e++){const t=s[e];t.el&&t.el instanceof Element&&(r.push(t),Fi(t,Ri(t,o,i,n)),Jo.set(t,t.el.getBoundingClientRect()))}s=t.default?Bi(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&Fi(t,Ri(t,o,i,n))}return aa(l,null,s)}}},il=nl;function rl(e){const t=e.el;t[el]&&t[el](),t[tl]&&t[tl]()}function sl(e){Qo.set(e,e.el.getBoundingClientRect())}function al(e){const t=Jo.get(e),n=Qo.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${i}px,${r}px)`,t.transitionDuration="0s",e}}const ol=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>B(t,e):t};function ll(e){e.target.composing=!0}function cl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ul=Symbol("_assign"),hl={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[ul]=ol(r);const s=i||r.props&&"number"===r.props.type;zo(e,t?"change":"input",(t=>{if(t.target.composing)return;let i=e.value;n&&(i=i.trim()),s&&(i=Y(i)),e[ul](i)})),n&&zo(e,"change",(()=>{e.value=e.value.trim()})),t||(zo(e,"compositionstart",ll),zo(e,"compositionend",cl),zo(e,"change",cl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},s){if(e[ul]=ol(s),e.composing)return;const a=null==t?"":t;if((!r&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Y(e.value))!==a){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(i&&e.value.trim()===a)return}e.value=a}}},dl={deep:!0,created(e,t,n){e[ul]=ol(n),zo(e,"change",(()=>{const t=e._modelValue,n=vl(e),i=e.checked,r=e[ul];if(f(t)){const e=ae(t,n),s=-1!==e;if(i&&!s)r(t.concat(n));else if(!i&&s){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);i?e.add(n):e.delete(n),r(e)}else r(bl(e,i))}))},mounted:pl,beforeUpdate(e,t,n){e[ul]=ol(n),pl(e,t,n)}};function pl(e,{value:t,oldValue:n},i){e._modelValue=t,f(t)?e.checked=ae(t,i.props.value)>-1:m(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=se(t,bl(e,!0)))}const fl={created(e,{value:t},n){e.checked=se(t,n.props.value),e[ul]=ol(n),zo(e,"change",(()=>{e[ul](vl(e))}))},beforeUpdate(e,{value:t,oldValue:n},i){e[ul]=ol(i),t!==n&&(e.checked=se(t,i.props.value))}},gl={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=m(t);zo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?Y(vl(e)):vl(e)));e[ul](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,An((()=>{e._assigning=!1}))})),e[ul]=ol(i)},mounted(e,{value:t,modifiers:{number:n}}){ml(e,t)},beforeUpdate(e,t,n){e[ul]=ol(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ml(e,t)}};function ml(e,t,n){const i=e.multiple,r=f(t);if(!i||r||m(t)){for(let n=0,s=e.options.length;n<s;n++){const s=e.options[n],a=vl(s);if(i)if(r){const e=typeof a;s.selected="string"===e||"number"===e?t.some((e=>String(e)===String(a))):ae(t,a)>-1}else s.selected=t.has(a);else if(se(vl(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}i||-1===e.selectedIndex||(e.selectedIndex=-1)}}function vl(e){return"_value"in e?e._value:e.value}function bl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xl={created(e,t,n){wl(e,t,n,null,"created")},mounted(e,t,n){wl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){wl(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){wl(e,t,n,i,"updated")}};function yl(e,t){switch(e){case"SELECT":return gl;case"TEXTAREA":return hl;default:switch(t){case"checkbox":return dl;case"radio":return fl;default:return hl}}}function wl(e,t,n,i,r){const s=yl(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,i)}const kl=["ctrl","shift","alt","meta"],Al={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>kl.some((n=>e[`${n}Key`]&&!t.includes(n)))},Sl=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(n,...i)=>{for(let e=0;e<t.length;e++){const i=Al[t[e]];if(i&&i(n,t))return}return e(n,...i)})},Cl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},_l=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=n=>{if(!("key"in n))return;const i=R(n.key);return t.some((e=>e===i||Cl[e]===i))?e(n):void 0})},El=u({patchProp:(e,t,n,i,r,s,a,o,u)=>{const h="svg"===r;"class"===t?function(e,t,n){const i=e[oo];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,h):"style"===t?function(e,t,n){const i=e.style,r=x(n);let s=!1;if(n&&!r){if(t)if(x(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Io(i,t,"")}else for(const e in t)null==n[e]&&Io(i,e,"");for(const e in n)"display"===e&&(s=!0),Io(i,e,n[e])}else if(r){if(t!==n){const e=i[To];e&&(n+=";"+e),i.cssText=n,s=Oo.test(n)}}else t&&e.removeAttribute("style");Co in e&&(e[Co]=s?i.display:"",e[_o]&&(i.display="none"))}(e,n,i):l(t)?c(t)||jo(e,t,0,i,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&Uo(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Uo(t)&&x(n))return!1;return t in e}(e,t,i,h))?function(e,t,n,i,r,s,a){if("innerHTML"===t||"textContent"===t)return i&&a(i,r,s),void(e[t]=null==n?"":n);const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const i=null==n?"":n;return("OPTION"===o?e.getAttribute("value")||"":e.value)===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=re(n):null==n&&"string"===i?(n="",l=!0):"number"===i&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,i,s,a,o,u):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,i){if(i&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Bo,t.slice(6,t.length)):e.setAttributeNS(Bo,t,n);else{const i=ie(t);null==n||i&&!re(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}(e,t,i,h))}},ro);let Ll,Tl=!1;function Dl(){return Ll||(Ll=Ss(El))}function Pl(){return Ll=Tl?Ll:Cs(El),Tl=!0,Ll}const Ml=(...e)=>{Dl().render(...e)},Ol=(...e)=>{Pl().hydrate(...e)},Rl=(...e)=>{const t=Dl().createApp(...e);const{mount:n}=t;return t.mount=e=>{const i=Fl(e);if(!i)return;const r=t._component;b(r)||r.render||r.template||(r.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,Nl(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},Il=(...e)=>{const t=Pl().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Fl(e);if(t)return n(t,!0,Nl(t))},t};function Nl(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Fl(e){if(x(e)){return document.querySelector(e)}return e}let Bl=!1;const zl=()=>{Bl||(Bl=!0,hl.getSSRProps=({value:e})=>({value:e}),fl.getSSRProps=({value:e},t)=>{if(t.props&&se(t.props.value,e))return{checked:!0}},dl.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&ae(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},xl.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=yl(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Eo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Yl=Symbol(""),jl=Symbol(""),Hl=Symbol(""),Wl=Symbol(""),Xl=Symbol(""),Vl=Symbol(""),Ul=Symbol(""),$l=Symbol(""),Gl=Symbol(""),ql=Symbol(""),Zl=Symbol(""),Kl=Symbol(""),Jl=Symbol(""),Ql=Symbol(""),ec=Symbol(""),tc=Symbol(""),nc=Symbol(""),ic=Symbol(""),rc=Symbol(""),sc=Symbol(""),ac=Symbol(""),oc=Symbol(""),lc=Symbol(""),cc=Symbol(""),uc=Symbol(""),hc=Symbol(""),dc=Symbol(""),pc=Symbol(""),fc=Symbol(""),gc=Symbol(""),mc=Symbol(""),vc=Symbol(""),bc=Symbol(""),xc=Symbol(""),yc=Symbol(""),wc=Symbol(""),kc=Symbol(""),Ac=Symbol(""),Sc=Symbol(""),Cc={[Yl]:"Fragment",[jl]:"Teleport",[Hl]:"Suspense",[Wl]:"KeepAlive",[Xl]:"BaseTransition",[Vl]:"openBlock",[Ul]:"createBlock",[$l]:"createElementBlock",[Gl]:"createVNode",[ql]:"createElementVNode",[Zl]:"createCommentVNode",[Kl]:"createTextVNode",[Jl]:"createStaticVNode",[Ql]:"resolveComponent",[ec]:"resolveDynamicComponent",[tc]:"resolveDirective",[nc]:"resolveFilter",[ic]:"withDirectives",[rc]:"renderList",[sc]:"renderSlot",[ac]:"createSlots",[oc]:"toDisplayString",[lc]:"mergeProps",[cc]:"normalizeClass",[uc]:"normalizeStyle",[hc]:"normalizeProps",[dc]:"guardReactiveProps",[pc]:"toHandlers",[fc]:"camelize",[gc]:"capitalize",[mc]:"toHandlerKey",[vc]:"setBlockTracking",[bc]:"pushScopeId",[xc]:"popScopeId",[yc]:"withCtx",[wc]:"unref",[kc]:"isRef",[Ac]:"withMemo",[Sc]:"isMemoSame"};const _c={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Ec(e,t,n,i,r,s,a,o=!1,l=!1,c=!1,u=_c){return e&&(o?(e.helper(Vl),e.helper(Fc(e.inSSR,c))):e.helper(Nc(e.inSSR,c)),a&&e.helper(ic)),{type:13,tag:t,props:n,children:i,patchFlag:r,dynamicProps:s,directives:a,isBlock:o,disableTracking:l,isComponent:c,loc:u}}function Lc(e,t=_c){return{type:17,loc:t,elements:e}}function Tc(e,t=_c){return{type:15,loc:t,properties:e}}function Dc(e,t){return{type:16,loc:_c,key:x(e)?Pc(e,!0):e,value:t}}function Pc(e,t=!1,n=_c,i=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:i}}function Mc(e,t=_c){return{type:8,loc:t,children:e}}function Oc(e,t=[],n=_c){return{type:14,loc:n,callee:e,arguments:t}}function Rc(e,t=void 0,n=!1,i=!1,r=_c){return{type:18,params:e,returns:t,newline:n,isSlot:i,loc:r}}function Ic(e,t,n,i=!0){return{type:19,test:e,consequent:t,alternate:n,newline:i,loc:_c}}function Nc(e,t){return e||t?Gl:ql}function Fc(e,t){return e||t?Ul:$l}function Bc(e,{helper:t,removeHelper:n,inSSR:i}){e.isBlock||(e.isBlock=!0,n(Nc(i,e.isComponent)),t(Vl),t(Fc(i,e.isComponent)))}const zc=new Uint8Array([123,123]),Yc=new Uint8Array([125,125]);function jc(e){return e>=97&&e<=122||e>=65&&e<=90}function Hc(e){return 32===e||10===e||9===e||12===e||13===e}function Wc(e){return 47===e||62===e||Hc(e)}function Xc(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Vc={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function Uc(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function $c(e,t){const n=Uc("MODE",t),i=Uc(e,t);return 3===n?!0===i:!1!==i}function Gc(e,t,n,...i){return $c(e,t)}function qc(e){throw e}function Zc(e){}function Kc(e,t,n,i){const r=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return r.code=e,r.loc=t,r}const Jc=e=>4===e.type&&e.isStatic;function Qc(e){switch(e){case"Teleport":case"teleport":return jl;case"Suspense":case"suspense":return Hl;case"KeepAlive":case"keep-alive":return Wl;case"BaseTransition":case"base-transition":return Xl}}const eu=/^\d|[^\$\w\xA0-\uFFFF]/,tu=e=>!eu.test(e),nu=/[A-Za-z_$\xA0-\uFFFF]/,iu=/[\.\?\w$\xA0-\uFFFF]/,ru=/\s+[.[]\s*|\s*[.[]\s+/g,su=e=>4===e.type?e.content:e.loc.source,au=e=>{const t=su(e).trim().replace(ru,(e=>e.trim()));let n=0,i=[],r=0,s=0,a=null;for(let e=0;e<t.length;e++){const o=t.charAt(e);switch(n){case 0:if("["===o)i.push(n),n=1,r++;else if("("===o)i.push(n),n=2,s++;else if(!(0===e?nu:iu).test(o))return!1;break;case 1:"'"===o||'"'===o||"`"===o?(i.push(n),n=3,a=o):"["===o?r++:"]"===o&&(--r||(n=i.pop()));break;case 2:if("'"===o||'"'===o||"`"===o)i.push(n),n=3,a=o;else if("("===o)s++;else if(")"===o){if(e===t.length-1)return!1;--s||(n=i.pop())}break;case 3:o===a&&(n=i.pop(),a=null)}}return!r&&!s},ou=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,lu=e=>ou.test(su(e));function cu(e,t,n=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(7===r.type&&(n||r.exp)&&(x(t)?r.name===t:t.test(r.name)))return r}}function uu(e,t,n=!1,i=!1){for(let r=0;r<e.props.length;r++){const s=e.props[r];if(6===s.type){if(n)continue;if(s.name===t&&(s.value||i))return s}else if("bind"===s.name&&(s.exp||i)&&hu(s.arg,t))return s}}function hu(e,t){return!(!e||!Jc(e)||e.content!==t)}function du(e){return 5===e.type||2===e.type}function pu(e){return 7===e.type&&"slot"===e.name}function fu(e){return 1===e.type&&3===e.tagType}function gu(e){return 1===e.type&&2===e.tagType}const mu=new Set([hc,dc]);function vu(e,t=[]){if(e&&!x(e)&&14===e.type){const n=e.callee;if(!x(n)&&mu.has(n))return vu(e.arguments[0],t.concat(e))}return[e,t]}function bu(e,t,n){let i,r,s=13===e.type?e.props:e.arguments[2],a=[];if(s&&!x(s)&&14===s.type){const e=vu(s);s=e[0],a=e[1],r=a[a.length-1]}if(null==s||x(s))i=Tc([t]);else if(14===s.type){const e=s.arguments[0];x(e)||15!==e.type?s.callee===pc?i=Oc(n.helper(lc),[Tc([t]),s]):s.arguments.unshift(Tc([t])):xu(t,e)||e.properties.unshift(t),!i&&(i=s)}else 15===s.type?(xu(t,s)||s.properties.unshift(t),i=s):(i=Oc(n.helper(lc),[Tc([t]),s]),r&&r.callee===dc&&(r=a[a.length-2]));13===e.type?r?r.arguments[0]=i:e.props=i:r?r.arguments[0]=i:e.arguments[2]=i}function xu(e,t){let n=!1;if(4===e.key.type){const i=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===i))}return n}function yu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const wu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ku={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:o,isPreTag:o,isIgnoreNewlineTag:o,isCustomElement:o,onError:qc,onWarn:Zc,comments:!1,prefixIdentifiers:!1};let Au=ku,Su=null,Cu="",_u=null,Eu=null,Lu="",Tu=-1,Du=-1,Pu=0,Mu=!1,Ou=null;const Ru=[],Iu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=zc,this.delimiterClose=Yc,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=zc,this.delimiterClose=Yc}getPos(e){let t=1,n=e+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(e>r){t=i+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Wc(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Hc(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Vc.TitleEnd||this.currentSequence===Vc.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Vc.Cdata[this.sequenceIndex]?++this.sequenceIndex===Vc.Cdata.length&&(this.state=28,this.currentSequence=Vc.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Vc.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):jc(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Wc(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Wc(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Xc("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Hc(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=jc(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||Hc(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Hc(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Hc(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Wc(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Wc(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Wc(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Wc(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Wc(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Hc(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):Hc(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Hc(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Vc.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Vc.ScriptEnd[3]?this.startSpecial(Vc.ScriptEnd,4):e===Vc.StyleEnd[3]?this.startSpecial(Vc.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Vc.TitleEnd[3]?this.startSpecial(Vc.TitleEnd,4):e===Vc.TextareaEnd[3]?this.startSpecial(Vc.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Vc.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Ru,{onerr:th,ontext(e,t){Yu(Bu(e,t),e,t)},ontextentity(e,t,n){Yu(e,t,n)},oninterpolation(e,t){if(Mu)return Yu(Bu(e,t),e,t);let n=e+Iu.delimiterOpen.length,i=t-Iu.delimiterClose.length;for(;Hc(Cu.charCodeAt(n));)n++;for(;Hc(Cu.charCodeAt(i-1));)i--;let r=Bu(n,i);r.includes("&")&&(r=Au.decodeEntities(r,!1)),Zu({type:5,content:eh(r,!1,Ku(n,i)),loc:Ku(e,t)})},onopentagname(e,t){const n=Bu(e,t);_u={type:1,tag:n,ns:Au.getNamespace(n,Ru[0],Au.ns),tagType:0,props:[],children:[],loc:Ku(e-1,t),codegenNode:void 0}},onopentagend(e){zu(e)},onclosetag(e,t){const n=Bu(e,t);if(!Au.isVoidTag(n)){let i=!1;for(let e=0;e<Ru.length;e++){if(Ru[e].tag.toLowerCase()===n.toLowerCase()){i=!0,e>0&&th(24,Ru[0].loc.start.offset);for(let n=0;n<=e;n++){ju(Ru.shift(),t,n<e)}break}}i||th(23,Hu(e,60))}},onselfclosingtag(e){const t=_u.tag;_u.isSelfClosing=!0,zu(e),Ru[0]&&Ru[0].tag===t&&ju(Ru.shift(),e)},onattribname(e,t){Eu={type:6,name:Bu(e,t),nameLoc:Ku(e,t),value:void 0,loc:Ku(e)}},ondirname(e,t){const n=Bu(e,t),i="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Mu||""!==i||th(26,e),Mu||""===i)Eu={type:6,name:n,nameLoc:Ku(e,t),value:void 0,loc:Ku(e)};else if(Eu={type:7,name:i,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[Pc("prop")]:[],loc:Ku(e)},"pre"===i){Mu=Iu.inVPre=!0,Ou=_u;const e=_u.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=Qu(e[t]))}},ondirarg(e,t){if(e===t)return;const n=Bu(e,t);if(Mu)Eu.name+=n,Ju(Eu.nameLoc,t);else{const i="["!==n[0];Eu.arg=eh(i?n:n.slice(1,-1),i,Ku(e,t),i?3:0)}},ondirmodifier(e,t){const n=Bu(e,t);if(Mu)Eu.name+="."+n,Ju(Eu.nameLoc,t);else if("slot"===Eu.name){const e=Eu.arg;e&&(e.content+="."+n,Ju(e.loc,t))}else{const i=Pc(n,!0,Ku(e,t));Eu.modifiers.push(i)}},onattribdata(e,t){Lu+=Bu(e,t),Tu<0&&(Tu=e),Du=t},onattribentity(e,t,n){Lu+=e,Tu<0&&(Tu=t),Du=n},onattribnameend(e){const t=Eu.loc.start.offset,n=Bu(t,e);7===Eu.type&&(Eu.rawName=n),_u.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&th(2,t)},onattribend(e,t){if(_u&&Eu){if(Ju(Eu.loc,t),0!==e)if(Lu.includes("&")&&(Lu=Au.decodeEntities(Lu,!0)),6===Eu.type)"class"===Eu.name&&(Lu=qu(Lu).trim()),1!==e||Lu||th(13,t),Eu.value={type:2,content:Lu,loc:1===e?Ku(Tu,Du):Ku(Tu-1,Du+1)},Iu.inSFCRoot&&"template"===_u.tag&&"lang"===Eu.name&&Lu&&"html"!==Lu&&Iu.enterRCDATA(Xc("</template"),0);else{let e=0;Eu.exp=eh(Lu,!1,Ku(Tu,Du),0,e),"for"===Eu.name&&(Eu.forParseResult=function(e){const t=e.loc,n=e.content,i=n.match(wu);if(!i)return;const[,r,s]=i,a=(e,n,i=!1)=>{const r=t.start.offset+n;return eh(e,!1,Ku(r,r+e.length),0,i?1:0)},o={source:a(s.trim(),n.indexOf(s,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=r.trim().replace(Fu,"").trim();const c=r.indexOf(l),u=l.match(Nu);if(u){l=l.replace(Nu,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),o.key=a(e,t,!0)),u[2]){const i=u[2].trim();i&&(o.index=a(i,n.indexOf(i,o.key?t+e.length:c+l.length),!0))}}l&&(o.value=a(l,c,!0));return o}(Eu.exp));let t=-1;"bind"===Eu.name&&(t=Eu.modifiers.findIndex((e=>"sync"===e.content)))>-1&&Gc("COMPILER_V_BIND_SYNC",Au,Eu.loc,Eu.rawName)&&(Eu.name="model",Eu.modifiers.splice(t,1))}7===Eu.type&&"pre"===Eu.name||_u.props.push(Eu)}Lu="",Tu=Du=-1},oncomment(e,t){Au.comments&&Zu({type:3,content:Bu(e,t),loc:Ku(e-4,t+3)})},onend(){const e=Cu.length;for(let t=0;t<Ru.length;t++)ju(Ru[t],e-1),th(24,Ru[t].loc.start.offset)},oncdata(e,t){0!==Ru[0].ns?Yu(Bu(e,t),e,t):th(1,e-9)},onprocessinginstruction(e){0===(Ru[0]?Ru[0].ns:Au.ns)&&th(21,e-1)}}),Nu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Fu=/^\(|\)$/g;function Bu(e,t){return Cu.slice(e,t)}function zu(e){Iu.inSFCRoot&&(_u.innerLoc=Ku(e+1,e+1)),Zu(_u);const{tag:t,ns:n}=_u;0===n&&Au.isPreTag(t)&&Pu++,Au.isVoidTag(t)?ju(_u,e):(Ru.unshift(_u),1!==n&&2!==n||(Iu.inXML=!0)),_u=null}function Yu(e,t,n){{const t=Ru[0]&&Ru[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=Au.decodeEntities(e,!1))}const i=Ru[0]||Su,r=i.children[i.children.length-1];r&&2===r.type?(r.content+=e,Ju(r.loc,n)):i.children.push({type:2,content:e,loc:Ku(t,n)})}function ju(e,t,n=!1){Ju(e.loc,n?Hu(t,60):function(e,t){let n=e;for(;Cu.charCodeAt(n)!==t&&n<Cu.length-1;)n++;return n}(t,62)+1),Iu.inSFCRoot&&(e.children.length?e.innerLoc.end=u({},e.children[e.children.length-1].loc.end):e.innerLoc.end=u({},e.innerLoc.start),e.innerLoc.source=Bu(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:i,ns:r,children:s}=e;if(Mu||("slot"===i?e.tagType=2:Xu(e)?e.tagType=3:function({tag:e,props:t}){if(Au.isCustomElement(e))return!1;if("component"===e||function(e){return e>64&&e<91}(e.charCodeAt(0))||Qc(e)||Au.isBuiltInComponent&&Au.isBuiltInComponent(e)||Au.isNativeTag&&!Au.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Gc("COMPILER_IS_ON_ELEMENT",Au,n.loc))return!0}}else if("bind"===n.name&&hu(n.arg,"is")&&Gc("COMPILER_IS_ON_ELEMENT",Au,n.loc))return!0}return!1}(e)&&(e.tagType=1)),Iu.inRCDATA||(e.children=Uu(s)),0===r&&Au.isIgnoreNewlineTag(i)){const e=s[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===r&&Au.isPreTag(i)&&Pu--,Ou===e&&(Mu=Iu.inVPre=!1,Ou=null),Iu.inXML&&0===(Ru[0]?Ru[0].ns:Au.ns)&&(Iu.inXML=!1);{const t=e.props;if(!Iu.inSFCRoot&&$c("COMPILER_NATIVE_TEMPLATE",Au)&&"template"===e.tag&&!Xu(e)){const t=Ru[0]||Su,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&Gc("COMPILER_INLINE_TEMPLATE",Au,n.loc)&&e.children.length&&(n.value={type:2,content:Bu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Hu(e,t){let n=e;for(;Cu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Wu=new Set(["if","else","else-if","for","slot"]);function Xu({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&Wu.has(t[e].name))return!0;return!1}const Vu=/\r\n/g;function Uu(e,t){const n="preserve"!==Au.whitespace;let i=!1;for(let t=0;t<e.length;t++){const r=e[t];if(2===r.type)if(Pu)r.content=r.content.replace(Vu,"\n");else if($u(r.content)){const s=e[t-1]&&e[t-1].type,a=e[t+1]&&e[t+1].type;!s||!a||n&&(3===s&&(3===a||1===a)||1===s&&(3===a||1===a&&Gu(r.content)))?(i=!0,e[t]=null):r.content=" "}else n&&(r.content=qu(r.content))}return i?e.filter(Boolean):e}function $u(e){for(let t=0;t<e.length;t++)if(!Hc(e.charCodeAt(t)))return!1;return!0}function Gu(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function qu(e){let t="",n=!1;for(let i=0;i<e.length;i++)Hc(e.charCodeAt(i))?n||(t+=" ",n=!0):(t+=e[i],n=!1);return t}function Zu(e){(Ru[0]||Su).children.push(e)}function Ku(e,t){return{start:Iu.getPos(e),end:null==t?t:Iu.getPos(t),source:null==t?t:Bu(e,t)}}function Ju(e,t){e.end=Iu.getPos(t),e.source=Bu(e.start.offset,t)}function Qu(e){const t={type:6,name:e.rawName,nameLoc:Ku(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function eh(e,t=!1,n,i=0,r=0){return Pc(e,t,n,i)}function th(e,t,n){Au.onError(Kc(e,Ku(t,t)))}function nh(e,t){if(Iu.reset(),_u=null,Eu=null,Lu="",Tu=-1,Du=-1,Ru.length=0,Cu=e,Au=u({},ku),t){let e;for(e in t)null!=t[e]&&(Au[e]=t[e])}Iu.mode="html"===Au.parseMode?1:"sfc"===Au.parseMode?2:0,Iu.inXML=1===Au.ns||2===Au.ns;const n=t&&t.delimiters;n&&(Iu.delimiterOpen=Xc(n[0]),Iu.delimiterClose=Xc(n[1]));const i=Su=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:_c}}([],e);return Iu.parse(Cu),i.loc=Ku(0,e.length),i.children=Uu(i.children),Su=null,i}function ih(e,t){sh(e,void 0,t,rh(e,e.children[0]))}function rh(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!gu(t)}function sh(e,t,n,i=!1,r=!1){const{children:s}=e,a=[];for(let t=0;t<s.length;t++){const o=s[t];if(1===o.type&&0===o.tagType){const e=i?0:ah(o,n);if(e>0){if(e>=2){o.codegenNode.patchFlag=-1,a.push(o);continue}}else{const e=o.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&ch(o,n)>=2){const t=uh(o);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===o.type){if((i?0:ah(o,n))>=2){a.push(o);continue}}if(1===o.type){const t=1===o.tagType;t&&n.scopes.vSlot++,sh(o,e,n,!1,r),t&&n.scopes.vSlot--}else if(11===o.type)sh(o,e,n,1===o.children.length,!0);else if(9===o.type)for(let t=0;t<o.branches.length;t++)sh(o.branches[t],e,n,1===o.branches[t].children.length,r)}let o=!1;if(a.length===s.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&f(e.codegenNode.children))e.codegenNode.children=l(Lc(e.codegenNode.children)),o=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!f(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=c(e.codegenNode,"default");t&&(t.returns=l(Lc(t.returns)),o=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!f(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=cu(e,"slot",!0),i=n&&n.arg&&c(t.codegenNode,n.arg);i&&(i.returns=l(Lc(i.returns)),o=!0)}if(!o)for(const e of a)e.codegenNode=n.cache(e.codegenNode);function l(e){const t=n.cache(e);return r&&n.hmr&&(t.needArraySpread=!0),t}function c(e,t){if(e.children&&!f(e.children)&&15===e.children.type){const n=e.children.properties.find((e=>e.key===t||e.key.content===t));return n&&n.value}}a.length&&n.transformHoist&&n.transformHoist(s,n,e)}function ah(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const i=n.get(e);if(void 0!==i)return i;const r=e.codegenNode;if(13!==r.type)return 0;if(r.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===r.patchFlag){let i=3;const s=ch(e,t);if(0===s)return n.set(e,0),0;s<i&&(i=s);for(let r=0;r<e.children.length;r++){const s=ah(e.children[r],t);if(0===s)return n.set(e,0),0;s<i&&(i=s)}if(i>1)for(let r=0;r<e.props.length;r++){const s=e.props[r];if(7===s.type&&"bind"===s.name&&s.exp){const r=ah(s.exp,t);if(0===r)return n.set(e,0),0;r<i&&(i=r)}}if(r.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(Vl),t.removeHelper(Fc(t.inSSR,r.isComponent)),r.isBlock=!1,t.helper(Nc(t.inSSR,r.isComponent))}return n.set(e,i),i}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return ah(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){const i=e.children[n];if(x(i)||y(i))continue;const r=ah(i,t);if(0===r)return 0;r<s&&(s=r)}return s;case 20:return 2}}const oh=new Set([cc,uc,hc,dc]);function lh(e,t){if(14===e.type&&!x(e.callee)&&oh.has(e.callee)){const n=e.arguments[0];if(4===n.type)return ah(n,t);if(14===n.type)return lh(n,t)}return 0}function ch(e,t){let n=3;const i=uh(e);if(i&&15===i.type){const{properties:e}=i;for(let i=0;i<e.length;i++){const{key:r,value:s}=e[i],a=ah(r,t);if(0===a)return a;let o;if(a<n&&(n=a),o=4===s.type?ah(s,t):14===s.type?lh(s,t):0,0===o)return o;o<n&&(n=o)}}return n}function uh(e){const t=e.codegenNode;if(13===t.type)return t.props}function hh(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:i=!1,hmr:s=!1,cacheHandlers:o=!1,nodeTransforms:l=[],directiveTransforms:c={},transformHoist:u=null,isBuiltInComponent:h=a,isCustomElement:d=a,expressionPlugins:p=[],scopeId:f=null,slotted:g=!0,ssr:m=!1,inSSR:v=!1,ssrCssVars:b="",bindingMetadata:y=r,inline:w=!1,isTS:k=!1,onError:A=qc,onWarn:S=Zc,compatConfig:C}){const _=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={filename:t,selfName:_&&I(M(_[1])),prefixIdentifiers:n,hoistStatic:i,hmr:s,cacheHandlers:o,nodeTransforms:l,directiveTransforms:c,transformHoist:u,isBuiltInComponent:h,isCustomElement:d,expressionPlugins:p,scopeId:f,slotted:g,ssr:m,inSSR:v,ssrCssVars:b,bindingMetadata:y,inline:w,isTS:k,onError:A,onWarn:S,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){const t=E.helpers.get(e);if(t){const n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString:e=>`_${Cc[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:a,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){x(e)&&(e=Pc(e)),E.hoists.push(e);const t=Pc(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){const n=function(e,t,n=!1){return{type:20,index:e,value:t,needPauseTracking:n,needArraySpread:!1,loc:_c}}(E.cached.length,e,t);return E.cached.push(n),n}};return E.filters=new Set,E}function dh(e,t){const n=hh(e,t);ph(e,n),t.hoistStatic&&ih(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:i}=e;if(1===i.length){const n=i[0];if(rh(e,n)&&n.codegenNode){const i=n.codegenNode;13===i.type&&Bc(i,t),e.codegenNode=i}else e.codegenNode=n}else if(i.length>1){let i=64;0,e.codegenNode=Ec(t,n(Yl),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function ph(e,t){t.currentNode=e;const{nodeTransforms:n}=t,i=[];for(let r=0;r<n.length;r++){const s=n[r](e,t);if(s&&(f(s)?i.push(...s):i.push(s)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(Zl);break;case 5:t.ssr||t.helper(oc);break;case 9:for(let n=0;n<e.branches.length;n++)ph(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const i=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];x(r)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=i,ph(r,t))}}(e,t)}t.currentNode=e;let r=i.length;for(;r--;)i[r]()}function fh(e,t){const n=x(e)?t=>t===e:t=>e.test(t);return(e,i)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(pu))return;const s=[];for(let a=0;a<r.length;a++){const o=r[a];if(7===o.type&&n(o.name)){r.splice(a,1),a--;const n=t(e,o,i);n&&s.push(n)}}return s}}}const gh="/*@__PURE__*/",mh=e=>`${Cc[e]}: _${Cc[e]}`;function vh(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:i=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:a=!1,runtimeGlobalName:o="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:h=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:i,filename:r,scopeId:s,optimizeImports:a,runtimeGlobalName:o,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:h,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Cc[e]}`,push(e,t=-2,n){p.code+=e},indent(){f(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:i,push:r,prefixIdentifiers:s,indent:a,deindent:o,newline:l,scopeId:c,ssr:u}=n,h=Array.from(e.helpers),d=h.length>0,p=!s&&"module"!==i;!function(e,t){const{ssr:n,prefixIdentifiers:i,push:r,newline:s,runtimeModuleName:a,runtimeGlobalName:o,ssrRuntimeModuleName:l}=t,c=o,u=Array.from(e.helpers);if(u.length>0&&(r(`const _Vue = ${c}\n`,-1),e.hoists.length)){r(`const { ${[Gl,ql,Zl,Kl,Jl].filter((e=>u.includes(e))).map(mh).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:i}=t;i();for(let r=0;r<e.length;r++){const s=e[r];s&&(n(`const _hoisted_${r+1} = `),wh(s,t),i())}t.pure=!1})(e.hoists,t),s(),r("return ")}(e,n);if(r(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),p&&(r("with (_ctx) {"),a(),d&&(r(`const { ${h.map(mh).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(bh(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(bh(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),bh(e.filters,"filter",n),l()),e.temps>0){r("let ");for(let t=0;t<e.temps;t++)r(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),l()),u||r("return "),e.codegenNode?wh(e.codegenNode,n):r("null"),p&&(o(),r("}")),o(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function bh(e,t,{helper:n,push:i,newline:r,isTS:s}){const a=n("filter"===t?nc:"component"===t?Ql:tc);for(let n=0;n<e.length;n++){let o=e[n];const l=o.endsWith("__self");l&&(o=o.slice(0,-6)),i(`const ${yu(o,t)} = ${a}(${JSON.stringify(o)}${l?", true":""})${s?"!":""}`),n<e.length-1&&r()}}function xh(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),yh(e,t,n),n&&t.deindent(),t.push("]")}function yh(e,t,n=!1,i=!0){const{push:r,newline:s}=t;for(let a=0;a<e.length;a++){const o=e[a];x(o)?r(o,-3):f(o)?xh(o,t):wh(o,t),a<e.length-1&&(n?(i&&r(","),s()):i&&r(", "))}}function wh(e,t){if(x(e))t.push(e,-3);else if(y(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:wh(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:kh(e,t);break;case 5:!function(e,t){const{push:n,helper:i,pure:r}=t;r&&n(gh);n(`${i(oc)}(`),wh(e.content,t),n(")")}(e,t);break;case 8:Ah(e,t);break;case 3:!function(e,t){const{push:n,helper:i,pure:r}=t;r&&n(gh);n(`${i(Zl)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:i,pure:r}=t,{tag:s,props:a,children:o,patchFlag:l,dynamicProps:c,directives:u,isBlock:h,disableTracking:d,isComponent:p}=e;let f;l&&(f=String(l));u&&n(i(ic)+"(");h&&n(`(${i(Vl)}(${d?"true":""}), `);r&&n(gh);const g=h?Fc(t.inSSR,p):Nc(t.inSSR,p);n(i(g)+"(",-2,e),yh(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([s,a,o,f,c]),t),n(")"),h&&n(")");u&&(n(", "),wh(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:i,pure:r}=t,s=x(e.callee)?e.callee:i(e.callee);r&&n(gh);n(s+"(",-2,e),yh(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:i,deindent:r,newline:s}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const o=a.length>1||!1;n(o?"{":"{ "),o&&i();for(let e=0;e<a.length;e++){const{key:i,value:r}=a[e];Sh(i,t),n(": "),wh(r,t),e<a.length-1&&(n(","),s())}o&&r(),n(o?"}":" }")}(e,t);break;case 17:!function(e,t){xh(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:i,deindent:r}=t,{params:s,returns:a,body:o,newline:l,isSlot:c}=e;c&&n(`_${Cc[yc]}(`);n("(",-2,e),f(s)?yh(s,t):s&&wh(s,t);n(") => "),(l||o)&&(n("{"),i());a?(l&&n("return "),f(a)?xh(a,t):wh(a,t)):o&&wh(o,t);(l||o)&&(r(),n("}"));c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:i,alternate:r,newline:s}=e,{push:a,indent:o,deindent:l,newline:c}=t;if(4===n.type){const e=!tu(n.content);e&&a("("),kh(n,t),e&&a(")")}else a("("),wh(n,t),a(")");s&&o(),t.indentLevel++,s||a(" "),a("? "),wh(i,t),t.indentLevel--,s&&c(),s||a(" "),a(": ");const u=19===r.type;u||t.indentLevel++;wh(r,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:i,indent:r,deindent:s,newline:a}=t,{needPauseTracking:o,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),o&&(r(),n(`${i(vc)}(-1),`),a(),n("("));n(`_cache[${e.index}] = `),wh(e.value,t),o&&(n(`).cacheIndex = ${e.index},`),a(),n(`${i(vc)}(1),`),a(),n(`_cache[${e.index}]`),s());n(")"),l&&n(")]")}(e,t);break;case 21:yh(e.body,t,!0,!1)}}function kh(e,t){const{content:n,isStatic:i}=e;t.push(i?JSON.stringify(n):n,-3,e)}function Ah(e,t){for(let n=0;n<e.children.length;n++){const i=e.children[n];x(i)?t.push(i,-3):wh(i,t)}}function Sh(e,t){const{push:n}=t;if(8===e.type)n("["),Ah(e,t),n("]");else if(e.isStatic){n(tu(e.content)?e.content:JSON.stringify(e.content),-2,e)}else n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Ch=fh(/^(if|else|else-if)$/,((e,t,n)=>function(e,t,n,i){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Kc(28,t.loc)),t.exp=Pc("true",!1,i)}0;if("if"===t.name){const r=_h(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),i)return i(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const a=r[s];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(Kc(30,e.loc)),n.removeNode();const r=_h(e,t);0,a.branches.push(r);const s=i&&i(a,r,!1);ph(r,n),s&&s(),n.currentNode=null}else n.onError(Kc(30,e.loc));break}n.removeNode(a)}}}}(e,t,n,((e,t,i)=>{const r=n.parent.children;let s=r.indexOf(e),a=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(i)e.codegenNode=Eh(t,a,n);else{const i=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);i.alternate=Eh(t,a+e.branches.length-1,n)}}}))));function _h(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!cu(e,"for")?e.children:[e],userKey:uu(e,"key"),isTemplateIf:n}}function Eh(e,t,n){return e.condition?Ic(e.condition,Lh(e,t,n),Oc(n.helper(Zl),['""',"true"])):Lh(e,t,n)}function Lh(e,t,n){const{helper:i}=n,r=Dc("key",Pc(`${t}`,!1,_c,2)),{children:s}=e,a=s[0];if(1!==s.length||1!==a.type){if(1===s.length&&11===a.type){const e=a.codegenNode;return bu(e,r,n),e}{let t=64;return Ec(n,i(Yl),Tc([r]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(o=e).type&&o.callee===Ac?o.arguments[1].returns:o;return 13===t.type&&Bc(t,n),bu(t,r,n),e}var o}const Th=(e,t,n)=>{const{modifiers:i,loc:r}=e,s=e.arg;let{exp:a}=e;if(a&&4===a.type&&!a.content.trim()&&(a=void 0),!a){if(4!==s.type||!s.isStatic)return n.onError(Kc(52,s.loc)),{props:[Dc(s,Pc("",!0,r))]};Dh(e),a=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),i.some((e=>"camel"===e.content))&&(4===s.type?s.isStatic?s.content=M(s.content):s.content=`${n.helperString(fc)}(${s.content})`:(s.children.unshift(`${n.helperString(fc)}(`),s.children.push(")"))),n.inSSR||(i.some((e=>"prop"===e.content))&&Ph(s,"."),i.some((e=>"attr"===e.content))&&Ph(s,"^")),{props:[Dc(s,a)]}},Dh=(e,t)=>{const n=e.arg,i=M(n.content);e.exp=Pc(i,!1,n.loc)},Ph=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Mh=fh("for",((e,t,n)=>{const{helper:i,removeHelper:r}=n;return function(e,t,n,i){if(!t.exp)return void n.onError(Kc(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Kc(32,t.loc));Oh(r,n);const{addIdentifiers:s,removeIdentifiers:a,scopes:o}=n,{source:l,value:c,key:u,index:h}=r,d={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:h,parseResult:r,children:fu(e)?e.children:[e]};n.replaceNode(d),o.vFor++;const p=i&&i(d);return()=>{o.vFor--,p&&p()}}(e,t,n,(t=>{const s=Oc(i(rc),[t.source]),a=fu(e),o=cu(e,"memo"),l=uu(e,"key",!1,!0);l&&7===l.type&&!l.exp&&Dh(l);const c=l&&(6===l.type?l.value?Pc(l.value.content,!0):void 0:l.exp),u=l&&c?Dc("key",c):null,h=4===t.source.type&&t.source.constType>0,d=h?64:l?128:256;return t.codegenNode=Ec(n,i(Yl),void 0,s,d,void 0,void 0,!0,!h,!1,e.loc),()=>{let l;const{children:d}=t;const p=1!==d.length||1!==d[0].type,f=gu(e)?e:a&&1===e.children.length&&gu(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,a&&u&&bu(l,u,n)):p?l=Ec(n,i(Yl),u?Tc([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,a&&u&&bu(l,u,n),l.isBlock!==!h&&(l.isBlock?(r(Vl),r(Fc(n.inSSR,l.isComponent))):r(Nc(n.inSSR,l.isComponent))),l.isBlock=!h,l.isBlock?(i(Vl),i(Fc(n.inSSR,l.isComponent))):i(Nc(n.inSSR,l.isComponent))),o){const e=Rc(Rh(t.parseResult,[Pc("_cached")]));e.body={type:21,body:[Mc(["const _memo = (",o.exp,")"]),Mc(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(Sc)}(_cached, _memo)) return _cached`]),Mc(["const _item = ",l]),Pc("_item.memo = _memo"),Pc("return _item")],loc:_c},s.arguments.push(e,Pc("_cache"),Pc(String(n.cached.length))),n.cached.push(null)}else s.arguments.push(Rc(Rh(t.parseResult),l,!0))}}))}));function Oh(e,t){e.finalized||(e.finalized=!0)}function Rh({value:e,key:t,index:n},i=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Pc("_".repeat(t+1),!1)))}([e,t,n,...i])}const Ih=Pc("undefined",!1),Nh=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=cu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Fh=(e,t,n,i)=>Rc(e,n,!1,!0,n.length?n[0].loc:i);function Bh(e,t,n=Fh){t.helper(yc);const{children:i,loc:r}=e,s=[],a=[];let o=t.scopes.vSlot>0||t.scopes.vFor>0;const l=cu(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Jc(e)&&(o=!0),s.push(Dc(e||Pc("default",!0),n(t,void 0,i,r)))}let c=!1,u=!1;const h=[],d=new Set;let p=0;for(let e=0;e<i.length;e++){const r=i[e];let f;if(!fu(r)||!(f=cu(r,"slot",!0))){3!==r.type&&h.push(r);continue}if(l){t.onError(Kc(37,f.loc));break}c=!0;const{children:g,loc:m}=r,{arg:v=Pc("default",!0),exp:b,loc:x}=f;let y;Jc(v)?y=v?v.content:"default":o=!0;const w=cu(r,"for"),k=n(b,w,g,m);let A,S;if(A=cu(r,"if"))o=!0,a.push(Ic(A.exp,zh(v,k,p++),Ih));else if(S=cu(r,/^else(-if)?$/,!0)){let n,r=e;for(;r--&&(n=i[r],3===n.type););if(n&&fu(n)&&cu(n,/^(else-)?if$/)){let e=a[a.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=S.exp?Ic(S.exp,zh(v,k,p++),Ih):zh(v,k,p++)}else t.onError(Kc(30,S.loc))}else if(w){o=!0;const e=w.forParseResult;e?(Oh(e),a.push(Oc(t.helper(rc),[e.source,Rc(Rh(e),zh(v,k),!0)]))):t.onError(Kc(32,w.loc))}else{if(y){if(d.has(y)){t.onError(Kc(38,x));continue}d.add(y),"default"===y&&(u=!0)}s.push(Dc(v,k))}}if(!l){const e=(e,i)=>{const s=n(e,void 0,i,r);return t.compatConfig&&(s.isNonScopedSlot=!0),Dc("default",s)};c?h.length&&h.some((e=>jh(e)))&&(u?t.onError(Kc(39,h[0].loc)):s.push(e(void 0,h))):s.push(e(void 0,i))}const f=o?2:Yh(e.children)?3:1;let g=Tc(s.concat(Dc("_",Pc(f+"",!1))),r);return a.length&&(g=Oc(t.helper(ac),[g,Lc(a)])),{slots:g,hasDynamicSlots:o}}function zh(e,t,n){const i=[Dc("name",e),Dc("fn",t)];return null!=n&&i.push(Dc("key",Pc(String(n),!0))),Tc(i)}function Yh(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||Yh(n.children))return!0;break;case 9:if(Yh(n.branches))return!0;break;case 10:case 11:if(Yh(n.children))return!0}}return!1}function jh(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():jh(e.content))}const Hh=new WeakMap,Wh=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:i}=e,r=1===e.tagType;let s=r?function(e,t,n=!1){let{tag:i}=e;const r=$h(i),s=uu(e,"is",!1,!0);if(s)if(r||$c("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&Pc(s.value.content,!0):(e=s.exp,e||(e=Pc("is",!1,s.arg.loc))),e)return Oc(t.helper(ec),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(i=s.value.content.slice(4));const a=Qc(i)||t.isBuiltInComponent(i);if(a)return n||t.helper(a),a;return t.helper(Ql),t.components.add(i),yu(i,"component")}(e,t):`"${n}"`;const a=w(s)&&s.callee===ec;let o,l,c,u,h,d=0,p=a||s===jl||s===Hl||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(i.length>0){const n=Xh(e,t,void 0,r,a);o=n.props,d=n.patchFlag,u=n.dynamicPropNames;const i=n.directives;h=i&&i.length?Lc(i.map((e=>function(e,t){const n=[],i=Hh.get(e);i?n.push(t.helperString(i)):(t.helper(tc),t.directives.add(e.name),n.push(yu(e.name,"directive")));const{loc:r}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Pc("true",!1,r);n.push(Tc(e.modifiers.map((e=>Dc(e,t))),r))}return Lc(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0){s===Wl&&(p=!0,d|=1024);if(r&&s!==jl&&s!==Wl){const{slots:n,hasDynamicSlots:i}=Bh(e,t);l=n,i&&(d|=1024)}else if(1===e.children.length&&s!==jl){const n=e.children[0],i=n.type,r=5===i||8===i;r&&0===ah(n,t)&&(d|=1),l=r||2===i?n:e.children}else l=e.children}u&&u.length&&(c=function(e){let t="[";for(let n=0,i=e.length;n<i;n++)t+=JSON.stringify(e[n]),n<i-1&&(t+=", ");return t+"]"}(u)),e.codegenNode=Ec(t,s,o,l,0===d?void 0:d,c,h,!!p,!1,r,e.loc)};function Xh(e,t,n=e.props,i,r,s=!1){const{tag:a,loc:o,children:c}=e;let u=[];const h=[],d=[],p=c.length>0;let f=!1,g=0,m=!1,v=!1,b=!1,x=!1,w=!1,k=!1;const A=[],S=e=>{u.length&&(h.push(Tc(Vh(u),o)),u=[]),e&&h.push(e)},C=()=>{t.scopes.vFor>0&&u.push(Dc(Pc("ref_for",!0),Pc("true")))},_=({key:e,value:n})=>{if(Jc(e)){const s=e.content,a=l(s);if(!a||i&&!r||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||L(s)||(x=!0),a&&L(s)&&(k=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&ah(n,t)>0)return;"ref"===s?m=!0:"class"===s?v=!0:"style"===s?b=!0:"key"===s||A.includes(s)||A.push(s),!i||"class"!==s&&"style"!==s||A.includes(s)||A.push(s)}else w=!0};for(let r=0;r<n.length;r++){const l=n[r];if(6===l.type){const{loc:e,name:n,nameLoc:i,value:r}=l;let s=!0;if("ref"===n&&(m=!0,C()),"is"===n&&($h(a)||r&&r.content.startsWith("vue:")||$c("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Dc(Pc(n,!0,i),Pc(r?r.content:"",s,r?r.loc:e)))}else{const{name:n,arg:r,exp:c,loc:m,modifiers:v}=l,b="bind"===n,x="on"===n;if("slot"===n){i||t.onError(Kc(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||b&&hu(r,"is")&&($h(a)||$c("COMPILER_IS_ON_ELEMENT",t)))continue;if(x&&s)continue;if((b&&hu(r,"key")||x&&p&&hu(r,"vue:before-update"))&&(f=!0),b&&hu(r,"ref")&&C(),!r&&(b||x)){if(w=!0,c)if(b){if(C(),S(),$c("COMPILER_V_BIND_OBJECT_ORDER",t)){h.unshift(c);continue}h.push(c)}else S({type:14,loc:m,callee:t.helper(pc),arguments:i?[c]:[c,"true"]});else t.onError(Kc(b?34:35,m));continue}b&&v.some((e=>"prop"===e.content))&&(g|=32);const k=t.directiveTransforms[n];if(k){const{props:n,needRuntime:i}=k(l,e,t);!s&&n.forEach(_),x&&r&&!Jc(r)?S(Tc(n,o)):u.push(...n),i&&(d.push(l),y(i)&&Hh.set(l,i))}else T(n)||(d.push(l),p&&(f=!0))}}let E;if(h.length?(S(),E=h.length>1?Oc(t.helper(lc),h,o):h[0]):u.length&&(E=Tc(Vh(u),o)),w?g|=16:(v&&!i&&(g|=2),b&&!i&&(g|=4),A.length&&(g|=8),x&&(g|=32)),f||0!==g&&32!==g||!(m||k||d.length>0)||(g|=512),!t.inSSR&&E)switch(E.type){case 15:let e=-1,n=-1,i=!1;for(let t=0;t<E.properties.length;t++){const r=E.properties[t].key;Jc(r)?"class"===r.content?e=t:"style"===r.content&&(n=t):r.isHandlerKey||(i=!0)}const r=E.properties[e],s=E.properties[n];i?E=Oc(t.helper(hc),[E]):(r&&!Jc(r.value)&&(r.value=Oc(t.helper(cc),[r.value])),s&&(b||4===s.value.type&&"["===s.value.content.trim()[0]||17===s.value.type)&&(s.value=Oc(t.helper(uc),[s.value])));break;case 14:break;default:E=Oc(t.helper(hc),[Oc(t.helper(dc),[E])])}return{props:E,directives:d,patchFlag:g,dynamicPropNames:A,shouldUseBlock:f}}function Vh(e){const t=new Map,n=[];for(let i=0;i<e.length;i++){const r=e[i];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const s=r.key.content,a=t.get(s);a?("style"===s||"class"===s||l(s))&&Uh(a,r):(t.set(s,r),n.push(r))}return n}function Uh(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Lc([e.value,t.value],e.loc)}function $h(e){return"component"===e||"Component"===e}const Gh=(e,t)=>{if(gu(e)){const{children:n,loc:i}=e,{slotName:r,slotProps:s}=function(e,t){let n,i='"default"';const r=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];if(6===n.type)n.value&&("name"===n.name?i=JSON.stringify(n.value.content):(n.name=M(n.name),r.push(n)));else if("bind"===n.name&&hu(n.arg,"name")){if(n.exp)i=n.exp;else if(n.arg&&4===n.arg.type){const e=M(n.arg.content);i=n.exp=Pc(e,!1,n.arg.loc)}}else"bind"===n.name&&n.arg&&Jc(n.arg)&&(n.arg.content=M(n.arg.content)),r.push(n)}if(r.length>0){const{props:i,directives:s}=Xh(e,t,r,!1,!1);n=i,s.length&&t.onError(Kc(36,s[0].loc))}return{slotName:i,slotProps:n}}(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let o=2;s&&(a[2]=s,o=3),n.length&&(a[3]=Rc([],n,!1,!1,i),o=4),t.scopeId&&!t.slotted&&(o=5),a.splice(o),e.codegenNode=Oc(t.helper(sc),a,i)}};const qh=(e,t,n,i)=>{const{loc:r,modifiers:s,arg:a}=e;let o;if(e.exp||s.length||n.onError(Kc(35,r)),4===a.type)if(a.isStatic){let e=a.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);o=Pc(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?N(M(e)):`on:${e}`,!0,a.loc)}else o=Mc([`${n.helperString(mc)}(`,a,")"]);else o=a,o.children.unshift(`${n.helperString(mc)}(`),o.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=au(l),t=!(e||lu(l)),n=l.content.includes(";");0,(t||c&&e)&&(l=Mc([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Dc(o,l||Pc("() => {}",!1,r))]};return i&&(u=i(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Zh=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let i,r=!1;for(let e=0;e<n.length;e++){const t=n[e];if(du(t)){r=!0;for(let r=e+1;r<n.length;r++){const s=n[r];if(!du(s)){i=void 0;break}i||(i=n[e]=Mc([t],t.loc)),i.children.push(" + ",s),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const i=n[e];if(du(i)||8===i.type){const r=[];2===i.type&&" "===i.content||r.push(i),t.ssr||0!==ah(i,t)||r.push("1"),n[e]={type:12,content:i,loc:i.loc,codegenNode:Oc(t.helper(Kl),r)}}}}},Kh=new WeakSet,Jh=(e,t)=>{if(1===e.type&&cu(e,"once",!0)){if(Kh.has(e)||t.inVOnce||t.inSSR)return;return Kh.add(e),t.inVOnce=!0,t.helper(vc),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Qh=(e,t,n)=>{const{exp:i,arg:r}=e;if(!i)return n.onError(Kc(41,e.loc)),ed();const s=i.loc.source.trim(),a=4===i.type?i.content:s,o=n.bindingMetadata[s];if("props"===o||"props-aliased"===o)return n.onError(Kc(44,i.loc)),ed();if(!a.trim()||!au(i))return n.onError(Kc(42,i.loc)),ed();const l=r||Pc("modelValue",!0),c=r?Jc(r)?`onUpdate:${M(r.content)}`:Mc(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Mc([`${n.isTS?"($event: any)":"$event"} => ((`,i,") = $event)"]);const h=[Dc(l,e.exp),Dc(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>e.content)).map((e=>(tu(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Jc(r)?`${r.content}Modifiers`:Mc([r,' + "Modifiers"']):"modelModifiers";h.push(Dc(n,Pc(`{ ${t} }`,!1,e.loc,2)))}return ed(h)};function ed(e=[]){return{props:e}}const td=/[\w).+\-_$\]]/,nd=(e,t)=>{$c("COMPILER_FILTERS",t)&&(5===e.type?id(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&id(e.exp,t)})))};function id(e,t){if(4===e.type)rd(e,t);else for(let n=0;n<e.children.length;n++){const i=e.children[n];"object"==typeof i&&(4===i.type?rd(i,t):8===i.type?id(e,t):5===i.type&&id(i.content,t))}}function rd(e,t){const n=e.content;let i,r,s,a,o=!1,l=!1,c=!1,u=!1,h=0,d=0,p=0,f=0,g=[];for(s=0;s<n.length;s++)if(r=i,i=n.charCodeAt(s),o)39===i&&92!==r&&(o=!1);else if(l)34===i&&92!==r&&(l=!1);else if(c)96===i&&92!==r&&(c=!1);else if(u)47===i&&92!==r&&(u=!1);else if(124!==i||124===n.charCodeAt(s+1)||124===n.charCodeAt(s-1)||h||d||p){switch(i){case 34:l=!0;break;case 39:o=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:h++;break;case 125:h--}if(47===i){let e,t=s-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&td.test(e)||(u=!0)}}else void 0===a?(f=s+1,a=n.slice(0,s).trim()):m();function m(){g.push(n.slice(f,s).trim()),f=s+1}if(void 0===a?a=n.slice(0,s).trim():0!==f&&m(),g.length){for(s=0;s<g.length;s++)a=sd(a,g[s],t);e.content=a,e.ast=void 0}}function sd(e,t,n){n.helper(nc);const i=t.indexOf("(");if(i<0)return n.filters.add(t),`${yu(t,"filter")}(${e})`;{const r=t.slice(0,i),s=t.slice(i+1);return n.filters.add(r),`${yu(r,"filter")}(${e}${")"!==s?","+s:s}`}}const ad=new WeakSet,od=(e,t)=>{if(1===e.type){const n=cu(e,"memo");if(!n||ad.has(e))return;return ad.add(e),()=>{const i=e.codegenNode||t.currentNode.codegenNode;i&&13===i.type&&(1!==e.tagType&&Bc(i,t),e.codegenNode=Oc(t.helper(Ac),[n.exp,Rc(void 0,i),"_cache",String(t.cached.length)]),t.cached.push(null))}}};function ld(e,t={}){const n=t.onError||qc,i="module"===t.mode;!0===t.prefixIdentifiers?n(Kc(47)):i&&n(Kc(48));t.cacheHandlers&&n(Kc(49)),t.scopeId&&!i&&n(Kc(50));const r=u({},t,{prefixIdentifiers:!1}),s=x(e)?nh(e,r):e,[a,o]=[[Jh,Ch,od,Mh,nd,Gh,Wh,Nh,Zh],{on:qh,bind:Th,model:Qh}];return dh(s,u({},r,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:u({},o,t.directiveTransforms||{})})),vh(s,r)}const cd=Symbol(""),ud=Symbol(""),hd=Symbol(""),dd=Symbol(""),pd=Symbol(""),fd=Symbol(""),gd=Symbol(""),md=Symbol(""),vd=Symbol(""),bd=Symbol("");var xd;let yd;xd={[cd]:"vModelRadio",[ud]:"vModelCheckbox",[hd]:"vModelText",[dd]:"vModelSelect",[pd]:"vModelDynamic",[fd]:"withModifiers",[gd]:"withKeys",[md]:"vShow",[vd]:"Transition",[bd]:"TransitionGroup"},Object.getOwnPropertySymbols(xd).forEach((e=>{Cc[e]=xd[e]}));const wd={parseMode:"html",isVoidTag:te,isNativeTag:e=>J(e)||Q(e)||ee(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return yd||(yd=document.createElement("div")),t?(yd.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,yd.children[0].getAttribute("foo")):(yd.innerHTML=e,yd.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?vd:"TransitionGroup"===e||"transition-group"===e?bd:void 0,getNamespace(e,t,n){let i=t?t.ns:n;if(t&&2===i)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(i=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(i=0);else t&&1===i&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(i=0));if(0===i){if("svg"===e)return 1;if("math"===e)return 2}return i}},kd=(e,t)=>{const n=q(e);return Pc(JSON.stringify(n),!1,t,3)};function Ad(e,t){return Kc(e,t)}const Sd=i("passive,once,capture"),Cd=i("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),_d=i("left,right"),Ed=i("onkeyup,onkeydown,onkeypress"),Ld=(e,t)=>Jc(e)&&"onclick"===e.content.toLowerCase()?Pc(t,!0):4!==e.type?Mc(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Td=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()};const Dd=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Pc("style",!0,t.loc),exp:kd(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Pd={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:i,loc:r}=e;return i||n.onError(Ad(53,r)),t.children.length&&(n.onError(Ad(54,r)),t.children.length=0),{props:[Dc(Pc("innerHTML",!0,r),i||Pc("",!0))]}},text:(e,t,n)=>{const{exp:i,loc:r}=e;return i||n.onError(Ad(55,r)),t.children.length&&(n.onError(Ad(56,r)),t.children.length=0),{props:[Dc(Pc("textContent",!0),i?ah(i,n)>0?i:Oc(n.helperString(oc),[i],r):Pc("",!0))]}},model:(e,t,n)=>{const i=Qh(e,t,n);if(!i.props.length||1===t.tagType)return i;e.arg&&n.onError(Ad(58,e.arg.loc));const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let a=hd,o=!1;if("input"===r||s){const i=uu(t,"type");if(i){if(7===i.type)a=pd;else if(i.value)switch(i.value.content){case"radio":a=cd;break;case"checkbox":a=ud;break;case"file":o=!0,n.onError(Ad(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(a=pd)}else"select"===r&&(a=dd);o||(i.needRuntime=n.helper(a))}else n.onError(Ad(57,e.loc));return i.props=i.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),i},on:(e,t,n)=>qh(e,t,n,(t=>{const{modifiers:i}=e;if(!i.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:a,nonKeyModifiers:o,eventOptionModifiers:l}=((e,t,n)=>{const i=[],r=[],s=[];for(let a=0;a<t.length;a++){const o=t[a].content;"native"===o&&Gc("COMPILER_V_ON_NATIVE",n)||Sd(o)?s.push(o):_d(o)?Jc(e)?Ed(e.content.toLowerCase())?i.push(o):r.push(o):(i.push(o),r.push(o)):Cd(o)?r.push(o):i.push(o)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:s}})(r,i,n,e.loc);if(o.includes("right")&&(r=Ld(r,"onContextmenu")),o.includes("middle")&&(r=Ld(r,"onMouseup")),o.length&&(s=Oc(n.helper(fd),[s,JSON.stringify(o)])),!a.length||Jc(r)&&!Ed(r.content.toLowerCase())||(s=Oc(n.helper(gd),[s,JSON.stringify(a)])),l.length){const e=l.map(I).join("");r=Jc(r)?Pc(`${r.content}${e}`,!0):Mc(["(",r,`) + "${e}"`])}return{props:[Dc(r,s)]}})),show:(e,t,n)=>{const{exp:i,loc:r}=e;return i||n.onError(Ad(61,r)),{props:[],needRuntime:n.helper(md)}}};const Md=new WeakMap;Oa((function(t,n){if(!x(t)){if(!t.nodeType)return a;t=t.innerHTML}const i=t,s=function(e){let t=Md.get(null!=e?e:r);return t||(t=Object.create(null),Md.set(null!=e?e:r,t)),t}(n),o=s[i];if(o)return o;if("#"===t[0]){const e=document.querySelector(t);0,t=e?e.innerHTML:""}const l=u({hoistStatic:!0,onError:void 0,onWarn:a},n);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:c}=function(e,t={}){return ld(e,u({},wd,t,{nodeTransforms:[Td,...Dd,...t.nodeTransforms||[]],directiveTransforms:u({},Pd,t.directiveTransforms||{}),transformHoist:null}))}(t,l),h=new Function("Vue",c)(e);return h._rc=!0,s[i]=h}));let Od;const Rd=e=>Od=e,Id=Symbol();function Nd(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Fd;!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(Fd||(Fd={}));const Bd="undefined"!=typeof window,zd=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function Yd(e,t,n){const i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){Vd(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function jd(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function Hd(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Wd="object"==typeof navigator?navigator:{userAgent:""},Xd=(()=>/Macintosh/.test(Wd.userAgent)&&/AppleWebKit/.test(Wd.userAgent)&&!/Safari/.test(Wd.userAgent))(),Vd=Bd?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!Xd?function(e,t="download",n){const i=document.createElement("a");i.download=t,i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?jd(i.href)?Yd(e,t,n):(i.target="_blank",Hd(i)):Hd(i)):(i.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(i.href)}),4e4),setTimeout((function(){Hd(i)}),0))}:"msSaveOrOpenBlob"in Wd?function(e,t="download",n){if("string"==typeof e)if(jd(e))Yd(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){Hd(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,i){(i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading...");if("string"==typeof e)return Yd(e,t,n);const r="application/octet-stream"===e.type,s=/constructor/i.test(String(zd.HTMLElement))||"safari"in zd,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||r&&s||Xd)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw i=null,new Error("Wrong reader.result type");e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location.assign(e),i=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);i?i.location.assign(t):location.href=t,i=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{};const{assign:Ud}=Object;const $d=()=>{};function Gd(e,t,n,i=$d){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),i())};return!n&&me()&&ve(r),r}function qd(e,...t){e.slice().forEach((e=>{e(...t)}))}const Zd=e=>e();function Kd(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],r=e[n];Nd(r)&&Nd(i)&&e.hasOwnProperty(n)&&!Ht(i)&&!Dt(i)?e[n]=Kd(r,i):e[n]=i}return e}const Jd=Symbol();const{assign:Qd}=Object;function ep(e){return!(!Ht(e)||!e.effect)}function tp(e,t,n={},i,r,s){let a;const o=Qd({actions:{}},n);const l={deep:!0};let c,u;let h,d=[],p=[];const f=i.state.value[e];s||f||(i.state.value[e]={});Wt({});let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(i.state.value[e]),n={type:Fd.patchFunction,storeId:e,events:h}):(Kd(i.state.value[e],t),n={type:Fd.patchObject,payload:t,storeId:e,events:h});const r=g=Symbol();An().then((()=>{g===r&&(c=!0)})),u=!0,qd(d,n,i.state.value[e])}const v=s?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{Qd(e,t)}))}:$d;function b(t,n){return function(){Rd(i);const r=Array.from(arguments),s=[],a=[];let o;qd(p,{args:r,name:t,store:y,after:function(e){s.push(e)},onError:function(e){a.push(e)}});try{o=n.apply(this&&this.$id===e?this:y,r)}catch(e){throw qd(a,e),e}return o instanceof Promise?o.then((e=>(qd(s,e),e))).catch((e=>(qd(a,e),Promise.reject(e)))):(qd(s,o),o)}}const x={_p:i,$id:e,$onAction:Gd.bind(null,p),$patch:m,$reset:v,$subscribe(t,n={}){const r=Gd(d,t,n.detached,(()=>s())),s=a.run((()=>xi((()=>i.state.value[e]),(i=>{("sync"===n.flush?u:c)&&t({storeId:e,type:Fd.direct,events:h},i)}),Qd({},l,n))));return r},$dispose:function(){a.stop(),d=[],p=[],i._s.delete(e)}};const y=Ct(x);i._s.set(e,y);const w=i._a&&i._a.runWithContext||Zd,k=i._e.run((()=>(a=fe(),w((()=>a.run(t))))));for(const t in k){const n=k[t];if(Ht(n)&&!ep(n)||Dt(n))s||(!f||Nd(A=n)&&A.hasOwnProperty(Jd)||(Ht(n)?n.value=f[t]:Kd(n,f[t])),i.state.value[e][t]=n);else if("function"==typeof n){const e=b(t,n);k[t]=e,o.actions[t]=n}else 0}var A;return Qd(y,k),Qd(Rt(y),k),Object.defineProperty(y,"$state",{get:()=>i.state.value[e],set:e=>{m((t=>{Qd(t,e)}))}}),i._p.forEach((e=>{Qd(y,a.run((()=>e({store:y,app:i._a,pinia:i,options:o}))))})),f&&s&&n.hydrate&&n.hydrate(y.$state,f),c=!0,u=!0,y}function np(e,t,n){let i,r;const s="function"==typeof t;function a(e,n){const a=es();(e=e||(a?Qr(Id,null):null))&&Rd(e),(e=Od)._s.has(i)||(s?tp(i,t,r,e):function(e,t,n){const{state:i,actions:r,getters:s}=t,a=n.state.value[e];let o;o=tp(e,(function(){a||(n.state.value[e]=i?i():{});const t=en(n.state.value[e]);return Qd(t,r,Object.keys(s||{}).reduce(((t,i)=>(t[i]=It(ja((()=>{Rd(n);const t=n._s.get(e);return s[i].call(t,t)}))),t)),{}))}),t,n,0,!0)}(i,r,e));return e._s.get(i)}return"string"==typeof e?(i=e,r=s?n:t):(r=e,i=e.id),a.$id=i,a}const ip="undefined"!=typeof document;function rp(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const sp=Object.assign;function ap(e,t){const n={};for(const i in t){const r=t[i];n[i]=lp(r)?r.map(e):e(r)}return n}const op=()=>{},lp=Array.isArray;const cp=/#/g,up=/&/g,hp=/\//g,dp=/=/g,pp=/\?/g,fp=/\+/g,gp=/%5B/g,mp=/%5D/g,vp=/%5E/g,bp=/%60/g,xp=/%7B/g,yp=/%7C/g,wp=/%7D/g,kp=/%20/g;function Ap(e){return encodeURI(""+e).replace(yp,"|").replace(gp,"[").replace(mp,"]")}function Sp(e){return Ap(e).replace(fp,"%2B").replace(kp,"+").replace(cp,"%23").replace(up,"%26").replace(bp,"`").replace(xp,"{").replace(wp,"}").replace(vp,"^")}function Cp(e){return null==e?"":function(e){return Ap(e).replace(cp,"%23").replace(pp,"%3F")}(e).replace(hp,"%2F")}function _p(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Ep=/\/$/;function Lp(e,t,n="/"){let i,r={},s="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(i=t.slice(0,l),s=t.slice(l+1,o>-1?o:t.length),r=e(s)),o>-1&&(i=i||t.slice(0,o),a=t.slice(o,t.length)),i=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const n=t.split("/"),i=e.split("/"),r=i[i.length-1];".."!==r&&"."!==r||i.push("");let s,a,o=n.length-1;for(s=0;s<i.length;s++)if(a=i[s],"."!==a){if(".."!==a)break;o>1&&o--}return n.slice(0,o).join("/")+"/"+i.slice(s).join("/")}(null!=i?i:t,n),{fullPath:i+(s&&"?")+s+a,path:i,query:r,hash:_p(a)}}function Tp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Dp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Pp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Mp(e[n],t[n]))return!1;return!0}function Mp(e,t){return lp(e)?Op(e,t):lp(t)?Op(t,e):e===t}function Op(e,t){return lp(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Rp,Ip;!function(e){e.pop="pop",e.push="push"}(Rp||(Rp={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(Ip||(Ip={}));function Np(e){if(!e)if(ip){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ep,"")}const Fp=/^[^#]+#/;function Bp(e,t){return e.replace(Fp,"#")+t}const zp=()=>({left:window.scrollX,top:window.scrollY});function Yp(e){let t;if("el"in e){const n=e.el,i="string"==typeof n&&n.startsWith("#");0;const r="string"==typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function jp(e,t){return(history.state?history.state.position-t:-1)+e}const Hp=new Map;let Wp=()=>location.protocol+"//"+location.host;function Xp(e,t){const{pathname:n,search:i,hash:r}=t,s=e.indexOf("#");if(s>-1){let t=r.includes(e.slice(s))?e.slice(s).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Tp(n,"")}return Tp(n,e)+i+r}function Vp(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?zp():null}}function Up(e){const t=function(e){const{history:t,location:n}=window,i={value:Xp(e,n)},r={value:t.state};function s(i,s,a){const o=e.indexOf("#"),l=o>-1?(n.host&&document.querySelector("base")?e:e.slice(o))+i:Wp()+e+i;try{t[a?"replaceState":"pushState"](s,"",l),r.value=s}catch(e){console.error(e),n[a?"replace":"assign"](l)}}return r.value||s(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:function(e,n){const a=sp({},r.value,t.state,{forward:e,scroll:zp()});s(a.current,a,!0),s(e,sp({},Vp(i.value,e,null),{position:a.position+1},n),!1),i.value=e},replace:function(e,n){s(e,sp({},t.state,Vp(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),i.value=e}}}(e=Np(e)),n=function(e,t,n,i){let r=[],s=[],a=null;const o=({state:s})=>{const o=Xp(e,location),l=n.value,c=t.value;let u=0;if(s){if(n.value=o,t.value=s,a&&a===l)return void(a=null);u=c?s.position-c.position:0}else i(o);r.forEach((e=>{e(n.value,l,{delta:u,type:Rp.pop,direction:u?u>0?Ip.forward:Ip.back:Ip.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(sp({},e.state,{scroll:zp()}),"")}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const i=sp({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Bp.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function $p(e){return"string"==typeof e||"symbol"==typeof e}const Gp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},qp=Symbol("");var Zp;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Zp||(Zp={}));function Kp(e,t){return sp(new Error,{type:e,[qp]:!0},t)}function Jp(e,t){return e instanceof Error&&qp in e&&(null==t||!!(e.type&t))}const Qp="[^/]+?",ef={sensitive:!1,strict:!1,start:!0,end:!0},tf=/[.+*?^${}()[\]/\\]/g;function nf(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function rf(e,t){let n=0;const i=e.score,r=t.score;for(;n<i.length&&n<r.length;){const e=nf(i[n],r[n]);if(e)return e;n++}if(1===Math.abs(r.length-i.length)){if(sf(i))return 1;if(sf(r))return-1}return r.length-i.length}function sf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const af={type:0,value:""},of=/[a-zA-Z0-9_]/;function lf(e,t,n){const i=function(e,t){const n=sp({},ef,t),i=[];let r=n.start?"^":"";const s=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let i=0;i<t.length;i++){const a=t[i];let o=40+(n.sensitive?.25:0);if(0===a.type)i||(r+="/"),r+=a.value.replace(tf,"\\$&"),o+=40;else if(1===a.type){const{value:e,repeatable:n,optional:l,regexp:c}=a;s.push({name:e,repeatable:n,optional:l});const u=c||Qp;if(u!==Qp){o+=10;try{new RegExp(`(${u})`)}catch(t){throw new Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let h=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;i||(h=l&&t.length<2?`(?:/${h})`:"/"+h),l&&(h+="?"),r+=h,o+=20,l&&(o+=-8),n&&(o+=-20),".*"===u&&(o+=-50)}e.push(o)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const a=new RegExp(r,n.sensitive?"":"i");return{re:a,score:i,keys:s,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let e=1;e<t.length;e++){const i=t[e]||"",r=s[e-1];n[r.name]=i&&r.repeatable?i.split("/"):i}return n},stringify:function(t){let n="",i=!1;for(const r of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:s,repeatable:a,optional:o}=e,l=s in t?t[s]:"";if(lp(l)&&!a)throw new Error(`Provided param "${s}" is an array but it is not repeatable (* or + modifiers)`);const c=lp(l)?l.join("/"):l;if(!c){if(!o)throw new Error(`Missing required param "${s}"`);r.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[af]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,i=n;const r=[];let s;function a(){s&&r.push(s),s=[]}let o,l=0,c="",u="";function h(){c&&(0===n?s.push({type:0,value:c}):1===n||2===n||3===n?(s.length>1&&("*"===o||"+"===o)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:"*"===o||"+"===o,optional:"*"===o||"?"===o})):t("Invalid state to consume buffer"),c="")}function d(){c+=o}for(;l<e.length;)if(o=e[l++],"\\"!==o||2===n)switch(n){case 0:"/"===o?(c&&h(),a()):":"===o?(h(),n=1):d();break;case 4:d(),n=i;break;case 1:"("===o?n=2:of.test(o)?d():(h(),n=0,"*"!==o&&"?"!==o&&"+"!==o&&l--);break;case 2:")"===o?"\\"==u[u.length-1]?u=u.slice(0,-1)+o:n=3:u+=o;break;case 3:h(),n=0,"*"!==o&&"?"!==o&&"+"!==o&&l--,u="";break;default:t("Unknown state")}else i=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),h(),a(),r}(e.path),n);const r=sp(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function cf(e,t){const n=[],i=new Map;function r(e,n,i){const o=!i,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=i&&i.record;const c=ff(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(sp({},l,{components:i?i.record.components:l.components,path:e,aliasOf:i?i.record:l}))}let h,d;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&i+u)}if(h=lf(t,n,c),i?i.alias.push(h):(d=d||h,d!==h&&d.alias.push(h),o&&e.name&&!df(h)&&s(e.name)),gf(h)&&a(h),l.children){const e=l.children;for(let t=0;t<e.length;t++)r(e[t],h,i&&i.children[t])}i=i||h}return d?()=>{s(d)}:op}function s(e){if($p(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function a(e){const t=function(e,t){let n=0,i=t.length;for(;n!==i;){const r=n+i>>1;rf(e,t[r])<0?i=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(gf(t)&&0===rf(e,t))return t;return}(e);r&&(i=t.lastIndexOf(r,i-1));return i}(e,n);n.splice(t,0,e),e.record.name&&!df(e)&&i.set(e.record.name,e)}return t=ff({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,s,a,o={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw Kp(1,{location:e});0,a=r.record.name,o=sp(uf(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&uf(e.params,r.keys.map((e=>e.name)))),s=r.stringify(o)}else if(null!=e.path)s=e.path,r=n.find((e=>e.re.test(s))),r&&(o=r.parse(s),a=r.record.name);else{if(r=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw Kp(1,{location:e,currentLocation:t});a=r.record.name,o=sp({},t.params,e.params),s=r.stringify(o)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:s,params:o,matched:l,meta:pf(l)}},removeRoute:s,getRoutes:function(){return n},getRecordMatcher:function(e){return i.get(e)}}}function uf(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function hf(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="object"==typeof n?n[i]:n;return t}function df(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pf(e){return e.reduce(((e,t)=>sp(e,t.meta)),{})}function ff(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function gf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function mf(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<n.length;++e){const i=n[e].replace(fp," "),r=i.indexOf("="),s=_p(r<0?i:i.slice(0,r)),a=r<0?null:_p(i.slice(r+1));if(s in t){let e=t[s];lp(e)||(e=t[s]=[e]),e.push(a)}else t[s]=a}return t}function vf(e){let t="";for(let n in e){const i=e[n];if(n=Sp(n).replace(dp,"%3D"),null==i){void 0!==i&&(t+=(t.length?"&":"")+n);continue}const r=lp(i)?i.map((e=>e&&Sp(e))):[i&&Sp(i)];r.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function bf(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=lp(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const xf=Symbol(""),yf=Symbol(""),wf=Symbol(""),kf=Symbol(""),Af=Symbol("");function Sf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Cf(e,t,n,i,r,s=e=>e()){const a=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((o,l)=>{const c=e=>{var s;!1===e?l(Kp(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(s=e)||s&&"object"==typeof s?l(Kp(2,{from:t,to:e})):(a&&i.enterCallbacks[r]===a&&"function"==typeof e&&a.push(e),o())},u=s((()=>e.call(i&&i.instances[r],t,n,c)));let h=Promise.resolve(u);e.length<3&&(h=h.then(c)),h.catch((e=>l(e)))}))}function _f(e,t,n,i,r=e=>e()){const s=[];for(const o of e){0;for(const e in o.components){let l=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if("object"==typeof(a=l)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(l.__vccOpts||l)[t];a&&s.push(Cf(a,n,i,o,e,r))}else{let a=l();0,s.push((()=>a.then((s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${o.path}"`));const a=rp(s)?s.default:s;o.components[e]=a;const l=(a.__vccOpts||a)[t];return l&&Cf(l,n,i,o,e,r)()}))))}}}var a;return s}function Ef(e){const t=Qr(wf),n=Qr(kf);const i=ja((()=>{const n=Gt(e.to);return t.resolve(n)})),r=ja((()=>{const{matched:e}=i.value,{length:t}=e,r=e[t-1],s=n.matched;if(!r||!s.length)return-1;const a=s.findIndex(Dp.bind(null,r));if(a>-1)return a;const o=Df(e[t-2]);return t>1&&Df(r)===o&&s[s.length-1].path!==o?s.findIndex(Dp.bind(null,e[t-2])):a})),s=ja((()=>r.value>-1&&function(e,t){for(const n in t){const i=t[n],r=e[n];if("string"==typeof i){if(i!==r)return!1}else if(!lp(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,i.value.params))),a=ja((()=>r.value>-1&&r.value===n.matched.length-1&&Pp(n.params,i.value.params)));return{route:i,href:ja((()=>i.value.href)),isActive:s,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(op):Promise.resolve()}}}const Lf=zi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ef,setup(e,{slots:t}){const n=Ct(Ef(e)),{options:i}=Qr(wf),r=ja((()=>({[Pf(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Pf(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=t.default&&t.default(n);return e.custom?i:Wa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Tf=Lf;function Df(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pf=(e,t,n)=>null!=e?e:null!=t?t:n,Mf=zi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Qr(Af),r=ja((()=>e.route||i.value)),s=Qr(yf,0),a=ja((()=>{let e=Gt(s);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),o=ja((()=>r.value.matched[a.value]));Jr(yf,ja((()=>a.value+1))),Jr(xf,o),Jr(Af,r);const l=Wt();return xi((()=>[l.value,o.value,e.name]),(([e,t,n],[i,r,s])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Dp(t,r)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const i=r.value,s=e.name,a=o.value,c=a&&a.components[s];if(!c)return Of(n.default,{Component:c,route:i});const u=a.props[s],h=u?!0===u?i.params:"function"==typeof u?u(i):u:null,d=Wa(c,sp({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[s]=null)},ref:l}));return Of(n.default,{Component:d,route:i})||d}}});function Of(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Rf=Mf;function If(e){const t=cf(e.routes,e),n=e.parseQuery||mf,i=e.stringifyQuery||vf,r=e.history;const s=Sf(),a=Sf(),o=Sf(),l=Xt(Gp);let c=Gp;ip&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ap.bind(null,(e=>""+e)),h=ap.bind(null,Cp),d=ap.bind(null,_p);function p(e,s){if(s=sp({},s||l.value),"string"==typeof e){const i=Lp(n,e,s.path),a=t.resolve({path:i.path},s),o=r.createHref(i.fullPath);return sp(i,a,{params:d(a.params),hash:_p(i.hash),redirectedFrom:void 0,href:o})}let a;if(null!=e.path)a=sp({},e,{path:Lp(n,e.path,s.path).path});else{const t=sp({},e.params);for(const e in t)null==t[e]&&delete t[e];a=sp({},e,{params:h(t)}),s.params=h(s.params)}const o=t.resolve(a,s),c=e.hash||"";o.params=u(d(o.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(i,sp({},e,{hash:(f=c,Ap(f).replace(xp,"{").replace(wp,"}").replace(vp,"^")),path:o.path}));var f;const g=r.createHref(p);return sp({fullPath:p,hash:c,query:i===vf?bf(e.query):e.query||{}},o,{redirectedFrom:void 0,href:g})}function f(e){return"string"==typeof e?Lp(n,e,l.value.path):sp({},e)}function g(e,t){if(c!==e)return Kp(8,{from:t,to:e})}function m(e){return b(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"==typeof n?n(e):n;return"string"==typeof i&&(i=i.includes("?")||i.includes("#")?i=f(i):{path:i},i.params={}),sp({query:e.query,hash:e.hash,params:null!=i.path?{}:e.params},i)}}function b(e,t){const n=c=p(e),r=l.value,s=e.state,a=e.force,o=!0===e.replace,u=v(n);if(u)return b(sp(f(u),{state:"object"==typeof u?sp({},s,u.state):s,force:a,replace:o}),t||n);const h=n;let d;return h.redirectedFrom=t,!a&&function(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Dp(t.matched[i],n.matched[r])&&Pp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(i,r,n)&&(d=Kp(16,{to:h,from:r}),P(r,r,!0,!1)),(d?Promise.resolve(d):w(h,r)).catch((e=>Jp(e)?Jp(e,2)?e:D(e):T(e,h,r))).then((e=>{if(e){if(Jp(e,2))return b(sp({replace:o},f(e.to),{state:"object"==typeof e.to?sp({},s,e.to.state):s,force:a}),t||h)}else e=A(h,r,!0,o,s);return k(h,r,e),e}))}function x(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function y(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[i,r,o]=function(e,t){const n=[],i=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;a<s;a++){const s=t.matched[a];s&&(e.matched.find((e=>Dp(e,s)))?i.push(s):n.push(s));const o=e.matched[a];o&&(t.matched.find((e=>Dp(e,o)))||r.push(o))}return[n,i,r]}(e,t);n=_f(i.reverse(),"beforeRouteLeave",e,t);for(const r of i)r.leaveGuards.forEach((i=>{n.push(Cf(i,e,t))}));const l=x.bind(null,e,t);return n.push(l),N(n).then((()=>{n=[];for(const i of s.list())n.push(Cf(i,e,t));return n.push(l),N(n)})).then((()=>{n=_f(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach((i=>{n.push(Cf(i,e,t))}));return n.push(l),N(n)})).then((()=>{n=[];for(const i of o)if(i.beforeEnter)if(lp(i.beforeEnter))for(const r of i.beforeEnter)n.push(Cf(r,e,t));else n.push(Cf(i.beforeEnter,e,t));return n.push(l),N(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=_f(o,"beforeRouteEnter",e,t,y),n.push(l),N(n)))).then((()=>{n=[];for(const i of a.list())n.push(Cf(i,e,t));return n.push(l),N(n)})).catch((e=>Jp(e,8)?e:Promise.reject(e)))}function k(e,t,n){o.list().forEach((i=>y((()=>i(e,t,n)))))}function A(e,t,n,i,s){const a=g(e,t);if(a)return a;const o=t===Gp,c=ip?history.state:{};n&&(i||o?r.replace(e.fullPath,sp({scroll:o&&c&&c.scroll},s)):r.push(e.fullPath,s)),l.value=e,P(e,t,n,o),D()}let S;function C(){S||(S=r.listen(((e,t,n)=>{if(!I.listening)return;const i=p(e),s=v(i);if(s)return void b(sp(s,{replace:!0}),i).catch(op);c=i;const a=l.value;var o,u;ip&&(o=jp(a.fullPath,n.delta),u=zp(),Hp.set(o,u)),w(i,a).catch((e=>Jp(e,12)?e:Jp(e,2)?(b(e.to,i).then((e=>{Jp(e,20)&&!n.delta&&n.type===Rp.pop&&r.go(-1,!1)})).catch(op),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,i,a)))).then((e=>{(e=e||A(i,a,!1))&&(n.delta&&!Jp(e,8)?r.go(-n.delta,!1):n.type===Rp.pop&&Jp(e,20)&&r.go(-1,!1)),k(i,a,e)})).catch(op)})))}let _,E=Sf(),L=Sf();function T(e,t,n){D(e);const i=L.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return _||(_=!e,C(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function P(t,n,i,r){const{scrollBehavior:s}=e;if(!ip||!s)return Promise.resolve();const a=!i&&function(e){const t=Hp.get(e);return Hp.delete(e),t}(jp(t.fullPath,0))||(r||!i)&&history.state&&history.state.scroll||null;return An().then((()=>s(t,n,a))).then((e=>e&&Yp(e))).catch((e=>T(e,t,n)))}const M=e=>r.go(e);let O;const R=new Set,I={currentRoute:l,listening:!0,addRoute:function(e,n){let i,r;return $p(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:m,replace:function(e){return m(sp(f(e),{replace:!0}))},go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:s.add,beforeResolve:a.add,afterEach:o.add,onError:L.add,isReady:function(){return _&&l.value!==Gp?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",Tf),e.component("RouterView",Rf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(l)}),ip&&!O&&l.value===Gp&&(O=!0,m(r.location).catch((e=>{0})));const t={};for(const e in Gp)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(wf,this),e.provide(kf,_t(t)),e.provide(Af,l);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(c=Gp,S&&S(),S=null,l.value=Gp,O=!1,_=!1),n()}}};function N(e){return e.reduce(((e,t)=>e.then((()=>y(t)))),Promise.resolve())}return I}function Nf(){return Qr(wf)}function Ff(){return Qr(kf)}var Bf=n(7484),zf=n(178),Yf=n(9387);function jf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hf}=Object.prototype,{getPrototypeOf:Wf}=Object,Xf=(Vf=Object.create(null),e=>{const t=Hf.call(e);return Vf[t]||(Vf[t]=t.slice(8,-1).toLowerCase())});var Vf;const Uf=e=>(e=e.toLowerCase(),t=>Xf(t)===e),$f=e=>t=>typeof t===e,{isArray:Gf}=Array,qf=$f("undefined");const Zf=Uf("ArrayBuffer");const Kf=$f("string"),Jf=$f("function"),Qf=$f("number"),eg=e=>null!==e&&"object"==typeof e,tg=e=>{if("object"!==Xf(e))return!1;const t=Wf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ng=Uf("Date"),ig=Uf("File"),rg=Uf("Blob"),sg=Uf("FileList"),ag=Uf("URLSearchParams");function og(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),Gf(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let a;for(i=0;i<s;i++)a=r[i],t.call(null,e[a],a,e)}}function lg(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const cg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ug=e=>!qf(e)&&e!==cg;const hg=(dg="undefined"!=typeof Uint8Array&&Wf(Uint8Array),e=>dg&&e instanceof dg);var dg;const pg=Uf("HTMLFormElement"),fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gg=Uf("RegExp"),mg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};og(n,((n,r)=>{let s;!1!==(s=t(n,r,e))&&(i[r]=s||n)})),Object.defineProperties(e,i)},vg="abcdefghijklmnopqrstuvwxyz",bg="0123456789",xg={DIGIT:bg,ALPHA:vg,ALPHA_DIGIT:vg+vg.toUpperCase()+bg};const yg=Uf("AsyncFunction"),wg={isArray:Gf,isArrayBuffer:Zf,isBuffer:function(e){return null!==e&&!qf(e)&&null!==e.constructor&&!qf(e.constructor)&&Jf(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Jf(e.append)&&("formdata"===(t=Xf(e))||"object"===t&&Jf(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Zf(e.buffer),t},isString:Kf,isNumber:Qf,isBoolean:e=>!0===e||!1===e,isObject:eg,isPlainObject:tg,isUndefined:qf,isDate:ng,isFile:ig,isBlob:rg,isRegExp:gg,isFunction:Jf,isStream:e=>eg(e)&&Jf(e.pipe),isURLSearchParams:ag,isTypedArray:hg,isFileList:sg,forEach:og,merge:function e(){const{caseless:t}=ug(this)&&this||{},n={},i=(i,r)=>{const s=t&&lg(n,r)||r;tg(n[s])&&tg(i)?n[s]=e(n[s],i):tg(i)?n[s]=e({},i):Gf(i)?n[s]=i.slice():n[s]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&og(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(og(t,((t,i)=>{n&&Jf(t)?e[i]=jf(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,s,a;const o={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],i&&!i(a,e,t)||o[a]||(t[a]=e[a],o[a]=!0);e=!1!==n&&Wf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Xf,kindOfTest:Uf,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(Gf(e))return e;let t=e.length;if(!Qf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:pg,hasOwnProperty:fg,hasOwnProp:fg,reduceDescriptors:mg,freezeMethods:e=>{mg(e,((t,n)=>{if(Jf(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];Jf(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return Gf(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:lg,global:cg,isContextDefined:ug,ALPHABET:xg,generateString:(e=16,t=xg.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&Jf(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(eg(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=Gf(e)?[]:{};return og(e,((e,t)=>{const s=n(e,i+1);!qf(s)&&(r[t]=s)})),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:yg,isThenable:e=>e&&(eg(e)||Jf(e))&&Jf(e.then)&&Jf(e.catch)};function kg(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}wg.inherits(kg,Error,{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:wg.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ag=kg.prototype,Sg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Sg[e]={value:e}})),Object.defineProperties(kg,Sg),Object.defineProperty(Ag,"isAxiosError",{value:!0}),kg.from=(e,t,n,i,r,s)=>{const a=Object.create(Ag);return wg.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),kg.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const Cg=kg;function _g(e){return wg.isPlainObject(e)||wg.isArray(e)}function Eg(e){return wg.endsWith(e,"[]")?e.slice(0,-2):e}function Lg(e,t,n){return e?e.concat(t).map((function(e,t){return e=Eg(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Tg=wg.toFlatObject(wg,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Dg=function(e,t,n){if(!wg.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=wg.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!wg.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,s=n.dots,a=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wg.isSpecCompliantForm(t);if(!wg.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(wg.isDate(e))return e.toISOString();if(!o&&wg.isBlob(e))throw new Cg("Blob is not supported. Use a Buffer instead.");return wg.isArrayBuffer(e)||wg.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let o=e;if(e&&!r&&"object"==typeof e)if(wg.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(wg.isArray(e)&&function(e){return wg.isArray(e)&&!e.some(_g)}(e)||(wg.isFileList(e)||wg.endsWith(n,"[]"))&&(o=wg.toArray(e)))return n=Eg(n),o.forEach((function(e,i){!wg.isUndefined(e)&&null!==e&&t.append(!0===a?Lg([n],i,s):null===a?n:n+"[]",l(e))})),!1;return!!_g(e)||(t.append(Lg(r,n,s),l(e)),!1)}const u=[],h=Object.assign(Tg,{defaultVisitor:c,convertValue:l,isVisitable:_g});if(!wg.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!wg.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),wg.forEach(n,(function(n,s){!0===(!(wg.isUndefined(n)||null===n)&&r.call(t,n,wg.isString(s)?s.trim():s,i,h))&&e(n,i?i.concat(s):[s])})),u.pop()}}(e),t};function Pg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Mg(e,t){this._pairs=[],e&&Dg(e,this,t)}const Og=Mg.prototype;Og.append=function(e,t){this._pairs.push([e,t])},Og.toString=function(e){const t=e?function(t){return e.call(this,t,Pg)}:Pg;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Rg=Mg;function Ig(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ng(e,t,n){if(!t)return e;const i=n&&n.encode||Ig,r=n&&n.serialize;let s;if(s=r?r(t,n):wg.isURLSearchParams(t)?t.toString():new Rg(t,n).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Fg=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){wg.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Bg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zg={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Rg,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Yg="undefined"!=typeof window&&"undefined"!=typeof document,jg=(Hg="undefined"!=typeof navigator&&navigator.product,Yg&&["ReactNative","NativeScript","NS"].indexOf(Hg)<0);var Hg;const Wg="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Xg={...t,...zg};const Vg=function(e){function t(e,n,i,r){let s=e[r++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),o=r>=e.length;if(s=!s&&wg.isArray(i)?i.length:s,o)return wg.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a;i[s]&&wg.isObject(i[s])||(i[s]=[]);return t(e,n,i[s],r)&&wg.isArray(i[s])&&(i[s]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}(i[s])),!a}if(wg.isFormData(e)&&wg.isFunction(e.entries)){const n={};return wg.forEachEntry(e,((e,i)=>{t(function(e){return wg.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null};const Ug={transitional:Bg,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=wg.isObject(e);r&&wg.isHTMLForm(e)&&(e=new FormData(e));if(wg.isFormData(e))return i?JSON.stringify(Vg(e)):e;if(wg.isArrayBuffer(e)||wg.isBuffer(e)||wg.isStream(e)||wg.isFile(e)||wg.isBlob(e))return e;if(wg.isArrayBufferView(e))return e.buffer;if(wg.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Dg(e,new Xg.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Xg.isNode&&wg.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=wg.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Dg(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(wg.isString(e))try{return(t||JSON.parse)(e),wg.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ug.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&wg.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Cg.from(e,Cg.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xg.classes.FormData,Blob:Xg.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wg.forEach(["delete","get","head","post","put","patch"],(e=>{Ug.headers[e]={}}));const $g=Ug,Gg=wg.toObjectSet(["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"]),qg=Symbol("internals");function Zg(e){return e&&String(e).trim().toLowerCase()}function Kg(e){return!1===e||null==e?e:wg.isArray(e)?e.map(Kg):String(e)}function Jg(e,t,n,i,r){return wg.isFunction(i)?i.call(this,t,n):(r&&(t=n),wg.isString(t)?wg.isString(i)?-1!==t.indexOf(i):wg.isRegExp(i)?i.test(t):void 0:void 0)}class Qg{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=Zg(t);if(!r)throw new Error("header name must be a non-empty string");const s=wg.findKey(i,r);(!s||void 0===i[s]||!0===n||void 0===n&&!1!==i[s])&&(i[s||t]=Kg(e))}const s=(e,t)=>wg.forEach(e,((e,n)=>r(e,n,t)));return wg.isPlainObject(e)||e instanceof this.constructor?s(e,t):wg.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&Gg[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=Zg(e)){const n=wg.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(wg.isFunction(t))return t.call(this,e,n);if(wg.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Zg(e)){const n=wg.findKey(this,e);return!(!n||void 0===this[n]||t&&!Jg(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=Zg(e)){const r=wg.findKey(n,e);!r||t&&!Jg(0,n[r],r,t)||(delete n[r],i=!0)}}return wg.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!Jg(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return wg.forEach(this,((i,r)=>{const s=wg.findKey(n,r);if(s)return t[s]=Kg(i),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete t[r],t[a]=Kg(i),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return wg.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&wg.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[qg]=this[qg]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Zg(e);t[i]||(!function(e,t){const n=wg.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return wg.isArray(e)?e.forEach(i):i(e),this}}Qg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wg.reduceDescriptors(Qg.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),wg.freezeMethods(Qg);const em=Qg;function tm(e,t){const n=this||$g,i=t||n,r=em.from(i.headers);let s=i.data;return wg.forEach(e,(function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)})),r.normalize(),s}function nm(e){return!(!e||!e.__CANCEL__)}function im(e,t,n){Cg.call(this,null==e?"canceled":e,Cg.ERR_CANCELED,t,n),this.name="CanceledError"}wg.inherits(im,Cg,{__CANCEL__:!0});const rm=im;const sm=Xg.hasStandardBrowserEnv?{write(e,t,n,i,r,s){const a=[e+"="+encodeURIComponent(t)];wg.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),wg.isString(i)&&a.push("path="+i),wg.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function am(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const om=Xg.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=wg.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const lm=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,s=0,a=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=i[a];r||(r=l),n[s]=o,i[s]=l;let u=a,h=0;for(;u!==s;)h+=n[u++],u%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),l-r<t)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}};function cm(e,t){let n=0;const i=lm(50,250);return r=>{const s=r.loaded,a=r.lengthComputable?r.total:void 0,o=s-n,l=i(o);n=s;const c={loaded:s,total:a,progress:a?s/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&s<=a?(a-s)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const um="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let i=e.data;const r=em.from(e.headers).normalize();let s,a,{responseType:o,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(wg.isFormData(i))if(Xg.hasStandardBrowserEnv||Xg.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(a=r.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const h=am(e.baseURL,e.url);function d(){if(!u)return;const i=em.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Cg("Request failed with status code "+n.status,[Cg.ERR_BAD_REQUEST,Cg.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Ng(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new Cg("Request aborted",Cg.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Cg("Network Error",Cg.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||Bg;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Cg(t,i.clarifyTimeoutError?Cg.ETIMEDOUT:Cg.ECONNABORTED,e,u)),u=null},Xg.hasStandardBrowserEnv&&(l&&wg.isFunction(l)&&(l=l(e)),l||!1!==l&&om(h))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&sm.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===i&&r.setContentType(null),"setRequestHeader"in u&&wg.forEach(r.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),wg.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&"json"!==o&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",cm(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",cm(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{u&&(n(!t||t.type?new rm(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(h);p&&-1===Xg.protocols.indexOf(p)?n(new Cg("Unsupported protocol "+p+":",Cg.ERR_BAD_REQUEST,e)):u.send(i||null)}))},hm={http:null,xhr:um};wg.forEach(hm,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const dm=e=>`- ${e}`,pm=e=>wg.isFunction(e)||null===e||!1===e,fm=e=>{e=wg.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let s=0;s<t;s++){let t;if(n=e[s],i=n,!pm(n)&&(i=hm[(t=String(n)).toLowerCase()],void 0===i))throw new Cg(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+s]=i}if(!i){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(dm).join("\n"):" "+dm(e[0]):"as no adapter specified";throw new Cg("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function gm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rm(null,e)}function mm(e){gm(e),e.headers=em.from(e.headers),e.data=tm.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fm(e.adapter||$g.adapter)(e).then((function(t){return gm(e),t.data=tm.call(e,e.transformResponse,t),t.headers=em.from(t.headers),t}),(function(t){return nm(t)||(gm(e),t&&t.response&&(t.response.data=tm.call(e,e.transformResponse,t.response),t.response.headers=em.from(t.response.headers))),Promise.reject(t)}))}const vm=e=>e instanceof em?e.toJSON():e;function bm(e,t){t=t||{};const n={};function i(e,t,n){return wg.isPlainObject(e)&&wg.isPlainObject(t)?wg.merge.call({caseless:n},e,t):wg.isPlainObject(t)?wg.merge({},t):wg.isArray(t)?t.slice():t}function r(e,t,n){return wg.isUndefined(t)?wg.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function s(e,t){if(!wg.isUndefined(t))return i(void 0,t)}function a(e,t){return wg.isUndefined(t)?wg.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(e,t)=>r(vm(e),vm(t),!0)};return wg.forEach(Object.keys(Object.assign({},e,t)),(function(i){const s=l[i]||r,a=s(e[i],t[i],i);wg.isUndefined(a)&&s!==o||(n[i]=a)})),n}const xm="1.6.7",ym={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ym[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const wm={};ym.transitional=function(e,t,n){function i(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new Cg(i(r," has been removed"+(t?" in "+t:"")),Cg.ERR_DEPRECATED);return t&&!wm[r]&&(wm[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}};const km={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Cg("options must be an object",Cg.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],a=t[s];if(a){const t=e[s],n=void 0===t||a(t,s,e);if(!0!==n)throw new Cg("option "+s+" must be "+n,Cg.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Cg("Unknown option "+s,Cg.ERR_BAD_OPTION)}},validators:ym},Am=km.validators;class Sm{constructor(e){this.defaults=e,this.interceptors={request:new Fg,response:new Fg}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=bm(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&km.assertOptions(n,{silentJSONParsing:Am.transitional(Am.boolean),forcedJSONParsing:Am.transitional(Am.boolean),clarifyTimeoutError:Am.transitional(Am.boolean)},!1),null!=i&&(wg.isFunction(i)?t.paramsSerializer={serialize:i}:km.assertOptions(i,{encode:Am.function,serialize:Am.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&wg.merge(r.common,r[t.method]);r&&wg.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=em.concat(s,r);const a=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,h=0;if(!o){const e=[mm.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);h<u;)c=c.then(e[h++],e[h++]);return c}u=a.length;let d=t;for(h=0;h<u;){const e=a[h++],t=a[h++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=mm.call(this,d)}catch(e){return Promise.reject(e)}for(h=0,u=l.length;h<u;)c=c.then(l[h++],l[h++]);return c}getUri(e){return Ng(am((e=bm(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}wg.forEach(["delete","get","head","options"],(function(e){Sm.prototype[e]=function(t,n){return this.request(bm(n||{},{method:e,url:t,data:(n||{}).data}))}})),wg.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(bm(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Sm.prototype[e]=t(),Sm.prototype[e+"Form"]=t(!0)}));const Cm=Sm;class _m{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new rm(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new _m((function(t){e=t}));return{token:t,cancel:e}}}const Em=_m;const Lm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lm).forEach((([e,t])=>{Lm[t]=e}));const Tm=Lm;const Dm=function e(t){const n=new Cm(t),i=jf(Cm.prototype.request,n);return wg.extend(i,Cm.prototype,n,{allOwnKeys:!0}),wg.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(bm(t,n))},i}($g);Dm.Axios=Cm,Dm.CanceledError=rm,Dm.CancelToken=Em,Dm.isCancel=nm,Dm.VERSION=xm,Dm.toFormData=Dg,Dm.AxiosError=Cg,Dm.Cancel=Dm.CanceledError,Dm.all=function(e){return Promise.all(e)},Dm.spread=function(e){return function(t){return e.apply(null,t)}},Dm.isAxiosError=function(e){return wg.isObject(e)&&!0===e.isAxiosError},Dm.mergeConfig=bm,Dm.AxiosHeaders=em,Dm.formToJSON=e=>Vg(wg.isHTMLForm(e)?new FormData(e):e),Dm.getAdapter=fm,Dm.HttpStatusCode=Tm,Dm.default=Dm;const Pm=Dm;function Mm(){function e(e,t="success",n=0){0===n&&(n=1e4);var i=document.getElementById("lesli-msg-container");i||((i=document.createElement("div")).id="lesli-msg-container",i.className="lesli-msg");var r=document.createElement("div");r.className="lesli-msg-content";var s=document.createElement("div");s.innerHTML=e,s.classList.add("notification",`is-${t}`),r.appendChild(s),i.prepend(r),document.body.appendChild(i),setTimeout((function(){r.classList.add("hide"),setTimeout((()=>{r.parentNode.removeChild(r)}),200)}),n)}return{info:(t,n=0)=>e(t,"info",n),danger:(t,n=0)=>e(t,"danger",n),success:(t,n=0)=>e(t,"success",n),warning:(t,n=0)=>e(t,"warning",n)}}class Om{#e="";#t="";#n={};#i="";#r="";constructor(e,t,n){this.#t=e,this.#e=n,this.#i=t}root(e,t){return this.#i="",e&&(this.#i=this.#i.concat(this.#s(e,t))),this}engine(e,t,n){return e.startsWith("/")&&(e=e.slice(1)),e=e.concat("/"),t?this.root(e.concat(t),n):this.root(e,n)}order(e,t="asc"){return this.#n.orderBy=e,t&&(this.#n.order=t),this.#a()}paginate(e,t=12){return this.#n.page=e,this.#n.perPage=t,this.#a()}search(e){return e&&(this.#n.search=e),this.#a()}group(e){return e&&(this.#n.group=e),this.#a()}filter(e){let t=Object.keys(e);return this.#n.f||(this.#n.f={}),t.forEach((t=>{this.#n.f[t]=e[t].join(",")})),this.#a()}query(e,t){return this.#n[e]=t,this.#a()}tokenUrl(){let e=new URLSearchParams(window.location.search);return this.#n.t=e.get("t"),this.#a()}tokenShared(){let e=window.location.pathname.split("/")[3];return this.#n.t=e,this.#a()}toString(e=null){return this.#a(e),this.#r.toString()}get s(){return this.toString()}json(){return this.toString(".json")}pdf(){return this.toString(".pdf")}go(){this.#a(),window.location.href=this.#r.toString()}#a(e=null){let t="/";return""!=this.#i&&(t=t.concat(this.#i)),e&&(t=t.concat(e)),t=t.concat(this.#o(this.#n)),this.#r=t,this}#s(e,t={}){"string"!=typeof t&&"number"!=typeof t||(t={id:t});const n={...t},i=e.replace(/:[_A-Za-z][_A-Za-z0-9]*/g,(e=>{let i=e.slice(1);return delete n[i],encodeURIComponent(t[i])}));for(let e in n)this.#n[e]=n[e];return i}#o(e){function t(e,i){Array.isArray(e)?e.forEach((function(e){t(e,i+"[]")})):null===e||"object"!=typeof e?n.push(i+"="+e):Object.keys(e).forEach((function(n){t(e[n],i+"["+n+"]")}))}var n=[];return Object.keys(e).forEach((function(n){t(e[n],n)})),n.length>0?"?".concat(n.join("&")):""}}function Rm(e=null){return{go(e="/"){document.location.href=e},to:(e=null)=>e?"/".concat(e):"/",root:(e,t={})=>(new Om).root(e,t),lesli:(e,t={})=>(new Om).engine("lesli",e,t),admin:(e,t={})=>(new Om).engine("admin",e,t),audit:(e,t={})=>(new Om).engine("audit",e,t),babel:(e,t={})=>(new Om).engine("babel",e,t),bell:(e,t={})=>(new Om).engine("bell",e,t),support:(e,t={})=>(new Om).engine("support",e,t),mailer:(e,t={})=>(new Om).engine("mailer",e,t),talk:(e,t={})=>(new Om).engine("talk",e,t),focus:(e,t={})=>(new Om).engine("focus",e,t),time:(e,t={})=>(new Om).engine("time",e,t),calendar:(t,n={})=>(new Om).engine(e.engine_paths.LesliCalendar,t,n),social:(e,t={})=>(new Om).engine("social",e,t),word:(e,t={})=>(new Om).engine("word",e,t),team:(e,t={})=>(new Om).engine("team",e,t),scraper:(e,t={})=>(new Om).engine("scraper",e,t),shield:(e,t={})=>(new Om).engine("shield",e,t),shared:(e,t={})=>(new Om).engine("shared",e,t),security:(e,t={})=>(new Om).engine("security",e,t),letter:(e,t={})=>(new Om).engine("letter",e,t),authority:(e,t={})=>(new Om).engine("authority",e,t),dashboard:(e,t={})=>(new Om).engine("dashboard",e,t)}}Bf.extend(zf),Bf.extend(Yf);class Im{#l={};#c={};#u="";constructor(e=Bf().utc().format(),t){this.#l={timeZone:"America/Guatemala",startWeekOn:"config[:start_week_on]",format:{date:"%d.%m.%Y",time:"%H:%M",dateTime:"%d.%m.%Y %H:%M",dateWords:"%A, %B %d",dateTimeWords:"%A / %B %d, %Y, %H:%M"}},this.#u=this.#h("date"),this.#c=Bf(e).tz(this.#l.timeZone)}date(){return this.#h("date"),this.toString()}time(){return this.#h("time"),this.toString()}dateTime(){return this.#h("dateTime"),this.toString()}dateWords(){return this.#h("dateWords"),this.toString()}toString(){return this.#c.format(this.#u)}#h(e){this.#u=this.#l.format[e].replaceAll("%Y","YYYY").replaceAll("%m","MM").replaceAll("%d","DD").replaceAll("%H","HH").replaceAll("%M","mm").replaceAll("%A","dddd").replaceAll("%B","MMMM")}}function Nm(){return function(e=Bf().utc().format(),t="%Y-%m-%d %H:%M:%S"){return new Im(e,t)}}const Fm={};function Bm(){let e=document.querySelector('meta[name="csrf-token"]'),t="";e&&(t=e.getAttribute("content"));var n=Pm.create({headers:{"Content-Type":"application/json;charset=UTF-8","X-CSRF-Token":t}});return n.interceptors.request.use((function(e){return e.url=e.url.toString(".json"),e}),(function(e){return Promise.reject(e)})),n.interceptors.response.use((e=>e.data),(e=>{if(490==e.response.status)return Fm.warn(e.config.url+" : Action Required",`HTTP/${e.config.method.toUpperCase()}`),Promise.reject({code:e.response.status,action:e.response.data.action,message:e.response.data.message});let t="";return t=e?.response?.data?.message&&""!=e?.response?.data?.message?e?.response?.data?.message:`Ajax ${e.config.method} to url ${e.config.url} ${e.message}`,Promise.reject({code:e.response.status,message:t,details:e?.response?.data?.details||[]})})),n.postFile=(e,t)=>n.post(e,t,{"Content-Type":"multipart/form-data"}),n}class zm{m(e,t=null,n=null){return this.#d(e,t,n)}log(e,t=null){console.log(this.#d(e,t,"log"))}msg(e,t=null){console.log(this.#d(e,t,"msg"))}info(e,t=null){console.info("%c"+this.#d(e,t,"info"),this.#p("info"))}success(e,t=null){console.log(this.#d(e,t,"msg"))}warn(e,t=null){console.warn("%c"+this.#d(e,t,"warn"),this.#p("warn"))}error(e,t=null){console.error("%c"+this.#d(e,t,"error"),this.#p("error"))}fatal(e,t=null){console.error("%c"+this.#d(e,t,"error"),this.#p("fatal"))}hr(e=10){console.log("-·- ".repeat(e))}br(e=1){console.log("")}message(e,t,n=null){console.log("%c"+e,"color:#3689e6;font-size:35px;font-weight:600;line-height:1;"),"string"==typeof t&&(t=[t]),console.log("%c"+t.join("\n"),"background-color:#ffffff;color:#1a1a1a;font-size:18px;font-weight:400;line-height:1.1;"),n&&console.log("%c"+n,"background-color:#ffffff;color:#1a1a1a;font-size:14px;font-weight:400;line-height:2;")}lesli_message_warning(e="LESLI",t="For mor information contact your system administrator"){this.message(e,["This is a browser feature intended for developers.","For security reasons, DO NOT copy or paste any information, text, or code here."],t)}pp(e,t=1){let n="",i="",r="",s="\n";for(let e=0;e<4*t;e++)r+=" ";if(t>1&&(i=r.slice(0,r.length-4)),"object"==typeof e&&!Array.isArray(e)){n+=i+"{"+s;for(let i in e)"object"==typeof e[i]?n+=r+i+": "+this.print_r(e[i],t+1)+","+s:n+=r+i+": "+e[i]+","+s;n+=i+"}"}if("object"==typeof e&&Array.isArray(e)){n+="[\n";for(let i in e)"object"==typeof e[i]?n+=this.print_r(e[i],t+1)+","+s:n+=r+e[i]+s;n+=i+"]"}return n}#d(e,t,n){let i=`[${this.#f()}] [${n.toUpperCase()}]`;return t&&(i+=` (${t})`),i=i.concat(" - ").concat(e),i}#p(e){let t="";switch(e){case"info":t="background-color:#3498db;color:#ffffff;";break;case"warn":t="background-color:#f1c40f;color:#000000;";break;case"error":t="background-color:#e74c3c;color:#ffffff;";break;case"fatal":t="background-color:#c0392b;color:#fff394;";break;case"success":t="background-color:##48c774;color:#000000;"}return t+="padding:2px;",t+="font-size:14px;",t+="line-height:1.5;",t}#f(){return Bf().format("MM/DD HH:mm").toString()}}const Ym=np("lesli.layout",{state:()=>({showEngines:!1,showSupportTickets:!1,showNotifications:!1,showTasks:!1,showFiles:!1,showProfile:!1,showAnnouncements:!1,header:{notifications:lesli.notifications,tickets:lesli.tickets,tasks:lesli.tasks}}),actions:{toggleEngines(){this.showEngines=!this.showEngines}}}),jm=np("search",{state:()=>({text:"",timer:null,loading:!1,showResults:!1,pagination:{},columns:[],records:[]}),actions:{doSearch(){""!=this.text?(this.loading=!0,clearTimeout(this.timer),this.timer=setTimeout((()=>this.fetchSearch()),800)):this.showResults=!1},fetchSearch(){this.loading=!0;var e=this.text.toLowerCase().split(/(\s+)/).filter((e=>e.trim().length>0)).map((e=>this.filterNonEnglishLetters(e)));let t=this.url.dl("search").search(this.text);this.http.get(t).then((t=>{this.pagination=t.pagination,this.columns=t.columns,this.records=t.records.map((t=>{for(var n in t)"id"!=n&&(t[n]=this.doHighlightText(t[n],e));return t}))})).catch((e=>{console.log(e)})).finally((()=>{this.loading=!1}))},doHighlightText(e,t){if(!e)return;if(0===t.length)return text_to_highlight;let n=new RegExp(`${t.join("|")}`,"ig");return e=e.toString().replace(n,((e,t,n)=>`<span class="tag is-primary">${e}</span>`))},filterNonEnglishLetters:e=>e.includes("ä")?e.replace("ä","(ä|ae)"):e.includes("ae")?e.replace("ae","(ä|ae)"):e.includes("ü")?e.replace("ü","(ü|ue)"):e.includes("ue")?e.replace("ue","(ü|ue)"):e.includes("ö")?e.replace("ö","(ö|oe)"):e.includes("oe")?e.replace("oe","(ö|oe)"):e}}),Hm={ref:"lesliApplicationHeader",class:"lesli-application-header"},Wm=["href"],Xm={key:0,class:"navbar-item"},Vm={key:0,class:"count"},Um=sa("span",{class:"ri-ticket-2-line"},null,-1),$m={key:1,class:"navbar-item"},Gm=sa("span",{class:"ri-list-check-3"},null,-1),qm={key:0,class:"count"},Zm={key:2,class:"navbar-item"},Km={class:"header-indicator"},Jm=sa("span",{class:"count"},null,-1),Qm={key:3,class:"navbar-item"},ev=[sa("span",{class:"ri-apps-2-line"},null,-1)],tv={key:4,class:"navbar-item"},nv={class:"dropdown is-hoverable"},iv={class:"dropdown-trigger"},rv=[sa("span",{class:"ri-user-smile-line"},null,-1)],sv={class:"dropdown-menu",id:"dropdown-menu",role:"menu"},av={class:"dropdown-content"},ov=["href"],lv=[sa("span",{class:"icon-text"},[sa("span",{class:"icon has-text-grey-dark"},[sa("span",{class:"ri-questionnaire-line"})]),sa("span",null,"Help")],-1)],cv=["href"],uv=[sa("span",{class:"icon-text"},[sa("span",{class:"icon has-text-grey-dark"},[sa("span",{class:"ri-equalizer-line"})]),sa("span",null,"Settings")],-1)],hv=["href"],dv=[sa("span",{class:"icon-text"},[sa("span",{class:"icon has-text-grey-dark"},[sa("span",{class:"ri-user-line"})]),sa("span",null,"Profile")],-1)],pv=sa("hr",{class:"dropdown-divider"},null,-1),fv=sa("a",{href:"/logout",class:"dropdown-item py-3"},[sa("span",{class:"icon-text"},[sa("span",{class:"icon has-text-grey-dark"},[sa("span",{class:"ri-logout-box-r-line"})]),sa("span",null,"Logout")])],-1),gv={__name:"application-header",props:{showProfile:{type:Boolean,default:!1,required:!1},showEngines:{type:Boolean,default:!1,required:!1},showBell:{type:Boolean,default:!1,required:!1},showFocus:{type:Boolean,default:!1,required:!1},showSupport:{type:Boolean,default:!1,required:!1},showAnnouncements:{type:Boolean,default:!1,required:!1},enginePath:{type:String,default:"/",required:!1}},setup(e){const t=Ym(),n=(jm(),Qr("url")),i=e;Wt(null);function r(e){27===e.keyCode&&(t.toggleEngines(),document.removeEventListener("keydown",r))}return(e,s)=>{const a=Qn("lesli-navbar");return Us(),Js("header",Hm,[aa(a,null,{brand:Xn((()=>[sa("a",{href:encodeURI(i.enginePath)},[pr(e.$slots,"brand")],8,Wm)])),end:Xn((()=>[pr(e.$slots,"end"),da(" tickets "),i.showSupport?(Us(),Js("div",Xm,[sa("a",{class:"header-indicator",onClick:s[0]||(s[0]=()=>{Gt(t).showSupport=!0})},[Gt(t).header.support>0?(Us(),Js("span",Vm)):da("v-if",!0),Um])])):da("v-if",!0),da(" tasks "),i.showFocus?(Us(),Js("div",$m,[sa("a",{class:"header-indicator",onClick:s[1]||(s[1]=()=>{Gt(t).showSuppor=!0})},[Gm,Gt(t).header.support>0?(Us(),Js("span",qm)):da("v-if",!0)])])):da("v-if",!0),da(" notifications "),i.showBell?(Us(),Js("div",Zm,[sa("a",Km,[sa("span",{class:Z(["ri-notification-3-line",{"is-active":Gt(t).header.notifications>0}])},null,2),Jm])])):da("v-if",!0),da(" engines selector "),i.showEngines?(Us(),Js("div",Qm,[sa("a",{onClick:s[2]||(s[2]=e=>(t.toggleEngines(),void document.addEventListener("keydown",r)))},ev)])):da("v-if",!0),da(" profile options "),i.showProfile?(Us(),Js("div",tv,[sa("div",nv,[sa("div",iv,[sa("a",{onClick:s[3]||(s[3]=e=>Gt(t).showProfile=!0)},rv)]),sa("div",sv,[sa("div",av,[sa("a",{href:Gt(n).admin("profile"),class:"dropdown-item py-3"},lv,8,ov),sa("a",{href:Gt(n).admin("profile"),class:"dropdown-item py-3"},uv,8,cv),sa("a",{href:Gt(n).admin("profile"),class:"dropdown-item py-3"},dv,8,hv),pv,fv])])])])):da("v-if",!0)])),_:3}),da('\n <div class="lesli-application-header-container container">\n <div class="lesli-application-header-left">\n <div class="control is-medium has-icons-left has-text-grey">\n <span class="icon is-left has-text-grey-dark">\n <span class="material-icons" v-if="!storeSearch.loading">\n search\n </span>\n <lesli-loading :icon="true" v-if="storeSearch.loading">\n </lesli-loading>\n </span>\n <input \n type="email" \n name="global_search"\n class="input is-shadowless" \n :placeholder="translations.lesli.application.navigation_chat_with_lesli || \'\'"\n @input="storeSearch.doSearch"\n v-model="storeSearch.text" \n />\n </div>\n </div>\n </div>\n ')],512)}}},mv={class:"engines-container"},vv={class:"engines"},bv=sa("button",{class:"button is-hidden-tablet"},[sa("span",{class:"icon"},[sa("i",{class:"ri-close-line"})]),sa("span",null,"close")],-1),xv={__name:"application-engines",setup(e){const t=Ym();return(e,n)=>(Us(),Qs(lo,null,{default:Xn((()=>[Gt(t).showEngines?(Us(),Js("section",{key:0,class:"lesli-application-engines",onClick:n[0]||(n[0]=e=>Gt(t).toggleEngines())},[sa("div",mv,[sa("div",vv,[pr(e.$slots,"default")]),bv])])):da("v-if",!0)])),_:3}))}},yv={__name:"application-container",props:{dashboard:{type:Boolean,default:!1,required:!1}},setup:e=>(t,n)=>(Us(),Js("section",{class:Z(["lesli-application-container container",{"is-fluid":e.dashboard}])},[pr(t.$slots,"default")],2))},wv={class:"box"},kv={__name:"application-component",setup:e=>(e,t)=>(Us(),Js("article",wv,[pr(e.$slots,"default")]))},Av=np("lesli.panelSupportTickets",{state:()=>({loading:!1,loaded:!1,ticket:{cloud_help_catalog_ticket_types_id:2,cloud_help_catalog_ticket_workspaces_id:null,subject:"",description:"",reference_url:null},tickets:{},options:{types:[],categories:[],priorities:[]},typesSelect:[],workspaceSelect:[]}),actions:{fetchTickets(){this.loading=!0,this.http.get(this.url.support("tickets").paginate(1,3).filter({search_type:["active"],user_type:["own"]})).then((e=>{this.tickets=e.records})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))})).finally((()=>{this.loading=!1}))},postTicket(){this.loading=!0,this.ticket.reference_url=window.location.href,this.http.post(this.url.support("tickets"),this.ticket).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation")),this.resetForm()})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))})).finally((()=>{this.loading=!1}))},resetForm(){this.ticket.subject="",this.ticket.description="",this.ticket.type=2},getTicketOptions(){this.loaded=!0,this.http.get(this.url.support("tickets/options")).then((e=>{this.options=e,e.types.map((e=>{this.typesSelect.push({label:e.name,value:e.id})})),e.workspaces.map((e=>{this.workspaceSelect.push({label:e.name,value:e.id})}))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))}}});var Sv=n(5927);const Cv="[data-trix-attachment]",_v={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},Ev={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test(e){return Lv(e.parentNode)===Ev[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(e){return Lv(e.parentNode)===Ev[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},Lv=e=>{var t;return null==e||null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase()},Tv=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),Dv=Tv&&parseInt(Tv[1]);var Pv={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:Dv&&Dv>12,samsungAndroid:Dv&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:"undefined"!=typeof InputEvent&&["data","getTargetRanges","inputType"].every((e=>e in InputEvent.prototype))},Mv={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption…",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL…",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"};const Ov=[Mv.bytes,Mv.KB,Mv.MB,Mv.GB,Mv.TB,Mv.PB];var Rv={prefix:"IEC",precision:2,formatter(e){switch(e){case 0:return"0 ".concat(Mv.bytes);case 1:return"1 ".concat(Mv.byte);default:let t;"SI"===this.prefix?t=1e3:"IEC"===this.prefix&&(t=1024);const n=Math.floor(Math.log(e)/Math.log(t)),i=(e/Math.pow(t,n)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(i," ").concat(Ov[n])}}};const Iv="\ufeff",Nv=" ",Fv=function(e){for(const t in e){const n=e[t];this[t]=n}return this},Bv=document.documentElement,zv=Bv.matches,Yv=function(e){let{onElement:t,matchingSelector:n,withCallback:i,inPhase:r,preventDefault:s,times:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t||Bv,l=n,c="capturing"===r,u=function(e){null!=a&&0==--a&&u.destroy();const t=Wv(e.target,{matchingSelector:l});null!=t&&(null==i||i.call(t,e,t),s&&e.preventDefault())};return u.destroy=()=>o.removeEventListener(e,u,c),o.addEventListener(e,u,c),u},jv=function(e){let{onElement:t,bubbles:n,cancelable:i,attributes:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=null!=t?t:Bv;n=!1!==n,i=!1!==i;const a=document.createEvent("Events");return a.initEvent(e,n,i),null!=r&&Fv.call(a,r),s.dispatchEvent(a)},Hv=function(e,t){if(1===(null==e?void 0:e.nodeType))return zv.call(e,t)},Wv=function(e){let{matchingSelector:t,untilNode:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.parentNode;if(null!=e){if(null==t)return e;if(e.closest&&null==n)return e.closest(t);for(;e&&e!==n;){if(Hv(e,t))return e;e=e.parentNode}}},Xv=e=>document.activeElement!==e&&Vv(e,document.activeElement),Vv=function(e,t){if(e&&t)for(;t;){if(t===e)return!0;t=t.parentNode}},Uv=function(e){var t;if(null===(t=e)||void 0===t||!t.parentNode)return;let n=0;for(e=e.previousSibling;e;)n++,e=e.previousSibling;return n},$v=e=>{var t;return null==e||null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)},Gv=function(e){let{onlyNodesOfType:t,usingFilter:n,expandEntityReferences:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(()=>{switch(t){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}})();return document.createTreeWalker(e,r,null!=n?n:null,!0===i)},qv=e=>{var t;return null==e||null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase()},Zv=function(e){let t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof e?(i=e,e=i.tagName):i={attributes:i};const r=document.createElement(e);if(null!=i.editable&&(null==i.attributes&&(i.attributes={}),i.attributes.contenteditable=i.editable),i.attributes)for(t in i.attributes)n=i.attributes[t],r.setAttribute(t,n);if(i.style)for(t in i.style)n=i.style[t],r.style[t]=n;if(i.data)for(t in i.data)n=i.data[t],r.dataset[t]=n;return i.className&&i.className.split(" ").forEach((e=>{r.classList.add(e)})),i.textContent&&(r.textContent=i.textContent),i.childNodes&&[].concat(i.childNodes).forEach((e=>{r.appendChild(e)})),r};let Kv;const Jv=function(){if(null!=Kv)return Kv;Kv=[];for(const e in Ev){const t=Ev[e];t.tagName&&Kv.push(t.tagName)}return Kv},Qv=e=>tb(null==e?void 0:e.firstChild),eb=function(e){let{strict:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0};return t?tb(e):tb(e)||!tb(e.firstChild)&&function(e){return Jv().includes(qv(e))&&!Jv().includes(qv(e.firstChild))}(e)},tb=e=>nb(e)&&"block"===(null==e?void 0:e.data),nb=e=>(null==e?void 0:e.nodeType)===Node.COMMENT_NODE,ib=function(e){let{name:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e)return ab(e)?e.data===Iv?!t||e.parentNode.dataset.trixCursorTarget===t:void 0:ib(e.firstChild)},rb=e=>Hv(e,Cv),sb=e=>ab(e)&&""===(null==e?void 0:e.data),ab=e=>(null==e?void 0:e.nodeType)===Node.TEXT_NODE,ob={level2Enabled:!0,getLevel(){return this.level2Enabled&&Pv.supportsInputEvents?2:0},pickFiles(e){const t=Zv("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});t.addEventListener("change",(()=>{e(t.files),$v(t)})),$v(document.getElementById(this.fileInputId)),document.body.appendChild(t),t.click()}};var lb={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:"\n"},cb={bold:{tagName:"strong",inheritable:!0,parser(e){const t=window.getComputedStyle(e);return"bold"===t.fontWeight||t.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:e=>"italic"===window.getComputedStyle(e).fontStyle},href:{groupTagName:"a",parser(e){const t="a:not(".concat(Cv,")"),n=e.closest(t);if(n)return n.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},ub={getDefaultHTML:()=>'<div class="trix-button-row">\n <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">\n <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="'.concat(Mv.bold,'" tabindex="-1">').concat(Mv.bold,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="').concat(Mv.italic,'" tabindex="-1">').concat(Mv.italic,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="').concat(Mv.strike,'" tabindex="-1">').concat(Mv.strike,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="').concat(Mv.link,'" tabindex="-1">').concat(Mv.link,'</button>\n </span>\n\n <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">\n <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="').concat(Mv.heading1,'" tabindex="-1">').concat(Mv.heading1,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="').concat(Mv.quote,'" tabindex="-1">').concat(Mv.quote,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="').concat(Mv.code,'" tabindex="-1">').concat(Mv.code,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="').concat(Mv.bullets,'" tabindex="-1">').concat(Mv.bullets,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="').concat(Mv.numbers,'" tabindex="-1">').concat(Mv.numbers,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="').concat(Mv.outdent,'" tabindex="-1">').concat(Mv.outdent,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="').concat(Mv.indent,'" tabindex="-1">').concat(Mv.indent,'</button>\n </span>\n\n <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">\n <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="').concat(Mv.attachFiles,'" tabindex="-1">').concat(Mv.attachFiles,'</button>\n </span>\n\n <span class="trix-button-group-spacer"></span>\n\n <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">\n <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="').concat(Mv.undo,'" tabindex="-1">').concat(Mv.undo,'</button>\n <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="').concat(Mv.redo,'" tabindex="-1">').concat(Mv.redo,'</button>\n </span>\n </div>\n\n <div class="trix-dialogs" data-trix-dialogs>\n <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">\n <div class="trix-dialog__link-fields">\n <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="').concat(Mv.urlPlaceholder,'" aria-label="').concat(Mv.url,'" required data-trix-input>\n <div class="trix-button-group">\n <input type="button" class="trix-button trix-button--dialog" value="').concat(Mv.link,'" data-trix-method="setAttribute">\n <input type="button" class="trix-button trix-button--dialog" value="').concat(Mv.unlink,'" data-trix-method="removeAttribute">\n </div>\n </div>\n </div>\n </div>')};const hb={interval:5e3};var db=Object.freeze({__proto__:null,attachments:_v,blockAttributes:Ev,browser:Pv,css:{attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"},fileSize:Rv,input:ob,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:Mv,parser:lb,textAttributes:cb,toolbar:ub,undo:hb});class pb{static proxyMethod(e){const{name:t,toMethod:n,toProperty:i,optional:r}=fb(e);this.prototype[t]=function(){let e,s;var a,o;return n?s=r?null===(a=this[n])||void 0===a?void 0:a.call(this):this[n]():i&&(s=this[i]),r?(e=null===(o=s)||void 0===o?void 0:o[t],e?gb.call(e,s,arguments):void 0):(e=s[t],gb.call(e,s,arguments))}}}const fb=function(e){const t=e.match(mb);if(!t)throw new Error("can't parse @proxyMethod expression: ".concat(e));const n={name:t[4]};return null!=t[2]?n.toMethod=t[1]:n.toProperty=t[1],null!=t[3]&&(n.optional=!0),n},{apply:gb}=Function.prototype,mb=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$");var vb,bb,xb;class yb extends pb{static box(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e instanceof this?e:this.fromUCS2String(null==e?void 0:e.toString())}static fromUCS2String(e){return new this(e,Sb(e))}static fromCodepoints(e){return new this(Cb(e),e)}constructor(e,t){super(...arguments),this.ucs2String=e,this.codepoints=t,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}offsetToUCS2Offset(e){return Cb(this.codepoints.slice(0,Math.max(0,e))).length}offsetFromUCS2Offset(e){return Sb(this.ucs2String.slice(0,Math.max(0,e))).length}slice(){return this.constructor.fromCodepoints(this.codepoints.slice(...arguments))}charAt(e){return this.slice(e,e+1)}isEqualTo(e){return this.constructor.box(e).ucs2String===this.ucs2String}toJSON(){return this.ucs2String}getCacheKey(){return this.ucs2String}toString(){return this.ucs2String}}const wb=1===(null===(vb=Array.from)||void 0===vb?void 0:vb.call(Array,"👼").length),kb=null!=(null===(bb=" ".codePointAt)||void 0===bb?void 0:bb.call(" ",0)),Ab=" 👼"===(null===(xb=String.fromCodePoint)||void 0===xb?void 0:xb.call(String,32,128124));let Sb,Cb;Sb=wb&&kb?e=>Array.from(e).map((e=>e.codePointAt(0))):function(e){const t=[];let n=0;const{length:i}=e;for(;n<i;){let r=e.charCodeAt(n++);if(55296<=r&&r<=56319&&n<i){const t=e.charCodeAt(n++);56320==(64512&t)?r=((1023&r)<<10)+(1023&t)+65536:n--}t.push(r)}return t},Cb=Ab?e=>String.fromCodePoint(...Array.from(e||[])):function(e){return(()=>{const t=[];return Array.from(e).forEach((e=>{let n="";e>65535&&(e-=65536,n+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t.push(n+String.fromCharCode(e))})),t})().join("")};let _b=0;class Eb extends pb{static fromJSONString(e){return this.fromJSON(JSON.parse(e))}constructor(){super(...arguments),this.id=++_b}hasSameConstructorAs(e){return this.constructor===(null==e?void 0:e.constructor)}isEqualTo(e){return this===e}inspect(){const e=[],t=this.contentsForInspection()||{};for(const n in t){const i=t[n];e.push("".concat(n,"=").concat(i))}return"#<".concat(this.constructor.name,":").concat(this.id).concat(e.length?" ".concat(e.join(", ")):"",">")}contentsForInspection(){}toJSONString(){return JSON.stringify(this)}toUTF16String(){return yb.box(this)}getCacheKey(){return this.id.toString()}}const Lb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},Tb=function(e){const t=e.slice(0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.splice(...i),t},Db=/[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/,Pb=function(){const e=Zv("input",{dir:"auto",name:"x",dirName:"x.dir"}),t=Zv("textarea",{dir:"auto",name:"y",dirName:"y.dir"}),n=Zv("form");n.appendChild(e),n.appendChild(t);const i=function(){try{return new FormData(n).has(t.dirName)}catch(e){return!1}}(),r=function(){try{return e.matches(":dir(ltr),:dir(rtl)")}catch(e){return!1}}();return i?function(e){return t.value=e,new FormData(n).get(t.dirName)}:r?function(t){return e.value=t,e.matches(":dir(rtl)")?"rtl":"ltr"}:function(e){const t=e.trim().charAt(0);return Db.test(t)?"rtl":"ltr"}}();let Mb=null,Ob=null,Rb=null,Ib=null;const Nb=()=>(Mb||(Mb=Yb().concat(Bb())),Mb),Fb=e=>Ev[e],Bb=()=>(Ob||(Ob=Object.keys(Ev)),Ob),zb=e=>cb[e],Yb=()=>(Rb||(Rb=Object.keys(cb)),Rb),jb=function(e,t){Hb(e).textContent=t.replace(/%t/g,e)},Hb=function(e){const t=document.createElement("style");t.setAttribute("type","text/css"),t.setAttribute("data-tag-name",e.toLowerCase());const n=Wb();return n&&t.setAttribute("nonce",n),document.head.insertBefore(t,document.head.firstChild),t},Wb=function(){const e=Xb("trix-csp-nonce")||Xb("csp-nonce");if(e)return e.getAttribute("content")},Xb=e=>document.head.querySelector("meta[name=".concat(e,"]")),Vb={"application/x-trix-feature-detection":"test"},Ub=function(e){const t=e.getData("text/plain"),n=e.getData("text/html");if(!t||!n)return null==t?void 0:t.length;{const{body:e}=(new DOMParser).parseFromString(n,"text/html");if(e.textContent===t)return!e.querySelector("*")}},$b=/Mac|^iP/.test(navigator.platform)?e=>e.metaKey:e=>e.ctrlKey,Gb=e=>setTimeout(e,1),qb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};for(const n in e){const i=e[n];t[n]=i}return t},Zb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0},Kb=function(e){if(null!=e)return Array.isArray(e)||(e=[e,e]),[ex(e[0]),ex(null!=e[1]?e[1]:e[0])]},Jb=function(e){if(null==e)return;const[t,n]=Kb(e);return tx(t,n)},Qb=function(e,t){if(null==e||null==t)return;const[n,i]=Kb(e),[r,s]=Kb(t);return tx(n,r)&&tx(i,s)},ex=function(e){return"number"==typeof e?e:qb(e)},tx=function(e,t){return"number"==typeof e?e===t:Zb(e,t)};class nx extends pb{constructor(){super(...arguments),this.update=this.update.bind(this),this.selectionManagers=[]}start(){this.started||(this.started=!0,document.addEventListener("selectionchange",this.update,!0))}stop(){if(this.started)return this.started=!1,document.removeEventListener("selectionchange",this.update,!0)}registerSelectionManager(e){if(!this.selectionManagers.includes(e))return this.selectionManagers.push(e),this.start()}unregisterSelectionManager(e){if(this.selectionManagers=this.selectionManagers.filter((t=>t!==e)),0===this.selectionManagers.length)return this.stop()}notifySelectionManagersOfSelectionChange(){return this.selectionManagers.map((e=>e.selectionDidChange()))}update(){this.notifySelectionManagersOfSelectionChange()}reset(){this.update()}}const ix=new nx,rx=function(){const e=window.getSelection();if(e.rangeCount>0)return e},sx=function(){var e;const t=null===(e=rx())||void 0===e?void 0:e.getRangeAt(0);if(t&&!ox(t))return t},ax=function(e){const t=window.getSelection();return t.removeAllRanges(),t.addRange(e),ix.update()},ox=e=>lx(e.startContainer)||lx(e.endContainer),lx=e=>!Object.getPrototypeOf(e),cx=e=>e.replace(new RegExp("".concat(Iv),"g"),"").replace(new RegExp("".concat(Nv),"g")," "),ux=new RegExp("[^\\S".concat(Nv,"]")),hx=e=>e.replace(new RegExp("".concat(ux.source),"g")," ").replace(/\ {2,}/g," "),dx=function(e,t){if(e.isEqualTo(t))return["",""];const n=px(e,t),{length:i}=n.utf16String;let r;if(i){const{offset:s}=n,a=e.codepoints.slice(0,s).concat(e.codepoints.slice(s+i));r=px(t,yb.fromCodepoints(a))}else r=px(t,e);return[n.utf16String.toString(),r.utf16String.toString()]},px=function(e,t){let n=0,i=e.length,r=t.length;for(;n<i&&e.charAt(n).isEqualTo(t.charAt(n));)n++;for(;i>n+1&&e.charAt(i-1).isEqualTo(t.charAt(r-1));)i--,r--;return{utf16String:e.slice(n,i),offset:n}};class fx extends Eb{static fromCommonAttributesOfObjects(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return new this;let t=bx(e[0]),n=t.getKeys();return e.slice(1).forEach((e=>{n=t.getKeysCommonToHash(bx(e)),t=t.slice(n)})),t}static box(e){return bx(e)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(...arguments),this.values=vx(e)}add(e,t){return this.merge(gx(e,t))}remove(e){return new fx(vx(this.values,e))}get(e){return this.values[e]}has(e){return e in this.values}merge(e){return new fx(mx(this.values,xx(e)))}slice(e){const t={};return Array.from(e).forEach((e=>{this.has(e)&&(t[e]=this.values[e])})),new fx(t)}getKeys(){return Object.keys(this.values)}getKeysCommonToHash(e){return e=bx(e),this.getKeys().filter((t=>this.values[t]===e.values[t]))}isEqualTo(e){return Lb(this.toArray(),bx(e).toArray())}isEmpty(){return 0===this.getKeys().length}toArray(){if(!this.array){const e=[];for(const t in this.values){const n=this.values[t];e.push(e.push(t,n))}this.array=e.slice(0)}return this.array}toObject(){return vx(this.values)}toJSON(){return this.toObject()}contentsForInspection(){return{values:JSON.stringify(this.values)}}}const gx=function(e,t){const n={};return n[e]=t,n},mx=function(e,t){const n=vx(e);for(const e in t){const i=t[e];n[e]=i}return n},vx=function(e,t){const n={};return Object.keys(e).sort().forEach((i=>{i!==t&&(n[i]=e[i])})),n},bx=function(e){return e instanceof fx?e:new fx(e)},xx=function(e){return e instanceof fx?e.values:e};class yx{static groupObjects(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{depth:n,asTree:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i&&null==n&&(n=0);const r=[];return Array.from(t).forEach((t=>{var s;if(e){var a,o,l;if(null!==(a=t.canBeGrouped)&&void 0!==a&&a.call(t,n)&&null!==(o=(l=e[e.length-1]).canBeGroupedWith)&&void 0!==o&&o.call(l,t,n))return void e.push(t);r.push(new this(e,{depth:n,asTree:i})),e=null}null!==(s=t.canBeGrouped)&&void 0!==s&&s.call(t,n)?e=[t]:r.push(t)})),e&&r.push(new this(e,{depth:n,asTree:i})),r}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{depth:t,asTree:n}=arguments.length>1?arguments[1]:void 0;this.objects=e,n&&(this.depth=t,this.objects=this.constructor.groupObjects(this.objects,{asTree:n,depth:this.depth+1}))}getObjects(){return this.objects}getDepth(){return this.depth}getCacheKey(){const e=["objectGroup"];return Array.from(this.getObjects()).forEach((t=>{e.push(t.getCacheKey())})),e.join("/")}}class wx extends pb{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),this.objects={},Array.from(e).forEach((e=>{const t=JSON.stringify(e);null==this.objects[t]&&(this.objects[t]=e)}))}find(e){const t=JSON.stringify(e);return this.objects[t]}}class kx{constructor(e){this.reset(e)}add(e){const t=Ax(e);this.elements[t]=e}remove(e){const t=Ax(e),n=this.elements[t];if(n)return delete this.elements[t],n}reset(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.elements={},Array.from(e).forEach((e=>{this.add(e)})),e}}const Ax=e=>e.dataset.trixStoreKey;class Sx extends pb{isPerforming(){return!0===this.performing}hasPerformed(){return!0===this.performed}hasSucceeded(){return this.performed&&this.succeeded}hasFailed(){return this.performed&&!this.succeeded}getPromise(){return this.promise||(this.promise=new Promise(((e,t)=>(this.performing=!0,this.perform(((n,i)=>{this.succeeded=n,this.performing=!1,this.performed=!0,this.succeeded?e(i):t(i)})))))),this.promise}perform(e){return e(!1)}release(){var e,t;null===(e=this.promise)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null}}Sx.proxyMethod("getPromise().then"),Sx.proxyMethod("getPromise().catch");class Cx extends pb{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),this.object=e,this.options=t,this.childViews=[],this.rootView=this}getNodes(){return this.nodes||(this.nodes=this.createNodes()),this.nodes.map((e=>e.cloneNode(!0)))}invalidate(){var e;return this.nodes=null,this.childViews=[],null===(e=this.parentView)||void 0===e?void 0:e.invalidate()}invalidateViewForObject(e){var t;return null===(t=this.findViewForObject(e))||void 0===t?void 0:t.invalidate()}findOrCreateCachedChildView(e,t,n){let i=this.getCachedViewForObject(t);return i?this.recordChildView(i):(i=this.createChildView(...arguments),this.cacheViewForObject(i,t)),i}createChildView(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof yx&&(n.viewClass=e,e=_x);const i=new e(t,n);return this.recordChildView(i)}recordChildView(e){return e.parentView=this,e.rootView=this.rootView,this.childViews.push(e),e}getAllChildViews(){let e=[];return this.childViews.forEach((t=>{e.push(t),e=e.concat(t.getAllChildViews())})),e}findElement(){return this.findElementForObject(this.object)}findElementForObject(e){const t=null==e?void 0:e.id;if(t)return this.rootView.element.querySelector("[data-trix-id='".concat(t,"']"))}findViewForObject(e){for(const t of this.getAllChildViews())if(t.object===e)return t}getViewCache(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?(this.viewCache||(this.viewCache={}),this.viewCache):void 0}isViewCachingEnabled(){return!1!==this.shouldCacheViews}enableViewCaching(){this.shouldCacheViews=!0}disableViewCaching(){this.shouldCacheViews=!1}getCachedViewForObject(e){var t;return null===(t=this.getViewCache())||void 0===t?void 0:t[e.getCacheKey()]}cacheViewForObject(e,t){const n=this.getViewCache();n&&(n[t.getCacheKey()]=e)}garbageCollectCachedViews(){const e=this.getViewCache();if(e){const t=this.getAllChildViews().concat(this).map((e=>e.object.getCacheKey()));for(const n in e)t.includes(n)||delete e[n]}}}class _x extends Cx{constructor(){super(...arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}getChildViews(){return this.childViews.length||Array.from(this.objectGroup.getObjects()).forEach((e=>{this.findOrCreateCachedChildView(this.viewClass,e,this.options)})),this.childViews}createNodes(){const e=this.createContainerElement();return this.getChildViews().forEach((t=>{Array.from(t.getNodes()).forEach((t=>{e.appendChild(t)}))})),[e]}createContainerElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.objectGroup.getDepth();return this.getChildViews()[0].createContainerElement(e)}}const{css:Ex}=db;class Lx extends Cx{constructor(){super(...arguments),this.attachment=this.object,this.attachment.uploadProgressDelegate=this,this.attachmentPiece=this.options.piece}createContentNodes(){return[]}createNodes(){let e;const t=e=Zv({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),n=this.getHref();return n&&(e=Zv({tagName:"a",editable:!1,attributes:{href:n,tabindex:-1}}),t.appendChild(e)),this.attachment.hasContent()?e.innerHTML=this.attachment.getContent():this.createContentNodes().forEach((t=>{e.appendChild(t)})),e.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=Zv({tagName:"progress",attributes:{class:Ex.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),t.appendChild(this.progressElement)),[Tx("left"),t,Tx("right")]}createCaptionElement(){const e=Zv({tagName:"figcaption",className:Ex.attachmentCaption}),t=this.attachmentPiece.getCaption();if(t)e.classList.add("".concat(Ex.attachmentCaption,"--edited")),e.textContent=t;else{let t,n;const i=this.getCaptionConfig();if(i.name&&(t=this.attachment.getFilename()),i.size&&(n=this.attachment.getFormattedFilesize()),t){const n=Zv({tagName:"span",className:Ex.attachmentName,textContent:t});e.appendChild(n)}if(n){t&&e.appendChild(document.createTextNode(" "));const i=Zv({tagName:"span",className:Ex.attachmentSize,textContent:n});e.appendChild(i)}}return e}getClassName(){const e=[Ex.attachment,"".concat(Ex.attachment,"--").concat(this.attachment.getType())],t=this.attachment.getExtension();return t&&e.push("".concat(Ex.attachment,"--").concat(t)),e.join(" ")}getData(){const e={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},{attributes:t}=this.attachmentPiece;return t.isEmpty()||(e.trixAttributes=JSON.stringify(t)),this.attachment.isPending()&&(e.trixSerialize=!1),e}getHref(){if(!Dx(this.attachment.getContent(),"a"))return this.attachment.getHref()}getCaptionConfig(){var e;const t=this.attachment.getType(),n=qb(null===(e=_v[t])||void 0===e?void 0:e.caption);return"file"===t&&(n.name=!0),n}findProgressElement(){var e;return null===(e=this.findElement())||void 0===e?void 0:e.querySelector("progress")}attachmentDidChangeUploadProgress(){const e=this.attachment.getUploadProgress(),t=this.findProgressElement();t&&(t.value=e)}}const Tx=e=>Zv({tagName:"span",textContent:Iv,data:{trixCursorTarget:e,trixSerialize:!1}}),Dx=function(e,t){const n=Zv("div");return n.innerHTML=e||"",n.querySelector(t)};class Px extends Lx{constructor(){super(...arguments),this.attachment.previewDelegate=this}createContentNodes(){return this.image=Zv({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]}createCaptionElement(){const e=super.createCaptionElement(...arguments);return e.textContent||e.setAttribute("data-trix-placeholder",Mv.captionPlaceholder),e}refresh(e){var t;if(e||(e=null===(t=this.findElement())||void 0===t?void 0:t.querySelector("img")),e)return this.updateAttributesForImage(e)}updateAttributesForImage(e){const t=this.attachment.getURL(),n=this.attachment.getPreviewURL();if(e.src=n||t,n===t)e.removeAttribute("data-trix-serialized-attributes");else{const n=JSON.stringify({src:t});e.setAttribute("data-trix-serialized-attributes",n)}const i=this.attachment.getWidth(),r=this.attachment.getHeight();null!=i&&(e.width=i),null!=r&&(e.height=r);const s=["imageElement",this.attachment.id,e.src,e.width,e.height].join("/");e.dataset.trixStoreKey=s}attachmentDidChangeAttributes(){return this.refresh(this.image),this.refresh()}}class Mx extends Cx{constructor(){super(...arguments),this.piece=this.object,this.attributes=this.piece.getAttributes(),this.textConfig=this.options.textConfig,this.context=this.options.context,this.piece.attachment?this.attachment=this.piece.attachment:this.string=this.piece.toString()}createNodes(){let e=this.attachment?this.createAttachmentNodes():this.createStringNodes();const t=this.createElement();if(t){const n=function(e){for(;null!==(t=e)&&void 0!==t&&t.firstElementChild;){var t;e=e.firstElementChild}return e}(t);Array.from(e).forEach((e=>{n.appendChild(e)})),e=[t]}return e}createAttachmentNodes(){const e=this.attachment.isPreviewable()?Px:Lx;return this.createChildView(e,this.piece.attachment,{piece:this.piece}).getNodes()}createStringNodes(){var e;if(null!==(e=this.textConfig)&&void 0!==e&&e.plaintext)return[document.createTextNode(this.string)];{const e=[],t=this.string.split("\n");for(let n=0;n<t.length;n++){const i=t[n];if(n>0){const t=Zv("br");e.push(t)}if(i.length){const t=document.createTextNode(this.preserveSpaces(i));e.push(t)}}return e}}createElement(){let e,t,n;const i={};for(t in this.attributes){n=this.attributes[t];const s=zb(t);if(s){if(s.tagName){var r;const t=Zv(s.tagName);r?(r.appendChild(t),r=t):e=r=t}if(s.styleProperty&&(i[s.styleProperty]=n),s.style)for(t in s.style)n=s.style[t],i[t]=n}}if(Object.keys(i).length)for(t in e||(e=Zv("span")),i)n=i[t],e.style[t]=n;return e}createContainerElement(){for(const e in this.attributes){const t=this.attributes[e],n=zb(e);if(n&&n.groupTagName){const i={};return i[e]=t,Zv(n.groupTagName,i)}}}preserveSpaces(e){return this.context.isLast&&(e=e.replace(/\ $/,Nv)),e=e.replace(/(\S)\ {3}(\S)/g,"$1 ".concat(Nv," $2")).replace(/\ {2}/g,"".concat(Nv," ")).replace(/\ {2}/g," ".concat(Nv)),(this.context.isFirst||this.context.followsWhitespace)&&(e=e.replace(/^\ /,Nv)),e}}class Ox extends Cx{constructor(){super(...arguments),this.text=this.object,this.textConfig=this.options.textConfig}createNodes(){const e=[],t=yx.groupObjects(this.getPieces()),n=t.length-1;for(let r=0;r<t.length;r++){const s=t[r],a={};0===r&&(a.isFirst=!0),r===n&&(a.isLast=!0),Rx(i)&&(a.followsWhitespace=!0);const o=this.findOrCreateCachedChildView(Mx,s,{textConfig:this.textConfig,context:a});e.push(...Array.from(o.getNodes()||[]));var i=s}return e}getPieces(){return Array.from(this.text.getPieces()).filter((e=>!e.hasAttribute("blockBreak")))}}const Rx=e=>/\s$/.test(null==e?void 0:e.toString()),{css:Ix}=db;class Nx extends Cx{constructor(){super(...arguments),this.block=this.object,this.attributes=this.block.getAttributes()}createNodes(){const e=[document.createComment("block")];if(this.block.isEmpty())e.push(Zv("br"));else{var t;const n=null===(t=Fb(this.block.getLastAttribute()))||void 0===t?void 0:t.text,i=this.findOrCreateCachedChildView(Ox,this.block.text,{textConfig:n});e.push(...Array.from(i.getNodes()||[])),this.shouldAddExtraNewlineElement()&&e.push(Zv("br"))}if(this.attributes.length)return e;{let t;const{tagName:n}=Ev.default;this.block.isRTL()&&(t={dir:"rtl"});const i=Zv({tagName:n,attributes:t});return e.forEach((e=>i.appendChild(e))),[i]}}createContainerElement(e){let t,n;const i=this.attributes[e],{tagName:r}=Fb(i);if(0===e&&this.block.isRTL()&&(t={dir:"rtl"}),"attachmentGallery"===i){const e=this.block.getBlockBreakPosition();n="".concat(Ix.attachmentGallery," ").concat(Ix.attachmentGallery,"--").concat(e)}return Zv({tagName:r,className:n,attributes:t})}shouldAddExtraNewlineElement(){return/\n\n$/.test(this.block.toString())}}class Fx extends Cx{static render(e){const t=Zv("div"),n=new this(e,{element:t});return n.render(),n.sync(),t}constructor(){super(...arguments),this.element=this.options.element,this.elementStore=new kx,this.setDocument(this.object)}setDocument(e){e.isEqualTo(this.document)||(this.document=this.object=e)}render(){if(this.childViews=[],this.shadowElement=Zv("div"),!this.document.isEmpty()){const e=yx.groupObjects(this.document.getBlocks(),{asTree:!0});Array.from(e).forEach((e=>{const t=this.findOrCreateCachedChildView(Nx,e);Array.from(t.getNodes()).map((e=>this.shadowElement.appendChild(e)))}))}}isSynced(){return zx(this.shadowElement,this.element)}sync(){const e=this.createDocumentFragmentForSync();for(;this.element.lastChild;)this.element.removeChild(this.element.lastChild);return this.element.appendChild(e),this.didSync()}didSync(){return this.elementStore.reset(Bx(this.element)),Gb((()=>this.garbageCollectCachedViews()))}createDocumentFragmentForSync(){const e=document.createDocumentFragment();return Array.from(this.shadowElement.childNodes).forEach((t=>{e.appendChild(t.cloneNode(!0))})),Array.from(Bx(e)).forEach((e=>{const t=this.elementStore.remove(e);t&&e.parentNode.replaceChild(t,e)})),e}}const Bx=e=>e.querySelectorAll("[data-trix-store-key]"),zx=(e,t)=>Yx(e.innerHTML)===Yx(t.innerHTML),Yx=e=>e.replace(/&nbsp;/g," ");function jx(e){var t,n;function i(t,n){try{var s=e[t](n),a=s.value,o=a instanceof Hx;Promise.resolve(o?a.v:a).then((function(n){if(o){var l="return"===t?"return":"next";if(!a.k||n.done)return i(l,n);n=e[l](n).value}r(s.done?"return":"normal",n)}),(function(e){i("throw",e)}))}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(s,a){var o={key:e,arg:r,resolve:s,reject:a,next:null};n?n=n.next=o:(t=n=o,i(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}function Hx(e,t){this.v=e,this.k=t}function Wx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jx.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},jx.prototype.next=function(e){return this._invoke("next",e)},jx.prototype.throw=function(e){return this._invoke("throw",e)},jx.prototype.return=function(e){return this._invoke("return",e)};class Xx extends Eb{static registerType(e,t){t.type=e,this.types[e]=t}static fromJSON(e){const t=this.types[e.type];if(t)return t.fromJSON(e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),this.attributes=fx.box(t)}copyWithAttributes(e){return new this.constructor(this.getValue(),e)}copyWithAdditionalAttributes(e){return this.copyWithAttributes(this.attributes.merge(e))}copyWithoutAttribute(e){return this.copyWithAttributes(this.attributes.remove(e))}copy(){return this.copyWithAttributes(this.attributes)}getAttribute(e){return this.attributes.get(e)}getAttributesHash(){return this.attributes}getAttributes(){return this.attributes.toObject()}hasAttribute(e){return this.attributes.has(e)}hasSameStringValueAsPiece(e){return e&&this.toString()===e.toString()}hasSameAttributesAsPiece(e){return e&&(this.attributes===e.attributes||this.attributes.isEqualTo(e.attributes))}isBlockBreak(){return!1}isEqualTo(e){return super.isEqualTo(...arguments)||this.hasSameConstructorAs(e)&&this.hasSameStringValueAsPiece(e)&&this.hasSameAttributesAsPiece(e)}isEmpty(){return 0===this.length}isSerializable(){return!0}toJSON(){return{type:this.constructor.type,attributes:this.getAttributes()}}contentsForInspection(){return{type:this.constructor.type,attributes:this.attributes.inspect()}}canBeGrouped(){return this.hasAttribute("href")}canBeGroupedWith(e){return this.getAttribute("href")===e.getAttribute("href")}getLength(){return this.length}canBeConsolidatedWith(e){return!1}}Wx(Xx,"types",{});class Vx extends Sx{constructor(e){super(...arguments),this.url=e}perform(e){const t=new Image;t.onload=()=>(t.width=this.width=t.naturalWidth,t.height=this.height=t.naturalHeight,e(!0,t)),t.onerror=()=>e(!1),t.src=this.url}}class Ux extends Eb{static attachmentForFile(e){const t=new this(this.attributesForFile(e));return t.setFile(e),t}static attributesForFile(e){return new fx({filename:e.name,filesize:e.size,contentType:e.type})}static fromJSON(e){return new this(e)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(e),this.releaseFile=this.releaseFile.bind(this),this.attributes=fx.box(e),this.didChangeAttributes()}getAttribute(e){return this.attributes.get(e)}hasAttribute(e){return this.attributes.has(e)}getAttributes(){return this.attributes.toObject()}setAttributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.attributes.merge(e);var n,i,r,s;if(!this.attributes.isEqualTo(t))return this.attributes=t,this.didChangeAttributes(),null===(n=this.previewDelegate)||void 0===n||null===(i=n.attachmentDidChangeAttributes)||void 0===i||i.call(n,this),null===(r=this.delegate)||void 0===r||null===(s=r.attachmentDidChangeAttributes)||void 0===s?void 0:s.call(r,this)}didChangeAttributes(){if(this.isPreviewable())return this.preloadURL()}isPending(){return null!=this.file&&!(this.getURL()||this.getHref())}isPreviewable(){return this.attributes.has("previewable")?this.attributes.get("previewable"):Ux.previewablePattern.test(this.getContentType())}getType(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"}getURL(){return this.attributes.get("url")}getHref(){return this.attributes.get("href")}getFilename(){return this.attributes.get("filename")||""}getFilesize(){return this.attributes.get("filesize")}getFormattedFilesize(){const e=this.attributes.get("filesize");return"number"==typeof e?Rv.formatter(e):""}getExtension(){var e;return null===(e=this.getFilename().match(/\.(\w+)$/))||void 0===e?void 0:e[1].toLowerCase()}getContentType(){return this.attributes.get("contentType")}hasContent(){return this.attributes.has("content")}getContent(){return this.attributes.get("content")}getWidth(){return this.attributes.get("width")}getHeight(){return this.attributes.get("height")}getFile(){return this.file}setFile(e){if(this.file=e,this.isPreviewable())return this.preloadFile()}releaseFile(){this.releasePreloadedFile(),this.file=null}getUploadProgress(){return null!=this.uploadProgress?this.uploadProgress:0}setUploadProgress(e){var t,n;if(this.uploadProgress!==e)return this.uploadProgress=e,null===(t=this.uploadProgressDelegate)||void 0===t||null===(n=t.attachmentDidChangeUploadProgress)||void 0===n?void 0:n.call(t,this)}toJSON(){return this.getAttributes()}getCacheKey(){return[super.getCacheKey(...arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")}getPreviewURL(){return this.previewURL||this.preloadingURL}setPreviewURL(e){var t,n,i,r;if(e!==this.getPreviewURL())return this.previewURL=e,null===(t=this.previewDelegate)||void 0===t||null===(n=t.attachmentDidChangeAttributes)||void 0===n||n.call(t,this),null===(i=this.delegate)||void 0===i||null===(r=i.attachmentDidChangePreviewURL)||void 0===r?void 0:r.call(i,this)}preloadURL(){return this.preload(this.getURL(),this.releaseFile)}preloadFile(){if(this.file)return this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)}releasePreloadedFile(){this.fileObjectURL&&(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null)}preload(e,t){if(e&&e!==this.getPreviewURL())return this.preloadingURL=e,new Vx(e).then((n=>{let{width:i,height:r}=n;return this.getWidth()&&this.getHeight()||this.setAttributes({width:i,height:r}),this.preloadingURL=null,this.setPreviewURL(e),null==t?void 0:t()})).catch((()=>(this.preloadingURL=null,null==t?void 0:t())))}}Wx(Ux,"previewablePattern",/^image(\/(gif|png|webp|jpe?g)|$)/);class $x extends Xx{static fromJSON(e){return new this(Ux.fromJSON(e.attachment),e.attributes)}constructor(e){super(...arguments),this.attachment=e,this.length=1,this.ensureAttachmentExclusivelyHasAttribute("href"),this.attachment.hasContent()||this.removeProhibitedAttributes()}ensureAttachmentExclusivelyHasAttribute(e){this.hasAttribute(e)&&(this.attachment.hasAttribute(e)||this.attachment.setAttributes(this.attributes.slice([e])),this.attributes=this.attributes.remove(e))}removeProhibitedAttributes(){const e=this.attributes.slice($x.permittedAttributes);e.isEqualTo(this.attributes)||(this.attributes=e)}getValue(){return this.attachment}isSerializable(){return!this.attachment.isPending()}getCaption(){return this.attributes.get("caption")||""}isEqualTo(e){var t;return super.isEqualTo(e)&&this.attachment.id===(null==e||null===(t=e.attachment)||void 0===t?void 0:t.id)}toString(){return""}toJSON(){const e=super.toJSON(...arguments);return e.attachment=this.attachment,e}getCacheKey(){return[super.getCacheKey(...arguments),this.attachment.getCacheKey()].join("/")}toConsole(){return JSON.stringify(this.toString())}}Wx($x,"permittedAttributes",["caption","presentation"]),Xx.registerType("attachment",$x);class Gx extends Xx{static fromJSON(e){return new this(e.string,e.attributes)}constructor(e){super(...arguments),this.string=(e=>e.replace(/\r\n?/g,"\n"))(e),this.length=this.string.length}getValue(){return this.string}toString(){return this.string.toString()}isBlockBreak(){return"\n"===this.toString()&&!0===this.getAttribute("blockBreak")}toJSON(){const e=super.toJSON(...arguments);return e.string=this.string,e}canBeConsolidatedWith(e){return e&&this.hasSameConstructorAs(e)&&this.hasSameAttributesAsPiece(e)}consolidateWith(e){return new this.constructor(this.toString()+e.toString(),this.attributes)}splitAtOffset(e){let t,n;return 0===e?(t=null,n=this):e===this.length?(t=this,n=null):(t=new this.constructor(this.string.slice(0,e),this.attributes),n=new this.constructor(this.string.slice(e),this.attributes)),[t,n]}toConsole(){let{string:e}=this;return e.length>15&&(e=e.slice(0,14)+"…"),JSON.stringify(e.toString())}}Xx.registerType("string",Gx);class qx extends Eb{static box(e){return e instanceof this?e:new this(e)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),this.objects=e.slice(0),this.length=this.objects.length}indexOf(e){return this.objects.indexOf(e)}splice(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this.constructor(Tb(this.objects,...t))}eachObject(e){return this.objects.map(((t,n)=>e(t,n)))}insertObjectAtIndex(e,t){return this.splice(t,0,e)}insertSplittableListAtIndex(e,t){return this.splice(t,0,...e.objects)}insertSplittableListAtPosition(e,t){const[n,i]=this.splitObjectAtPosition(t);return new this.constructor(n).insertSplittableListAtIndex(e,i)}editObjectAtIndex(e,t){return this.replaceObjectAtIndex(t(this.objects[e]),e)}replaceObjectAtIndex(e,t){return this.splice(t,1,e)}removeObjectAtIndex(e){return this.splice(e,1)}getObjectAtIndex(e){return this.objects[e]}getSplittableListInRange(e){const[t,n,i]=this.splitObjectsAtRange(e);return new this.constructor(t.slice(n,i+1))}selectSplittableList(e){const t=this.objects.filter((t=>e(t)));return new this.constructor(t)}removeObjectsInRange(e){const[t,n,i]=this.splitObjectsAtRange(e);return new this.constructor(t).splice(n,i-n+1)}transformObjectsInRange(e,t){const[n,i,r]=this.splitObjectsAtRange(e),s=n.map(((e,n)=>i<=n&&n<=r?t(e):e));return new this.constructor(s)}splitObjectsAtRange(e){let t,[n,i,r]=this.splitObjectAtPosition(Kx(e));return[n,t]=new this.constructor(n).splitObjectAtPosition(Jx(e)+r),[n,i,t-1]}getObjectAtPosition(e){const{index:t}=this.findIndexAndOffsetAtPosition(e);return this.objects[t]}splitObjectAtPosition(e){let t,n;const{index:i,offset:r}=this.findIndexAndOffsetAtPosition(e),s=this.objects.slice(0);if(null!=i)if(0===r)t=i,n=0;else{const e=this.getObjectAtIndex(i),[a,o]=e.splitAtOffset(r);s.splice(i,1,a,o),t=i+1,n=a.getLength()-r}else t=s.length,n=0;return[s,t,n]}consolidate(){const e=[];let t=this.objects[0];return this.objects.slice(1).forEach((n=>{var i,r;null!==(i=(r=t).canBeConsolidatedWith)&&void 0!==i&&i.call(r,n)?t=t.consolidateWith(n):(e.push(t),t=n)})),t&&e.push(t),new this.constructor(e)}consolidateFromIndexToIndex(e,t){const n=this.objects.slice(0).slice(e,t+1),i=new this.constructor(n).consolidate().toArray();return this.splice(e,n.length,...i)}findIndexAndOffsetAtPosition(e){let t,n=0;for(t=0;t<this.objects.length;t++){const i=n+this.objects[t].getLength();if(n<=e&&e<i)return{index:t,offset:e-n};n=i}return{index:null,offset:null}}findPositionAtIndexAndOffset(e,t){let n=0;for(let i=0;i<this.objects.length;i++){const r=this.objects[i];if(i<e)n+=r.getLength();else if(i===e){n+=t;break}}return n}getEndPosition(){return null==this.endPosition&&(this.endPosition=0,this.objects.forEach((e=>this.endPosition+=e.getLength()))),this.endPosition}toString(){return this.objects.join("")}toArray(){return this.objects.slice(0)}toJSON(){return this.toArray()}isEqualTo(e){return super.isEqualTo(...arguments)||Zx(this.objects,null==e?void 0:e.objects)}contentsForInspection(){return{objects:"[".concat(this.objects.map((e=>e.inspect())).join(", "),"]")}}}const Zx=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;let n=!0;for(let i=0;i<e.length;i++){const r=e[i];n&&!r.isEqualTo(t[i])&&(n=!1)}return n},Kx=e=>e[0],Jx=e=>e[1];class Qx extends Eb{static textForAttachmentWithAttributes(e,t){return new this([new $x(e,t)])}static textForStringWithAttributes(e,t){return new this([new Gx(e,t)])}static fromJSON(e){return new this(Array.from(e).map((e=>Xx.fromJSON(e))))}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments);const t=e.filter((e=>!e.isEmpty()));this.pieceList=new qx(t)}copy(){return this.copyWithPieceList(this.pieceList)}copyWithPieceList(e){return new this.constructor(e.consolidate().toArray())}copyUsingObjectMap(e){const t=this.getPieces().map((t=>e.find(t)||t));return new this.constructor(t)}appendText(e){return this.insertTextAtPosition(e,this.getLength())}insertTextAtPosition(e,t){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(e.pieceList,t))}removeTextAtRange(e){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(e))}replaceTextAtRange(e,t){return this.removeTextAtRange(t).insertTextAtPosition(e,t[0])}moveTextFromRangeToPosition(e,t){if(e[0]<=t&&t<=e[1])return;const n=this.getTextAtRange(e),i=n.getLength();return e[0]<t&&(t-=i),this.removeTextAtRange(e).insertTextAtPosition(n,t)}addAttributeAtRange(e,t,n){const i={};return i[e]=t,this.addAttributesAtRange(i,n)}addAttributesAtRange(e,t){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(t,(t=>t.copyWithAdditionalAttributes(e))))}removeAttributeAtRange(e,t){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(t,(t=>t.copyWithoutAttribute(e))))}setAttributesAtRange(e,t){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(t,(t=>t.copyWithAttributes(e))))}getAttributesAtPosition(e){var t;return(null===(t=this.pieceList.getObjectAtPosition(e))||void 0===t?void 0:t.getAttributes())||{}}getCommonAttributes(){const e=Array.from(this.pieceList.toArray()).map((e=>e.getAttributes()));return fx.fromCommonAttributesOfObjects(e).toObject()}getCommonAttributesAtRange(e){return this.getTextAtRange(e).getCommonAttributes()||{}}getExpandedRangeForAttributeAtOffset(e,t){let n,i=n=t;const r=this.getLength();for(;i>0&&this.getCommonAttributesAtRange([i-1,n])[e];)i--;for(;n<r&&this.getCommonAttributesAtRange([t,n+1])[e];)n++;return[i,n]}getTextAtRange(e){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(e))}getStringAtRange(e){return this.pieceList.getSplittableListInRange(e).toString()}getStringAtPosition(e){return this.getStringAtRange([e,e+1])}startsWithString(e){return this.getStringAtRange([0,e.length])===e}endsWithString(e){const t=this.getLength();return this.getStringAtRange([t-e.length,t])===e}getAttachmentPieces(){return this.pieceList.toArray().filter((e=>!!e.attachment))}getAttachments(){return this.getAttachmentPieces().map((e=>e.attachment))}getAttachmentAndPositionById(e){let t=0;for(const i of this.pieceList.toArray()){var n;if((null===(n=i.attachment)||void 0===n?void 0:n.id)===e)return{attachment:i.attachment,position:t};t+=i.length}return{attachment:null,position:null}}getAttachmentById(e){const{attachment:t}=this.getAttachmentAndPositionById(e);return t}getRangeOfAttachment(e){const t=this.getAttachmentAndPositionById(e.id),n=t.position;if(e=t.attachment)return[n,n+1]}updateAttributesForAttachment(e,t){const n=this.getRangeOfAttachment(t);return n?this.addAttributesAtRange(e,n):this}getLength(){return this.pieceList.getEndPosition()}isEmpty(){return 0===this.getLength()}isEqualTo(e){var t;return super.isEqualTo(e)||(null==e||null===(t=e.pieceList)||void 0===t?void 0:t.isEqualTo(this.pieceList))}isBlockBreak(){return 1===this.getLength()&&this.pieceList.getObjectAtIndex(0).isBlockBreak()}eachPiece(e){return this.pieceList.eachObject(e)}getPieces(){return this.pieceList.toArray()}getPieceAtPosition(e){return this.pieceList.getObjectAtPosition(e)}contentsForInspection(){return{pieceList:this.pieceList.inspect()}}toSerializableText(){const e=this.pieceList.selectSplittableList((e=>e.isSerializable()));return this.copyWithPieceList(e)}toString(){return this.pieceList.toString()}toJSON(){return this.pieceList.toJSON()}toConsole(){return JSON.stringify(this.pieceList.toArray().map((e=>JSON.parse(e.toConsole()))))}getDirection(){return Pb(this.toString())}isRTL(){return"rtl"===this.getDirection()}}class ey extends Eb{static fromJSON(e){return new this(Qx.fromJSON(e.text),e.attributes)}constructor(e,t){super(...arguments),this.text=ty(e||new Qx),this.attributes=t||[]}isEmpty(){return this.text.isBlockBreak()}isEqualTo(e){return!!super.isEqualTo(e)||this.text.isEqualTo(null==e?void 0:e.text)&&Lb(this.attributes,null==e?void 0:e.attributes)}copyWithText(e){return new ey(e,this.attributes)}copyWithoutText(){return this.copyWithText(null)}copyWithAttributes(e){return new ey(this.text,e)}copyWithoutAttributes(){return this.copyWithAttributes(null)}copyUsingObjectMap(e){const t=e.find(this.text);return t?this.copyWithText(t):this.copyWithText(this.text.copyUsingObjectMap(e))}addAttribute(e){const t=this.attributes.concat(oy(e));return this.copyWithAttributes(t)}removeAttribute(e){const{listAttribute:t}=Fb(e),n=cy(cy(this.attributes,e),t);return this.copyWithAttributes(n)}removeLastAttribute(){return this.removeAttribute(this.getLastAttribute())}getLastAttribute(){return ly(this.attributes)}getAttributes(){return this.attributes.slice(0)}getAttributeLevel(){return this.attributes.length}getAttributeAtLevel(e){return this.attributes[e-1]}hasAttribute(e){return this.attributes.includes(e)}hasAttributes(){return this.getAttributeLevel()>0}getLastNestableAttribute(){return ly(this.getNestableAttributes())}getNestableAttributes(){return this.attributes.filter((e=>Fb(e).nestable))}getNestingLevel(){return this.getNestableAttributes().length}decreaseNestingLevel(){const e=this.getLastNestableAttribute();return e?this.removeAttribute(e):this}increaseNestingLevel(){const e=this.getLastNestableAttribute();if(e){const t=this.attributes.lastIndexOf(e),n=Tb(this.attributes,t+1,0,...oy(e));return this.copyWithAttributes(n)}return this}getListItemAttributes(){return this.attributes.filter((e=>Fb(e).listAttribute))}isListItem(){var e;return null===(e=Fb(this.getLastAttribute()))||void 0===e?void 0:e.listAttribute}isTerminalBlock(){var e;return null===(e=Fb(this.getLastAttribute()))||void 0===e?void 0:e.terminal}breaksOnReturn(){var e;return null===(e=Fb(this.getLastAttribute()))||void 0===e?void 0:e.breakOnReturn}findLineBreakInDirectionFromPosition(e,t){const n=this.toString();let i;switch(e){case"forward":i=n.indexOf("\n",t);break;case"backward":i=n.slice(0,t).lastIndexOf("\n")}if(-1!==i)return i}contentsForInspection(){return{text:this.text.inspect(),attributes:this.attributes}}toString(){return this.text.toString()}toJSON(){return{text:this.text,attributes:this.attributes}}getDirection(){return this.text.getDirection()}isRTL(){return this.text.isRTL()}getLength(){return this.text.getLength()}canBeConsolidatedWith(e){return!this.hasAttributes()&&!e.hasAttributes()&&this.getDirection()===e.getDirection()}consolidateWith(e){const t=Qx.textForStringWithAttributes("\n"),n=this.getTextWithoutBlockBreak().appendText(t);return this.copyWithText(n.appendText(e.text))}splitAtOffset(e){let t,n;return 0===e?(t=null,n=this):e===this.getLength()?(t=this,n=null):(t=this.copyWithText(this.text.getTextAtRange([0,e])),n=this.copyWithText(this.text.getTextAtRange([e,this.getLength()]))),[t,n]}getBlockBreakPosition(){return this.text.getLength()-1}getTextWithoutBlockBreak(){return sy(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()}canBeGrouped(e){return this.attributes[e]}canBeGroupedWith(e,t){const n=e.getAttributes(),i=n[t],r=this.attributes[t];return r===i&&!(!1===Fb(r).group&&!(()=>{if(!Ib){Ib=[];for(const e in Ev){const{listAttribute:t}=Ev[e];null!=t&&Ib.push(t)}}return Ib})().includes(n[t+1]))&&(this.getDirection()===e.getDirection()||e.isEmpty())}}const ty=function(e){return e=ny(e),ry(e)},ny=function(e){let t=!1;const n=e.getPieces();let i=n.slice(0,n.length-1);const r=n[n.length-1];return r?(i=i.map((e=>e.isBlockBreak()?(t=!0,ay(e)):e)),t?new Qx([...i,r]):e):e},iy=Qx.textForStringWithAttributes("\n",{blockBreak:!0}),ry=function(e){return sy(e)?e:e.appendText(iy)},sy=function(e){const t=e.getLength();return 0!==t&&e.getTextAtRange([t-1,t]).isBlockBreak()},ay=e=>e.copyWithoutAttribute("blockBreak"),oy=function(e){const{listAttribute:t}=Fb(e);return t?[t,e]:[e]},ly=e=>e.slice(-1)[0],cy=function(e,t){const n=e.lastIndexOf(t);return-1===n?e:Tb(e,n,1)};class uy extends Eb{static fromJSON(e){return new this(Array.from(e).map((e=>ey.fromJSON(e))))}static fromString(e,t){const n=Qx.textForStringWithAttributes(e,t);return new this([new ey(n)])}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),0===e.length&&(e=[new ey]),this.blockList=qx.box(e)}isEmpty(){const e=this.getBlockAtIndex(0);return 1===this.blockList.length&&e.isEmpty()&&!e.hasAttributes()}copy(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray();return new this.constructor(e)}copyUsingObjectsFromDocument(e){const t=new wx(e.getObjects());return this.copyUsingObjectMap(t)}copyUsingObjectMap(e){const t=this.getBlocks().map((t=>e.find(t)||t.copyUsingObjectMap(e)));return new this.constructor(t)}copyWithBaseBlockAttributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=this.getBlocks().map((t=>{const n=e.concat(t.getAttributes());return t.copyWithAttributes(n)}));return new this.constructor(t)}replaceBlock(e,t){const n=this.blockList.indexOf(e);return-1===n?this:new this.constructor(this.blockList.replaceObjectAtIndex(t,n))}insertDocumentAtRange(e,t){const{blockList:n}=e;t=Kb(t);let[i]=t;const{index:r,offset:s}=this.locationFromPosition(i);let a=this;const o=this.getBlockAtPosition(i);return Jb(t)&&o.isEmpty()&&!o.hasAttributes()?a=new this.constructor(a.blockList.removeObjectAtIndex(r)):o.getBlockBreakPosition()===s&&i++,a=a.removeTextAtRange(t),new this.constructor(a.blockList.insertSplittableListAtPosition(n,i))}mergeDocumentAtRange(e,t){let n,i;t=Kb(t);const[r]=t,s=this.locationFromPosition(r),a=this.getBlockAtIndex(s.index).getAttributes(),o=e.getBaseBlockAttributes(),l=a.slice(-o.length);if(Lb(o,l)){const t=a.slice(0,-o.length);n=e.copyWithBaseBlockAttributes(t)}else n=e.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(a);const c=n.getBlockCount(),u=n.getBlockAtIndex(0);if(Lb(a,u.getAttributes())){const e=u.getTextWithoutBlockBreak();if(i=this.insertTextAtRange(e,t),c>1){n=new this.constructor(n.getBlocks().slice(1));const t=r+e.getLength();i=i.insertDocumentAtRange(n,t)}}else i=this.insertDocumentAtRange(n,t);return i}insertTextAtRange(e,t){t=Kb(t);const[n]=t,{index:i,offset:r}=this.locationFromPosition(n),s=this.removeTextAtRange(t);return new this.constructor(s.blockList.editObjectAtIndex(i,(t=>t.copyWithText(t.text.insertTextAtPosition(e,r)))))}removeTextAtRange(e){let t;e=Kb(e);const[n,i]=e;if(Jb(e))return this;const[r,s]=Array.from(this.locationRangeFromRange(e)),a=r.index,o=r.offset,l=this.getBlockAtIndex(a),c=s.index,u=s.offset,h=this.getBlockAtIndex(c);if(i-n==1&&l.getBlockBreakPosition()===o&&h.getBlockBreakPosition()!==u&&"\n"===h.text.getStringAtPosition(u))t=this.blockList.editObjectAtIndex(c,(e=>e.copyWithText(e.text.removeTextAtRange([u,u+1]))));else{let e;const n=l.text.getTextAtRange([0,o]),i=h.text.getTextAtRange([u,h.getLength()]),r=n.appendText(i);e=a!==c&&0===o&&l.getAttributeLevel()>=h.getAttributeLevel()?h.copyWithText(r):l.copyWithText(r);const s=c+1-a;t=this.blockList.splice(a,s,e)}return new this.constructor(t)}moveTextFromRangeToPosition(e,t){let n;e=Kb(e);const[i,r]=e;if(i<=t&&t<=r)return this;let s=this.getDocumentAtRange(e),a=this.removeTextAtRange(e);const o=i<t;o&&(t-=s.getLength());const[l,...c]=s.getBlocks();return 0===c.length?(n=l.getTextWithoutBlockBreak(),o&&(t+=1)):n=l.text,a=a.insertTextAtRange(n,t),0===c.length?a:(s=new this.constructor(c),t+=n.getLength(),a.insertDocumentAtRange(s,t))}addAttributeAtRange(e,t,n){let{blockList:i}=this;return this.eachBlockAtRange(n,((n,r,s)=>i=i.editObjectAtIndex(s,(function(){return Fb(e)?n.addAttribute(e,t):r[0]===r[1]?n:n.copyWithText(n.text.addAttributeAtRange(e,t,r))})))),new this.constructor(i)}addAttribute(e,t){let{blockList:n}=this;return this.eachBlock(((i,r)=>n=n.editObjectAtIndex(r,(()=>i.addAttribute(e,t))))),new this.constructor(n)}removeAttributeAtRange(e,t){let{blockList:n}=this;return this.eachBlockAtRange(t,(function(t,i,r){Fb(e)?n=n.editObjectAtIndex(r,(()=>t.removeAttribute(e))):i[0]!==i[1]&&(n=n.editObjectAtIndex(r,(()=>t.copyWithText(t.text.removeAttributeAtRange(e,i)))))})),new this.constructor(n)}updateAttributesForAttachment(e,t){const n=this.getRangeOfAttachment(t),[i]=Array.from(n),{index:r}=this.locationFromPosition(i),s=this.getTextAtIndex(r);return new this.constructor(this.blockList.editObjectAtIndex(r,(n=>n.copyWithText(s.updateAttributesForAttachment(e,t)))))}removeAttributeForAttachment(e,t){const n=this.getRangeOfAttachment(t);return this.removeAttributeAtRange(e,n)}insertBlockBreakAtRange(e){let t;e=Kb(e);const[n]=e,{offset:i}=this.locationFromPosition(n),r=this.removeTextAtRange(e);return 0===i&&(t=[new ey]),new this.constructor(r.blockList.insertSplittableListAtPosition(new qx(t),n))}applyBlockAttributeAtRange(e,t,n){const i=this.expandRangeToLineBreaksAndSplitBlocks(n);let r=i.document;n=i.range;const s=Fb(e);if(s.listAttribute){r=r.removeLastListAttributeAtRange(n,{exceptAttributeName:e});const t=r.convertLineBreaksToBlockBreaksInRange(n);r=t.document,n=t.range}else r=s.exclusive?r.removeBlockAttributesAtRange(n):s.terminal?r.removeLastTerminalAttributeAtRange(n):r.consolidateBlocksAtRange(n);return r.addAttributeAtRange(e,t,n)}removeLastListAttributeAtRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{blockList:n}=this;return this.eachBlockAtRange(e,(function(e,i,r){const s=e.getLastAttribute();s&&Fb(s).listAttribute&&s!==t.exceptAttributeName&&(n=n.editObjectAtIndex(r,(()=>e.removeAttribute(s))))})),new this.constructor(n)}removeLastTerminalAttributeAtRange(e){let{blockList:t}=this;return this.eachBlockAtRange(e,(function(e,n,i){const r=e.getLastAttribute();r&&Fb(r).terminal&&(t=t.editObjectAtIndex(i,(()=>e.removeAttribute(r))))})),new this.constructor(t)}removeBlockAttributesAtRange(e){let{blockList:t}=this;return this.eachBlockAtRange(e,(function(e,n,i){e.hasAttributes()&&(t=t.editObjectAtIndex(i,(()=>e.copyWithoutAttributes())))})),new this.constructor(t)}expandRangeToLineBreaksAndSplitBlocks(e){let t;e=Kb(e);let[n,i]=e;const r=this.locationFromPosition(n),s=this.locationFromPosition(i);let a=this;const o=a.getBlockAtIndex(r.index);if(r.offset=o.findLineBreakInDirectionFromPosition("backward",r.offset),null!=r.offset&&(t=a.positionFromLocation(r),a=a.insertBlockBreakAtRange([t,t+1]),s.index+=1,s.offset-=a.getBlockAtIndex(r.index).getLength(),r.index+=1),r.offset=0,0===s.offset&&s.index>r.index)s.index-=1,s.offset=a.getBlockAtIndex(s.index).getBlockBreakPosition();else{const e=a.getBlockAtIndex(s.index);"\n"===e.text.getStringAtRange([s.offset-1,s.offset])?s.offset-=1:s.offset=e.findLineBreakInDirectionFromPosition("forward",s.offset),s.offset!==e.getBlockBreakPosition()&&(t=a.positionFromLocation(s),a=a.insertBlockBreakAtRange([t,t+1]))}return n=a.positionFromLocation(r),i=a.positionFromLocation(s),{document:a,range:e=Kb([n,i])}}convertLineBreaksToBlockBreaksInRange(e){e=Kb(e);let[t]=e;const n=this.getStringAtRange(e).slice(0,-1);let i=this;return n.replace(/.*?\n/g,(function(e){t+=e.length,i=i.insertBlockBreakAtRange([t-1,t])})),{document:i,range:e}}consolidateBlocksAtRange(e){e=Kb(e);const[t,n]=e,i=this.locationFromPosition(t).index,r=this.locationFromPosition(n).index;return new this.constructor(this.blockList.consolidateFromIndexToIndex(i,r))}getDocumentAtRange(e){e=Kb(e);const t=this.blockList.getSplittableListInRange(e).toArray();return new this.constructor(t)}getStringAtRange(e){let t;const n=e=Kb(e);return n[n.length-1]!==this.getLength()&&(t=-1),this.getDocumentAtRange(e).toString().slice(0,t)}getBlockAtIndex(e){return this.blockList.getObjectAtIndex(e)}getBlockAtPosition(e){const{index:t}=this.locationFromPosition(e);return this.getBlockAtIndex(t)}getTextAtIndex(e){var t;return null===(t=this.getBlockAtIndex(e))||void 0===t?void 0:t.text}getTextAtPosition(e){const{index:t}=this.locationFromPosition(e);return this.getTextAtIndex(t)}getPieceAtPosition(e){const{index:t,offset:n}=this.locationFromPosition(e);return this.getTextAtIndex(t).getPieceAtPosition(n)}getCharacterAtPosition(e){const{index:t,offset:n}=this.locationFromPosition(e);return this.getTextAtIndex(t).getStringAtRange([n,n+1])}getLength(){return this.blockList.getEndPosition()}getBlocks(){return this.blockList.toArray()}getBlockCount(){return this.blockList.length}getEditCount(){return this.editCount}eachBlock(e){return this.blockList.eachObject(e)}eachBlockAtRange(e,t){let n,i;e=Kb(e);const[r,s]=e,a=this.locationFromPosition(r),o=this.locationFromPosition(s);if(a.index===o.index)return n=this.getBlockAtIndex(a.index),i=[a.offset,o.offset],t(n,i,a.index);for(let e=a.index;e<=o.index;e++)if(n=this.getBlockAtIndex(e),n){switch(e){case a.index:i=[a.offset,n.text.getLength()];break;case o.index:i=[0,o.offset];break;default:i=[0,n.text.getLength()]}t(n,i,e)}}getCommonAttributesAtRange(e){e=Kb(e);const[t]=e;if(Jb(e))return this.getCommonAttributesAtPosition(t);{const t=[],n=[];return this.eachBlockAtRange(e,(function(e,i){if(i[0]!==i[1])return t.push(e.text.getCommonAttributesAtRange(i)),n.push(hy(e))})),fx.fromCommonAttributesOfObjects(t).merge(fx.fromCommonAttributesOfObjects(n)).toObject()}}getCommonAttributesAtPosition(e){let t,n;const{index:i,offset:r}=this.locationFromPosition(e),s=this.getBlockAtIndex(i);if(!s)return{};const a=hy(s),o=s.text.getAttributesAtPosition(r),l=s.text.getAttributesAtPosition(r-1),c=Object.keys(cb).filter((e=>cb[e].inheritable));for(t in l)n=l[t],(n===o[t]||c.includes(t))&&(a[t]=n);return a}getRangeOfCommonAttributeAtPosition(e,t){const{index:n,offset:i}=this.locationFromPosition(t),r=this.getTextAtIndex(n),[s,a]=Array.from(r.getExpandedRangeForAttributeAtOffset(e,i)),o=this.positionFromLocation({index:n,offset:s}),l=this.positionFromLocation({index:n,offset:a});return Kb([o,l])}getBaseBlockAttributes(){let e=this.getBlockAtIndex(0).getAttributes();for(let t=1;t<this.getBlockCount();t++){const n=this.getBlockAtIndex(t).getAttributes(),i=Math.min(e.length,n.length);e=(()=>{const t=[];for(let r=0;r<i&&n[r]===e[r];r++)t.push(n[r]);return t})()}return e}getAttachmentById(e){for(const t of this.getAttachments())if(t.id===e)return t}getAttachmentPieces(){let e=[];return this.blockList.eachObject((t=>{let{text:n}=t;return e=e.concat(n.getAttachmentPieces())})),e}getAttachments(){return this.getAttachmentPieces().map((e=>e.attachment))}getRangeOfAttachment(e){let t=0;const n=this.blockList.toArray();for(let i=0;i<n.length;i++){const{text:r}=n[i],s=r.getRangeOfAttachment(e);if(s)return Kb([t+s[0],t+s[1]]);t+=r.getLength()}}getLocationRangeOfAttachment(e){const t=this.getRangeOfAttachment(e);return this.locationRangeFromRange(t)}getAttachmentPieceForAttachment(e){for(const t of this.getAttachmentPieces())if(t.attachment===e)return t}findRangesForBlockAttribute(e){let t=0;const n=[];return this.getBlocks().forEach((i=>{const r=i.getLength();i.hasAttribute(e)&&n.push([t,t+r]),t+=r})),n}findRangesForTextAttribute(e){let{withValue:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=0,i=[];const r=[];return this.getPieces().forEach((s=>{const a=s.getLength();(function(n){return t?n.getAttribute(e)===t:n.hasAttribute(e)})(s)&&(i[1]===n?i[1]=n+a:r.push(i=[n,n+a])),n+=a})),r}locationFromPosition(e){const t=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,e));if(null!=t.index)return t;{const e=this.getBlocks();return{index:e.length-1,offset:e[e.length-1].getLength()}}}positionFromLocation(e){return this.blockList.findPositionAtIndexAndOffset(e.index,e.offset)}locationRangeFromPosition(e){return Kb(this.locationFromPosition(e))}locationRangeFromRange(e){if(!(e=Kb(e)))return;const[t,n]=Array.from(e),i=this.locationFromPosition(t),r=this.locationFromPosition(n);return Kb([i,r])}rangeFromLocationRange(e){let t;e=Kb(e);const n=this.positionFromLocation(e[0]);return Jb(e)||(t=this.positionFromLocation(e[1])),Kb([n,t])}isEqualTo(e){return this.blockList.isEqualTo(null==e?void 0:e.blockList)}getTexts(){return this.getBlocks().map((e=>e.text))}getPieces(){const e=[];return Array.from(this.getTexts()).forEach((t=>{e.push(...Array.from(t.getPieces()||[]))})),e}getObjects(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())}toSerializableDocument(){const e=[];return this.blockList.eachObject((t=>e.push(t.copyWithText(t.text.toSerializableText())))),new this.constructor(e)}toString(){return this.blockList.toString()}toJSON(){return this.blockList.toJSON()}toConsole(){return JSON.stringify(this.blockList.toArray().map((e=>JSON.parse(e.text.toConsole()))))}}const hy=function(e){const t={},n=e.getLastAttribute();return n&&(t[n]=!0),t},dy="style href src width height class".split(" "),py="javascript:".split(" "),fy="script iframe form".split(" ");class gy extends pb{static sanitize(e,t){const n=new this(e,t);return n.sanitize(),n}constructor(e){let{allowedAttributes:t,forbiddenProtocols:n,forbiddenElements:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),this.allowedAttributes=t||dy,this.forbiddenProtocols=n||py,this.forbiddenElements=i||fy,this.body=my(e)}sanitize(){return this.sanitizeElements(),this.normalizeListElementNesting()}getHTML(){return this.body.innerHTML}getBody(){return this.body}sanitizeElements(){const e=Gv(this.body),t=[];for(;e.nextNode();){const n=e.currentNode;switch(n.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(n)?t.push(n):this.sanitizeElement(n);break;case Node.COMMENT_NODE:t.push(n)}}return t.forEach((e=>$v(e))),this.body}sanitizeElement(e){return e.hasAttribute("href")&&this.forbiddenProtocols.includes(e.protocol)&&e.removeAttribute("href"),Array.from(e.attributes).forEach((t=>{let{name:n}=t;this.allowedAttributes.includes(n)||0===n.indexOf("data-trix")||e.removeAttribute(n)})),e}normalizeListElementNesting(){return Array.from(this.body.querySelectorAll("ul,ol")).forEach((e=>{const t=e.previousElementSibling;t&&"li"===qv(t)&&t.appendChild(e)})),this.body}elementIsRemovable(e){if((null==e?void 0:e.nodeType)===Node.ELEMENT_NODE)return this.elementIsForbidden(e)||this.elementIsntSerializable(e)}elementIsForbidden(e){return this.forbiddenElements.includes(qv(e))}elementIsntSerializable(e){return"false"===e.getAttribute("data-trix-serialize")&&!rb(e)}}const my=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.replace(/<\/html[^>]*>[^]*$/i,"</html>");const t=document.implementation.createHTMLDocument("");return t.documentElement.innerHTML=e,Array.from(t.head.querySelectorAll("style")).forEach((e=>{t.body.appendChild(e)})),t.body},vy=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{string:e=cx(e),attributes:t,type:"string"}},by=(e,t)=>{try{return JSON.parse(e.getAttribute("data-trix-".concat(t)))}catch(e){return{}}};class xy extends pb{static parse(e,t){const n=new this(e,t);return n.parse(),n}constructor(e){let{referenceElement:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),this.html=e,this.referenceElement=t,this.blocks=[],this.blockElements=[],this.processedElements=[]}getDocument(){return uy.fromJSON(this.blocks)}parse(){try{this.createHiddenContainer();const e=gy.sanitize(this.html).getHTML();this.containerElement.innerHTML=e;const t=Gv(this.containerElement,{usingFilter:Ay});for(;t.nextNode();)this.processNode(t.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}}createHiddenContainer(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=Zv({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))}removeHiddenContainer(){return $v(this.containerElement)}processNode(e){switch(e.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(e))return this.appendBlockForTextNode(e),this.processTextNode(e);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(e),this.processElement(e)}}appendBlockForTextNode(e){const t=e.parentNode;if(t===this.currentBlockElement&&this.isBlockElement(e.previousSibling))return this.appendStringWithAttributes("\n");if(t===this.containerElement||this.isBlockElement(t)){var n;const e=this.getBlockAttributes(t);Lb(e,null===(n=this.currentBlock)||void 0===n?void 0:n.attributes)||(this.currentBlock=this.appendBlockForAttributesWithElement(e,t),this.currentBlockElement=t)}}appendBlockForElement(e){const t=this.isBlockElement(e),n=Vv(this.currentBlockElement,e);if(t&&!this.isBlockElement(e.firstChild)){if(!this.isInsignificantTextNode(e.firstChild)||!this.isBlockElement(e.firstElementChild)){const t=this.getBlockAttributes(e);if(e.firstChild){if(n&&Lb(t,this.currentBlock.attributes))return this.appendStringWithAttributes("\n");this.currentBlock=this.appendBlockForAttributesWithElement(t,e),this.currentBlockElement=e}}}else if(this.currentBlockElement&&!n&&!t){const t=this.findParentBlockElement(e);if(t)return this.appendBlockForElement(t);this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null}}findParentBlockElement(e){let{parentElement:t}=e;for(;t&&t!==this.containerElement;){if(this.isBlockElement(t)&&this.blockElements.includes(t))return t;t=t.parentElement}return null}processTextNode(e){let t=e.data;var n;return yy(e.parentNode)||(t=hx(t),_y(null===(n=e.previousSibling)||void 0===n?void 0:n.textContent)&&(t=Sy(t))),this.appendStringWithAttributes(t,this.getTextAttributes(e.parentNode))}processElement(e){let t;if(rb(e)){if(t=by(e,"attachment"),Object.keys(t).length){const n=this.getTextAttributes(e);this.appendAttachmentWithAttributes(t,n),e.innerHTML=""}return this.processedElements.push(e)}switch(qv(e)){case"br":return this.isExtraBR(e)||this.isBlockElement(e.nextSibling)||this.appendStringWithAttributes("\n",this.getTextAttributes(e)),this.processedElements.push(e);case"img":t={url:e.getAttribute("src"),contentType:"image"};const n=(e=>{const t=e.getAttribute("width"),n=e.getAttribute("height"),i={};return t&&(i.width=parseInt(t,10)),n&&(i.height=parseInt(n,10)),i})(e);for(const e in n){const i=n[e];t[e]=i}return this.appendAttachmentWithAttributes(t,this.getTextAttributes(e)),this.processedElements.push(e);case"tr":if(this.needsTableSeparator(e))return this.appendStringWithAttributes(lb.tableRowSeparator);break;case"td":if(this.needsTableSeparator(e))return this.appendStringWithAttributes(lb.tableCellSeparator)}}appendBlockForAttributesWithElement(e,t){this.blockElements.push(t);const n=function(){return{text:[],attributes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}(e);return this.blocks.push(n),n}appendEmptyBlock(){return this.appendBlockForAttributesWithElement([],null)}appendStringWithAttributes(e,t){return this.appendPiece(vy(e,t))}appendAttachmentWithAttributes(e,t){return this.appendPiece(function(e){return{attachment:e,attributes:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},type:"attachment"}}(e,t))}appendPiece(e){return 0===this.blocks.length&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(e)}appendStringToTextAtIndex(e,t){const{text:n}=this.blocks[t],i=n[n.length-1];if("string"!==(null==i?void 0:i.type))return n.push(vy(e));i.string+=e}prependStringToTextAtIndex(e,t){const{text:n}=this.blocks[t],i=n[0];if("string"!==(null==i?void 0:i.type))return n.unshift(vy(e));i.string=e+i.string}getTextAttributes(e){let t;const n={};for(const i in cb){const r=cb[i];if(r.tagName&&Wv(e,{matchingSelector:r.tagName,untilNode:this.containerElement}))n[i]=!0;else if(r.parser){if(t=r.parser(e),t){let s=!1;for(const n of this.findBlockElementAncestors(e))if(r.parser(n)===t){s=!0;break}s||(n[i]=t)}}else r.styleProperty&&(t=e.style[r.styleProperty],t&&(n[i]=t))}if(rb(e)){const i=by(e,"attributes");for(const e in i)t=i[e],n[e]=t}return n}getBlockAttributes(e){const t=[];for(;e&&e!==this.containerElement;){for(const i in Ev){const r=Ev[i];var n;!1!==r.parse&&qv(e)===r.tagName&&(null!==(n=r.test)&&void 0!==n&&n.call(r,e)||!r.test)&&(t.push(i),r.listAttribute&&t.push(r.listAttribute))}e=e.parentNode}return t.reverse()}findBlockElementAncestors(e){const t=[];for(;e&&e!==this.containerElement;){const n=qv(e);Jv().includes(n)&&t.push(e),e=e.parentNode}return t}isBlockElement(e){if((null==e?void 0:e.nodeType)===Node.ELEMENT_NODE&&!rb(e)&&!Wv(e,{matchingSelector:"td",untilNode:this.containerElement}))return Jv().includes(qv(e))||"block"===window.getComputedStyle(e).display}isInsignificantTextNode(e){if((null==e?void 0:e.nodeType)!==Node.TEXT_NODE)return;if(!Cy(e.data))return;const{parentNode:t,previousSibling:n,nextSibling:i}=e;return wy(t.previousSibling)&&!this.isBlockElement(t.previousSibling)||yy(t)?void 0:!n||this.isBlockElement(n)||!i||this.isBlockElement(i)}isExtraBR(e){return"br"===qv(e)&&this.isBlockElement(e.parentNode)&&e.parentNode.lastChild===e}needsTableSeparator(e){if(lb.removeBlankTableCells){var t;const n=null===(t=e.previousSibling)||void 0===t?void 0:t.textContent;return n&&/\S/.test(n)}return e.previousSibling}translateBlockElementMarginsToNewlines(){const e=this.getMarginOfDefaultBlockElement();for(let t=0;t<this.blocks.length;t++){const n=this.getMarginOfBlockElementAtIndex(t);n&&(n.top>2*e.top&&this.prependStringToTextAtIndex("\n",t),n.bottom>2*e.bottom&&this.appendStringToTextAtIndex("\n",t))}}getMarginOfBlockElementAtIndex(e){const t=this.blockElements[e];if(t&&t.textContent&&!Jv().includes(qv(t))&&!this.processedElements.includes(t))return ky(t)}getMarginOfDefaultBlockElement(){const e=Zv(Ev.default.tagName);return this.containerElement.appendChild(e),ky(e)}}const yy=function(e){const{whiteSpace:t}=window.getComputedStyle(e);return["pre","pre-wrap","pre-line"].includes(t)},wy=e=>e&&!_y(e.textContent),ky=function(e){const t=window.getComputedStyle(e);if("block"===t.display)return{top:parseInt(t.marginTop),bottom:parseInt(t.marginBottom)}},Ay=function(e){return"style"===qv(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},Sy=e=>e.replace(new RegExp("^".concat(ux.source,"+")),""),Cy=e=>new RegExp("^".concat(ux.source,"*$")).test(e),_y=e=>/\s$/.test(e),Ey=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],Ly="data-trix-serialized-attributes",Ty="[".concat(Ly,"]"),Dy=new RegExp("\x3c!--block--\x3e","g"),Py={"application/json":function(e){let t;if(e instanceof uy)t=e;else{if(!(e instanceof HTMLElement))throw new Error("unserializable object");t=xy.parse(e.innerHTML).getDocument()}return t.toSerializableDocument().toJSONString()},"text/html":function(e){let t;if(e instanceof uy)t=Fx.render(e);else{if(!(e instanceof HTMLElement))throw new Error("unserializable object");t=e.cloneNode(!0)}return Array.from(t.querySelectorAll("[data-trix-serialize=false]")).forEach((e=>{$v(e)})),Ey.forEach((e=>{Array.from(t.querySelectorAll("[".concat(e,"]"))).forEach((t=>{t.removeAttribute(e)}))})),Array.from(t.querySelectorAll(Ty)).forEach((e=>{try{const t=JSON.parse(e.getAttribute(Ly));e.removeAttribute(Ly);for(const n in t){const i=t[n];e.setAttribute(n,i)}}catch(e){}})),t.innerHTML.replace(Dy,"")}};var My=Object.freeze({__proto__:null});class Oy extends pb{constructor(e,t){super(...arguments),this.attachmentManager=e,this.attachment=t,this.id=this.attachment.id,this.file=this.attachment.file}remove(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)}}Oy.proxyMethod("attachment.getAttribute"),Oy.proxyMethod("attachment.hasAttribute"),Oy.proxyMethod("attachment.setAttribute"),Oy.proxyMethod("attachment.getAttributes"),Oy.proxyMethod("attachment.setAttributes"),Oy.proxyMethod("attachment.isPending"),Oy.proxyMethod("attachment.isPreviewable"),Oy.proxyMethod("attachment.getURL"),Oy.proxyMethod("attachment.getHref"),Oy.proxyMethod("attachment.getFilename"),Oy.proxyMethod("attachment.getFilesize"),Oy.proxyMethod("attachment.getFormattedFilesize"),Oy.proxyMethod("attachment.getExtension"),Oy.proxyMethod("attachment.getContentType"),Oy.proxyMethod("attachment.getFile"),Oy.proxyMethod("attachment.setFile"),Oy.proxyMethod("attachment.releaseFile"),Oy.proxyMethod("attachment.getUploadProgress"),Oy.proxyMethod("attachment.setUploadProgress");class Ry extends pb{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),this.managedAttachments={},Array.from(e).forEach((e=>{this.manageAttachment(e)}))}getAttachments(){const e=[];for(const t in this.managedAttachments){const n=this.managedAttachments[t];e.push(n)}return e}manageAttachment(e){return this.managedAttachments[e.id]||(this.managedAttachments[e.id]=new Oy(this,e)),this.managedAttachments[e.id]}attachmentIsManaged(e){return e.id in this.managedAttachments}requestRemovalOfAttachment(e){var t,n;if(this.attachmentIsManaged(e))return null===(t=this.delegate)||void 0===t||null===(n=t.attachmentManagerDidRequestRemovalOfAttachment)||void 0===n?void 0:n.call(t,e)}unmanageAttachment(e){const t=this.managedAttachments[e.id];return delete this.managedAttachments[e.id],t}}class Iy{constructor(e){this.composition=e,this.document=this.composition.document;const t=this.composition.getSelectedRange();this.startPosition=t[0],this.endPosition=t[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}shouldInsertBlockBreak(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?0!==this.startLocation.offset:this.breaksOnReturn&&"\n"!==this.nextCharacter}shouldBreakFormattedBlock(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&"\n"===this.nextCharacter||"\n"===this.previousCharacter)}shouldDecreaseListLevel(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()}shouldPrependListItem(){return this.block.isListItem()&&0===this.startLocation.offset&&!this.block.isEmpty()}shouldRemoveLastBlockAttribute(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()}}class Ny extends pb{constructor(){super(...arguments),this.document=new uy,this.attachments=[],this.currentAttributes={},this.revision=0}setDocument(e){var t,n;if(!e.isEqualTo(this.document))return this.document=e,this.refreshAttachments(),this.revision++,null===(t=this.delegate)||void 0===t||null===(n=t.compositionDidChangeDocument)||void 0===n?void 0:n.call(t,e)}getSnapshot(){return{document:this.document,selectedRange:this.getSelectedRange()}}loadSnapshot(e){var t,n,i,r;let{document:s,selectedRange:a}=e;return null===(t=this.delegate)||void 0===t||null===(n=t.compositionWillLoadSnapshot)||void 0===n||n.call(t),this.setDocument(null!=s?s:new uy),this.setSelection(null!=a?a:[0,0]),null===(i=this.delegate)||void 0===i||null===(r=i.compositionDidLoadSnapshot)||void 0===r?void 0:r.call(i)}insertText(e){let{updatePosition:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{updatePosition:!0};const n=this.getSelectedRange();this.setDocument(this.document.insertTextAtRange(e,n));const i=n[0],r=i+e.getLength();return t&&this.setSelection(r),this.notifyDelegateOfInsertionAtRange([i,r])}insertBlock(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ey;const t=new uy([e]);return this.insertDocument(t)}insertDocument(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new uy;const t=this.getSelectedRange();this.setDocument(this.document.insertDocumentAtRange(e,t));const n=t[0],i=n+e.getLength();return this.setSelection(i),this.notifyDelegateOfInsertionAtRange([n,i])}insertString(e,t){const n=this.getCurrentTextAttributes(),i=Qx.textForStringWithAttributes(e,n);return this.insertText(i,t)}insertBlockBreak(){const e=this.getSelectedRange();this.setDocument(this.document.insertBlockBreakAtRange(e));const t=e[0],n=t+1;return this.setSelection(n),this.notifyDelegateOfInsertionAtRange([t,n])}insertLineBreak(){const e=new Iy(this);if(e.shouldDecreaseListLevel())return this.decreaseListLevel(),this.setSelection(e.startPosition);if(e.shouldPrependListItem()){const t=new uy([e.block.copyWithoutText()]);return this.insertDocument(t)}return e.shouldInsertBlockBreak()?this.insertBlockBreak():e.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():e.shouldBreakFormattedBlock()?this.breakFormattedBlock(e):this.insertString("\n")}insertHTML(e){const t=xy.parse(e).getDocument(),n=this.getSelectedRange();this.setDocument(this.document.mergeDocumentAtRange(t,n));const i=n[0],r=i+t.getLength()-1;return this.setSelection(r),this.notifyDelegateOfInsertionAtRange([i,r])}replaceHTML(e){const t=xy.parse(e).getDocument().copyUsingObjectsFromDocument(this.document),n=this.getLocationRange({strict:!1}),i=this.document.rangeFromLocationRange(n);return this.setDocument(t),this.setSelection(i)}insertFile(e){return this.insertFiles([e])}insertFiles(e){const t=[];return Array.from(e).forEach((e=>{var n;if(null!==(n=this.delegate)&&void 0!==n&&n.compositionShouldAcceptFile(e)){const n=Ux.attachmentForFile(e);t.push(n)}})),this.insertAttachments(t)}insertAttachment(e){return this.insertAttachments([e])}insertAttachments(e){let t=new Qx;return Array.from(e).forEach((e=>{var n;const i=e.getType(),r=null===(n=_v[i])||void 0===n?void 0:n.presentation,s=this.getCurrentTextAttributes();r&&(s.presentation=r);const a=Qx.textForAttachmentWithAttributes(e,s);t=t.appendText(a)})),this.insertText(t)}shouldManageDeletingInDirection(e){const t=this.getLocationRange();if(Jb(t)){if("backward"===e&&0===t[0].offset)return!0;if(this.shouldManageMovingCursorInDirection(e))return!0}else if(t[0].index!==t[1].index)return!0;return!1}deleteInDirection(e){let t,n,i,{length:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getLocationRange();let a=this.getSelectedRange();const o=Jb(a);if(o?n="backward"===e&&0===s[0].offset:i=s[0].index!==s[1].index,n&&this.canDecreaseBlockAttributeLevel()){const e=this.getBlock();if(e.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(a[0]),e.isEmpty())return!1}return o&&(a=this.getExpandedRangeInDirection(e,{length:r}),"backward"===e&&(t=this.getAttachmentAtRange(a))),t?(this.editAttachment(t),!1):(this.setDocument(this.document.removeTextAtRange(a)),this.setSelection(a[0]),!n&&!i&&void 0)}moveTextFromRange(e){const[t]=Array.from(this.getSelectedRange());return this.setDocument(this.document.moveTextFromRangeToPosition(e,t)),this.setSelection(t)}removeAttachment(e){const t=this.document.getRangeOfAttachment(e);if(t)return this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(t)),this.setSelection(t[0])}removeLastBlockAttribute(){const[e,t]=Array.from(this.getSelectedRange()),n=this.document.getBlockAtPosition(t);return this.removeCurrentAttribute(n.getLastAttribute()),this.setSelection(e)}insertPlaceholder(){return this.placeholderPosition=this.getPosition(),this.insertString(" ")}selectPlaceholder(){if(null!=this.placeholderPosition)return this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+1]),this.getSelectedRange()}forgetPlaceholder(){this.placeholderPosition=null}hasCurrentAttribute(e){const t=this.currentAttributes[e];return null!=t&&!1!==t}toggleCurrentAttribute(e){const t=!this.currentAttributes[e];return t?this.setCurrentAttribute(e,t):this.removeCurrentAttribute(e)}canSetCurrentAttribute(e){return Fb(e)?this.canSetCurrentBlockAttribute(e):this.canSetCurrentTextAttribute(e)}canSetCurrentTextAttribute(e){const t=this.getSelectedDocument();if(t){for(const e of Array.from(t.getAttachments()))if(!e.hasContent())return!1;return!0}}canSetCurrentBlockAttribute(e){const t=this.getBlock();if(t)return!t.isTerminalBlock()}setCurrentAttribute(e,t){return Fb(e)?this.setBlockAttribute(e,t):(this.setTextAttribute(e,t),this.currentAttributes[e]=t,this.notifyDelegateOfCurrentAttributesChange())}setTextAttribute(e,t){const n=this.getSelectedRange();if(!n)return;const[i,r]=Array.from(n);if(i!==r)return this.setDocument(this.document.addAttributeAtRange(e,t,n));if("href"===e){const e=Qx.textForStringWithAttributes(t,{href:t});return this.insertText(e)}}setBlockAttribute(e,t){const n=this.getSelectedRange();if(this.canSetCurrentAttribute(e))return this.setDocument(this.document.applyBlockAttributeAtRange(e,t,n)),this.setSelection(n)}removeCurrentAttribute(e){return Fb(e)?(this.removeBlockAttribute(e),this.updateCurrentAttributes()):(this.removeTextAttribute(e),delete this.currentAttributes[e],this.notifyDelegateOfCurrentAttributesChange())}removeTextAttribute(e){const t=this.getSelectedRange();if(t)return this.setDocument(this.document.removeAttributeAtRange(e,t))}removeBlockAttribute(e){const t=this.getSelectedRange();if(t)return this.setDocument(this.document.removeAttributeAtRange(e,t))}canDecreaseNestingLevel(){var e;return(null===(e=this.getBlock())||void 0===e?void 0:e.getNestingLevel())>0}canIncreaseNestingLevel(){var e;const t=this.getBlock();if(t){if(null===(e=Fb(t.getLastNestableAttribute()))||void 0===e||!e.listAttribute)return t.getNestingLevel()>0;{const e=this.getPreviousBlock();if(e)return function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Lb((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(0,e.length),e)}(e.getListItemAttributes(),t.getListItemAttributes())}}}decreaseNestingLevel(){const e=this.getBlock();if(e)return this.setDocument(this.document.replaceBlock(e,e.decreaseNestingLevel()))}increaseNestingLevel(){const e=this.getBlock();if(e)return this.setDocument(this.document.replaceBlock(e,e.increaseNestingLevel()))}canDecreaseBlockAttributeLevel(){var e;return(null===(e=this.getBlock())||void 0===e?void 0:e.getAttributeLevel())>0}decreaseBlockAttributeLevel(){var e;const t=null===(e=this.getBlock())||void 0===e?void 0:e.getLastAttribute();if(t)return this.removeCurrentAttribute(t)}decreaseListLevel(){let[e]=Array.from(this.getSelectedRange());const{index:t}=this.document.locationFromPosition(e);let n=t;const i=this.getBlock().getAttributeLevel();let r=this.document.getBlockAtIndex(n+1);for(;r&&r.isListItem()&&!(r.getAttributeLevel()<=i);)n++,r=this.document.getBlockAtIndex(n+1);e=this.document.positionFromLocation({index:t,offset:0});const s=this.document.positionFromLocation({index:n,offset:0});return this.setDocument(this.document.removeLastListAttributeAtRange([e,s]))}updateCurrentAttributes(){const e=this.getSelectedRange({ignoreLock:!0});if(e){const t=this.document.getCommonAttributesAtRange(e);if(Array.from(Nb()).forEach((e=>{t[e]||this.canSetCurrentAttribute(e)||(t[e]=!1)})),!Zb(t,this.currentAttributes))return this.currentAttributes=t,this.notifyDelegateOfCurrentAttributesChange()}}getCurrentAttributes(){return Fv.call({},this.currentAttributes)}getCurrentTextAttributes(){const e={};for(const t in this.currentAttributes){const n=this.currentAttributes[t];!1!==n&&zb(t)&&(e[t]=n)}return e}freezeSelection(){return this.setCurrentAttribute("frozen",!0)}thawSelection(){return this.removeCurrentAttribute("frozen")}hasFrozenSelection(){return this.hasCurrentAttribute("frozen")}setSelection(e){var t;const n=this.document.locationRangeFromRange(e);return null===(t=this.delegate)||void 0===t?void 0:t.compositionDidRequestChangingSelectionToLocationRange(n)}getSelectedRange(){const e=this.getLocationRange();if(e)return this.document.rangeFromLocationRange(e)}setSelectedRange(e){const t=this.document.locationRangeFromRange(e);return this.getSelectionManager().setLocationRange(t)}getPosition(){const e=this.getLocationRange();if(e)return this.document.positionFromLocation(e[0])}getLocationRange(e){return this.targetLocationRange?this.targetLocationRange:this.getSelectionManager().getLocationRange(e)||Kb({index:0,offset:0})}withTargetLocationRange(e,t){let n;this.targetLocationRange=e;try{n=t()}finally{this.targetLocationRange=null}return n}withTargetRange(e,t){const n=this.document.locationRangeFromRange(e);return this.withTargetLocationRange(n,t)}withTargetDOMRange(e,t){const n=this.createLocationRangeFromDOMRange(e,{strict:!1});return this.withTargetLocationRange(n,t)}getExpandedRangeInDirection(e){let{length:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,i]=Array.from(this.getSelectedRange());return"backward"===e?t?n-=t:n=this.translateUTF16PositionFromOffset(n,-1):t?i+=t:i=this.translateUTF16PositionFromOffset(i,1),Kb([n,i])}shouldManageMovingCursorInDirection(e){if(this.editingAttachment)return!0;const t=this.getExpandedRangeInDirection(e);return null!=this.getAttachmentAtRange(t)}moveCursorInDirection(e){let t,n;if(this.editingAttachment)n=this.document.getRangeOfAttachment(this.editingAttachment);else{const i=this.getSelectedRange();n=this.getExpandedRangeInDirection(e),t=!Qb(i,n)}if("backward"===e?this.setSelectedRange(n[0]):this.setSelectedRange(n[1]),t){const e=this.getAttachmentAtRange(n);if(e)return this.editAttachment(e)}}expandSelectionInDirection(e){let{length:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getExpandedRangeInDirection(e,{length:t});return this.setSelectedRange(n)}expandSelectionForEditing(){if(this.hasCurrentAttribute("href"))return this.expandSelectionAroundCommonAttribute("href")}expandSelectionAroundCommonAttribute(e){const t=this.getPosition(),n=this.document.getRangeOfCommonAttributeAtPosition(e,t);return this.setSelectedRange(n)}selectionContainsAttachments(){var e;return(null===(e=this.getSelectedAttachments())||void 0===e?void 0:e.length)>0}selectionIsInCursorTarget(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())}positionIsCursorTarget(e){const t=this.document.locationFromPosition(e);if(t)return this.locationIsCursorTarget(t)}positionIsBlockBreak(e){var t;return null===(t=this.document.getPieceAtPosition(e))||void 0===t?void 0:t.isBlockBreak()}getSelectedDocument(){const e=this.getSelectedRange();if(e)return this.document.getDocumentAtRange(e)}getSelectedAttachments(){var e;return null===(e=this.getSelectedDocument())||void 0===e?void 0:e.getAttachments()}getAttachments(){return this.attachments.slice(0)}refreshAttachments(){const e=this.document.getAttachments(),{added:t,removed:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[],i=[],r=new Set;e.forEach((e=>{r.add(e)}));const s=new Set;return t.forEach((e=>{s.add(e),r.has(e)||n.push(e)})),e.forEach((e=>{s.has(e)||i.push(e)})),{added:n,removed:i}}(this.attachments,e);return this.attachments=e,Array.from(n).forEach((e=>{var t,n;e.delegate=null,null===(t=this.delegate)||void 0===t||null===(n=t.compositionDidRemoveAttachment)||void 0===n||n.call(t,e)})),(()=>{const e=[];return Array.from(t).forEach((t=>{var n,i;t.delegate=this,e.push(null===(n=this.delegate)||void 0===n||null===(i=n.compositionDidAddAttachment)||void 0===i?void 0:i.call(n,t))})),e})()}attachmentDidChangeAttributes(e){var t,n;return this.revision++,null===(t=this.delegate)||void 0===t||null===(n=t.compositionDidEditAttachment)||void 0===n?void 0:n.call(t,e)}attachmentDidChangePreviewURL(e){var t,n;return this.revision++,null===(t=this.delegate)||void 0===t||null===(n=t.compositionDidChangeAttachmentPreviewURL)||void 0===n?void 0:n.call(t,e)}editAttachment(e,t){var n,i;if(e!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=e,null===(n=this.delegate)||void 0===n||null===(i=n.compositionDidStartEditingAttachment)||void 0===i?void 0:i.call(n,this.editingAttachment,t)}stopEditingAttachment(){var e,t;this.editingAttachment&&(null===(e=this.delegate)||void 0===e||null===(t=e.compositionDidStopEditingAttachment)||void 0===t||t.call(e,this.editingAttachment),this.editingAttachment=null)}updateAttributesForAttachment(e,t){return this.setDocument(this.document.updateAttributesForAttachment(e,t))}removeAttributeForAttachment(e,t){return this.setDocument(this.document.removeAttributeForAttachment(e,t))}breakFormattedBlock(e){let{document:t}=e;const{block:n}=e;let i=e.startPosition,r=[i-1,i];n.getBlockBreakPosition()===e.startLocation.offset?(n.breaksOnReturn()&&"\n"===e.nextCharacter?i+=1:t=t.removeTextAtRange(r),r=[i,i]):"\n"===e.nextCharacter?"\n"===e.previousCharacter?r=[i-1,i+1]:(r=[i,i+1],i+=1):e.startLocation.offset-1!=0&&(i+=1);const s=new uy([n.removeLastAttribute().copyWithoutText()]);return this.setDocument(t.insertDocumentAtRange(s,r)),this.setSelection(i)}getPreviousBlock(){const e=this.getLocationRange();if(e){const{index:t}=e[0];if(t>0)return this.document.getBlockAtIndex(t-1)}}getBlock(){const e=this.getLocationRange();if(e)return this.document.getBlockAtIndex(e[0].index)}getAttachmentAtRange(e){const t=this.document.getDocumentAtRange(e);if(t.toString()==="".concat("","\n"))return t.getAttachments()[0]}notifyDelegateOfCurrentAttributesChange(){var e,t;return null===(e=this.delegate)||void 0===e||null===(t=e.compositionDidChangeCurrentAttributes)||void 0===t?void 0:t.call(e,this.currentAttributes)}notifyDelegateOfInsertionAtRange(e){var t,n;return null===(t=this.delegate)||void 0===t||null===(n=t.compositionDidPerformInsertionAtRange)||void 0===n?void 0:n.call(t,e)}translateUTF16PositionFromOffset(e,t){const n=this.document.toUTF16String(),i=n.offsetFromUCS2Offset(e);return n.offsetToUCS2Offset(i+t)}}Ny.proxyMethod("getSelectionManager().getPointRange"),Ny.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),Ny.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),Ny.proxyMethod("getSelectionManager().locationIsCursorTarget"),Ny.proxyMethod("getSelectionManager().selectionIsExpanded"),Ny.proxyMethod("delegate?.getSelectionManager");class Fy extends pb{constructor(e){super(...arguments),this.composition=e,this.undoEntries=[],this.redoEntries=[]}recordUndoEntry(e){let{context:t,consolidatable:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this.undoEntries.slice(-1)[0];if(!n||!By(i,e,t)){const n=this.createEntry({description:e,context:t});this.undoEntries.push(n),this.redoEntries=[]}}undo(){const e=this.undoEntries.pop();if(e){const t=this.createEntry(e);return this.redoEntries.push(t),this.composition.loadSnapshot(e.snapshot)}}redo(){const e=this.redoEntries.pop();if(e){const t=this.createEntry(e);return this.undoEntries.push(t),this.composition.loadSnapshot(e.snapshot)}}canUndo(){return this.undoEntries.length>0}canRedo(){return this.redoEntries.length>0}createEntry(){let{description:e,context:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{description:null==e?void 0:e.toString(),context:JSON.stringify(t),snapshot:this.composition.getSnapshot()}}}const By=(e,t,n)=>(null==e?void 0:e.description)===(null==t?void 0:t.toString())&&(null==e?void 0:e.context)===JSON.stringify(n),zy="attachmentGallery";class Yy{constructor(e){this.document=e.document,this.selectedRange=e.selectedRange}perform(){return this.removeBlockAttribute(),this.applyBlockAttribute()}getSnapshot(){return{document:this.document,selectedRange:this.selectedRange}}removeBlockAttribute(){return this.findRangesOfBlocks().map((e=>this.document=this.document.removeAttributeAtRange(zy,e)))}applyBlockAttribute(){let e=0;this.findRangesOfPieces().forEach((t=>{t[1]-t[0]>1&&(t[0]+=e,t[1]+=e,"\n"!==this.document.getCharacterAtPosition(t[1])&&(this.document=this.document.insertBlockBreakAtRange(t[1]),t[1]<this.selectedRange[1]&&this.moveSelectedRangeForward(),t[1]++,e++),0!==t[0]&&"\n"!==this.document.getCharacterAtPosition(t[0]-1)&&(this.document=this.document.insertBlockBreakAtRange(t[0]),t[0]<this.selectedRange[0]&&this.moveSelectedRangeForward(),t[0]++,e++),this.document=this.document.applyBlockAttributeAtRange(zy,!0,t))}))}findRangesOfBlocks(){return this.document.findRangesForBlockAttribute(zy)}findRangesOfPieces(){return this.document.findRangesForTextAttribute("presentation",{withValue:"gallery"})}moveSelectedRangeForward(){this.selectedRange[0]+=1,this.selectedRange[1]+=1}}const jy=function(e){const t=new Yy(e);return t.perform(),t.getSnapshot()},Hy=[jy];class Wy{constructor(e,t,n){this.insertFiles=this.insertFiles.bind(this),this.composition=e,this.selectionManager=t,this.element=n,this.undoManager=new Fy(this.composition),this.filters=Hy.slice(0)}loadDocument(e){return this.loadSnapshot({document:e,selectedRange:[0,0]})}loadHTML(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=xy.parse(e,{referenceElement:this.element}).getDocument();return this.loadDocument(t)}loadJSON(e){let{document:t,selectedRange:n}=e;return t=uy.fromJSON(t),this.loadSnapshot({document:t,selectedRange:n})}loadSnapshot(e){return this.undoManager=new Fy(this.composition),this.composition.loadSnapshot(e)}getDocument(){return this.composition.document}getSelectedDocument(){return this.composition.getSelectedDocument()}getSnapshot(){return this.composition.getSnapshot()}toJSON(){return this.getSnapshot()}deleteInDirection(e){return this.composition.deleteInDirection(e)}insertAttachment(e){return this.composition.insertAttachment(e)}insertAttachments(e){return this.composition.insertAttachments(e)}insertDocument(e){return this.composition.insertDocument(e)}insertFile(e){return this.composition.insertFile(e)}insertFiles(e){return this.composition.insertFiles(e)}insertHTML(e){return this.composition.insertHTML(e)}insertString(e){return this.composition.insertString(e)}insertText(e){return this.composition.insertText(e)}insertLineBreak(){return this.composition.insertLineBreak()}getSelectedRange(){return this.composition.getSelectedRange()}getPosition(){return this.composition.getPosition()}getClientRectAtPosition(e){const t=this.getDocument().locationRangeFromRange([e,e+1]);return this.selectionManager.getClientRectAtLocationRange(t)}expandSelectionInDirection(e){return this.composition.expandSelectionInDirection(e)}moveCursorInDirection(e){return this.composition.moveCursorInDirection(e)}setSelectedRange(e){return this.composition.setSelectedRange(e)}activateAttribute(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.composition.setCurrentAttribute(e,t)}attributeIsActive(e){return this.composition.hasCurrentAttribute(e)}canActivateAttribute(e){return this.composition.canSetCurrentAttribute(e)}deactivateAttribute(e){return this.composition.removeCurrentAttribute(e)}canDecreaseNestingLevel(){return this.composition.canDecreaseNestingLevel()}canIncreaseNestingLevel(){return this.composition.canIncreaseNestingLevel()}decreaseNestingLevel(){if(this.canDecreaseNestingLevel())return this.composition.decreaseNestingLevel()}increaseNestingLevel(){if(this.canIncreaseNestingLevel())return this.composition.increaseNestingLevel()}canRedo(){return this.undoManager.canRedo()}canUndo(){return this.undoManager.canUndo()}recordUndoEntry(e){let{context:t,consolidatable:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.undoManager.recordUndoEntry(e,{context:t,consolidatable:n})}redo(){if(this.canRedo())return this.undoManager.redo()}undo(){if(this.canUndo())return this.undoManager.undo()}}class Xy{constructor(e){this.element=e}findLocationFromContainerAndOffset(e,t){let{strict:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!0},i=0,r=!1;const s={index:0,offset:0},a=this.findAttachmentElementParentForNode(e);a&&(e=a.parentNode,t=Uv(a));const o=Gv(this.element,{usingFilter:Gy});for(;o.nextNode();){const a=o.currentNode;if(a===e&&ab(e)){ib(a)||(s.offset+=t);break}if(a.parentNode===e){if(i++===t)break}else if(!Vv(e,a)&&i>0)break;eb(a,{strict:n})?(r&&s.index++,s.offset=0,r=!0):s.offset+=Vy(a)}return s}findContainerAndOffsetFromLocation(e){let t,n;if(0===e.index&&0===e.offset){for(t=this.element,n=0;t.firstChild;)if(t=t.firstChild,Qv(t)){n=1;break}return[t,n]}let[i,r]=this.findNodeAndOffsetFromLocation(e);if(i){if(ab(i))0===Vy(i)?(t=i.parentNode.parentNode,n=Uv(i.parentNode),ib(i,{name:"right"})&&n++):(t=i,n=e.offset-r);else{if(t=i.parentNode,!eb(i.previousSibling)&&!Qv(t))for(;i===t.lastChild&&(i=t,t=t.parentNode,!Qv(t)););n=Uv(i),0!==e.offset&&n++}return[t,n]}}findNodeAndOffsetFromLocation(e){let t,n,i=0;for(const r of this.getSignificantNodesForIndex(e.index)){const s=Vy(r);if(e.offset<=i+s)if(ab(r)){if(t=r,n=i,e.offset===n&&ib(t))break}else t||(t=r,n=i);if(i+=s,i>e.offset)break}return[t,n]}findAttachmentElementParentForNode(e){for(;e&&e!==this.element;){if(rb(e))return e;e=e.parentNode}}getSignificantNodesForIndex(e){const t=[],n=Gv(this.element,{usingFilter:Uy});let i=!1;for(;n.nextNode();){const s=n.currentNode;var r;if(tb(s)){if(null!=r?r++:r=0,r===e)i=!0;else if(i)break}else i&&t.push(s)}return t}}const Vy=function(e){return e.nodeType===Node.TEXT_NODE?ib(e)?0:e.textContent.length:"br"===qv(e)||rb(e)?1:0},Uy=function(e){return $y(e)===NodeFilter.FILTER_ACCEPT?Gy(e):NodeFilter.FILTER_REJECT},$y=function(e){return sb(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},Gy=function(e){return rb(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT};class qy{createDOMRangeFromPoint(e){let t,{x:n,y:i}=e;if(document.caretPositionFromPoint){const{offsetNode:e,offset:r}=document.caretPositionFromPoint(n,i);return t=document.createRange(),t.setStart(e,r),t}if(document.caretRangeFromPoint)return document.caretRangeFromPoint(n,i);if(document.body.createTextRange){const r=sx();try{const e=document.body.createTextRange();e.moveToPoint(n,i),e.select()}catch(e){}return t=sx(),ax(r),t}}getClientRectsForDOMRange(e){const t=Array.from(e.getClientRects());return[t[0],t[t.length-1]]}}class Zy extends pb{constructor(e){super(...arguments),this.didMouseDown=this.didMouseDown.bind(this),this.selectionDidChange=this.selectionDidChange.bind(this),this.element=e,this.locationMapper=new Xy(this.element),this.pointMapper=new qy,this.lockCount=0,Yv("mousedown",{onElement:this.element,withCallback:this.didMouseDown})}getLocationRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1===e.strict?this.createLocationRangeFromDOMRange(sx()):e.ignoreLock?this.currentLocationRange:this.lockedLocationRange?this.lockedLocationRange:this.currentLocationRange}setLocationRange(e){if(this.lockedLocationRange)return;e=Kb(e);const t=this.createDOMRangeFromLocationRange(e);t&&(ax(t),this.updateCurrentLocationRange(e))}setLocationRangeFromPointRange(e){e=Kb(e);const t=this.getLocationAtPoint(e[0]),n=this.getLocationAtPoint(e[1]);this.setLocationRange([t,n])}getClientRectAtLocationRange(e){const t=this.createDOMRangeFromLocationRange(e);if(t)return this.getClientRectsForDOMRange(t)[1]}locationIsCursorTarget(e){const t=Array.from(this.findNodeAndOffsetFromLocation(e))[0];return ib(t)}lock(){0==this.lockCount++&&(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange())}unlock(){if(0==--this.lockCount){const{lockedLocationRange:e}=this;if(this.lockedLocationRange=null,null!=e)return this.setLocationRange(e)}}clearSelection(){var e;return null===(e=rx())||void 0===e?void 0:e.removeAllRanges()}selectionIsCollapsed(){var e;return!0===(null===(e=sx())||void 0===e?void 0:e.collapsed)}selectionIsExpanded(){return!this.selectionIsCollapsed()}createLocationRangeFromDOMRange(e,t){if(null==e||!this.domRangeWithinElement(e))return;const n=this.findLocationFromContainerAndOffset(e.startContainer,e.startOffset,t);if(!n)return;const i=e.collapsed?void 0:this.findLocationFromContainerAndOffset(e.endContainer,e.endOffset,t);return Kb([n,i])}didMouseDown(){return this.pauseTemporarily()}pauseTemporarily(){let e;this.paused=!0;const t=()=>{if(this.paused=!1,clearTimeout(n),Array.from(e).forEach((e=>{e.destroy()})),Vv(document,this.element))return this.selectionDidChange()},n=setTimeout(t,200);e=["mousemove","keydown"].map((e=>Yv(e,{onElement:document,withCallback:t})))}selectionDidChange(){if(!this.paused&&!Xv(this.element))return this.updateCurrentLocationRange()}updateCurrentLocationRange(e){var t,n;if((null!=e?e:e=this.createLocationRangeFromDOMRange(sx()))&&!Qb(e,this.currentLocationRange))return this.currentLocationRange=e,null===(t=this.delegate)||void 0===t||null===(n=t.locationRangeDidChange)||void 0===n?void 0:n.call(t,this.currentLocationRange.slice(0))}createDOMRangeFromLocationRange(e){const t=this.findContainerAndOffsetFromLocation(e[0]),n=Jb(e)?t:this.findContainerAndOffsetFromLocation(e[1])||t;if(null!=t&&null!=n){const e=document.createRange();return e.setStart(...Array.from(t||[])),e.setEnd(...Array.from(n||[])),e}}getLocationAtPoint(e){const t=this.createDOMRangeFromPoint(e);var n;if(t)return null===(n=this.createLocationRangeFromDOMRange(t))||void 0===n?void 0:n[0]}domRangeWithinElement(e){return e.collapsed?Vv(this.element,e.startContainer):Vv(this.element,e.startContainer)&&Vv(this.element,e.endContainer)}}Zy.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),Zy.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),Zy.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),Zy.proxyMethod("pointMapper.createDOMRangeFromPoint"),Zy.proxyMethod("pointMapper.getClientRectsForDOMRange");var Ky=Object.freeze({__proto__:null,Attachment:Ux,AttachmentManager:Ry,AttachmentPiece:$x,Block:ey,Composition:Ny,Document:uy,Editor:Wy,HTMLParser:xy,HTMLSanitizer:gy,LineBreakInsertion:Iy,LocationMapper:Xy,ManagedAttachment:Oy,Piece:Xx,PointMapper:qy,SelectionManager:Zy,SplittableList:qx,StringPiece:Gx,Text:Qx,UndoManager:Fy}),Jy=Object.freeze({__proto__:null,ObjectView:Cx,AttachmentView:Lx,BlockView:Nx,DocumentView:Fx,PieceView:Mx,PreviewableAttachmentView:Px,TextView:Ox});const{lang:Qy,css:ew,keyNames:tw}=db,nw=function(e){return function(){const t=e.apply(this,arguments);t.do(),this.undos||(this.undos=[]),this.undos.push(t.undo)}};class iw extends pb{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(...arguments),Wx(this,"makeElementMutable",nw((()=>({do:()=>{this.element.dataset.trixMutable=!0},undo:()=>delete this.element.dataset.trixMutable})))),Wx(this,"addToolbar",nw((()=>{const e=Zv({tagName:"div",className:ew.attachmentToolbar,data:{trixMutable:!0},childNodes:Zv({tagName:"div",className:"trix-button-row",childNodes:Zv({tagName:"span",className:"trix-button-group trix-button-group--actions",childNodes:Zv({tagName:"button",className:"trix-button trix-button--remove",textContent:Qy.remove,attributes:{title:Qy.remove},data:{trixAction:"remove"}})})})});return this.attachment.isPreviewable()&&e.appendChild(Zv({tagName:"div",className:ew.attachmentMetadataContainer,childNodes:Zv({tagName:"span",className:ew.attachmentMetadata,childNodes:[Zv({tagName:"span",className:ew.attachmentName,textContent:this.attachment.getFilename(),attributes:{title:this.attachment.getFilename()}}),Zv({tagName:"span",className:ew.attachmentSize,textContent:this.attachment.getFormattedFilesize()})]})})),Yv("click",{onElement:e,withCallback:this.didClickToolbar}),Yv("click",{onElement:e,matchingSelector:"[data-trix-action]",withCallback:this.didClickActionButton}),jv("trix-attachment-before-toolbar",{onElement:this.element,attributes:{toolbar:e,attachment:this.attachment}}),{do:()=>this.element.appendChild(e),undo:()=>$v(e)}}))),Wx(this,"installCaptionEditor",nw((()=>{const e=Zv({tagName:"textarea",className:ew.attachmentCaptionEditor,attributes:{placeholder:Qy.captionPlaceholder},data:{trixMutable:!0}});e.value=this.attachmentPiece.getCaption();const t=e.cloneNode();t.classList.add("trix-autoresize-clone"),t.tabIndex=-1;const n=function(){t.value=e.value,e.style.height=t.scrollHeight+"px"};Yv("input",{onElement:e,withCallback:n}),Yv("input",{onElement:e,withCallback:this.didInputCaption}),Yv("keydown",{onElement:e,withCallback:this.didKeyDownCaption}),Yv("change",{onElement:e,withCallback:this.didChangeCaption}),Yv("blur",{onElement:e,withCallback:this.didBlurCaption});const i=this.element.querySelector("figcaption"),r=i.cloneNode();return{do:()=>{if(i.style.display="none",r.appendChild(e),r.appendChild(t),r.classList.add("".concat(ew.attachmentCaption,"--editing")),i.parentElement.insertBefore(r,i),n(),this.options.editCaption)return Gb((()=>e.focus()))},undo(){$v(r),i.style.display=null}}}))),this.didClickToolbar=this.didClickToolbar.bind(this),this.didClickActionButton=this.didClickActionButton.bind(this),this.didKeyDownCaption=this.didKeyDownCaption.bind(this),this.didInputCaption=this.didInputCaption.bind(this),this.didChangeCaption=this.didChangeCaption.bind(this),this.didBlurCaption=this.didBlurCaption.bind(this),this.attachmentPiece=e,this.element=t,this.container=n,this.options=i,this.attachment=this.attachmentPiece.attachment,"a"===qv(this.element)&&(this.element=this.element.firstChild),this.install()}install(){this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()&&this.installCaptionEditor()}uninstall(){var e;let t=this.undos.pop();for(this.savePendingCaption();t;)t(),t=this.undos.pop();null===(e=this.delegate)||void 0===e||e.didUninstallAttachmentEditor(this)}savePendingCaption(){if(null!=this.pendingCaption){const r=this.pendingCaption;var e,t,n,i;this.pendingCaption=null,r?null===(e=this.delegate)||void 0===e||null===(t=e.attachmentEditorDidRequestUpdatingAttributesForAttachment)||void 0===t||t.call(e,{caption:r},this.attachment):null===(n=this.delegate)||void 0===n||null===(i=n.attachmentEditorDidRequestRemovingAttributeForAttachment)||void 0===i||i.call(n,"caption",this.attachment)}}didClickToolbar(e){return e.preventDefault(),e.stopPropagation()}didClickActionButton(e){var t;if("remove"===e.target.getAttribute("data-trix-action"))return null===(t=this.delegate)||void 0===t?void 0:t.attachmentEditorDidRequestRemovalOfAttachment(this.attachment)}didKeyDownCaption(e){var t,n;if("return"===tw[e.keyCode])return e.preventDefault(),this.savePendingCaption(),null===(t=this.delegate)||void 0===t||null===(n=t.attachmentEditorDidRequestDeselectingAttachment)||void 0===n?void 0:n.call(t,this.attachment)}didInputCaption(e){this.pendingCaption=e.target.value.replace(/\s/g," ").trim()}didChangeCaption(e){return this.savePendingCaption()}didBlurCaption(e){return this.savePendingCaption()}}class rw extends pb{constructor(e,t){super(...arguments),this.didFocus=this.didFocus.bind(this),this.didBlur=this.didBlur.bind(this),this.didClickAttachment=this.didClickAttachment.bind(this),this.element=e,this.composition=t,this.documentView=new Fx(this.composition.document,{element:this.element}),Yv("focus",{onElement:this.element,withCallback:this.didFocus}),Yv("blur",{onElement:this.element,withCallback:this.didBlur}),Yv("click",{onElement:this.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),Yv("mousedown",{onElement:this.element,matchingSelector:Cv,withCallback:this.didClickAttachment}),Yv("click",{onElement:this.element,matchingSelector:"a".concat(Cv),preventDefault:!0})}didFocus(e){var t;const n=()=>{var e,t;if(!this.focused)return this.focused=!0,null===(e=this.delegate)||void 0===e||null===(t=e.compositionControllerDidFocus)||void 0===t?void 0:t.call(e)};return(null===(t=this.blurPromise)||void 0===t?void 0:t.then(n))||n()}didBlur(e){this.blurPromise=new Promise((e=>Gb((()=>{var t,n;return Xv(this.element)||(this.focused=null,null===(t=this.delegate)||void 0===t||null===(n=t.compositionControllerDidBlur)||void 0===n||n.call(t)),this.blurPromise=null,e()}))))}didClickAttachment(e,t){var n,i;const r=this.findAttachmentForElement(t),s=!!Wv(e.target,{matchingSelector:"figcaption"});return null===(n=this.delegate)||void 0===n||null===(i=n.compositionControllerDidSelectAttachment)||void 0===i?void 0:i.call(n,r,{editCaption:s})}getSerializableElement(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element}render(){var e,t,n,i,r,s;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&(null===(n=this.delegate)||void 0===n||null===(i=n.compositionControllerWillSyncDocumentView)||void 0===i||i.call(n),this.documentView.sync(),null===(r=this.delegate)||void 0===r||null===(s=r.compositionControllerDidSyncDocumentView)||void 0===s||s.call(r)),null===(e=this.delegate)||void 0===e||null===(t=e.compositionControllerDidRender)||void 0===t?void 0:t.call(e)}rerenderViewForObject(e){return this.invalidateViewForObject(e),this.render()}invalidateViewForObject(e){return this.documentView.invalidateViewForObject(e)}isViewCachingEnabled(){return this.documentView.isViewCachingEnabled()}enableViewCaching(){return this.documentView.enableViewCaching()}disableViewCaching(){return this.documentView.disableViewCaching()}refreshViewCache(){return this.documentView.garbageCollectCachedViews()}isEditingAttachment(){return!!this.attachmentEditor}installAttachmentEditorForAttachment(e,t){var n;if((null===(n=this.attachmentEditor)||void 0===n?void 0:n.attachment)===e)return;const i=this.documentView.findElementForObject(e);if(!i)return;this.uninstallAttachmentEditor();const r=this.composition.document.getAttachmentPieceForAttachment(e);this.attachmentEditor=new iw(r,i,this.element,t),this.attachmentEditor.delegate=this}uninstallAttachmentEditor(){var e;return null===(e=this.attachmentEditor)||void 0===e?void 0:e.uninstall()}didUninstallAttachmentEditor(){return this.attachmentEditor=null,this.render()}attachmentEditorDidRequestUpdatingAttributesForAttachment(e,t){var n,i;return null===(n=this.delegate)||void 0===n||null===(i=n.compositionControllerWillUpdateAttachment)||void 0===i||i.call(n,t),this.composition.updateAttributesForAttachment(e,t)}attachmentEditorDidRequestRemovingAttributeForAttachment(e,t){var n,i;return null===(n=this.delegate)||void 0===n||null===(i=n.compositionControllerWillUpdateAttachment)||void 0===i||i.call(n,t),this.composition.removeAttributeForAttachment(e,t)}attachmentEditorDidRequestRemovalOfAttachment(e){var t,n;return null===(t=this.delegate)||void 0===t||null===(n=t.compositionControllerDidRequestRemovalOfAttachment)||void 0===n?void 0:n.call(t,e)}attachmentEditorDidRequestDeselectingAttachment(e){var t,n;return null===(t=this.delegate)||void 0===t||null===(n=t.compositionControllerDidRequestDeselectingAttachment)||void 0===n?void 0:n.call(t,e)}canSyncDocumentView(){return!this.isEditingAttachment()}findAttachmentForElement(e){return this.composition.document.getAttachmentById(parseInt(e.dataset.trixId,10))}}class sw extends pb{}const aw="data-trix-mutable",ow="[".concat(aw,"]"),lw={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};class cw extends pb{constructor(e){super(e),this.didMutate=this.didMutate.bind(this),this.element=e,this.observer=new window.MutationObserver(this.didMutate),this.start()}start(){return this.reset(),this.observer.observe(this.element,lw)}stop(){return this.observer.disconnect()}didMutate(e){var t,n;if(this.mutations.push(...Array.from(this.findSignificantMutations(e)||[])),this.mutations.length)return null===(t=this.delegate)||void 0===t||null===(n=t.elementDidMutate)||void 0===n||n.call(t,this.getMutationSummary()),this.reset()}reset(){this.mutations=[]}findSignificantMutations(e){return e.filter((e=>this.mutationIsSignificant(e)))}mutationIsSignificant(e){if(this.nodeIsMutable(e.target))return!1;for(const t of Array.from(this.nodesModifiedByMutation(e)))if(this.nodeIsSignificant(t))return!0;return!1}nodeIsSignificant(e){return e!==this.element&&!this.nodeIsMutable(e)&&!sb(e)}nodeIsMutable(e){return Wv(e,{matchingSelector:ow})}nodesModifiedByMutation(e){const t=[];switch(e.type){case"attributes":e.attributeName!==aw&&t.push(e.target);break;case"characterData":t.push(e.target.parentNode),t.push(e.target);break;case"childList":t.push(...Array.from(e.addedNodes||[])),t.push(...Array.from(e.removedNodes||[]))}return t}getMutationSummary(){return this.getTextMutationSummary()}getTextMutationSummary(){const{additions:e,deletions:t}=this.getTextChangesFromCharacterData(),n=this.getTextChangesFromChildList();Array.from(n.additions).forEach((t=>{Array.from(e).includes(t)||e.push(t)})),t.push(...Array.from(n.deletions||[]));const i={},r=e.join("");r&&(i.textAdded=r);const s=t.join("");return s&&(i.textDeleted=s),i}getMutationsByType(e){return Array.from(this.mutations).filter((t=>t.type===e))}getTextChangesFromChildList(){let e,t;const n=[],i=[];return Array.from(this.getMutationsByType("childList")).forEach((e=>{n.push(...Array.from(e.addedNodes||[])),i.push(...Array.from(e.removedNodes||[]))})),0===n.length&&1===i.length&&tb(i[0])?(e=[],t=["\n"]):(e=uw(n),t=uw(i)),{additions:e.filter(((e,n)=>e!==t[n])).map(cx),deletions:t.filter(((t,n)=>t!==e[n])).map(cx)}}getTextChangesFromCharacterData(){let e,t;const n=this.getMutationsByType("characterData");if(n.length){const i=n[0],r=n[n.length-1],s=function(e,t){let n,i;return e=yb.box(e),(t=yb.box(t)).length<e.length?[i,n]=dx(e,t):[n,i]=dx(t,e),{added:n,removed:i}}(cx(i.oldValue),cx(r.target.data));e=s.added,t=s.removed}return{additions:e?[e]:[],deletions:t?[t]:[]}}}const uw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of Array.from(e))switch(n.nodeType){case Node.TEXT_NODE:t.push(n.data);break;case Node.ELEMENT_NODE:"br"===qv(n)?t.push("\n"):t.push(...Array.from(uw(n.childNodes)||[]))}return t};class hw extends Sx{constructor(e){super(...arguments),this.file=e}perform(e){const t=new FileReader;return t.onerror=()=>e(!1),t.onload=()=>{t.onerror=null;try{t.abort()}catch(e){}return e(!0,this.file)},t.readAsArrayBuffer(this.file)}}class dw{constructor(e){this.element=e}shouldIgnore(e){return!!Pv.samsungAndroid&&(this.previousEvent=this.event,this.event=e,this.checkSamsungKeyboardBuggyModeStart(),this.checkSamsungKeyboardBuggyModeEnd(),this.buggyMode)}checkSamsungKeyboardBuggyModeStart(){this.insertingLongTextAfterUnidentifiedChar()&&pw(this.element.innerText,this.event.data)&&(this.buggyMode=!0,this.event.preventDefault())}checkSamsungKeyboardBuggyModeEnd(){this.buggyMode&&"insertText"!==this.event.inputType&&(this.buggyMode=!1)}insertingLongTextAfterUnidentifiedChar(){var e;return this.isBeforeInputInsertText()&&this.previousEventWasUnidentifiedKeydown()&&(null===(e=this.event.data)||void 0===e?void 0:e.length)>50}isBeforeInputInsertText(){return"beforeinput"===this.event.type&&"insertText"===this.event.inputType}previousEventWasUnidentifiedKeydown(){var e,t;return"keydown"===(null===(e=this.previousEvent)||void 0===e?void 0:e.type)&&"Unidentified"===(null===(t=this.previousEvent)||void 0===t?void 0:t.key)}}const pw=(e,t)=>gw(e)===gw(t),fw=new RegExp("(".concat("","|").concat(Iv,"|").concat(Nv,"|\\s)+"),"g"),gw=e=>e.replace(fw," ").trim();class mw extends pb{constructor(e){super(...arguments),this.element=e,this.mutationObserver=new cw(this.element),this.mutationObserver.delegate=this,this.flakyKeyboardDetector=new dw(this.element);for(const e in this.constructor.events)Yv(e,{onElement:this.element,withCallback:this.handlerFor(e)})}elementDidMutate(e){}editorWillSyncDocumentView(){return this.mutationObserver.stop()}editorDidSyncDocumentView(){return this.mutationObserver.start()}requestRender(){var e,t;return null===(e=this.delegate)||void 0===e||null===(t=e.inputControllerDidRequestRender)||void 0===t?void 0:t.call(e)}requestReparse(){var e,t;return null===(e=this.delegate)||void 0===e||null===(t=e.inputControllerDidRequestReparse)||void 0===t||t.call(e),this.requestRender()}attachFiles(e){const t=Array.from(e).map((e=>new hw(e)));return Promise.all(t).then((e=>{this.handleInput((function(){var t,n;return null===(t=this.delegate)||void 0===t||t.inputControllerWillAttachFiles(),null===(n=this.responder)||void 0===n||n.insertFiles(e),this.requestRender()}))}))}handlerFor(e){return t=>{t.defaultPrevented||this.handleInput((()=>{if(!Xv(this.element)){if(this.flakyKeyboardDetector.shouldIgnore(t))return;this.eventName=e,this.constructor.events[e].call(this,t)}}))}}handleInput(e){try{var t;null===(t=this.delegate)||void 0===t||t.inputControllerWillHandleInput(),e.call(this)}finally{var n;null===(n=this.delegate)||void 0===n||n.inputControllerDidHandleInput()}}createLinkHTML(e,t){const n=document.createElement("a");return n.href=e,n.textContent=t||e,n.outerHTML}}var vw;Wx(mw,"events",{});const{browser:bw,keyNames:xw}=db;let yw=0;class ww extends mw{constructor(){super(...arguments),this.resetInputSummary()}setInputSummary(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.inputSummary.eventName=this.eventName;for(const t in e){const n=e[t];this.inputSummary[t]=n}return this.inputSummary}resetInputSummary(){this.inputSummary={}}reset(){return this.resetInputSummary(),ix.reset()}elementDidMutate(e){var t,n;return this.isComposing()?null===(t=this.delegate)||void 0===t||null===(n=t.inputControllerDidAllowUnhandledInput)||void 0===n?void 0:n.call(t):this.handleInput((function(){return this.mutationIsSignificant(e)&&(this.mutationIsExpected(e)?this.requestRender():this.requestReparse()),this.reset()}))}mutationIsExpected(e){let{textAdded:t,textDeleted:n}=e;if(this.inputSummary.preferDocument)return!0;const i=null!=t?t===this.inputSummary.textAdded:!this.inputSummary.textAdded,r=null!=n?this.inputSummary.didDelete:!this.inputSummary.didDelete,s=["\n"," \n"].includes(t)&&!i,a="\n"===n&&!r;if(s&&!a||a&&!s){const e=this.getSelectedRange();if(e){var o;const n=s?t.replace(/\n$/,"").length||-1:(null==t?void 0:t.length)||1;if(null!==(o=this.responder)&&void 0!==o&&o.positionIsBlockBreak(e[1]+n))return!0}}return i&&r}mutationIsSignificant(e){var t;const n=Object.keys(e).length>0,i=""===(null===(t=this.compositionInput)||void 0===t?void 0:t.getEndData());return n||!i}getCompositionInput(){if(this.isComposing())return this.compositionInput;this.compositionInput=new _w(this)}isComposing(){return this.compositionInput&&!this.compositionInput.isEnded()}deleteInDirection(e,t){var n;return!1!==(null===(n=this.responder)||void 0===n?void 0:n.deleteInDirection(e))?this.setInputSummary({didDelete:!0}):t?(t.preventDefault(),this.requestRender()):void 0}serializeSelectionToDataTransfer(e){var t;if(!function(e){if(null==e||!e.setData)return!1;for(const t in Vb){const n=Vb[t];try{if(e.setData(t,n),!e.getData(t)===n)return!1}catch(e){return!1}}return!0}(e))return;const n=null===(t=this.responder)||void 0===t?void 0:t.getSelectedDocument().toSerializableDocument();return e.setData("application/x-trix-document",JSON.stringify(n)),e.setData("text/html",Fx.render(n).innerHTML),e.setData("text/plain",n.toString().replace(/\n$/,"")),!0}canAcceptDataTransfer(e){const t={};return Array.from((null==e?void 0:e.types)||[]).forEach((e=>{t[e]=!0})),t.Files||t["application/x-trix-document"]||t["text/html"]||t["text/plain"]}getPastedHTMLUsingHiddenElement(e){const t=this.getSelectedRange(),n={position:"absolute",left:"".concat(window.pageXOffset,"px"),top:"".concat(window.pageYOffset,"px"),opacity:0},i=Zv({style:n,tagName:"div",editable:!0});return document.body.appendChild(i),i.focus(),requestAnimationFrame((()=>{const n=i.innerHTML;return $v(i),this.setSelectedRange(t),e(n)}))}}Wx(ww,"events",{keydown(e){this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0;const t=xw[e.keyCode];if(t){var n;let i=this.keys;["ctrl","alt","shift","meta"].forEach((t=>{var n;e["".concat(t,"Key")]&&("ctrl"===t&&(t="control"),i=null===(n=i)||void 0===n?void 0:n[t])})),null!=(null===(n=i)||void 0===n?void 0:n[t])&&(this.setInputSummary({keyName:t}),ix.reset(),i[t].call(this,e))}if($b(e)){const t=String.fromCharCode(e.keyCode).toLowerCase();if(t){var i;const n=["alt","shift"].map((t=>{if(e["".concat(t,"Key")])return t})).filter((e=>e));n.push(t),null!==(i=this.delegate)&&void 0!==i&&i.inputControllerDidReceiveKeyboardCommand(n)&&e.preventDefault()}}},keypress(e){if(null!=this.inputSummary.eventName)return;if(e.metaKey)return;if(e.ctrlKey&&!e.altKey)return;const t=Sw(e);var n,i;return t?(null===(n=this.delegate)||void 0===n||n.inputControllerWillPerformTyping(),null===(i=this.responder)||void 0===i||i.insertString(t),this.setInputSummary({textAdded:t,didDelete:this.selectionIsExpanded()})):void 0},textInput(e){const{data:t}=e,{textAdded:n}=this.inputSummary;if(n&&n!==t&&n.toUpperCase()===t){var i;const e=this.getSelectedRange();return this.setSelectedRange([e[0],e[1]+n.length]),null===(i=this.responder)||void 0===i||i.insertString(t),this.setInputSummary({textAdded:t}),this.setSelectedRange(e)}},dragenter(e){e.preventDefault()},dragstart(e){var t,n;return this.serializeSelectionToDataTransfer(e.dataTransfer),this.draggedRange=this.getSelectedRange(),null===(t=this.delegate)||void 0===t||null===(n=t.inputControllerDidStartDrag)||void 0===n?void 0:n.call(t)},dragover(e){if(this.draggedRange||this.canAcceptDataTransfer(e.dataTransfer)){e.preventDefault();const i={x:e.clientX,y:e.clientY};var t,n;if(!Zb(i,this.draggingPoint))return this.draggingPoint=i,null===(t=this.delegate)||void 0===t||null===(n=t.inputControllerDidReceiveDragOverPoint)||void 0===n?void 0:n.call(t,this.draggingPoint)}},dragend(e){var t,n;null===(t=this.delegate)||void 0===t||null===(n=t.inputControllerDidCancelDrag)||void 0===n||n.call(t),this.draggedRange=null,this.draggingPoint=null},drop(e){var t,n;e.preventDefault();const i=null===(t=e.dataTransfer)||void 0===t?void 0:t.files,r=e.dataTransfer.getData("application/x-trix-document"),s={x:e.clientX,y:e.clientY};if(null===(n=this.responder)||void 0===n||n.setLocationRangeFromPointRange(s),null!=i&&i.length)this.attachFiles(i);else if(this.draggedRange){var a,o;null===(a=this.delegate)||void 0===a||a.inputControllerWillMoveText(),null===(o=this.responder)||void 0===o||o.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()}else if(r){var l;const e=uy.fromJSONString(r);null===(l=this.responder)||void 0===l||l.insertDocument(e),this.requestRender()}this.draggedRange=null,this.draggingPoint=null},cut(e){var t,n;if(null!==(t=this.responder)&&void 0!==t&&t.selectionIsExpanded()&&(this.serializeSelectionToDataTransfer(e.clipboardData)&&e.preventDefault(),null===(n=this.delegate)||void 0===n||n.inputControllerWillCutText(),this.deleteInDirection("backward"),e.defaultPrevented))return this.requestRender()},copy(e){var t;null!==(t=this.responder)&&void 0!==t&&t.selectionIsExpanded()&&this.serializeSelectionToDataTransfer(e.clipboardData)&&e.preventDefault()},paste(e){const t=e.clipboardData||e.testClipboardData,n={clipboard:t};if(!t||Cw(e))return void this.getPastedHTMLUsingHiddenElement((e=>{var t,i,r;return n.type="text/html",n.html=e,null===(t=this.delegate)||void 0===t||t.inputControllerWillPaste(n),null===(i=this.responder)||void 0===i||i.insertHTML(n.html),this.requestRender(),null===(r=this.delegate)||void 0===r?void 0:r.inputControllerDidPaste(n)}));const i=t.getData("URL"),r=t.getData("text/html"),s=t.getData("public.url-name");if(i){var a,o,l;let e;n.type="text/html",e=s?hx(s).trim():i,n.html=this.createLinkHTML(i,e),null===(a=this.delegate)||void 0===a||a.inputControllerWillPaste(n),this.setInputSummary({textAdded:e,didDelete:this.selectionIsExpanded()}),null===(o=this.responder)||void 0===o||o.insertHTML(n.html),this.requestRender(),null===(l=this.delegate)||void 0===l||l.inputControllerDidPaste(n)}else if(Ub(t)){var c,u,h;n.type="text/plain",n.string=t.getData("text/plain"),null===(c=this.delegate)||void 0===c||c.inputControllerWillPaste(n),this.setInputSummary({textAdded:n.string,didDelete:this.selectionIsExpanded()}),null===(u=this.responder)||void 0===u||u.insertString(n.string),this.requestRender(),null===(h=this.delegate)||void 0===h||h.inputControllerDidPaste(n)}else if(r){var d,p,f;n.type="text/html",n.html=r,null===(d=this.delegate)||void 0===d||d.inputControllerWillPaste(n),null===(p=this.responder)||void 0===p||p.insertHTML(n.html),this.requestRender(),null===(f=this.delegate)||void 0===f||f.inputControllerDidPaste(n)}else if(Array.from(t.types).includes("Files")){var g,m;const e=null===(g=t.items)||void 0===g||null===(g=g[0])||void 0===g||null===(m=g.getAsFile)||void 0===m?void 0:m.call(g);if(e){var v,b,x;const t=kw(e);!e.name&&t&&(e.name="pasted-file-".concat(++yw,".").concat(t)),n.type="File",n.file=e,null===(v=this.delegate)||void 0===v||v.inputControllerWillAttachFiles(),null===(b=this.responder)||void 0===b||b.insertFile(n.file),this.requestRender(),null===(x=this.delegate)||void 0===x||x.inputControllerDidPaste(n)}}e.preventDefault()},compositionstart(e){return this.getCompositionInput().start(e.data)},compositionupdate(e){return this.getCompositionInput().update(e.data)},compositionend(e){return this.getCompositionInput().end(e.data)},beforeinput(e){this.inputSummary.didInput=!0},input(e){return this.inputSummary.didInput=!0,e.stopPropagation()}}),Wx(ww,"keys",{backspace(e){var t;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",e)},delete(e){var t;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",e)},return(e){var t,n;return this.setInputSummary({preferDocument:!0}),null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n?void 0:n.insertLineBreak()},tab(e){var t,n;null!==(t=this.responder)&&void 0!==t&&t.canIncreaseNestingLevel()&&(null===(n=this.responder)||void 0===n||n.increaseNestingLevel(),this.requestRender(),e.preventDefault())},left(e){var t;if(this.selectionIsInCursorTarget())return e.preventDefault(),null===(t=this.responder)||void 0===t?void 0:t.moveCursorInDirection("backward")},right(e){var t;if(this.selectionIsInCursorTarget())return e.preventDefault(),null===(t=this.responder)||void 0===t?void 0:t.moveCursorInDirection("forward")},control:{d(e){var t;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",e)},h(e){var t;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",e)},o(e){var t,n;return e.preventDefault(),null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.insertString("\n",{updatePosition:!1}),this.requestRender()}},shift:{return(e){var t,n;null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.insertString("\n"),this.requestRender(),e.preventDefault()},tab(e){var t,n;null!==(t=this.responder)&&void 0!==t&&t.canDecreaseNestingLevel()&&(null===(n=this.responder)||void 0===n||n.decreaseNestingLevel(),this.requestRender(),e.preventDefault())},left(e){if(this.selectionIsInCursorTarget())return e.preventDefault(),this.expandSelectionInDirection("backward")},right(e){if(this.selectionIsInCursorTarget())return e.preventDefault(),this.expandSelectionInDirection("forward")}},alt:{backspace(e){var t;return this.setInputSummary({preferDocument:!1}),null===(t=this.delegate)||void 0===t?void 0:t.inputControllerWillPerformTyping()}},meta:{backspace(e){var t;return this.setInputSummary({preferDocument:!1}),null===(t=this.delegate)||void 0===t?void 0:t.inputControllerWillPerformTyping()}}}),ww.proxyMethod("responder?.getSelectedRange"),ww.proxyMethod("responder?.setSelectedRange"),ww.proxyMethod("responder?.expandSelectionInDirection"),ww.proxyMethod("responder?.selectionIsInCursorTarget"),ww.proxyMethod("responder?.selectionIsExpanded");const kw=e=>{var t;return null===(t=e.type)||void 0===t||null===(t=t.match(/\/(\w+)$/))||void 0===t?void 0:t[1]},Aw=!(null===(vw=" ".codePointAt)||void 0===vw||!vw.call(" ",0)),Sw=function(e){if(e.key&&Aw&&e.key.codePointAt(0)===e.keyCode)return e.key;{let t;if(null===e.which?t=e.keyCode:0!==e.which&&0!==e.charCode&&(t=e.charCode),null!=t&&"escape"!==xw[t])return yb.fromCodepoints([t]).toString()}},Cw=function(e){const t=e.clipboardData;if(t){if(t.types.includes("text/html")){for(const e of t.types){const n=/^CorePasteboardFlavorType/.test(e),i=/^dyn\./.test(e)&&t.getData(e);if(n||i)return!0}return!1}{const e=t.types.includes("com.apple.webarchive"),n=t.types.includes("com.apple.flat-rtfd");return e||n}}};class _w extends pb{constructor(e){super(...arguments),this.inputController=e,this.responder=this.inputController.responder,this.delegate=this.inputController.delegate,this.inputSummary=this.inputController.inputSummary,this.data={}}start(e){var t,n;(this.data.start=e,this.isSignificant())&&("keypress"===this.inputSummary.eventName&&this.inputSummary.textAdded&&(null===(n=this.responder)||void 0===n||n.deleteInDirection("left")),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=null===(t=this.responder)||void 0===t?void 0:t.getSelectedRange())}update(e){if(this.data.update=e,this.isSignificant()){const e=this.selectPlaceholder();e&&(this.forgetPlaceholder(),this.range=e)}}end(e){return this.data.end=e,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.setSelectedRange(this.range),null===(i=this.responder)||void 0===i||i.insertString(this.data.end),null===(r=this.responder)||void 0===r?void 0:r.setSelectedRange(this.range[0]+this.data.end.length)):null!=this.data.start||null!=this.data.update?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset();var t,n,i,r}getEndData(){return this.data.end}isEnded(){return null!=this.getEndData()}isSignificant(){return!bw.composesExistingText||this.inputSummary.didInput}canApplyToDocument(){var e,t;return 0===(null===(e=this.data.start)||void 0===e?void 0:e.length)&&(null===(t=this.data.end)||void 0===t?void 0:t.length)>0&&this.range}}_w.proxyMethod("inputController.setInputSummary"),_w.proxyMethod("inputController.requestRender"),_w.proxyMethod("inputController.requestReparse"),_w.proxyMethod("responder?.selectionIsExpanded"),_w.proxyMethod("responder?.insertPlaceholder"),_w.proxyMethod("responder?.selectPlaceholder"),_w.proxyMethod("responder?.forgetPlaceholder");class Ew extends mw{constructor(){super(...arguments),this.render=this.render.bind(this)}elementDidMutate(){return this.scheduledRender?this.composing?null===(e=this.delegate)||void 0===e||null===(t=e.inputControllerDidAllowUnhandledInput)||void 0===t?void 0:t.call(e):void 0:this.reparse();var e,t}scheduleRender(){return this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)}render(){var e,t;cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||null===(t=this.delegate)||void 0===t||t.render(),null===(e=this.afterRender)||void 0===e||e.call(this),this.afterRender=null}reparse(){var e;return null===(e=this.delegate)||void 0===e?void 0:e.reparse()}insertString(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.insertString(t,n)}))}toggleAttributeIfSupported(e){var t;if(Nb().includes(e))return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformFormatting(e),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.toggleCurrentAttribute(e)}))}activateAttributeIfSupported(e,t){var n;if(Nb().includes(e))return null===(n=this.delegate)||void 0===n||n.inputControllerWillPerformFormatting(e),this.withTargetDOMRange((function(){var n;return null===(n=this.responder)||void 0===n?void 0:n.setCurrentAttribute(e,t)}))}deleteInDirection(e){let{recordUndoEntry:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{recordUndoEntry:!0};var n;t&&(null===(n=this.delegate)||void 0===n||n.inputControllerWillPerformTyping());const i=()=>{var t;return null===(t=this.responder)||void 0===t?void 0:t.deleteInDirection(e)},r=this.getTargetDOMRange({minLength:2});return r?this.withTargetDOMRange(r,i):i()}withTargetDOMRange(e,t){var n;return"function"==typeof e&&(t=e,e=this.getTargetDOMRange()),e?null===(n=this.responder)||void 0===n?void 0:n.withTargetDOMRange(e,t.bind(this)):(ix.reset(),t.call(this))}getTargetDOMRange(){var e,t;let{minLength:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{minLength:0};const i=null===(e=(t=this.event).getTargetRanges)||void 0===e?void 0:e.call(t);if(i&&i.length){const e=Lw(i[0]);if(0===n||e.toString().length>=n)return e}}withEvent(e,t){let n;this.event=e;try{n=t.call(this)}finally{this.event=null}return n}}Wx(Ew,"events",{keydown(e){if($b(e)){var t;const n=Mw(e);null!==(t=this.delegate)&&void 0!==t&&t.inputControllerDidReceiveKeyboardCommand(n)&&e.preventDefault()}else{let t=e.key;e.altKey&&(t+="+Alt"),e.shiftKey&&(t+="+Shift");const n=this.constructor.keys[t];if(n)return this.withEvent(e,n)}},paste(e){var t;let n;const i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("URL");return Dw(e)?(e.preventDefault(),this.attachFiles(e.clipboardData.files)):Pw(e)?(e.preventDefault(),n={type:"text/plain",string:e.clipboardData.getData("text/plain")},null===(r=this.delegate)||void 0===r||r.inputControllerWillPaste(n),null===(s=this.responder)||void 0===s||s.insertString(n.string),this.render(),null===(a=this.delegate)||void 0===a?void 0:a.inputControllerDidPaste(n)):i?(e.preventDefault(),n={type:"text/html",html:this.createLinkHTML(i)},null===(o=this.delegate)||void 0===o||o.inputControllerWillPaste(n),null===(l=this.responder)||void 0===l||l.insertHTML(n.html),this.render(),null===(c=this.delegate)||void 0===c?void 0:c.inputControllerDidPaste(n)):void 0;var r,s,a,o,l,c},beforeinput(e){const t=this.constructor.inputTypes[e.inputType];t&&(this.withEvent(e,t),this.scheduleRender())},input(e){ix.reset()},dragstart(e){var t,n;null!==(t=this.responder)&&void 0!==t&&t.selectionContainsAttachments()&&(e.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:null===(n=this.responder)||void 0===n?void 0:n.getSelectedRange(),point:Ow(e)})},dragenter(e){Tw(e)&&e.preventDefault()},dragover(e){if(this.dragging){e.preventDefault();const n=Ow(e);var t;if(!Zb(n,this.dragging.point))return this.dragging.point=n,null===(t=this.responder)||void 0===t?void 0:t.setLocationRangeFromPointRange(n)}else Tw(e)&&e.preventDefault()},drop(e){var t,n;if(this.dragging)return e.preventDefault(),null===(t=this.delegate)||void 0===t||t.inputControllerWillMoveText(),null===(n=this.responder)||void 0===n||n.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender();if(Tw(e)){var i;e.preventDefault();const t=Ow(e);return null===(i=this.responder)||void 0===i||i.setLocationRangeFromPointRange(t),this.attachFiles(e.dataTransfer.files)}},dragend(){var e;this.dragging&&(null===(e=this.responder)||void 0===e||e.setSelectedRange(this.dragging.range),this.dragging=null)},compositionend(e){this.composing&&(this.composing=!1,Pv.recentAndroid||this.scheduleRender())}}),Wx(Ew,"keys",{ArrowLeft(){var e,t;if(null!==(e=this.responder)&&void 0!==e&&e.shouldManageMovingCursorInDirection("backward"))return this.event.preventDefault(),null===(t=this.responder)||void 0===t?void 0:t.moveCursorInDirection("backward")},ArrowRight(){var e,t;if(null!==(e=this.responder)&&void 0!==e&&e.shouldManageMovingCursorInDirection("forward"))return this.event.preventDefault(),null===(t=this.responder)||void 0===t?void 0:t.moveCursorInDirection("forward")},Backspace(){var e,t,n;if(null!==(e=this.responder)&&void 0!==e&&e.shouldManageDeletingInDirection("backward"))return this.event.preventDefault(),null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.deleteInDirection("backward"),this.render()},Tab(){var e,t;if(null!==(e=this.responder)&&void 0!==e&&e.canIncreaseNestingLevel())return this.event.preventDefault(),null===(t=this.responder)||void 0===t||t.increaseNestingLevel(),this.render()},"Tab+Shift"(){var e,t;if(null!==(e=this.responder)&&void 0!==e&&e.canDecreaseNestingLevel())return this.event.preventDefault(),null===(t=this.responder)||void 0===t||t.decreaseNestingLevel(),this.render()}}),Wx(Ew,"inputTypes",{deleteByComposition(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut(){return this.deleteInDirection("backward")},deleteByDrag(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var e;this.deleteByDragRange=null===(e=this.responder)||void 0===e?void 0:e.getSelectedRange()}))},deleteCompositionText(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent(){return this.deleteInDirection("backward")},deleteContentBackward(){return this.deleteInDirection("backward")},deleteContentForward(){return this.deleteInDirection("forward")},deleteEntireSoftLine(){return this.deleteInDirection("forward")},deleteHardLineBackward(){return this.deleteInDirection("backward")},deleteHardLineForward(){return this.deleteInDirection("forward")},deleteSoftLineBackward(){return this.deleteInDirection("backward")},deleteSoftLineForward(){return this.deleteInDirection("forward")},deleteWordBackward(){return this.deleteInDirection("backward")},deleteWordForward(){return this.deleteInDirection("forward")},formatBackColor(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold(){return this.toggleAttributeIfSupported("bold")},formatFontColor(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent(){var e;if(null!==(e=this.responder)&&void 0!==e&&e.canIncreaseNestingLevel())return this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.increaseNestingLevel()}))},formatItalic(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent(){var e;if(null!==(e=this.responder)&&void 0!==e&&e.canDecreaseNestingLevel())return this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.decreaseNestingLevel()}))},formatRemove(){this.withTargetDOMRange((function(){for(const n in null===(e=this.responder)||void 0===e?void 0:e.getCurrentAttributes()){var e,t;null===(t=this.responder)||void 0===t||t.removeCurrentAttribute(n)}}))},formatSetBlockTextDirection(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough(){return this.toggleAttributeIfSupported("strike")},formatSubscript(){return this.toggleAttributeIfSupported("sub")},formatSuperscript(){return this.toggleAttributeIfSupported("sup")},formatUnderline(){return this.toggleAttributeIfSupported("underline")},historyRedo(){var e;return null===(e=this.delegate)||void 0===e?void 0:e.inputControllerWillPerformRedo()},historyUndo(){var e;return null===(e=this.delegate)||void 0===e?void 0:e.inputControllerWillPerformUndo()},insertCompositionText(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop(){const e=this.deleteByDragRange;var t;if(e)return this.deleteByDragRange=null,null===(t=this.delegate)||void 0===t||t.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.moveTextFromRange(e)}))},insertFromPaste(){var e;const{dataTransfer:t}=this.event,n={dataTransfer:t},i=t.getData("URL"),r=t.getData("text/html");if(i){var s;let e;this.event.preventDefault(),n.type="text/html";const r=t.getData("public.url-name");e=r?hx(r).trim():i,n.html=this.createLinkHTML(i,e),null===(s=this.delegate)||void 0===s||s.inputControllerWillPaste(n),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.insertHTML(n.html)})),this.afterRender=()=>{var e;return null===(e=this.delegate)||void 0===e?void 0:e.inputControllerDidPaste(n)}}else if(Ub(t)){var a;n.type="text/plain",n.string=t.getData("text/plain"),null===(a=this.delegate)||void 0===a||a.inputControllerWillPaste(n),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.insertString(n.string)})),this.afterRender=()=>{var e;return null===(e=this.delegate)||void 0===e?void 0:e.inputControllerDidPaste(n)}}else if(r){var o;this.event.preventDefault(),n.type="text/html",n.html=r,null===(o=this.delegate)||void 0===o||o.inputControllerWillPaste(n),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.insertHTML(n.html)})),this.afterRender=()=>{var e;return null===(e=this.delegate)||void 0===e?void 0:e.inputControllerDidPaste(n)}}else if(null!==(e=t.files)&&void 0!==e&&e.length){var l;n.type="File",n.file=t.files[0],null===(l=this.delegate)||void 0===l||l.inputControllerWillPaste(n),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.insertFile(n.file)})),this.afterRender=()=>{var e;return null===(e=this.delegate)||void 0===e?void 0:e.inputControllerDidPaste(n)}}},insertFromYank(){return this.insertString(this.event.data)},insertLineBreak(){return this.insertString("\n")},insertLink(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList(){return this.toggleAttributeIfSupported("number")},insertParagraph(){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.insertLineBreak()}))},insertReplacementText(){const e=this.event.dataTransfer.getData("text/plain"),t=this.event.getTargetRanges()[0];this.withTargetDOMRange(t,(()=>{this.insertString(e,{updatePosition:!1})}))},insertText(){var e;return this.insertString(this.event.data||(null===(e=this.event.dataTransfer)||void 0===e?void 0:e.getData("text/plain")))},insertTranspose(){return this.insertString(this.event.data)},insertUnorderedList(){return this.toggleAttributeIfSupported("bullet")}});const Lw=function(e){const t=document.createRange();return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t},Tw=e=>{var t;return Array.from((null===(t=e.dataTransfer)||void 0===t?void 0:t.types)||[]).includes("Files")},Dw=function(e){const t=e.clipboardData;if(t)return t.types.includes("Files")&&1===t.types.length&&t.files.length>=1},Pw=function(e){const t=e.clipboardData;if(t)return t.types.includes("text/plain")&&1===t.types.length},Mw=function(e){const t=[];return e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.push(e.key),t},Ow=e=>({x:e.clientX,y:e.clientY}),Rw="[data-trix-attribute]",Iw="[data-trix-action]",Nw="".concat(Rw,", ").concat(Iw),Fw="[data-trix-dialog]",Bw="".concat(Fw,"[data-trix-active]"),zw="".concat(Fw," [data-trix-method]"),Yw="".concat(Fw," [data-trix-input]"),jw=(e,t)=>(t||(t=Ww(e)),e.querySelector("[data-trix-input][name='".concat(t,"']"))),Hw=e=>e.getAttribute("data-trix-action"),Ww=e=>e.getAttribute("data-trix-attribute")||e.getAttribute("data-trix-dialog-attribute");class Xw extends pb{constructor(e){super(e),this.didClickActionButton=this.didClickActionButton.bind(this),this.didClickAttributeButton=this.didClickAttributeButton.bind(this),this.didClickDialogButton=this.didClickDialogButton.bind(this),this.didKeyDownDialogInput=this.didKeyDownDialogInput.bind(this),this.element=e,this.attributes={},this.actions={},this.resetDialogInputs(),Yv("mousedown",{onElement:this.element,matchingSelector:Iw,withCallback:this.didClickActionButton}),Yv("mousedown",{onElement:this.element,matchingSelector:Rw,withCallback:this.didClickAttributeButton}),Yv("click",{onElement:this.element,matchingSelector:Nw,preventDefault:!0}),Yv("click",{onElement:this.element,matchingSelector:zw,withCallback:this.didClickDialogButton}),Yv("keydown",{onElement:this.element,matchingSelector:Yw,withCallback:this.didKeyDownDialogInput})}didClickActionButton(e,t){var n;null===(n=this.delegate)||void 0===n||n.toolbarDidClickButton(),e.preventDefault();const i=Hw(t);return this.getDialog(i)?this.toggleDialog(i):null===(r=this.delegate)||void 0===r?void 0:r.toolbarDidInvokeAction(i,t);var r}didClickAttributeButton(e,t){var n;null===(n=this.delegate)||void 0===n||n.toolbarDidClickButton(),e.preventDefault();const i=Ww(t);var r;return this.getDialog(i)?this.toggleDialog(i):null===(r=this.delegate)||void 0===r||r.toolbarDidToggleAttribute(i),this.refreshAttributeButtons()}didClickDialogButton(e,t){const n=Wv(t,{matchingSelector:Fw});return this[t.getAttribute("data-trix-method")].call(this,n)}didKeyDownDialogInput(e,t){if(13===e.keyCode){e.preventDefault();const n=t.getAttribute("name"),i=this.getDialog(n);this.setAttribute(i)}if(27===e.keyCode)return e.preventDefault(),this.hideDialog()}updateActions(e){return this.actions=e,this.refreshActionButtons()}refreshActionButtons(){return this.eachActionButton(((e,t)=>{e.disabled=!1===this.actions[t]}))}eachActionButton(e){return Array.from(this.element.querySelectorAll(Iw)).map((t=>e(t,Hw(t))))}updateAttributes(e){return this.attributes=e,this.refreshAttributeButtons()}refreshAttributeButtons(){return this.eachAttributeButton(((e,t)=>(e.disabled=!1===this.attributes[t],this.attributes[t]||this.dialogIsVisible(t)?(e.setAttribute("data-trix-active",""),e.classList.add("trix-active")):(e.removeAttribute("data-trix-active"),e.classList.remove("trix-active")))))}eachAttributeButton(e){return Array.from(this.element.querySelectorAll(Rw)).map((t=>e(t,Ww(t))))}applyKeyboardCommand(e){const t=JSON.stringify(e.sort());for(const e of Array.from(this.element.querySelectorAll("[data-trix-key]"))){const n=e.getAttribute("data-trix-key").split("+");if(JSON.stringify(n.sort())===t)return jv("mousedown",{onElement:e}),!0}return!1}dialogIsVisible(e){const t=this.getDialog(e);if(t)return t.hasAttribute("data-trix-active")}toggleDialog(e){return this.dialogIsVisible(e)?this.hideDialog():this.showDialog(e)}showDialog(e){var t,n;this.hideDialog(),null===(t=this.delegate)||void 0===t||t.toolbarWillShowDialog();const i=this.getDialog(e);i.setAttribute("data-trix-active",""),i.classList.add("trix-active"),Array.from(i.querySelectorAll("input[disabled]")).forEach((e=>{e.removeAttribute("disabled")}));const r=Ww(i);if(r){const t=jw(i,e);t&&(t.value=this.attributes[r]||"",t.select())}return null===(n=this.delegate)||void 0===n?void 0:n.toolbarDidShowDialog(e)}setAttribute(e){const t=Ww(e),n=jw(e,t);return n.willValidate&&!n.checkValidity()?(n.setAttribute("data-trix-validate",""),n.classList.add("trix-validate"),n.focus()):(null===(i=this.delegate)||void 0===i||i.toolbarDidUpdateAttribute(t,n.value),this.hideDialog());var i}removeAttribute(e){var t;const n=Ww(e);return null===(t=this.delegate)||void 0===t||t.toolbarDidRemoveAttribute(n),this.hideDialog()}hideDialog(){const e=this.element.querySelector(Bw);var t;if(e)return e.removeAttribute("data-trix-active"),e.classList.remove("trix-active"),this.resetDialogInputs(),null===(t=this.delegate)||void 0===t?void 0:t.toolbarDidHideDialog((e=>e.getAttribute("data-trix-dialog"))(e))}resetDialogInputs(){Array.from(this.element.querySelectorAll(Yw)).forEach((e=>{e.setAttribute("disabled","disabled"),e.removeAttribute("data-trix-validate"),e.classList.remove("trix-validate")}))}getDialog(e){return this.element.querySelector("[data-trix-dialog=".concat(e,"]"))}}class Vw extends sw{constructor(e){let{editorElement:t,document:n,html:i}=e;super(...arguments),this.editorElement=t,this.selectionManager=new Zy(this.editorElement),this.selectionManager.delegate=this,this.composition=new Ny,this.composition.delegate=this,this.attachmentManager=new Ry(this.composition.getAttachments()),this.attachmentManager.delegate=this,this.inputController=2===ob.getLevel()?new Ew(this.editorElement):new ww(this.editorElement),this.inputController.delegate=this,this.inputController.responder=this.composition,this.compositionController=new rw(this.editorElement,this.composition),this.compositionController.delegate=this,this.toolbarController=new Xw(this.editorElement.toolbarElement),this.toolbarController.delegate=this,this.editor=new Wy(this.composition,this.selectionManager,this.editorElement),n?this.editor.loadDocument(n):this.editor.loadHTML(i)}registerSelectionManager(){return ix.registerSelectionManager(this.selectionManager)}unregisterSelectionManager(){return ix.unregisterSelectionManager(this.selectionManager)}render(){return this.compositionController.render()}reparse(){return this.composition.replaceHTML(this.editorElement.innerHTML)}compositionDidChangeDocument(e){if(this.notifyEditorElement("document-change"),!this.handlingInput)return this.render()}compositionDidChangeCurrentAttributes(e){return this.currentAttributes=e,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})}compositionDidPerformInsertionAtRange(e){this.pasting&&(this.pastedRange=e)}compositionShouldAcceptFile(e){return this.notifyEditorElement("file-accept",{file:e})}compositionDidAddAttachment(e){const t=this.attachmentManager.manageAttachment(e);return this.notifyEditorElement("attachment-add",{attachment:t})}compositionDidEditAttachment(e){this.compositionController.rerenderViewForObject(e);const t=this.attachmentManager.manageAttachment(e);return this.notifyEditorElement("attachment-edit",{attachment:t}),this.notifyEditorElement("change")}compositionDidChangeAttachmentPreviewURL(e){return this.compositionController.invalidateViewForObject(e),this.notifyEditorElement("change")}compositionDidRemoveAttachment(e){const t=this.attachmentManager.unmanageAttachment(e);return this.notifyEditorElement("attachment-remove",{attachment:t})}compositionDidStartEditingAttachment(e,t){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(e),this.compositionController.installAttachmentEditorForAttachment(e,t),this.selectionManager.setLocationRange(this.attachmentLocationRange)}compositionDidStopEditingAttachment(e){this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null}compositionDidRequestChangingSelectionToLocationRange(e){if(!this.loadingSnapshot||this.isFocused())return this.requestedLocationRange=e,this.compositionRevisionWhenLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()}compositionWillLoadSnapshot(){this.loadingSnapshot=!0}compositionDidLoadSnapshot(){this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1}getSelectionManager(){return this.selectionManager}attachmentManagerDidRequestRemovalOfAttachment(e){return this.removeAttachment(e)}compositionControllerWillSyncDocumentView(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()}compositionControllerDidSyncDocumentView(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")}compositionControllerDidRender(){this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision}compositionControllerDidFocus(){return this.isFocusedInvisibly()&&this.setLocationRange({index:0,offset:0}),this.toolbarController.hideDialog(),this.notifyEditorElement("focus")}compositionControllerDidBlur(){return this.notifyEditorElement("blur")}compositionControllerDidSelectAttachment(e,t){return this.toolbarController.hideDialog(),this.composition.editAttachment(e,t)}compositionControllerDidRequestDeselectingAttachment(e){const t=this.attachmentLocationRange||this.composition.document.getLocationRangeOfAttachment(e);return this.selectionManager.setLocationRange(t[1])}compositionControllerWillUpdateAttachment(e){return this.editor.recordUndoEntry("Edit Attachment",{context:e.id,consolidatable:!0})}compositionControllerDidRequestRemovalOfAttachment(e){return this.removeAttachment(e)}inputControllerWillHandleInput(){this.handlingInput=!0,this.requestedRender=!1}inputControllerDidRequestRender(){this.requestedRender=!0}inputControllerDidHandleInput(){if(this.handlingInput=!1,this.requestedRender)return this.requestedRender=!1,this.render()}inputControllerDidAllowUnhandledInput(){return this.notifyEditorElement("change")}inputControllerDidRequestReparse(){return this.reparse()}inputControllerWillPerformTyping(){return this.recordTypingUndoEntry()}inputControllerWillPerformFormatting(e){return this.recordFormattingUndoEntry(e)}inputControllerWillCutText(){return this.editor.recordUndoEntry("Cut")}inputControllerWillPaste(e){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:e})}inputControllerDidPaste(e){return e.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:e})}inputControllerWillMoveText(){return this.editor.recordUndoEntry("Move")}inputControllerWillAttachFiles(){return this.editor.recordUndoEntry("Drop Files")}inputControllerWillPerformUndo(){return this.editor.undo()}inputControllerWillPerformRedo(){return this.editor.redo()}inputControllerDidReceiveKeyboardCommand(e){return this.toolbarController.applyKeyboardCommand(e)}inputControllerDidStartDrag(){this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()}inputControllerDidReceiveDragOverPoint(e){return this.selectionManager.setLocationRangeFromPointRange(e)}inputControllerDidCancelDrag(){this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null}locationRangeDidChange(e){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!Qb(this.attachmentLocationRange,e)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")}toolbarDidClickButton(){if(!this.getLocationRange())return this.setLocationRange({index:0,offset:0})}toolbarDidInvokeAction(e,t){return this.invokeAction(e,t)}toolbarDidToggleAttribute(e){if(this.recordFormattingUndoEntry(e),this.composition.toggleCurrentAttribute(e),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidUpdateAttribute(e,t){if(this.recordFormattingUndoEntry(e),this.composition.setCurrentAttribute(e,t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidRemoveAttribute(e){if(this.recordFormattingUndoEntry(e),this.composition.removeCurrentAttribute(e),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarWillShowDialog(e){return this.composition.expandSelectionForEditing(),this.freezeSelection()}toolbarDidShowDialog(e){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:e})}toolbarDidHideDialog(e){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:e})}freezeSelection(){if(!this.selectionFrozen)return this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render()}thawSelection(){if(this.selectionFrozen)return this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()}canInvokeAction(e){return!!this.actionIsExternal(e)||!(null===(t=this.actions[e])||void 0===t||null===(t=t.test)||void 0===t||!t.call(this));var t}invokeAction(e,t){return this.actionIsExternal(e)?this.notifyEditorElement("action-invoke",{actionName:e,invokingElement:t}):null===(n=this.actions[e])||void 0===n||null===(n=n.perform)||void 0===n?void 0:n.call(this);var n}actionIsExternal(e){return/^x-./.test(e)}getCurrentActions(){const e={};for(const t in this.actions)e[t]=this.canInvokeAction(t);return e}updateCurrentActions(){const e=this.getCurrentActions();if(!Zb(e,this.currentActions))return this.currentActions=e,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions})}runEditorFilters(){let e=this.composition.getSnapshot();if(Array.from(this.editor.filters).forEach((t=>{const{document:n,selectedRange:i}=e;e=t.call(this.editor,e)||{},e.document||(e.document=n),e.selectedRange||(e.selectedRange=i)})),t=e,n=this.composition.getSnapshot(),!Qb(t.selectedRange,n.selectedRange)||!t.document.isEqualTo(n.document))return this.composition.loadSnapshot(e);var t,n}updateInputElement(){const e=function(e,t){const n=Py[t];if(n)return n(e);throw new Error("unknown content type: ".concat(t))}(this.compositionController.getSerializableElement(),"text/html");return this.editorElement.setInputElementValue(e)}notifyEditorElement(e,t){switch(e){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(e,t)}removeAttachment(e){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(e),this.render()}recordFormattingUndoEntry(e){const t=Fb(e),n=this.selectionManager.getLocationRange();if(t||!Jb(n))return this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0})}recordTypingUndoEntry(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})}getUndoContext(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return[this.getLocationContext(),this.getTimeContext(),...Array.from(t)]}getLocationContext(){const e=this.selectionManager.getLocationRange();return Jb(e)?e[0].index:e}getTimeContext(){return hb.interval>0?Math.floor((new Date).getTime()/hb.interval):0}isFocused(){var e;return this.editorElement===(null===(e=this.editorElement.ownerDocument)||void 0===e?void 0:e.activeElement)}isFocusedInvisibly(){return this.isFocused()&&!this.getLocationRange()}get actions(){return this.constructor.actions}}Wx(Vw,"actions",{undo:{test(){return this.editor.canUndo()},perform(){return this.editor.undo()}},redo:{test(){return this.editor.canRedo()},perform(){return this.editor.redo()}},link:{test(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test(){return this.editor.canIncreaseNestingLevel()},perform(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test(){return this.editor.canDecreaseNestingLevel()},perform(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:()=>!0,perform(){return ob.pickFiles(this.editor.insertFiles)}}}),Vw.proxyMethod("getSelectionManager().setLocationRange"),Vw.proxyMethod("getSelectionManager().getLocationRange");var Uw=Object.freeze({__proto__:null,AttachmentEditorController:iw,CompositionController:rw,Controller:sw,EditorController:Vw,InputController:mw,Level0InputController:ww,Level2InputController:Ew,ToolbarController:Xw}),$w=Object.freeze({__proto__:null,MutationObserver:cw,SelectionChangeObserver:nx}),Gw=Object.freeze({__proto__:null,FileVerificationOperation:hw,ImagePreloadOperation:Vx});jb("trix-toolbar","%t {\n display: block;\n}\n\n%t {\n white-space: nowrap;\n}\n\n%t [data-trix-dialog] {\n display: none;\n}\n\n%t [data-trix-dialog][data-trix-active] {\n display: block;\n}\n\n%t [data-trix-dialog] [data-trix-validate]:invalid {\n background-color: #ffdddd;\n}");class qw extends HTMLElement{connectedCallback(){""===this.innerHTML&&(this.innerHTML=ub.getDefaultHTML())}}let Zw=0;const Kw=function(e){return Jw(e),Qw(e)},Jw=function(e){var t,n;if(null!==(t=(n=document).queryCommandSupported)&&void 0!==t&&t.call(n,"enableObjectResizing"))return document.execCommand("enableObjectResizing",!1,!1),Yv("mscontrolselect",{onElement:e,preventDefault:!0})},Qw=function(e){var t,n;if(null!==(t=(n=document).queryCommandSupported)&&void 0!==t&&t.call(n,"DefaultParagraphSeparator")){const{tagName:e}=Ev.default;if(["div","p"].includes(e))return document.execCommand("DefaultParagraphSeparator",!1,e)}},ek=Pv.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"};jb("trix-editor","%t {\n display: block;\n}\n\n%t:empty:not(:focus)::before {\n content: attr(placeholder);\n color: graytext;\n cursor: text;\n pointer-events: none;\n white-space: pre-line;\n}\n\n%t a[contenteditable=false] {\n cursor: text;\n}\n\n%t img {\n max-width: 100%;\n height: auto;\n}\n\n%t ".concat(Cv," figcaption textarea {\n resize: none;\n}\n\n%t ").concat(Cv," figcaption textarea.trix-autoresize-clone {\n position: absolute;\n left: -9999px;\n max-height: 0px;\n}\n\n%t ").concat(Cv," figcaption[data-trix-placeholder]:empty::before {\n content: attr(data-trix-placeholder);\n color: graytext;\n}\n\n%t [data-trix-cursor-target] {\n display: ").concat(ek.display," !important;\n width: ").concat(ek.width," !important;\n padding: 0 !important;\n margin: 0 !important;\n border: none !important;\n}\n\n%t [data-trix-cursor-target=left] {\n vertical-align: top !important;\n margin-left: -1px !important;\n}\n\n%t [data-trix-cursor-target=right] {\n vertical-align: bottom !important;\n margin-right: -1px !important;\n}"));class tk extends HTMLElement{get trixId(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++Zw),this.trixId)}get labels(){const e=[];this.id&&this.ownerDocument&&e.push(...Array.from(this.ownerDocument.querySelectorAll("label[for='".concat(this.id,"']"))||[]));const t=Wv(this,{matchingSelector:"label"});return t&&[this,null].includes(t.control)&&e.push(t),e}get toolbarElement(){var e;if(this.hasAttribute("toolbar"))return null===(e=this.ownerDocument)||void 0===e?void 0:e.getElementById(this.getAttribute("toolbar"));if(this.parentNode){const e="trix-toolbar-".concat(this.trixId);this.setAttribute("toolbar",e);const t=Zv("trix-toolbar",{id:e});return this.parentNode.insertBefore(t,this),t}}get form(){var e;return null===(e=this.inputElement)||void 0===e?void 0:e.form}get inputElement(){var e;if(this.hasAttribute("input"))return null===(e=this.ownerDocument)||void 0===e?void 0:e.getElementById(this.getAttribute("input"));if(this.parentNode){const e="trix-input-".concat(this.trixId);this.setAttribute("input",e);const t=Zv("input",{type:"hidden",id:e});return this.parentNode.insertBefore(t,this.nextElementSibling),t}}get editor(){var e;return null===(e=this.editorController)||void 0===e?void 0:e.editor}get name(){var e;return null===(e=this.inputElement)||void 0===e?void 0:e.name}get value(){var e;return null===(e=this.inputElement)||void 0===e?void 0:e.value}set value(e){var t;this.defaultValue=e,null===(t=this.editor)||void 0===t||t.loadHTML(this.defaultValue)}notify(e,t){if(this.editorController)return jv("trix-".concat(e),{onElement:this,attributes:t})}setInputElementValue(e){this.inputElement&&(this.inputElement.value=e)}connectedCallback(){this.hasAttribute("data-trix-internal")||(function(e){if(!e.hasAttribute("contenteditable"))e.setAttribute("contenteditable",""),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.times=1,Yv(e,t)}("focus",{onElement:e,withCallback:()=>Kw(e)})}(this),function(e){e.hasAttribute("role")||e.setAttribute("role","textbox")}(this),function(e){if(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))return;const t=function(){const t=Array.from(e.labels).map((t=>{if(!t.contains(e))return t.textContent})).filter((e=>e)).join(" ");return t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label")};t(),Yv("focus",{onElement:e,withCallback:t})}(this),this.editorController||(jv("trix-before-initialize",{onElement:this}),this.editorController=new Vw({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame((()=>jv("trix-initialize",{onElement:this})))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),function(e){!document.querySelector(":focus")&&e.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===e&&e.focus()}(this))}disconnectedCallback(){var e;return null===(e=this.editorController)||void 0===e||e.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()}registerResetListener(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)}unregisterResetListener(){return window.removeEventListener("reset",this.resetListener,!1)}registerClickListener(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)}unregisterClickListener(){return window.removeEventListener("click",this.clickListener,!1)}resetBubbled(e){if(!e.defaultPrevented&&e.target===this.form)return this.reset()}clickBubbled(e){if(e.defaultPrevented)return;if(this.contains(e.target))return;const t=Wv(e.target,{matchingSelector:"label"});return t&&Array.from(this.labels).includes(t)?this.focus():void 0}reset(){this.value=this.defaultValue}}const nk={VERSION:"2.0.10",config:db,core:My,models:Ky,views:Jy,controllers:Uw,observers:$w,operations:Gw,elements:Object.freeze({__proto__:null,TrixEditorElement:tk,TrixToolbarElement:qw}),filters:Object.freeze({__proto__:null,Filter:Yy,attachmentGalleryFilter:jy})};Object.assign(nk,Ky),window.Trix=nk,setTimeout((function(){customElements.get("trix-toolbar")||customElements.define("trix-toolbar",qw),customElements.get("trix-editor")||customElements.define("trix-editor",tk)}),0);const ik={class:"component-chart"},rk={key:0,class:"pl-3 pt-2"},sk={key:1};var ak={__name:"general",props:{type:{type:String,required:!0},title:{type:String},subtitle:{type:String},series:{type:Array,required:!0},labels:{type:Array,required:!1,default:()=>[]},options:{type:Object,default:()=>({})}},emits:["markerClick"],setup(e,{emit:t}){const n=t,i=e;ka();var r=Ct({});const s={series:[],labels:[],grid:{show:!1,padding:{top:0,right:0,bottom:0,left:0}},chart:{type:i.type,height:"auto",toolbar:{show:!1},events:{markerClick:function(e,t,{seriesIndex:i,dataPointIndex:r}){n("markerClick",{seriesIndex:i,dataPointIndex:r})}}},title:{text:""},legend:{show:!0,position:"top",horizontalAlign:"center"},dataLabels:{enabled:!0},stroke:{},plotOptions:{},xaxis:{categories:[],tickPlacement:"between",labels:{show:!0,rotate:-65,rotateAlways:!1,trim:!1,offsetY:5,style:{fontSize:"15px"}}},yaxis:{show:!0}},a=`component-chart-${Math.floor(1e4*Math.random())}`;return nr((()=>{s.labels=[],s.series=[],(r=new Sv(document.querySelector("#"+a),s)).render(),i.options&&r.updateOptions(i.options),i.series&&r.updateSeries(i.series),i.labels&&r.updateOptions({labels:i.labels})})),xi((()=>i.series),(e=>{r.updateSeries(e)})),xi((()=>i.labels),(e=>{["bar"].includes(i.type)?r.updateOptions({xaxis:{categories:e}}):r.updateOptions({labels:e})})),(t,n)=>(Us(),Js("div",ik,[e.title?(Us(),Js("h3",rk,le(e.title),1)):da("v-if",!0),e.subtitle?(Us(),Js("p",sk,le(e.subtitle),1)):da("v-if",!0),sa("div",{id:a})]))},__file:"source/components/charts/general.vue"},ok=(Boolean,{__name:"TextEditor",props:{modelValue:{type:String,required:!1},mode:{type:String,default:"normal",required:!1,validator:e=>["full","normal","small","empty"].includes(e)},placeholder:{type:String,required:!1}},emits:["update:modelValue","change","save"],setup(e,{emit:t}){const n=t,i=`lesli-component-text-editor-${Math.floor(1e4*Math.random())}`,r=Wt(null),s=Wt(null),a=e,o=document.createElement("button");o.classList.add("trix-lesli-button","is-hidden"),o.innerHTML='<span class="icon"><span class="material-icons">save</span></span>';const l=document.createElement("span");l.classList.add("trix-button-group");function c(){n("update:modelValue",s.value.value),n("change"),o.classList.remove("is-hidden")}function u(e){if(e&&""!=e){try{let t=JSON.parse(e);t.html&&""!=t.html&&(e=t.html)}catch(e){}r.value.editor.loadHTML(e),r.value.editor.setSelectedRange(e.length-1)}else r.value.editor.loadHTML("")}return l.appendChild(o).onclick=function(){n("save"),o.classList.add("is-hidden")},xi((()=>a.modelValue),(e=>{e=void 0===e?"":e,s?.value?.value!=e&&u(e)})),nr((()=>{a.modelValue&&r.value.editor.innerHTML!==a.modelValue&&u(a.modelValue),r.value.addEventListener("trix-attachment-add",(function(e){let t=new FileReader;t.readAsDataURL(e.attachment.file),t.addEventListener("load",(()=>{let n=document.createElement("img");n.src=t.result;let i=document.createElement("div");i.appendChild(n),r.value.editor.insertHTML(i.innerHTML),e.attachment=""}),!1)})),setTimeout((()=>{document.querySelector("."+i).querySelector(".trix-button-row").appendChild(l)}),800)})),(e,t)=>{const n=Qn("trix-editor");return Us(),Js("div",{class:Z(["lesli-component-text-editor",i,a.mode])},[sa("input",{ref_key:"editorContent",ref:s,id:i,type:"hidden",name:"content"},null,512),aa(n,{ref_key:"editorNode",ref:r,input:i,placeholder:a.placeholder,onTrixChange:c},null,8,["placeholder"])],2)}},__file:"source/components/editors/text-editor/TextEditor.vue"});const lk={key:0,class:"lastest-tickets"},ck=sa("h4",null,"Latest tickets",-1),uk=sa("hr",null,null,-1),hk={class:"form"},dk={class:"field"},pk={class:"label"},fk=sa("sup",{class:"has-text-danger"},"*",-1),gk={class:"control"},mk={class:"field"},vk={class:"label"},bk=sa("sup",{class:"has-text-danger"},"*",-1),xk={class:"control"},yk={class:"field"},wk={class:"label"},kk=sa("sup",{class:"has-text-danger"},"*",-1),Ak={class:"control"},Sk={class:"field"},Ck={class:"control"},_k={__name:"panel-support-tickets",setup(e){Nf();const t=Qr("url"),n=Ym(),i=Av(),r={tickets:{},lesli:{shared:{}}},s=[{field:"subject",label:"subject"},{field:"status_name",label:"Status"}];return i.resetForm(),xi((()=>n.showSupportTickets),(()=>{n.showSupportTickets&&(i.fetchTickets(),i.loaded)})),(e,a)=>{const o=Qn("lesli-table"),l=Qn("lesli-select"),c=Qn("lesli-button"),u=Qn("lesli-form"),h=Qn("lesli-panel");return Us(),Qs(h,{class:"lesli-panel-support-tickets",open:Gt(n).showSupportTickets,"onUpdate:open":a[3]||(a[3]=e=>Gt(n).showSupportTickets=e)},{header:Xn((()=>[ua(" Support tickets ")])),default:Xn((()=>[Gt(i).tickets.length>0?(Us(),Js("div",lk,[ck,aa(o,{class:"is-narrow",columns:s,records:Gt(i).tickets,loading:Gt(i).loading,href:e=>Gt(t).support("tickets/:id",e.id)},null,8,["records","loading","href"])])):da("v-if",!0),uk,sa("div",hk,[aa(u,{flat:"",onSubmit:Gt(i).postTicket},{default:Xn((()=>[sa("div",dk,[sa("label",pk,[ua(le(r.tickets.column_subject)+" "+le(r.tickets.column_subject)+" ",1),fk]),sa("div",gk,[Si(sa("input",{type:"text",class:"input",required:"","onUpdate:modelValue":a[0]||(a[0]=e=>Gt(i).ticket.subject=e)},null,512),[[hl,Gt(i).ticket.subject]])])]),sa("div",mk,[sa("label",vk,[ua(le(r.tickets.column_type)+" ",1),bk]),sa("div",xk,[aa(l,{options:Gt(i).typesSelect,modelValue:Gt(i).ticket.cloud_help_catalog_ticket_types_id,"onUpdate:modelValue":a[1]||(a[1]=e=>Gt(i).ticket.cloud_help_catalog_ticket_types_id=e)},null,8,["options","modelValue"])])]),sa("div",yk,[sa("label",wk,[ua(le(r.tickets.column_description)+" ",1),kk]),sa("div",Ak,[aa(Gt(ok),{mode:"small",modelValue:Gt(i).ticket.description,"onUpdate:modelValue":a[2]||(a[2]=e=>Gt(i).ticket.description=e)},null,8,["modelValue"])])]),sa("div",Sk,[sa("div",Ck,[aa(c,{icon:"save"},{default:Xn((()=>[ua(le(r.lesli.shared.button_save),1)])),_:1})])])])),_:1},8,["onSubmit"])])])),_:1},8,["open"])}}},Ek=np("lesli.panelBellNotifications",{state:()=>({loading:!1,notifications:{pagination:{},records:[]}}),actions:{get(){this.http.get(this.url.bell("notifications")).then((e=>{this.notifications.pagination=e.pagination,this.notifications.records=e.records,console.log(e)})).catch((e=>{console.log(e)}))}}}),Lk={class:"block"},Tk={class:""},Dk={class:"lesli-notification pt-3 pb-2 px-4"},Pk=["href"],Mk={class:"icon-text is-flex"},Ok={class:"is-flex-grow-1"},Rk={class:"icon"},Ik={key:0,class:"material-icons"},Nk={key:1,class:"material-icons"},Fk={key:2,class:"material-icons"},Bk={key:3,class:"material-icons"},zk={class:"notification-body"},Yk={class:"notification-date is-flex is-justify-content-space-between"},jk=["onClick"],Hk=sa("div",{class:"block px-5"},[da(' \n <lesli-pagination :pagination="storeNotifications.notifications.pagination" @paginate="paginate" mode="simple"></lesli-pagination>\n ')],-1),Wk={__name:"panel-bell-notifications",setup(e){const t=Ym(),n=Ek(),i=(Qr("url"),Qr("date"));return xi((()=>t.showNotifications),(()=>{n.get()})),(e,r)=>{const s=Qn("lesli-panel");return Us(),Qs(s,{class:"lesli-panel-bell-notifications",open:Gt(t).showNotifications,"onUpdate:open":r[0]||(r[0]=e=>Gt(t).showNotifications=e)},{header:Xn((()=>[ua(" Notifications ("+le(Gt(n).notifications.pagination.total)+") ",1)])),default:Xn((()=>[sa("div",Lk,[sa("ul",Tk,[(Us(!0),Js(Ys,null,hr(Gt(n).notifications.records,(t=>(Us(),Js("li",Dk,[sa("a",{href:t.url,class:Z(["mb-2 is-block",`notification-${t.category}`])},[sa("h4",{class:Z(["notification-title",`has-text-${t.category}-dark`])},[sa("span",Mk,[sa("span",Ok,le(t.subject),1),sa("span",Rk,["warning"==t.category?(Us(),Js("span",Ik,"warning")):da("v-if",!0),"success"==t.category?(Us(),Js("span",Nk,"done")):da("v-if",!0),"danger"==t.category?(Us(),Js("span",Fk,"dangerous")):da("v-if",!0),"info"==t.category?(Us(),Js("span",Bk,"info")):da("v-if",!0)])])],2),sa("p",zk,le(t.body),1)],10,Pk),sa("p",Yk,[sa("span",null,le(Gt(i).dateTime(t.created_at)),1),sa("button",{class:"button is-text p-0",onClick:n=>e.storeUser.putNotification(t)}," Mark as read ",8,jk)])])))),256))])]),Hk])),_:1},8,["open"])}}};function Xk(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vk(e){return e instanceof Xk(e).Element||e instanceof Element}function Uk(e){return e instanceof Xk(e).HTMLElement||e instanceof HTMLElement}function $k(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Xk(e).ShadowRoot||e instanceof ShadowRoot)}var Gk=Math.max,qk=Math.min,Zk=Math.round;function Kk(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Jk(){return!/^((?!chrome|android).)*safari/i.test(Kk())}function Qk(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&Uk(e)&&(r=e.offsetWidth>0&&Zk(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Zk(i.height)/e.offsetHeight||1);var a=(Vk(e)?Xk(e):window).visualViewport,o=!Jk()&&n,l=(i.left+(o&&a?a.offsetLeft:0))/r,c=(i.top+(o&&a?a.offsetTop:0))/s,u=i.width/r,h=i.height/s;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function eA(e){var t=Xk(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tA(e){return e?(e.nodeName||"").toLowerCase():null}function nA(e){return((Vk(e)?e.ownerDocument:e.document)||window.document).documentElement}function iA(e){return Qk(nA(e)).left+eA(e).scrollLeft}function rA(e){return Xk(e).getComputedStyle(e)}function sA(e){var t=rA(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function aA(e,t,n){void 0===n&&(n=!1);var i,r,s=Uk(t),a=Uk(t)&&function(e){var t=e.getBoundingClientRect(),n=Zk(t.width)/e.offsetWidth||1,i=Zk(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=nA(t),l=Qk(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==tA(t)||sA(o))&&(c=(i=t)!==Xk(i)&&Uk(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:eA(i)),Uk(t)?((u=Qk(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=iA(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function oA(e){var t=Qk(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function lA(e){return"html"===tA(e)?e:e.assignedSlot||e.parentNode||($k(e)?e.host:null)||nA(e)}function cA(e){return["html","body","#document"].indexOf(tA(e))>=0?e.ownerDocument.body:Uk(e)&&sA(e)?e:cA(lA(e))}function uA(e,t){var n;void 0===t&&(t=[]);var i=cA(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),s=Xk(i),a=r?[s].concat(s.visualViewport||[],sA(i)?i:[]):i,o=t.concat(a);return r?o:o.concat(uA(lA(a)))}function hA(e){return["table","td","th"].indexOf(tA(e))>=0}function dA(e){return Uk(e)&&"fixed"!==rA(e).position?e.offsetParent:null}function pA(e){for(var t=Xk(e),n=dA(e);n&&hA(n)&&"static"===rA(n).position;)n=dA(n);return n&&("html"===tA(n)||"body"===tA(n)&&"static"===rA(n).position)?t:n||function(e){var t=/firefox/i.test(Kk());if(/Trident/i.test(Kk())&&Uk(e)&&"fixed"===rA(e).position)return null;var n=lA(e);for($k(n)&&(n=n.host);Uk(n)&&["html","body"].indexOf(tA(n))<0;){var i=rA(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var fA="top",gA="bottom",mA="right",vA="left",bA="auto",xA=[fA,gA,mA,vA],yA="start",wA="end",kA="viewport",AA="popper",SA=xA.reduce((function(e,t){return e.concat([t+"-"+yA,t+"-"+wA])}),[]),CA=[].concat(xA,[bA]).reduce((function(e,t){return e.concat([t,t+"-"+yA,t+"-"+wA])}),[]),_A=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function EA(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function LA(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var TA={placement:"bottom",modifiers:[],strategy:"absolute"};function DA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function PA(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,s=void 0===r?TA:r;return function(e,t,n){void 0===n&&(n=s);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},TA,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],o=!1,l={state:r,setOptions:function(n){var o="function"==typeof n?n(r.options):n;c(),r.options=Object.assign({},s,r.options,o),r.scrollParents={reference:Vk(e)?uA(e):e.contextElement?uA(e.contextElement):[],popper:uA(t)};var u,h,d=function(e){var t=EA(e);return _A.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(i,r.options.modifiers),h=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(h).map((function(e){return h[e]}))));return r.orderedModifiers=d.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:r,name:t,instance:l,options:i}),c=function(){};a.push(o||c)}})),l.update()},forceUpdate:function(){if(!o){var e=r.elements,t=e.reference,n=e.popper;if(DA(t,n)){r.rects={reference:aA(t,pA(n),"fixed"===r.options.strategy),popper:oA(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<r.orderedModifiers.length;i++)if(!0!==r.reset){var s=r.orderedModifiers[i],a=s.fn,c=s.options,u=void 0===c?{}:c,h=s.name;"function"==typeof a&&(r=a({state:r,options:u,name:h,instance:l})||r)}else r.reset=!1,i=-1}}},update:LA((function(){return new Promise((function(e){l.forceUpdate(),e(r)}))})),destroy:function(){c(),o=!0}};if(!DA(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!o&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var MA={passive:!0};const OA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=void 0===r||r,a=i.resize,o=void 0===a||a,l=Xk(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,MA)})),o&&l.addEventListener("resize",n.update,MA),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,MA)})),o&&l.removeEventListener("resize",n.update,MA)}},data:{}};function RA(e){return e.split("-")[0]}function IA(e){return e.split("-")[1]}function NA(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function FA(e){var t,n=e.reference,i=e.element,r=e.placement,s=r?RA(r):null,a=r?IA(r):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case fA:t={x:o,y:n.y-i.height};break;case gA:t={x:o,y:n.y+n.height};break;case mA:t={x:n.x+n.width,y:l};break;case vA:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?NA(s):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case yA:t[c]=t[c]-(n[u]/2-i[u]/2);break;case wA:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}const BA={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=FA({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var zA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YA(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=a.x,p=void 0===d?0:d,f=a.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),x=vA,y=fA,w=window;if(c){var k=pA(n),A="clientHeight",S="clientWidth";if(k===Xk(n)&&"static"!==rA(k=nA(n)).position&&"absolute"===o&&(A="scrollHeight",S="scrollWidth"),r===fA||(r===vA||r===mA)&&s===wA)y=gA,g-=(h&&k===w&&w.visualViewport?w.visualViewport.height:k[A])-i.height,g*=l?1:-1;if(r===vA||(r===fA||r===gA)&&s===wA)x=mA,p-=(h&&k===w&&w.visualViewport?w.visualViewport.width:k[S])-i.width,p*=l?1:-1}var C,_=Object.assign({position:o},c&&zA),E=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:Zk(n*r)/r||0,y:Zk(i*r)/r||0}}({x:p,y:g},Xk(n)):{x:p,y:g};return p=E.x,g=E.y,l?Object.assign({},_,((C={})[y]=b?"0":"",C[x]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},_,((t={})[y]=b?g+"px":"",t[x]=v?p+"px":"",t.transform="",t))}const jA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,a=void 0===s||s,o=n.roundOffsets,l=void 0===o||o,c={placement:RA(t.placement),variation:IA(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,YA(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,YA(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const HA={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];Uk(r)&&tA(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Uk(i)&&tA(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};const WA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=void 0===r?[0,0]:r,a=CA.reduce((function(e,n){return e[n]=function(e,t,n){var i=RA(e),r=[vA,fA].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],o=s[1];return a=a||0,o=(o||0)*r,[vA,mA].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}(n,t.rects,s),e}),{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}};var XA={left:"right",right:"left",bottom:"top",top:"bottom"};function VA(e){return e.replace(/left|right|bottom|top/g,(function(e){return XA[e]}))}var UA={start:"end",end:"start"};function $A(e){return e.replace(/start|end/g,(function(e){return UA[e]}))}function GA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$k(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function qA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ZA(e,t,n){return t===kA?qA(function(e,t){var n=Xk(e),i=nA(e),r=n.visualViewport,s=i.clientWidth,a=i.clientHeight,o=0,l=0;if(r){s=r.width,a=r.height;var c=Jk();(c||!c&&"fixed"===t)&&(o=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:o+iA(e),y:l}}(e,n)):Vk(t)?function(e,t){var n=Qk(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):qA(function(e){var t,n=nA(e),i=eA(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=Gk(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Gk(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-i.scrollLeft+iA(e),l=-i.scrollTop;return"rtl"===rA(r||n).direction&&(o+=Gk(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:o,y:l}}(nA(e)))}function KA(e,t,n,i){var r="clippingParents"===t?function(e){var t=uA(lA(e)),n=["absolute","fixed"].indexOf(rA(e).position)>=0&&Uk(e)?pA(e):e;return Vk(n)?t.filter((function(e){return Vk(e)&&GA(e,n)&&"body"!==tA(e)})):[]}(e):[].concat(t),s=[].concat(r,[n]),a=s[0],o=s.reduce((function(t,n){var r=ZA(e,n,i);return t.top=Gk(r.top,t.top),t.right=qk(r.right,t.right),t.bottom=qk(r.bottom,t.bottom),t.left=Gk(r.left,t.left),t}),ZA(e,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function JA(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function QA(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function eS(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,s=n.strategy,a=void 0===s?e.strategy:s,o=n.boundary,l=void 0===o?"clippingParents":o,c=n.rootBoundary,u=void 0===c?kA:c,h=n.elementContext,d=void 0===h?AA:h,p=n.altBoundary,f=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=JA("number"!=typeof m?m:QA(m,xA)),b=d===AA?"reference":AA,x=e.rects.popper,y=e.elements[f?b:d],w=KA(Vk(y)?y:y.contextElement||nA(e.elements.popper),l,u,a),k=Qk(e.elements.reference),A=FA({reference:k,element:x,strategy:"absolute",placement:r}),S=qA(Object.assign({},x,A)),C=d===AA?S:k,_={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},E=e.modifiersData.offset;if(d===AA&&E){var L=E[r];Object.keys(_).forEach((function(e){var t=[mA,gA].indexOf(e)>=0?1:-1,n=[fA,gA].indexOf(e)>=0?"y":"x";_[e]+=L[n]*t}))}return _}const tS={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=void 0===r||r,a=n.altAxis,o=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,v=RA(m),b=l||(v===m||!f?[VA(m)]:function(e){if(RA(e)===bA)return[];var t=VA(e);return[$A(e),t,$A(t)]}(m)),x=[m].concat(b).reduce((function(e,n){return e.concat(RA(n)===bA?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?CA:l,u=IA(i),h=u?o?SA:SA.filter((function(e){return IA(e)===u})):xA,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var p=d.reduce((function(t,n){return t[n]=eS(e,{placement:n,boundary:r,rootBoundary:s,padding:a})[RA(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,w=t.rects.popper,k=new Map,A=!0,S=x[0],C=0;C<x.length;C++){var _=x[C],E=RA(_),L=IA(_)===yA,T=[fA,gA].indexOf(E)>=0,D=T?"width":"height",P=eS(t,{placement:_,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),M=T?L?mA:vA:L?gA:fA;y[D]>w[D]&&(M=VA(M));var O=VA(M),R=[];if(s&&R.push(P[E]<=0),o&&R.push(P[M]<=0,P[O]<=0),R.every((function(e){return e}))){S=_,A=!1;break}k.set(_,R)}if(A)for(var I=function(e){var t=x.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=f?3:1;N>0;N--){if("break"===I(N))break}t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function nS(e,t,n){return Gk(e,qk(t,n))}const iS={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=void 0===r||r,a=n.altAxis,o=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,g=void 0===f?0:f,m=eS(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),v=RA(t.placement),b=IA(t.placement),x=!b,y=NA(v),w="x"===y?"y":"x",k=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,_="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(s){var T,D="y"===y?fA:vA,P="y"===y?gA:mA,M="y"===y?"height":"width",O=k[y],R=O+m[D],I=O-m[P],N=p?-S[M]/2:0,F=b===yA?A[M]:S[M],B=b===yA?-S[M]:-A[M],z=t.elements.arrow,Y=p&&z?oA(z):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=j[D],W=j[P],X=nS(0,A[M],Y[M]),V=x?A[M]/2-N-X-H-_.mainAxis:F-X-H-_.mainAxis,U=x?-A[M]/2+N+X+W+_.mainAxis:B+X+W+_.mainAxis,$=t.elements.arrow&&pA(t.elements.arrow),G=$?"y"===y?$.clientTop||0:$.clientLeft||0:0,q=null!=(T=null==E?void 0:E[y])?T:0,Z=O+U-q,K=nS(p?qk(R,O+V-q-G):R,O,p?Gk(I,Z):I);k[y]=K,L[y]=K-O}if(o){var J,Q="x"===y?fA:vA,ee="x"===y?gA:mA,te=k[w],ne="y"===w?"height":"width",ie=te+m[Q],re=te-m[ee],se=-1!==[fA,vA].indexOf(v),ae=null!=(J=null==E?void 0:E[w])?J:0,oe=se?ie:te-A[ne]-S[ne]-ae+_.altAxis,le=se?te+A[ne]+S[ne]-ae-_.altAxis:re,ce=p&&se?function(e,t,n){var i=nS(e,t,n);return i>n?n:i}(oe,te,le):nS(p?oe:ie,te,p?le:re);k[w]=ce,L[w]=ce-te}t.modifiersData[i]=L}},requiresIfExists:["offset"]};const rS={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,o=RA(n.placement),l=NA(o),c=[vA,mA].indexOf(o)>=0?"height":"width";if(s&&a){var u=function(e,t){return JA("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:QA(e,xA))}(r.padding,n),h=oA(s),d="y"===l?fA:vA,p="y"===l?gA:mA,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=pA(s),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=f/2-g/2,x=u[d],y=v-h[c]-u[p],w=v/2-h[c]/2+b,k=nS(x,w,y),A=l;n.modifiersData[i]=((t={})[A]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&GA(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sS(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function aS(e){return[fA,mA,gA,vA].some((function(t){return e[t]>=0}))}const oS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=eS(t,{elementContext:"reference"}),o=eS(t,{altBoundary:!0}),l=sS(a,i),c=sS(o,r,s),u=aS(l),h=aS(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var lS=PA({defaultModifiers:[OA,BA,jA,HA,WA,tS,iS,rS,oS]}),cS=Object.defineProperty,uS=(e,t,n)=>(((e,t,n)=>{t in e?cS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),hS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function dS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pS=Object.prototype.hasOwnProperty;var fS=function(e,t){return null!=e&&pS.call(e,t)},gS=Array.isArray,mS="object"==typeof hS&&hS&&hS.Object===Object&&hS,vS=mS,bS="object"==typeof self&&self&&self.Object===Object&&self,xS=vS||bS||Function("return this")(),yS=xS.Symbol,wS=yS,kS=Object.prototype,AS=kS.hasOwnProperty,SS=kS.toString,CS=wS?wS.toStringTag:void 0;var _S=function(e){var t=AS.call(e,CS),n=e[CS];try{e[CS]=void 0;var i=!0}catch(e){}var r=SS.call(e);return i&&(t?e[CS]=n:delete e[CS]),r},ES=Object.prototype.toString;var LS=_S,TS=function(e){return ES.call(e)},DS=yS?yS.toStringTag:void 0;var PS=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":DS&&DS in Object(e)?LS(e):TS(e)};var MS=function(e){return null!=e&&"object"==typeof e},OS=PS,RS=MS;var IS=function(e){return"symbol"==typeof e||RS(e)&&"[object Symbol]"==OS(e)},NS=gS,FS=IS,BS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zS=/^\w*$/;var YS=function(e,t){if(NS(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!FS(e))||(zS.test(e)||!BS.test(e)||null!=t&&e in Object(t))};var jS=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},HS=PS,WS=jS;var XS=function(e){if(!WS(e))return!1;var t=HS(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},VS=xS["__core-js_shared__"],US=function(){var e=/[^.]+$/.exec(VS&&VS.keys&&VS.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var $S=function(e){return!!US&&US in e},GS=Function.prototype.toString;var qS=function(e){if(null!=e){try{return GS.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ZS=XS,KS=$S,JS=jS,QS=qS,eC=/^\[object .+?Constructor\]$/,tC=Function.prototype,nC=Object.prototype,iC=tC.toString,rC=nC.hasOwnProperty,sC=RegExp("^"+iC.call(rC).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var aC=function(e){return!(!JS(e)||KS(e))&&(ZS(e)?sC:eC).test(QS(e))},oC=function(e,t){return null==e?void 0:e[t]};var lC=function(e,t){var n=oC(e,t);return aC(n)?n:void 0},cC=lC(Object,"create"),uC=cC;var hC=function(){this.__data__=uC?uC(null):{},this.size=0};var dC=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pC=cC,fC=Object.prototype.hasOwnProperty;var gC=function(e){var t=this.__data__;if(pC){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return fC.call(t,e)?t[e]:void 0},mC=cC,vC=Object.prototype.hasOwnProperty;var bC=cC;var xC=hC,yC=dC,wC=gC,kC=function(e){var t=this.__data__;return mC?void 0!==t[e]:vC.call(t,e)},AC=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bC&&void 0===t?"__lodash_hash_undefined__":t,this};function SC(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}SC.prototype.clear=xC,SC.prototype.delete=yC,SC.prototype.get=wC,SC.prototype.has=kC,SC.prototype.set=AC;var CC=SC;var _C=function(){this.__data__=[],this.size=0};var EC=function(e,t){return e===t||e!=e&&t!=t},LC=EC;var TC=function(e,t){for(var n=e.length;n--;)if(LC(e[n][0],t))return n;return-1},DC=TC,PC=Array.prototype.splice;var MC=TC;var OC=TC;var RC=TC;var IC=_C,NC=function(e){var t=this.__data__,n=DC(t,e);return!(n<0)&&(n==t.length-1?t.pop():PC.call(t,n,1),--this.size,!0)},FC=function(e){var t=this.__data__,n=MC(t,e);return n<0?void 0:t[n][1]},BC=function(e){return OC(this.__data__,e)>-1},zC=function(e,t){var n=this.__data__,i=RC(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function YC(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}YC.prototype.clear=IC,YC.prototype.delete=NC,YC.prototype.get=FC,YC.prototype.has=BC,YC.prototype.set=zC;var jC=YC,HC=lC(xS,"Map"),WC=CC,XC=jC,VC=HC;var UC=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var $C=function(e,t){var n=e.__data__;return UC(t)?n["string"==typeof t?"string":"hash"]:n.map},GC=$C;var qC=$C;var ZC=$C;var KC=$C;var JC=function(e,t){var n=KC(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},QC=function(){this.size=0,this.__data__={hash:new WC,map:new(VC||XC),string:new WC}},e_=function(e){var t=GC(this,e).delete(e);return this.size-=t?1:0,t},t_=function(e){return qC(this,e).get(e)},n_=function(e){return ZC(this,e).has(e)},i_=JC;function r_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}r_.prototype.clear=QC,r_.prototype.delete=e_,r_.prototype.get=t_,r_.prototype.has=n_,r_.prototype.set=i_;var s_=r_,a_=s_;function o_(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=e.apply(this,i);return n.cache=s.set(r,a)||s,a};return n.cache=new(o_.Cache||a_),n}o_.Cache=a_;var l_=o_;var c_=function(e){var t=l_(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h_=/\\(\\)?/g,d_=c_((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(u_,(function(e,n,i,r){t.push(i?r.replace(h_,"$1"):n||e)})),t}));var p_=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r},f_=gS,g_=IS,m_=yS?yS.prototype:void 0,v_=m_?m_.toString:void 0;var b_=function e(t){if("string"==typeof t)return t;if(f_(t))return p_(t,e)+"";if(g_(t))return v_?v_.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},x_=b_;var y_=gS,w_=YS,k_=d_,A_=function(e){return null==e?"":x_(e)};var S_=function(e,t){return y_(e)?e:w_(e,t)?[e]:k_(A_(e))},C_=PS,__=MS;var E_=function(e){return __(e)&&"[object Arguments]"==C_(e)},L_=MS,T_=Object.prototype,D_=T_.hasOwnProperty,P_=T_.propertyIsEnumerable,M_=E_(function(){return arguments}())?E_:function(e){return L_(e)&&D_.call(e,"callee")&&!P_.call(e,"callee")},O_=/^(?:0|[1-9]\d*)$/;var R_=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&O_.test(e))&&e>-1&&e%1==0&&e<t};var I_=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},N_=IS;var F_=function(e){if("string"==typeof e||N_(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},B_=S_,z_=M_,Y_=gS,j_=R_,H_=I_,W_=F_;var X_=function(e,t,n){for(var i=-1,r=(t=B_(t,e)).length,s=!1;++i<r;){var a=W_(t[i]);if(!(s=null!=e&&n(e,a)))break;e=e[a]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&H_(r)&&j_(a,r)&&(Y_(e)||z_(e))},V_=fS,U_=X_;var $_=function(e,t){return null!=e&&U_(e,t,V_)},G_=PS,q_=MS;var Z_=function(e){return q_(e)&&"[object Date]"==G_(e)};var K_,J_,Q_,eE,tE,nE,iE,rE=function(e){return function(t){return e(t)}},sE={},aE={get exports(){return sE},set exports(e){sE=e}};K_=aE,Q_=mS,eE=(J_=sE)&&!J_.nodeType&&J_,tE=eE&&K_&&!K_.nodeType&&K_,nE=tE&&tE.exports===eE&&Q_.process,iE=function(){try{var e=tE&&tE.require&&tE.require("util").types;return e||nE&&nE.binding&&nE.binding("util")}catch(e){}}(),K_.exports=iE;var oE=Z_,lE=rE,cE=sE&&sE.isDate,uE=cE?lE(cE):oE,hE=PS,dE=gS,pE=MS;var fE=function(e){return"string"==typeof e||!dE(e)&&pE(e)&&"[object String]"==hE(e)};var gE=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},mE=jC;var vE=jC,bE=HC,xE=s_;var yE=jC,wE=function(){this.__data__=new mE,this.size=0},kE=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},AE=function(e){return this.__data__.get(e)},SE=function(e){return this.__data__.has(e)},CE=function(e,t){var n=this.__data__;if(n instanceof vE){var i=n.__data__;if(!bE||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new xE(i)}return n.set(e,t),this.size=n.size,this};function _E(e){var t=this.__data__=new yE(e);this.size=t.size}_E.prototype.clear=wE,_E.prototype.delete=kE,_E.prototype.get=AE,_E.prototype.has=SE,_E.prototype.set=CE;var EE=_E;var LE=s_,TE=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},DE=function(e){return this.__data__.has(e)};function PE(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new LE;++t<n;)this.add(e[t])}PE.prototype.add=PE.prototype.push=TE,PE.prototype.has=DE;var ME=function(e,t){return e.has(t)},OE=PE,RE=gE,IE=ME;var NE=function(e,t,n,i,r,s){var a=1&n,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&n?new OE:void 0;for(s.set(e,t),s.set(t,e);++h<o;){var f=e[h],g=t[h];if(i)var m=a?i(g,f,h,t,e,s):i(f,g,h,e,t,s);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!RE(t,(function(e,t){if(!IE(p,t)&&(f===e||r(f,e,n,i,s)))return p.push(t)}))){d=!1;break}}else if(f!==g&&!r(f,g,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d},FE=xS.Uint8Array;var BE=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var zE=FE,YE=EC,jE=NE,HE=BE,WE=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},XE=yS?yS.prototype:void 0,VE=XE?XE.valueOf:void 0;var UE=function(e,t,n,i,r,s,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new zE(e),new zE(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return YE(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=HE;case"[object Set]":var l=1&i;if(o||(o=WE),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=2,a.set(e,t);var u=jE(o(e),o(t),i,r,s,a);return a.delete(e),u;case"[object Symbol]":if(VE)return VE.call(e)==VE.call(t)}return!1};var $E=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},GE=$E,qE=gS;var ZE=function(e,t,n){var i=t(e);return qE(e)?i:GE(i,n(e))};var KE=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var a=e[n];t(a,n,e)&&(s[r++]=a)}return s},JE=function(){return[]},QE=Object.prototype.propertyIsEnumerable,eL=Object.getOwnPropertySymbols,tL=eL?function(e){return null==e?[]:(e=Object(e),KE(eL(e),(function(t){return QE.call(e,t)})))}:JE;var nL=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},iL={},rL={get exports(){return iL},set exports(e){iL=e}};var sL=function(){return!1};!function(e,t){var n=xS,i=sL,r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,a=s&&s.exports===r?n.Buffer:void 0,o=(a?a.isBuffer:void 0)||i;e.exports=o}(rL,iL);var aL=PS,oL=I_,lL=MS,cL={};cL["[object Float32Array]"]=cL["[object Float64Array]"]=cL["[object Int8Array]"]=cL["[object Int16Array]"]=cL["[object Int32Array]"]=cL["[object Uint8Array]"]=cL["[object Uint8ClampedArray]"]=cL["[object Uint16Array]"]=cL["[object Uint32Array]"]=!0,cL["[object Arguments]"]=cL["[object Array]"]=cL["[object ArrayBuffer]"]=cL["[object Boolean]"]=cL["[object DataView]"]=cL["[object Date]"]=cL["[object Error]"]=cL["[object Function]"]=cL["[object Map]"]=cL["[object Number]"]=cL["[object Object]"]=cL["[object RegExp]"]=cL["[object Set]"]=cL["[object String]"]=cL["[object WeakMap]"]=!1;var uL=function(e){return lL(e)&&oL(e.length)&&!!cL[aL(e)]},hL=rE,dL=sE&&sE.isTypedArray,pL=dL?hL(dL):uL,fL=nL,gL=M_,mL=gS,vL=iL,bL=R_,xL=pL,yL=Object.prototype.hasOwnProperty;var wL=function(e,t){var n=mL(e),i=!n&&gL(e),r=!n&&!i&&vL(e),s=!n&&!i&&!r&&xL(e),a=n||i||r||s,o=a?fL(e.length,String):[],l=o.length;for(var c in e)!t&&!yL.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bL(c,l))||o.push(c);return o},kL=Object.prototype;var AL=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||kL)};var SL=function(e,t){return function(n){return e(t(n))}},CL=SL(Object.keys,Object),_L=AL,EL=CL,LL=Object.prototype.hasOwnProperty;var TL=XS,DL=I_;var PL=function(e){return null!=e&&DL(e.length)&&!TL(e)},ML=wL,OL=function(e){if(!_L(e))return EL(e);var t=[];for(var n in Object(e))LL.call(e,n)&&"constructor"!=n&&t.push(n);return t},RL=PL;var IL=function(e){return RL(e)?ML(e):OL(e)},NL=ZE,FL=tL,BL=IL;var zL=function(e){return NL(e,BL,FL)},YL=Object.prototype.hasOwnProperty;var jL=function(e,t,n,i,r,s){var a=1&n,o=zL(e),l=o.length;if(l!=zL(t).length&&!a)return!1;for(var c=l;c--;){var u=o[c];if(!(a?u in t:YL.call(t,u)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var f=a;++c<l;){var g=e[u=o[c]],m=t[u];if(i)var v=a?i(m,g,u,t,e,s):i(g,m,u,e,t,s);if(!(void 0===v?g===m||r(g,m,n,i,s):v)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(p=!1)}return s.delete(e),s.delete(t),p},HL=lC(xS,"DataView"),WL=HC,XL=lC(xS,"Promise"),VL=lC(xS,"Set"),UL=lC(xS,"WeakMap"),$L=PS,GL=qS,qL="[object Map]",ZL="[object Promise]",KL="[object Set]",JL="[object WeakMap]",QL="[object DataView]",eT=GL(HL),tT=GL(WL),nT=GL(XL),iT=GL(VL),rT=GL(UL),sT=$L;(HL&&sT(new HL(new ArrayBuffer(1)))!=QL||WL&&sT(new WL)!=qL||XL&&sT(XL.resolve())!=ZL||VL&&sT(new VL)!=KL||UL&&sT(new UL)!=JL)&&(sT=function(e){var t=$L(e),n="[object Object]"==t?e.constructor:void 0,i=n?GL(n):"";if(i)switch(i){case eT:return QL;case tT:return qL;case nT:return ZL;case iT:return KL;case rT:return JL}return t});var aT=EE,oT=NE,lT=UE,cT=jL,uT=sT,hT=gS,dT=iL,pT=pL,fT="[object Arguments]",gT="[object Array]",mT="[object Object]",vT=Object.prototype.hasOwnProperty;var bT=function(e,t,n,i,r,s){var a=hT(e),o=hT(t),l=a?gT:uT(e),c=o?gT:uT(t),u=(l=l==fT?mT:l)==mT,h=(c=c==fT?mT:c)==mT,d=l==c;if(d&&dT(e)){if(!dT(t))return!1;a=!0,u=!1}if(d&&!u)return s||(s=new aT),a||pT(e)?oT(e,t,n,i,r,s):lT(e,t,l,n,i,r,s);if(!(1&n)){var p=u&&vT.call(e,"__wrapped__"),f=h&&vT.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return s||(s=new aT),r(g,m,n,i,s)}}return!!d&&(s||(s=new aT),cT(e,t,n,i,r,s))},xT=bT,yT=MS;var wT=function e(t,n,i,r,s){return t===n||(null==t||null==n||!yT(t)&&!yT(n)?t!=t&&n!=n:xT(t,n,i,r,e,s))},kT=EE,AT=wT;var ST=function(e,t,n,i){var r=n.length,s=r,a=!i;if(null==e)return!s;for(e=Object(e);r--;){var o=n[r];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<s;){var l=(o=n[r])[0],c=e[l],u=o[1];if(a&&o[2]){if(void 0===c&&!(l in e))return!1}else{var h=new kT;if(i)var d=i(c,u,l,e,t,h);if(!(void 0===d?AT(u,c,3,i,h):d))return!1}}return!0},CT=jS;var _T=function(e){return e==e&&!CT(e)},ET=_T,LT=IL;var TT=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},DT=ST,PT=function(e){for(var t=LT(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,ET(r)]}return t},MT=TT;var OT=S_,RT=F_;var IT=function(e,t){for(var n=0,i=(t=OT(t,e)).length;null!=e&&n<i;)e=e[RT(t[n++])];return n&&n==i?e:void 0},NT=IT;var FT=function(e,t,n){var i=null==e?void 0:NT(e,t);return void 0===i?n:i};var BT=function(e,t){return null!=e&&t in Object(e)},zT=X_;var YT=wT,jT=FT,HT=function(e,t){return null!=e&&zT(e,t,BT)},WT=YS,XT=_T,VT=TT,UT=F_;var $T=function(e){return e};var GT=IT;var qT=function(e){return function(t){return null==t?void 0:t[e]}},ZT=function(e){return function(t){return GT(t,e)}},KT=YS,JT=F_;var QT=function(e){var t=PT(e);return 1==t.length&&t[0][2]?MT(t[0][0],t[0][1]):function(n){return n===e||DT(n,e,t)}},eD=function(e,t){return WT(e)&&XT(t)?VT(UT(e),t):function(n){var i=jT(n,e);return void 0===i&&i===t?HT(n,e):YT(t,i,3)}},tD=$T,nD=gS,iD=function(e){return KT(e)?qT(JT(e)):ZT(e)};var rD=function(e){return"function"==typeof e?e:null==e?tD:"object"==typeof e?nD(e)?eD(e[0],e[1]):QT(e):iD(e)};var sD=function(e){return function(t,n,i){for(var r=-1,s=Object(t),a=i(t),o=a.length;o--;){var l=a[e?o:++r];if(!1===n(s[l],l,s))break}return t}}(),aD=sD,oD=IL;var lD=function(e,t){return e&&aD(e,t,oD)},cD=PL;var uD=function(e,t){return function(n,i){if(null==n)return n;if(!cD(n))return e(n,i);for(var r=n.length,s=t?r:-1,a=Object(n);(t?s--:++s<r)&&!1!==i(a[s],s,a););return n}}(lD);var hD=EC,dD=PL,pD=R_,fD=jS;var gD=function(e,t,n){if(!fD(n))return!1;var i=typeof t;return!!("number"==i?dD(n)&&pD(t,n.length):"string"==i&&t in n)&&hD(n[t],e)},mD=gE,vD=rD,bD=function(e,t){var n;return uD(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n},xD=gS,yD=gD;var wD=function(e,t,n){var i=xD(e)?mD:bD;return n&&yD(e,t,n)&&(t=void 0),i(e,vD(t))},kD=PS,AD=MS;var SD=function(e){return!0===e||!1===e||AD(e)&&"[object Boolean]"==kD(e)},CD=PS,_D=MS;var ED=function(e){return"number"==typeof e||_D(e)&&"[object Number]"==CD(e)},LD=lC,TD=function(){try{var e=LD(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),DD=TD;var PD=function(e,t,n){"__proto__"==t&&DD?DD(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},MD=PD,OD=EC,RD=Object.prototype.hasOwnProperty;var ID=function(e,t,n){var i=e[t];RD.call(e,t)&&OD(i,n)&&(void 0!==n||t in e)||MD(e,t,n)},ND=PD,FD=lD,BD=rD;var zD=function(e,t){var n={};return t=BD(t),FD(e,(function(e,i,r){ND(n,i,t(e,i,r))})),n};var YD=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},jD=YD,HD=Math.max;var WD=function(e,t,n){return t=HD(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,s=HD(i.length-t,0),a=Array(s);++r<s;)a[r]=i[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=i[r];return o[t]=n(a),jD(e,this,o)}};var XD=function(e){return function(){return e}},VD=TD,UD=VD?function(e,t){return VD(e,"toString",{configurable:!0,enumerable:!1,value:XD(t),writable:!0})}:$T,$D=Date.now;var GD=function(e){var t=0,n=0;return function(){var i=$D(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(UD),qD=$T,ZD=WD,KD=GD;var JD=function(e,t){return KD(ZD(e,t,qD),e+"")};var QD=jS,eP=AL,tP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},nP=Object.prototype.hasOwnProperty;var iP=wL,rP=function(e){if(!QD(e))return tP(e);var t=eP(e),n=[];for(var i in e)("constructor"!=i||!t&&nP.call(e,i))&&n.push(i);return n},sP=PL;var aP=function(e){return sP(e)?iP(e,!0):rP(e)},oP=JD,lP=EC,cP=gD,uP=aP,hP=Object.prototype,dP=hP.hasOwnProperty,pP=oP((function(e,t){e=Object(e);var n=-1,i=t.length,r=i>2?t[2]:void 0;for(r&&cP(t[0],t[1],r)&&(i=1);++n<i;)for(var s=t[n],a=uP(s),o=-1,l=a.length;++o<l;){var c=a[o],u=e[c];(void 0===u||lP(u,hP[c])&&!dP.call(e,c))&&(e[c]=s[c])}return e})),fP=PD,gP=EC;var mP=function(e,t,n){(void 0!==n&&!gP(e[t],n)||void 0===n&&!(t in e))&&fP(e,t,n)},vP={},bP={get exports(){return vP},set exports(e){vP=e}};!function(e,t){var n=xS,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,s=r&&r.exports===i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(bP,vP);var xP=FE;var yP=function(e){var t=new e.constructor(e.byteLength);return new xP(t).set(new xP(e)),t};var wP=function(e,t){var n=t?yP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var kP=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},AP=jS,SP=Object.create,CP=function(){function e(){}return function(t){if(!AP(t))return{};if(SP)return SP(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_P=SL(Object.getPrototypeOf,Object),EP=CP,LP=_P,TP=AL;var DP=function(e){return"function"!=typeof e.constructor||TP(e)?{}:EP(LP(e))},PP=PL,MP=MS;var OP=function(e){return MP(e)&&PP(e)},RP=PS,IP=_P,NP=MS,FP=Function.prototype,BP=Object.prototype,zP=FP.toString,YP=BP.hasOwnProperty,jP=zP.call(Object);var HP=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},WP=ID,XP=PD;var VP=function(e,t,n,i){var r=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=i?i(n[o],e[o],o,n,e):void 0;void 0===l&&(l=e[o]),r?XP(n,o,l):WP(n,o,l)}return n},UP=aP;var $P=mP,GP=vP,qP=wP,ZP=kP,KP=DP,JP=M_,QP=gS,eM=OP,tM=iL,nM=XS,iM=jS,rM=function(e){if(!NP(e)||"[object Object]"!=RP(e))return!1;var t=IP(e);if(null===t)return!0;var n=YP.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&zP.call(n)==jP},sM=pL,aM=HP,oM=function(e){return VP(e,UP(e))};var lM=function(e,t,n,i,r,s,a){var o=aM(e,n),l=aM(t,n),c=a.get(l);if(c)$P(e,n,c);else{var u=s?s(o,l,n+"",e,t,a):void 0,h=void 0===u;if(h){var d=QP(l),p=!d&&tM(l),f=!d&&!p&&sM(l);u=l,d||p||f?QP(o)?u=o:eM(o)?u=ZP(o):p?(h=!1,u=GP(l,!0)):f?(h=!1,u=qP(l,!0)):u=[]:rM(l)||JP(l)?(u=o,JP(o)?u=oM(o):iM(o)&&!nM(o)||(u=KP(l))):h=!1}h&&(a.set(l,u),r(u,l,i,s,a),a.delete(l)),$P(e,n,u)}},cM=EE,uM=mP,hM=sD,dM=lM,pM=jS,fM=aP,gM=HP;var mM=function e(t,n,i,r,s){t!==n&&hM(n,(function(a,o){if(s||(s=new cM),pM(a))dM(t,n,o,i,e,r,s);else{var l=r?r(gM(t,o),a,o+"",t,n,s):void 0;void 0===l&&(l=a),uM(t,o,l)}}),fM)},vM=mM,bM=jS;var xM=function e(t,n,i,r,s,a){return bM(t)&&bM(n)&&(a.set(n,t),vM(t,n,void 0,e,a),a.delete(n)),t},yM=JD,wM=gD;var kM=mM,AM=function(e){return yM((function(t,n){var i=-1,r=n.length,s=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(r--,s):void 0,a&&wM(n[0],n[1],a)&&(s=r<3?void 0:s,r=1),t=Object(t);++i<r;){var o=n[i];o&&e(t,o,i,s)}return t}))}((function(e,t,n,i){kM(e,t,n,i)})),SM=YD,CM=xM,_M=AM,EM=JD((function(e){return e.push(void 0,CM),SM(_M,void 0,e)}));var LM=function(e){return e&&e.length?e[0]:void 0};var TM=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const DM=e=>uE(e)&&!isNaN(e.getTime()),PM=e=>"Object"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),MM=$_,OM=(e,t)=>wD(t,(t=>$_(e,t))),RM=(e,t,n="0")=>{for(e=null!=e?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},IM=e=>Array.isArray(e),NM=e=>IM(e)&&e.length>0,FM=e=>null==e?null:document&&fE(e)?document.querySelector(e):e.$el??e,BM=(e,t,n,i=void 0)=>{e.removeEventListener(t,n,i)},zM=(e,t,n,i=void 0)=>(e.addEventListener(t,n,i),()=>BM(e,t,n,i)),YM=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),jM=(e,t)=>{" "!==e.key&&"Enter"!==e.key||(t(e),e.preventDefault())},HM=(e,...t)=>{const n={};let i;for(i in e)t.includes(i)||(n[i]=e[i]);return n},WM=(e,t)=>{const n={};return t.forEach((t=>{t in e&&(n[t]=e[t])})),n};var XM={},VM={get exports(){return XM},set exports(e){XM=e}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default}(VM,XM);const UM=dS(XM);var $M={},GM={get exports(){return $M},set exports(e){$M=e}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default}(GM,$M);const qM=dS($M);function ZM(e,t){var n=function(e){if(!JM[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t;JM[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return JM[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r<n.length;r++){var s=KM[n[r].type];s>=0&&(i[s]=parseInt(n[r].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}(n,e)}var KM={year:0,month:1,day:2,hour:3,minute:4,second:5};var JM={};function QM(e,t,n,i,r,s,a){var o=new Date(0);return o.setUTCFullYear(e,t,n),o.setUTCHours(i,r,s,a),o}var eO=36e5,tO={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function nO(e,t,n){var i,r,s;if(!e)return 0;if(i=tO.timezoneZ.exec(e))return 0;if(i=tO.timezoneHH.exec(e))return rO(s=parseInt(i[1],10))?-s*eO:NaN;if(i=tO.timezoneHHMM.exec(e)){s=parseInt(i[1],10);var a=parseInt(i[2],10);return rO(s,a)?(r=Math.abs(s)*eO+6e4*a,s>0?-r:r):NaN}if(function(e){if(sO[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),sO[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var o=n?t:function(e){return QM(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=iO(o,e),c=n?l:function(e,t,n){var i=e.getTime(),r=i-t,s=iO(new Date(r),n);if(t===s)return t;r-=s-t;var a=iO(new Date(r),n);if(s===a)return s;return Math.max(s,a)}(t,l,e);return-c}return NaN}function iO(e,t){var n=ZM(e,t),i=QM(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),s=r%1e3;return i-(r-=s>=0?s:1e3+s)}function rO(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var sO={};var aO=36e5,oO=6e4,lO={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function cO(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},i=null==n.additionalDigits?2:UM(n.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,n={},i=lO.dateTimePattern.exec(e);i?(n.date=i[1],t=i[3]):(i=lO.datePattern.exec(e))?(n.date=i[1],t=i[2]):(n.date=null,t=e);if(t){var r=lO.timeZone.exec(t);r?(n.time=t.replace(r[1],""),n.timeZone=r[1].trim()):n.time=t}return n}(e),s=function(e,t){var n,i=lO.YYY[t],r=lO.YYYYY[t];if(n=lO.YYYY.exec(e)||r.exec(e)){var s=n[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(n=lO.YY.exec(e)||i.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,i),a=s.year,o=function(e,t){if(null===t)return null;var n,i,r,s;if(0===e.length)return(i=new Date(0)).setUTCFullYear(t),i;if(n=lO.MM.exec(e))return i=new Date(0),fO(t,r=parseInt(n[1],10)-1)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=lO.DDD.exec(e)){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=pO(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(i.setUTCFullYear(t,0,a),i):new Date(NaN)}if(n=lO.MMDD.exec(e)){i=new Date(0),r=parseInt(n[1],10)-1;var o=parseInt(n[2],10);return fO(t,r,o)?(i.setUTCFullYear(t,r,o),i):new Date(NaN)}if(n=lO.Www.exec(e))return gO(t,s=parseInt(n[1],10)-1)?uO(t,s):new Date(NaN);if(n=lO.WwwD.exec(e)){s=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return gO(t,s,l)?uO(t,s,l):new Date(NaN)}return null}(s.restDateString,a);if(isNaN(o))return new Date(NaN);if(o){var l,c=o.getTime(),u=0;if(r.time&&(u=function(e){var t,n,i;if(t=lO.HH.exec(e))return mO(n=parseFloat(t[1].replace(",",".")))?n%24*aO:NaN;if(t=lO.HHMM.exec(e))return mO(n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")))?n%24*aO+i*oO:NaN;if(t=lO.HHMMSS.exec(e)){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return mO(n,i,r)?n%24*aO+i*oO+1e3*r:NaN}return null}(r.time),isNaN(u)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=nO(r.timeZone||n.timeZone,new Date(c+u)),isNaN(l))return new Date(NaN)}else l=qM(new Date(c+u)),l=qM(new Date(c+u+l));return new Date(c+u+l)}return new Date(NaN)}function uO(e,t,n){t=t||0,n=n||0;var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*t+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}var hO=[31,28,31,30,31,30,31,31,30,31,30,31],dO=[31,29,31,30,31,30,31,31,30,31,30,31];function pO(e){return e%400==0||e%4==0&&e%100!=0}function fO(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=pO(e);if(i&&n>dO[t])return!1;if(!i&&n>hO[t])return!1}return!0}function gO(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function mO(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}function vO(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function bO(e){return(bO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xO(e){vO(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===bO(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function yO(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var wO={};function kO(){return wO}function AO(e,t){var n,i,r,s,a,o,l,c;vO(1,arguments);var u=kO(),h=yO(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=xO(e),p=d.getDay(),f=(p<h?7:0)+p-h;return d.setDate(d.getDate()-f),d.setHours(0,0,0,0),d}function SO(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function CO(e,t){return vO(1,arguments),function(e,t,n){vO(2,arguments);var i=AO(e,n),r=AO(t,n),s=i.getTime()-SO(i),a=r.getTime()-SO(r);return Math.round((s-a)/6048e5)}(function(e){vO(1,arguments);var t=xO(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),function(e){vO(1,arguments);var t=xO(e);return t.setDate(1),t.setHours(0,0,0,0),t}(e),t)+1}function _O(e,t){var n,i,r,s,a,o,l,c;vO(1,arguments);var u=kO(),h=yO(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),d=function(e,t){var n,i,r,s,a,o,l,c;vO(1,arguments);var u=xO(e),h=u.getFullYear(),d=kO(),p=yO(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==r?r:d.firstWeekContainsDate)&&void 0!==i?i:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setFullYear(h+1,0,p),f.setHours(0,0,0,0);var g=AO(f,t),m=new Date(0);m.setFullYear(h,0,p),m.setHours(0,0,0,0);var v=AO(m,t);return u.getTime()>=g.getTime()?h+1:u.getTime()>=v.getTime()?h:h-1}(e,t),p=new Date(0);return p.setFullYear(d,0,h),p.setHours(0,0,0,0),AO(p,t)}function EO(e,t){vO(1,arguments);var n=xO(e),i=AO(n,t).getTime()-_O(n,t).getTime();return Math.round(i/6048e5)+1}function LO(e){return vO(1,arguments),AO(e,{weekStartsOn:1})}function TO(e){vO(1,arguments);var t=function(e){vO(1,arguments);var t=xO(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var r=LO(i),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var a=LO(s);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),LO(n)}function DO(e){vO(1,arguments);var t=xO(e),n=LO(t).getTime()-TO(t).getTime();return Math.round(n/6048e5)+1}function PO(e,t){vO(2,arguments);var n=xO(e),i=yO(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}function MO(e,t){vO(2,arguments);var n=xO(e),i=yO(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var r=n.getDate(),s=new Date(n.getTime());return s.setMonth(n.getMonth()+i+1,0),r>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}function OO(e,t){return vO(2,arguments),MO(e,12*yO(t))}const RO={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function IO(e,t){return`${t}.${RM(e,2)}`}function NO(e,t,n){return WM(n.getDateParts(n.toDate(e)),RO[t])}function FO({day:e,week:t,month:n,year:i},r,s,a){if("daily"===s&&e){const t=PO(new Date(i,n-1,e),r);return{day:t.getDate(),month:t.getMonth()+1,year:t.getFullYear()}}if("weekly"===s&&t){const e=PO(a.getMonthParts(n,i).firstDayOfMonth,7*(t-1+r)),s=a.getDateParts(e);return{week:s.week,month:s.month,year:s.year}}{const e=MO(new Date(i,n-1,1),r);return{month:e.getMonth()+1,year:e.getFullYear()}}}function BO(e){return null!=e&&null!=e.month&&null!=e.year}function zO(e,t){return!(!BO(e)||!BO(t))&&(e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:!(!e.day||!t.day||e.day===t.day)&&e.day<t.day)}function YO(e,t){return!(!BO(e)||!BO(t))&&(e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:!(!e.day||!t.day||e.day===t.day)&&e.day>t.day)}function jO(e){const{day:t,week:n,month:i,year:r}=e;let s=`${r}-${RM(i,2)}`;return n&&(s=`${s}-w${n}`),t&&(s=`${s}-${RM(t,2)}`),s}function HO(e,t){const{month:n,year:i,showWeeknumbers:r,showIsoWeeknumbers:s}=e,a=new Date(i,n-1,15),o=t.getMonthParts(n,i),l=t.getPrevMonthParts(n,i),c=t.getNextMonthParts(n,i),u=function({monthComps:e,prevMonthComps:t,nextMonthComps:n},i){const r=[],{firstDayOfWeek:s,firstWeekday:a,isoWeeknumbers:o,weeknumbers:l,numDays:c,numWeeks:u}=e,h=a+(a<s?bR:0)-s;let d=!0,p=!1,f=!1,g=0;const m=new Intl.DateTimeFormat(i.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let v=t.numDays-h+1,b=t.numDays-v+1,x=Math.floor((v-1)/bR+1),y=1,w=t.numWeeks,k=1,A=t.month,S=t.year;const C=new Date,_=C.getDate(),E=C.getMonth()+1,L=C.getFullYear();for(let t=1;t<=xR;t++){for(let h=1,C=s;h<=bR;h++,C+=C===bR?1-bR:1){d&&C===a&&(v=1,b=e.numDays,x=Math.floor((v-1)/bR+1),y=Math.floor((c-v)/bR+1),w=1,k=u,A=e.month,S=e.year,d=!1,p=!0);const s=i.getDateFromParams(S,A,v,0,0,0,0),T=i.getDateFromParams(S,A,v,12,0,0,0),D=i.getDateFromParams(S,A,v,23,59,59,999),P=s,M=`${RM(S,4)}-${RM(A,2)}-${RM(v,2)}`,O=h,R=bR-h,I=l[t-1],N=o[t-1],F=v===_&&A===E&&S===L,B=p&&1===v,z=p&&v===c,Y=1===t,j=t===u,H=1===h,W=h===bR,X=BR(S,A,v);r.push({locale:i,id:M,position:++g,label:v.toString(),ariaLabel:m.format(new Date(S,A-1,v)),day:v,dayFromEnd:b,weekday:C,weekdayPosition:O,weekdayPositionFromEnd:R,weekdayOrdinal:x,weekdayOrdinalFromEnd:y,week:w,weekFromEnd:k,weekPosition:t,weeknumber:I,isoWeeknumber:N,month:A,year:S,date:P,startDate:s,endDate:D,noonDate:T,dayIndex:X,isToday:F,isFirstDay:B,isLastDay:z,isDisabled:!p,isFocusable:!p,isFocused:!1,inMonth:p,inPrevMonth:d,inNextMonth:f,onTop:Y,onBottom:j,onLeft:H,onRight:W,classes:[`id-${M}`,`day-${v}`,`day-from-end-${b}`,`weekday-${C}`,`weekday-position-${O}`,`weekday-ordinal-${x}`,`weekday-ordinal-from-end-${y}`,`week-${w}`,`week-from-end-${k}`,{"is-today":F,"is-first-day":B,"is-last-day":z,"in-month":p,"in-prev-month":d,"in-next-month":f,"on-top":Y,"on-bottom":j,"on-left":H,"on-right":W}]}),p&&z?(p=!1,f=!0,v=1,b=c,x=1,y=Math.floor((c-v)/bR+1),w=1,k=n.numWeeks,A=n.month,S=n.year):(v++,b--,x=Math.floor((v-1)/bR+1),y=Math.floor((c-v)/bR+1))}w++,k--}return r}({monthComps:o,prevMonthComps:l,nextMonthComps:c},t),h=function(e,t,n,i){const r=e.reduce(((e,i,r)=>{const s=Math.floor(r/7);let a=e[s];return a||(a={id:`week-${s+1}`,title:"",week:i.week,weekPosition:i.weekPosition,weeknumber:i.weeknumber,isoWeeknumber:i.isoWeeknumber,weeknumberDisplay:t?i.weeknumber:n?i.isoWeeknumber:void 0,days:[]},e[s]=a),a.days.push(i),e}),Array(e.length/bR));return r.forEach((e=>{const t=e.days[0],n=e.days[e.days.length-1];t.month===n.month?e.title=`${i.formatDate(t.date,"MMMM YYYY")}`:t.year===n.year?e.title=`${i.formatDate(t.date,"MMM")} - ${i.formatDate(n.date,"MMM YYYY")}`:e.title=`${i.formatDate(t.date,"MMM YYYY")} - ${i.formatDate(n.date,"MMM YYYY")}`})),r}(u,r,s,t),d=function(e,t){return e.days.map((e=>({label:t.formatDate(e.date,t.masks.weekdays),weekday:e.weekday})))}(h[0],t);return{id:jO(e),month:n,year:i,monthTitle:t.formatDate(a,t.masks.title),shortMonthLabel:t.formatDate(a,"MMM"),monthLabel:t.formatDate(a,"MMMM"),shortYearLabel:i.toString().substring(2),yearLabel:i.toString(),monthComps:o,prevMonthComps:l,nextMonthComps:c,days:u,weeks:h,weekdays:d}}class WO{constructor(e,t,n){uS(this,"keys",[]),uS(this,"store",{}),this.size=e,this.createKey=t,this.createItem=n}get(...e){const t=this.createKey(...e);return this.store[t]}getOrSet(...e){const t=this.createKey(...e);if(this.store[t])return this.store[t];const n=this.createItem(...e);if(this.keys.length>=this.size){const e=this.keys.shift();null!=e&&delete this.store[e]}return this.keys.push(t),this.store[t]=n,n}}class XO{constructor(e,t=new KO){var n;uS(this,"order"),uS(this,"locale"),uS(this,"start",null),uS(this,"end",null),uS(this,"repeat",null),this.locale=t;const{start:i,end:r,span:s,order:a,repeat:o}=e;DM(i)&&(this.start=t.getDateParts(i)),DM(r)?this.end=t.getDateParts(r):null!=this.start&&s&&(this.end=t.getDateParts(PO(this.start.date,s-1))),this.order=a??0,o&&(this.repeat=new hR({from:null==(n=this.start)?void 0:n.date,...o},{locale:this.locale}))}static fromMany(e,t){return(IM(e)?e:[e]).filter((e=>e)).map((e=>XO.from(e,t)))}static from(e,t){if(e instanceof XO)return e;const n={start:null,end:null};return null!=e&&(IM(e)?(n.start=e[0]??null,n.end=e[1]??null):PM(e)?Object.assign(n,e):(n.start=e,n.end=e)),null!=n.start&&(n.start=new Date(n.start)),null!=n.end&&(n.end=new Date(n.end)),new XO(n,t)}get opts(){const{order:e,locale:t}=this;return{order:e,locale:t}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:t}=this;return e&&t&&e.year===t.year&&e.month===t.month&&e.day===t.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return null==this.start||null==this.end?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var t,n;return(null==(t=this.start)?void 0:t.dayIndex)===e.dayIndex||!!(null==(n=this.repeat)?void 0:n.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var t,n;return this.intersectsDayRange((null==(t=e.start)?void 0:t.dayIndex)??-1/0,(null==(n=e.end)?void 0:n.dayIndex)??1/0)}intersectsDayRange(e,t){return!(this.start&&this.start.dayIndex>t)&&!(this.end&&this.end.dayIndex<e)}}class VO{constructor(){uS(this,"records",{})}render(e,t,n){var i,r,s,a;let o=null;const l=n[0].dayIndex,c=n[n.length-1].dayIndex;return t.hasRepeat?n.forEach((n=>{var i,r;if(t.startsOnDay(n)){const s=t.daySpan<1/0?t.daySpan:1;o={startDay:n.dayIndex,startTime:(null==(i=t.start)?void 0:i.time)??0,endDay:n.dayIndex+s-1,endTime:(null==(r=t.end)?void 0:r.time)??AR},this.getRangeRecords(e).push(o)}})):t.intersectsDayRange(l,c)&&(o={startDay:(null==(i=t.start)?void 0:i.dayIndex)??-1/0,startTime:(null==(r=t.start)?void 0:r.time)??-1/0,endDay:(null==(s=t.end)?void 0:s.dayIndex)??1/0,endTime:(null==(a=t.end)?void 0:a.time)??1/0},this.getRangeRecords(e).push(o)),o}getRangeRecords(e){let t=this.records[e.key];return t||(t={ranges:[],data:e},this.records[e.key]=t),t.ranges}getCell(e,t){return this.getCells(t).find((t=>t.data.key===e))}cellExists(e,t){const n=this.records[e];return null!=n&&n.ranges.some((e=>e.startDay<=t&&e.endDay>=t))}getCells(e){const t=Object.values(this.records),n=[],{dayIndex:i}=e;return t.forEach((({data:t,ranges:r})=>{r.filter((e=>e.startDay<=i&&e.endDay>=i)).forEach((r=>{const s=i===r.startDay,a=i===r.endDay,o=s?r.startTime:0,l=new Date(e.startDate.getTime()+o),c=a?r.endTime:AR,u=new Date(e.endDate.getTime()+c),h=0===o&&c===AR,d=t.order||0;n.push({...r,data:t,onStart:s,onEnd:a,startTime:o,startDate:l,endTime:c,endDate:u,allDay:h,order:d})}))})),n.sort(((e,t)=>e.order-t.order)),n}}const UO={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};UO.en=UO["en-US"],UO.es=UO["es-ES"],UO.no=UO.nb,UO.zh=UO["zh-CN"];const $O=Object.entries(UO).reduce(((e,[t,{dow:n,L:i}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:i}},e)),{}),GO=Ct({componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:$O,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}}),qO=ja((()=>zD(GO.locales,(e=>(e.masks=EM(e.masks,GO.masks),e))))),ZO=e=>"undefined"!=typeof window&&MM(window.__vcalendar__,e)?FT(window.__vcalendar__,e):FT(GO,e);class KO{constructor(e=void 0,t){uS(this,"id"),uS(this,"daysInWeek"),uS(this,"firstDayOfWeek"),uS(this,"masks"),uS(this,"timezone"),uS(this,"hourLabels"),uS(this,"dayNames"),uS(this,"dayNamesShort"),uS(this,"dayNamesShorter"),uS(this,"dayNamesNarrow"),uS(this,"monthNames"),uS(this,"monthNamesShort"),uS(this,"relativeTimeNames"),uS(this,"amPm",["am","pm"]),uS(this,"monthCache"),uS(this,"pageCache");const{id:n,firstDayOfWeek:i,masks:r,monthCacheSize:s,pageCacheSize:a}=function(e,t){const n=(new Intl.DateTimeFormat).resolvedOptions().locale;let i;fE(e)?i=e:MM(e,"id")&&(i=e.id),i=(i||n).toLowerCase();const r=Object.keys(t),s=e=>r.find((t=>t.toLowerCase()===e));i=s(i)||s(i.substring(0,2))||n;const a={...t["en-IE"],...t[i],id:i,monthCacheSize:12,pageCacheSize:5};return PM(e)?EM(e,a):a}(e,qO.value);var o,l,c;this.monthCache=new WO(s,HR,WR),this.pageCache=new WO(a,jO,HO),this.id=n,this.daysInWeek=bR,this.firstDayOfWeek=(o=i,l=1,c=bR,Math.min(Math.max(o,l),c)),this.masks=r,this.timezone=t||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=XR("long",this.id),this.dayNamesShort=XR("short",this.id),this.dayNamesShorter=this.dayNamesShort.map((e=>e.substring(0,2))),this.dayNamesNarrow=XR("narrow",this.id),this.monthNames=UR("long",this.id),this.monthNamesShort=UR("short",this.id),this.relativeTimeNames=function(e){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce(((e,t)=>{const i=n.formatToParts(100,t);return e[t]=i[1].unit,e}),{})}(this.id)}formatDate(e,t){return function(e,t,n){if(null==e)return"";let i=IR(t,n)[0];/Z$/.test(i)&&(n.timezone="utc");const r=[];i=i.replace(LR,((e,t)=>(r.push(t),"??")));const s=n.getDateParts(e);return i=i.replace(ER,(e=>e in TR?TR[e](s,n):e.slice(1,e.length-1))),i.replace(/\?\?/g,(()=>r.shift()))}(e,t,this)}parseDate(e,t){return qR(e,t,this)}toDate(e,t={}){const n=new Date(NaN);let i=n;const{fillDate:r,mask:s,patch:a,rules:o}=t;if(ED(e)?(t.type="number",i=new Date(+e)):fE(e)?(t.type="string",i=e?qR(e,s||"iso",this):n):DM(e)?(t.type="date",i=new Date(e.getTime())):NR(e)&&(t.type="object",i=this.getDateFromParts(e)),i&&(a||o)){let e=this.getDateParts(i);if(a&&null!=r){const t=this.getDateParts(this.toDate(r));e=this.getDateParts(this.toDate({...t,...WM(e,vR[a])}))}o&&(e=function(e,t){const n={...e};return Object.entries(t).forEach((([t,i])=>{const r=_R[t],s=e[t];n[t]=function(e,t,n,i){const r=GR(e,t,i),s=r.reduce(((e,t)=>{if(t.disabled)return e;if(isNaN(e))return t.value;const i=Math.abs(e-n);return Math.abs(t.value-n)<i?t.value:e}),NaN);return isNaN(s)?n:s}(e,r,s,i)})),n}(e,o)),i=this.getDateFromParts(e)}return i||n}toDateOrNull(e,t={}){const n=this.toDate(e,t);return isNaN(n.getTime())?null:n}fromDate(e,{type:t,mask:n}={}){switch(t){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,n||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return XO.from(e,this)}ranges(e){return XO.fromMany(e,this)}getDateParts(e){return function(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const i=n.getMilliseconds(),r=n.getSeconds(),s=n.getMinutes(),a=n.getHours(),o=i+r*yR+s*wR+a*kR,l=n.getMonth()+1,c=n.getFullYear(),u=t.getMonthParts(l,c),h=n.getDate(),d=u.numDays-h+1,p=n.getDay()+1,f=Math.floor((h-1)/7+1),g=Math.floor((u.numDays-h)/7+1),m=Math.ceil((h+Math.abs(u.firstWeekday-u.firstDayOfWeek))/7),v=u.numWeeks-m+1,b=u.weeknumbers[m],x=BR(c,l,h);return{milliseconds:i,seconds:r,minutes:s,hours:a,time:o,day:h,dayFromEnd:d,weekday:p,weekdayOrdinal:f,weekdayOrdinalFromEnd:g,week:m,weekFromEnd:v,weeknumber:b,month:l,year:c,date:n,dateTime:n.getTime(),dayIndex:x,timezoneOffset:0,isValid:!0}}(e,this)}getDateFromParts(e){return jR(e,this.timezone)}getDateFromParams(e,t,n,i,r,s,a){return this.getDateFromParts({year:e,month:t,day:n,hours:i,minutes:r,seconds:s,milliseconds:a})}getPage(e){return function(e,t){const{day:n,week:i,view:r,trimWeeks:s}=e,a={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(r){case"daily":{let e=a.days.find((e=>e.inMonth));n?e=a.days.find((e=>e.day===n&&e.inMonth))||e:i&&(e=a.days.find((e=>e.week===i&&e.inMonth)));const t=a.weeks[e.week-1];a.viewWeeks=[t],a.viewDays=[e],a.week=e.week,a.weekTitle=t.title,a.day=e.day,a.dayTitle=e.ariaLabel,a.title=a.dayTitle;break}case"weekly":{a.week=i||1;const e=a.weeks[a.week-1];a.viewWeeks=[e],a.viewDays=e.days,a.weekTitle=e.title,a.title=a.weekTitle;break}default:a.title=a.monthTitle,a.viewWeeks=a.weeks.slice(0,s?a.monthComps.numWeeks:void 0),a.viewDays=a.days}return a}(e,this.pageCache.getOrSet(e,this))}getMonthParts(e,t){const{firstDayOfWeek:n}=this;return this.monthCache.getOrSet(e,t,n)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,t){return 1===e?this.getMonthParts(12,t-1):this.getMonthParts(e-1,t)}getNextMonthParts(e,t){return 12===e?this.getMonthParts(1,t+1):this.getMonthParts(e+1,t)}getHourLabels(){return function(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}().map((e=>this.formatDate(e,this.masks.hours)))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var JO=(e=>(e.Any="any",e.All="all",e))(JO||{}),QO=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(QO||{}),eR=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(eR||{}),tR=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(tR||{});class nR{constructor(e,t,n){uS(this,"validated",!0),this.type=e,this.interval=t,this.from=n,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:t}=e;switch(this.type){case"days":return zR(this.from.date,t)%this.interval==0;case"weeks":return 0==(n=this.from.date,i=t,Math.ceil(zR(FR(n),FR(i))/7)%this.interval);case"months":return function(e,t){return 12*YR(e,t)+(t.getMonth()-e.getMonth())}(this.from.date,t)%this.interval==0;case"years":return YR(this.from.date,t)%this.interval==0;default:return!1}var n,i}}class iR{constructor(e,t,n,i){uS(this,"components",[]),this.type=e,this.validator=n,this.getter=i,this.components=this.normalizeComponents(t)}static create(e,t){switch(e){case"days":return new rR(t);case"weekdays":return new sR(t);case"weeks":return new aR(t);case"months":return new oR(t);case"years":return new lR(t)}}normalizeComponents(e){if(this.validator(e))return[e];if(!IM(e))return[];const t=[];return e.forEach((e=>{this.validator(e)?t.push(e):console.error(`Component value ${e} in invalid for "${this.type}" rule. This rule will be skipped.`)})),t}passes(e){return this.getter(e).some((e=>this.components.includes(e)))}}class rR extends iR{constructor(e){super("days",e,dR,(({day:e,dayFromEnd:t})=>[e,-t]))}}class sR extends iR{constructor(e){super("weekdays",e,pR,(({weekday:e})=>[e]))}}class aR extends iR{constructor(e){super("weeks",e,fR,(({week:e,weekFromEnd:t})=>[e,-t]))}}class oR extends iR{constructor(e){super("months",e,gR,(({month:e})=>[e]))}}class lR extends iR{constructor(e){super("years",e,ED,(({year:e})=>[e]))}}class cR{constructor(e,t){uS(this,"components"),this.type=e,this.components=this.normalizeComponents(t)}normalizeArrayConfig(e){const t=[];return e.forEach(((n,i)=>{if(ED(n)){if(0===i)return;if(!mR(e[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!pR(n))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);t.push([e[0],n])}else IM(n)&&t.push(...this.normalizeArrayConfig(n))})),t}normalizeComponents(e){const t=[];return e.forEach(((n,i)=>{if(ED(n)){if(0===i)return;if(!mR(e[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!pR(n))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);t.push([e[0],n])}else IM(n)&&t.push(...this.normalizeArrayConfig(n))})),t}passes(e){const{weekday:t,weekdayOrdinal:n,weekdayOrdinalFromEnd:i}=e;return this.components.some((([e,r])=>(e===n||e===-i)&&t===r))}}class uR{constructor(e){uS(this,"type","function"),uS(this,"validated",!0),this.fn=e,XS(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return!this.validated||this.fn(e)}}class hR{constructor(e,t={},n){uS(this,"validated",!0),uS(this,"config"),uS(this,"type",JO.Any),uS(this,"from"),uS(this,"until"),uS(this,"rules",[]),uS(this,"locale",new KO),this.parent=n,t.locale&&(this.locale=t.locale),this.config=e,XS(e)?(this.type=JO.All,this.rules=[new uR(e)]):IM(e)?(this.type=JO.Any,this.rules=e.map((e=>new hR(e,t,this)))):PM(e)?(this.type=JO.All,this.from=e.from?this.locale.getDateParts(e.from):null==n?void 0:n.from,this.until=e.until?this.locale.getDateParts(e.until):null==n?void 0:n.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const t=[];if(e.every&&(fE(e.every)&&(e.every=[1,`${e.every}s`]),IM(e.every))){const[n=1,i=QO.Days]=e.every;t.push(new nR(i,n,this.from))}return Object.values(eR).forEach((n=>{n in e&&t.push(iR.create(n,e[n]))})),Object.values(tR).forEach((n=>{n in e&&t.push(new cR(n,e[n]))})),null!=e.on&&(IM(e.on)||(e.on=[e.on]),t.push(new hR(e.on,{locale:this.locale},this.parent))),t}passes(e){return!this.validated||!(this.from&&e.dayIndex<=this.from.dayIndex)&&(!(this.until&&e.dayIndex>=this.until.dayIndex)&&(this.type===JO.Any?this.rules.some((t=>t.passes(e))):this.rules.every((t=>t.passes(e)))))}}function dR(e){return!!ED(e)&&(e>=1&&e<=31)}function pR(e){return!!ED(e)&&(e>=1&&e<=7)}function fR(e){return!!ED(e)&&(e>=-6&&e<=-1||e>=1&&e<=6)}function gR(e){return!!ED(e)&&(e>=1&&e<=12)}function mR(e){return!!ED(e)&&!(e<-5||e>5||0===e)}const vR={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},bR=7,xR=6,yR=1e3,wR=60*yR,kR=60*wR,AR=24*kR,SR=[31,28,31,30,31,30,31,31,30,31,30,31],CR=["L","iso"],_R={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},ER=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,LR=/\[([^]*?)\]/gm,TR={D:e=>e.day,DD:e=>RM(e.day,2),d:e=>e.weekday-1,dd:e=>RM(e.weekday-1,2),W:(e,t)=>t.dayNamesNarrow[e.weekday-1],WW:(e,t)=>t.dayNamesShorter[e.weekday-1],WWW:(e,t)=>t.dayNamesShort[e.weekday-1],WWWW:(e,t)=>t.dayNames[e.weekday-1],M:e=>e.month,MM:e=>RM(e.month,2),MMM:(e,t)=>t.monthNamesShort[e.month-1],MMMM:(e,t)=>t.monthNames[e.month-1],YY:e=>String(e.year).substr(2),YYYY:e=>RM(e.year,4),h:e=>e.hours%12||12,hh:e=>RM(e.hours%12||12,2),H:e=>e.hours,HH:e=>RM(e.hours,2),m:e=>e.minutes,mm:e=>RM(e.minutes,2),s:e=>e.seconds,ss:e=>RM(e.seconds,2),S:e=>Math.round(e.milliseconds/100),SS:e=>RM(Math.round(e.milliseconds/10),2),SSS:e=>RM(e.milliseconds,3),a:(e,t)=>e.hours<12?t.amPm[0]:t.amPm[1],A:(e,t)=>e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase(),Z:()=>"Z",ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${RM(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${RM(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${RM(Math.floor(Math.abs(t)/60),2)}:${RM(Math.abs(t)%60,2)}`}},DR=/\d\d?/,PR=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,MR=()=>{},OR=e=>(t,n,i)=>{const r=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)},RR={D:[DR,(e,t)=>{e.day=t}],Do:[new RegExp(DR.source+PR.source),(e,t)=>{e.day=parseInt(t,10)}],d:[DR,MR],W:[PR,MR],M:[DR,(e,t)=>{e.month=t-1}],MMM:[PR,OR("monthNamesShort")],MMMM:[PR,OR("monthNames")],YY:[DR,(e,t)=>{const n=+(new Date).getFullYear().toString().substr(0,2);e.year=+`${t>68?n-1:n}${t}`}],YYYY:[/\d{4}/,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=100*t}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=10*t}],SSS:[/\d{3}/,(e,t)=>{e.milliseconds=t}],h:[DR,(e,t)=>{e.hours=t}],m:[DR,(e,t)=>{e.minutes=t}],s:[DR,(e,t)=>{e.seconds=t}],a:[PR,(e,t,n)=>{const i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{"Z"===t&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const t=60*+n[1]+parseInt(n[2],10);e.timezoneOffset="+"===n[0]?t:-t}}]};function IR(e,t){return(NM(e)&&e||[fE(e)&&e||"YYYY-MM-DD"]).map((e=>CR.reduce(((e,n)=>e.replace(n,t.masks[n]||"")),e)))}function NR(e){return PM(e)&&"year"in e&&"month"in e&&"day"in e}function FR(e,t=1){const n=e.getDay()+1;return PO(e,n>=t?t-n:-(7-(t-n)))}function BR(e,t,n){const i=Date.UTC(e,t-1,n);return zR(new Date(0),new Date(i))}function zR(e,t){return Math.round((t.getTime()-e.getTime())/AR)}function YR(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function jR(e,t=""){const n=new Date,{year:i=n.getFullYear(),month:r=n.getMonth()+1,day:s=n.getDate(),hours:a=0,minutes:o=0,seconds:l=0,milliseconds:c=0}=e;if(t){return cO(`${RM(i,4)}-${RM(r,2)}-${RM(s,2)}T${RM(a,2)}:${RM(o,2)}:${RM(l,2)}.${RM(c,3)}`,{timeZone:t})}return new Date(i,r-1,s,a,o,l,c)}function HR(e,t,n){return`${t}-${e}-${n}`}function WR(e,t,n){const i=t%4==0&&t%100!=0||t%400==0,r=new Date(t,e-1,1),s=r.getDay()+1,a=2===e&&i?29:SR[e-1],o=n-1,l=CO(r,{weekStartsOn:o}),c=[],u=[];for(let e=0;e<l;e++){const t=PO(r,7*e);c.push(EO(t,{weekStartsOn:o})),u.push(DO(t))}return{firstDayOfWeek:n,firstDayOfMonth:r,inLeapYear:i,firstWeekday:s,numDays:a,numWeeks:l,month:e,year:t,weeknumbers:c,isoWeeknumbers:u}}function XR(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return function(){const e=[];for(let t=0;t<bR;t++)e.push(jR({year:2020,month:1,day:5+t,hours:12}));return e}().map((e=>n.format(e)))}function VR(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function UR(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return VR().map((e=>n.format(e)))}function $R(e,t,n){return ED(t)?t===e:IM(t)?t.includes(e):XS(t)?t(e,n):!(null!=t.min&&t.min>e)&&(!(null!=t.max&&t.max<e)&&(null==t.interval||e%t.interval==0))}function GR(e,t,n){const i=[],[r,s,a]=t;for(let t=r;t<=s;t++)(null==n||$R(t,n,e))&&i.push({value:t,label:RM(t,a)});return i}function qR(e,t,n){return IR(t,n).map((t=>{if("string"!=typeof t)throw new Error("Invalid mask");let i=e;if(i.length>1e3)return!1;let r=!0;const s={};if(t.replace(ER,(e=>{if(RR[e]){const t=RR[e],a=i.search(t[0]);~a?i.replace(t[0],(e=>(t[1](s,e,n),i=i.substr(a+e.length),e))):r=!1}return RR[e]?"":e.slice(1,e.length-1)})),!r)return!1;const a=new Date;let o;return null!=s.hours&&(!0===s.isPm&&12!=+s.hours?s.hours=+s.hours+12:!1===s.isPm&&12==+s.hours&&(s.hours=0)),null!=s.timezoneOffset?(s.minutes=+(s.minutes||0)-+s.timezoneOffset,o=new Date(Date.UTC(s.year||a.getFullYear(),s.month||0,s.day||1,s.hours||0,s.minutes||0,s.seconds||0,s.milliseconds||0))):o=n.getDateFromParts({year:s.year||a.getFullYear(),month:(s.month||0)+1,day:s.day||1,hours:s.hours||0,minutes:s.minutes||0,seconds:s.seconds||0,milliseconds:s.milliseconds||0}),o})).find((e=>e))||new Date(e)}RR.DD=RR.D,RR.dd=RR.d,RR.WWWW=RR.WWW=RR.WW=RR.W,RR.MM=RR.M,RR.mm=RR.m,RR.hh=RR.H=RR.HH=RR.h,RR.ss=RR.s,RR.A=RR.a,RR.ZZZZ=RR.ZZZ=RR.ZZ=RR.Z;let ZR=0;class KR{constructor(e,t,n){uS(this,"key",""),uS(this,"hashcode",""),uS(this,"highlight",null),uS(this,"content",null),uS(this,"dot",null),uS(this,"bar",null),uS(this,"event",null),uS(this,"popover",null),uS(this,"customData",null),uS(this,"ranges"),uS(this,"hasRanges",!1),uS(this,"order",0),uS(this,"pinPage",!1),uS(this,"maxRepeatSpan",0),uS(this,"locale");const{dates:i}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++ZR),this.locale=n,t.normalizeGlyphs(this),this.ranges=n.ranges(i??[]),this.hasRanges=!!NM(this.ranges),this.maxRepeatSpan=this.ranges.filter((e=>e.hasRepeat)).map((e=>e.daySpan)).reduce(((e,t)=>Math.max(e,t)),0)}intersectsRange({start:e,end:t}){if(null==e||null==t)return!1;const n=this.ranges.filter((e=>!e.hasRepeat));for(const i of n)if(i.intersectsDayRange(e.dayIndex,t.dayIndex))return!0;const i=this.ranges.filter((e=>e.hasRepeat));if(!i.length)return!1;let r=e;for(this.maxRepeatSpan>1&&(r=this.locale.getDateParts(PO(r.date,-this.maxRepeatSpan)));r.dayIndex<=t.dayIndex;){for(const e of i)if(e.startsOnDay(r))return!0;r=this.locale.getDateParts(PO(r.date,1))}return!1}}function JR(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function QR(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function eI(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function tI(e){const{visibility:t}=e,n="click"===t,i="hover"===t,r="hover-focus"===t,s="focus"===t;e.autoHide=!n;let a=!1,o=!1;const l=t=>{n&&(eI({...e,target:e.target||t.currentTarget}),t.stopPropagation())},c=t=>{a||(a=!0,(i||r)&&JR({...e,target:e.target||t.currentTarget}))},u=()=>{a&&(a=!1,(i||r&&!o)&&QR(e))},h=t=>{o||(o=!0,(s||r)&&JR({...e,target:e.target||t.currentTarget}))},d=t=>{o&&!YM(t.currentTarget,t.relatedTarget)&&(o=!1,(s||r&&!a)&&QR(e))},p={};switch(e.visibility){case"click":p.click=l;break;case"hover":p.mousemove=c,p.mouseleave=u;break;case"focus":p.focusin=h,p.focusout=d;break;case"hover-focus":p.mousemove=c,p.mouseleave=u,p.focusin=h,p.focusout=d}return p}const nI=e=>{const t=FM(e);if(null==t)return;const n=t.popoverHandlers;n&&n.length&&(n.forEach((e=>e())),delete t.popoverHandlers)},iI=(e,t)=>{const n=FM(e);if(null==n)return;const i=[],r=tI(t);Object.entries(r).forEach((([e,t])=>{i.push(zM(n,e,t))})),n.popoverHandlers=i},rI={mounted(e,t){const{value:n}=t;n&&iI(e,n)},updated(e,t){const{oldValue:n,value:i}=t,r=null==n?void 0:n.visibility,s=null==i?void 0:i.visibility;r!==s&&(r&&(nI(e),s||QR(n)),s&&iI(e,i))},unmounted(e){nI(e)}},sI={};function aI(){return"undefined"!=typeof window}function oI(e){const t=Wt(!1),n=ja((()=>t.value?"dark":"light"));let i,r;function s(e){t.value=e.matches}function a(){var e;e="matchMedia",aI()&&e in window&&(i=window.matchMedia("(prefers-color-scheme: dark)"),i.addEventListener("change",s),t.value=i.matches)}function o(){const{selector:n=":root",darkClass:i="dark"}=e.value,r=document.querySelector(n);t.value=r.classList.contains(i)}function l(){u();const n=typeof e.value;"string"===n&&"system"===e.value.toLowerCase()?a():"object"===n?function(e){const{selector:n=":root",darkClass:i="dark"}=e;if(aI()&&n&&i){const e=document.querySelector(n);e&&(r=new MutationObserver(o),r.observe(e,{attributes:!0,attributeFilter:["class"]}),t.value=e.classList.contains(i))}}(e.value):t.value=!!e.value}const c=xi((()=>e.value),(()=>l()),{immediate:!0});function u(){i&&(i.removeEventListener("change",s),i=void 0),r&&(r.disconnect(),r=void 0)}function h(){u(),c()}return ar((()=>h())),{isDark:t,displayMode:n,cleanup:h}}const lI=["base","start","end","startEnd"],cI=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],uI={base:{},start:{},end:{}};function hI(e,t,n=uI){let i=e,r={};!0===t||fE(t)?(i=fE(t)?t:i,r={...n}):PM(t)&&(r=OM(t,lI)?{...t}:{base:{...t},start:{...t},end:{...t}});const s=EM(r,{start:r.startEnd,end:r.startEnd},n);return Object.entries(s).forEach((([e,t])=>{let n=i;!0===t||fE(t)?(n=fE(t)?t:n,s[e]={color:n}):PM(t)&&(OM(t,cI)?s[e]={...t}:s[e]={}),EM(s[e],{color:n})})),s}class dI{constructor(){uS(this,"type","highlight")}normalizeConfig(e,t){return hI(e,t,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:t,onEnd:n},i){const{key:r,highlight:s}=e;if(!s)return;const{highlights:a}=i,{base:o,start:l,end:c}=s;t&&n?a.push({...l,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]}):t?(a.push({...o,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${o.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${o.fillMode}`,o.class]}),a.push({...l,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})):n?(a.push({...o,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${o.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${o.fillMode}`,o.class]}),a.push({...c,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})):a.push({...o,key:`${r}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${o.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${o.fillMode}`,o.class],contentClass:[`vc-attr vc-highlight-content-${o.fillMode} vc-${o.color}`,o.contentClass]})}}class pI{constructor(e,t){uS(this,"type",""),uS(this,"collectionType",""),this.type=e,this.collectionType=t}normalizeConfig(e,t){return hI(e,t)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:t,onEnd:n},i){const{key:r}=e,s=e[this.type];if(!r||!s)return;const a=i[this.collectionType],{base:o,start:l,end:c}=s;t?a.push({...l,key:r,class:[`vc-${this.type} vc-${this.type}-start vc-${l.color} vc-attr`,l.class]}):n?a.push({...c,key:r,class:[`vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,c.class]}):a.push({...o,key:r,class:[`vc-${this.type} vc-${this.type}-base vc-${o.color} vc-attr`,o.class]})}}class fI extends pI{constructor(){super("content","content")}normalizeConfig(e,t){return hI("base",t)}}class gI extends pI{constructor(){super("dot","dots")}}class mI extends pI{constructor(){super("bar","bars")}}class vI{constructor(e){uS(this,"color"),uS(this,"renderers",[new fI,new dI,new gI,new mI]),this.color=e}normalizeGlyphs(e){this.renderers.forEach((t=>{const n=t.type;null!=e[n]&&(e[n]=t.normalizeConfig(this.color,e[n]))}))}prepareRender(e={}){return this.renderers.forEach((t=>{t.prepareRender(e)})),e}render(e,t){this.renderers.forEach((n=>{n.render(e,t)}))}}const bI=Symbol("__vc_base_context__"),xI={color:{type:String,default:()=>ZO("color")},isDark:{type:[Boolean,String,Object],default:()=>ZO("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function yI(e){const t=ja((()=>e.color??"")),n=ja((()=>e.isDark??!1)),{displayMode:i}=oI(n),r=ja((()=>new vI(t.value))),s=ja((()=>{if(e.locale instanceof KO)return e.locale;const t=PM(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new KO(t,e.timezone)})),a=ja((()=>s.value.masks)),o=ja((()=>e.minDate)),l=ja((()=>e.maxDate)),c=ja((()=>{const t=e.disabledDates?[...e.disabledDates]:[];return null!=o.value&&t.push({start:null,end:PO(s.value.toDate(o.value),-1)}),null!=l.value&&t.push({start:PO(s.value.toDate(l.value),1),end:null}),s.value.ranges(t)})),u=ja((()=>new KR({key:"disabled",dates:c.value,order:100},r.value,s.value))),h={color:t,isDark:n,displayMode:i,theme:r,locale:s,masks:a,minDate:o,maxDate:l,disabledDates:c,disabledAttribute:u};return Jr(bI,h),h}function wI(e){return`__vc_slot_${e}__`}function kI(e,t={}){Object.keys(e).forEach((n=>{Jr(wI(t[n]??n),e[n])}))}function AI(e){return Qr(wI(e),null)}const SI={...xI,view:{type:String,default:"monthly",validator:e=>["daily","weekly","monthly"].includes(e)},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>ZO("titlePosition")},navVisibility:{type:String,default:()=>ZO("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},CI=Symbol("__vc_calendar_context__");function _I(e,{slots:t,emit:n}){const i=Wt(null),r=Wt(null),s=Wt((new Date).getDate()),a=Wt(!1),o=Wt(Symbol()),l=Wt(Symbol()),c=Wt(e.view),u=Wt([]),h=Wt("");let d=null,p=null;kI(t);const{theme:f,color:g,displayMode:m,locale:v,masks:b,minDate:x,maxDate:y,disabledAttribute:w,disabledDates:k}=function(e){return Qr(bI,(()=>yI(e)),!0)}(e),A=ja((()=>e.rows*e.columns)),S=ja((()=>e.step||A.value)),C=ja((()=>LM(u.value)??null)),_=ja((()=>TM(u.value)??null)),E=ja((()=>e.minPage||(x.value?N(x.value):null))),L=ja((()=>e.maxPage||(y.value?N(y.value):null))),T=ja((()=>e.navVisibility)),D=ja((()=>!!e.showWeeknumbers)),P=ja((()=>!!e.showIsoWeeknumbers)),M=ja((()=>"monthly"===c.value)),O=ja((()=>"weekly"===c.value)),R=ja((()=>"daily"===c.value)),I=(e,t,n=c.value)=>FO(e,t,n,v.value),N=e=>NO(e,c.value,v.value),F=e=>{e.isFocusable=e.inMonth&&e.day===s.value},B=(e,t)=>{for(const n of e)for(const e of n.days)if(!1===t(e))return},z=ja((()=>u.value.reduce(((e,t)=>(e.push(...t.viewDays),e)),[]))),Y=ja((()=>{const t=[];return(e.attributes||[]).forEach(((e,n)=>{e&&e.dates&&t.push(new KR({...e,order:e.order||0},f.value,v.value))})),w.value&&t.push(w.value),t})),j=ja((()=>NM(Y.value))),H=ja((()=>{const e=new VO;return Y.value.forEach((t=>{t.ranges.forEach((n=>{e.render(t,n,z.value)}))})),e})),W=ja((()=>z.value.reduce(((e,t)=>(e[t.dayIndex]={day:t,cells:[]},e[t.dayIndex].cells.push(...H.value.getCells(t)),e)),{}))),X=(t,n)=>{const i=e.showWeeknumbers||e.showIsoWeeknumbers;return null==i?"":SD(i)?i?"left":"":i.startsWith("right")?n>1?"right":i:t>1?"left":i},V=()=>{if(BO(C.value))return C.value;const e=(()=>{var e,t;if(!j.value)return null;const n=Y.value.find((e=>e.pinPage))||Y.value[0];if(!n||!n.hasRanges)return null;const[i]=n.ranges,r=(null==(e=i.start)?void 0:e.date)||(null==(t=i.end)?void 0:t.date);return r?N(r):null})();return BO(e)?e:N(new Date)},U=(e,t={})=>{const{view:n=c.value,position:i=1,force:r}=t,s=i>0?1-i:-(A.value+i);let a=I(e,s,n),o=I(a,A.value-1,n);return r||(zO(a,E.value)?a=E.value:YO(o,L.value)&&(a=I(L.value,1-A.value)),o=I(a,A.value-1)),{fromPage:a,toPage:o}},$=(t={})=>new Promise(((n,i)=>{const{position:r=1,force:s=!1,transition:a}=t,o=BO(t.page)?t.page:V(),{fromPage:l}=U(o,{position:r,force:s}),p=[];for(let t=0;t<A.value;t++){const n=I(l,t),i=t+1,r=Math.ceil(i/e.columns),s=e.rows-r+1,a=i%e.columns||e.columns,o=e.columns-a+1,u=X(a,o);p.push(v.value.getPage({...n,view:c.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:i,row:r,rowFromEnd:s,column:a,columnFromEnd:o,showWeeknumbers:D.value,showIsoWeeknumbers:P.value,weeknumberPosition:u}))}h.value=((e,t,n="")=>{if("none"===n||"fade"===n)return n;if((null==e?void 0:e.view)!==(null==t?void 0:t.view))return"fade";const i=YO(t,e),r=zO(t,e);return i||r?"slide-v"===n?r?"slide-down":"slide-up":r?"slide-right":"slide-left":"fade"})(u.value[0],p[0],a),u.value=p,h.value&&"none"!==h.value?d={resolve:n,reject:i}:n(!0)})),G=e=>{const t=C.value??N(new Date);return I(t,e)},q=(e,t={})=>{const n=BO(e)?e:N(e);Object.assign(t,U(n,{...t,force:!0}));const i=function(e,t,n,i){if(!BO(e)||!BO(t))return[];const r=[];for(;!YO(e,t);)r.push(e),e=FO(e,1,n,i);return r}(t.fromPage,t.toPage,c.value,v.value).map((e=>function(e,t,n){return!!e&&!zO(e,t)&&!YO(e,n)}(e,E.value,L.value)));return i.some((e=>e))},Z=(e,t={})=>q(G(e),t),K=ja((()=>Z(-S.value))),J=ja((()=>Z(S.value))),Q=async(e,t={})=>{return!(!t.force&&!q(e,t))&&(t.fromPage&&(i=t.fromPage,r=C.value,!i&&r||i&&!r||(i||r)&&(i.year!==r.year||i.month!==r.month||i.week!==r.week||i.day!==r.day))&&(QR({id:o.value,hideDelay:0}),t.view&&(((e,t=10)=>{sI[e]=Date.now()+t})("view",10),c.value=t.view),await $({...t,page:t.fromPage,position:1,force:!0}),n("did-move",u.value)),!0);var i,r},ee=(e,t={})=>Q(G(e),t),te=()=>ee(-S.value),ne=()=>ee(S.value),ie=e=>{const t=M.value?".in-month":"",n=`.id-${v.value.getDayId(e)}${t}`,r=`${n}.vc-focusable, ${n} .vc-focusable`,s=i.value;if(s){const e=s.querySelector(r);if(e)return e.focus(),!0}return!1},re=async(e,t={})=>!!ie(e)||(await Q(e,t),ie(e)),se=(e,t)=>{n("daykeydown",e,t);const i=e.noonDate;let r=null;switch(t.key){case"ArrowLeft":r=PO(i,-1);break;case"ArrowRight":r=PO(i,1);break;case"ArrowUp":r=PO(i,-7);break;case"ArrowDown":r=PO(i,7);break;case"Home":r=PO(i,1-e.weekdayPosition);break;case"End":r=PO(i,e.weekdayPositionFromEnd);break;case"PageUp":r=t.altKey?OO(i,-1):MO(i,-1);break;case"PageDown":r=t.altKey?OO(i,1):MO(i,1)}r&&(t.preventDefault(),re(r).catch())};$({page:e.initialPage,position:e.initialPagePosition}),nr((()=>{!e.disablePageSwipe&&i.value&&(p=((e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:i,maxVerticalSwipeDistance:r})=>{if(!e||!e.addEventListener||!XS(t))return null;let s=0,a=0,o=null,l=!1;function c(e){const t=e.changedTouches[0];s=t.screenX,a=t.screenY,o=(new Date).getTime(),l=!0}function u(e){if(!l||!o)return;l=!1;const c=e.changedTouches[0],u=c.screenX-s,h=c.screenY-a;if((new Date).getTime()-o<n&&Math.abs(u)>=i&&Math.abs(h)<=r){const e={toLeft:!1,toRight:!1};u<0?e.toLeft=!0:e.toRight=!0,t(e)}}return zM(e,"touchstart",c,{passive:!0}),zM(e,"touchend",u,{passive:!0}),()=>{BM(e,"touchstart",c),BM(e,"touchend",u)}})(i.value,(({toLeft:e=!1,toRight:t=!1})=>{e?ne():t&&te()}),ZO("touch")))})),ar((()=>{u.value=[],p&&p()})),xi((()=>v.value),(()=>{$()})),xi((()=>A.value),(()=>$())),xi((()=>e.view),(()=>c.value=e.view)),xi((()=>c.value),(()=>{((e,t)=>{if(e in sI){const t=sI[e];if(Date.now()<t)return;delete sI[e]}t()})("view",(()=>{$()})),n("update:view",c.value)})),xi((()=>s.value),(()=>{B(u.value,(e=>F(e)))})),gi((()=>{n("update:pages",u.value),B(u.value,(e=>{(e=>{w.value&&H.value&&(e.isDisabled=H.value.cellExists(w.value.key,e.dayIndex))})(e),F(e)}))}));const ae={emit:n,containerRef:i,focusedDay:r,inTransition:a,navPopoverId:o,dayPopoverId:l,view:c,pages:u,transitionName:h,theme:f,color:g,displayMode:m,locale:v,masks:b,attributes:Y,disabledAttribute:w,disabledDates:k,attributeContext:H,days:z,dayCells:W,count:A,step:S,firstPage:C,lastPage:_,canMovePrev:K,canMoveNext:J,minPage:E,maxPage:L,isMonthly:M,isWeekly:O,isDaily:R,navVisibility:T,showWeeknumbers:D,showIsoWeeknumbers:P,getDateAddress:N,canMove:q,canMoveBy:Z,move:Q,moveBy:ee,movePrev:te,moveNext:ne,onTransitionBeforeEnter:()=>{a.value=!0,n("transition-start")},onTransitionAfterEnter:()=>{a.value=!1,n("transition-end"),d&&(d.resolve(!0),d=null)},tryFocusDate:ie,focusDate:re,onKeydown:e=>{const t=r.value;null!=t&&se(t,e)},onDayKeydown:se,onDayClick:(e,t)=>{s.value=e.day,n("dayclick",e,t)},onDayMouseenter:(e,t)=>{n("daymouseenter",e,t)},onDayMouseleave:(e,t)=>{n("daymouseleave",e,t)},onDayFocusin:(e,t)=>{s.value=e.day,r.value=e,e.isFocused=!0,n("dayfocusin",e,t)},onDayFocusout:(e,t)=>{r.value=null,e.isFocused=!1,n("dayfocusout",e,t)},onWeeknumberClick:(e,t)=>{n("weeknumberclick",e,t)}};return Jr(CI,ae),ae}function EI(){const e=Qr(CI);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const LI=zi({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const i=Wt();let r=null,s=null;const a=Ct({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function o(e){e&&(a.direction=e.split("-")[0])}function l({placement:e,options:t}){o(e||(null==t?void 0:t.placement))}const c=ja((()=>({placement:a.placement,strategy:a.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:l},...a.modifiers||[]],onFirstUpdate:l}))),u=ja((()=>{const e="left"===a.direction||"right"===a.direction;let t="";if(a.placement){const e=a.placement.split("-");e.length>1&&(t=e[1])}return["start","top","left"].includes(t)?e?"top":"left":["end","bottom","right"].includes(t)?e?"bottom":"right":e?"middle":"center"}));function h(){s&&(s.destroy(),s=null)}function d(){An((()=>{const e=FM(a.target);e&&i.value&&(s&&s.state.elements.reference!==e&&h(),s?s.update():s=lS(e,i.value,c.value))}))}function p(e,t){clearTimeout(n),e>0?n=setTimeout(t,e):t()}function f(e){if(!e||!s)return!1;return FM(e)===s.state.elements.reference}async function g(t={}){a.force||(t.force&&(a.force=!0),p(t.showDelay??e.showDelay,(()=>{var e;a.isVisible&&(a.force=!1),e={...t,isVisible:!0},Object.assign(a,HM(e,"force")),d()})))}function m(t={}){s&&(t.target&&!f(t.target)||a.force||(t.force&&(a.force=!0),p(t.hideDelay??e.hideDelay,(()=>{a.isVisible||(a.force=!1),a.isVisible=!1}))))}function v(e){if(!s)return;const t=s.state.elements.reference;if(!i.value||!t)return;const n=e.target;YM(i.value,n)||YM(t,n)||m({force:!0})}function b(e){"Esc"!==e.key&&"Escape"!==e.key||m()}function x({detail:t}){t.id&&t.id===e.id&&g(t)}function y({detail:t}){t.id&&t.id===e.id&&m(t)}function w({detail:t}){t.id&&t.id===e.id&&function(e={}){null!=e.target&&(a.isVisible&&f(e.target)?m(e):g(e))}(t)}function k(){null!=r&&(r.disconnect(),r=null)}return xi((()=>i.value),(e=>{k(),e&&(r=new ResizeObserver((()=>{s&&s.update()})),r.observe(e))})),xi((()=>a.placement),o,{immediate:!0}),nr((()=>{zM(document,"keydown",b),zM(document,"click",v),zM(document,"show-popover",x),zM(document,"hide-popover",y),zM(document,"toggle-popover",w)})),ar((()=>{h(),k(),BM(document,"keydown",b),BM(document,"click",v),BM(document,"show-popover",x),BM(document,"hide-popover",y),BM(document,"toggle-popover",w)})),{...en(a),popoverRef:i,alignment:u,hide:m,setupPopper:d,beforeEnter:function(e){t("before-show",e)},afterEnter:function(e){a.force=!1,t("after-show",e)},beforeLeave:function(e){t("before-hide",e)},afterLeave:function(e){a.force=!1,h(),t("after-hide",e)},onClick:function(e){e.stopPropagation()},onMouseOver:function(){a.isHovered=!0,a.isInteractive&&["hover","hover-focus"].includes(a.visibility)&&g()},onMouseLeave:function(){if(a.isHovered=!1,!s)return;const e=s.state.elements.reference;!a.autoHide||a.isFocused||e&&e===document.activeElement||!["hover","hover-focus"].includes(a.visibility)||m()},onFocusIn:function(){a.isFocused=!0,a.isInteractive&&["focus","hover-focus"].includes(a.visibility)&&g()},onFocusOut:function(e){!["focus","hover-focus"].includes(a.visibility)||e.relatedTarget&&YM(i.value,e.relatedTarget)||(a.isFocused=!1,!a.isHovered&&a.autoHide&&m())}}}}),TI=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n};const DI=TI(LI,[["render",function(e,t,n,i,r,s){return Us(),Js("div",{class:Z(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),onMouseover:t[1]||(t[1]=(...t)=>e.onMouseOver&&e.onMouseOver(...t)),onMouseleave:t[2]||(t[2]=(...t)=>e.onMouseLeave&&e.onMouseLeave(...t)),onFocusin:t[3]||(t[3]=(...t)=>e.onFocusIn&&e.onFocusIn(...t)),onFocusout:t[4]||(t[4]=(...t)=>e.onFocusOut&&e.onFocusOut(...t))},[aa(lo,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:Xn((()=>[e.isVisible?(Us(),Js("div",ma({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[pr(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},(()=>[ua(le(e.data),1)])),sa("span",{class:Z(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):da("",!0)])),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}]]),PI={class:"vc-day-popover-row"},MI={key:0,class:"vc-day-popover-row-indicator"},OI={class:"vc-day-popover-row-label"},RI=zi({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=ja((()=>{const{content:e,highlight:n,dot:i,bar:r,popover:s}=t.attribute;return s&&s.hideIndicator?null:e?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${e.base.color}`}:n?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${n.base.color}`}:i?{class:`vc-dot vc-attr vc-${i.base.color}`}:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:null}));return(t,i)=>(Us(),Js("div",PI,[Gt(n)?(Us(),Js("div",MI,[sa("span",{class:Z(Gt(n).class)},null,2)])):da("",!0),sa("div",OI,[pr(t.$slots,"default",{},(()=>[ua(le(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)]))])]))}}),II=zi({inheritAttrs:!1,__name:"CalendarSlot",props:{name:null},setup(e){const t=AI(e.name);return(e,n)=>Gt(t)?(Us(),Qs(ti(Gt(t)),K(ma({key:0},e.$attrs)),null,16)):pr(e.$slots,"default",{key:1})}}),NI={class:"vc-day-popover-container"},FI={key:0,class:"vc-day-popover-header"},BI=zi({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:i,masks:r,locale:s}=EI();function a(e,t){return s.value.formatDate(e,t)}function o(e){return s.value.formatDate(e.date,r.value.dayPopover)}return(e,s)=>(Us(),Qs(DI,{id:Gt(t),class:Z([`vc-${Gt(i)}`,`vc-${Gt(n)}`])},{default:Xn((({data:{day:e,attributes:t},hide:n})=>[aa(II,{name:"day-popover",day:e,"day-title":o(e),attributes:t,format:a,masks:Gt(r),hide:n},{default:Xn((()=>[sa("div",NI,[Gt(r).dayPopover?(Us(),Js("div",FI,le(o(e)),1)):da("",!0),(Us(!0),Js(Ys,null,hr(t,(e=>(Us(),Qs(RI,{key:e.key,attribute:e},null,8,["attribute"])))),128))])])),_:2},1032,["day","day-title","attributes","masks","hide"])])),_:1},8,["id","class"]))}}),zI={},YI={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},jI=[sa("polyline",{points:"9 18 15 12 9 6"},null,-1)];const HI=TI(zI,[["render",function(e,t){return Us(),Js("svg",YI,jI)}]]),WI={},XI={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},VI=[sa("polyline",{points:"15 18 9 12 15 6"},null,-1)];const UI=TI(WI,[["render",function(e,t){return Us(),Js("svg",XI,VI)}]]),$I={},GI={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},qI=[sa("polyline",{points:"6 9 12 15 18 9"},null,-1)];const ZI=TI($I,[["render",function(e,t){return Us(),Js("svg",GI,qI)}]]),KI={},JI={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},QI=[sa("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];const eN=TI(KI,[["render",function(e,t){return Us(),Js("svg",JI,QI)}]]),tN=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:ZI,IconChevronLeft:UI,IconChevronRight:HI,IconClock:eN},Symbol.toStringTag,{value:"Module"})),nN=zi({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=ja((()=>t.width||t.size)),i=ja((()=>t.height||t.size)),r=ja((()=>tN[`Icon${t.name}`]));return(e,t)=>(Us(),Qs(ti(Gt(r)),{width:Gt(n),height:Gt(i),class:"vc-base-icon"},null,8,["width","height"]))}}),iN=["disabled"],rN={key:1,class:"vc-title-wrapper"},sN={type:"button",class:"vc-title"},aN=["disabled"],oN=zi({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:i,canMovePrev:r,movePrev:s,canMoveNext:a,moveNext:o}=EI(),l=ja((()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}})),c=ja((()=>{const{page:e}=t;return{id:n.value,visibility:i.value,placement:l.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:e},isInteractive:!0}})),u=ja((()=>t.page.titlePosition.includes("left"))),h=ja((()=>t.page.titlePosition.includes("right"))),d=ja((()=>t.layout?t.layout:u.value?"tu-pn":h.value?"pn-tu":"p-tu-n;")),p=ja((()=>({prev:d.value.includes("p")&&!t.hideArrows,title:d.value.includes("t")&&!t.hideTitle,next:d.value.includes("n")&&!t.hideArrows}))),f=ja((()=>{const e=d.value.split("").map((e=>{switch(e){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}})).join(" ");return{gridTemplateColumns:e}}));return(t,n)=>(Us(),Js("div",{class:Z(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:V(Gt(f))},[Gt(p).prev?(Us(),Js("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!Gt(r),onClick:n[0]||(n[0]=(...e)=>Gt(s)&&Gt(s)(...e)),onKeydown:n[1]||(n[1]=_l(((...e)=>Gt(s)&&Gt(s)(...e)),["space","enter"]))},[aa(II,{name:"header-prev-button",disabled:!Gt(r)},{default:Xn((()=>[aa(nN,{name:"ChevronLeft",size:"24"})])),_:1},8,["disabled"])],40,iN)):da("",!0),Gt(p).title?(Us(),Js("div",rN,[aa(II,{name:"header-title-wrapper"},{default:Xn((()=>[Si((Us(),Js("button",sN,[aa(II,{name:"header-title",title:e.page.title},{default:Xn((()=>[sa("span",null,le(e.page.title),1)])),_:1},8,["title"])])),[[Gt(rI),Gt(c)]])])),_:1})])):da("",!0),Gt(p).next?(Us(),Js("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!Gt(a),onClick:n[2]||(n[2]=(...e)=>Gt(o)&&Gt(o)(...e)),onKeydown:n[3]||(n[3]=_l(((...e)=>Gt(o)&&Gt(o)(...e)),["space","enter"]))},[aa(II,{name:"header-next-button",disabled:!Gt(a)},{default:Xn((()=>[aa(nN,{name:"ChevronRight",size:"24"})])),_:1},8,["disabled"])],40,aN)):da("",!0)],6))}}),lN=Symbol("__vc_page_context__");function cN(){const e=Qr(lN);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const uN={class:"vc-nav-header"},hN=["disabled"],dN=["disabled"],pN={class:"vc-nav-items"},fN=["data-id","aria-label","disabled","onClick","onKeydown"],gN=zi({__name:"CalendarNav",setup(e){const{masks:t,move:n}=EI(),{page:i,getMonthItems:r,getYearItems:s}=cN(),a=Wt(!0),o=Wt(i.value.year),l=Wt(h(i.value.year)),c=Wt(null);function u(){setTimeout((()=>{if(null==c.value)return;const e=c.value.querySelector(".vc-nav-item:not(:disabled)");e&&e.focus()}),10)}function h(e){return Math.floor(e/12)}function d(){a.value=!a.value}function p(e){return 12*e}function f(e){return 12*(e+1)-1}function g(){L.value&&(a.value&&o.value--,l.value--)}function m(){T.value&&(a.value&&o.value++,l.value++)}const v=ja((()=>r(o.value,t.value.navMonths).map((e=>({...e,click:()=>n({month:e.month,year:e.year},{position:i.value.position})}))))),b=ja((()=>r(o.value-1,t.value.navMonths))),x=ja((()=>b.value.some((e=>!e.isDisabled)))),y=ja((()=>r(o.value+1,t.value.navMonths))),w=ja((()=>y.value.some((e=>!e.isDisabled)))),k=ja((()=>s(p(l.value),f(l.value)).map((e=>({...e,click:()=>{o.value=e.year,a.value=!0,u()}}))))),A=ja((()=>s(p(l.value-1),f(l.value-1)))),S=ja((()=>A.value.some((e=>!e.isDisabled)))),C=ja((()=>s(p(l.value+1),f(l.value+1)))),_=ja((()=>C.value.some((e=>!e.isDisabled)))),E=ja((()=>a.value?v.value:k.value)),L=ja((()=>a.value?x.value:S.value)),T=ja((()=>a.value?w.value:_.value)),D=ja((()=>LM(k.value.map((e=>e.year))))),P=ja((()=>TM(k.value.map((e=>e.year))))),M=ja((()=>a.value?o.value:`${D.value} - ${P.value}`));return gi((()=>{o.value=i.value.year,u()})),xi((()=>o.value),(e=>l.value=h(e))),nr((()=>u())),(e,t)=>(Us(),Js("div",{class:"vc-nav-container",ref_key:"navContainer",ref:c},[sa("div",uN,[sa("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!Gt(L),onClick:g,onKeydown:t[0]||(t[0]=e=>Gt(jM)(e,g))},[aa(II,{name:"nav-prev-button",move:g,disabled:!Gt(L)},{default:Xn((()=>[aa(nN,{name:"ChevronLeft",width:"22px",height:"24px"})])),_:1},8,["disabled"])],40,hN),sa("button",{type:"button",class:"vc-nav-title vc-focus",onClick:d,onKeydown:t[1]||(t[1]=e=>Gt(jM)(e,d))},le(Gt(M)),33),sa("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!Gt(T),onClick:m,onKeydown:t[2]||(t[2]=e=>Gt(jM)(e,m))},[aa(II,{name:"nav-next-button",move:m,disabled:!Gt(T)},{default:Xn((()=>[aa(nN,{name:"ChevronRight",width:"22px",height:"24px"})])),_:1},8,["disabled"])],40,dN)]),sa("div",pN,[(Us(!0),Js(Ys,null,hr(Gt(E),(e=>(Us(),Js("button",{key:e.label,type:"button","data-id":e.id,"aria-label":e.ariaLabel,class:Z(["vc-nav-item vc-focus",[e.isActive?"is-active":e.isCurrent?"is-current":""]]),disabled:e.isDisabled,onClick:e.click,onKeydown:t=>Gt(jM)(t,e.click)},le(e.label),43,fN)))),128))])],512))}}),mN=zi({__name:"CalendarPageProvider",props:{page:null},setup:e=>(function(e){const{locale:t,getDateAddress:n,canMove:i}=EI(),r={page:e,getMonthItems:function(r,s){const{month:a,year:o}=n(new Date);return VR().map(((n,l)=>{const c=l+1;return{month:c,year:r,id:IO(c,r),label:t.value.formatDate(n,s),ariaLabel:t.value.formatDate(n,"MMMM"),isActive:c===e.value.month&&r===e.value.year,isCurrent:c===a&&r===o,isDisabled:!i({month:c,year:r},{position:e.value.position})}}))},getYearItems:function(t,r){const{year:s}=n(new Date),{position:a}=e.value,o=[];for(let n=t;n<=r;n+=1){const t=[...Array(12).keys()].some((e=>i({month:e+1,year:n},{position:a})));o.push({year:n,id:n.toString(),label:n.toString(),ariaLabel:n.toString(),isActive:n===e.value.year,isCurrent:n===s,isDisabled:!t})}return o}};Jr(lN,r)}(rn(e,"page")),(e,t)=>pr(e.$slots,"default"))}),vN=zi({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:i}=EI();return(e,r)=>(Us(),Qs(DI,{id:Gt(t),class:Z(["vc-nav-popover-container",`vc-${Gt(n)}`,`vc-${Gt(i)}`])},{default:Xn((({data:e})=>[aa(mN,{page:e.page},{default:Xn((()=>[aa(II,{name:"nav"},{default:Xn((()=>[aa(gN)])),_:1})])),_:2},1032,["page"])])),_:1},8,["id","class"]))}}),bN=zi({directives:{popover:rI},components:{CalendarSlot:II},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:i,dayPopoverId:r,onDayClick:s,onDayMouseenter:a,onDayMouseleave:o,onDayFocusin:l,onDayFocusout:c,onDayKeydown:u}=EI(),h=ja((()=>e.day)),d=ja((()=>i.value.getCells(h.value))),p=ja((()=>d.value.map((e=>e.data)))),f=ja((()=>({...h.value,attributes:p.value,attributeCells:d.value})));const g=ja((()=>{const e={...n.value.prepareRender({}),popovers:[]};return d.value.forEach((t=>{n.value.render(t,e),function({data:e},{popovers:t}){const{key:n,customData:i,popover:r}=e;if(!r)return;const s=pP({key:n,customData:i,attribute:e},{...r},{visibility:r.label?"hover":"click",placement:"bottom",isInteractive:!r.label});t.splice(0,0,s)}(t,e)})),e})),m=ja((()=>g.value.highlights)),v=ja((()=>!!NM(m.value))),b=ja((()=>g.value.content)),x=ja((()=>g.value.dots)),y=ja((()=>!!NM(x.value))),w=ja((()=>g.value.bars)),k=ja((()=>!!NM(w.value))),A=ja((()=>g.value.popovers)),S=ja((()=>A.value.map((e=>e.attribute)))),C=AI("day-content"),_=ja((()=>["vc-day",...h.value.classes,{"vc-day-box-center-center":!C},{"is-not-in-month":!e.day.inMonth}])),E=ja((()=>{let e;e=h.value.isFocusable?"0":"-1";return{class:["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":h.value.isDisabled},FT(TM(m.value),"contentClass"),FT(TM(b.value),"class")||""],style:{...FT(TM(m.value),"contentStyle"),...FT(TM(b.value),"style")},tabindex:e,"aria-label":h.value.ariaLabel,"aria-disabled":!!h.value.isDisabled,role:"button"}})),L=ja((()=>({click(e){s(f.value,e)},mouseenter(e){a(f.value,e)},mouseleave(e){o(f.value,e)},focusin(e){l(f.value,e)},focusout(e){c(f.value,e)},keydown(e){u(f.value,e)}}))),T=ja((()=>NM(A.value)?pP({id:r.value,data:{day:h,attributes:S.value}},...A.value):null));return{attributes:p,attributeCells:d,bars:w,dayClasses:_,dayContentProps:E,dayContentEvents:L,dayPopover:T,glyphs:g,dots:x,hasDots:y,hasBars:k,highlights:m,hasHighlights:v,locale:t,popovers:A}}}),xN={key:0,class:"vc-highlights vc-day-layer"},yN={key:1,class:"vc-day-layer vc-day-box-center-bottom"},wN={class:"vc-dots"},kN={key:2,class:"vc-day-layer vc-day-box-center-bottom"},AN={class:"vc-bars"};const SN=TI(bN,[["render",function(e,t,n,i,r,s){const a=Qn("CalendarSlot"),o=ni("popover");return Us(),Js("div",{class:Z(e.dayClasses)},[e.hasHighlights?(Us(),Js("div",xN,[(Us(!0),Js(Ys,null,hr(e.highlights,(({key:e,wrapperClass:t,class:n,style:i})=>(Us(),Js("div",{key:e,class:Z(t)},[sa("div",{class:Z(n),style:V(i)},null,6)],2)))),128))])):da("",!0),aa(a,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:Xn((()=>[Si((Us(),Js("div",ma(e.dayContentProps,gr(e.dayContentEvents,!0)),[ua(le(e.day.label),1)],16)),[[o,e.dayPopover]])])),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(Us(),Js("div",yN,[sa("div",wN,[(Us(!0),Js(Ys,null,hr(e.dots,(({key:e,class:t,style:n})=>(Us(),Js("span",{key:e,class:Z(t),style:V(n)},null,6)))),128))])])):da("",!0),e.hasBars?(Us(),Js("div",kN,[sa("div",AN,[(Us(!0),Js(Ys,null,hr(e.bars,(({key:e,class:t,style:n})=>(Us(),Js("span",{key:e,class:Z(t),style:V(n)},null,6)))),128))])])):da("",!0)],2)}]]),CN={class:"vc-weekdays"},_N=["onClick"],EN=zi({inheritAttrs:!1,__name:"CalendarPage",setup(e){const{page:t}=cN(),{onWeeknumberClick:n}=EI();return(e,i)=>(Us(),Js("div",{class:Z(["vc-pane",`row-${Gt(t).row}`,`row-from-end-${Gt(t).rowFromEnd}`,`column-${Gt(t).column}`,`column-from-end-${Gt(t).columnFromEnd}`]),ref:"pane"},[aa(oN,{page:Gt(t),"is-lg":"","hide-arrows":""},null,8,["page"]),sa("div",{class:Z(["vc-weeks",{[`vc-show-weeknumbers-${Gt(t).weeknumberPosition}`]:Gt(t).weeknumberPosition}])},[sa("div",CN,[(Us(!0),Js(Ys,null,hr(Gt(t).weekdays,(({weekday:e,label:t},n)=>(Us(),Js("div",{key:n,class:Z(`vc-weekday vc-weekday-${e}`)},le(t),3)))),128))]),(Us(!0),Js(Ys,null,hr(Gt(t).viewWeeks,(e=>(Us(),Js("div",{key:`weeknumber-${e.weeknumber}`,class:"vc-week"},[Gt(t).weeknumberPosition?(Us(),Js("div",{key:0,class:Z(["vc-weeknumber",`is-${Gt(t).weeknumberPosition}`])},[sa("span",{class:Z(["vc-weeknumber-content"]),onClick:t=>Gt(n)(e,t)},le(e.weeknumberDisplay),9,_N)],2)):da("",!0),(Us(!0),Js(Ys,null,hr(e.days,(e=>(Us(),Qs(SN,{key:e.id,day:e},null,8,["day"])))),128))])))),128))],2)],2))}}),LN=zi({components:{CalendarHeader:oN,CalendarPage:EN,CalendarNavPopover:vN,CalendarDayPopover:BI,CalendarPageProvider:mN,CalendarSlot:II},props:SI,emit:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],setup:(e,{emit:t,slots:n})=>_I(e,{emit:t,slots:n})}),TN={class:"vc-pane-header-wrapper"};const DN=TI(LN,[["render",function(e,t,n,i,r,s){const a=Qn("CalendarHeader"),o=Qn("CalendarPage"),l=Qn("CalendarSlot"),c=Qn("CalendarPageProvider"),u=Qn("CalendarDayPopover"),h=Qn("CalendarNavPopover");return Us(),Js(Ys,null,[sa("div",ma({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=Sl((()=>{}),["prevent"])),ref:"containerRef"}),[sa("div",{class:Z(["vc-pane-container",{"in-transition":e.inTransition}])},[sa("div",TN,[e.firstPage?(Us(),Qs(a,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):da("",!0)]),aa(lo,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:Xn((()=>[(Us(),Js("div",{key:e.pages[0].id,class:"vc-pane-layout",style:V({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(Us(!0),Js(Ys,null,hr(e.pages,(e=>(Us(),Qs(c,{key:e.id,page:e},{default:Xn((()=>[aa(l,{name:"page",page:e},{default:Xn((()=>[aa(o)])),_:2},1032,["page"])])),_:2},1032,["page"])))),128))],4))])),_:1},8,["name","onBeforeEnter","onAfterEnter"]),aa(l,{name:"footer"})],2)],16),aa(u),aa(h)],64)}]]),PN=Symbol("__vc_date_picker_context__"),MN={...xI,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>ZO("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>ZO("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]};function ON(e,{emit:t,slots:n}){kI(n,{footer:"dp-footer"});const i=yI(e),{locale:r,masks:s,disabledAttribute:a}=i,o=Wt(!1),l=Wt(Symbol()),c=Wt(null),u=Wt(null),h=Wt(["",""]),d=Wt(null),p=Wt(null);let f,g,m=!0;const v=ja((()=>e.isRange||!0===e.modelModifiers.range)),b=ja((()=>v.value&&null!=c.value?c.value.start:null)),x=ja((()=>v.value&&null!=c.value?c.value.end:null)),y=ja((()=>"date"===e.mode.toLowerCase())),w=ja((()=>"datetime"===e.mode.toLowerCase())),k=ja((()=>"time"===e.mode.toLowerCase())),A=ja((()=>!!u.value)),S=ja((()=>{let t="date";e.modelModifiers.number&&(t="number"),e.modelModifiers.string&&(t="string");return B({type:t,mask:s.value.modelValue||"iso"})})),C=ja((()=>function(e){if(v.value)return[e&&e.start?r.value.getDateParts(e.start):null,e&&e.end?r.value.getDateParts(e.end):null];return[e?r.value.getDateParts(e):null]}(u.value??c.value))),_=ja((()=>k.value?e.is24hr?s.value.inputTime24hr:s.value.inputTime:w.value?e.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input)),E=ja((()=>/[Hh]/g.test(_.value))),L=ja((()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(_.value))),T=ja((()=>E.value&&L.value?"dateTime":L.value?"date":E.value?"time":void 0)),D=ja((()=>{var t;const n=(null==(t=d.value)?void 0:t.$el.previousElementSibling)??void 0;return EM({},e.popover,ZO("datePicker.popover"),{target:n})})),P=ja((()=>tI({...D.value,id:l.value}))),M=ja((()=>v.value?{start:h.value[0],end:h.value[1]}:h.value[0])),O=ja((()=>{const t=["start","end"].map((t=>({input:Z(t),change:K(t),keyup:J,...e.popover&&P.value})));return v.value?{start:t[0],end:t[1]}:t[0]})),R=ja((()=>{if(!H(c.value))return null;const t={key:"select-drag",...e.selectAttribute,dates:c.value,pinPage:!0},{dot:n,bar:i,highlight:r,content:s}=t;return n||i||r||s||(t.highlight=!0),t})),I=ja((()=>{if(!v.value||!H(u.value))return null;const t={key:"select-drag",...e.dragAttribute,dates:u.value},{dot:n,bar:i,highlight:r,content:s}=t;return n||i||r||s||(t.highlight={startEnd:{fillMode:"outline"}}),t})),N=ja((()=>{const t=IM(e.attributes)?[...e.attributes]:[];return I.value?t.unshift(I.value):R.value&&t.unshift(R.value),t})),F=ja((()=>B("auto"===e.rules?function(){const t={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},n=y.value?0:e.timeAccuracy;return[0,1].map((e=>{switch(n){case 0:return{hours:t.hr[e],minutes:t.min[e],seconds:t.sec[e],milliseconds:t.ms[e]};case 1:return{minutes:t.min[e],seconds:t.sec[e],milliseconds:t.ms[e]};case 3:return{milliseconds:t.ms[e]};case 4:return{};default:return{seconds:t.sec[e],milliseconds:t.ms[e]}}}))}():e.rules??{})));function B(e){return IM(e)?1===e.length?[e[0],e[0]]:e:[e,e]}function z(e){return B(e).map(((e,t)=>({...e,rules:F.value[t]})))}function Y(e){return null!=e&&(ED(e)?!isNaN(e):DM(e)?!isNaN(e.getTime()):fE(e)?""!==e:NR(e))}function j(e){return PM(e)&&"start"in e&&"end"in e&&Y(e.start??null)&&Y(e.end??null)}function H(e){return j(e)||Y(e)}function W(e,t){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;const n=DM(e),i=DM(t);return n&&i?e.getTime()===t.getTime():!n&&!i&&(W(e.start,t.start)&&W(e.end,t.end))}function X(e,t,n,i){if(!H(e))return null;if(j(e)){return te({start:r.value.toDate(e.start,{...t[0],fillDate:b.value??void 0,patch:n}),end:r.value.toDate(e.end,{...t[1],fillDate:x.value??void 0,patch:n})},i)}return r.value.toDateOrNull(e,{...t[0],fillDate:c.value,patch:n})}function V(e,t){return j(e)?{start:r.value.fromDate(e.start,t[0]),end:r.value.fromDate(e.end,t[1])}:v.value?null:r.value.fromDate(e,t[0])}function U(e,t={}){return clearTimeout(f),new Promise((n=>{const{debounce:i=0,...r}=t;i>0?f=window.setTimeout((()=>{n($(e,r))}),i):n($(e,r))}))}function $(n,{config:i=S.value,patch:s="dateTime",clearIfEqual:o=!1,formatInput:l=!0,hidePopover:h=!1,dragging:d=A.value,targetPriority:p,moveToValue:f=!1}={}){let g=X(n,z(i),s,p);const v=function(e){return!(!H(e)||!a.value)&&a.value.intersectsRange(r.value.range(e))}(g);if(v){if(d)return null;g=c.value,h=!1}else null==g&&e.isRequired?g=c.value:null!=g&&W(c.value,g)&&o&&(g=null);const b=d?u:c,x=!W(b.value,g);b.value=g,d||(u.value=null);const y=V(g,S.value);return x&&(m=!1,t(d?"drag":"update:modelValue",y),An((()=>m=!0))),h&&!d&&ee(),l&&G(),f&&An((()=>ne(p??"start"))),y}function G(){An((()=>{const e=z({type:"string",mask:_.value}),t=V(u.value??c.value,e);v.value?h.value=[t&&t.start,t&&t.end]:h.value=[t,""]}))}function q(e,t,n){h.value.splice("start"===t?0:1,1,e);U(v.value?{start:h.value[0],end:h.value[1]||h.value[0]}:e,{...n,config:{type:"string",mask:_.value},patch:T.value,targetPriority:t,moveToValue:!0})}function Z(t){return n=>{e.updateOnInput&&q(n.currentTarget.value,t,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function K(e){return t=>{q(t.currentTarget.value,e,{formatInput:!0,hidePopover:!1})}}function J(e){"Escape"===e.key&&U(c.value,{formatInput:!0,hidePopover:!0})}function Q(t){const n={patch:"date",formatInput:!0,hidePopover:!0};if(v.value){const e=!A.value;e?g={start:t.startDate,end:t.endDate}:null!=g&&(g.end=t.date),U(g,{...n,dragging:e})}else U(t.date,{...n,clearIfEqual:!e.isRequired})}function ee(e={}){QR({hideDelay:10,force:!0,...D.value,...e,id:l.value})}function te(e,t){const{start:n,end:i}=e;if(n>i)switch(t){case"start":return{start:n,end:n};case"end":return{start:i,end:i};default:return{start:i,end:n}}return{start:n,end:i}}async function ne(e,t={}){const n=c.value;if(null==p.value||!H(n))return!1;const i="end"!==e,s=i?1:-1,a=NO(j(n)?i?n.start:n.end:n,"monthly",r.value);return p.value.move(a,{position:s,...t})}xi((()=>e.isRange),(e=>{e&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")}),{immediate:!0}),xi((()=>v.value),(()=>{$(null,{formatInput:!0})})),xi((()=>_.value),(()=>G())),xi((()=>e.modelValue),(e=>{m&&$(e,{formatInput:!0,hidePopover:!1})})),xi((()=>F.value),(()=>{PM(e.rules)&&$(e.modelValue,{formatInput:!0,hidePopover:!1})})),xi((()=>e.timezone),(()=>{$(c.value,{formatInput:!0})}));const ie=B(S.value);c.value=X(e.modelValue??null,ie,"dateTime"),nr((()=>{$(e.modelValue,{formatInput:!0,hidePopover:!1})})),An((()=>o.value=!0));const re={...i,showCalendar:o,datePickerPopoverId:l,popoverRef:d,popoverEvents:P,calendarRef:p,isRange:v,isTimeMode:k,isDateTimeMode:w,is24hr:rn(e,"is24hr"),hideTimeHeader:rn(e,"hideTimeHeader"),timeAccuracy:rn(e,"timeAccuracy"),isDragging:A,inputValue:M,inputEvents:O,dateParts:C,attributes:N,rules:F,move:async function(e,t={}){return null!=p.value&&p.value.move(e,t)},moveBy:async function(e,t={}){return null!=p.value&&p.value.moveBy(e,t)},moveToValue:ne,updateValue:U,showPopover:function(e={}){JR({...D.value,...e,isInteractive:!0,id:l.value})},hidePopover:ee,togglePopover:function(e){eI({...D.value,...e,isInteractive:!0,id:l.value})},onDayClick:function(e,n){Q(e),t("dayclick",e,n)},onDayKeydown:function(e,n){switch(n.key){case" ":case"Enter":Q(e),n.preventDefault();break;case"Escape":ee()}t("daykeydown",e,n)},onDayMouseEnter:function(e,t){A.value&&null!=g&&(g.end=e.date,U(te(g),{patch:"date",formatInput:!0}))},onPopoverBeforeShow:function(e){t("popover-will-show",e)},onPopoverAfterShow:function(e){t("popover-did-show",e)},onPopoverBeforeHide:function(e){u.value=null,G(),t("popover-will-hide",e)},onPopoverAfterHide:function(e){t("popover-did-hide",e)}};return Jr(PN,re),re}function RN(){const e=Qr(PN);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const IN=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],NN=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function FN(e){const t=RN(),{locale:n,isRange:i,isTimeMode:r,dateParts:s,rules:a,is24hr:o,hideTimeHeader:l,timeAccuracy:c,updateValue:u}=t;function h(e){e=Object.assign(p.value,e);let t=null;if(i.value){t={start:d.value?e:s.value[0],end:d.value?s.value[1]:e}}else t=e;u(t,{patch:"time",targetPriority:d.value?"start":"end",moveToValue:!0})}const d=ja((()=>0===e.position)),p=ja((()=>s.value[e.position]||{isValid:!1})),f=ja((()=>NR(p.value))),g=ja((()=>!!p.value.isValid)),m=ja((()=>!l.value&&g.value)),v=ja((()=>{if(!f.value)return null;let e=n.value.toDate(p.value);return 24===p.value.hours&&(e=new Date(e.getTime()-1)),e})),b=ja({get:()=>p.value.hours,set(e){h({hours:e})}}),x=ja({get:()=>p.value.minutes,set(e){h({minutes:e})}}),y=ja({get:()=>p.value.seconds,set(e){h({seconds:e})}}),w=ja({get:()=>p.value.milliseconds,set(e){h({milliseconds:e})}}),k=ja({get:()=>p.value.hours<12,set(e){e="true"==String(e).toLowerCase();let t=b.value;e&&t>=12?t-=12:!e&&t<12&&(t+=12),h({hours:t})}}),A=ja((()=>function(e,t){return{milliseconds:GR(e,_R.milliseconds,t.milliseconds),seconds:GR(e,_R.seconds,t.seconds),minutes:GR(e,_R.minutes,t.minutes),hours:GR(e,_R.hours,t.hours)}}(p.value,a.value[e.position]))),S=ja((()=>IN.filter((e=>A.value.hours.some((t=>t.value===e.value)))))),C=ja((()=>NN.filter((e=>A.value.hours.some((t=>t.value===e.value)))))),_=ja((()=>o.value?A.value.hours:k.value?S.value:C.value)),E=ja((()=>{const e=[];return NM(S.value)&&e.push({value:!0,label:"AM"}),NM(C.value)&&e.push({value:!1,label:"PM"}),e}));return{...t,showHeader:m,timeAccuracy:c,parts:p,isValid:g,date:v,hours:b,minutes:x,seconds:y,milliseconds:w,options:A,hourOptions:_,isAM:k,isAMOptions:E,is24hr:o}}const BN=["value"],zN=["value","disabled"],YN={key:1,class:"vc-base-sizer","aria-hidden":"true"},jN=zi({inheritAttrs:!1,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=ja((()=>{const e=t.options.find((e=>e.value===t.modelValue));return null==e?void 0:e.label}));return(t,i)=>(Us(),Js("div",{class:Z(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[sa("select",ma(t.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:i[0]||(i[0]=e=>t.$emit("update:modelValue",e.target.value))}),[(Us(!0),Js(Ys,null,hr(e.options,(e=>(Us(),Js("option",{key:e.value,value:e.value,disabled:e.disabled},le(e.label),9,zN)))),128))],16,BN),e.showIcon?(Us(),Qs(nN,{key:0,name:"ChevronDown",size:"18"})):da("",!0),e.fitContent?(Us(),Js("div",YN,le(Gt(n)),1)):da("",!0)],2))}}),HN={key:0,class:"vc-time-header"},WN={class:"vc-time-weekday"},XN={class:"vc-time-month"},VN={class:"vc-time-day"},UN={class:"vc-time-year"},$N={class:"vc-time-select-group"},GN=sa("span",{class:"vc-time-colon"},":",-1),qN=sa("span",{class:"vc-time-colon"},":",-1),ZN=sa("span",{class:"vc-time-decimal"},".",-1),KN=zi({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const n=FN(e);t(n);const{locale:i,isValid:r,date:s,hours:a,minutes:o,seconds:l,milliseconds:c,options:u,hourOptions:h,isTimeMode:d,isAM:p,isAMOptions:f,is24hr:g,showHeader:m,timeAccuracy:v}=n;return(e,t)=>(Us(),Js("div",{class:Z(["vc-time-picker",[{"vc-invalid":!Gt(r),"vc-attached":!Gt(d)}]])},[aa(II,{name:"time-header"},{default:Xn((()=>[Gt(m)&&Gt(s)?(Us(),Js("div",HN,[sa("span",WN,le(Gt(i).formatDate(Gt(s),"WWW")),1),sa("span",XN,le(Gt(i).formatDate(Gt(s),"MMM")),1),sa("span",VN,le(Gt(i).formatDate(Gt(s),"D")),1),sa("span",UN,le(Gt(i).formatDate(Gt(s),"YYYY")),1)])):da("",!0)])),_:1}),sa("div",$N,[aa(nN,{name:"Clock",size:"17"}),aa(jN,{modelValue:Gt(a),"onUpdate:modelValue":t[0]||(t[0]=e=>Ht(a)?a.value=e:null),modelModifiers:{number:!0},options:Gt(h),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),Gt(v)>1?(Us(),Js(Ys,{key:0},[GN,aa(jN,{modelValue:Gt(o),"onUpdate:modelValue":t[1]||(t[1]=e=>Ht(o)?o.value=e:null),modelModifiers:{number:!0},options:Gt(u).minutes,class:"vc-time-select-minutes","align-left":2===Gt(v)},null,8,["modelValue","options","align-left"])],64)):da("",!0),Gt(v)>2?(Us(),Js(Ys,{key:1},[qN,aa(jN,{modelValue:Gt(l),"onUpdate:modelValue":t[2]||(t[2]=e=>Ht(l)?l.value=e:null),modelModifiers:{number:!0},options:Gt(u).seconds,class:"vc-time-select-seconds","align-left":3===Gt(v)},null,8,["modelValue","options","align-left"])],64)):da("",!0),Gt(v)>3?(Us(),Js(Ys,{key:2},[ZN,aa(jN,{modelValue:Gt(c),"onUpdate:modelValue":t[3]||(t[3]=e=>Ht(c)?c.value=e:null),modelModifiers:{number:!0},options:Gt(u).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):da("",!0),Gt(g)?da("",!0):(Us(),Qs(jN,{key:3,modelValue:Gt(p),"onUpdate:modelValue":t[4]||(t[4]=e=>Ht(p)?p.value=e:null),options:Gt(f)},null,8,["modelValue","options"]))])],2))}}),JN=zi({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:i,displayMode:r,isDateTimeMode:s,isTimeMode:a,isRange:o,onDayClick:l,onDayMouseEnter:c,onDayKeydown:u}=RN(),h=o.value?[0,1]:[0];return(e,o)=>Gt(a)?(Us(),Js("div",{key:0,class:Z(`vc-container vc-bordered vc-${Gt(i)} vc-${Gt(r)}`)},[(Us(!0),Js(Ys,null,hr(Gt(h),(e=>(Us(),Qs(KN,{key:e,position:e},null,8,["position"])))),128))],2)):(Us(),Qs(DN,{key:1,attributes:Gt(t),ref_key:"calendarRef",ref:n,onDayclick:Gt(l),onDaymouseenter:Gt(c),onDaykeydown:Gt(u)},{footer:Xn((()=>[Gt(s)?(Us(!0),Js(Ys,{key:0},hr(Gt(h),(e=>(Us(),Qs(KN,{key:e,position:e},null,8,["position"])))),128)):da("",!0),aa(II,{name:"dp-footer"})])),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}});const QN=TI(zi({inheritAttrs:!1,emits:["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"],props:MN,components:{DatePickerBase:JN,DatePickerPopover:zi({inheritAttrs:!1,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:i,popoverRef:r,onPopoverBeforeShow:s,onPopoverAfterShow:a,onPopoverBeforeHide:o,onPopoverAfterHide:l}=RN();return(e,c)=>(Us(),Qs(DI,{id:Gt(t),placement:"bottom-start",class:Z(`vc-date-picker-content vc-${Gt(n)} vc-${Gt(i)}`),ref_key:"popoverRef",ref:r,onBeforeShow:Gt(s),onAfterShow:Gt(a),onBeforeHide:Gt(o),onAfterHide:Gt(l)},{default:Xn((()=>[aa(JN,K(la(e.$attrs)),null,16)])),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}})},setup(e,t){const n=ON(e,t),i=Ct(HM(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}}),[["render",function(e,t,n,i,r,s){const a=Qn("DatePickerPopover"),o=Qn("DatePickerBase");return e.$slots.default?(Us(),Js(Ys,{key:0},[pr(e.$slots,"default",K(la(e.slotCtx))),aa(a,K(la(e.$attrs)),null,16)],64)):(Us(),Qs(o,K(ma({key:1},e.$attrs)),null,16))}]]);Symbol.toStringTag;var eF=n(3379),tF=n.n(eF),nF=n(7795),iF=n.n(nF),rF=n(569),sF=n.n(rF),aF=n(3565),oF=n.n(aF),lF=n(9216),cF=n.n(lF),uF=n(4589),hF=n.n(uF),dF=n(1778),pF={};pF.styleTagTransform=hF(),pF.setAttributes=oF(),pF.insert=sF().bind(null,"head"),pF.domAPI=iF(),pF.insertStyleElement=cF();tF()(dF.Z,pF);dF.Z&&dF.Z.locals&&dF.Z.locals;const fF=["src"];var gF={__name:"Avatar",props:{image:{type:String,default:null},name:{type:String,default:""},size:{type:String,required:!0,default:"medium"}},setup(e){const t=e,n=Wt(""),i=Wt(""),r=Wt("?");function s(){if(!t.name||""==t.name)return r.value="";const e=t.name.trim().split(/\s+/).slice(0,2).map((e=>e.charAt(0).toUpperCase()));r.value=e.join("")}return nr((()=>{"small"===t.size?(n.value="is-size-5",i.value="height: 60px; width: 60px;"):"medium"===t.size?(n.value="is-size-3",i.value="height: 120px; width: 120px;"):"large"===t.size&&(n.value="is-size-1",i.value="height: 180px; width: 180px;"),t.image||s()})),xi((()=>t.name),(()=>{t.image||s()})),(t,s)=>(Us(),Js("figure",{class:"lesli-element-avatar has-background-grey-lighter",style:V(i.value)},[e.image?(Us(),Js("img",{key:0,src:e.image},null,8,fF)):(Us(),Js("span",{key:1,class:Z(["has-text-weight-bold",n.value])},le(r.value),3))],4))},__file:"source/elements/avatar/Avatar.vue"};const mF={class:"material-icons"},vF={key:1};var bF={__name:"Button",props:{icon:{type:String,required:!1},loading:{type:Boolean,default:!1,required:!1},solid:{type:Boolean,default:!1,required:!1},info:{type:Boolean,default:!1,required:!1},success:{type:Boolean,default:!1,required:!1},warning:{type:Boolean,default:!1,required:!1},danger:{type:Boolean,default:!1,required:!1},small:{type:Boolean,default:!1,required:!1}},emits:["click"],setup(e,{emit:t}){const n=Lr(),i=t,r=e,s=Wt(!1);const a=ja((()=>{let e=["button",r.warning?"is-warning":r.success?"is-success":r.danger?"is-danger":r.info?"is-info":"is-primary"];return r.solid||(e.push("is-light"),e.push("is-outlined")),r.loading&&e.push("is-loading"),r.small&&e.push("is-small"),e}));return nr((()=>{!("default"in n)&&r.icon&&(s.value=!0)})),(t,n)=>(Us(),Js("button",{onClick:n[0]||(n[0]=e=>i("click")),class:Z(a.value)},[e.icon?(Us(),Js("span",{key:0,class:Z(["icon",{"is-small":e.small}])},[sa("span",mF,le(e.icon),1)],2)):da("v-if",!0),s.value?da("v-if",!0):(Us(),Js("span",vF,[pr(t.$slots,"default")]))],2))},__file:"source/elements/button/Button.vue"};const xF={class:"field lesli-element-calendar"},yF={class:"control has-icons-right"},wF=["value"];var kF={__name:"Calendar",props:{modelValue:{type:[Date,Object,String]},mode:{type:String,default:"date"},range:{type:Boolean,required:!1,default:!1},minDate:{type:[Date,Object]},required:{type:Boolean,required:!1,default:!1},placeholderValue:{type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,i=e,r=Wt(null),s=Wt({modelValue:"YYYY-MM-DD"});return nr((()=>{setTimeout((()=>{r.value=i.modelValue}),200)})),xi(r,(()=>{n("update:modelValue",r.value)})),(t,n)=>(Us(),Qs(Gt(QN),{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),mode:e.mode,masks:s.value,class:"lesli-calendar"},{default:Xn((({inputValue:t,inputEvents:i})=>[sa("div",xF,[sa("p",yF,[sa("input",ma({class:"input is-default"},gr(i,!0),{value:e.placeholderValue?e.placeholderValue:t}),null,16,wF),n[1]||(n[1]=sa("span",{class:"icon is-small is-right"},[sa("span",{class:"material-icons"}," calendar_month ")],-1))])])])),_:1},8,["modelValue","mode","masks"]))},__file:"source/elements/calendar/Calendar.vue"};const AF={class:"card lesli-card"},SF={key:0,class:"card-header"},CF={key:1,class:""},_F={class:"card-header-title pb-0 pt-2 pl-3"},EF={class:"card-content py-3 px-4"};var LF={__name:"Card",props:{title:{type:String,default:null}},setup(e){const t=Lr(),n=e;return(e,i)=>(Us(),Js("div",AF,[Gt(t).header?(Us(),Js("div",SF,[pr(e.$slots,"header")])):da("v-if",!0),!Gt(t).header&&n.title?(Us(),Js("div",CF,[sa("h4",_F,le(n.title),1)])):da("v-if",!0),sa("div",EF,[pr(e.$slots,"default")])]))},__file:"source/elements/card/Card.vue"};const TF={class:"column"};var DF={__name:"Column",setup:e=>(e,t)=>(Us(),Js("div",TF,[pr(e.$slots,"default")])),__file:"source/elements/columns/Column.vue"};const PF={class:"columns"};var MF={__name:"Columns",setup:e=>(e,t)=>(Us(),Js("div",PF,[pr(e.$slots,"default")])),__file:"source/elements/columns/Columns.vue"};const OF=["disabled"],RF={key:0,class:"is-size-5 mb-3"};var IF={__name:"Form",props:{flat:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1},editable:{type:Boolean,required:!1,default:!0}},emits:["submit"],setup(e,{emit:t}){const n=t,i=e;return(t,r)=>(Us(),Js("form",{class:Z(["lesli-form",{box:!i.flat}]),onSubmit:r[0]||(r[0]=Sl((e=>n("submit")),["prevent"]))},[sa("fieldset",{disabled:!e.editable},[i.title?(Us(),Js("legend",RF,le(i.title),1)):da("v-if",!0),pr(t.$slots,"default")],8,OF)],34))},__file:"source/elements/form/Form.vue"};const NF={class:"lesli-input mb-3"},FF={class:"field-label is-normal"},BF={class:"label"},zF={class:"field-body"},YF={class:"field"},jF={class:"control"},HF=["placeholder","type"];var WF={__name:"Input",props:{modelValue:{type:[Number,String],required:!1},label:{type:String,required:!1},placeholder:{type:String,required:!1},type:{type:String,required:!1,default:"text"},horizontal:{type:Boolean,default:!1,required:!1}},emits:["update:modelValue","onError"],setup(e,{emit:t}){const n=t,i=e,r=Wt(null);function s(){r.value=i.modelValue}const a=e=>{n("update:modelValue",e.target.value)};return nr((()=>{s()})),xi((()=>i.modelValue),(()=>{s()})),(e,t)=>(Us(),Js("div",NF,[sa("div",{class:Z(["field",{"is-horizontal":i.horizontal}])},[sa("div",FF,[sa("label",BF,le(i.label),1)]),sa("div",zF,[sa("div",YF,[sa("div",jF,[Si(sa("input",{class:"input","onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),placeholder:i.placeholder,type:i.type,onInput:a},null,40,HF),[[xl,r.value]])])])])],2)]))},__file:"source/elements/input/Input.vue"};const XF={class:"is-flex is-justify-content-space-between is-align-items-center p-4"},VF={key:0,class:"title is-5 m-0"};var UF={__name:"Control",props:{title:{type:String,default:null}},setup:e=>(t,n)=>(Us(),Js("div",XF,[e.title?(Us(),Js("h5",VF,le(e.title),1)):da("v-if",!0),pr(t.$slots,"default")])),__file:"source/elements/control/Control.vue"};const $F={class:"select is-fullwidth"},GF=["required","disabled"],qF={value:"",disabled:""},ZF={key:0,value:{value:"reset",label:"reset"}},KF=["value"],JF={key:0,class:"icon is-small is-left"},QF={class:"material-icons"};var eB={__name:"Select",props:{modelValue:{type:[Number,String,Boolean],required:!1},options:{type:Array,required:!0},placeholder:{type:String,required:!1,default:"Select..."},icon:{type:String,required:!1},reset:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,i=e,r=Wt("");function s(e){""===e.target.value?r.value="":r.value=e.target.value}function a(e){r.value=null===e||""===e?"":e}return nr((()=>{a(i.modelValue)})),xi((()=>i.modelValue),(e=>{a(e)})),xi((()=>r.value),(e=>{n("update:modelValue",null===e||""===e?"":e)})),(e,t)=>(Us(),Js("div",{class:Z(["control",{"has-icons-left":i.icon}])},[sa("div",$F,[Si(sa("select",{onChange:s,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),required:i.required,disabled:i.disabled},[sa("option",qF,le(i.placeholder),1),i.reset?(Us(),Js("option",ZF,le(i.reset),1)):da("v-if",!0),(Us(!0),Js(Ys,null,hr(i.options,((e,t)=>(Us(),Js("option",{value:e.value,key:t},le(e.label),9,KF)))),128))],40,GF),[[gl,r.value]])]),i.icon?(Us(),Js("div",JF,[sa("span",QF,le(i.icon),1)])):da("v-if",!0)],2))},__file:"source/elements/select/Select.vue"};const tB={class:"lesli-empty has-text-centered"};var nB={__name:"Empty",props:{text:{type:String,default:"No data found"}},setup(e){const t=e;return(e,n)=>(Us(),Js("div",tB,[n[0]||(n[0]=sa("svg",{width:"184",height:"184",viewBox:"0 0 184 184",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[sa("path",{d:"M145.271 90.6522H142.735V89.528C142.735 83.9793 138.222 79.4655 132.673 79.4655H85.7357C84.255 79.4655 82.1132 78.0942 81.4922 76.7515L76.1878 65.2544C74.1523 60.8499 68.9629 57.5293 64.1128 57.5293H39.7012C34.1524 57.5293 29.6387 62.043 29.6387 67.5918V151.809C29.6387 157.358 34.1524 161.872 39.7012 161.872H53.3459C53.5357 161.883 53.7139 161.932 53.9065 161.932H112.945V153.307H108.831H53.9065C53.7197 153.307 53.6219 153.278 53.5587 153.247C53.527 153.232 53.4897 153.215 53.481 153.206C53.458 153.181 53.412 153.045 53.4609 152.772L63.1985 101.419C63.4027 100.338 64.6849 99.2772 65.7803 99.2772H134.11H142.735H145.271C145.553 99.2772 145.679 99.349 145.697 99.3749C145.714 99.4008 145.766 99.533 145.714 99.809L142.735 115.524L135.979 151.159C135.775 152.24 134.493 153.301 133.395 153.301H121.964V161.926H133.395C138.621 161.926 143.48 157.904 144.455 152.767L154.189 101.413C154.713 98.6648 154.037 95.9163 152.341 93.8693C150.645 91.8281 148.069 90.6522 145.271 90.6522ZM134.11 90.6522H65.7832C60.5593 90.6522 55.7005 94.6743 54.7259 99.8119L44.9883 151.168C44.856 151.864 44.8043 152.56 44.8244 153.247H39.7012C38.922 153.247 38.2637 152.588 38.2637 151.809V67.5918C38.2637 66.8127 38.922 66.1543 39.7012 66.1543H64.1128C65.5934 66.1543 67.7353 67.5257 68.3563 68.8683L73.6607 80.3654C75.6962 84.7699 80.8855 88.0905 85.7357 88.0905H132.673C133.452 88.0905 134.11 88.7489 134.11 89.528V90.6522Z",fill:"#BDBDBD"}),sa("path",{d:"M145.7 50.5227L153.201 43.0219C154.805 41.4176 154.739 38.7525 153.054 37.0677C151.369 35.383 148.704 35.3197 147.1 36.9211L139.599 44.422L132.098 36.9211C130.494 35.3169 127.829 35.383 126.144 37.0677C124.459 38.7525 124.396 41.4176 125.997 43.0219L133.498 50.5227L125.997 58.0236C124.393 59.6279 124.459 62.293 126.144 63.9777C127.829 65.6625 130.494 65.7257 132.098 64.1244L139.599 56.6235L147.1 64.1244C148.704 65.7286 151.369 65.6625 153.054 63.9777C154.739 62.293 154.802 59.6279 153.201 58.0236L145.7 50.5227Z",fill:"#BDBDBD"})],-1)),sa("p",null,le(t.text),1)]))},__file:"source/elements/empty/Empty.vue"};const iB={class:"lesli-element-header is-flex"},rB={class:"lesli-element-header-title is-flex"},sB={key:1,class:"subtitle is-size-3"},aB={class:"lesli-element-header-items is-flex is-flex-grow-1 is-justify-content-end"};var oB={__name:"Header",props:{title:{type:String,default:null},back:{type:Object,required:!1}},setup:e=>(Nf(),(t,n)=>(Us(),Js("section",iB,[sa("div",rB,[da("v-if",!0),e.title?(Us(),Js("h1",sB,le(e.title),1)):da("v-if",!0)]),sa("div",aB,[pr(t.$slots,"default")])]))),__file:"source/elements/header/Header.vue"},lB={__name:"Link",props:{to:{type:String,required:!0},button:{type:Boolean,default:!1},icon:{},loading:{},solid:{},info:{},success:{},warning:{},danger:{},small:{}},emits:["click"],setup(e,{emit:t}){Lr();const n=e;return(e,t)=>{const i=Qn("router-link");return Us(),Qs(i,{to:n.to.toString()},{default:Xn((()=>[(Us(),Qs(ti(n.button?"lesli-button":"span"),K(la(n)),{default:Xn((()=>[pr(e.$slots,"default")])),_:3},16))])),_:3},8,["to"])}},__file:"source/elements/link/Link.vue"};const cB={class:"lesli-loading has-text-centered"};var uB={__name:"Loading",props:{size:{type:Number,default:5},text:{type:String,default:"Loading"},icon:{type:Boolean,default:!1}},setup(e){const t=e;return(n,i)=>(Us(),Js("div",cB,[sa("p",null,[i[0]||(i[0]=sa("span",{class:"loading-animation"},[sa("hr"),sa("hr"),sa("hr"),sa("hr")],-1)),e.icon?da("v-if",!0):(Us(),Js("span",{key:0,class:Z(["is-size-"+e.size,"ml-3"])},le(t.text)+"... ",3))])]))},__file:"source/elements/loading/Loading.vue"};const hB={class:"lesli-navbar navbar",role:"navigation","aria-label":"main navigation"},dB={class:"container"},pB={class:"navbar-brand"},fB={class:"navbar-start"},gB={class:"navbar-end"};var mB={__name:"Navbar",setup(e){const t=Wt(!1);function n(){t.value=!t.value}return(e,i)=>(Us(),Js("nav",hB,[sa("div",dB,[sa("div",pB,[pr(e.$slots,"brand"),sa("button",{onClick:n,role:"button",class:"navbar-burger","aria-label":"menu","aria-expanded":"false"},i[0]||(i[0]=[sa("span",{"aria-hidden":"true"},null,-1),sa("span",{"aria-hidden":"true"},null,-1),sa("span",{"aria-hidden":"true"},null,-1),sa("span",{"aria-hidden":"true"},null,-1)]))]),sa("div",{class:Z(["navbar-menu",{"is-active":t.value}])},[sa("div",fB,[pr(e.$slots,"start")]),sa("div",gB,[pr(e.$slots,"end")])],2)])]))},__file:"source/elements/navbar/Navbar.vue"};const vB={class:"pagination mb-5",role:"navigation","aria-label":"pagination"},bB={key:0,class:"pagination-list"},xB={key:0},yB=["onClick"],wB=["disabled"],kB=["disabled"],AB=["disabled"];var SB={__name:"Pagination",props:{pagination:{type:Object,required:!0},mode:{type:String,default:"complete",required:!1,validator:e=>["complete","simple"].includes(e)}},emits:["paginate"],setup(e,{emit:t}){const n=t,i=e,r=Wt(0),s=Wt(0);return r.value=i.pagination.page,s.value=i.pagination.pages,(e,t)=>(Us(),Js("nav",vB,["complete"===i.mode?(Us(),Js("ul",bB,[s.value>1?(Us(),Js(Ys,{key:0},[(Us(),Js(Ys,null,hr(5,(e=>(Us(),Js(Ys,null,[e<s.value?(Us(),Js("li",xB,[sa("button",{class:Z(["button pagination-link",{"is-current":r.value==e}]),onClick:Sl((t=>function(e){r.value=e,n("paginate",r.value)}(e)),["stop"])},le(e),11,yB)])):da("v-if",!0)],64)))),64)),t[3]||(t[3]=sa("li",null,[sa("span",{class:"pagination-ellipsis"},"…")],-1)),sa("li",null,[sa("button",{class:Z(["button pagination-link",{"is-current":r.value==s.value}]),disabled:r.value>=s.value,onClick:t[0]||(t[0]=Sl((e=>(r.value=s.value,void n("paginate",r.value))),["stop"]))},le(s.value),11,wB)])],64)):da("v-if",!0)])):da("v-if",!0),sa("button",{class:"button is-primary is-outlined pagination-previous",onClick:t[1]||(t[1]=Sl((e=>(r.value--,void n("paginate",r.value))),["stop"])),disabled:r.value<=1}," Previous ",8,kB),sa("button",{class:"button is-primary is-outlined pagination-previous",onClick:t[2]||(t[2]=Sl((e=>(r.value++,void n("paginate",r.value))),["stop"])),disabled:r.value>=s.value}," Next page ",8,AB)]))},__file:"source/elements/pagination/Pagination.vue"};const CB={class:"lesli-panel"},_B={class:"lesli-panel-content box p-0"},EB={class:"lesli-panel-header is-flex px-4"},LB={class:"is-flex-grow-1"};var TB={__name:"Panel",props:{open:{type:Boolean,default:!1},title:{type:String,required:!1},overlay:{type:Boolean,required:!1,default:!0}},emits:["update:open","open"],setup(e,{emit:t}){const n=t,i=e,r=Wt(!1);function s(){n("update:open",!1),n("open",!1)}return xi((()=>i.open),(e=>r.value=e)),(e,t)=>(Us(),Js("section",CB,[aa(lo,null,{default:Xn((()=>[r.value?(Us(),Js("div",{key:0,class:Z([{"lesli-panel-background":i.overlay}]),onClick:s},null,2)):da("v-if",!0)])),_:1}),aa(lo,{persisted:""},{default:Xn((()=>[Si(sa("div",_B,[sa("div",EB,[sa("div",LB,[sa("h4",null,[pr(e.$slots,"header"),ua(" "+le(i.title),1)])]),sa("div",{class:"hover",onClick:s},t[0]||(t[0]=[sa("span",{class:"material-icons md-24"}," arrow_forward_ios ",-1)]))]),pr(e.$slots,"default")],512),[[Eo,r.value]])])),_:3})]))},__file:"source/elements/panel/Panel.vue"};const DB=["id"],PB={key:0},MB={key:0},OB=["onClick","width"],RB={key:0},IB={key:1,class:"icon-text"},NB={class:"icon"},FB={key:0,class:"material-icons"},BB={key:1,class:"material-icons"},zB={key:2,class:"material-icons"},YB={key:1},jB={key:2},HB={key:0,class:"detail-row px-2 has-text-centered"},WB=["onClick"],XB={key:0,class:"material-icons"},VB={key:1,class:"material-icons"},UB=["onClick"],$B={key:1,class:"options p-0"},GB={class:"dropdown-trigger"},qB=["onBlur","onClick"],ZB={class:"icon"},KB={key:0,class:"material-icons md-24"},JB={key:1,class:"material-icons"},QB={key:0,class:"dropdown-menu",role:"menu"},ez={class:"dropdown-content"},tz={key:2,class:"p-0"},nz={class:"buttons"};var iz={__name:"Table",props:{id:{type:String,require:!1},class:{type:String,required:!1,default:"is-striped"},pagination:{type:Object,required:!1},loading:{type:Boolean,default:!1},headless:{type:Boolean,default:!1},columns:{type:Array,required:!0},records:{type:Array,required:!0,default:[]},link:{type:Function,required:!1}},emits:["click","sort","paginate","details"],setup(e,{emit:t}){const n=Lr(),i=t,r=e,s=Wt(null),a=Wt("asc"),o=Wt([]);function l(e){return{"has-text-centered":"id"==e.field||"center"==e.align}}function c(e){return{"has-text-centered":"id"==e.field||"center"==e.align}}function u(e){i("paginate",e)}return(t,h)=>{const d=Qn("router-link"),p=Qn("lesli-loading"),f=Qn("lesli-empty"),g=Qn("lesli-pagination");return Us(),Js(Ys,null,[sa("table",{id:r.id,class:Z(["table is-fullwidth lesli-table mb-5",r.class])},[e.headless?da("v-if",!0):(Us(),Js("thead",PB,[sa("tr",null,[da("\n Button to show/hide detail row\n "),Gt(n).detail?(Us(),Js("th",MB)):da("v-if",!0),da(" Define table header, we simple iterate over the defined fields "),(Us(!0),Js(Ys,null,hr(r.columns,(e=>(Us(),Js("th",{onClick:Sl((t=>function(e){e.sort&&(e.field===s.value&&(a.value="asc"===a.value?"desc":"asc"),s.value=e.field,i("sort",s.value,a.value))}(e)),["stop"]),width:e.width,class:Z(l(e)),key:e.field},[da("\n Use a slot to render content, so it is possible to \n use html elements to render custom componentes for \n every column header of the table \n "),pr(t.$slots,`head(${e.field})`,{column:e},(()=>[da("\n Render the default table header if not custom slot is provided\n "),e.sort?da("v-if",!0):(Us(),Js("span",RB,le(e.label),1)),e.sort?(Us(),Js("span",IB,[sa("span",null,le(e.label),1),sa("span",NB,[s.value?da("v-if",!0):(Us(),Js("span",FB,"sort")),s.value==e.field&&"asc"==a.value?(Us(),Js("span",BB,"arrow_upward")):da("v-if",!0),s.value==e.field&&"desc"==a.value?(Us(),Js("span",zB,"arrow_downward")):da("v-if",!0)])])):da("v-if",!0)]))],10,OB)))),128)),da(" \n Options header (empty by design)\n "),Gt(n).options?(Us(),Js("th",YB)):da("v-if",!0),Gt(n).buttons?(Us(),Js("th",jB)):da("v-if",!0)])])),sa("tbody",null,[da(" \n Wait until the store indicate that the request was completed, \n create the table rows from records\n "),(Us(!0),Js(Ys,null,hr(r.records,((e,s)=>(Us(),Js(Ys,{key:`tr-${s}`},[sa("tr",null,[da("\n Button to show/hide detail row\n "),Gt(n).detail?(Us(),Js("td",HB,[sa("button",{class:"button is-white px-2",onClick:t=>function(e){e.detailActive=!e.detailActive,i("details",e.detailActive)}(e)},[e.detailActive?da("v-if",!0):(Us(),Js("span",XB," chevron_right ")),e.detailActive?(Us(),Js("span",VB," expand_more ")):da("v-if",!0)],8,WB)])):da("v-if",!0),da("\n Rendering every defined column\n "),(Us(!0),Js(Ys,null,hr(r.columns,((s,a)=>(Us(),Js("td",{class:Z(c(s)),onClick:Sl((t=>i("click",e)),["stop"]),key:`td-${a}`},[da("\n Print a standard vue router link if prop is provided and\n there is not a slot for this specific column\n "),r.link&&!Gt(n)[s.field]?(Us(),Qs(d,{key:0,to:r.link(e).toString()},{default:Xn((()=>[ua(le(e[s.field]),1)])),_:2},1032,["to"])):da("v-if",!0),da("\n Use a slot to render content, so it is possible to \n use html elements to render custom componentes for \n every column of the table \n DO NOT print the slot if link or href is required\n\n Slot has priority if we provided a slot for this specific column,\n so, we should print the slot if slot is provided if not, we should\n print the default slot if href or link prop was not provided :)\n "),Gt(n)[s.field]||!r.link?pr(t.$slots,s.field,{key:1,column:s,record:e,value:e[s.field]},(()=>[da("\n Print the text value if no custom slot is used\n for the current column\n "),ua(" "+le(e[s.field]),1)])):da("v-if",!0)],10,UB)))),128)),da("\n Dedicated options column\n the dropdownActive[i] is to save the open/closed status of the dropdown for \n every row of the table (i)\n "),Gt(n).options?(Us(),Js("td",$B,[sa("div",{class:Z(["dropdown","is-right is-hoverable",{"is-active":o.value[s]},{"is-up":s==r.records.length-1}])},[sa("div",GB,[sa("button",{class:"button has-text-info",onBlur:e=>o.value[s]=!1,onClick:e=>o.value[s]=!o.value[s]},[sa("span",ZB,[o.value[s]?da("v-if",!0):(Us(),Js("span",KB," more_vert ")),o.value[s]?(Us(),Js("span",JB," more_horiz ")):da("v-if",!0)])],40,qB)]),aa(lo,null,{default:Xn((()=>[o.value[s]?(Us(),Js("div",QB,[sa("div",ez,[pr(t.$slots,"options",{record:e,value:e.id})])])):da("v-if",!0)])),_:2},1024)],2)])):da("v-if",!0),Gt(n).buttons?(Us(),Js("td",tz,[sa("div",nz,[pr(t.$slots,"buttons",{record:e,value:e.id})])])):da("v-if",!0)]),da('\n Dedicated row for detail, we can add an entire row to show some detail\n about the current row\n <tr v-if="record.detailActive">\n <td class="is-paddingless" :colspan="props.columns.length + 1">\n <slot name="detail" :record="record"></slot>\n </td>\n </tr>\n '),e.detailActive?pr(t.$slots,"detail",{key:0,record:e}):da("v-if",!0)],64)))),128))])],10,DB),da(" Show loading animation, this should be setted through the stores "),e.loading?(Us(),Qs(p,{key:0})):da("v-if",!0),da(" Show a message to indicate that there is no data to present "),!e.loading&&r.records&&r.records.length<1?(Us(),Qs(f,{key:1})):da("v-if",!0),r.pagination?(Us(),Qs(g,{key:2,pagination:r.pagination,onPaginate:u},null,8,["pagination"])):da("v-if",!0)],64)}},__file:"source/elements/table/Table.vue"};const rz={class:"lesli-tabs"},sz={class:"tabs"},az=["onClick"],oz={key:0,class:"icon is-small"},lz={class:"material-icons"},cz={class:"tab-items"};var uz={__name:"Tabs",props:{modelValue:{type:[String,Number],required:!1,default:0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=Lr().default(),i=e,r=t,s=Wt(0),a=Wt([]);function o(e){if(e==s.value)return"is-active"}return Jr("tabs",{active:s,tabItems:a}),nr((()=>{s.value=i.modelValue})),(e,t)=>(Us(),Js("div",rz,[sa("div",sz,[sa("ul",null,[(Us(!0),Js(Ys,null,hr(Gt(n),((e,t)=>(Us(),Js("li",{class:Z(o(t)),key:t},[e.props?(Us(),Js("a",{key:0,onClick:e=>function(e){r("update:modelValue",s.value),s.value=e}(t)},[e.props.icon?(Us(),Js("span",oz,[sa("span",lz,le(e.props.icon),1)])):da("v-if",!0),sa("span",null,le(e.props.title),1)],8,az)):da("v-if",!0)],2)))),128))])]),sa("div",cz,[pr(e.$slots,"default")])]))},__file:"source/elements/tabs/Tabs.vue"},hz={__name:"TabItem",props:{title:{type:String,required:!0},icon:{type:String,required:!1},show:{type:Boolean,required:!1,default:!1},paddingless:{type:Boolean,default:!1,required:!1}},setup(e){const t=ka(),{tabItems:n,active:i}=Qr("tabs"),r=ja((()=>n.value.findIndex((e=>e.uid===t.uid)))),s=ja((()=>r.value===i.value));return gi((()=>{-1===r.value&&n.value.push(t)})),(t,n)=>s.value?(Us(),Js("div",{key:0,class:Z([{"p-5":!e.paddingless}])},[pr(t.$slots,"default")],2)):da("v-if",!0)},__file:"source/elements/tabs/TabItem.vue"};const dz={class:"lesli-toggle"},pz=["checked","disabled"],fz={class:"slider"},gz={key:0},mz={key:0,class:"enabled-text"},vz={key:1,class:"disabled-text"};var bz={__name:"Toggle",props:{modelValue:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},disabledText:{type:String,default:""},enabledText:{type:String,default:""},showText:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=t,i=e;return xi((()=>i.modelValue),((e,t)=>{n("change",i.modelValue)})),(e,t)=>(Us(),Js("label",dz,[sa("input",ma(e.$attrs,{onInput:t[0]||(t[0]=e=>n("update:modelValue",!i.modelValue)),type:"checkbox",checked:i.modelValue,disabled:i.disabled}),null,16,pz),sa("span",fz,[i.showText?(Us(),Js("div",gz,[i.modelValue?(Us(),Js("p",mz,le(i.enabledText),1)):(Us(),Js("p",vz,le(i.disabledText),1))])):da("v-if",!0)])]))},__file:"source/elements/toggle/Toggle.vue"};const xz={class:"lesli-toolbar mb-5"},yz={class:"field is-grouped"},wz={class:"control is-expanded has-icons-right has-icons-left"},kz=["placeholder"],Az={key:0,class:"select"};var Sz={__name:"Toolbar",props:{searchPlaceholder:{type:String,default:"Search..."},initialValue:{type:String,default:null},pagination:{type:Object,required:!1}},emits:["search"],setup(e,{emit:t}){const n=t,i=e,r=Wt(setTimeout),s=Wt("");function a(){s.value="",n("search",s.value)}return(t,o)=>(Us(),Js("div",xz,[sa("div",yz,[sa("div",wz,[Si(sa("input",{type:"text",name:"search",class:"input is-shadowless","onUpdate:modelValue":o[0]||(o[0]=e=>s.value=e),placeholder:e.searchPlaceholder,onInput:o[1]||(o[1]=e=>(clearTimeout(r.value),void(r.value=setTimeout((()=>n("search",s.value)),800))))},null,40,kz),[[hl,s.value]]),o[2]||(o[2]=sa("span",{class:"icon is-small is-left has-text-grey-light"},[sa("span",{class:"material-icons"}," search ")],-1)),sa("span",{class:"icon is-right"},[sa("a",{class:"delete",onClick:a})])]),pr(t.$slots,"default"),i.pagination?(Us(),Js("div",Az,o[3]||(o[3]=[sa("select",null,[sa("option",null,"10"),sa("option",null,"20")],-1)]))):da("v-if",!0)])]))},__file:"source/elements/toolbar/Toolbar.vue"};const Cz=new zm;window.debug=Cz;var _z=n(7361),Ez=n.n(_z),Lz=n(8721),Tz=n.n(Lz),Dz=n(6968),Pz=n.n(Dz),Mz=n(1921),Oz=n.n(Mz),Rz=n(4908),Iz=n.n(Rz);const Nz=(e,t)=>{const n=[],i=[];return n.push(t),t||n.push(e.locale),e.enableFallback&&n.push(e.defaultLocale),n.filter(Boolean).map((e=>e.toString())).forEach((function(t){if(i.includes(t)||i.push(t),!e.enableFallback)return;const n=t.split("-");3===n.length&&i.push(`${n[0]}-${n[1]}`),i.push(n[0])})),Iz()(i)};class Fz{constructor(e){this.i18n=e,this.registry={},this.register("default",Nz)}register(e,t){if("function"!=typeof t){const e=t;t=()=>e}this.registry[e]=t}get(e){let t=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return"function"==typeof t&&(t=t(this.i18n,e)),t instanceof Array||(t=[t]),t}}const Bz=function({pluralizer:e,includeZero:t=!0,ordinal:n=!1}){return function(i,r){return[t&&0===r?"zero":"",e(r,n)].filter(Boolean)}}({pluralizer:(e,t)=>{const n=String(e).split("."),i=!n[1],r=Number(n[0])==e,s=r&&n[0].slice(-1),a=r&&n[0].slice(-2);return t?1==s&&11!=a?"one":2==s&&12!=a?"two":3==s&&13!=a?"few":"other":1==e&&i?"one":"other"},includeZero:!0});class zz{constructor(e){this.i18n=e,this.registry={},this.register("default",Bz)}register(e,t){this.registry[e]=t}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}var Yz=n(8929),jz=n.n(Yz);function Hz(e){return e?Object.keys(e).reduce(((t,n)=>(t[jz()(n)]=e[n],t)),{}):{}}function Wz(e){return null!=e}var Xz=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Vz=Math.ceil,Uz=Math.floor,$z="[BigNumber Error] ",Gz=$z+"Number primitive has more than 15 significant digits: ",qz=1e14,Zz=14,Kz=9007199254740991,Jz=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Qz=1e7,eY=1e9;function tY(e){var t=0|e;return e>0||e===t?t:t-1}function nY(e){for(var t,n,i=1,r=e.length,s=e[0]+"";i<r;){for(t=e[i++]+"",n=Zz-t.length;n--;t="0"+t);s+=t}for(r=s.length;48===s.charCodeAt(--r););return s.slice(0,r+1||1)}function iY(e,t){var n,i,r=e.c,s=t.c,a=e.s,o=t.s,l=e.e,c=t.e;if(!a||!o)return null;if(n=r&&!r[0],i=s&&!s[0],n||i)return n?i?0:-o:a;if(a!=o)return a;if(n=a<0,i=l==c,!r||!s)return i?0:!r^n?1:-1;if(!i)return l>c^n?1:-1;for(o=(l=r.length)<(c=s.length)?l:c,a=0;a<o;a++)if(r[a]!=s[a])return r[a]>s[a]^n?1:-1;return l==c?0:l>c^n?1:-1}function rY(e,t,n,i){if(e<t||e>n||e!==Uz(e))throw Error($z+(i||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function sY(e){var t=e.c.length-1;return tY(e.e/Zz)==t&&e.c[t]%2!=0}function aY(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function oY(e,t,n){var i,r;if(t<0){for(r=n+".";++t;r+=n);e=r+e}else if(++t>(i=e.length)){for(r=n,t-=i;--t;r+=n);e+=r}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}var lY=function e(t){var n,i,r,s,a,o,l,c,u,h,d=_.prototype={constructor:_,toString:null,valueOf:null},p=new _(1),f=20,g=4,m=-7,v=21,b=-1e7,x=1e7,y=!1,w=1,k=0,A={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},S="0123456789abcdefghijklmnopqrstuvwxyz",C=!0;function _(e,t){var n,s,a,o,l,c,u,h,d=this;if(!(d instanceof _))return new _(e,t);if(null==t){if(e&&!0===e._isBigNumber)return d.s=e.s,void(!e.c||e.e>x?d.c=d.e=null:e.e<b?d.c=[d.e=0]:(d.e=e.e,d.c=e.c.slice()));if((c="number"==typeof e)&&0*e==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,l=e;l>=10;l/=10,o++);return void(o>x?d.c=d.e=null:(d.e=o,d.c=[e]))}h=String(e)}else{if(!Xz.test(h=String(e)))return r(d,h,c);d.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(o=h.indexOf("."))>-1&&(h=h.replace(".","")),(l=h.search(/e/i))>0?(o<0&&(o=l),o+=+h.slice(l+1),h=h.substring(0,l)):o<0&&(o=h.length)}else{if(rY(t,2,S.length,"Base"),10==t&&C)return D(d=new _(e),f+d.e+1,g);if(h=String(e),c="number"==typeof e){if(0*e!=0)return r(d,h,c,t);if(d.s=1/e<0?(h=h.slice(1),-1):1,_.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(Gz+e)}else d.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(n=S.slice(0,t),o=l=0,u=h.length;l<u;l++)if(n.indexOf(s=h.charAt(l))<0){if("."==s){if(l>o){o=u;continue}}else if(!a&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){a=!0,l=-1,o=0;continue}return r(d,String(e),c,t)}c=!1,(o=(h=i(h,t,10,d.s)).indexOf("."))>-1?h=h.replace(".",""):o=h.length}for(l=0;48===h.charCodeAt(l);l++);for(u=h.length;48===h.charCodeAt(--u););if(h=h.slice(l,++u)){if(u-=l,c&&_.DEBUG&&u>15&&(e>Kz||e!==Uz(e)))throw Error(Gz+d.s*e);if((o=o-l-1)>x)d.c=d.e=null;else if(o<b)d.c=[d.e=0];else{if(d.e=o,d.c=[],l=(o+1)%Zz,o<0&&(l+=Zz),l<u){for(l&&d.c.push(+h.slice(0,l)),u-=Zz;l<u;)d.c.push(+h.slice(l,l+=Zz));l=Zz-(h=h.slice(l)).length}else l-=u;for(;l--;h+="0");d.c.push(+h)}}else d.c=[d.e=0]}function E(e,t,n,i){var r,s,a,o,l;if(null==n?n=g:rY(n,0,8),!e.c)return e.toString();if(r=e.c[0],a=e.e,null==t)l=nY(e.c),l=1==i||2==i&&(a<=m||a>=v)?aY(l,a):oY(l,a,"0");else if(s=(e=D(new _(e),t,n)).e,o=(l=nY(e.c)).length,1==i||2==i&&(t<=s||s<=m)){for(;o<t;l+="0",o++);l=aY(l,s)}else if(t-=a,l=oY(l,s,"0"),s+1>o){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=s-o)>0)for(s+1==o&&(l+=".");t--;l+="0");return e.s<0&&r?"-"+l:l}function L(e,t){for(var n,i,r=1,s=new _(e[0]);r<e.length;r++)(!(i=new _(e[r])).s||(n=iY(s,i))===t||0===n&&s.s===t)&&(s=i);return s}function T(e,t,n){for(var i=1,r=t.length;!t[--r];t.pop());for(r=t[0];r>=10;r/=10,i++);return(n=i+n*Zz-1)>x?e.c=e.e=null:n<b?e.c=[e.e=0]:(e.e=n,e.c=t),e}function D(e,t,n,i){var r,s,a,o,l,c,u,h=e.c,d=Jz;if(h){e:{for(r=1,o=h[0];o>=10;o/=10,r++);if((s=t-r)<0)s+=Zz,a=t,l=h[c=0],u=Uz(l/d[r-a-1]%10);else if((c=Vz((s+1)/Zz))>=h.length){if(!i)break e;for(;h.length<=c;h.push(0));l=u=0,r=1,a=(s%=Zz)-Zz+1}else{for(l=o=h[c],r=1;o>=10;o/=10,r++);u=(a=(s%=Zz)-Zz+r)<0?0:Uz(l/d[r-a-1]%10)}if(i=i||t<0||null!=h[c+1]||(a<0?l:l%d[r-a-1]),i=n<4?(u||i)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||i||6==n&&(s>0?a>0?l/d[r-a]:0:h[c-1])%10&1||n==(e.s<0?8:7)),t<1||!h[0])return h.length=0,i?(t-=e.e+1,h[0]=d[(Zz-t%Zz)%Zz],e.e=-t||0):h[0]=e.e=0,e;if(0==s?(h.length=c,o=1,c--):(h.length=c+1,o=d[Zz-s],h[c]=a>0?Uz(l/d[r-a]%d[a])*o:0),i)for(;;){if(0==c){for(s=1,a=h[0];a>=10;a/=10,s++);for(a=h[0]+=o,o=1;a>=10;a/=10,o++);s!=o&&(e.e++,h[0]==qz&&(h[0]=1));break}if(h[c]+=o,h[c]!=qz)break;h[c--]=0,o=1}for(s=h.length;0===h[--s];h.pop());}e.e>x?e.c=e.e=null:e.e<b&&(e.c=[e.e=0])}return e}function P(e){var t,n=e.e;return null===n?e.toString():(t=nY(e.c),t=n<=m||n>=v?aY(t,n):oY(t,n,"0"),e.s<0?"-"+t:t)}return _.clone=e,_.ROUND_UP=0,_.ROUND_DOWN=1,_.ROUND_CEIL=2,_.ROUND_FLOOR=3,_.ROUND_HALF_UP=4,_.ROUND_HALF_DOWN=5,_.ROUND_HALF_EVEN=6,_.ROUND_HALF_CEIL=7,_.ROUND_HALF_FLOOR=8,_.EUCLID=9,_.config=_.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error($z+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(rY(n=e[t],0,eY,t),f=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(rY(n=e[t],0,8,t),g=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(rY(n[0],-eY,0,t),rY(n[1],0,eY,t),m=n[0],v=n[1]):(rY(n,-eY,eY,t),m=-(v=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)rY(n[0],-eY,-1,t),rY(n[1],1,eY,t),b=n[0],x=n[1];else{if(rY(n,-eY,eY,t),!n)throw Error($z+t+" cannot be zero: "+n);b=-(x=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error($z+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw y=!n,Error($z+"crypto unavailable");y=n}else y=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(rY(n=e[t],0,9,t),w=n),e.hasOwnProperty(t="POW_PRECISION")&&(rY(n=e[t],0,eY,t),k=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error($z+t+" not an object: "+n);A=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error($z+t+" invalid: "+n);C="0123456789"==n.slice(0,10),S=n}}return{DECIMAL_PLACES:f,ROUNDING_MODE:g,EXPONENTIAL_AT:[m,v],RANGE:[b,x],CRYPTO:y,MODULO_MODE:w,POW_PRECISION:k,FORMAT:A,ALPHABET:S}},_.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!_.DEBUG)return!0;var t,n,i=e.c,r=e.e,s=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===s||-1===s)&&r>=-eY&&r<=eY&&r===Uz(r)){if(0===i[0]){if(0===r&&1===i.length)return!0;break e}if((t=(r+1)%Zz)<1&&(t+=Zz),String(i[0]).length==t){for(t=0;t<i.length;t++)if((n=i[t])<0||n>=qz||n!==Uz(n))break e;if(0!==n)return!0}}}else if(null===i&&null===r&&(null===s||1===s||-1===s))return!0;throw Error($z+"Invalid BigNumber: "+e)},_.maximum=_.max=function(){return L(arguments,-1)},_.minimum=_.min=function(){return L(arguments,1)},_.random=(s=9007199254740992,a=Math.random()*s&2097151?function(){return Uz(Math.random()*s)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,i,r,s,o=0,l=[],c=new _(p);if(null==e?e=f:rY(e,0,eY),r=Vz(e/Zz),y)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(r*=2));o<r;)(s=131072*t[o]+(t[o+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[o]=n[0],t[o+1]=n[1]):(l.push(s%1e14),o+=2);o=r/2}else{if(!crypto.randomBytes)throw y=!1,Error($z+"crypto unavailable");for(t=crypto.randomBytes(r*=7);o<r;)(s=281474976710656*(31&t[o])+1099511627776*t[o+1]+4294967296*t[o+2]+16777216*t[o+3]+(t[o+4]<<16)+(t[o+5]<<8)+t[o+6])>=9e15?crypto.randomBytes(7).copy(t,o):(l.push(s%1e14),o+=7);o=r/7}if(!y)for(;o<r;)(s=a())<9e15&&(l[o++]=s%1e14);for(r=l[--o],e%=Zz,r&&e&&(s=Jz[Zz-e],l[o]=Uz(r/s)*s);0===l[o];l.pop(),o--);if(o<0)l=[i=0];else{for(i=-1;0===l[0];l.splice(0,1),i-=Zz);for(o=1,s=l[0];s>=10;s/=10,o++);o<Zz&&(i-=Zz-o)}return c.e=i,c.c=l,c}),_.sum=function(){for(var e=1,t=arguments,n=new _(t[0]);e<t.length;)n=n.plus(t[e++]);return n},i=function(){var e="0123456789";function t(e,t,n,i){for(var r,s,a=[0],o=0,l=e.length;o<l;){for(s=a.length;s--;a[s]*=t);for(a[0]+=i.indexOf(e.charAt(o++)),r=0;r<a.length;r++)a[r]>n-1&&(null==a[r+1]&&(a[r+1]=0),a[r+1]+=a[r]/n|0,a[r]%=n)}return a.reverse()}return function(i,r,s,a,o){var l,c,u,h,d,p,m,v,b=i.indexOf("."),x=f,y=g;for(b>=0&&(h=k,k=0,i=i.replace(".",""),p=(v=new _(r)).pow(i.length-b),k=h,v.c=t(oY(nY(p.c),p.e,"0"),10,s,e),v.e=v.c.length),u=h=(m=t(i,r,s,o?(l=S,e):(l=e,S))).length;0==m[--h];m.pop());if(!m[0])return l.charAt(0);if(b<0?--u:(p.c=m,p.e=u,p.s=a,m=(p=n(p,v,x,y,s)).c,d=p.r,u=p.e),b=m[c=u+x+1],h=s/2,d=d||c<0||null!=m[c+1],d=y<4?(null!=b||d)&&(0==y||y==(p.s<0?3:2)):b>h||b==h&&(4==y||d||6==y&&1&m[c-1]||y==(p.s<0?8:7)),c<1||!m[0])i=d?oY(l.charAt(1),-x,l.charAt(0)):l.charAt(0);else{if(m.length=c,d)for(--s;++m[--c]>s;)m[c]=0,c||(++u,m=[1].concat(m));for(h=m.length;!m[--h];);for(b=0,i="";b<=h;i+=l.charAt(m[b++]));i=oY(i,u,l.charAt(0))}return i}}(),n=function(){function e(e,t,n){var i,r,s,a,o=0,l=e.length,c=t%Qz,u=t/Qz|0;for(e=e.slice();l--;)o=((r=c*(s=e[l]%Qz)+(i=u*s+(a=e[l]/Qz|0)*c)%Qz*Qz+o)/n|0)+(i/Qz|0)+u*a,e[l]=r%n;return o&&(e=[o].concat(e)),e}function t(e,t,n,i){var r,s;if(n!=i)s=n>i?1:-1;else for(r=s=0;r<n;r++)if(e[r]!=t[r]){s=e[r]>t[r]?1:-1;break}return s}function n(e,t,n,i){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*i+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,r,s,a,o){var l,c,u,h,d,p,f,g,m,v,b,x,y,w,k,A,S,C=i.s==r.s?1:-1,E=i.c,L=r.c;if(!(E&&E[0]&&L&&L[0]))return new _(i.s&&r.s&&(E?!L||E[0]!=L[0]:L)?E&&0==E[0]||!L?0*C:C/0:NaN);for(m=(g=new _(C)).c=[],C=s+(c=i.e-r.e)+1,o||(o=qz,c=tY(i.e/Zz)-tY(r.e/Zz),C=C/Zz|0),u=0;L[u]==(E[u]||0);u++);if(L[u]>(E[u]||0)&&c--,C<0)m.push(1),h=!0;else{for(w=E.length,A=L.length,u=0,C+=2,(d=Uz(o/(L[0]+1)))>1&&(L=e(L,d,o),E=e(E,d,o),A=L.length,w=E.length),y=A,b=(v=E.slice(0,A)).length;b<A;v[b++]=0);S=L.slice(),S=[0].concat(S),k=L[0],L[1]>=o/2&&k++;do{if(d=0,(l=t(L,v,A,b))<0){if(x=v[0],A!=b&&(x=x*o+(v[1]||0)),(d=Uz(x/k))>1)for(d>=o&&(d=o-1),f=(p=e(L,d,o)).length,b=v.length;1==t(p,v,f,b);)d--,n(p,A<f?S:L,f,o),f=p.length,l=1;else 0==d&&(l=d=1),f=(p=L.slice()).length;if(f<b&&(p=[0].concat(p)),n(v,p,b,o),b=v.length,-1==l)for(;t(L,v,A,b)<1;)d++,n(v,A<b?S:L,b,o),b=v.length}else 0===l&&(d++,v=[0]);m[u++]=d,v[0]?v[b++]=E[y]||0:(v=[E[y]],b=1)}while((y++<w||null!=v[0])&&C--);h=null!=v[0],m[0]||m.splice(0,1)}if(o==qz){for(u=1,C=m[0];C>=10;C/=10,u++);D(g,s+(g.e=u+c*Zz-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),o=/^(-?)0([xbo])(?=\w[\w.]*$)/i,l=/^([^.]+)\.$/,c=/^\.([^.]+)$/,u=/^-?(Infinity|NaN)$/,h=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(e,t,n,i){var r,s=n?t:t.replace(h,"");if(u.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(o,(function(e,t,n){return r="x"==(n=n.toLowerCase())?16:"b"==n?2:8,i&&i!=r?e:t})),i&&(r=i,s=s.replace(l,"$1").replace(c,"0.$1")),t!=s))return new _(s,r);if(_.DEBUG)throw Error($z+"Not a"+(i?" base "+i:"")+" number: "+t);e.s=null}e.c=e.e=null},d.absoluteValue=d.abs=function(){var e=new _(this);return e.s<0&&(e.s=1),e},d.comparedTo=function(e,t){return iY(this,new _(e,t))},d.decimalPlaces=d.dp=function(e,t){var n,i,r,s=this;if(null!=e)return rY(e,0,eY),null==t?t=g:rY(t,0,8),D(new _(s),e+s.e+1,t);if(!(n=s.c))return null;if(i=((r=n.length-1)-tY(this.e/Zz))*Zz,r=n[r])for(;r%10==0;r/=10,i--);return i<0&&(i=0),i},d.dividedBy=d.div=function(e,t){return n(this,new _(e,t),f,g)},d.dividedToIntegerBy=d.idiv=function(e,t){return n(this,new _(e,t),0,1)},d.exponentiatedBy=d.pow=function(e,t){var n,i,r,s,a,o,l,c,u=this;if((e=new _(e)).c&&!e.isInteger())throw Error($z+"Exponent not an integer: "+P(e));if(null!=t&&(t=new _(t)),a=e.e>14,!u.c||!u.c[0]||1==u.c[0]&&!u.e&&1==u.c.length||!e.c||!e.c[0])return c=new _(Math.pow(+P(u),a?e.s*(2-sY(e)):+P(e))),t?c.mod(t):c;if(o=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new _(NaN);(i=!o&&u.isInteger()&&t.isInteger())&&(u=u.mod(t))}else{if(e.e>9&&(u.e>0||u.e<-1||(0==u.e?u.c[0]>1||a&&u.c[1]>=24e7:u.c[0]<8e13||a&&u.c[0]<=9999975e7)))return s=u.s<0&&sY(e)?-0:0,u.e>-1&&(s=1/s),new _(o?1/s:s);k&&(s=Vz(k/Zz+2))}for(a?(n=new _(.5),o&&(e.s=1),l=sY(e)):l=(r=Math.abs(+P(e)))%2,c=new _(p);;){if(l){if(!(c=c.times(u)).c)break;s?c.c.length>s&&(c.c.length=s):i&&(c=c.mod(t))}if(r){if(0===(r=Uz(r/2)))break;l=r%2}else if(D(e=e.times(n),e.e+1,1),e.e>14)l=sY(e);else{if(0===(r=+P(e)))break;l=r%2}u=u.times(u),s?u.c&&u.c.length>s&&(u.c.length=s):i&&(u=u.mod(t))}return i?c:(o&&(c=p.div(c)),t?c.mod(t):s?D(c,k,g,undefined):c)},d.integerValue=function(e){var t=new _(this);return null==e?e=g:rY(e,0,8),D(t,t.e+1,e)},d.isEqualTo=d.eq=function(e,t){return 0===iY(this,new _(e,t))},d.isFinite=function(){return!!this.c},d.isGreaterThan=d.gt=function(e,t){return iY(this,new _(e,t))>0},d.isGreaterThanOrEqualTo=d.gte=function(e,t){return 1===(t=iY(this,new _(e,t)))||0===t},d.isInteger=function(){return!!this.c&&tY(this.e/Zz)>this.c.length-2},d.isLessThan=d.lt=function(e,t){return iY(this,new _(e,t))<0},d.isLessThanOrEqualTo=d.lte=function(e,t){return-1===(t=iY(this,new _(e,t)))||0===t},d.isNaN=function(){return!this.s},d.isNegative=function(){return this.s<0},d.isPositive=function(){return this.s>0},d.isZero=function(){return!!this.c&&0==this.c[0]},d.minus=function(e,t){var n,i,r,s,a=this,o=a.s;if(t=(e=new _(e,t)).s,!o||!t)return new _(NaN);if(o!=t)return e.s=-t,a.plus(e);var l=a.e/Zz,c=e.e/Zz,u=a.c,h=e.c;if(!l||!c){if(!u||!h)return u?(e.s=-t,e):new _(h?a:NaN);if(!u[0]||!h[0])return h[0]?(e.s=-t,e):new _(u[0]?a:3==g?-0:0)}if(l=tY(l),c=tY(c),u=u.slice(),o=l-c){for((s=o<0)?(o=-o,r=u):(c=l,r=h),r.reverse(),t=o;t--;r.push(0));r.reverse()}else for(i=(s=(o=u.length)<(t=h.length))?o:t,o=t=0;t<i;t++)if(u[t]!=h[t]){s=u[t]<h[t];break}if(s&&(r=u,u=h,h=r,e.s=-e.s),(t=(i=h.length)-(n=u.length))>0)for(;t--;u[n++]=0);for(t=qz-1;i>o;){if(u[--i]<h[i]){for(n=i;n&&!u[--n];u[n]=t);--u[n],u[i]+=qz}u[i]-=h[i]}for(;0==u[0];u.splice(0,1),--c);return u[0]?T(e,u,c):(e.s=3==g?-1:1,e.c=[e.e=0],e)},d.modulo=d.mod=function(e,t){var i,r,s=this;return e=new _(e,t),!s.c||!e.s||e.c&&!e.c[0]?new _(NaN):!e.c||s.c&&!s.c[0]?new _(s):(9==w?(r=e.s,e.s=1,i=n(s,e,0,3),e.s=r,i.s*=r):i=n(s,e,0,w),(e=s.minus(i.times(e))).c[0]||1!=w||(e.s=s.s),e)},d.multipliedBy=d.times=function(e,t){var n,i,r,s,a,o,l,c,u,h,d,p,f,g,m,v=this,b=v.c,x=(e=new _(e,t)).c;if(!(b&&x&&b[0]&&x[0]))return!v.s||!e.s||b&&!b[0]&&!x||x&&!x[0]&&!b?e.c=e.e=e.s=null:(e.s*=v.s,b&&x?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=tY(v.e/Zz)+tY(e.e/Zz),e.s*=v.s,(l=b.length)<(h=x.length)&&(f=b,b=x,x=f,r=l,l=h,h=r),r=l+h,f=[];r--;f.push(0));for(g=qz,m=Qz,r=h;--r>=0;){for(n=0,d=x[r]%m,p=x[r]/m|0,s=r+(a=l);s>r;)n=((c=d*(c=b[--a]%m)+(o=p*c+(u=b[a]/m|0)*d)%m*m+f[s]+n)/g|0)+(o/m|0)+p*u,f[s--]=c%g;f[s]=n}return n?++i:f.splice(0,1),T(e,f,i)},d.negated=function(){var e=new _(this);return e.s=-e.s||null,e},d.plus=function(e,t){var n,i=this,r=i.s;if(t=(e=new _(e,t)).s,!r||!t)return new _(NaN);if(r!=t)return e.s=-t,i.minus(e);var s=i.e/Zz,a=e.e/Zz,o=i.c,l=e.c;if(!s||!a){if(!o||!l)return new _(r/0);if(!o[0]||!l[0])return l[0]?e:new _(o[0]?i:0*r)}if(s=tY(s),a=tY(a),o=o.slice(),r=s-a){for(r>0?(a=s,n=l):(r=-r,n=o),n.reverse();r--;n.push(0));n.reverse()}for((r=o.length)-(t=l.length)<0&&(n=l,l=o,o=n,t=r),r=0;t;)r=(o[--t]=o[t]+l[t]+r)/qz|0,o[t]=qz===o[t]?0:o[t]%qz;return r&&(o=[r].concat(o),++a),T(e,o,a)},d.precision=d.sd=function(e,t){var n,i,r,s=this;if(null!=e&&e!==!!e)return rY(e,1,eY),null==t?t=g:rY(t,0,8),D(new _(s),e,t);if(!(n=s.c))return null;if(i=(r=n.length-1)*Zz+1,r=n[r]){for(;r%10==0;r/=10,i--);for(r=n[0];r>=10;r/=10,i++);}return e&&s.e+1>i&&(i=s.e+1),i},d.shiftedBy=function(e){return rY(e,-9007199254740991,Kz),this.times("1e"+e)},d.squareRoot=d.sqrt=function(){var e,t,i,r,s,a=this,o=a.c,l=a.s,c=a.e,u=f+4,h=new _("0.5");if(1!==l||!o||!o[0])return new _(!l||l<0&&(!o||o[0])?NaN:o?a:1/0);if(0==(l=Math.sqrt(+P(a)))||l==1/0?(((t=nY(o)).length+c)%2==0&&(t+="0"),l=Math.sqrt(+t),c=tY((c+1)/2)-(c<0||c%2),i=new _(t=l==1/0?"5e"+c:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+c)):i=new _(l+""),i.c[0])for((l=(c=i.e)+u)<3&&(l=0);;)if(s=i,i=h.times(s.plus(n(a,s,u,1))),nY(s.c).slice(0,l)===(t=nY(i.c)).slice(0,l)){if(i.e<c&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(i,i.e+f+2,1),e=!i.times(i).eq(a));break}if(!r&&(D(s,s.e+f+2,0),s.times(s).eq(a))){i=s;break}u+=4,l+=4,r=1}return D(i,i.e+f+1,g,e)},d.toExponential=function(e,t){return null!=e&&(rY(e,0,eY),e++),E(this,e,t,1)},d.toFixed=function(e,t){return null!=e&&(rY(e,0,eY),e=e+this.e+1),E(this,e,t)},d.toFormat=function(e,t,n){var i,r=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=A;else if("object"!=typeof n)throw Error($z+"Argument not an object: "+n);if(i=r.toFixed(e,t),r.c){var s,a=i.split("."),o=+n.groupSize,l=+n.secondaryGroupSize,c=n.groupSeparator||"",u=a[0],h=a[1],d=r.s<0,p=d?u.slice(1):u,f=p.length;if(l&&(s=o,o=l,l=s,f-=s),o>0&&f>0){for(s=f%o||o,u=p.substr(0,s);s<f;s+=o)u+=c+p.substr(s,o);l>0&&(u+=c+p.slice(s)),d&&(u="-"+u)}i=h?u+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):u}return(n.prefix||"")+i+(n.suffix||"")},d.toFraction=function(e){var t,i,r,s,a,o,l,c,u,h,d,f,m=this,v=m.c;if(null!=e&&(!(l=new _(e)).isInteger()&&(l.c||1!==l.s)||l.lt(p)))throw Error($z+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+P(l));if(!v)return new _(m);for(t=new _(p),u=i=new _(p),r=c=new _(p),f=nY(v),a=t.e=f.length-m.e-1,t.c[0]=Jz[(o=a%Zz)<0?Zz+o:o],e=!e||l.comparedTo(t)>0?a>0?t:u:l,o=x,x=1/0,l=new _(f),c.c[0]=0;h=n(l,t,0,1),1!=(s=i.plus(h.times(r))).comparedTo(e);)i=r,r=s,u=c.plus(h.times(s=u)),c=s,t=l.minus(h.times(s=t)),l=s;return s=n(e.minus(i),r,0,1),c=c.plus(s.times(u)),i=i.plus(s.times(r)),c.s=u.s=m.s,d=n(u,r,a*=2,g).minus(m).abs().comparedTo(n(c,i,a,g).minus(m).abs())<1?[u,r]:[c,i],x=o,d},d.toNumber=function(){return+P(this)},d.toPrecision=function(e,t){return null!=e&&rY(e,1,eY),E(this,e,t,2)},d.toString=function(e){var t,n=this,r=n.s,s=n.e;return null===s?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=s<=m||s>=v?aY(nY(n.c),s):oY(nY(n.c),s,"0"):10===e&&C?t=oY(nY((n=D(new _(n),f+s+1,g)).c),n.e,"0"):(rY(e,2,S.length,"Base"),t=i(oY(nY(n.c),s,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},d.valueOf=d.toJSON=function(){return P(this)},d._isBigNumber=!0,d[Symbol.toStringTag]="BigNumber",d[Symbol.for("nodejs.util.inspect.custom")]=d.valueOf,null!=t&&_.set(t),_}();const cY=lY;var uY;function hY(e){var t;return null!==(t=uY[e])&&void 0!==t?t:uY.default}!function(e){e[e.up=cY.ROUND_UP]="up",e[e.down=cY.ROUND_DOWN]="down",e[e.truncate=cY.ROUND_DOWN]="truncate",e[e.halfUp=cY.ROUND_HALF_UP]="halfUp",e[e.default=cY.ROUND_HALF_UP]="default",e[e.halfDown=cY.ROUND_HALF_DOWN]="halfDown",e[e.halfEven=cY.ROUND_HALF_EVEN]="halfEven",e[e.banker=cY.ROUND_HALF_EVEN]="banker",e[e.ceiling=cY.ROUND_CEIL]="ceiling",e[e.ceil=cY.ROUND_CEIL]="ceil",e[e.floor=cY.ROUND_FLOOR]="floor"}(uY||(uY={}));var dY=n(6796),pY=n.n(dY);function fY(e,{precision:t,significant:n}){return n&&null!==t&&t>0?t-function(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}(e):t}function gY(e,t){const n=fY(e,t);if(null===n)return e.toString();const i=hY(t.roundMode);if(n>=0)return e.toFixed(n,i);const r=Math.pow(10,Math.abs(n));return(e=new cY(e.div(r).toFixed(0,i)).times(r)).toString()}function mY(e,t){var n,i,r;const s=new cY(e);if(t.raise&&!s.isFinite())throw new Error(`"${e}" is not a valid numeric value`);const a=gY(s,t),o=new cY(a),l=o.lt(0),c=o.isZero();let[u,h]=a.split(".");const d=[];let p;const f=null!==(n=t.format)&&void 0!==n?n:"%n",g=null!==(i=t.negativeFormat)&&void 0!==i?i:`-${f}`,m=l&&!c?g:f;for(u=u.replace("-","");u.length>0;)d.unshift(u.substr(Math.max(0,u.length-3),3)),u=u.substr(0,u.length-3);return u=d.join(""),p=d.join(t.delimiter),h=t.significant?function({significand:e,whole:t,precision:n}){if("0"===t||null===n)return e;const i=Math.max(0,n-t.length);return(null!=e?e:"").substr(0,i)}({whole:u,significand:h,precision:t.precision}):null!=h?h:pY()("0",null!==(r=t.precision)&&void 0!==r?r:0),t.stripInsignificantZeros&&h&&(h=h.replace(/0+$/,"")),s.isNaN()&&(p=e.toString()),h&&s.isFinite()&&(p+=(t.separator||".")+h),function(e,{formattedNumber:t,unit:n}){return e.replace("%n",t).replace("%u",n)}(m,{formattedNumber:p,unit:t.unit})}function vY(e,t,n){let i="";return(t instanceof String||"string"==typeof t)&&(i=t),t instanceof Array&&(i=t.join(e.defaultSeparator)),n.scope&&(i=[n.scope,i].join(e.defaultSeparator)),i}function bY(e){var t,n;if(null===e)return"null";const i=typeof e;return"object"!==i?i:(null===(n=null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)||void 0===n?void 0:n.toLowerCase())||"object"}function xY(e,t,n){n=Object.keys(n).reduce(((t,i)=>(t[e.transformKey(i)]=n[i],t)),{});const i=t.match(e.placeholder);if(!i)return t;for(;i.length;){let r;const s=i.shift(),a=s.replace(e.placeholder,"$1");r=Wz(n[a])?n[a].toString().replace(/\$/gm,"_#$#_"):a in n?e.nullPlaceholder(e,s,t,n):e.missingPlaceholder(e,s,t,n);const o=new RegExp(s.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));t=t.replace(o,r)}return t.replace(/_#\$#_/g,"$")}function yY(e,t,n={}){const i="locale"in(n=Object.assign({},n))?n.locale:e.locale,r=bY(i),s=e.locales.get("string"===r?i:typeof i).slice();t=vY(e,t,n).split(e.defaultSeparator).map((t=>e.transformKey(t))).join(".");const a=s.map((n=>Ez()(e.translations,[n,t].join("."))));return a.push(n.defaultValue),a.find((e=>Wz(e)))}var wY=n(9734),kY=n.n(wY),AY=n(7287);const SY={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},CY=n.n(AY)()(Object.values(SY),Object.keys(SY).map((e=>parseInt(e,10))));function _Y(e,t,n){const i={roundMode:n.roundMode,precision:n.precision,significant:n.significant};let r;if("string"===bY(n.units)){const t=n.units;if(r=yY(e,t),!r)throw new Error(`The scope "${e.locale}${e.defaultSeparator}${vY(e,t,{})}" couldn't be found`)}else r=n.units;let s=gY(new cY(t),i);const a=((e,t)=>{const n=e.isZero()?0:Math.floor(Math.log10(e.abs().toNumber()));return(e=>kY()(Object.keys(e).map((e=>CY[e])),(e=>-1*e)))(t).find((e=>n>=e))||0})(new cY(s),r),o=((e,t)=>e[SY[t.toString()]]||"")(r,a);if(s=gY(new cY(s).div(Math.pow(10,a)),i),n.stripInsignificantZeros){let[e,t]=s.split(".");t=(t||"").replace(/0+$/,""),s=e,t&&(s+=`${n.separator}${t}`)}return n.format.replace("%n",s||"0").replace("%u",o).trim()}const EY=["byte","kb","mb","gb","tb","pb","eb"];function LY(e){if(e instanceof Date)return e;if("number"==typeof e){const t=new Date;return t.setTime(e),t}const t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){const e=t.slice(1,8).map((e=>parseInt(e,10)||0));e[1]-=1;const[n,i,r,s,a,o,l]=e;return t[8]?new Date(Date.UTC(n,i,r,s,a,o,l)):new Date(n,i,r,s,a,o,l)}if(e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)){(new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")))}const n=new Date;return n.setTime(Date.parse(e)),n}function TY({i18n:e,count:t,scope:n,options:i,baseScope:r}){let s,a;if(i=Object.assign({},i),s="object"==typeof n&&n?n:yY(e,n,i),!s)return e.missingTranslation.get(n,i);const o=e.pluralization.get(i.locale)(e,t),l=[];for(;o.length;){const e=o.shift();if(Wz(s[e])){a=s[e];break}l.push(e)}return Wz(a)?(i.count=t,e.interpolate(e,a,i)):e.missingTranslation.get(r.split(e.defaultSeparator).concat([l[0]]),i)}var DY=n(3218),PY=n.n(DY),MY=n(2348),OY=n.n(MY);class RY{constructor(e){this.target=e}call(){const e=OY()(Object.keys(this.target).map((e=>this.compute(this.target[e],e))));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&PY()(e)?Object.keys(e).map((n=>this.compute(e[n],`${t}.${n}`))):t}}const IY={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};var NY=n(6026),FY=n.n(NY);const BY=(e,t,n)=>n>=e&&n<=t;const zY=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));const n=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+n.replace("_"," ").replace(/([a-z])([A-Z])/g,((e,t,n)=>`${t} ${n.toLowerCase()}`))},YY=(e,t,n)=>{const i=vY(e,t,n),r="locale"in n?n.locale:e.locale,s=bY(r);return`[missing "${["string"==s?r:s,i].join(e.defaultSeparator)}" translation]`},jY=(e,t,n)=>{const i=vY(e,t,n),r=[e.locale,i].join(e.defaultSeparator);throw new Error(`Missing translation: ${r}`)};class HY{constructor(e){this.i18n=e,this.registry={},this.register("guess",zY),this.register("message",YY),this.register("error",jY)}register(e,t){this.registry[e]=t}get(e,t){var n;return this.registry[null!==(n=t.missingBehavior)&&void 0!==n?n:this.i18n.missingBehavior](this.i18n,e,t)}}var WY=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};const XY={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(e,t)=>`[missing "${t}" value]`,nullPlaceholder:(e,t,n,i)=>e.missingPlaceholder(e,t,n,i),transformKey:e=>e};class VY{constructor(e={},t={}){this._locale=XY.locale,this._defaultLocale=XY.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:i,missingBehavior:r,missingTranslationPrefix:s,missingPlaceholder:a,nullPlaceholder:o,defaultLocale:l,defaultSeparator:c,placeholder:u,transformKey:h}=Object.assign(Object.assign({},XY),t);this.locale=n,this.defaultLocale=l,this.defaultSeparator=c,this.enableFallback=i,this.locale=n,this.missingBehavior=r,this.missingTranslationPrefix=s,this.missingPlaceholder=a,this.nullPlaceholder=o,this.placeholder=u,this.pluralization=new zz(this),this.locales=new Fz(this),this.missingTranslation=new HY(this),this.transformKey=h,this.interpolate=xY,this.store(e)}store(e){new RY(e).call().forEach((t=>Oz()(this.translations,t,Ez()(e,t),Object))),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if("string"!=typeof e)throw new Error(`Expected newLocale to be a string; got ${bY(e)}`);const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if("string"!=typeof e)throw new Error(`Expected newLocale to be a string; got ${bY(e)}`);const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){const n=function(e,t,n){let i=[{scope:t}];if(Wz(n.defaults)&&(i=i.concat(n.defaults)),Wz(n.defaultValue)){const r="function"==typeof n.defaultValue?n.defaultValue(e,t,n):n.defaultValue;i.push({message:r}),delete n.defaultValue}return i}(this,e,t=Object.assign({},t));let i;return n.some((e=>(Wz(e.scope)?i=yY(this,e.scope,t):Wz(e.message)&&(i=e.message),null!=i)))?("string"==typeof i?i=this.interpolate(this,i,t):"object"==typeof i&&i&&Wz(t.count)&&(i=TY({i18n:this,count:t.count||0,scope:i,options:t,baseScope:vY(this,e,t)})),t&&i instanceof Array&&(i=i.map((e=>"string"==typeof e?xY(this,e,t):e))),i):this.missingTranslation.get(e,t)}pluralize(e,t,n){return TY({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:vY(this,t,null!=n?n:{})})}localize(e,t,n){if(n=Object.assign({},n),null==t)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return mY(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},yY(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let i;return i=e.match(/^(date|time)/)?this.toTime(e,t):t.toString(),xY(this,i,n)}}}toTime(e,t){const n=LY(t),i=yY(this,e);return n.toString().match(/invalid/i)?n.toString():i?this.strftime(n,i):n.toString()}numberToCurrency(e,t={}){return mY(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},Hz(this.get("number.format"))),Hz(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return mY(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},Hz(this.get("number.format"))),Hz(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return function(e,t,n){const i=hY(n.roundMode),r=1024,s=new cY(t).abs(),a=s.lt(r);let o;const l=((e,t)=>{const n=t.length-1,i=new cY(Math.log(e.toNumber())).div(Math.log(r)).integerValue(cY.ROUND_DOWN).toNumber();return Math.min(n,i)})(s,EY);o=a?s.integerValue():new cY(gY(s.div(Math.pow(r,l)),{significant:n.significant,precision:n.precision,roundMode:n.roundMode}));const c=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),u=e.translate((h=EY,`number.human.storage_units.units.${a?"byte":h[l]}`),{count:s.integerValue().toNumber()});var h;let d=o.toFixed(n.precision,i);return n.stripInsignificantZeros&&(d=d.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),c.replace("%n",d).replace("%u",u)}(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},Hz(this.get("number.human.format"))),Hz(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return _Y(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},Hz(this.get("number.human.format"))),Hz(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return mY(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return function(e,t){const n=new cY(e);if(!n.isFinite())return e.toString();if(!t.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${t.delimiterPattern}`);let[i,r]=n.toString().split(".");return i=i.replace(t.delimiterPattern,(e=>`${e}${t.delimiter}`)),[i,r].filter(Boolean).join(t.separator)}(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return WY(this,void 0,void 0,(function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}}))}strftime(e,t,n={}){return function(e,t,n={}){const{abbrDayNames:i,dayNames:r,abbrMonthNames:s,monthNames:a,meridian:o}=Object.assign(Object.assign({},IY),n);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const l=e.getDay(),c=e.getDate(),u=e.getFullYear(),h=e.getMonth()+1,d=e.getHours();let p=d;const f=d>11?"pm":"am",g=e.getSeconds(),m=e.getMinutes(),v=e.getTimezoneOffset(),b=Math.floor(Math.abs(v/60)),x=Math.abs(v)-60*b,y=(v>0?"-":"+")+(b.toString().length<2?"0"+b:b)+(x.toString().length<2?"0"+x:x);return p>12?p-=12:0===p&&(p=12),(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",i[l])).replace("%A",r[l])).replace("%b",s[h])).replace("%B",a[h])).replace("%d",c.toString().padStart(2,"0"))).replace("%e",c.toString())).replace("%-d",c.toString())).replace("%H",d.toString().padStart(2,"0"))).replace("%-H",d.toString())).replace("%k",d.toString())).replace("%I",p.toString().padStart(2,"0"))).replace("%-I",p.toString())).replace("%l",p.toString())).replace("%m",h.toString().padStart(2,"0"))).replace("%-m",h.toString())).replace("%M",m.toString().padStart(2,"0"))).replace("%-M",m.toString())).replace("%p",o[f])).replace("%P",o[f].toLowerCase())).replace("%S",g.toString().padStart(2,"0"))).replace("%-S",g.toString())).replace("%w",l.toString())).replace("%y",u.toString().padStart(2,"0").substr(-2))).replace("%-y",u.toString().padStart(2,"0").substr(-2).replace(/^0+/,""))).replace("%Y",u.toString())).replace(/%z/i,y)}(e,t,Object.assign(Object.assign(Object.assign({},Hz(yY(this,"date"))),{meridian:{am:yY(this,"time.am")||"AM",pm:yY(this,"time.pm")||"PM"}}),n))}update(e,t,n={strict:!1}){if(n.strict&&!Tz()(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const i=Ez()(this.translations,e),r=bY(i),s=bY(t);if(n.strict&&r!==s)throw new Error(`The current type for "${e}" is "${r}", but you're trying to override it with "${s}"`);let a;a="object"===s?Object.assign(Object.assign({},i),t):t,Pz()(this.translations,e,a),this.hasChanged()}toSentence(e,t={}){const{wordsConnector:n,twoWordsConnector:i,lastWordConnector:r}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},Hz(yY(this,"support.array"))),t),s=e.length;switch(s){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(i);default:return[e.slice(0,s-1).join(n),r,e[s-1]].join("")}}timeAgoInWords(e,t,n={}){return function(e,t,n,i={}){const r=i.scope||"datetime.distance_in_words",s=(t,n=0)=>e.t(t,{count:n,scope:r});t=LY(t),n=LY(n);let a=t.getTime()/1e3,o=n.getTime()/1e3;a>o&&([t,n,a,o]=[n,t,o,a]);const l=Math.round(o-a),c=Math.round((o-a)/60),u=c/60/24,h=Math.round(c/60),d=Math.round(u),p=Math.round(d/30);if(BY(0,1,c))return i.includeSeconds?BY(0,4,l)?s("less_than_x_seconds",5):BY(5,9,l)?s("less_than_x_seconds",10):BY(10,19,l)?s("less_than_x_seconds",20):BY(20,39,l)?s("half_a_minute"):BY(40,59,l)?s("less_than_x_minutes",1):s("x_minutes",1):0===c?s("less_than_x_minutes",1):s("x_minutes",c);if(BY(2,44,c))return s("x_minutes",c);if(BY(45,89,c))return s("about_x_hours",1);if(BY(90,1439,c))return s("about_x_hours",h);if(BY(1440,2519,c))return s("x_days",1);if(BY(2520,43199,c))return s("x_days",d);if(BY(43200,86399,c))return s("about_x_months",Math.round(c/43200));if(BY(86400,525599,c))return s("x_months",p);let f=t.getFullYear();t.getMonth()+1>=3&&(f+=1);let g=n.getFullYear();n.getMonth()+1<3&&(g-=1);const m=525600,v=c-1440*(f>g?0:FY()(f,g).filter((e=>1==new Date(e,1,29).getMonth())).length),b=Math.trunc(v/m),x=parseFloat((v/m-b).toPrecision(3));return x<.25?s("about_x_years",b):x<.75?s("over_x_years",b):s("almost_x_years",b+1)}(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return mY(e,t)}get(e){return yY(this,e)}runCallbacks(){this.onChangeHandlers.forEach((e=>e(this)))}hasChanged(){this._version+=1,this.runCallbacks()}}const UY=JSON.parse('{"en":{"lesli":{"application":{"navigation_logout":"Logout","navigation_my_profile":"My profile"},"dashboards":{"column_default":"Default","column_name":"Name","title":"Dashboards","view_add_component":"Add component"},"shared":{"button_add_new":"Add new","button_delete":"Delete","button_edit":"Edit","button_list":"List","button_reload":"Reload","button_save":"Save","button_settings":"Settings","button_show":"Show","message_operation_error":"Operation failed. Please try again.","message_operation_success":"Operation completed successfully","toolbar_search":"Search...","view_discussions":"Discussions","view_files":"Files","view_quick_actions":"Quick actions","view_status_active":"Active","view_status_inactive":"Inactive"}},"lesli_admin":{"accounts":{"column_address":"Address","column_city":"City","column_company_name":"Company name","column_company_name_legal":"Legal name","column_country":"Country","column_phone_number":"Phonenumber","column_postal_code":"Postal code","column_public_email":"Public email","column_region":"Region","column_tag_line":"Slogan","column_website":"Website","tab_address":"Address","tab_contact":"Contact","tab_general_information":"General Information","view_subtitle_social_media":"Social media","view_title":"Account information"}}},"es":{"lesli":{"application":{"navigation_logout":"Cerrar sesión","navigation_my_profile":"Mi perfil"},"dashboards":{"column_default":"Default","column_name":"Nombre","title":"Dashboards","view_add_component":"Agregar componente"},"shared":{"button_add_new":"Agregar nuevo","button_delete":"Eliminar","button_edit":"Editar","button_list":"Lista","button_reload":"Recargar","button_save":"Guardar","button_settings":"Configuración","button_show":"Ver","message_operation_error":"Operación fallida. Por favor, inténtelo de nuevo.","message_operation_success":"Operacion realizada satisfactoriamente","toolbar_search":"Buscar...","view_discussions":"Discusiones","view_files":"Archivos","view_quick_actions":"Acciones rapidas","view_status_active":"Activo","view_status_inactive":"Inactivo"}},"lesli_admin":{"accounts":{"column_address":"Dirección","column_city":"Ciudad","column_company_name":"Nombre de Empresa","column_company_name_legal":"Razon social","column_country":"País","column_phone_number":"Teléfono","column_postal_code":"Código postal","column_public_email":"Email publico","column_region":"Región","column_tag_line":"Slogan","column_website":"Sitio web","tab_address":"Dirección","tab_contact":"Contacto","tab_general_information":"Información General","view_subtitle_social_media":"Redes sociales","view_title":"Informacion de cuenta"}}},"fr":{"lesli":{"application":{"navigation_logout":":lesli.application.navigation_logout:","navigation_my_profile":":lesli.application.navigation_my_profile:"},"dashboards":{"column_default":":lesli.dashboards.column_default:","column_name":":lesli.dashboards.column_name:","title":":lesli.dashboards.title:","view_add_component":":lesli.dashboards.view_add_component:"},"shared":{"button_add_new":":lesli.shared.button_add_new:","button_delete":":lesli.shared.button_delete:","button_edit":":lesli.shared.button_edit:","button_list":":lesli.shared.button_list:","button_reload":":lesli.shared.button_reload:","button_save":":lesli.shared.button_save:","button_settings":":lesli.shared.button_settings:","button_show":":lesli.shared.button_show:","message_operation_error":":lesli.shared.message_operation_error:","message_operation_success":":lesli.shared.message_operation_success:","toolbar_search":":lesli.shared.toolbar_search:","view_discussions":":lesli.shared.view_discussions:","view_files":":lesli.shared.view_files:","view_quick_actions":":lesli.shared.view_quick_actions:","view_status_active":":lesli.shared.view_status_active:","view_status_inactive":":lesli.shared.view_status_inactive:"}},"lesli_admin":{"accounts":{"column_address":":lesli_admin.accounts.column_address:","column_city":":lesli_admin.accounts.column_city:","column_company_name":":lesli_admin.accounts.column_company_name:","column_company_name_legal":":lesli_admin.accounts.column_company_name_legal:","column_country":":lesli_admin.accounts.column_country:","column_phone_number":":lesli_admin.accounts.column_phone_number:","column_postal_code":":lesli_admin.accounts.column_postal_code:","column_public_email":":lesli_admin.accounts.column_public_email:","column_region":":lesli_admin.accounts.column_region:","column_tag_line":":lesli_admin.accounts.column_tag_line:","column_website":":lesli_admin.accounts.column_website:","tab_address":":lesli_admin.accounts.tab_address:","tab_contact":":lesli_admin.accounts.tab_contact:","tab_general_information":":lesli_admin.accounts.tab_general_information:","view_subtitle_social_media":":lesli_admin.accounts.view_subtitle_social_media:","view_title":":lesli_admin.accounts.view_title:"}}},"it":{"lesli":{"application":{"navigation_logout":":lesli.application.navigation_logout:","navigation_my_profile":":lesli.application.navigation_my_profile:"},"dashboards":{"column_default":":lesli.dashboards.column_default:","column_name":":lesli.dashboards.column_name:","title":":lesli.dashboards.title:","view_add_component":":lesli.dashboards.view_add_component:"},"shared":{"button_add_new":":lesli.shared.button_add_new:","button_delete":":lesli.shared.button_delete:","button_edit":":lesli.shared.button_edit:","button_list":":lesli.shared.button_list:","button_reload":":lesli.shared.button_reload:","button_save":":lesli.shared.button_save:","button_settings":":lesli.shared.button_settings:","button_show":":lesli.shared.button_show:","message_operation_error":":lesli.shared.message_operation_error:","message_operation_success":":lesli.shared.message_operation_success:","toolbar_search":":lesli.shared.toolbar_search:","view_discussions":":lesli.shared.view_discussions:","view_files":":lesli.shared.view_files:","view_quick_actions":":lesli.shared.view_quick_actions:","view_status_active":":lesli.shared.view_status_active:","view_status_inactive":":lesli.shared.view_status_inactive:"}},"lesli_admin":{"accounts":{"column_address":":lesli_admin.accounts.column_address:","column_city":":lesli_admin.accounts.column_city:","column_company_name":":lesli_admin.accounts.column_company_name:","column_company_name_legal":":lesli_admin.accounts.column_company_name_legal:","column_country":":lesli_admin.accounts.column_country:","column_phone_number":":lesli_admin.accounts.column_phone_number:","column_postal_code":":lesli_admin.accounts.column_postal_code:","column_public_email":":lesli_admin.accounts.column_public_email:","column_region":":lesli_admin.accounts.column_region:","column_tag_line":":lesli_admin.accounts.column_tag_line:","column_website":":lesli_admin.accounts.column_website:","tab_address":":lesli_admin.accounts.tab_address:","tab_contact":":lesli_admin.accounts.tab_contact:","tab_general_information":":lesli_admin.accounts.tab_general_information:","view_subtitle_social_media":":lesli_admin.accounts.view_subtitle_social_media:","view_title":":lesli_admin.accounts.view_title:"}}},"pt":{"lesli":{"application":{"navigation_logout":":lesli.application.navigation_logout:","navigation_my_profile":":lesli.application.navigation_my_profile:"},"dashboards":{"column_default":":lesli.dashboards.column_default:","column_name":":lesli.dashboards.column_name:","title":":lesli.dashboards.title:","view_add_component":":lesli.dashboards.view_add_component:"},"shared":{"button_add_new":":lesli.shared.button_add_new:","button_delete":":lesli.shared.button_delete:","button_edit":":lesli.shared.button_edit:","button_list":":lesli.shared.button_list:","button_reload":":lesli.shared.button_reload:","button_save":":lesli.shared.button_save:","button_settings":":lesli.shared.button_settings:","button_show":":lesli.shared.button_show:","message_operation_error":":lesli.shared.message_operation_error:","message_operation_success":":lesli.shared.message_operation_success:","toolbar_search":":lesli.shared.toolbar_search:","view_discussions":":lesli.shared.view_discussions:","view_files":":lesli.shared.view_files:","view_quick_actions":":lesli.shared.view_quick_actions:","view_status_active":":lesli.shared.view_status_active:","view_status_inactive":":lesli.shared.view_status_inactive:"}},"lesli_admin":{"accounts":{"column_address":":lesli_admin.accounts.column_address:","column_city":":lesli_admin.accounts.column_city:","column_company_name":":lesli_admin.accounts.column_company_name:","column_company_name_legal":":lesli_admin.accounts.column_company_name_legal:","column_country":":lesli_admin.accounts.column_country:","column_phone_number":":lesli_admin.accounts.column_phone_number:","column_postal_code":":lesli_admin.accounts.column_postal_code:","column_public_email":":lesli_admin.accounts.column_public_email:","column_region":":lesli_admin.accounts.column_region:","column_tag_line":":lesli_admin.accounts.column_tag_line:","column_website":":lesli_admin.accounts.column_website:","tab_address":":lesli_admin.accounts.tab_address:","tab_contact":":lesli_admin.accounts.tab_contact:","tab_general_information":":lesli_admin.accounts.tab_general_information:","view_subtitle_social_media":":lesli_admin.accounts.view_subtitle_social_media:","view_title":":lesli_admin.accounts.view_title:"}}}}'),$Y=np("account",{state:()=>({account:{detail_attributes:{}},accountInfo:{},options:{countries:[],regions:[],time_zones:[]}}),actions:{get(){this.http.get(this.url.admin("account")).then((e=>{this.account=e})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))})).finally((()=>{}))},update(){this.http.patch(this.url.admin("account"),{account:this.account}).then((e=>{this.msg.success(i18n.t("lesli.shared.message_operation_success"))})).catch((e=>{this.msg.danger(i18n.t("lesli.shared.message_operation_error"))}))},getOptions(){this.loading=!0,this.http.get(this.url.admin("account/options")).then((e=>{this.options.countries=e.countries.map((e=>({label:e.name,value:e.id}))),this.options.regions=e.regions.map((e=>({label:e.value,value:e.key})))})).catch((e=>{this.msg.danger(this.translations.core.shared.messages_danger_internal_error)})).finally((()=>{this.loading=!1})),this.http.get(this.url.admin("account/settings/options")).then((e=>{this.options.time_zones=e.time_zones.map((e=>({label:e.text,value:e.value})))})).catch((e=>{this.msg.danger(this.translations.core.shared.messages_danger_internal_error)}))}}}),GY={class:"field"},qY={class:"label"},ZY={class:"control"},KY={class:"field"},JY={class:"label"},QY={class:"control"},ej={class:"field"},tj={class:"label"},nj={class:"control"},ij={class:"field"},rj={class:"field-body"},sj={class:"field"},aj={class:"control"},oj={__name:"form-information",setup(e){const t=$Y(),n={shared:i18n.t("lesli.shared"),admin:i18n.t("lesli_admin.accounts")};return(e,i)=>{const r=Qn("lesli-button"),s=Qn("lesli-form");return Us(),Qs(s,{flat:"",onSubmit:Gt(t).update},{default:Xn((()=>[sa("div",GY,[sa("label",qY,le(n.admin.column_company_name),1),sa("div",ZY,[Si(sa("input",{class:"input",type:"text","onUpdate:modelValue":i[0]||(i[0]=e=>Gt(t).account.name=e)},null,512),[[hl,Gt(t).account.name]])])]),sa("div",KY,[sa("label",JY,le(n.admin.column_company_name_legal),1),sa("div",QY,[Si(sa("input",{class:"input",type:"text","onUpdate:modelValue":i[1]||(i[1]=e=>Gt(t).account.detail_attributes.company_name_legal=e)},null,512),[[hl,Gt(t).account.detail_attributes.company_name_legal]])])]),sa("div",ej,[sa("label",tj,le(n.admin.column_tag_line),1),sa("div",nj,[Si(sa("input",{class:"input",type:"text","onUpdate:modelValue":i[2]||(i[2]=e=>Gt(t).account.detail_attributes.company_tagline=e)},null,512),[[hl,Gt(t).account.detail_attributes.company_tagline]])])]),sa("div",ij,[sa("div",rj,[sa("div",sj,[sa("div",aj,[aa(r,{icon:"save"},{default:Xn((()=>[ua(le(n.shared.button_save),1)])),_:1})])])])])])),_:1},8,["onSubmit"])}}},lj={__name:"show",setup(e){const t=$Y(),n={admin:i18n.t("lesli_admin.accounts")};ja((()=>storeOnboarding.companyInfo));return nr((()=>{t.get()})),(e,t)=>{const i=Qn("lesli-header"),r=Qn("lesli-tab-item"),s=Qn("lesli-tabs"),a=Qn("lesli-application-container");return Us(),Qs(a,null,{default:Xn((()=>[aa(i,{title:n.admin.view_title},null,8,["title"]),aa(s,null,{default:Xn((()=>[aa(r,{title:n.admin.tab_general_information,icon:"business"},{default:Xn((()=>[aa(oj)])),_:1},8,["title"]),da('\n <lesli-tab-item :title="translations.admin.tab_address" icon="location_on">\n <form-address></form-address>\n </lesli-tab-item>\n \n <lesli-tab-item :title="translations.admin.tab_contact" icon="contact_page">\n <form-contact></form-contact>\n </lesli-tab-item>\n ')])),_:1})])),_:1})}}},cj={class:"columns is-multiline is-variable is-4 dashboard-components"},uj={class:"column is-3"},hj={class:"title is-6 mb-2"},dj={class:"p-0 m-0"},pj={class:"p-0 m-0"},fj={class:"p-0 m-0"},gj={__name:"show",setup(e){n(7484);const t=Qr("url"),i=Qr("http"),r=(Qr("date"),Wt([]));return nr((()=>{i.get(t.lesli("about")).then((e=>{r.value=e})).catch((e=>{console.log(e)}))})),(e,t)=>{const n=Qn("lesli-header"),i=Qn("lesli-application-component"),s=Qn("lesli-application-container");return Us(),Qs(s,null,{default:Xn((()=>[aa(n,{title:"Lesli system"}),sa("div",cj,[(Us(!0),Js(Ys,null,hr(r.value,(e=>(Us(),Js("div",uj,[aa(i,null,{default:Xn((()=>[sa("h6",hj,le(e.name),1),sa("p",dj,"version: "+le(e.version),1),sa("p",pj,"buid: "+le(e.build),1),sa("p",fj,"path: "+le(e.path),1)])),_:2},1024)])))),256))])])),_:1})}}},mj=np("shared.dashboard",{state:()=>({engine:null,loading:!1,dashboards:[],dashboard:{components:[]},options:{component_ids:[]},selected_dashboard_component:{},deleted_components:[],default_component_configuration:{index:1,layout:4},new_component_id:""}),actions:{setEngine(e){this.engine=e.replace("lesli_","")},getDashboard(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.http.get(this.url[this.engine]("dashboards/:id",e)).then((e=>{let t=e.components;this.dashboard=e,this.dashboard.components=[],t.forEach((e=>{e.component_id=e.component_id.replaceAll("_","-"),this.dashboard.components.push(e)}))}))},getDashboardOptions(){const e=this.url[this.engine]("dashboards/options");this.http.get(e).then((e=>{e.component_ids.forEach((e=>{this.options.component_ids.push({label:e.text.replaceAll("_","-"),value:e.value})}))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},fetchDashboards(e){this.loading=!0,e||(e=this.url[this.engine]("dashboards")),this.http.get(e).then((e=>{this.loading=!1,this.dashboards=e.dashboards.map((e=>(e.created_at=this.date2(e.created_at).dateTime().toString(),e.updated_at=this.date2(e.updated_at).dateTime().toString(),e)))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},searchDashboards(e){const t=this.url[this.engine]("dashboards").search(e);this.fetchDashboards(t)},resetDashboard(){this.dashboard={components:[]},this.deleted_components=[],this.selected_dashboard_component={},this.new_component_id=""},updateDashboard(){this.loading=!0;let e={dashboard:{name:this.dashboard.name,default:this.dashboard.default,roles_id:this.dashboard.roles_id,components_attributes:this.dashboard.components.map((e=>{let t={...e};return isNaN(t.id)&&(t.id=null),t}))}};e.dashboard.components_attributes=e.dashboard.components_attributes.concat(this.deleted_components);const t=this.url[this.engine](`dashboards/${this.dashboard.id}`);return console.log(e),this.http.put(t,e).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation")),this.loading=!1})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},async postDashboard(){this.loading=!0;let e={dashboard:{name:this.dashboard.name,default:this.dashboard.default,roles_id:this.dashboard.roles_id,components_attributes:this.dashboard.components.map((e=>{let t={...e};return t.id=null,t}))}};const t=this.url[this.engine]("dashboards");return this.http.post(t,e).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation")),this.loading=!1})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},fetchDashboard(e){this.loading=!0;const t=this.url[this.engine]("dashboards/:dashboardId",{dashboardId:e});return this.http.get(t).then((e=>{let t=e.components;this.dashboard=e,this.dashboard.components=[],t.forEach((e=>{e.component_id=e.component_id.replaceAll("_","-"),this.dashboard.components.push(e)})),this.loading=!1})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},async deleteDashboard(){this.loading=!0;const e=this.url[this.engine]("dashboards/:dashboardId",{dashboardId:this.dashboard.id});return this.http.delete(e).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation")),this.loading=!1})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))}}}),vj={key:0,class:"columns is-multiline is-variable is-4 dashboard-components"},bj={__name:"show",props:{components:{type:Object,require:!1,default:{}}},setup(e){const t=mj(),n=e;return nr((()=>{t.setEngine(lesli.engine),t.getDashboard()})),(e,i)=>{const r=Qn("lesli-button"),s=Qn("lesli-header"),a=Qn("lesli-empty"),o=Qn("lesli-application-container");return Us(),Qs(o,null,{default:Xn((()=>[aa(s,{title:Gt(t).dashboard.name},{default:Xn((()=>[aa(r,{icon:"edit"})])),_:1},8,["title"]),Gt(t).dashboard.components?(Us(),Js("div",vj,[(Us(!0),Js(Ys,null,hr(Gt(t).dashboard.components,((e,t)=>(Us(),Js("div",{key:t,class:Z(["column","is-"+e?.layout])},[(Us(),Qs(ti(n.components[e.component_id]),{component:e},null,8,["component"]))],2)))),128))])):da("v-if",!0),!Gt(t).dashboard.components||Gt(t).dashboard.components.length<=0?(Us(),Qs(a,{key:1,text:"Empty dashboard"})):da("v-if",!0)])),_:1})}}},xj=bj,yj={class:"columns"},wj={class:"column is-4"},kj={class:"field"},Aj={class:"label"},Sj={class:"control"},Cj={class:"column is-4"},_j={class:"field"},Ej={class:"label"},Lj={class:"column is-4"},Tj={class:"field"},Dj={class:"label"},Pj={class:"control"},Mj={class:"buttons"},Oj={__name:"form",props:{isEditable:{type:Boolean,require:!1}},setup(e){const t=mj(),n=Nf(),i=Qr("url"),r=Qr("msg"),s=(Ff(),e),a={shared:{},dashboards:{},components:I18n.t("core.dashboard/components"),core:I18n.t("core.shared"),roles:I18n.t("core.roles"),main:I18n.t(`${t.engine}.dashboards`),main_components:I18n.t(`${t.engine}.dashboard/components`)},o={yes:{label:a.core.view_text_yes,value:!0},no:{label:a.core.view_text_no,value:!1}};function l(){r.warning(a.dashboards.messages_warning_save_changes_reminder);let e={name:"",component_id:t.new_component_id.replaceAll("_","-"),layout:t.default_component_configuration.layout,index:t.default_component_configuration.index++,query_configuration:{filters:{},pagination:{}},custom_configuration:{arrangement:{}}};t.dashboard.components.push(e)}return nr((()=>{s.isEditable||t.resetDashboard()})),(r,s)=>{const c=Qn("lesli-select"),u=Qn("lesli-button"),h=Qn("lesli-form");return Us(),Qs(h,{class:"mb-6",onSubmit:s[3]||(s[3]=r=>e.isEditable?void t.updateDashboard():void t.postDashboard().then((()=>{n.push(i[t.engine]("dashboards").s)})))},{default:Xn((()=>[sa("div",yj,[da(" Name "),sa("div",wj,[sa("div",kj,[sa("label",Aj,le(a.dashboards.column_name),1),sa("div",Sj,[Si(sa("input",{class:"input",type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>Gt(t).dashboard.name=e),required:""},null,512),[[hl,Gt(t).dashboard.name]])])])]),da(" Default "),sa("div",Cj,[sa("div",_j,[sa("label",Ej,le(a.dashboards.column_default),1),aa(c,{modelValue:Gt(t).dashboard.default,"onUpdate:modelValue":s[1]||(s[1]=e=>Gt(t).dashboard.default=e),options:o},null,8,["modelValue"])])]),da(" Components "),sa("div",Lj,[sa("div",Tj,[sa("label",Dj,le(a.dashboards.view_add_component),1),sa("div",Pj,[aa(c,{modelValue:Gt(t).new_component_id,"onUpdate:modelValue":s[2]||(s[2]=e=>Gt(t).new_component_id=e),options:Gt(t).options.component_ids,onChange:l},null,8,["modelValue","options"])])])])]),da(" Save button "),sa("div",Mj,[aa(u,{icon:"save",loading:Gt(t).loading},{default:Xn((()=>[ua(le(a.shared.button_save),1)])),_:1},8,["loading"]),da('\n <lesli-button danger icon="delete" @click="onDeleteDashboard">\n {{ translations.dashboards.view_btn_delete_dashboard }}\n </lesli-button>\n ')])])),_:1})}}},Rj={key:0,class:"columns is-multiline is-variable is-4 dashboard-components"},Ij={class:"edit"},Nj={class:"mt-4 mb-2"},Fj={class:"field has-addons is-justify-content-center"},Bj={class:"control"},zj=["onClick"],Yj=[sa("span",{class:"icon is-small"},[sa("span",{class:"material-icons"}," remove ")],-1)],jj=sa("p",{class:"control control-label has-text-centered"}," size ",-1),Hj={class:"control"},Wj=["onClick"],Xj=[sa("span",{class:"icon is-small"},[sa("span",{class:"material-icons"}," add ")],-1)],Vj={class:"field has-addons is-justify-content-center"},Uj={class:"control"},$j=["onClick"],Gj=[sa("span",{class:"icon is-small"},[sa("span",{class:"material-icons"}," chevron_left ")],-1)],qj=sa("p",{class:"control control-label has-text-centered px-4"}," position ",-1),Zj={class:"control"},Kj=["onClick"],Jj=[sa("span",{class:"icon is-small"},[sa("span",{class:"material-icons"}," chevron_right ")],-1)],Qj={class:"has-text-centered"},eH={__name:"edit",props:{components:{type:Object,require:!1,default:{}}},setup(e){const t=Ff(),n=(Nf(),Qr("url"),mj()),i=e,r={dashboards:{},main:I18n.t(`${i.engine}.dashboards`),core:I18n.t("core.shared")};function s(e){e.layout>=12||e.layout++}function a(e){e.layout<=3||e.layout--}return nr((()=>{n.setEngine(lesli.engine),n.getDashboard(t.params.id),n.getDashboardOptions()})),(e,t)=>{const o=Qn("lesli-button"),l=Qn("lesli-header"),c=Qn("lesli-application-container");return Us(),Qs(c,null,{default:Xn((()=>[aa(l,{title:Gt(n).dashboard.name},{default:Xn((()=>[aa(o,{icon:"list"},{default:Xn((()=>[ua(le(r.core.view_btn_list),1)])),_:1})])),_:1},8,["title"]),da(" Dashboard general configuration "),aa(Oj,{"is-editable":""}),da(" Dashboard components "),Gt(n).dashboard.components?(Us(),Js("div",Rj,[(Us(!0),Js(Ys,null,hr(Gt(n).dashboard.components,((e,t)=>(Us(),Js("div",{key:t,class:Z(["column","is-"+e?.layout])},[da(" Dashboard widget component when in edition mode "),sa("div",Ij,[da(" Dashboard widget preview "),(Us(),Qs(ti(i.components[e.component_id]),{component:e},null,8,["component"])),da(" Edition controls "),sa("div",Nj,[sa("div",Fj,[sa("p",Bj,[sa("button",{class:"button is-small",onClick:t=>a(e)},Yj,8,zj)]),jj,sa("p",Hj,[sa("button",{class:"button is-small",onClick:t=>s(e)},Xj,8,Wj)])]),sa("div",Vj,[sa("p",Uj,[sa("button",{class:"button is-small",onClick:t=>a(e)},Gj,8,$j)]),qj,sa("p",Zj,[sa("button",{class:"button is-small",onClick:t=>s(e)},Jj,8,Kj)])]),sa("div",Qj,[aa(o,{small:"",danger:"",icon:"delete",onClick:t=>{e._destroy=!0}},{default:Xn((()=>[ua(" remove ")])),_:2},1032,["onClick"])])])])],2)))),128))])):da("v-if",!0)])),_:1})}}};var tH=n(3935),nH={};nH.styleTagTransform=hF(),nH.setAttributes=oF(),nH.insert=sF().bind(null,"head"),nH.domAPI=iF(),nH.insertStyleElement=cF();tF()(tH.Z,nH);tH.Z&&tH.Z.locals&&tH.Z.locals;const iH=eH,rH=np("lesli.user",{state:()=>({options:{regions:[],locales:[],salutations:[],mfa_methods:[]},user:{roles_id:null,email:null,alias:null,first_name:null,last_name:null,telephone:null,detail_attributes:{salutation:null,title:null}},roles:[],sessions:{pagination:{},records:[]},options:{salutations:[],locales:[]}}),getters:{initials(){let e="";return this.user?.first_name&&(e+=this.user?.first_name[0]),this.user?.last_name&&(e+=this.user?.last_name[0]),e.toUpperCase()}},actions:{getOptions(){this.http.get(this.url.lesli("users/options")).then((e=>{this.options=e}))},getUser(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.url.security("profile");null!==e&&(t=this.url.security("users/:id",e)),this.http.get(t).then((e=>{this.user=e,this.user.password="",this.user.password_confirmation="",this.language=e.locale?e.locale.value:this.language,this.role_names=e.roles[0].name})).catch((e=>{console.log(e),this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))})).finally((()=>{this.loading=!1}))},putUser(){this.http.put(this.url.security("users/:id",this.user.id),{user:{active:this.user.active,alias:this.user.alias,first_name:this.user.first_name,last_name:this.user.last_name,telephone:this.user.telephone,detail_attributes:{title:this.user.detail_attributes.title,salutation:this.user.detail_attributes.salutation}}}).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},deleteUser(){this.dialog.confirmation({title:"Delete user",text:"Are you sure you want to delete user?",confirmText:"Yes",cancelText:"No"}).then((e=>{let{isConfirmed:t}=e;t&&this.http.delete(this.url.lesli("/users/:id",this.user.id)).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))}))},getRoles(){this.http.get(this.url.security("users/:id/roles",this.user.id)).then((e=>{this.roles=e})).catch((e=>{console.log(e)}))},postRole(e){this.http.post(this.url.security("users/:id/roles",this.user.id),{user_role:{id:e.id}}).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},deleteRole(e){this.http.delete(this.url.security("users/:user_id/roles/:role_id",{user_id:this.user.id,role_id:e.id})).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},doRequestPassword(){this.http.post(this.url.lesli("users/:id/requestpassword",this.user.id)).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},doPasswordReset(){this.http.post(this.url.lesli("users/:id/passwordreset",this.user.id)).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},doLogout(){this.http.post(this.url.lesli("users/:id/logout",this.user.id)).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},doRevokeAccess(){this.http.post(this.url.lesli("users/:id/revokeaccess",this.user.id)).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},fetchSessions(){!this.sessions.length>0&&this.getSessions()},getSessions(){this.http.get(this.url.security("users/:id/sessions",this.user.id)).then((e=>{this.sessions.pagination=e.pagination,this.sessions.records=e.records})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))})).finally((()=>{this.loading=!1}))},deleteSession(e){this.dialog.confirmation({title:"Close session",text:"Are you sure you want to close this session",confirmText:"Yes",cancelText:"No"}).then((t=>{let{isConfirmed:n}=t;n&&(this.http.delete(this.url.lesli("users/:id/sessions/:session_id",{id:this.user.id,session_id:e})).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))})),this.fetchSessions())}))},postLanguage(){this.http.post(this.url.lesli("users/:id/settings",this.user.id),{user_setting:{name:"locale",value:this.user.locale.value}}).then((e=>{this.msg.success(I18n.t("core.users.messages_success_operation"))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))},getOptions(){this.http.get(this.url.lesli("users/options")).then((e=>{this.options.salutations=e.salutations,this.options.locales=Object.keys(e.locales).map((t=>({label:e.locales[t],value:t})))})).catch((e=>{this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))}))}}}),sH={class:"user-information-card level"},aH={class:"level-left"},oH={class:"level-item"},lH={class:"level-item"},cH={class:"title is-size-5 mb-0"},uH={class:"level is-mobile"},hH={class:"level-left"},dH=["href"],pH=sa("span",{class:"icon is-small mr-2"},[sa("span",{class:"material-icons"}," email ")],-1),fH=["href"],gH=sa("span",{class:"icon is-small mr-2"},[sa("span",{class:"material-icons"}," phone ")],-1),mH={key:2,class:"level-item"},vH=sa("span",{class:"icon is-small mr-2"},[sa("span",{class:"material-icons"}," security ")],-1),bH={__name:"information-card",setup(e){const t=rH();i18n.t("lesli_security.users");return(e,n)=>{const i=Qn("lesli-avatar");return Us(),Js("div",sH,[sa("div",aH,[sa("div",oH,[aa(i,{name:""+Gt(t).user.full_name},null,8,["name"])]),sa("div",lH,[sa("div",null,[sa("h5",cH,le(Gt(t).user.first_name)+" "+le(Gt(t).user.last_name),1),sa("p",null,le(Gt(t).user.detail_attributes.title),1),sa("div",uH,[sa("div",hH,[Gt(t).user.email?(Us(),Js("a",{key:0,class:"level-item mr-4",href:"mailto:"+Gt(t).user.email},[pH,ua(" "+le(Gt(t).user.email),1)],8,dH)):da("v-if",!0),Gt(t).user.telephone?(Us(),Js("a",{key:1,class:"level-item mr-4",href:"tel:"+Gt(t).user.telephone},[gH,ua(" "+le(Gt(t).user.telephone),1)],8,fH)):da("v-if",!0),da(" Show the max role "),Gt(t).role_names?(Us(),Js("p",mH,[vH,ua(" "+le(Gt(t).role_names),1)])):da("v-if",!0)])])])])])])}}},xH={class:"field is-horizontal"},yH=sa("div",{class:"field-label is-normal"},null,-1),wH={class:"field-body"},kH={class:"field"},AH={class:"control"},SH={__name:"information-form",setup(e){const t=rH(),n=(Nf(),Ff(),Qr("url"),{guard:{users:i18n.t("lesli_security.users")},lesli:{shared:i18n.t("lesli.shared")},users:I18n.t("core.users"),shared:I18n.t("core.shared")});return(e,i)=>{const r=Qn("lesli-input"),s=Qn("lesli-button"),a=Qn("lesli-form");return Us(),Qs(a,{flat:"",onSubmit:i[6]||(i[6]=e=>Gt(t).putUser())},{default:Xn((()=>[aa(r,{horizontal:"",required:"",modelValue:Gt(t).user.email,"onUpdate:modelValue":i[0]||(i[0]=e=>Gt(t).user.email=e),label:n.guard.users.column_email},null,8,["modelValue","label"]),aa(r,{horizontal:"",required:"",modelValue:Gt(t).user.first_name,"onUpdate:modelValue":i[1]||(i[1]=e=>Gt(t).user.first_name=e),label:n.guard.users.column_first_name},null,8,["modelValue","label"]),aa(r,{horizontal:"",required:"",modelValue:Gt(t).user.last_name,"onUpdate:modelValue":i[2]||(i[2]=e=>Gt(t).user.last_name=e),label:n.guard.users.column_last_name},null,8,["modelValue","label"]),aa(r,{horizontal:"",required:"",modelValue:Gt(t).user.alias,"onUpdate:modelValue":i[3]||(i[3]=e=>Gt(t).user.alias=e),label:n.guard.users.column_alias},null,8,["modelValue","label"]),aa(r,{horizontal:"",required:"",modelValue:Gt(t).user.telephone,"onUpdate:modelValue":i[4]||(i[4]=e=>Gt(t).user.telephone=e),label:n.guard.users.column_telephone},null,8,["modelValue","label"]),aa(r,{horizontal:"",required:"",modelValue:Gt(t).user.detail_attributes.title,"onUpdate:modelValue":i[5]||(i[5]=e=>Gt(t).user.detail_attributes.title=e),label:n.guard.users.column_title},null,8,["modelValue","label"]),sa("div",xH,[yH,sa("div",wH,[sa("div",kH,[sa("div",AH,[aa(s,{icon:"save"},{default:Xn((()=>[ua(le(n.lesli.shared.button_save),1)])),_:1})])])])])])),_:1})}}},CH=np("guard.roles",{state:()=>({loading:!1,pagination:{},records:[]}),actions:{get(){this.loading=!0,this.http.get(this.url.security("roles")).then((e=>{this.records=e})).catch((e=>{console.log(e)})).finally((()=>{this.loading=!1}))}}}),_H={class:"media px-6"},EH={class:"media-content pt-4"},LH={style:{color:"#aaa"}},TH={class:"media-right pt-4"},DH={__name:"management-roles",setup(e){const t=rH();CH(),I18n.t("core.shared"),I18n.t("core.users/passwords"),I18n.t("core.users");return nr((()=>{t.getRoles()})),(e,n)=>{const i=Qn("lesli-toggle"),r=Qn("lesli-empty");return Us(),Js(Ys,null,[(Us(!0),Js(Ys,null,hr(Gt(t).roles,(e=>(Us(),Js("div",_H,[sa("div",EH,[sa("h4",null,le(e.name),1),sa("p",LH,le(e.description),1)]),sa("div",TH,[aa(i,{modelValue:e.active,"onUpdate:modelValue":t=>e.active=t,onChange:n=>function(e){e.active?t.postRole(e):t.deleteRole(e)}(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])])])))),256)),0==Gt(t).roles.length?(Us(),Qs(r,{key:0})):da("v-if",!0),da('\n <div class="roles-types">\n <div \n class="card roles-types-item p-4 is-flex is-flex-direction-column is-justify-content-space-between is-clickable" \n v-for="role in storeUser.options.roles"\n :key="role">\n <div class="role-type-title">\n <span class="has-text-weight-semibold is-size-5 ">\n {{ role.name }}\n </span>\n </div>\n <div>\n <span>Permission level: {{ role.object_level_permission }} </span>\n </div>\n <div class="is-flex is-justify-content-space-between is-align-items-center">\n <lesli-toggle v-model="storeUser.rolesToggle[role.id]" v-on:update:modelValue="updateRole(role,storeUser.rolesToggle[role.id])" ></lesli-toggle>\n </div>\n </div>\n </div>\n ')],64)}}},PH={__name:"management-sessions",setup(e){const t=rH(),n=(Ff(),{users:I18n.t("core.users"),shared:i18n.t("lesli.shared")}),i=[{field:"id",label:"ID"},{field:"device",label:"Device"},{field:"session_source",label:"Source"},{field:"created_at_string",label:"Created at"},{field:"expiration_at_string",label:"Expiration at"}];return nr((()=>{t.fetchSessions()})),(e,r)=>{const s=Qn("lesli-button"),a=Qn("lesli-toolbar"),o=Qn("lesli-table");return Us(),Js(Ys,null,[aa(a,null,{default:Xn((()=>[aa(s,{icon:"refresh"},{default:Xn((()=>[ua(" Reload ")])),_:1})])),_:1}),aa(o,{columns:i,records:Gt(t).sessions.records},{buttons:Xn((e=>{let{record:i,value:r}=e;return[aa(s,{small:"",danger:"",icon:"delete",onClick:e=>Gt(t).deleteSession(i.id)},{default:Xn((()=>[ua(le(n.shared.button_delete),1)])),_:2},1032,["onClick"])]})),_:1},8,["records"])],64)}}},MH={class:"field is-horizontal"},OH=sa("div",{class:"field-label"},[sa("label",{class:"label"},"Select preferred language ")],-1),RH={class:"field-body"},IH={class:"field is-narrow"},NH={class:"control"},FH={class:"select"},BH={class:"field is-horizontal"},zH=sa("div",{class:"field-label is-normal"},null,-1),YH={class:"field-body"},jH={class:"field"},HH={class:"control"},WH={__name:"management-settings",setup(e){const t=rH(),n={users:I18n.t("core.users"),shared:i18n.t("lesli.shared")};return nr((()=>{})),(e,i)=>{const r=Qn("lesli-select"),s=Qn("lesli-button"),a=Qn("lesli-form");return Us(),Qs(a,{flat:"",onSubmit:Gt(t).postLanguage},{default:Xn((()=>[sa("div",MH,[OH,sa("div",RH,[sa("div",IH,[sa("div",NH,[sa("div",FH,[aa(r,{icon:"language",modelValue:Gt(t).user.locale.value,"onUpdate:modelValue":i[0]||(i[0]=e=>Gt(t).user.locale.value=e),options:Gt(t).options.locales},null,8,["modelValue","options"])])])])])]),sa("div",BH,[zH,sa("div",YH,[sa("div",jH,[sa("div",HH,[aa(s,{icon:"save"},{default:Xn((()=>[ua(le(n.shared.button_save),1)])),_:1})])])])])])),_:1},8,["onSubmit"])}}},XH=e=>(jn("data-v-6724d9c5"),e=e(),Hn(),e),VH={class:"mb-4"},UH=XH((()=>sa("legend",null,"Force the user to change the password",-1))),$H={class:"mb-4"},GH=XH((()=>sa("legend",null,"Generate a new password for the user",-1))),qH={class:"mb-4"},ZH=XH((()=>sa("legend",null,"Close all the active sessions of the user",-1))),KH={class:"mb-4"},JH=XH((()=>sa("legend",null,"Remove all user access",-1))),QH=XH((()=>sa("br",null,null,-1))),eW=XH((()=>sa("br",null,null,-1))),tW={class:"mb-4"},nW=XH((()=>sa("legend",null,"Delete user forever",-1))),iW={__name:"management-security",setup(e){const t=rH(),n={users:I18n.t("core.users"),shared:I18n.t("core.shared")};return(e,i)=>{const r=Qn("lesli-button");return Us(),Js("div",null,[sa("fieldset",VH,[UH,aa(r,{icon:"lock_reset",onClick:Gt(t).doRequestPassword},{default:Xn((()=>[ua(le(n.users.view_btn_request_password||"Request password"),1)])),_:1},8,["onClick"])]),sa("fieldset",$H,[GH,aa(r,{icon:"key",onClick:Gt(t).doPasswordReset},{default:Xn((()=>[ua(le(n.users.view_btn_password_reset||"Password reset"),1)])),_:1},8,["onClick"])]),sa("fieldset",qH,[ZH,aa(r,{icon:"logout",onClick:Gt(t).doLogout},{default:Xn((()=>[ua(le(n.users.view_btn_logout),1)])),_:1},8,["onClick"])]),sa("fieldset",KH,[JH,aa(r,{danger:"",icon:"lock_outline",onClick:Gt(t).doRevokeAccess},{default:Xn((()=>[ua(le(n.users.view_btn_revoke_access),1)])),_:1},8,["onClick"])]),QH,eW,sa("fieldset",tW,[nW,aa(r,{danger:"",icon:"delete_forever",onClick:Gt(t).deleteUser},{default:Xn((()=>[ua(le(n.users.view_btn_delete_user),1)])),_:1},8,["onClick"])])])}}};var rW=n(5099),sW={};sW.styleTagTransform=hF(),sW.setAttributes=oF(),sW.insert=sF().bind(null,"head"),sW.domAPI=iF(),sW.insertStyleElement=cF();tF()(rW.Z,sW);rW.Z&&rW.Z.locals&&rW.Z.locals;const aW=(0,n(3744).Z)(iW,[["__scopeId","data-v-6724d9c5"]]),oW={__name:"show",setup(e){const t=rH(),n=(Nf(),Ff()),i={guard:{users:i18n.t("lesli_security.users")},core:{roles:I18n.t("core.roles"),users:I18n.t("core.users"),shared:I18n.t("core.shared")}},r=Wt(0);return nr((()=>{n.params?.id?t.getUser(n.params?.id):t.getUser(lesli.current_user.id)})),(e,t)=>{const n=Qn("lesli-tab-item"),s=Qn("lesli-tabs"),a=Qn("lesli-application-container");return Us(),Js(Ys,null,[aa(a,null,{default:Xn((()=>[aa(bH),aa(s,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},{default:Xn((()=>[aa(n,{icon:"info_outline",title:i.guard.users.tab_information},{default:Xn((()=>[aa(SH)])),_:1},8,["title"]),aa(n,{icon:"security",title:i.guard.users.tab_roles_and_privileges},{default:Xn((()=>[aa(DH)])),_:1},8,["title"]),aa(n,{icon:"lock_outline",title:i.guard.users.tab_security},{default:Xn((()=>[aa(aW)])),_:1},8,["title"]),aa(n,{icon:"devices",title:i.guard.users.tab_sessions},{default:Xn((()=>[aa(PH)])),_:1},8,["title"]),aa(n,{icon:"settings",title:i.guard.users.tab_settings},{default:Xn((()=>[aa(WH)])),_:1},8,["title"])])),_:1},8,["modelValue"])])),_:1}),da('\n <application-component>\n <information-card></information-card>\n <lesli-tabs v-model="tab" v-if="storeUser.user.id">\n <lesli-tab-item icon="info_outline" :title="translations.core.users.view_tab_title_information">\n <information-form></information-form>\n </lesli-tab-item>\n \n <lesli-tab-item icon="lock_outline" :title="translations.core.users.view_tab_title_security || \'Security\'">\n <management-security></management-security>\n </lesli-tab-item>\n <lesli-tab-item icon="devices" :title="translations.core.users.view_tab_title_session || \'Sessions\'" paddingless>\n <management-session></management-session>\n </lesli-tab-item>\n <lesli-tab-item icon="settings" :title="translations.core.users.view_tab_title_settings">\n <management-settings></management-settings>\n </lesli-tab-item>\n </lesli-tabs>\n </application-component>\n ')],2112)}}},lW={class:"title is-6 mb-2"},cW={class:"p-0 m-0"},uW={class:"p-0 m-0"},hW={class:"p-0 m-0"},dW={components:{"admin-lesli-version":{__name:"lesli-version",setup(e){const t=Qr("url"),n=Qr("http"),i=Wt({name:"",code:"",path:"",version:"",build:""});return nr((()=>{n.get(t.lesli("about")).then((e=>{i.value=e.find((e=>"Lesli"==e.name))})).catch((e=>{console.log(e)}))})),(e,t)=>{const n=Qn("lesli-card");return Us(),Qs(n,null,{default:Xn((()=>[sa("h6",lW,le(i.value.name),1),sa("p",cW,"version: "+le(i.value.version),1),sa("p",uW,"buid: "+le(i.value.build),1),sa("p",hW,"path: "+le(i.value.path),1)])),_:1})}}}}};(e=>{const t=new VY(e);t.locale="en",window.i18n=t})(UY),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];let n={};n.components={"lesli-application-header":gv,"lesli-application-engines":xv,"application-panel-support-tickets":_k,"application-panel-bell-notifications":Wk};const i=function(){const e=fe(!0),t=e.run((()=>Wt({})));let n=[],i=[];const r=It({install(e){Rd(r),r._a=e,e.provide(Id,r),e.config.globalProperties.$pinia=r,i.forEach((e=>n.push(e))),i=[]},use(e){return this._a?n.push(e):i.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}();i.use((()=>({msg:Mm()}))),i.use((()=>({url:Rm(Lesli)}))),i.use((()=>({http:Bm()}))),i.use((()=>({date:Nm()}))),i.use((()=>({utils:{initials:function(...e){return e.map((e=>e[0])).join("").toUpperCase()},singularize:function(e){return e.match(/^[0-9]+$/)?e:e.endsWith("ies")?e.slice(0,-3).concat("y"):e.endsWith("s")?e.slice(0,-1):e}}}))),i.use((()=>({dialog:{}})));const r=If({history:Up("/"),routes:t.map((t=>(t.path="/".concat(lesli.engine_paths[e]).concat(t.path),t)))});r.afterEach(((e,t)=>{An((()=>{document.title=`${lesli?.company?.name} · ${e.path.substring(1)||"Dashboard"}`,document.body.className=lesli?.instance;var t=e.path.substring(1).split("/").filter((e=>""!=e)).slice(0,2).join("-");t&&document.body.classList.add("lesli-".concat(t))}))}));const s=Rl(n);s.provide("msg",Mm()),s.provide("url",Rm()),s.provide("http",Bm()),s.provide("date",Nm()()),s.provide("utils",{initials:function(...e){return e.map((e=>e[0])).join("").toUpperCase()},singularize:function(e){return e.match(/^[0-9]+$/)?e:e.endsWith("ies")?e.slice(0,-3).concat("y"):e.endsWith("s")?e.slice(0,-1):e}}),s.provide("dialog",{}),s.use(i),s.use(r),s.component("lesli-application-container",yv),s.component("lesli-application-component",kv),s.component("lesli-avatar",gF),s.component("lesli-empty",nB),s.component("lesli-header",oB),s.component("lesli-select",eB),s.component("lesli-toolbar",Sz),s.component("lesli-loading",uB),s.component("lesli-table",iz),s.component("lesli-column",DF),s.component("lesli-columns",MF),s.component("lesli-card",LF),s.component("lesli-control",UF),s.component("lesli-input",WF),s.component("lesli-tabs",uz),s.component("lesli-tab-item",hz),s.component("lesli-panel",TB),s.component("lesli-button",bF),s.component("lesli-calendar",kF),s.component("lesli-navbar",mB),s.component("lesli-toggle",bz),s.component("lesli-pagination",SB),s.component("lesli-form",IF),s.component("lesli-link",lB),document.addEventListener("DOMContentLoaded",(()=>{s.mount("#lesli-application"),console.clear(),Cz.lesli_message_warning(lesli?.company?.name),Cz.info("Lesli application","241013.2148")}))}("LesliAdmin",[{path:"/",component:xj,props:dW},{path:"/dashboard",component:xj,props:dW},{path:"/dashboards/:id/edit",component:iH,props:dW},{path:"/account",component:lj},{path:"/about",component:gj},{path:"/profile",component:oW}])})()})();
1
+ /*
2
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
+ * This devtool is neither made for production nor for readable output files.
4
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
5
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
+ * or disable the default devtool with "devtool: false".
7
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
+ */
9
+ /******/ (() => { // webpackBootstrap
10
+ /******/ "use strict";
11
+ /******/
12
+ /******/
13
+ /******/ })()
14
+ ;