0?Math.min(o,i-n):o,n=i;return o}(n,l):-1,pixels:l,start:o,end:s,stackCount:i,scale:n}},calculateBarValuePixels:function(t,e){var n,i,r,a,o,s,l=this.chart,u=this.getMeta(),c=this._getValueScale(),h=c.isHorizontal(),d=l.data.datasets,f=+c.getRightValue(d[t].data[e]),p=c.options.minBarLength,v=c.options.stacked,g=u.stack,m=0;if(v||void 0===v&&void 0!==g)for(n=0;n=0&&r>0)&&(m+=r));return a=c.getPixelForValue(m),o=c.getPixelForValue(m+f),s=o-a,void 0!==p&&Math.abs(s)=0&&!h||f<0&&h?a-p:a+p),{size:s,base:a,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,n){var i=n.scale.options,r="flex"===i.barThickness?function(t,e,n){var i,r=e.pixels,a=r[t],o=t>0?r[t-1]:null,s=t');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),a=e.datasets[0],o=r.data[i],s=o&&o.custom||{},l=t.options.elements.arc,u=Kt([s.backgroundColor,a.backgroundColor,l.backgroundColor],void 0,i),c=Kt([s.borderColor,a.borderColor,l.borderColor],void 0,i),h=Kt([s.borderWidth,a.borderWidth,l.borderWidth],void 0,i);return{text:n,fillStyle:u,strokeStyle:c,lineWidth:h,hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n=Math.PI?-1:g<-Math.PI?1:0))+p,y={x:Math.cos(g),y:Math.sin(g)},b={x:Math.cos(m),y:Math.sin(m)},x=g<=0&&m>=0||g<=2*Math.PI&&2*Math.PI<=m,_=g<=.5*Math.PI&&.5*Math.PI<=m||g<=2.5*Math.PI&&2.5*Math.PI<=m,w=g<=-Math.PI&&-Math.PI<=m||g<=Math.PI&&Math.PI<=m,k=g<=.5*-Math.PI&&.5*-Math.PI<=m||g<=1.5*Math.PI&&1.5*Math.PI<=m,C=f/100,S={x:w?-1:Math.min(y.x*(y.x<0?1:C),b.x*(b.x<0?1:C)),y:k?-1:Math.min(y.y*(y.y<0?1:C),b.y*(b.y<0?1:C))},I={x:x?1:Math.max(y.x*(y.x>0?1:C),b.x*(b.x>0?1:C)),y:_?1:Math.max(y.y*(y.y>0?1:C),b.y*(b.y>0?1:C))},A={width:.5*(I.x-S.x),height:.5*(I.y-S.y)};u=Math.min(s/A.width,l/A.height),c={x:-.5*(I.x+S.x),y:-.5*(I.y+S.y)}}for(e=0,n=d.length;e0&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,r,a,o,s,l,u=0,c=this.chart;if(!t)for(e=0,n=c.data.datasets.length;e(u=s>u?s:u)?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,i=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Gt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Gt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Gt(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(t,e){var n,i,r,a=this.chart,o=this.getDataset(),s=t.custom||{},l=a.options.elements.arc,u={},c={chart:a,dataIndex:e,dataset:o,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,i=h.length;n0&&ee(l[t-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),t');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),a=e.datasets[0],o=r.data[i],s=o.custom||{},l=t.options.elements.arc,u=re([s.backgroundColor,a.backgroundColor,l.backgroundColor],void 0,i),c=re([s.borderColor,a.borderColor,l.borderColor],void 0,i),h=re([s.borderWidth,a.borderWidth,l.borderWidth],void 0,i);return{text:n,fillStyle:u,strokeStyle:c,lineWidth:h,hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n0&&(a=t.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(t,e){return ge(t,e,{intersect:!1})},point:function(t,e){var n=he(e,t);return fe(t,n)},nearest:function(t,e,n){var i=he(e,t);n.axis=n.axis||"xy";var r=ve(n.axis);return pe(t,i,n.intersect,r)},x:function(t,e,n){var i=he(e,t),r=[],a=!1;return de(t,function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(a=!0)}),n.intersect&&!a&&(r=[]),r},y:function(t,e,n){var i=he(e,t),r=[],a=!1;return de(t,function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(a=!0)}),n.intersect&&!a&&(r=[]),r}}};function ye(t,e){return ct.where(t,function(t){return t.position===e})}function be(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight}),t.forEach(function(t){delete t._tmpIndex_})}function xe(t,e){ct.each(t,function(t){e[t.position]+=t.isHorizontal()?t.height:t.width})}st._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var _e,we={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,r=["fullWidth","position","weight"],a=r.length,o=0;o div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&_e.default||_e,Ce="$chartjs",Se="chartjs-size-monitor",Ie="chartjs-render-monitor",Ae="chartjs-render-animation",Me=["animationstart","webkitAnimationStart"],Te={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Oe(t,e){var n=ct.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var Pe=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function $e(t,e,n){t.addEventListener(e,n,Pe)}function De(t,e,n){t.removeEventListener(e,n,Pe)}function Le(t,e,n,i,r){return{type:t,chart:e,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function Be(t){var e=document.createElement("div");return e.className=t||"",e}function Ee(t,e,n){var i,r,a,o,s=t[Ce]||(t[Ce]={}),l=s.resizer=function(t){var e=Be(Se),n=Be(Se+"-expand"),i=Be(Se+"-shrink");n.appendChild(Be()),i.appendChild(Be()),e.appendChild(n),e.appendChild(i),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var r=function(){e._reset(),t()};return $e(n,"scroll",r.bind(n,"expand")),$e(i,"scroll",r.bind(i,"shrink")),e}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,r=i?i.clientWidth:0;e(Le("resize",n)),i&&i.clientWidth0){var a=t[0];a.label?n=a.label:a.xLabel?n=a.xLabel:r>0&&a.index-1?t.split("\n"):t}function Ye(t){var e=st.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:We(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:We(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:We(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:We(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:We(t.titleFontStyle,e.defaultFontStyle),titleFontSize:We(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:We(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:We(t.footerFontStyle,e.defaultFontStyle),footerFontSize:We(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Xe(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Ke(t){return qe([],Ue(t))}var Ge=vt.extend({initialize:function(){this._model=Ye(this._options),this._lastActive=[]},getTitle:function(){var t=this._options,e=t.callbacks,n=e.beforeTitle.apply(this,arguments),i=e.title.apply(this,arguments),r=e.afterTitle.apply(this,arguments),a=[];return a=qe(a,Ue(n)),a=qe(a,Ue(i)),a=qe(a,Ue(r))},getBeforeBody:function(){return Ke(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,i=n._options.callbacks,r=[];return ct.each(t,function(t){var a={before:[],lines:[],after:[]};qe(a.before,Ue(i.beforeLabel.call(n,t,e))),qe(a.lines,i.label.call(n,t,e)),qe(a.after,Ue(i.afterLabel.call(n,t,e))),r.push(a)}),r},getAfterBody:function(){return Ke(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),i=t.afterFooter.apply(this,arguments),r=[];return r=qe(r,Ue(e)),r=qe(r,Ue(n)),r=qe(r,Ue(i))},update:function(t){var e,n,i,r,a,o,s,l,u,c,h=this,d=h._options,f=h._model,p=h._model=Ye(d),v=h._active,g=h._data,m={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},b={width:f.width,height:f.height},x={x:f.caretX,y:f.caretY};if(v.length){p.opacity=1;var _=[],w=[];x=He[d.position].call(h,v,h._eventPosition);var k=[];for(e=0,n=v.length;el.height-e.height&&(h="bottom");var d=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===h?(n=function(t){return t<=d},i=function(t){return t>d}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),r=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},a=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(c="left",r(s.x)&&(c="center",h=o(s.y))):i(s.x)&&(c="right",a(s.x)&&(c="center",h=o(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:h}}(this,b),y=function(t,e,n,i){var r=t.x,a=t.y,o=t.caretSize,s=t.caretPadding,l=t.cornerRadius,u=n.xAlign,c=n.yAlign,h=o+s,d=l+s;return"right"===u?r-=e.width:"center"===u&&((r-=e.width/2)+e.width>i.width&&(r=i.width-e.width),r<0&&(r=0)),"top"===c?a+=h:a-="bottom"===c?e.height+h:e.height/2,"center"===c?"left"===u?r+=h:"right"===u&&(r-=h):"left"===u?r-=d:"right"===u&&(r+=d),{x:r,y:a}}(p,b,m,h._chart)}else p.opacity=0;return p.xAlign=m.xAlign,p.yAlign=m.yAlign,p.x=y.x,p.y=y.y,p.width=b.width,p.height=b.height,p.caretX=x.x,p.caretY=x.y,h._model=p,t&&d.custom&&d.custom.call(h,p),h},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(t,e,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(t,e,n){var i,r,a,o,s,l,u=n.caretSize,c=n.cornerRadius,h=n.xAlign,d=n.yAlign,f=t.x,p=t.y,v=e.width,g=e.height;if("center"===d)s=p+g/2,"left"===h?(r=(i=f)-u,a=i,o=s+u,l=s-u):(r=(i=f+v)+u,a=i,o=s-u,l=s+u);else if("left"===h?(i=(r=f+c+u)-u,a=r+u):"right"===h?(i=(r=f+v-c-u)-u,a=r+u):(r=n.caretX,i=r-u,a=r+u),"top"===d)s=(o=p)-u,l=o;else{s=(o=p+g)+u,l=o;var m=a;a=i,i=m}return{x1:i,x2:r,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(t,e,n){var i=e.title;if(i.length){t.x=Xe(e,e._titleAlign),n.textAlign=e._titleAlign,n.textBaseline="top";var r,a,o=e.titleFontSize,s=e.titleSpacing;for(n.fillStyle=e.titleFontColor,n.font=ct.fontString(o,e._titleFontStyle,e._titleFontFamily),r=0,a=i.length;r0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(i,e,t,n),i.y+=e.yPadding,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),t.restore())}},handleEvent:function(t){var e=this,n=e._options,i=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),(i=!ct.arrayEquals(e._active,e._lastActive))&&(e._lastActive=e._active,(n.enabled||n.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),i}}),Ze=He,Qe=Ge;Qe.positioners=Ze;var Je=ct.valueOrDefault;function tn(){return ct.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var r,a,o,s=n[t].length;for(e[t]||(e[t]=[]),r=0;r=e[t].length&&e[t].push({}),!e[t][r].type||o.type&&o.type!==e[t][r].type?ct.merge(e[t][r],[je.getScaleDefaults(a),o]):ct.merge(e[t][r],o)}else ct._merger(t,e,n,i)}})}function en(){return ct.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){var r=e[t]||{},a=n[t];"scales"===t?e[t]=tn(r,a):"scale"===t?e[t]=ct.merge(r,[je.getScaleDefaults(a.type),a]):ct._merger(t,e,n,i)}})}function nn(t){return"top"===t||"bottom"===t}st._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var rn=function(t,e){return this.construct(t,e),this};ct.extend(rn.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=en(st.global,st[t.type],t.options||{}),t}(e);var i=Re.acquireContext(t,e),r=i&&i.canvas,a=r&&r.height,o=r&&r.width;n.id=ct.uid(),n.ctx=i,n.canvas=r,n.config=e,n.width=o,n.height=a,n.aspectRatio=a?o/a:null,n.options=e.options,n._bufferedRender=!1,n.chart=n,n.controller=n,rn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return ze.notify(t,"beforeInit"),ct.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),ze.notify(t,"afterInit"),t},clear:function(){return ct.canvas.clear(this),this},stop:function(){return yt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(ct.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?a/r:ct.getMaximumHeight(i)));if((e.width!==a||e.height!==o)&&(i.width=e.width=a,i.height=e.height=o,i.style.width=a+"px",i.style.height=o+"px",ct.retinaScale(e,n.devicePixelRatio),!t)){var s={width:a,height:o};ze.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;ct.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),ct.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},i=[],r=Object.keys(n).reduce(function(t,e){return t[e]=!1,t},{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ct.each(i,function(e){var i=e.options,a=i.id,o=Je(i.type,e.dtype);nn(i.position)!==nn(e.dposition)&&(i.position=e.dposition),r[a]=!0;var s=null;if(a in n&&n[a].type===o)(s=n[a]).options=i,s.ctx=t.ctx,s.chart=t;else{var l=je.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:i,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)}),ct.each(r,function(t,e){t||delete n[e]}),t.scales=n,je.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,e=[];return ct.each(t.data.datasets,function(n,i){var r=t.getDatasetMeta(i),a=n.type||t.config.type;if(r.type&&r.type!==a&&(t.destroyDatasetMeta(i),r=t.getDatasetMeta(i)),r.type=a,r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{var o=ce[r.type];if(void 0===o)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new o(t,i),e.push(r.controller)}},t),e},resetElements:function(){var t=this;ct.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,ct.each(e.scales,function(t){we.removeBox(e,t)}),n=en(st.global,st[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),ze._invalidate(i),!1!==ze.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var r=i.buildOrUpdateControllers();ct.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&ct.each(r,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],ze.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){!1!==ze.notify(this,"beforeLayout")&&(we.update(this,this.width,this.height),ze.notify(this,"afterScaleUpdate"),ze.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==ze.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);ze.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),i={meta:n,index:t,easingValue:e};!1!==ze.notify(this,"beforeDatasetDraw",[i])&&(n.controller.draw(e),ze.notify(this,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==ze.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),ze.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return me.modes.single(this,t)},getElementsAtEvent:function(t){return me.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return me.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=me.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return me.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var r=ct.log10(Math.abs(i)),a="";if(0!==t){var o=Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]));if(o<1e-4){var s=ct.log10(Math.abs(t));a=t.toExponential(Math.floor(s)-Math.floor(r))}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),a=t.toFixed(l)}}else a="0";return a},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(ct.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===n.length-1?t.toExponential():""}}},cn=ct.valueOrDefault,hn=ct.valueAtIndexOrDefault;function dn(t){var e,n,i=[];for(e=0,n=t.length;eu&&at.maxHeight){a--;break}a++,l=o*s}t.labelRotation=a},afterCalculateTickRotation:function(){ct.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ct.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=dn(t._ticks),i=t.options,r=i.ticks,a=i.scaleLabel,o=i.gridLines,s=t._isVisible(),l=i.position,u=t.isHorizontal(),c=ct.options._parseFont,h=c(r),d=i.gridLines.tickMarkLength;if(e.width=u?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&o.drawTicks?d:0,e.height=u?s&&o.drawTicks?d:0:t.maxHeight,a.display&&s){var f=c(a),p=ct.options.toPadding(a.padding),v=f.lineHeight+p.height;u?e.height+=v:e.width+=v}if(r.display&&s){var g=ct.longestText(t.ctx,h.string,n,t.longestTextCache),m=ct.numberOfLabelLines(n),y=.5*h.size,b=t.options.ticks.padding;if(t._maxLabelLines=m,t.longestLabelWidth=g,u){var x=ct.toRadians(t.labelRotation),_=Math.cos(x),w=Math.sin(x),k=w*g+h.lineHeight*m+y;e.height=Math.min(t.maxHeight,e.height+k+b),t.ctx.font=h.string;var C,S,I=fn(t.ctx,n[0],h.string),A=fn(t.ctx,n[n.length-1],h.string),M=t.getPixelForTick(0)-t.left,T=t.right-t.getPixelForTick(n.length-1);0!==t.labelRotation?(C="bottom"===l?_*I:_*y,S="bottom"===l?_*y:_*A):(C=I/2,S=A/2),t.paddingLeft=Math.max(C-M,0)+3,t.paddingRight=Math.max(S-T,0)+3}else r.mirror?g=0:g+=b+y,e.width=Math.min(t.maxWidth,e.width+g),t.paddingTop=h.size/2,t.paddingBottom=h.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){ct.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(ct.isNullOrUndef(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:ct.noop,getPixelForValue:ct.noop,getValueForPixel:ct.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),r=i/Math.max(e._ticks.length-(n?0:1),1),a=r*t+e.paddingLeft;n&&(a+=r/2);var o=e.left+a;return o+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),i=n*t+e.paddingLeft,r=e.left+i;return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,i=this,r=i.isHorizontal(),a=i.options.ticks.minor,o=t.length,s=!1,l=a.maxTicksLimit,u=i._tickSize()*(o-1),c=r?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.PaddingBottom),h=[];for(u>c&&(s=1+Math.floor(u/c)),o>l&&(s=Math.max(s,1+Math.floor(o/l))),e=0;e1&&e%s>0&&delete n.label,h.push(n);return h},_tickSize:function(){var t=this,e=t.isHorizontal(),n=t.options.ticks.minor,i=ct.toRadians(t.labelRotation),r=Math.abs(Math.cos(i)),a=Math.abs(Math.sin(i)),o=n.autoSkipPadding||0,s=t.longestLabelWidth+o||0,l=ct.options._parseFont(n),u=t._maxLabelLines*l.lineHeight+o||0;return e?u*r>s*a?s/r:u/a:u*a0&&r>0&&(t.min=0)}var a=void 0!==n.min||void 0!==n.suggestedMin,o=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(null===t.min?t.min=n.suggestedMin:t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(null===t.max?t.max=n.suggestedMax:t.max=Math.max(t.max,n.suggestedMax)),a!==o&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,i=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:mn,buildTicks:function(){var t=this,e=t.options,n=e.ticks,i=t.getTickLimit(),r={maxTicks:i=Math.max(2,i),min:n.min,max:n.max,precision:n.precision,stepSize:ct.valueOrDefault(n.fixedStepSize,n.stepSize)},a=t.ticks=function(t,e){var n,i,r,a,o=[],s=t.stepSize,l=s||1,u=t.maxTicks-1,c=t.min,h=t.max,d=t.precision,f=e.min,p=e.max,v=ct.niceNum((p-f)/u/l)*l;if(v<1e-14&&yn(c)&&yn(h))return[f,p];(a=Math.ceil(p/v)-Math.floor(f/v))>u&&(v=ct.niceNum(a*v/u/l)*l),s||yn(d)?n=Math.pow(10,ct._decimalPlaces(v)):(n=Math.pow(10,d),v=Math.ceil(v*n)/n),i=Math.floor(f/v)*v,r=Math.ceil(p/v)*v,s&&(!yn(c)&&ct.almostWhole(c/v,v/1e3)&&(i=c),!yn(h)&&ct.almostWhole(h/v,v/1e3)&&(r=h)),a=(r-i)/v,a=ct.almostEquals(a,Math.round(a),v/1e3)?Math.round(a):Math.ceil(a),i=Math.round(i*n)/n,r=Math.round(r*n)/n,o.push(yn(c)?i:c);for(var g=1;gt.max&&(t.max=i))})});t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=ct.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this,n=e.start,i=+e.getRightValue(t),r=e.end-n;return e.isHorizontal()?e.left+e.width/r*(i-n):e.bottom-e.height/r*(i-n)},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,r=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}}),wn=xn;_n._defaults=wn;var kn=ct.valueOrDefault,Cn={position:"left",ticks:{callback:un.formatters.logarithmic}};function Sn(t,e){return ct.isFinite(t)&&t>=0?t:e}var In=pn.extend({determineDataLimits:function(){var t=this,e=t.options,n=t.chart,i=n.data,r=i.datasets,a=t.isHorizontal();function o(e){return a?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null,t.minNotZero=null;var s=e.stacked;if(void 0===s&&ct.each(r,function(t,e){if(!s){var i=n.getDatasetMeta(e);n.isDatasetVisible(e)&&o(i)&&void 0!==i.stack&&(s=!0)}}),e.stacked||s){var l={};ct.each(r,function(i,r){var a=n.getDatasetMeta(r),s=[a.type,void 0===e.stacked&&void 0===a.stack?r:"",a.stack].join(".");n.isDatasetVisible(r)&&o(a)&&(void 0===l[s]&&(l[s]=[]),ct.each(i.data,function(e,n){var i=l[s],r=+t.getRightValue(e);isNaN(r)||a.data[n].hidden||r<0||(i[n]=i[n]||0,i[n]+=r)}))}),ct.each(l,function(e){if(e.length>0){var n=ct.min(e),i=ct.max(e);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?i:Math.max(t.max,i)}})}else ct.each(r,function(e,i){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&o(r)&&ct.each(e.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||r.data[n].hidden||i<0||(null===t.min?t.min=i:it.max&&(t.max=i),0!==i&&(null===t.minNotZero||i0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(ct.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:Sn(e.min),max:Sn(e.max)},r=t.ticks=function(t,e){var n,i,r=[],a=kn(t.min,Math.pow(10,Math.floor(ct.log10(e.min)))),o=Math.floor(ct.log10(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===a?(n=Math.floor(ct.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),r.push(a),a=i*Math.pow(10,n)):(n=Math.floor(ct.log10(a)),i=Math.floor(a/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(a),10==++i&&(i=1,l=++n>=0?1:l),a=Math.round(i*Math.pow(10,n)*l)/l}while(nr?{start:e-n,end:e}:{start:e,end:e+n}}function Bn(t){return 0===t||180===t?"center":t<180?"left":"right"}function En(t,e,n,i){var r,a,o=n.y+i/2;if(ct.isArray(e))for(r=0,a=e.length;r270||t<90)&&(n.y-=e.h)}function Vn(t){return ct.isNumber(t)?t:0}var Nn=bn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Dn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;ct.each(e.data.datasets,function(r,a){if(e.isDatasetVisible(a)){var o=e.getDatasetMeta(a);ct.each(r.data,function(e,r){var a=+t.getRightValue(e);isNaN(a)||o.data[r].hidden||(n=Math.min(a,n),i=Math.max(a,i))})}}),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Dn(this.options))},convertTicksToLabels:function(){var t=this;bn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,i,r=ct.options._parseFont(t.options.pointLabels),a={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=r.string,t._pointLabelSizes=[];var s,l,u,c=$n(t);for(e=0;ea.r&&(a.r=f.end,o.r=h),p.starta.b&&(a.b=p.end,o.b=h)}t.setReductions(t.drawingArea,a,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=this,r=e.l/Math.sin(n.l),a=Math.max(e.r-i.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),s=-Math.max(e.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=Vn(r),a=Vn(a),o=Vn(o),s=Vn(s),i.drawingArea=Math.min(Math.floor(t-(r+a)/2),Math.floor(t-(o+s)/2)),i.setCenterPoint(r,a,o,s)},setCenterPoint:function(t,e,n,i){var r=this,a=r.width-e-r.drawingArea,o=t+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((o+a)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(t){var e=2*Math.PI/$n(this),n=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,i=n*Math.PI*2/360;return t*e+i},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks;if(e.display){var r=t.ctx,a=this.getIndexAngle(0),o=ct.options._parseFont(i);(e.angleLines.display||e.pointLabels.display)&&function(t){var e=t.ctx,n=t.options,i=n.angleLines,r=n.gridLines,a=n.pointLabels,o=Mn(i.lineWidth,r.lineWidth),s=Mn(i.color,r.color),l=Dn(n);e.save(),e.lineWidth=o,e.strokeStyle=s,e.setLineDash&&(e.setLineDash(On([i.borderDash,r.borderDash,[]])),e.lineDashOffset=On([i.borderDashOffset,r.borderDashOffset,0]));var u=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),c=ct.options._parseFont(a);e.font=c.string,e.textBaseline="middle";for(var h=$n(t)-1;h>=0;h--){if(i.display&&o&&s){var d=t.getPointPosition(h,u);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(d.x,d.y),e.stroke()}if(a.display){var f=0===h?l/2:0,p=t.getPointPosition(h,u+f+5),v=Tn(a.fontColor,h,st.global.defaultFontColor);e.fillStyle=v;var g=t.getIndexAngle(h),m=ct.toDegrees(g);e.textAlign=Bn(m),Fn(m,t._pointLabelSizes[h],p),En(e,t.pointLabels[h]||"",p,c.lineHeight)}}e.restore()}(t),ct.each(t.ticks,function(e,s){if(s>0||i.reverse){var l=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]);if(n.display&&0!==s&&function(t,e,n,i){var r,a=t.ctx,o=e.circular,s=$n(t),l=Tn(e.color,i-1),u=Tn(e.lineWidth,i-1);if((o||s)&&l&&u){if(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash&&(a.setLineDash(e.borderDash||[]),a.lineDashOffset=e.borderDashOffset||0),a.beginPath(),o)a.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{r=t.getPointPosition(0,n),a.moveTo(r.x,r.y);for(var c=1;c=0&&o<=s;){if(r=t[(i=o+s>>1)-1]||null,a=t[i],!r)return{lo:null,hi:a};if(a[e]n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}(t,e,n),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],o=r.lo?r.hi?r.hi:t[t.length-1]:t[1],s=o[e]-a[e],l=s?(n-a[e])/s:0,u=(o[i]-a[i])*l;return a[i]+u}function Kn(t,e){var n=t._adapter,i=t.options.time,r=i.parser,a=r||i.format,o=e;return"function"==typeof r&&(o=r(o)),ct.isFinite(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(r||"function"!=typeof a||(o=a(e),ct.isFinite(o)||(o=n.parse(o))),o)}function Gn(t,e){if(ct.isNullOrUndef(e))return null;var n=t.options.time,i=Kn(t,t.getRightValue(e));return null===i?i:(n.round&&(i=+t._adapter.startOf(i,n.round)),i)}function Zn(t){for(var e=qn.indexOf(t)+1,n=qn.length;e=r&&n<=a&&u.push(n);return i.min=r,i.max=a,i._unit=s.unit||function(t,e,n,i,r){var a,o,s=qn.length;for(a=s-1;a>=qn.indexOf(n);a--)if(o=qn[a],Hn[o].common&&t._adapter.diff(r,i,o)>=e.length)return o;return qn[n?qn.indexOf(n):0]}(i,u,s.minUnit,i.min,i.max),i._majorUnit=Zn(i._unit),i._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var r,a,o,s,l,u=[],c=[e];for(r=0,a=t.length;re&&s=0&&t0?o:1}}),ti={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};Jn._defaults=ti;var ei={category:vn,linear:_n,logarithmic:In,radialLinear:Nn,time:Jn},ni={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};ln._date.override("function"==typeof t?{_id:"moment",formats:function(){return ni},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,i){return t(e).add(n,i).valueOf()},diff:function(e,n,i){return t.duration(t(e).diff(t(n))).as(i)},startOf:function(e,n,i){return e=t(e),"isoWeek"===n?e.isoWeekday(i).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),st._set("global",{plugins:{filler:{propagate:!0}}});var ii={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),r=i&&n.isDatasetVisible(e),a=r&&i.dataset._children||[],o=a.length||0;return o?function(t,e){return e=n)&&i;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function ai(t){var e,n=t.el._model||{},i=t.el._scale||{},r=t.fill,a=null;if(isFinite(r))return null;if("start"===r?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePosition?a=i.getBasePosition():i.getBasePixel&&(a=i.getBasePixel()),null!=a){if(void 0!==a.x&&void 0!==a.y)return a;if(ct.isFinite(a))return{x:(e=i.isHorizontal())?a:null,y:e?null:a}}return null}function oi(t,e,n){var i,r=t[e],a=r.fill,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.push(a),a=i.fill}return!1}function si(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),ii[n](t))}function li(t){return t&&!t.skip}function ui(t,e,n,i,r){var a;if(i&&r){for(t.moveTo(e[0].x,e[0].y),a=1;a0;--a)ct.canvas.lineTo(t,n[a],n[a-1],!0)}}var ci={id:"filler",afterDatasetsUpdate:function(t,e){var n,i,r,a,o=(t.data.datasets||[]).length,s=e.propagate,l=[];for(i=0;ie?e:t.boxWidth}st._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return ct.isArray(e.datasets)?e.datasets.map(function(e,n){return{text:e.label,fillStyle:ct.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(t){var e=[];e.push('');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push("
"),e.join("")}});var pi=vt.extend({initialize:function(t){ct.extend(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:hi,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:hi,beforeSetDimensions:hi,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:hi,beforeBuildLabels:hi,buildLabels:function(){var t=this,e=t.options.labels||{},n=ct.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:hi,beforeFit:hi,fit:function(){var t=this,e=t.options,n=e.labels,i=e.display,r=t.ctx,a=ct.options._parseFont(n),o=a.size,s=t.legendHitBoxes=[],l=t.minSize,u=t.isHorizontal();if(u?(l.width=t.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=t.maxHeight),i)if(r.font=a.string,u){var c=t.lineWidths=[0],h=0;r.textAlign="left",r.textBaseline="top",ct.each(t.legendItems,function(t,e){var i=fi(n,o),a=i+o/2+r.measureText(t.text).width;(0===e||c[c.length-1]+a+n.padding>l.width)&&(h+=o+n.padding,c[c.length-(e>0?0:1)]=n.padding),s[e]={left:0,top:0,width:a,height:o},c[c.length-1]+=a+n.padding}),l.height+=h}else{var d=n.padding,f=t.columnWidths=[],p=n.padding,v=0,g=0,m=o+d;ct.each(t.legendItems,function(t,e){var i=fi(n,o),a=i+o/2+r.measureText(t.text).width;e>0&&g+m>l.height-d&&(p+=v+n.padding,f.push(v),v=0,g=0),v=Math.max(v,a),g+=m,s[e]={left:0,top:0,width:a,height:o}}),p+=v,f.push(v),l.width+=p}t.width=l.width,t.height=l.height},afterFit:hi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,i=st.global,r=i.defaultColor,a=i.elements.line,o=t.width,s=t.lineWidths;if(e.display){var l,u=t.ctx,c=di(n.fontColor,i.defaultFontColor),h=ct.options._parseFont(n),d=h.size;u.textAlign="left",u.textBaseline="middle",u.lineWidth=.5,u.strokeStyle=c,u.fillStyle=c,u.font=h.string;var f=fi(n,d),p=t.legendHitBoxes,v=t.isHorizontal();l=v?{x:t.left+(o-s[0])/2+n.padding,y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+n.padding,line:0};var g=d+n.padding;ct.each(t.legendItems,function(i,c){var h=u.measureText(i.text).width,m=f+d/2+h,y=l.x,b=l.y;v?c>0&&y+m+n.padding>t.left+t.minSize.width&&(b=l.y+=g,l.line++,y=l.x=t.left+(o-s[l.line])/2+n.padding):c>0&&b+g>t.top+t.minSize.height&&(y=l.x=y+t.columnWidths[l.line]+n.padding,b=l.y=t.top+n.padding,l.line++),function(t,n,i){if(!(isNaN(f)||f<=0)){u.save();var o=di(i.lineWidth,a.borderWidth);if(u.fillStyle=di(i.fillStyle,r),u.lineCap=di(i.lineCap,a.borderCapStyle),u.lineDashOffset=di(i.lineDashOffset,a.borderDashOffset),u.lineJoin=di(i.lineJoin,a.borderJoinStyle),u.lineWidth=o,u.strokeStyle=di(i.strokeStyle,r),u.setLineDash&&u.setLineDash(di(i.lineDash,a.borderDash)),e.labels&&e.labels.usePointStyle){var s=f*Math.SQRT2/2,l=t+f/2,c=n+d/2;ct.canvas.drawPoint(u,i.pointStyle,s,l,c)}else 0!==o&&u.strokeRect(t,n,f,d),u.fillRect(t,n,f,d);u.restore()}}(y,b,i),p[c].left=y,p[c].top=b,function(t,e,n,i){var r=d/2,a=f+r+t,o=e+r;u.fillText(n.text,a,o),n.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(a,o),u.lineTo(a+i,o),u.stroke())}(y,b,i,h),v?l.x+=m+n.padding:l.y+=g})}},_getLegendItemAt:function(t,e){var n,i,r,a=this;if(t>=a.left&&t<=a.right&&e>=a.top&&e<=a.bottom)for(r=a.legendHitBoxes,n=0;n=i.left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return a.legendItems[n];return null},handleEvent:function(t){var e,n=this,i=n.options,r="mouseup"===t.type?"click":t.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===r?e&&i.onClick&&i.onClick.call(n,t.native,e):(i.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),i.onHover&&e&&i.onHover.call(n,t.native,e))}});function vi(t,e){var n=new pi({ctx:t.ctx,options:e,chart:t});we.configure(t,n,e),we.addBox(t,n),t.legend=n}var gi={id:"legend",_element:pi,beforeInit:function(t){var e=t.options.legend;e&&vi(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(ct.mergeIf(e,st.global.legend),n?(we.configure(t,n,e),n.options=e):vi(t,e)):n&&(we.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},mi=ct.noop;st._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var yi=vt.extend({initialize:function(t){ct.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:mi,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:mi,beforeSetDimensions:mi,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:mi,beforeBuildLabels:mi,buildLabels:mi,afterBuildLabels:mi,beforeFit:mi,fit:function(){var t=this,e=t.options,n=e.display,i=t.minSize,r=ct.isArray(e.text)?e.text.length:1,a=ct.options._parseFont(e),o=n?r*a.lineHeight+2*e.padding:0;t.isHorizontal()?(i.width=t.maxWidth,i.height=o):(i.width=o,i.height=t.maxHeight),t.width=i.width,t.height=i.height},afterFit:mi,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var i,r,a,o=ct.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,c=t.top,h=t.left,d=t.bottom,f=t.right;e.fillStyle=ct.valueOrDefault(n.fontColor,st.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(r=h+(f-h)/2,a=c+l,i=f-h):(r="left"===n.position?h+l:f-l,a=c+(d-c)/2,i=d-c,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(r,a),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var p=n.text;if(ct.isArray(p))for(var v=0,g=0;g=0;i--){var r=t[i];if(e(r))return r}},ct.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ct.almostEquals=function(t,e,n){return Math.abs(t-e)t},ct.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},ct.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},ct.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},ct.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e),i=t===Math.pow(10,n);return i?n:e},ct.toRadians=function(t){return t*(Math.PI/180)},ct.toDegrees=function(t){return t*(180/Math.PI)},ct._decimalPlaces=function(t){if(ct.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},ct.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},ct.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ct.aliasPixel=function(t){return t%2==0?0:.5},ct._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,r=n/2;return Math.round((e-r)*i)/i+r},ct.splineCurve=function(t,e,n,i){var r=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var h=i*u,d=i*c;return{previous:{x:a.x-h*(o.x-r.x),y:a.y-h*(o.y-r.y)},next:{x:a.x+d*(o.x-r.x),y:a.y+d*(o.y-r.y)}}},ct.EPSILON=Number.EPSILON||1e-14,ct.splineCurveMonotone=function(t){var e,n,i,r,a,o,s,l,u,c=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),h=c.length;for(e=0;e0?c[e-1]:null,(r=e0?c[e-1]:null,r=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ct.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ct.niceNum=function(t,e){var n=Math.floor(ct.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},ct.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},ct.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,a=t.target||t.srcElement,o=a.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(ct.getStyle(a,"padding-left")),u=parseFloat(ct.getStyle(a,"padding-top")),c=parseFloat(ct.getStyle(a,"padding-right")),h=parseFloat(ct.getStyle(a,"padding-bottom")),d=o.right-o.left-l-c,f=o.bottom-o.top-u-h;return n=Math.round((n-o.left-l)/d*a.width/e.currentDevicePixelRatio),i=Math.round((i-o.top-u)/f*a.height/e.currentDevicePixelRatio),{x:n,y:i}},ct.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},ct.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},ct._calculatePadding=function(t,e,n){return(e=ct.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},ct._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ct.getMaximumWidth=function(t){var e=ct._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=ct._calculatePadding(e,"padding-left",n),r=ct._calculatePadding(e,"padding-right",n),a=n-i-r,o=ct.getConstraintWidth(t);return isNaN(o)?a:Math.min(a,o)},ct.getMaximumHeight=function(t){var e=ct._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=ct._calculatePadding(e,"padding-top",n),r=ct._calculatePadding(e,"padding-bottom",n),a=n-i-r,o=ct.getConstraintHeight(t);return isNaN(o)?a:Math.min(a,o)},ct.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ct.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,a=t.width;i.height=r*n,i.width=a*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=a+"px")}},ct.fontString=function(t,e,n){return e+" "+t+"px "+n},ct.longestText=function(t,e,n,i){var r=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},a=i.garbageCollect=[],i.font=e),t.font=e;var o=0;ct.each(n,function(e){null!=e&&!0!==ct.isArray(e)?o=ct.measureText(t,r,a,o,e):ct.isArray(e)&&ct.each(e,function(e){null==e||ct.isArray(e)||(o=ct.measureText(t,r,a,o,e))})});var s=a.length/2;if(s>n.length){for(var l=0;li&&(i=a),i},ct.numberOfLabelLines=function(t){var e=1;return ct.each(t,function(t){ct.isArray(t)&&t.length>e&&(e=t.length)}),e},ct.color=Y?function(t){return t instanceof CanvasGradient&&(t=st.global.defaultColor),Y(t)}:function(t){return console.error("Color.js not found!"),t},ct.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ct.color(t).saturate(.5).darken(.1).rgbString()}}(),an._adapters=ln,an.Animation=mt,an.animationService=yt,an.controllers=ce,an.DatasetController=kt,an.defaults=st,an.Element=vt,an.elements=Nt,an.Interaction=me,an.layouts=we,an.platform=Re,an.plugins=ze,an.Scale=pn,an.scaleService=je,an.Ticks=un,an.Tooltip=Qe,an.helpers.each(ei,function(t,e){an.scaleService.registerScaleType(e,t,t._defaults)}),xi)xi.hasOwnProperty(Ci)&&an.plugins.register(xi[Ci]);an.platform.initialize();var Si=an;return"undefined"!=typeof window&&(window.Chart=an),an.Chart=an,an.Legend=xi.legend._element,an.Title=xi.title._element,an.pluginService=an.plugins,an.PluginBase=an.Element.extend({}),an.canvasHelpers=an.helpers.canvas,an.layoutService=an.layouts,an.LinearScaleBase=bn,an.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(t){an[t]=function(e,n){return new an(e,an.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}}),Si}(function(){try{return n(16)}catch(t){}}())},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e){t.exports=function(t,e){var n="function"==typeof t.exports?t.exports.extendOptions:t.options;for(var i in"function"==typeof t.exports&&(n.components=t.exports.options.components),n.components=n.components||{},e)n.components[i]=n.components[i]||e[i]}},,,,function(t,e,n){},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function a(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new a(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new a(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(14),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,a,o,s,l=1,u={},c=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){p(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){a.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,i=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(o="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&p(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(o+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return t||(t={}),r.a.extend({data:function(){return o({clientHeight:c(),clientWidth:u(),resizeTimeout:void 0},s,t)},computed:{breakpoint:function(){var t=this.clientWidth=this.thresholds.lg-this.scrollbarWidth,a=t,o=e,s=(t||e)&&!(n||i||r),l=!t&&(e||n||i||r),u=n,c=(t||e||n)&&!(i||r),h=!(t||e)&&(n||i||r),d=i,f=(t||e||n||i)&&!r,p=!(t||e||n)&&(i||r),v=r,g=void 0;switch(!0){case t:g="xs";break;case e:g="sm";break;case n:g="md";break;case i:g="lg";break;default:g="xl"}return{xs:t,sm:e,md:n,lg:i,xl:r,name:g,xsOnly:a,smOnly:o,smAndDown:s,smAndUp:l,mdOnly:u,mdAndDown:c,mdAndUp:h,lgOnly:d,lgAndDown:f,lgAndUp:p,xlOnly:v,width:this.clientWidth,height:this.clientHeight,thresholds:this.thresholds,scrollbarWidth:this.scrollbarWidth}}},created:function(){"undefined"!=typeof window&&window.addEventListener("resize",this.onResize,{passive:!0})},beforeDestroy:function(){"undefined"!=typeof window&&window.removeEventListener("resize",this.onResize)},methods:{onResize:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.setDimensions,200)},setDimensions:function(){this.clientHeight=c(),this.clientWidth=u()}}})}function u(){return"undefined"==typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}function c(){return"undefined"==typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}var h=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return!1!==t&&h({},d,t)}var p={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half"};var v={md:{complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached"},mdi:{complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half"},fa:p,fa4:{complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o"},faSvg:function(t,e){var n={};for(var i in e)n[i]={component:t,props:{icon:e[i].split(" fa-")}};return n}("font-awesome-icon",p)};function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({},v[t]||v.md,e)}var m=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return m({},y,t)}var x={dataIterator:{rowsPerPageText:"Items per page:",rowsPerPageAll:"All",pageText:"{0}-{1} of {2}",noResultsText:"No matching records found",nextPage:"Next page",prevPage:"Previous page"},dataTable:{rowsPerPageText:"Rows per page:"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual"}},_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments[2];return r.a.extend({name:n||t.replace(/__/g,"-"),functional:!0,render:function(n,i){var r=i.data,a=i.children;return r.staticClass=(t+" "+(r.staticClass||"")).trim(),n(e,r,a)}})}function C(t,e){return Array.isArray(t)?t.concat(e):(t&&e.push(t),e)}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top center 0",n=arguments[2];return{name:t,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:e}},render:function(e,n){var i="transition"+(n.props.group?"-group":"");n.data=n.data||{},n.data.props={name:t,mode:n.props.mode},n.data.on=n.data.on||{},Object.isExtensible(n.data.on)||(n.data.on=w({},n.data.on));var r=[],a=[];r.push(function(t){t.style.transformOrigin=n.props.origin,t.style.webkitTransformOrigin=n.props.origin}),n.props.leaveAbsolute&&a.push(function(t){return t.style.position="absolute"}),n.props.hideOnLeave&&a.push(function(t){return t.style.display="none"});var o=n.data.on,s=o.beforeEnter,l=o.leave;return n.data.on.beforeEnter=function(){return C(s,r)},n.data.on.leave=C(l,a),e(i,n.data,n.children)}}}function I(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return{name:t,functional:!0,props:{mode:{type:String,default:n}},render:function(n,i){return n("transition",{props:w({},i.props,{name:t}),on:e},i.children)}}}try{if("undefined"!=typeof window){var A=Object.defineProperty({},"passive",{get:function(){!0}});window.addEventListener("testListener",A,A),window.removeEventListener("testListener",A,A)}}catch(t){console.warn(t)}function M(t,e,n){var i=e.length-1;if(i<0)return void 0===t?n:t;for(var r=0;r":">"};function L(t){return t.replace(/[&<>]/g,function(t){return D[t]||t})}function B(t,e){for(var n={},i=0;i1&&void 0!==arguments[1]?arguments[1]:"px";return null==t||""===t?void 0:isNaN(+t)?String(t):""+Number(t)+e}function F(t){return(t||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var V=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34}),N="$vuetify.icons.";function R(t){return Object.keys(t)}var z=/-(\w)/g,j=function(t){return t.replace(z,function(t,e){return e?e.toUpperCase():""})};function W(t){return t.charAt(0).toUpperCase()+t.slice(1)}function H(t,e,n){return t.$slots[e]&&t.$scopedSlots[e]&&t.$scopedSlots[e].name?n?"v-slot":"scoped":t.$slots[e]?"normal":t.$scopedSlots[e]?"scoped":void 0}function q(t,e,n){if(n&&(e={_isVue:!0,$parent:n,$options:e}),e){if(e.$_alreadyWarned=e.$_alreadyWarned||[],e.$_alreadyWarned.includes(t))return;e.$_alreadyWarned.push(t)}return"[Vuetify] "+t+(e?function(t){if(t._isVue&&t.$parent){for(var e=[],n=0;t;){if(e.length>0){var i=e[e.length-1];if(i.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[i,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map(function(t,e){return""+(0===e?"---\x3e ":" ".repeat(5+2*e))+(Array.isArray(t)?Z(t[0])+"... ("+t[1]+" recursive calls)":Z(t))}).join("\n")}return"\n\n(found in "+Z(t)+")"}(e):"")}function U(t,e,n){var i=q(t,e,n);null!=i&&console.warn(i)}function Y(t,e,n){var i=q(t,e,n);null!=i&&console.error(i)}function X(t,e,n,i){U("'"+t+"' is deprecated, use '"+e+"' instead",n,i)}var K=/(?:^|[-_])(\w)/g,G=function(t){return t.replace(K,function(t){return t.toUpperCase()}).replace(/[-_]/g,"")};function Z(t,e){if(t.$root===t)return"";var n="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{},i=n.name||n._componentTag,r=n.__file;if(!i&&r){var a=r.match(/([^\/\\]+)\.vue$/);i=a&&a[1]}return(i?"<"+G(i)+">":"")+(r&&!1!==e?" at "+r:"")}var Q="$vuetify.",J=Symbol("Lang fallback");function tt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{locales:Object.assign({en:x},t.locales),current:t.current||"en",t:function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=n.replace(Q,""),a=O(e,r,J);return a===J&&(i?(Y('Translation key "'+r+'" not found in fallback'),a=n):(U('Translation key "'+r+'" not found, falling back to default'),a=t(x,n,!0))),a}(this.locales[this.current],e).replace(/\{(\d+)\}/g,function(t,e){return String(i[+e])}):e}}}var et=function(t){return t},nt=function(t){return t*t},it=function(t){return t*(2-t)},rt=function(t){return t<.5?2*t*t:(4-2*t)*t-1},at=function(t){return t*t*t},ot=function(t){return--t*t*t+1},st=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},lt=function(t){return t*t*t*t},ut=function(t){return 1- --t*t*t*t},ct=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},ht=function(t){return t*t*t*t*t},dt=function(t){return 1+--t*t*t*t*t},ft=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};function pt(t){return null==t?t:t.constructor.name}function vt(t){return"string"==typeof t?document.querySelector(t):t&&t._isVue?t.$el:t instanceof HTMLElement?t:null}var gt=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=gt({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},e),a=function(t){var e=vt(t);if(e)return e;throw"string"==typeof t?new Error('Container element "'+t+'" not found.'):new TypeError("Container must be a Selector/HTMLElement/VueComponent, received "+pt(t)+" instead.")}(n.container);if(n.appOffset){var o=a.classList.contains("v-navigation-drawer"),s=a.classList.contains("v-navigation-drawer--clipped");n.offset+=r.a.prototype.$vuetify.application.bar,o&&!s||(n.offset+=r.a.prototype.$vuetify.application.top)}var l=performance.now(),u=function(t){if("number"==typeof t)return t;var e=vt(t);if(!e)throw"string"==typeof t?new Error('Target element "'+t+'" not found.'):new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received "+pt(t)+" instead.");for(var n=0;e;)n+=e.offsetTop,e=e.offsetParent;return n}(t)-n.offset,c=a.scrollTop;if(u===c)return Promise.resolve(u);var h="function"==typeof n.easing?n.easing:i[n.easing];if(!h)throw new TypeError('Easing function "'+n.easing+'" not found.');return new Promise(function(t){return requestAnimationFrame(function e(i){var r=i-l,o=Math.abs(n.duration?Math.min(r/n.duration,1):1);if(a.scrollTop=Math.floor(c+(u-c)*h(o)),1===o||a.clientHeight+a.scrollTop===a.scrollHeight)return t(u);requestAnimationFrame(e)})})}var yt={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.installed){this.installed=!0,r.a!==t&&Y("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this"),function(t,e){var n=e||"^2.5.18",i=n.split(".",3).map(function(t){return t.replace(/\D/g,"")}).map(Number),r=t.version.split(".",3).map(function(t){return parseInt(t,10)});r[0]===i[0]&&(r[1]>i[1]||r[1]===i[1]&&r[2]>=i[2])||U("Vuetify requires Vue version "+n)}(t);var n=tt(e.lang);if(t.prototype.$vuetify=new t({mixins:[l(e.breakpoint)],data:{application:a,dark:!1,icons:g(e.iconfont,e.icons),lang:n,options:b(e.options),rtl:e.rtl,theme:f(e.theme)},methods:{goTo:mt,t:n.t.bind(n)}}),e.directives)for(var i in e.directives)t.directive(i,e.directives[i]);!function e(n){if(n){for(var i in n){var r=n[i];r&&!e(r.$_vuetify_subcomponents)&&t.component(i,r)}return!0}return!1}(e.components)}},version:"1.5.14"};n(12);r.a.use(yt,{iconfont:"md",theme:{primary:"#ddd",secondary:"#36495d",accent:"#47b784"}});var bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showInterface?n("v-app",[n("v-content",[n("v-container",{attrs:{fluid:"","fill-height":""}},[n("v-layout",{attrs:{"align-center":"","justify-center":""}},[n("v-flex",{attrs:{xs9:""}},[n("v-card",{staticClass:"elevation-12"},[n("v-system-bar",{attrs:{window:"",dark:""}},[t._v("\n mysql-async Explorer\n "),n("v-spacer"),t._v(" "),n("v-icon",{on:{click:function(e){return t.close()}}},[t._v("close")])],1),t._v(" "),n("v-tabs",{attrs:{color:"primary","slider-color":"secondary"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("v-tab",{attrs:{ripple:""}},[t._v("\n Time-resolved\n ")]),t._v(" "),n("v-tab",{attrs:{ripple:""}},[t._v("\n Resources\n ")]),t._v(" "),n("v-tab",{attrs:{ripple:""}},[t._v("\n Slowest Queries\n ")]),t._v(" "),n("v-tab-item",[n("v-flex",{staticStyle:{height:"480px"},attrs:{xs12:"","pa-2":""}},[n("m-chart",{attrs:{id:"time-graph",labels:t.timeLabels,datasets:t.timeData,height:"540"}})],1)],1),t._v(" "),n("v-tab-item",[n("v-flex",{staticStyle:{height:"480px"},attrs:{xs12:"","pa-2":""}},[n("m-chart",{attrs:{id:"resource-graph",labels:t.resourceLabels,datasets:t.resourceData,height:"540"}})],1)],1),t._v(" "),n("v-tab-item",[n("v-flex",{staticStyle:{height:"480px"},attrs:{xs12:"","pa-2":""}},[n("v-data-table",{attrs:{"align-end":"",headers:t.headers,items:t.slowqueries,"rows-per-page-items":[7]},scopedSlots:t._u([{key:"items",fn:function(e){return[n("td",[t._v(t._s(e.item.resource))]),t._v(" "),n("td",[t._v(t._s(e.item.sql))]),t._v(" "),n("td",[t._v(t._s(e.item.queryTime))])]}}],null,!1,3852515603)})],1)],1)],1),t._v(" "),n("v-footer",{staticStyle:{"min-height":"28px"},attrs:{dark:"",color:"black",height:"28"}})],1)],1)],1)],1)],1)],1):t._e()};bt._withStripped=!0;var xt=function(){var t=this.$createElement;return(this._self._c||t)("canvas",{attrs:{id:this.id,width:this.width,height:this.height}})};xt._withStripped=!0;var _t=n(4),wt=n.n(_t);function kt(t,e,n,i,r,a,o,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}wt.a.defaults.global.defaultFontFamily="'Fira Sans', 'sans-serif'";var Ct=kt({data:()=>({myChart:null}),methods:{createChart(t){const e=document.getElementById(t);this.myChart=new wt.a(e,{type:this.type,data:{labels:this.labels,datasets:this.datasets},options:{responsive:!0,lineTension:1,scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}})},arraysEqual(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!=e.length)return!1;for(var n=0;n[]},labels:{type:Array,default:()=>[]},height:{type:Number,default:400},width:{type:Number,default:1600}},mounted(){this.createChart(this.id)},watch:{datasets(){this.myChart&&(this.myChart.data.datasets=this.datasets,this.myChart.update())},labels(){this.myChart&&(this.arraysEqual(this.myChart.data.labels,this.labels)||(this.myChart.data.labels=this.labels,this.myChart.update(0)))}}},xt,[],!1,null,null,null);Ct.options.__file="ui/components/MChart.vue";var St={components:{MChart:Ct.exports},data:()=>({showInterface:!1,colorGraphLoad:{backgroundColor:["rgba(54, 73, 93, 0.5)"],borderColor:["#36495d"],borderWidth:3},colorGraphAvg:{backgroundColor:["rgba(71, 183, 132, 0.5)"],borderColor:["#47b784"],borderWidth:3},colorGraphCount:{backgroundColor:["rgba(62, 128, 113, 0.5)"],borderColor:["#3e8071"],borderWidth:3},resourceData:[],resourceLabels:[],timeLabels:[],timeData:[],slowqueries:[{resource:"memes",sql:"SELECT * FROM memes",queryTime:5e3}],headers:[{text:"Resource",value:"resource"},{text:"Query",value:"sql",sortable:!1},{text:"Execution Time (ms)",value:"queryTime"}]}),destroyed(){window.removeEventListener("message",this.listener)},methods:{close(){fetch("http://mysql-async/close-explorer",{method:"post",body:JSON.stringify({close:!0})})},onToggleShow(){this.showInterface=!this.showInterface},onSlowQueryData({slowQueries:t}){Array.isArray(t)&&(this.slowqueries=t)},onTimeData({timeData:t}){if(Array.isArray(t)&&3===t.length){this.timeData=[Object.assign({},this.colorGraphLoad,{label:"Server Load (ms)"},t[0]),Object.assign({},this.colorGraphAvg,{label:"Average Query Time (ms)"},t[1]),Object.assign({},this.colorGraphCount,{label:"Query Count"},t[2])];const e=[];for(let n=t[0].data.length-1;n>-1;n-=1)0!==n?e.push(`-${5*n}min`):e.push("now");this.timeLabels=e}},onResourceData({resourceData:t}){Array.isArray(t)&&3===t.length&&(this.resourceData=[Object.assign({},this.colorGraphLoad,{label:"Server Load (ms)"},t[0]),Object.assign({},this.colorGraphAvg,{label:"Average Query Time (ms)"},t[1]),Object.assign({},this.colorGraphCount,{label:"Query Count"},t[2])])},onResourceLabels({resourceLabels:t}){this.resourceLabels=t}},mounted(){this.listener=window.addEventListener("message",t=>{const e=t.data||t.detail;e.type&&this[e.type]&&this[e.type](e)})},name:"app"},It=(n(17),n(8)),At=n.n(It);n(18);function Mt(t){var e=void 0;if("number"==typeof t)e=t;else{if("string"!=typeof t)throw new TypeError("Colors can only be numbers or strings, recieved "+(null==t?t:t.constructor.name)+" instead");var n="#"===t[0]?t.substring(1):t;3===n.length&&(n=n.split("").map(function(t){return t+t}).join("")),6!==n.length&&U("'"+t+"' is not a valid rgb color"),e=parseInt(n,16)}return e<0?(U("Colors cannot be negative: '"+t+"'"),e=0):(e>16777215||isNaN(e))&&(U("'"+t+"' is not a valid rgb color"),e=16777215),e}function Tt(t){var e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}var Ot=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Pt=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},$t=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Dt=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Lt(t){for(var e,n=Array(3),i=Pt,r=Ot,a=0;a<3;++a)n[a]=Math.round(255*(e=i(r[a][0]*t[0]+r[a][1]*t[1]+r[a][2]*t[2]),Math.max(0,Math.min(1,e))));return(n[0]<<16)+(n[1]<<8)+(n[2]<<0)}function Bt(t){for(var e=[0,0,0],n=Dt,i=$t,r=n((t>>16&255)/255),a=n((t>>8&255)/255),o=n((t>>0&255)/255),s=0;s<3;++s)e[s]=i[s][0]*r+i[s][1]*a+i[s][2]*o;return e}var Et=.20689655172413793,Ft=function(t){return t>Math.pow(Et,3)?Math.cbrt(t):t/(3*Math.pow(Et,2))+4/29},Vt=function(t){return t>Et?Math.pow(t,3):3*Math.pow(Et,2)*(t-4/29)};function Nt(t){var e=Ft,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function Rt(t){var e=Vt,n=(t[0]+16)/116;return[.95047*e(n+t[1]/500),e(n),1.08883*e(n-t[2]/200)]}var zt=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var Wt=function(t,e){return"\n."+t+" {\n background-color: "+e+" !important;\n border-color: "+e+" !important;\n}\n."+t+"--text {\n color: "+e+" !important;\n caret-color: "+e+" !important;\n}"},Ht=function(t,e,n){var i=e.split(/(\d)/,2),r=zt(i,2),a=r[0],o=r[1];return"\n."+t+"."+a+"-"+o+" {\n background-color: "+n+" !important;\n border-color: "+n+" !important;\n}\n."+t+"--text.text--"+a+"-"+o+" {\n color: "+n+" !important;\n caret-color: "+n+" !important;\n}"},qt=function(t){return"--v-"+t+"-"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base")},Ut=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return"var("+qt(t,e)+")"};function Yt(t,e){for(var n={base:Tt(e)},i=5;i>0;--i)n["lighten"+i]=Tt(Xt(e,i));for(var r=1;r<=4;++r)n["darken"+r]=Tt(Kt(e,r));return n}function Xt(t,e){var n=Nt(Bt(t));return n[0]=n[0]+10*e,Lt(Rt(n))}function Kt(t,e){var n=Nt(Bt(t));return n[0]=n[0]-10*e,Lt(Rt(n))}var Gt={data:function(){return{style:null}},computed:{parsedTheme:function(){return function t(e){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Object.keys(e),r={},a=0;a1&&void 0!==arguments[1]&&arguments[1],n=Object.keys(t);if(!n.length)return"";var i="",r="";r+="a { color: "+(e?Ut("primary"):t.primary.base)+"; }";for(var a=0;a"+this.generatedStyles+""}else"undefined"!=typeof document&&(this.genStyle(),this.applyTheme())},methods:{applyTheme:function(){this.style&&(this.style.innerHTML=this.generatedStyles)},genStyle:function(){var t=document.getElementById("vuetify-theme-stylesheet");t||((t=document.createElement("style")).type="text/css",t.id="vuetify-theme-stylesheet",this.$vuetify.options.cspNonce&&t.setAttribute("nonce",this.$vuetify.options.cspNonce),document.head.appendChild(t)),this.style=t}}},Zt=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return se(t)?e.style=ae({},e.style,{"background-color":""+t,"border-color":""+t}):t&&(e.class=ae({},e.class,oe({},t,!0))),e},setTextColor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(se(t))e.style=ae({},e.style,{color:""+t,"caret-color":""+t});else if(t){var n=t.toString().trim().split(" ",2),i=re(n,2),r=i[0],a=i[1];e.class=ae({},e.class,oe({},r+"--text",!0)),a&&(e.class["text--"+a]=!0)}return e}}});var ue=r.a.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation:function(){return this.elevation},elevationClasses:function(){return this.computedElevation?(t={},e="elevation-"+this.computedElevation,n=!0,e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t):{};var t,e,n}}}),ce=r.a.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles:function(){var t={},e=E(this.height),n=E(this.minHeight),i=E(this.minWidth),r=E(this.maxHeight),a=E(this.maxWidth),o=E(this.width);return e&&(t.height=e),n&&(t.minHeight=n),i&&(t.minWidth=i),r&&(t.maxHeight=r),a&&(t.maxWidth=a),o&&(t.width=o),t}}});function he(){for(var t=arguments.length,e=Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(e._ripple&&e._ripple.enabled){var i=document.createElement("span"),r=document.createElement("span");i.appendChild(r),i.className="v-ripple__container",n.class&&(i.className+=" "+n.class);var a=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.getBoundingClientRect(),r=ge(t)?t.touches[t.touches.length-1]:t,a=r.clientX-i.left,o=r.clientY-i.top,s=0,l=.3;e._ripple&&e._ripple.circle?(l=.15,s=e.clientWidth/2,s=n.center?s:s+Math.sqrt(Math.pow(a-s,2)+Math.pow(o-s,2))/4):s=Math.sqrt(Math.pow(e.clientWidth,2)+Math.pow(e.clientHeight,2))/2;var u=(e.clientWidth-2*s)/2+"px",c=(e.clientHeight-2*s)/2+"px";return{radius:s,scale:l,x:n.center?u:a-s+"px",y:n.center?c:o-s+"px",centerX:u,centerY:c}}(t,e,n),o=a.radius,s=a.scale,l=a.x,u=a.y,c=a.centerX,h=a.centerY,d=2*o+"px";r.className="v-ripple__animation",r.style.width=d,r.style.height=d,e.appendChild(i);var f=window.getComputedStyle(e);f&&"static"===f.position&&(e.style.position="relative",e.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),pe(r,"translate("+l+", "+u+") scale3d("+s+","+s+","+s+")"),ve(r,0),r.dataset.activated=String(performance.now()),setTimeout(function(){r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),pe(r,"translate("+c+", "+h+") scale3d(1,1,1)"),ve(r,.25)},0)}},hide:function(t){if(t&&t._ripple&&t._ripple.enabled){var e=t.getElementsByClassName("v-ripple__animation");if(0!==e.length){var n=e[e.length-1];if(!n.dataset.isHiding){n.dataset.isHiding="true";var i=performance.now()-Number(n.dataset.activated),r=Math.max(250-i,0);setTimeout(function(){n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),ve(n,0),setTimeout(function(){1===t.getElementsByClassName("v-ripple__animation").length&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),n.parentNode&&t.removeChild(n.parentNode)},300)},r)}}}}};function ye(t){return void 0===t||!!t}function be(t){var e={},n=t.currentTarget;n&&n._ripple&&!n._ripple.touched&&(ge(t)&&(n._ripple.touched=!0),e.center=n._ripple.centered,n._ripple.class&&(e.class=n._ripple.class),me.show(t,n,e))}function xe(t){var e=t.currentTarget;e&&(window.setTimeout(function(){e._ripple&&(e._ripple.touched=!1)}),me.hide(e))}function _e(t,e,n){var i=ye(e.value);i||me.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=i;var r=e.value||{};r.center&&(t._ripple.centered=!0),r.class&&(t._ripple.class=e.value.class),r.circle&&(t._ripple.circle=r.circle),i&&!n?(t.addEventListener("touchstart",be,{passive:!0}),t.addEventListener("touchend",xe,{passive:!0}),t.addEventListener("touchcancel",xe),t.addEventListener("mousedown",be),t.addEventListener("mouseup",xe),t.addEventListener("mouseleave",xe),t.addEventListener("dragstart",xe,{passive:!0})):!i&&n&&we(t)}function we(t){t.removeEventListener("mousedown",be),t.removeEventListener("touchstart",xe),t.removeEventListener("touchend",xe),t.removeEventListener("touchcancel",xe),t.removeEventListener("mouseup",xe),t.removeEventListener("mouseleave",xe),t.removeEventListener("dragstart",xe)}var ke={bind:function(t,e,n){_e(t,e,!1),n.context&&n.context.$nextTick(function(){var e=window.getComputedStyle(t);if(e&&"inline"===e.display){var i=n.fnOptions?[n.fnOptions,n.context]:[n.componentInstance];U.apply(void 0,["v-ripple can only be used on block-level elements"].concat(i))}})},unbind:function(t){delete t._ripple,we(t)},update:function(t,e){e.value!==e.oldValue&&_e(t,e,ye(e.oldValue))}},Ce=Object.assign||function(t){for(var e=1;e100?100:parseFloat(this.value)},radius:function(){return 20},strokeDashArray:function(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset:function(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth:function(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles:function(){return{height:this.calculatedSize+"px",width:this.calculatedSize+"px"}},svgStyles:function(){return{transform:"rotate("+Number(this.rotate)+"deg)"}},viewBoxSize:function(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle:function(t,e,n){return t("circle",{class:"v-progress-circular__"+e,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":n}})},genSvg:function(t){var e=[this.indeterminate||this.genCircle(t,"underlay",0),this.genCircle(t,"overlay",this.strokeDashOffset)];return t("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:this.viewBoxSize+" "+this.viewBoxSize+" "+2*this.viewBoxSize+" "+2*this.viewBoxSize}},e)}},render:function(t){var e=t("div",{staticClass:"v-progress-circular__info"},this.$slots.default),n=this.genSvg(t);return t("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:this.styles,on:this.$listeners}),[n,e])}}));function De(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Le(t,e){return function(){return U("The "+t+" component must be used inside a "+e)}}function Be(t,e,n){var i=e&&n?{register:Le(e,n),unregister:Le(e,n)}:null;return r.a.extend({name:"registrable-inject",inject:De({},t,{default:i})})}function Ee(t,e,n){return Be(t,e,n).extend({name:"groupable",props:{activeClass:{type:String,default:function(){if(this[t])return this[t].activeClass}},disabled:Boolean},data:function(){return{isActive:!1}},computed:{groupClasses:function(){return this.activeClass?(t={},e=this.activeClass,n=this.isActive,e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t):{};var t,e,n}},created:function(){this[t]&&this[t].register(this)},beforeDestroy:function(){this[t]&&this[t].unregister(this)},methods:{toggle:function(){this.$emit("change")}}})}Ee("itemGroup");var Fe={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function Ve(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.a.extend({name:"positionable",props:t.length?B(Fe,t):Fe})}var Ne=Ve();function Re(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ze(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input";return r.a.extend({name:"toggleable",model:{prop:e,event:n},props:Re({},e,{required:!1}),data:function(){return{isActive:!!this[e]}},watch:(t={},Re(t,e,function(t){this.isActive=!!t}),Re(t,"isActive",function(t){!!t!==this[e]&&this.$emit(n,t)}),t)})}var je=ze(),We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:[],e=this.$el,n=[this.stackMinZIndex,$(e)],i=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0?Math.max(t-n,0):Math.max(t,12))+this.getOffsetLeft()},calcYOverflow:function(t){var e=this.getInnerHeight(),n=this.pageYOffset+e,i=this.dimensions.activator,r=this.dimensions.content.height,a=nr?t=this.pageYOffset+(i.top-r):a&&!this.allowOverflow?t=n-r-12:t0?this.$refs.activator.children[0]:this.$refs.activator;if(t)return this.activatedBy=t.currentTarget||t.target,this.activatedBy;if(this.activatedBy)return this.activatedBy;if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode[0]:this.activatorNode,n=e&&e.elm;if(n)return n}},getInnerHeight:function(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft:function(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop:function(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect:function(t){var e=t.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure:function(t){if(!t||!this.hasWindow)return null;var e=this.getRoundedBoundedClientRect(t);if(this.isAttached){var n=window.getComputedStyle(t);e.left=parseInt(n.marginLeft),e.top=parseInt(n.marginTop)}return e},sneakPeek:function(t){var e=this;requestAnimationFrame(function(){var n=e.$refs.content;if(!n||e.isShown(n))return t();n.style.display="inline-block",t(),n.style.display="none"})},startTransition:function(){var t=this;return new Promise(function(e){return requestAnimationFrame(function(){t.isContentActive=t.hasJustFocused=t.isActive,e()})})},isShown:function(t){return"none"!==t.style.display},updateDimensions:function(){var t=this;this.checkForWindow(),this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;var e={};if(!this.hasActivator||this.absolute)e.activator=this.absolutePosition();else{var n=this.getActivator();e.activator=this.measure(n),e.activator.offsetLeft=n.offsetLeft,this.isAttached?e.activator.offsetTop=n.offsetTop:e.activator.offsetTop=0}this.sneakPeek(function(){e.content=t.measure(t.$refs.content),t.dimensions=e})}}}),dn=r.a.extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:returnValue",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout(function(){e.isActive=!1})}}}),fn={methods:{activatorClickHandler:function(t){this.openOnClick&&!this.isActive?(this.getActivator(t).focus(),this.isActive=!0,this.absoluteX=t.clientX,this.absoluteY=t.clientY):this.closeOnClick&&this.isActive&&(this.getActivator(t).blur(),this.isActive=!1)},mouseEnterHandler:function(){var t=this;this.runDelay("open",function(){t.hasJustFocused||(t.hasJustFocused=!0,t.isActive=!0)})},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame(function(){e.isActive=!1,e.callDeactivate()})})},addActivatorEvents:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&!this.disabled&&t.addEventListener("click",this.activatorClickHandler)},removeActivatorEvents:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&t.removeEventListener("click",this.activatorClickHandler)}}},pn=Object.assign||function(t){for(var e=1;e-1)this.listIndex--;else{if(t.keyCode!==V.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()},getTiles:function(){this.tiles=this.$refs.content.querySelectorAll(".v-list__tile")}}},mn={data:function(){return{calculatedTopAuto:0}},methods:{calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list__tile--active"),n=t.scrollHeight-t.offsetHeight;return e?Math.min(n,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return this.isAttached?0:parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list__tile--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var n=e.offsetTop-this.calcScrollPosition(),i=t.querySelector(".v-list__tile").offsetTop;return this.computedTop-n-i}}};function yn(){return!1}var bn={inserted:function(t,e){var n=function(n){return function(t,e,n){n.args=n.args||{};var i=n.args.closeConditional||yn;if(t&&!1!==i(t)&&!("isTrusted"in t&&!t.isTrusted||"pointerType"in t&&!t.pointerType)){var r=(n.args.include||function(){return[]})();r.push(e),!r.some(function(e){return e.contains(t.target)})&&setTimeout(function(){i(t)&&n.value&&n.value(t)},0)}}(n,t,e)};(document.querySelector("[data-app]")||document.body).addEventListener("click",n,!0),t._clickOutside=n},unbind:function(t){if(t._clickOutside){var e=document.querySelector("[data-app]")||document.body;e&&e.removeEventListener("click",t._clickOutside,!0),delete t._clickOutside}}},xn=he(te).extend({name:"theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:te.options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find(function(t){return!t.isComment&&" "!==t.text})}}),_n=r.a.extend({name:"v-menu",provide:function(){return{theme:this.theme}},directives:{ClickOutside:bn,Resize:ee},mixins:[fn,rn,en,sn,vn,gn,hn,mn,dn,je,te],props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,fullWidth:Boolean,maxHeight:{default:"auto"},openOnClick:{type:Boolean,default:!0},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{defaultOffset:8,hasJustFocused:!1,resizeTimeout:null}},computed:{calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?this.calcXOverflow(this.calcLeftAuto(),t)+"px":this.calcLeft(t)},calculatedMaxHeight:function(){return this.auto?"200px":E(this.maxHeight)},calculatedMaxWidth:function(){return isNaN(this.maxWidth)?this.maxWidth:this.maxWidth+"px"},calculatedMinWidth:function(){if(this.minWidth)return isNaN(this.minWidth)?this.minWidth:this.minWidth+"px";var t=Math.min(this.dimensions.activator.width+this.nudgeWidth+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Math.min(e,t)+"px"},calculatedTop:function(){return!this.auto||this.isAttached?this.calcTop():this.calcYOverflow(this.calculatedTopAuto)+"px"},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{activator:function(t,e){this.removeActivatorEvents(e),this.addActivatorEvents(t)},disabled:function(t){this.activator&&(t?this.removeActivatorEvents(this.activator):this.addActivatorEvents(this.activator))},isContentActive:function(t){this.hasJustFocused=t}},mounted:function(){this.isActive&&this.activate(),"v-slot"===H(this,"activator",!0)&&Y("v-tooltip's activator slot must be bound, try ''",this)},methods:{activate:function(){var t=this;this.getTiles(),this.updateDimensions(),requestAnimationFrame(function(){t.startTransition().then(function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))})})},closeConditional:function(t){return this.isActive&&this.closeOnClick&&!this.$refs.content.contains(t.target)},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.updateDimensions,100))}},render:function(t){return t("div",{staticClass:"v-menu",class:{"v-menu--inline":!this.fullWidth&&this.$slots.activator},directives:[{arg:500,name:"resize",value:this.onResize}],on:this.disableKeys?void 0:{keydown:this.onKeyDown}},[this.genActivator(),this.$createElement(xn,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])])}}),wn=(n(32),n(28),n(29),Object.assign||function(t){for(var e=1;e0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return this.hasSuccess||this.shouldValidate&&this.hasError},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",t)}},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.color:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages.length>0?this.internalSuccessMessages:this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(t,e){T(t,e)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(t){t||this.disabled||this.readonly||(this.hasFocused=!0,this.validateOnBlur&&this.validate())},isResetting:function(){var t=this;setTimeout(function(){t.hasInput=!1,t.hasFocused=!1,t.isResetting=!1,t.validate()},0)},hasError:function(t){this.shouldValidate&&this.$emit("update:error",t)},value:function(t){this.lazyValue=t}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(t){return t?Array.isArray(t)?t:[t]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:void 0},resetValidation:function(){this.isResetting=!0},validate:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1],n=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(var i=0;i2&&void 0!==arguments[2])||arguments[2],r=this[t+"Icon"],a="click:"+F(t);e=e||this[t+"IconCb"],i&&t&&e&&X(":"+t+"-icon-cb","@"+a,this);var o={props:{color:this.validationState,dark:this.dark,disabled:this.disabled,light:this.light},on:this.$listeners[a]||e?{click:function(t){t.preventDefault(),t.stopPropagation(),n.$emit(a,t),e&&e(t)},mouseup:function(t){t.preventDefault(),t.stopPropagation()}}:void 0};return this.$createElement("div",{staticClass:"v-input__icon v-input__icon--"+F(t),key:""+t+r},[this.$createElement(Qe,o,r)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:E(this.height)},directives:this.directivesInput,on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(kn,{props:{color:this.validationState,dark:this.dark,focused:this.hasState,for:this.$attrs.id,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){if(this.hideDetails)return null;var t=this.hasHint?[this.hint]:this.validations;return this.$createElement(Cn,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.hasMessages||this.hasHint?t:[]}})},genSlot:function(t,e,n){if(!n.length)return null;var i=t+"-"+e;return this.$createElement("div",{staticClass:"v-input__"+i,ref:i},n)},genPrependSlot:function(){var t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick:function(t){this.$emit("click",t)},onMouseDown:function(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp:function(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render:function(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",attrs:this.attrsInput,class:this.classesInput}),this.genContent())}}),Tn=r.a.extend({name:"rippleable",directives:{Ripple:ke},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),t.on=Object.assign({click:this.onChange},this.$listeners),this.$createElement("div",t)):null},onChange:function(){}}}),On=r.a.extend({name:"comparable",props:{valueComparator:{type:Function,default:T}}}),Pn=Mn.extend({name:"selectable",mixins:[Tn,On],model:{prop:"inputValue",event:"change"},props:{color:{type:String,default:"accent"},id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(t){return{lazyValue:t.inputValue}},computed:{computedColor:function(){return this.isActive?this.color:this.validationState},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var t=this,e=this.value,n=this.internalValue;return this.isMultiple?!!Array.isArray(n)&&n.some(function(n){return t.valueComparator(n,e)}):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,n):Boolean(n):this.valueComparator(n,this.trueValue)},isDirty:function(){return this.isActive}},watch:{inputValue:function(t){this.lazyValue=t}},methods:{genLabel:function(){if(!this.hasLabel)return null;var t=Mn.options.methods.genLabel.call(this);return t.data.on={click:this.onChange},t},genInput:function(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-label":this.label,"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.id,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown},ref:"input"})},onBlur:function(){this.isFocused=!1},onChange:function(){var t=this;if(!this.isDisabled){var e=this.value,n=this.internalValue;if(this.isMultiple){Array.isArray(n)||(n=[]);var i=n.length;(n=n.filter(function(n){return!t.valueComparator(n,e)})).length===i&&n.push(e)}else n=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(n,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(n,e)?null:e:!n;this.validate(!0,n),this.internalValue=n}},onFocus:function(){this.isFocused=!0},onKeydown:function(t){}}}),$n=Object.assign||function(t){for(var e=1;e1&&(n.staticClass+=" v-list__tile__action--stack"),t("div",n,r)}}),jn=(n(35),Object.assign||function(t){for(var e=1;e-1&&this.groups.splice(e,1)},listClick:function(t){if(!this.expand){var e=!0,n=!1,i=void 0;try{for(var r,a=this.groups[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){r.value.toggle(t)}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}}},render:function(t){return t("div",{staticClass:"v-list",class:this.classes,attrs:{role:"list"}},[this.$slots.default])}});function Hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"width":"height";return{beforeEnter:function(t){t._parent=t.parentNode,t._initialStyle=Hn({transition:t.style.transition,visibility:t.style.visibility,overflow:t.style.overflow},e,t.style[e])},enter:function(n){var i=n._initialStyle;n.style.setProperty("transition","none","important"),n.style.visibility="hidden";var r=n["offset"+W(e)]+"px";n.style.visibility=i.visibility,n.style.overflow="hidden",n.style[e]=0,n.offsetHeight,n.style.transition=i.transition,t&&n._parent&&n._parent.classList.add(t),requestAnimationFrame(function(){n.style[e]=r})},afterEnter:i,enterCancelled:i,leave:function(t){t._initialStyle=Hn({overflow:t.style.overflow},e,t.style[e]),t.style.overflow="hidden",t.style[e]=t["offset"+W(e)]+"px",t.offsetHeight,requestAnimationFrame(function(){return t.style[e]=0})},afterLeave:n,leaveCancelled:n};function n(e){t&&e._parent&&e._parent.classList.remove(t),i(e)}function i(t){t.style.overflow=t._initialStyle.overflow,t.style[e]=t._initialStyle[e],delete t._initialStyle}},Un=(S("bottom-sheet-transition"),S("carousel-transition"),S("carousel-reverse-transition"),S("tab-transition"),S("tab-reverse-transition"),S("menu-transition"),S("fab-transition","center center","out-in"),S("dialog-transition"),S("dialog-bottom-transition"),S("fade-transition")),Yn=(S("scale-transition"),S("scroll-x-transition"),S("scroll-x-reverse-transition"),S("scroll-y-transition"),S("scroll-y-reverse-transition"),S("slide-x-transition")),Xn=(S("slide-x-reverse-transition"),S("slide-y-transition"),S("slide-y-reverse-transition"),I("expand-transition",qn())),Kn=(I("expand-x-transition",qn("",!0)),I("row-expand-transition",qn("datatable__expand-col--expanded")),Object.assign||function(t){for(var e=1;e'+L(t)+""},getMaskedCharacters:function(t){var e=(this.searchInput||"").toString().toLocaleLowerCase(),n=t.toLocaleLowerCase().indexOf(e);return n<0?{start:"",middle:t,end:""}:{start:t.slice(0,n),middle:t.slice(n,n+e.length),end:t.slice(n+e.length)}},genTile:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.hasItem(t);t===Object(t)&&(i=this.getAvatar(t),e=null!==e?e:this.getDisabled(t));var a={on:{mousedown:function(t){t.preventDefault()},click:function(){return e||n.$emit("select",t)}},props:{activeClass:this.tileActiveClass,avatar:i,disabled:e,ripple:!0,value:r,color:this.color}};if(!this.$scopedSlots.item)return this.$createElement(Rn,a,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(t,r):null,this.genTileContent(t)]);var o=this.$scopedSlots.item({parent:this,item:t,tile:a});return this.needsTile(o)?this.$createElement(Rn,a,o):o},genTileContent:function(t){var e=this.genFilteredText(this.getText(t));return this.$createElement(Qn,[this.$createElement(Jn,{domProps:{innerHTML:e}})])},hasItem:function(t){return this.parsedItems.indexOf(this.getValue(t))>-1},needsTile:function(t){return 1!==t.length||null==t[0].componentOptions||"v-list-tile"!==t[0].componentOptions.Ctor.options.name},getAvatar:function(t){return Boolean(P(t,this.itemAvatar,!1))},getDisabled:function(t){return Boolean(P(t,this.itemDisabled,!1))},getText:function(t){return String(P(t,this.itemText,t))},getValue:function(t){return P(t,this.itemValue,this.getText(t))}},render:function(){var t=[],e=!0,n=!1,i=void 0;try{for(var r,a=this.items[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;this.hideSelected&&this.hasItem(o)||(null==o?t.push(this.genTile(o)):o.header?t.push(this.genHeader(o)):o.divider?t.push(this.genDivider(o)):t.push(this.genTile(o)))}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}return t.length||t.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&t.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&t.push(this.$slots["append-item"]),this.$createElement("div",{staticClass:"v-select-list v-card",class:this.themeClasses},[this.$createElement(Wn,{props:{dense:this.dense}},t)])}}),ei=(n(31),Object.assign||function(t){for(var e=1;ei},Qt(e))},a)}}),ii=/[-!$%^&*()_+|~=`{}[\]:";'<>?,.\/\\ ]/,ri=function(t){return!!t&&ii.test(t)},ai={"#":{test:function(t){return/[0-9]/.test(t)}},A:{test:function(t){return/[A-Z]/i.test(t)},convert:function(t){return t.toUpperCase()}},a:{test:function(t){return/[a-z]/i.test(t)},convert:function(t){return t.toLowerCase()}},N:{test:function(t){return/[0-9A-Z]/i.test(t)},convert:function(t){return t.toUpperCase()}},n:{test:function(t){return/[0-9a-z]/i.test(t)},convert:function(t){return t.toLowerCase()}},X:{test:ri}},oi=function(t){return ai.hasOwnProperty(t)},si=function(t,e){return ai[t].convert?ai[t].convert(e):e},li=function(t,e){return!(null==e||!oi(t))&&ai[t].test(e)},ui=function(t){return t?String(t).replace(new RegExp(ii,"g"),""):t},ci={name:"maskable",props:{dontFillMaskBlanks:Boolean,mask:{type:[Object,String],default:null},returnMaskedValue:Boolean,value:{required:!1}},data:function(t){return{selection:0,lazySelection:0,lazyValue:t.value,preDefined:{"credit-card":"#### - #### - #### - ####",date:"##/##/####","date-with-time":"##/##/#### ##:##",phone:"(###) ### - ####",social:"###-##-####",time:"##:##","time-with-seconds":"##:##:##"}}},computed:{masked:function(){return(this.preDefined[this.mask]||this.mask||"").split("")}},watch:{mask:function(){var t=this;if(this.$refs.input){for(var e=this.$refs.input.value,n=this.maskText(ui(this.lazyValue)),i=0,r=this.selection,a=0;a100?100:parseFloat(this.bufferValue)},normalizedValue:function(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBufer)||(t.width=this.normalizedBufer+"%"),t}},methods:{genDeterminate:function(t){return t("div",this.setBackgroundColor(this.color,{ref:"front",staticClass:"v-progress-linear__bar__determinate",style:{width:this.effectiveWidth+"%"}}))},genBar:function(t,e){return t("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__bar__indeterminate",class:(n={},i=e,r=!0,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n)}));var n,i,r},genIndeterminate:function(t){return t("div",{ref:"front",staticClass:"v-progress-linear__bar__indeterminate",class:{"v-progress-linear__bar__indeterminate--active":this.active}},[this.genBar(t,"long"),this.genBar(t,"short")])}},render:function(t){var e=t(Un,this.indeterminate?[this.genIndeterminate(t)]:[]),n=t(Yn,this.indeterminate?[]:[this.genDeterminate(t)]),i=t("div",{staticClass:"v-progress-linear__bar",style:this.styles},[e,n]),r=t("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle})),a=this.$slots.default&&t("div",{staticClass:"v-progress-linear__content"},this.$slots.default);return t("div",{staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBufer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:{"v-progress-linear--query":this.query},style:{height:E(this.height)},on:this.$listeners},[r,i,a])}}),di=r.a.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(hi,{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:2,indeterminate:!0}})}}}),fi=Object.assign||function(t){for(var e=1;e0||this.badInput},isEnclosed:function(){return this.box||this.isSolo||this.hasOutline||this.fullWidth},isLabelActive:function(){return this.isDirty||pi.includes(this.type)},isSingle:function(){return this.isSolo||this.singleLine},isSolo:function(){return this.solo||this.soloInverted},labelPosition:function(){var t=this.prefix&&!this.labelValue?this.prefixWidth:0;return!this.$vuetify.rtl!=!this.reverse?{left:"auto",right:t}:{left:t,right:"auto"}},showLabel:function(){return this.hasLabel&&(!this.isSingle||!this.isLabelActive&&!this.placeholder&&!this.prefixLabel)},labelValue:function(){return!this.isSingle&&Boolean(this.isFocused||this.isLabelActive||this.placeholder||this.prefixLabel)},prefixWidth:function(){if(this.prefix||this.$refs.prefix)return this.$refs.prefix.offsetWidth},prefixLabel:function(){return this.prefix&&!this.value}},watch:{isFocused:function(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},value:function(t){var e=this;if(this.mask&&!this.internalChange){var n=this.maskText(this.unmaskText(t));this.lazyValue=this.unmaskText(n),String(t)!==this.lazyValue&&this.$nextTick(function(){e.$refs.input.value=n,e.$emit("input",e.lazyValue)})}else this.lazyValue=t}},mounted:function(){this.autofocus&&this.onFocus()},methods:{focus:function(){this.onFocus()},blur:function(){this.$refs.input?this.$refs.input.blur():this.onBlur()},clearableCallback:function(){var t=this;this.internalValue=null,this.$nextTick(function(){return t.$refs.input.focus()})},genAppendSlot:function(){var t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot:function(){var t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot:function(){var t=Mn.options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&t.children.unshift(e),t},genClearIcon:function(){if(!this.clearable)return null;var t=!!this.isDirty&&"clear";return this.clearIconCb&&X(":clear-icon-cb","@click:clear",this),this.genSlot("append","inner",[this.genIcon(t,!this.$listeners["click:clear"]&&this.clearIconCb||this.clearableCallback,!1)])},genCounter:function(){if(!1===this.counter||null==this.counter)return null;var t=!0===this.counter?this.$attrs.maxlength:this.counter;return this.$createElement(ni,{props:{dark:this.dark,light:this.light,max:t,value:this.counterValue}})},genDefaultSlot:function(){return[this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genLabel:function(){if(!this.showLabel)return null;var t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.disabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$attrs.id&&(t.props.for=this.$attrs.id),this.$createElement(kn,t,this.$slots.label||this.label)},genInput:function(){var t=Object.assign({},this.$listeners);delete t.change;var e={style:{},domProps:{value:this.maskText(this.lazyValue)},attrs:fi({"aria-label":(!this.$attrs||!this.$attrs.id)&&this.label},this.$attrs,{autofocus:this.autofocus,disabled:this.disabled,readonly:this.readonly,type:this.type}),on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input"};return this.placeholder&&(e.attrs.placeholder=this.placeholder),this.mask&&(e.attrs.maxlength=this.masked.length),this.browserAutocomplete&&(e.attrs.autocomplete=this.browserAutocomplete),this.$createElement("input",e)},genMessages:function(){return this.hideDetails?null:this.$createElement("div",{staticClass:"v-text-field__details"},[Mn.options.methods.genMessages.call(this),this.genCounter()])},genTextFieldSlot:function(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix:function(t){return this.$createElement("div",{class:"v-text-field__"+t,ref:t},this[t])},onBlur:function(t){this.isFocused=!1,this.internalChange=!1,this.$emit("blur",t)},onClick:function(){this.isFocused||this.disabled||this.$refs.input.focus()},onFocus:function(t){if(this.$refs.input)return document.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,this.$emit("focus",t)))},onInput:function(t){this.internalChange=!0,this.mask&&this.resetSelections(t.target),this.internalValue=t.target.value,this.badInput=t.target.validity&&t.target.validity.badInput},onKeyDown:function(t){this.internalChange=!0,t.keyCode===V.enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),Mn.options.methods.onMouseDown.call(this,t)},onMouseUp:function(t){this.hasMouseDown&&this.focus(),Mn.options.methods.onMouseUp.call(this,t)}}}),gi=r.a.extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}}),mi=Object.assign||function(t){for(var e=1;e0},listData:function(){var t,e,n,i=this.$vnode&&this.$vnode.context.$options._scopeId;return{attrs:i?(t={},e=i,n=!0,e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t):null,props:{action:this.multiple&&!this.isHidingSelected,color:this.color,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,noDataText:this.$vuetify.t(this.noDataText),selectedItems:this.selectedItems,itemAvatar:this.itemAvatar,itemDisabled:this.itemDisabled,itemValue:this.itemValue,itemText:this.itemText},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList:function(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&Y("assert: staticList should not be called if slots are used"),this.$createElement(ti,this.listData)},virtualizedItems:function(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:function(){return!0},$_menuProps:function(){var t=void 0;return t="string"==typeof this.menuProps?this.menuProps.split(","):this.menuProps,Array.isArray(t)&&(t=t.reduce(function(t,e){return t[e.trim()]=!0,t},{})),mi({},yi,{value:this.menuCanShow&&this.isMenuActive,nudgeBottom:this.nudgeBottom?this.nudgeBottom:t.offsetY?1:0},t)}},watch:{internalValue:function(t){this.initialValue=t,this.setSelectedItems()},isBooted:function(){var t=this;this.$nextTick(function(){t.content&&t.content.addEventListener&&t.content.addEventListener("scroll",t.onScroll,!1)})},isMenuActive:function(t){t&&(this.isBooted=!0)},items:{immediate:!0,handler:function(t){this.cacheItems&&(this.cachedItems=this.filterDuplicates(this.cachedItems.concat(t))),this.setSelectedItems()}}},mounted:function(){this.content=this.$refs.menu&&this.$refs.menu.$refs.content},methods:{blur:function(t){this.isMenuActive=!1,this.isFocused=!1,this.$refs.input&&this.$refs.input.blur(),this.selectedIndex=-1,this.onBlur(t)},activateMenu:function(){this.isMenuActive=!0},clearableCallback:function(){var t=this;this.setValue(this.multiple?[]:void 0),this.$nextTick(function(){return t.$refs.input.focus()}),this.openOnClear&&(this.isMenuActive=!0)},closeConditional:function(t){return!(!this.content||this.content.contains(t.target)||!this.$el||this.$el.contains(t.target)||t.target===this.$el)},filterDuplicates:function(t){for(var e=new Map,n=0;n1e3&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=t.key.toLowerCase(),this.keyboardLookupLastTime=n;var i=this.allItems.findIndex(function(t){return e.getText(t).toLowerCase().startsWith(e.keyboardLookupPrefix)}),r=this.allItems[i];-1!==i&&(this.setValue(this.returnObject?r:this.getValue(r)),setTimeout(function(){return e.setMenuIndex(i)}))}},onKeyDown:function(t){var e=t.keyCode;return this.readonly||this.isMenuActive||![V.enter,V.space,V.up,V.down].includes(e)||this.activateMenu(),this.isMenuActive&&this.$refs.menu&&this.$refs.menu.changeListIndex(t),e===V.enter?this.onEnterDown(t):e===V.esc?this.onEscDown(t):e===V.tab?this.onTabDown(t):void 0},onMouseUp:function(t){var e=this;if(this.hasMouseDown){var n=this.$refs["append-inner"];this.isMenuActive&&n&&(n===t.target||n.contains(t.target))?this.$nextTick(function(){return e.isMenuActive=!e.isMenuActive}):this.isEnclosed&&!this.isDisabled&&(this.isMenuActive=!0)}vi.options.methods.onMouseUp.call(this,t)},onScroll:function(){var t=this;if(this.isMenuActive){if(this.lastItem>=this.computedItems.length)return;this.content.scrollHeight-(this.content.scrollTop+this.content.clientHeight)<200&&(this.lastItem+=20)}else requestAnimationFrame(function(){return t.content.scrollTop=0})},onTabDown:function(t){var e=this.getMenuIndex(),n=this.$refs.menu.tiles[e];n&&n.className.indexOf("v-list__tile--highlighted")>-1&&this.isMenuActive&&e>-1?(t.preventDefault(),t.stopPropagation(),n.click()):this.blur(t)},selectItem:function(t){var e=this;if(this.multiple){var n=(this.internalValue||[]).slice(),i=this.findExistingIndex(t);-1!==i?n.splice(i,1):n.push(t),this.setValue(n.map(function(t){return e.returnObject?t:e.getValue(t)})),this.$nextTick(function(){e.$refs.menu&&e.$refs.menu.updateDimensions()})}else this.setValue(this.returnObject?t:this.getValue(t)),this.isMenuActive=!1},setMenuIndex:function(t){this.$refs.menu&&(this.$refs.menu.listIndex=t)},setSelectedItems:function(){var t=this,e=[],n=this.multiple&&Array.isArray(this.internalValue)?this.internalValue:[this.internalValue],i=function(n){var i=t.allItems.findIndex(function(e){return t.valueComparator(t.getValue(e),t.getValue(n))});i>-1&&e.push(t.allItems[i])},r=!0,a=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){i(s.value)}}catch(t){a=!0,o=t}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}this.selectedItems=e},setValue:function(t){var e=this.internalValue;this.internalValue=t,t!==e&&this.$emit("change",t)}}}),xi=(n(39),n(7),Object.assign||function(t){for(var e=1;e-1}},hideNoData:Boolean,noFilter:Boolean,searchInput:{default:void 0},menuProps:{type:bi.options.props.menuProps.type,default:function(){return _i}},autoSelectFirst:{type:Boolean,default:!1}},data:function(t){return{attrsInput:null,lazySearch:t.searchInput}},computed:{classes:function(){return Object.assign({},bi.options.computed.classes.call(this),{"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1})},computedItems:function(){return this.filteredItems},selectedValues:function(){var t=this;return this.selectedItems.map(function(e){return t.getValue(e)})},hasDisplayedItems:function(){var t=this;return this.hideSelected?this.filteredItems.some(function(e){return!t.hasItem(e)}):this.filteredItems.length>0},currentRange:function(){return null==this.selectedItem?0:this.getText(this.selectedItem).toString().length},filteredItems:function(){var t=this;return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter(function(e){return t.filter(e,t.internalSearch.toString(),t.getText(e).toString())})},internalSearch:{get:function(){return this.lazySearch},set:function(t){this.lazySearch=t,this.$emit("update:searchInput",t)}},isAnyValueAllowed:function(){return!1},isDirty:function(){return this.searchIsDirty||this.selectedItems.length>0},isSearching:function(){return this.multiple?this.searchIsDirty:this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps:function(){var t=bi.options.computed.$_menuProps.call(this);return t.contentClass=("v-autocomplete__content "+(t.contentClass||"")).trim(),xi({},_i,t)},searchIsDirty:function(){return null!=this.internalSearch&&""!==this.internalSearch},selectedItem:function(){var t=this;return this.multiple?null:this.selectedItems.find(function(e){return t.valueComparator(t.getValue(e),t.getValue(t.internalValue))})},listData:function(){var t=bi.options.computed.listData.call(this);return Object.assign(t.props,{items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch}),t}},watch:{filteredItems:function(t){this.onFilteredItemsChanged(t)},internalValue:function(){this.setSearch()},isFocused:function(t){t?this.$refs.input&&this.$refs.input.select():this.updateSelf()},isMenuActive:function(t){!t&&this.hasSlot&&(this.lazySearch=null)},items:function(t,e){e&&e.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!t.length||this.activateMenu()},searchInput:function(t){this.lazySearch=t},internalSearch:function(t){this.onInternalSearchChanged(t)},itemText:function(){this.updateSelf()}},created:function(){this.setSearch()},methods:{onFilteredItemsChanged:function(t){var e=this;this.setMenuIndex(-1),this.$nextTick(function(){e.setMenuIndex(t.length>0&&(1===t.length||e.autoSelectFirst)?0:-1)})},onInternalSearchChanged:function(t){this.updateMenuDimensions()},updateMenuDimensions:function(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex:function(t){if(!this.searchIsDirty&&[V.backspace,V.left,V.right,V.delete].includes(t)){var e=this.selectedItems.length-1;if(t===V.left)this.selectedIndex=-1===this.selectedIndex?e:this.selectedIndex-1;else if(t===V.right)this.selectedIndex=this.selectedIndex>=e?-1:this.selectedIndex+1;else if(-1===this.selectedIndex)return void(this.selectedIndex=e);var n=this.selectedItems[this.selectedIndex];if([V.backspace,V.delete].includes(t)&&!this.getDisabled(n)){var i=this.selectedIndex===e?this.selectedIndex-1:this.selectedItems[this.selectedIndex+1]?this.selectedIndex:-1;-1===i?this.setValue(this.multiple?[]:void 0):this.selectItem(n),this.selectedIndex=i}}},clearableCallback:function(){this.internalSearch=void 0,bi.options.methods.clearableCallback.call(this)},genInput:function(){var t=vi.options.methods.genInput.call(this);return t.data.attrs.role="combobox",t.data.domProps.value=this.internalSearch,t},genSelections:function(){return this.hasSlot||this.multiple?bi.options.methods.genSelections.call(this):[]},onClick:function(){this.isDisabled||(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.activateMenu())},onEnterDown:function(){},onInput:function(t){this.selectedIndex>-1||(t.target.value&&(this.activateMenu(),this.isAnyValueAllowed||this.setMenuIndex(0)),this.mask&&this.resetSelections(t.target),this.internalSearch=t.target.value,this.badInput=t.target.validity&&t.target.validity.badInput)},onKeyDown:function(t){var e=t.keyCode;bi.options.methods.onKeyDown.call(this,t),this.changeSelectedIndex(e)},onTabDown:function(t){bi.options.methods.onTabDown.call(this,t),this.updateSelf()},setSelectedItems:function(){bi.options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch:function(){var t=this;this.$nextTick(function(){t.internalSearch=t.multiple&&t.internalSearch&&t.isMenuActive?t.internalSearch:!t.selectedItems.length||t.multiple||t.hasSlot?null:t.getText(t.selectedItem)})},updateSelf:function(){this.updateAutocomplete()},updateAutocomplete:function(){(this.searchIsDirty||this.internalValue)&&(this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem:function(t){return this.selectedValues.indexOf(this.getValue(t))>-1}}}),ki=wi,Ci=ki.extend({name:"v-overflow-btn",props:{segmented:Boolean,editable:Boolean,transition:bi.options.props.transition},computed:{classes:function(){return Object.assign(ki.options.computed.classes.call(this),{"v-overflow-btn":!0,"v-overflow-btn--segmented":this.segmented,"v-overflow-btn--editable":this.editable})},isAnyValueAllowed:function(){return this.editable||ki.options.computed.isAnyValueAllowed.call(this)},isSingle:function(){return!0},computedItems:function(){return this.segmented?this.allItems:this.filteredItems},$_menuProps:function(){var t=ki.options.computed.$_menuProps.call(this);return t.transition=t.transition||"v-menu-transition",t}},methods:{genSelections:function(){return this.editable?ki.options.methods.genSelections.call(this):bi.options.methods.genSelections.call(this)},genCommaSelection:function(t,e,n){return this.segmented?this.genSegmentedBtn(t):bi.options.methods.genCommaSelection.call(this,t,e,n)},genInput:function(){var t=vi.options.methods.genInput.call(this);return t.data.domProps.value=this.editable?this.internalSearch:"",t.data.attrs.readonly=!this.isAnyValueAllowed,t},genLabel:function(){if(this.editable&&this.isFocused)return null;var t=vi.options.methods.genLabel.call(this);return t?(t.data.style={},t):t},genSegmentedBtn:function(t){var e=this,n=this.getValue(t),i=this.computedItems.find(function(t){return e.getValue(t)===n})||t;return i.text&&i.callback?this.$createElement(Ye,{props:{flat:!0},on:{click:function(t){t.stopPropagation(),i.callback(t)}}},[i.text]):(U("When using 'segmented' prop without a selection slot, items must contain both a text and callback property",this),null)}}}),Si={name:"v-combobox",extends:wi,props:{delimiters:{type:Array,default:function(){return[]}},returnObject:{type:Boolean,default:!0}},data:function(){return{editingIndex:-1}},computed:{counterValue:function(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot:function(){return bi.options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed:function(){return!0},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData)}},methods:{onFilteredItemsChanged:function(){},onInternalSearchChanged:function(t){if(t&&this.multiple&&this.delimiters.length){var e=this.delimiters.find(function(e){return t.endsWith(e)});null!=e&&(this.internalSearch=t.slice(0,t.length-e.length),this.updateTags())}this.updateMenuDimensions()},genChipSelection:function(t,e){var n=this,i=bi.options.methods.genChipSelection.call(this,t,e);return this.multiple&&(i.componentOptions.listeners.dblclick=function(){n.editingIndex=e,n.internalSearch=n.getText(t),n.selectedIndex=-1}),i},onChipInput:function(t){bi.options.methods.onChipInput.call(this,t),this.editingIndex=-1},onEnterDown:function(t){t.preventDefault(),bi.options.methods.onEnterDown.call(this),this.getMenuIndex()>-1||this.updateSelf()},onKeyDown:function(t){var e=t.keyCode;bi.options.methods.onKeyDown.call(this,t),this.multiple&&e===V.left&&0===this.$refs.input.selectionStart&&this.updateSelf(),this.changeSelectedIndex(e)},onTabDown:function(t){if(this.multiple&&this.internalSearch&&-1===this.getMenuIndex())return t.preventDefault(),t.stopPropagation(),this.updateTags();wi.options.methods.onTabDown.call(this,t)},selectItem:function(t){this.editingIndex>-1?this.updateEditing():bi.options.methods.selectItem.call(this,t)},setSelectedItems:function(){null==this.internalValue||""===this.internalValue?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.internalSearch;bi.options.methods.setValue.call(this,t)},updateEditing:function(){var t=this.internalValue.slice();t[this.editingIndex]=this.internalSearch,this.setValue(t),this.editingIndex=-1},updateCombobox:function(){var t=Boolean(this.$scopedSlots.selection)||this.hasChips;t&&!this.searchIsDirty||(this.internalSearch!==this.getText(this.internalValue)&&this.setValue(),t&&(this.internalSearch=void 0))},updateSelf:function(){this.multiple?this.updateTags():this.updateCombobox()},updateTags:function(){var t=this.getMenuIndex();if(!(t<0)||this.searchIsDirty){if(this.editingIndex>-1)return this.updateEditing();var e=this.selectedItems.indexOf(this.internalSearch);if(e>-1){var n=this.internalValue.slice();n.splice(e,1),this.setValue(n)}if(t>-1)return this.internalSearch=null;this.selectItem(this.internalSearch),this.internalSearch=null}}}};var Ii={functional:!0,$_wrapperFor:bi,props:{autocomplete:Boolean,combobox:Boolean,multiple:Boolean,tags:Boolean,editable:Boolean,overflow:Boolean,segmented:Boolean},render:function(t,e){var n=e.props,i=e.data,r=e.slots,a=e.parent;!function(t){if(t.model&&t.on&&t.on.input)if(Array.isArray(t.on.input)){var e=t.on.input.indexOf(t.model.callback);e>-1&&t.on.input.splice(e,1)}else delete t.on.input}(i);var o=function(t,e){var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(e("template",{slot:i},t[i]));return n}(r(),t);return n.autocomplete&&X("","",Ii,a),n.combobox&&X("","