ReedawFoodApp/unpackage/dist/build/mp-weixin/common/vendor.js

20 lines
431 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"011a":function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0289":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("34cf")),a=r(n("3b2d")),o={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},s=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!n||n.length<=0)return e;function i(e,t){for(var n in t)e[n]=e[n]&&"[object Object]"===e[n].toString()?i(e[n],t[n]):e[n]=t[n];return e}return n.forEach((function(t){e=i(e,t)})),e},c={toFixed:function(e,t){return t=t||2,this.isFloat(e)&&(e=e.toFixed(t)),e},isFloat:function(e){return e%1!==0},approximatelyEqual:function(e,t){return Math.abs(e-t)<1e-10},isSameSign:function(e,t){return Math.abs(e)===e&&Math.abs(t)===t||Math.abs(e)!==e&&Math.abs(t)!==t},isSameXCoordinateArea:function(e,t){return this.isSameSign(e.x,t.x)},isCollision:function(e,t){e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height,t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height;var n=t.start.x>e.end.x||t.end.x<e.start.x||t.end.y>e.start.y||t.start.y<e.end.y;return!n}};function l(e,t){var n=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),i=parseInt(r[1],16),a=parseInt(r[2],16),o=parseInt(r[3],16);return"rgba("+i+","+a+","+o+","+t+")"}function u(e,t,n){if(isNaN(e))throw new Error("[uCharts] series数据需为Number格式");n=n||10,t=t||"upper";var r=1;while(n<1)n*=10,r*=10;e="upper"===t?Math.ceil(e*r):Math.floor(e*r);while(e%n!==0)if("upper"===t){if(e==e+1)break;e++}else e--;return e/r}function f(e,t,n,r,i){var a=i.width-i.area[1]-i.area[3],o=n.eachSpacing*(i.chartData.xAxisData.xAxisPoints.length-1);"mount"==i.type&&i.extra&&i.extra.mount&&i.extra.mount.widthRatio&&i.extra.mount.widthRatio>1&&(i.extra.mount.widthRatio>2&&(i.extra.mount.widthRatio=2),o+=(i.extra.mount.widthRatio-1)*n.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=o-a?(s=a-o,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",i.xAxis.scrollPosition="right"):(e.scrollOption.position=t,i.xAxis.scrollPosition=t),s}function h(e,t,n){function r(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=r(e),t=r(t),n=r(n),t>n&&(n+=2*Math.PI,e<t&&(e+=2*Math.PI)),e>=t&&e<=n}function d(e,t){function n(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var i=.2,a=.2,o=null,s=null,c=null,l=null;if(t<1?(o=e[0].x+(e[1].x-e[0].x)*i,s=e[0].y+(e[1].y-e[0].y)*i):(o=e[t].x+(e[t+1].x-e[t-1].x)*i,s=e[t].y+(e[t+1].y-e[t-1].y)*i),t>e.length-3){var u=e.length-1;c=e[u].x-(e[u].x-e[u-1].x)*a,l=e[u].y-(e[u].y-e[u-1].y)*a}else c=e[t+1].x-(e[t+2].x-e[t].x)*a,l=e[t+1].y-(e[t+2].y-e[t].y)*a;return n(e,t+1)&&(l=e[t+1].y),n(e,t)&&(s=e[t].y),r(e,t+1)&&(c=e[t+1].x),r(e,t)&&(o=e[t].x),(s>=Math.max(e[t].y,e[t+1].y)||s<=Math.min(e[t].y,e[t+1].y))&&(s=e[t].y),(l>=Math.max(e[t].y,e[t+1].y)||l<=Math.min(e[t].y,e[t+1].y))&&(l=e[t+1].y),(o>=Math.max(e[t].x,e[t+1].x)||o<=Math.min(e[t].x,e[t+1].x))&&(o=e[t].x),(c>=Math.max(e[t].x,e[t+1].x)||c<=Math.min(e[t].x,e[t+1].x))&&(c=e[t+1].x),{ctrA:{x:o,y:s},ctrB:{x:c,y:l}}}function p(e,t,n){return{x:n.x+e,y:n.y-t}}function g(e,t){if(t)while(c.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function v(e,t,n){for(var r=0,i=0;i<e.length;i++){var a=e[i];if(a.color||(a.color=n.color[r],r=(r+1)%n.color.length),a.linearIndex||(a.linearIndex=i),a.index||(a.index=0),a.type||(a.type=t.type),"undefined"==typeof a.show&&(a.show=!0),a.type||(a.type=t.type),a.pointShape||(a.pointShape="circle"),!a.legendShape)switch(a.type){case"line":a.legendShape="line";break;case"column":case"bar":a.legendShape="rect";break;case"area":case"mount":a.legendShape="triangle";break;default:a.legendShape="circle"}}return e}function y(e,t,n,r){var i=t||[];if("custom"==e&&0==i.length&&(i=r.linearColor),"custom"==e&&i.length<n.length)for(var a=n.length-i.length,o=0;o<a;o++)i.push(r.linearColor[(o+1)%r.linearColor.length]);return i}function m(e,t){var n=0,r=t-e;return n=r>=1e4?1e3:r>=1e3?100:r>=100?10:r>=10?5:r>=1?1:r>=.1?.1:r>=.01?.01:r>=.001?.001:r>=1e-4?1e-4:r>=1e-5?1e-5:1e-6,{minRange:u(e,"lower",n),maxRange:u(t,"upper",n)}}function x(e,t,n){var r=0;if(e=String(e),!1!==n&&void 0!==n&&n.setFontSize&&n.measureText)return n.setFontSize(t),n.measureText(e).width;e=e.split("");for(var i=0;i<e.length;i++){var a=e[i];/[a-zA-Z]/.test(a)?r+=7:/[0-9]/.test(a)?r+=5.5:/\./.test(a)?r+=2.7:/-/.test(a)?r+=3.25:/:/.test(a)?r+=2.5:/[\u4e00-\u9fa5]/.test(a)?r+=10:/\(|\)/.test(a)?r+=3.73:/\s/.test(a)?r+=2.5:/%/.test(a)?r+=8:r+=10}return r*t/10}function _(e){return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data)}),[])}function b(e,t){for(var n=new Array(t),r=0;r<n.length;r++)n[r]=0;for(var i=0;i<e.length;i++)for(r=0;r<n.length;r++)n[r]+=e[i].data[r];return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data).concat(n)}),[])}function w(e,t,n){var r,i;return e.clientX?t.rotate?(i=t.height-e.clientX*t.pix,r=(e.pageY-n.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):(r=e.clientX*t.pix,i=(e.pageY-n.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):t.rotate?(i=t.height-e.x*t.pix,r=e.y*t.pix):(r=e.x*t.pix,i=e.y*t.pix),{x:r,y:i}}function S(e,t,n){var r=[],i=[],a=t.constructor.toString().indexOf("Array")>-1;if(a)for(var o=O(e),s=0;s<n.length;s++)i.push(o[n[s]]);else i=e;for(var c=0;c<i.length;c++){var l=i[c],u=-1;if(u=a?t[c]:t,null!==l.data[u]&&"undefined"!==typeof l.data[u]&&l.show){var f={};f.color=l.color,f.type=l.type,f.style=l.style,f.pointShape=l.pointShape,f.disableLegend=l.disableLegend,f.legendShape=l.legendShape,f.name=l.name,f.show=l.show,f.data=l.formatter?l.formatter(l.data[u]):l.data[u],r.push(f)}}return r}function k(e,t,n){var r=e.map((function(e){return x(e,t,n)}));return Math.max.apply(null,r)}function A(e){for(var t=2*Math.PI/e,n=[],r=0;r<e;r++)n.push(t*r);return n.map((function(e){return-1*e+Math.PI/2}))}function T(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(r.length>0){for(var c=[],l=0;l<r.length;l++)c.push(o[r[l]]);s=c[0][n[0]]}else for(var u=0;u<o.length;u++)if(o[u][n]){s=o[u][n];break}var f=e.map((function(e){var r=null;return t.categories&&t.categories.length>0&&(r=i[n]),{text:a.formatter?a.formatter(e,r,n,t):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}})),h={x:Math.round(s.x),y:Math.round(s.y)};return{textList:f,offset:h}}function P(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=t.chartData.xAxisPoints[n]+t.chartData.eachSpacing/2,o=e.map((function(e){return{text:i.formatter?i.formatter(e,r[n],n,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}}));o=o.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(a),y:0};return{textList:o,offset:s}}function C(e,t,n,r,i,a){var o=n.chartData.calPoints,s=a.color.upFill,c=a.color.downFill,l=[s,s,c,s],u=[];t.map((function(t){0==r?t.data[1]-t.data[0]<0?l[1]=c:l[1]=s:(t.data[0]<e[r-1][1]&&(l[0]=c),t.data[1]<t.data[0]&&(l[1]=c),t.data[2]>e[r-1][1]&&(l[2]=s),t.data[3]<e[r-1][1]&&(l[3]=c));var i={text:"开盘:"+t.data[0],color:l[0],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape},a={text:"收盘:"+t.data[1],color:l[1],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape},o={text:"最低:"+t.data[2],color:l[2],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape},f={text:"最高:"+t.data[3],color:l[3],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape};u.push(i,a,o,f)}));for(var f=[],h={x:0,y:0},d=0;d<o.length;d++){var p=o[d];"undefined"!==typeof p[r]&&null!==p[r]&&f.push(p[r])}return h.x=Math.round(f[0][0].x),{textList:u,offset:h}}function O(e){for(var t=[],n=0;n<e.length;n++)1==e[n].show&&t.push(e[n]);return t}function D(e,t,n){return e.x<=t.width-t.area[1]+10&&e.x>=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function L(e,t,n){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n,2)}function M(e,t){var n=[],r=[];return e.forEach((function(e,i){t.connectNulls?null!==e&&r.push(e):null!==e?r.push(e):(r.length&&n.push(r),r=[])})),r.length&&n.push(r),n}function I(e,t,n,r,i){var a={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix},o=t.xAxis.fontSize*t.pix,s=e.map((function(e,n){var r=t.xAxis.formatter?t.xAxis.formatter(e,n,t):e;return x(String(r),o,i)})),c=Math.max.apply(this,s);if(1==t.xAxis.rotateLabel){a.angle=t.xAxis.rotateAngle*Math.PI/180;var l=t.xAxis.marginTop*t.pix*2+Math.abs(c*Math.sin(a.angle));l=l<o+t.xAxis.marginTop*t.pix*2?l+t.xAxis.marginTop*t.pix*2:l,a.xAxisHeight=l}return t.enableScroll&&t.xAxis.scrollShow&&(a.xAxisHeight+=6*t.pix),t.xAxis.disabled&&(a.xAxisHeight=0),a}function F(e,t,n,r){var i=s({},{type:""},t.extra.bar),o={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix};o.ranges=function(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==r?b(e,t.categories.length):_(e);var s=[];i=i.filter((function(e){return"object"===(0,a.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===(0,a.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[0]):s.push(e.value):s.push(e)}));var c=0,l=0;if(s.length>0&&(c=Math.min.apply(this,s),l=Math.max.apply(this,s)),o>-1?("number"===typeof t.xAxis.data[o].min&&(c=Math.min(t.xAxis.data[o].min,c)),"number"===typeof t.xAxis.data[o].max&&(l=Math.max(t.xAxis.data[o].max,l))):("number"===typeof t.xAxis.min&&(c=Math.min(t.xAxis.min,c)),"number"===typeof t.xAxis.max&&(l=Math.max(t.xAxis.max,l))),c===l){var u=l||10;l+=u}for(var f=c,h=l,d=[],p=(h-f)/t.xAxis.splitNumber,g=0;g<=t.xAxis.splitNumber;g++)d.push(f+p*g);return d}(e,t,n,i.type),o.rangesFormat=o.ranges.map((function(e){return e=c.toFixed(e,2),e}));var l=o.ranges.map((function(e){return e=c.toFixed(e,2),e}));o=Object.assign(o,K(l,t,n));o.eachSpacing,l.map((function(e){return x(e,t.xAxis.fontSize*t.pix,r)}));return!0===t.xAxis.disabled&&(o.xAxisHeight=0),o}function E(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=i.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,_(r))),c=[],l=function(i){var o=r[i],l={};l.color=o.color,l.legendShape=o.legendShape,l.pointShape=o.pointShape,l.data=[],o.data.forEach((function(r,i){var o={};o.angle=e[i],o.proportion=r/s,o.value=r,o.position=p(n*o.proportion*a*Math.cos(o.angle),n*o.proportion*a*Math.sin(o.angle),t),l.data.push(o)})),c.push(l)},u=0;u<r.length;u++)l(u);return c}function j(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=0,i=0,a=0;a<e.length;a++){var o=e[a];o.data=null===o.data?0:o.data,r+=o.data}for(var s=0;s<e.length;s++){var c=e[s];c.data=null===c.data?0:c.data,c._proportion_=0===r?1/e.length*n:c.data/r*n,c._radius_=t}for(var l=0;l<e.length;l++){var u=e[l];u._start_=i,i+=2*u._proportion_*Math.PI}return e}function R(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=0;a<e.length;a++)"funnel"==n.type?e[a].radius=e[a].data/e[0].data*t*i:e[a].radius=r*(e.length-a)/(r*e.length)*t*i,e[a]._proportion_=e[a].data/e[0].data;return e}function $(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=0,o=0,s=[],c=0;c<e.length;c++){var l=e[c];l.data=null===l.data?0:l.data,a+=l.data,s.push(l.data)}for(var u=Math.min.apply(null,s),f=Math.max.apply(null,s),h=r-n,d=0;d<e.length;d++){var p=e[d];p.data=null===p.data?0:p.data,0===a?(p._proportion_=1/e.length*i,p._rose_proportion_=1/e.length*i):(p._proportion_=p.data/a*i,p._rose_proportion_="area"==t?1/e.length*i:p.data/a*i),p._radius_=n+h*((p.data-u)/(f-u))||r}for(var g=0;g<e.length;g++){var v=e[g];v._start_=o,o+=2*v._rose_proportion_*Math.PI}return e}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r<e.length;r++){var i=e[r];i.data=null===i.data?0:i.data;var a=void 0;a="circle"==t.type?2:"ccw"==t.direction?t.startAngle<t.endAngle?2+t.startAngle-t.endAngle:t.startAngle-t.endAngle:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=a*i.data*n+t.startAngle,"ccw"==t.direction&&(i._proportion_=t.startAngle-a*i.data*n),i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r<e.length;r++){var i=e[r];i.data=null===i.data?0:i.data;var a=void 0;a="circle"==t.type?2:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=a*i.data*n+t.startAngle,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function U(e,t,n){var r;r=n<t?2+n-t:t-n;for(var i=t,a=0;a<e.length;a++)e[a].value=null===e[a].value?0:e[a].value,e[a]._startAngle_=i,e[a]._endAngle_=r*e[a].value+t,e[a]._endAngle_>=2&&(e[a]._endAngle_=e[a]._endAngle_%2),i=e[a]._endAngle_;return e}function z(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i<e.length;i++){var a=e[i];if(a.data=null===a.data?0:a.data,"auto"==n.pointer.color){for(var o=0;o<t.length;o++)if(a.data<=t[o].value){a.color=t[o].color;break}}else a.color=n.pointer.color;var s=void 0;s=n.endAngle<n.startAngle?2+n.endAngle-n.startAngle:n.startAngle-n.endAngle,a._endAngle_=s*a.data+n.startAngle,a._oldAngle_=n.oldAngle,n.oldAngle<n.endAngle&&(a._oldAngle_+=2),a.data>=n.oldData?a._proportion_=(a._endAngle_-a._oldAngle_)*r+n.oldAngle:a._proportion_=a._oldAngle_-(a._oldAngle_-a._endAngle_)*r,a._proportion_>=2&&(a._proportion_=a._proportion_%2)}return e}function W(e,t,n,r,i,a){return e.map((function(e){if(null===e)return null;var i=0,o=0;return"mix"==a.type?(i=a.extra.mix.column.seriesGap*a.pix||0,o=a.extra.mix.column.categoryGap*a.pix||0):(i=a.extra.column.seriesGap*a.pix||0,o=a.extra.column.categoryGap*a.pix||0),i=Math.min(i,t/n),o=Math.min(o,t/n),e.width=Math.ceil((t-2*o-i*(n-1))/n),a.extra.mix&&a.extra.mix.column.width&&+a.extra.mix.column.width>0&&(e.width=Math.min(e.width,+a.extra.mix.column.width*a.pix)),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),e.width<=0&&(e.width=1),e.x+=(r+.5-n/2)*(e.width+i),e}))}function H(e,t,n,r,i,a){return e.map((function(e){if(null===e)return null;var i=0,o=0;return i=a.extra.bar.seriesGap*a.pix||0,o=a.extra.bar.categoryGap*a.pix||0,i=Math.min(i,t/n),o=Math.min(o,t/n),e.width=Math.ceil((t-2*o-i*(n-1))/n),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(e.width=Math.min(e.width,+a.extra.bar.width*a.pix)),e.width<=0&&(e.width=1),e.y+=(r+.5-n/2)*(e.width+i),e}))}function q(e,t,n,r,i,a,o){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e){return null===e?null:(e.width=t-2*s,a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),r>0&&(e.width-=o),e)}))}function V(e,t,n,r,i,a,o){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e,n){return null===e?null:(e.width=Math.ceil(t-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),e.width<=0&&(e.width=1),e)}))}function G(e,t,n,r,i,a,o){var s=a.extra.bar.categoryGap*a.pix||0;return e.map((function(e,n){return null===e?null:(e.width=Math.ceil(t-2*s),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(e.width=Math.min(e.width,+a.extra.bar.width*a.pix)),e.width<=0&&(e.width=1),e)}))}function K(e,t,n){var r=t.width-t.area[1]-t.area[3],i=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type||"bar"==t.type)&&i>1&&"justify"==t.xAxis.boundaryGap&&(i-=1);var a=0;"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),a=t.extra.mount.widthRatio-1,i+=a);var o=r/i,s=[],c=t.area[3],l=t.width-t.area[1];return e.forEach((function(e,t){s.push(c+a/2*o+t*o)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?s.push(c+a*o+e.length*o):s.push(l)),{xAxisPoints:s,startX:c,endX:l,eachSpacing:o}}function J(e,t,n,r,i,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],l=a.height-a.area[0]-a.area[2];return e.forEach((function(e,o){if(null===e)c.push(null);else{var u=[];e.forEach((function(e,c){var f={};f.x=r[o]+Math.round(i/2);var h=e.value||e,d=l*(h-t)/(n-t);d*=s,f.y=a.height-Math.round(d)-a.area[2],u.push(f)})),c.push(u)}})),c}function X(e,t,n,r,i,o,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=o.type&&"area"!=o.type&&"scatter"!=o.type&&"bubble"!=o.type||(l=o.xAxis.boundaryGap);var u=[],f=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return e.forEach((function(e,s){if(null===e)u.push(null);else{var d={};d.color=e.color,d.x=r[s];var p,g,v,y=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)p=[].concat(o.chartData.xAxisData.ranges),g=p.shift(),v=p.pop(),y=e[1],d.x=o.area[3]+h*(e[0]-g)/(v-g),"bubble"==o.type&&(d.r=e[2],d.t=e[3]);else y=e.value;"center"==l&&(d.x+=i/2);var m=f*(y-t)/(n-t);m*=c,d.y=o.height-m-o.area[2],u.push(d)}})),u}function Y(e,t,n,r,i,o,s,c,l){l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var u=o.xAxis.boundaryGap,f=[],h=o.height-o.area[0]-o.area[2],d=o.width-o.area[1]-o.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var p={};if(p.color=e.color,"vertical"==c.animation){p.x=r[s];var g,v,y,m=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)g=[].concat(o.chartData.xAxisData.ranges),v=g.shift(),y=g.pop(),m=e[1],p.x=o.area[3]+d*(e[0]-v)/(y-v);else m=e.value;"center"==u&&(p.x+=i/2);var x=h*(m-t)/(n-t);x*=l,p.y=o.height-x-o.area[2],f.push(p)}else{p.x=r[0]+i*s*l;m=e;"center"==u&&(p.x+=i/2);x=h*(m-t)/(n-t);p.y=o.height-x-o.area[2],f.push(p)}}})),f}function Q(e,t,n,r,i,o,s,c,l){l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var u=[],f=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return e.forEach((function(e,s){if(null===e)u.push(null);else{var c={};c.color=e.color,c.x=r[s];var d,p,g,v=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)d=[].concat(o.chartData.xAxisData.ranges),p=d.shift(),g=d.pop(),v=e[1],c.x=o.area[3]+h*(e[0]-p)/(g-p);else v=e.value;c.x+=i/2;var y=f*(v*l-t)/(n-t);c.y=o.height-y-o.area[2],u.push(c)}})),u}function Z(e,t,n,r,i,a,o,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,l=[],u=a.height-a.area[0]-a.area[2],f=(a.width,a.area[1],a.area[3],i*o.widthRatio);return e.forEach((function(e,o){if(null===e)l.push(null);else{var s={};s.color=e.color,s.x=r[o],s.x+=i/2;var h=e.data,d=u*(h*c-t)/(n-t);s.y=a.height-d-a.area[2],s.value=h,s.width=f,l.push(s)}})),l}function ee(e,t,n,r,i,o,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],u=(o.height,o.area[0],o.area[2],o.width-o.area[1]-o.area[3]);return e.forEach((function(e,i){if(null===e)l.push(null);else{var s={};s.color=e.color,s.y=r[i];var f=e;"object"===(0,a.default)(e)&&null!==e&&(f=e.value);var h=u*(f-t)/(n-t);h*=c,s.height=h,s.value=f,s.x=h+o.area[3],l.push(s)}})),l}function te(e,t,n,r,i,o,s,c,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],h=o.height-o.area[0]-o.area[2];return e.forEach((function(e,s){if(null===e)f.push(null);else{var d={};if(d.color=e.color,d.x=r[s]+Math.round(i/2),c>0){for(var p=0,g=0;g<=c;g++)p+=l[g].data[s];var v=p-e,y=h*(p-t)/(n-t),m=h*(v-t)/(n-t)}else{p=e;"object"===(0,a.default)(e)&&null!==e&&(p=e.value);y=h*(p-t)/(n-t),m=0}var x=m;y*=u,x*=u,d.y=o.height-Math.round(y)-o.area[2],d.y0=o.height-Math.round(x)-o.area[2],f.push(d)}})),f}function ne(e,t,n,r,i,o,s,c,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],h=o.width-o.area[1]-o.area[3];return e.forEach((function(e,i){if(null===e)f.push(null);else{var s={};if(s.color=e.color,s.y=r[i],c>0){for(var d=0,p=0;p<=c;p++)d+=l[p].data[i];var g=d-e,v=h*(d-t)/(n-t),y=h*(g-t)/(n-t)}else{d=e;"object"===(0,a.default)(e)&&null!==e&&(d=e.value);v=h*(d-t)/(n-t),y=0}var m=y;v*=u,m*=u,s.height=v-m,s.x=o.area[3]+v,s.x0=o.area[3]+m,f.push(s)}})),f}function re(e,t,n,r,i){var o;o="stack"==r?b(e,t.categories.length):_(e);var s=[];o=o.filter((function(e){return"object"===(0,a.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),o.map((function(e){"object"===(0,a.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[1]):s.push(e.value):s.push(e)}));var c=i.min||0,l=i.max||0;s.length>0&&(c=Math.min.apply(this,s),l=Math.max.apply(this,s)),c===l&&(0==l?l=10:c=0);for(var u=m(c,l),f=void 0===i.min||null===i.min?u.minRange:i.min,h=void 0===i.max||null===i.max?u.maxRange:i.max,d=(h-f)/t.yAxis.splitNumber,p=[],g=0;g<=t.yAxis.splitNumber;g++)p.push(f+d*g);return p.reverse()}function ie(e,t,n,r){var i=s({},{type:""},t.extra.column),a=t.yAxis.data.length,o=new Array(a);if(a>0){for(var l=0;l<a;l++){o[l]=[];for(var u=0;u<e.length;u++)e[u].index==l&&o[l].push(e[u])}for(var f=new Array(a),h=new Array(a),d=new Array(a),p=function(e){var a=t.yAxis.data[e];1==t.yAxis.disabled&&(a.disabled=!0),"categories"===a.type?(a.formatter||(a.formatter=function(e,t,n){return e+(a.unit||"")}),a.categories=a.categories||t.categories,f[e]=a.categories):(a.formatter||(a.formatter=function(e,t,n){return c.toFixed(e,a.tofix||0)+(a.unit||"")}),f[e]=re(o[e],t,n,i.type,a,e));var s=a.fontSize*t.pix||n.fontSize;d[e]={position:a.position?a.position:"left",width:0},h[e]=f[e].map((function(n,i){return n=a.formatter(n,i,t),d[e].width=Math.max(d[e].width,x(n,s,r)+5),n}));var l=a.calibration?4*t.pix:0;d[e].width+=l+3*t.pix,!0===a.disabled&&(d[e].width=0)},g=0;g<a;g++)p(g)}else{f=new Array(1),h=new Array(1),d=new Array(1);"bar"===t.type?(f[0]=t.categories,t.yAxis.formatter||(t.yAxis.formatter=function(e,t,n){return e+(n.yAxis.unit||"")})):(t.yAxis.formatter||(t.yAxis.formatter=function(e,t,n){return e.toFixed(n.yAxis.tofix)+(n.yAxis.unit||"")}),f[0]=re(e,t,n,i.type,{})),d[0]={position:"left",width:0};var v=t.yAxis.fontSize*t.pix||n.fontSize;h[0]=f[0].map((function(e,n){return e=t.yAxis.formatter(e,n,t),d[0].width=Math.max(d[0].width,x(e,v,r)+5),e})),d[0].width+=3*t.pix,!0===t.yAxis.disabled?(d[0]={position:"left",width:0},t.yAxis.data[0]={disabled:!0}):(t.yAxis.data[0]={disabled:!1,position:"left",max:t.yAxis.max,min:t.yAxis.min,formatter:t.yAxis.formatter},"bar"===t.type&&(t.yAxis.data[0].categories=t.categories,t.yAxis.data[0].type="categories"))}return{rangesFormat:h,ranges:f,yAxisWidth:d}}function ae(e,t){!0!==t.rotateLock?(e.translate(t.height,0),e.rotate(90*Math.PI/180)):!0!==t._rotate_&&(e.translate(t.height,0),e.rotate(90*Math.PI/180),t._rotate_=!0)}function oe(e,t,n,r,i){if(r.beginPath(),"hollow"==i.dataPointShapeType?(r.setStrokeStyle(t),r.setFillStyle(i.background),r.setLineWidth(2*i.pix)):(r.setStrokeStyle("#ffffff"),r.setFillStyle(t),r.setLineWidth(1*i.pix)),"diamond"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x+2.5*i.pix,e.y),r.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("none"===n)return;r.closePath(),r.fill(),r.stroke()}function se(e,t,n,r,i,a,o){if(i.tooltip&&!(i.tooltip.group.length>0&&0==i.tooltip.group.includes(o))){var s="number"===typeof i.tooltip.index?i.tooltip.index:i.tooltip.index[i.tooltip.group.indexOf(o)];if(r.beginPath(),"hollow"==a.activeType?(r.setStrokeStyle(t),r.setFillStyle(i.background),r.setLineWidth(2*i.pix)):(r.setStrokeStyle("#ffffff"),r.setFillStyle(t),r.setLineWidth(1*i.pix)),"diamond"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x+2.5*i.pix,e.y),r.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("none"===n)return;r.closePath(),r.fill(),r.stroke()}}function ce(e,t,n,r){var i=e.title.fontSize||t.titleFontSize,a=e.subtitle.fontSize||t.subtitleFontSize,o=e.title.name||"",s=e.subtitle.name||"",c=e.title.color||e.fontColor,l=e.subtitle.color||e.fontColor,u=o?i:0,f=s?a:0;if(s){var h=x(s,a*e.pix,n),d=r.x-h/2+(e.subtitle.offsetX||0)*e.pix,p=r.y+a*e.pix/2+(e.subtitle.offsetY||0)*e.pix;o&&(p+=(u*e.pix+5)/2),n.beginPath(),n.setFontSize(a*e.pix),n.setFillStyle(l),n.fillText(s,d,p),n.closePath(),n.stroke()}if(o){var g=x(o,i*e.pix,n),v=r.x-g/2+(e.title.offsetX||0),y=r.y+i*e.pix/2+(e.title.offsetY||0)*e.pix;s&&(y-=(f*e.pix+5)/2),n.beginPath(),n.setFontSize(i*e.pix),n.setFillStyle(c),n.fillText(o,v,y),n.closePath(),n.stroke()}}function le(e,t,n,r,i){var o=t.data,s=t.textOffset?t.textOffset:0;e.forEach((function(e,c){if(null!==e){r.beginPath();var l=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(l),r.setFillStyle(t.textColor||i.fontColor);var u=o[c];"object"===(0,a.default)(o[c])&&null!==o[c]&&(u=o[c].constructor.toString().indexOf("Array")>-1?o[c][1]:o[c].value);var f=t.formatter?t.formatter(u,c,t,i):u;r.setTextAlign("center"),r.fillText(String(f),e.x,e.y-4+s*i.pix),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function ue(e,t,n,r,i){var o=t.data,s=t.textOffset?t.textOffset:0,c=i.extra.column.labelPosition;e.forEach((function(e,l){if(null!==e){r.beginPath();var u=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(u),r.setFillStyle(t.textColor||i.fontColor);var f=o[l];"object"===(0,a.default)(o[l])&&null!==o[l]&&(f=o[l].constructor.toString().indexOf("Array")>-1?o[l][1]:o[l].value);var h=t.formatter?t.formatter(f,l,t,i):f;r.setTextAlign("center");var d=e.y-4*i.pix+s*i.pix;e.y>t.zeroPoints&&(d=e.y+s*i.pix+u),"insideTop"==c&&(d=e.y+u+s*i.pix,e.y>t.zeroPoints&&(d=e.y-s*i.pix-4*i.pix)),"center"==c&&(d=e.y+s*i.pix+(i.height-i.area[2]-e.y+u)/2,t.zeroPoints<i.height-i.area[2]&&(d=e.y+s*i.pix+(t.zeroPoints-e.y+u)/2),e.y>t.zeroPoints&&(d=e.y-s*i.pix-(e.y-t.zeroPoints-u)/2),"stack"==i.extra.column.type&&(d=e.y+s*i.pix+(e.y0-e.y+u)/2)),"bottom"==c&&(d=i.height-i.area[2]+s*i.pix-4*i.pix,t.zeroPoints<i.height-i.area[2]&&(d=t.zeroPoints+s*i.pix-4*i.pix),e.y>t.zeroPoints&&(d=t.zeroPoints-s*i.pix+u+2*i.pix),"stack"==i.extra.column.type&&(d=e.y0+s*i.pix-4*i.pix)),r.fillText(String(h),e.x,d),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function fe(e,t,n,r,i,a){t.data;var o=t.textOffset?t.textOffset:0;i.extra.mount.labelPosition;e.forEach((function(e,s){if(null!==e){r.beginPath();var c=t[s].textSize?t[s].textSize*i.pix:n.fontSize;r.setFontSize(c),r.setFillStyle(t[s].textColor||i.fontColor);var l=e.value,u=t[s].formatter?t[s].formatter(l,s,t,i):l;r.setTextAlign("center");var f=e.y-4*i.pix+o*i.pix;e.y>a&&(f=e.y+o*i.pix+c),r.fillText(String(u),e.x,f),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function he(e,t,n,r,i){var o=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,s){if(null!==e){r.beginPath();var c=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(c),r.setFillStyle(t.textColor||i.fontColor);var l=o[s];"object"===(0,a.default)(o[s])&&null!==o[s]&&(l=o[s].value);var u=t.formatter?t.formatter(l,s,t,i):l;r.setTextAlign("left"),r.fillText(String(u),e.x+4*i.pix,e.y+c/2-3),r.closePath(),r.stroke()}}))}function de(e,t,n,r,i,a){var o;t-=e.width/2+e.labelOffset*r.pix,t=t<10?10:t,o=e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle;for(var s=o/e.splitLine.splitNumber,c=e.endNumber-e.startNumber,l=c/e.splitLine.splitNumber,u=e.startAngle,f=e.startNumber,h=0;h<e.splitLine.splitNumber+1;h++){var d={x:t*Math.cos(u*Math.PI),y:t*Math.sin(u*Math.PI)},p=e.formatter?e.formatter(f,h,r):f;d.x+=n.x-x(p,i.fontSize,a)/2,d.y+=n.y;var g=d.x,v=d.y;a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(e.labelColor||r.fontColor),a.fillText(p,g,v+i.fontSize/2),a.closePath(),a.stroke(),u+=s,u>=2&&(u%=2),f+=l}}function pe(e,t,n,r,i,a){var o=r.extra.radar||{};e.forEach((function(e,s){if(!0===o.labelPointShow&&""!==r.categories[s]){var l={x:t*Math.cos(e),y:t*Math.sin(e)},u=p(l.x,l.y,n);a.setFillStyle(o.labelPointColor),a.beginPath(),a.arc(u.x,u.y,o.labelPointRadius*r.pix,0,2*Math.PI,!1),a.closePath(),a.fill()}if(!0===o.labelShow){var f={x:(t+i.radarLabelTextMargin*r.pix)*Math.cos(e),y:(t+i.radarLabelTextMargin*r.pix)*Math.sin(e)},h=p(f.x,f.y,n),d=h.x,g=h.y;c.approximatelyEqual(f.x,0)?d-=x(r.categories[s]||"",i.fontSize,a)/2:f.x<0&&(d-=x(r.categories[s]||"",i.fontSize,a)),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(o.labelColor||r.fontColor),a.fillText(r.categories[s]||"",d,g+i.fontSize/2),a.closePath(),a.stroke()}}))}function ge(e,t,n,r,i,a){for(var o=n.pieChartLinePadding,s=[],l=null,u=e.map((function(n,r){var i=n.formatter?n.formatter(n,r,e,t):c.toFixed(100*n._proportion_.toFixed(4))+"%";i=n.labelText?n.labelText:i;var a=2*Math.PI-(n._start_+2*Math.PI*n._proportion_/2);n._rose_proportion_&&(a=2*Math.PI-(n._start_+2*Math.PI*n._rose_proportion_/2));var o=n.color,s=n._radius_;return{arc:a,text:i,color:o,radius:s,textColor:n.textColor,textSize:n.textSize,labelShow:n.labelShow}})),f=0;f<u.length;f++){var h=u[f],d=Math.cos(h.arc)*(h.radius+o),v=Math.sin(h.arc)*(h.radius+o),y=Math.cos(h.arc)*h.radius,m=Math.sin(h.arc)*h.radius,_=d>=0?d+n.pieChartTextPadding:d-n.pieChartTextPadding,b=v,w=x(h.text,h.textSize*t.pix||n.fontSize,r),S=b;l&&c.isSameXCoordinateArea(l.start,{x:_})&&(S=_>0?Math.min(b,l.start.y):d<0||b>0?Math.max(b,l.start.y):Math.min(b,l.start.y)),_<0&&(_-=w);var k={lineStart:{x:y,y:m},lineEnd:{x:d,y:v},start:{x:_,y:S},width:w,height:n.fontSize,text:h.text,color:h.color,textColor:h.textColor,textSize:h.textSize};l=g(k,l),s.push(l)}for(var A=0;A<s.length;A++)if(!1!==u[A].labelShow){var T=s[A],P=p(T.lineStart.x,T.lineStart.y,a),C=p(T.lineEnd.x,T.lineEnd.y,a),O=p(T.start.x,T.start.y,a);r.setLineWidth(1*t.pix),r.setFontSize(T.textSize*t.pix||n.fontSize),r.beginPath(),r.setStrokeStyle(T.color),r.setFillStyle(T.color),r.moveTo(P.x,P.y);var D=T.start.x<0?O.x+T.width:O.x,L=T.start.x<0?O.x-5:O.x+5;r.quadraticCurveTo(C.x,C.y,D,O.y),r.moveTo(P.x,P.y),r.stroke(),r.closePath(),r.beginPath(),r.moveTo(O.x+T.width,O.y),r.arc(D,O.y,2*t.pix,0,2*Math.PI),r.closePath(),r.fill(),r.beginPath(),r.setFontSize(T.textSize*t.pix||n.fontSize),r.setFillStyle(T.textColor||t.fontColor),r.fillText(T.text,L,O.y+3),r.closePath(),r.stroke(),r.closePath()}}function ve(e,t,n){for(var r=s({},{type:"solid",dashLength:4,data:[]},e.extra.markLine),i=e.area[3],a=e.width-e.area[1],o=function(e,t){for(var n,r,i=t.height-t.area[0]-t.area[2],a=0;a<e.length;a++){e[a].yAxisIndex=e[a].yAxisIndex?e[a].yAxisIndex:0;var o=[].concat(t.chartData.yAxisData.ranges[e[a].yAxisIndex]);n=o.pop(),r=o.shift();var s=i*(e[a].value-n)/(r-n);e[a].y=t.height-Math.round(s)-t.area[2]}return e}(r.data,e),c=0;c<o.length;c++){var u=s({},{lineColor:"#DE4A42",showLabel:!1,labelFontSize:13,labelPadding:6,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,labelAlign:"left",labelOffsetX:0,labelOffsetY:0},o[c]);if("dash"==r.type&&n.setLineDash([r.dashLength,r.dashLength]),n.setStrokeStyle(u.lineColor),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(i,u.y),n.lineTo(a,u.y),n.stroke(),n.setLineDash([]),u.showLabel){var f=u.labelFontSize*e.pix,h=u.labelText?u.labelText:u.value;n.setFontSize(f);var d=x(h,f,n),p=d+u.labelPadding*e.pix*2,g="left"==u.labelAlign?e.area[3]-p:e.width-e.area[1];g+=u.labelOffsetX;var v=u.y-.5*f-u.labelPadding*e.pix;v+=u.labelOffsetY;var y=g+u.labelPadding*e.pix;u.y;n.setFillStyle(l(u.labelBgColor,u.labelBgOpacity)),n.setStrokeStyle(u.labelBgColor),n.setLineWidth(1*e.pix),n.beginPath(),n.rect(g,v,p,f+2*u.labelPadding*e.pix),n.closePath(),n.stroke(),n.fill(),n.setFontSize(f),n.setTextAlign("left"),n.setFillStyle(u.labelFontColor),n.fillText(String(h),y,v+f+u.labelPadding*e.pix/2),n.stroke(),n.setTextAlign("left")}}}function ye(e,t,n,r,i){var a=s({},{gridType:"solid",dashLength:4},e.extra.tooltip),o=e.area[3],c=e.width-e.area[1];if("dash"==a.gridType&&n.setLineDash([a.dashLength,a.dashLength]),n.setStrokeStyle(a.gridColor||"#cccccc"),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(o,e.tooltip.offset.y),n.lineTo(c,e.tooltip.offset.y),n.stroke(),n.setLineDash([]),a.yAxisLabel)for(var u=a.boxPadding*e.pix,f=function(e,t,n,r,i){for(var a=[].concat(n.chartData.yAxisData.ranges),o=n.height-n.area[0]-n.area[2],s=n.area[0],c=[],l=0;l<a.length;l++){var u=Math.max.apply(this,a[l]),f=Math.min.apply(this,a[l]),h=u-(u-f)*(e-s)/o;h=n.yAxis.data&&n.yAxis.data[l].formatter?n.yAxis.data[l].formatter(h,l,n):h.toFixed(0),c.push(String(h))}return c}(e.tooltip.offset.y,e.series,e),h=e.chartData.yAxisData.yAxisWidth,d=e.area[3],p=e.width-e.area[1],g=0;g<f.length;g++){n.setFontSize(a.fontSize*e.pix);var v,y=x(f[g],a.fontSize*e.pix,n),m=void 0,_=void 0;"left"==h[g].position?(m=d-(y+2*u)-2*e.pix,_=Math.max(m,m+y+2*u)):(m=p+2*e.pix,_=Math.max(m+h[g].width,m+y+2*u)),v=_-m;var b=m+(v-y)/2,w=e.tooltip.offset.y;n.beginPath(),n.setFillStyle(l(a.labelBgColor||t.toolTipBackground,a.labelBgOpacity||t.toolTipOpacity)),n.setStrokeStyle(a.labelBgColor||t.toolTipBackground),n.setLineWidth(1*e.pix),n.rect(m,w-.5*t.fontSize-u,v,t.fontSize+2*u),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(t.fontSize),n.setFillStyle(a.labelFontColor||e.fontColor),n.fillText(f[g],b,w+.5*t.fontSize),n.closePath(),n.stroke(),"left"==h[g].position?d-=h[g].width+e.yAxis.padding*e.pix:p+=h[g].width+e.yAxis.padding*e.pix}}function me(e,t,n,r,i){var a=s({},{activeBgColor:"#000000",activeBgOpacity:.08,activeWidth:i},t.extra.column);a.activeWidth=a.activeWidth>i?i:a.activeWidth;var o=t.area[0],c=t.height-t.area[2];r.beginPath(),r.setFillStyle(l(a.activeBgColor,a.activeBgOpacity)),r.rect(e-a.activeWidth/2,o,a.activeWidth,c-o),r.closePath(),r.fill(),r.setFillStyle("#FFFFFF")}function xe(e,t,n,r,i){var a=s({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),o=t.area[3],c=t.width-t.area[1];r.beginPath(),r.setFillStyle(l(a.activeBgColor,a.activeBgOpacity)),r.rect(o,e-i/2,c-o,i),r.closePath(),r.fill(),r.setFillStyle("#FFFFFF")}function _e(e,t,n,r,i,a,o){var c=s({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},n.extra.tooltip);1==c.showCategory&&n.categories&&e.unshift({text:n.categories[n.tooltip.index],color:null});var u=c.fontSize*n.pix,f=c.lineHeight*n.pix,h=c.boxPadding*n.pix,d=u,p=5*n.pix;0==c.legendShow&&(d=0,p=0);var g=c.showArrow?8*n.pix:0,v=!1;"line"!=n.type&&"mount"!=n.type&&"area"!=n.type&&"candle"!=n.type&&"mix"!=n.type||1==c.splitLine&&function(e,t,n,r){var i=t.extra.tooltip||{};i.gridType=void 0==i.gridType?"solid":i.gridType,i.dashLength=void 0==i.dashLength?4:i.dashLength;var a=t.area[0],o=t.height-t.area[2];if("dash"==i.gridType&&r.setLineDash([i.dashLength,i.dashLength]),r.setStrokeStyle(i.gridColor||"#cccccc"),r.setLineWidth(1*t.pix),r.beginPath(),r.moveTo(e,a),r.lineTo(e,o),r.stroke(),r.setLineDash([]),i.xAxisLabel){var s=t.categories[t.tooltip.index];r.setFontSize(n.fontSize);var c=x(s,n.fontSize,r),u=e-.5*c,f=o+2*t.pix;r.beginPath(),r.setFillStyle(l(i.labelBgColor||n.toolTipBackground,i.labelBgOpacity||n.toolTipOpacity)),r.setStrokeStyle(i.labelBgColor||n.toolTipBackground),r.setLineWidth(1*t.pix),r.rect(u-i.boxPadding*t.pix,f,c+2*i.boxPadding*t.pix,n.fontSize+2*i.boxPadding*t.pix),r.closePath(),r.stroke(),r.fill(),r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(i.labelFontColor||t.fontColor),r.fillText(String(s),u,f+i.boxPadding*t.pix+n.fontSize),r.closePath(),r.stroke()}}(n.tooltip.offset.x,n,r,i),t=s({x:0,y:0},t),t.y-=8*n.pix;var y=e.map((function(e){return x(e.text,u,i)})),m=d+p+4*h+Math.max.apply(null,y),_=2*h+e.length*f;if(0!=c.showBox){t.x-Math.abs(n._scrollDistance_||0)+g+m>n.width&&(v=!0),_+t.y>n.height&&(t.y=n.height-_),i.beginPath(),i.setFillStyle(l(c.bgColor,c.bgOpacity)),i.setLineWidth(c.borderWidth*n.pix),i.setStrokeStyle(l(c.borderColor,c.borderOpacity));var b=c.borderRadius;v?(m+g>n.width&&(t.x=n.width+Math.abs(n._scrollDistance_||0)+g+(m-n.width)),m>t.x&&(t.x=n.width+Math.abs(n._scrollDistance_||0)+g+(m-n.width)),c.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x-g,t.y+10*n.pix+5*n.pix)),i.arc(t.x-g-b,t.y+_-b,b,0,Math.PI/2,!1),i.arc(t.x-g-Math.round(m)+b,t.y+_-b,b,Math.PI/2,Math.PI,!1),i.arc(t.x-g-Math.round(m)+b,t.y+b,b,-Math.PI,-Math.PI/2,!1),i.arc(t.x-g-b,t.y+b,b,-Math.PI/2,0,!1),c.showArrow&&(i.lineTo(t.x-g,t.y+10*n.pix-5*n.pix),i.lineTo(t.x,t.y+10*n.pix))):(c.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x+g,t.y+10*n.pix-5*n.pix)),i.arc(t.x+g+b,t.y+b,b,-Math.PI,-Math.PI/2,!1),i.arc(t.x+g+Math.round(m)-b,t.y+b,b,-Math.PI/2,0,!1),i.arc(t.x+g+Math.round(m)-b,t.y+_-b,b,0,Math.PI/2,!1),i.arc(t.x+g+b,t.y+_-b,b,Math.PI/2,Math.PI,!1),c.showArrow&&(i.lineTo(t.x+g,t.y+10*n.pix+5*n.pix),i.lineTo(t.x,t.y+10*n.pix))),i.closePath(),i.fill(),c.borderWidth>0&&i.stroke(),c.legendShow&&e.forEach((function(e,r){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var a=t.x+g+2*h,o=t.y+(f-u)/2+f*r+h+1;switch(v&&(a=t.x-m-g+2*h),e.legendShape){case"line":i.moveTo(a,o+.5*d-2*n.pix),i.fillRect(a,o+.5*d-2*n.pix,d,4*n.pix);break;case"triangle":i.moveTo(a+7.5*n.pix,o+.5*d-5*n.pix),i.lineTo(a+2.5*n.pix,o+.5*d+5*n.pix),i.lineTo(a+12.5*n.pix,o+.5*d+5*n.pix),i.lineTo(a+7.5*n.pix,o+.5*d-5*n.pix);break;case"diamond":i.moveTo(a+7.5*n.pix,o+.5*d-5*n.pix),i.lineTo(a+2.5*n.pix,o+.5*d),i.lineTo(a+7.5*n.pix,o+.5*d+5*n.pix),i.lineTo(a+12.5*n.pix,o+.5*d),i.lineTo(a+7.5*n.pix,o+.5*d-5*n.pix);break;case"circle":i.moveTo(a+7.5*n.pix,o+.5*d),i.arc(a+7.5*n.pix,o+.5*d,5*n.pix,0,2*Math.PI);break;case"rect":i.moveTo(a,o+.5*d-5*n.pix),i.fillRect(a,o+.5*d-5*n.pix,15*n.pix,10*n.pix);break;case"square":i.moveTo(a+2*n.pix,o+.5*d-5*n.pix),i.fillRect(a+2*n.pix,o+.5*d-5*n.pix,10*n.pix,10*n.pix);break;default:i.moveTo(a,o+.5*d-5*n.pix),i.fillRect(a,o+.5*d-5*n.pix,15*n.pix,10*n.pix)}i.closePath(),i.fill()}})),e.forEach((function(e,n){var r=t.x+g+2*h+d+p;v&&(r=t.x-m-g+2*h+d+p);var a=t.y+f*n+(f-u)/2-1+h+u;i.beginPath(),i.setFontSize(u),i.setTextBaseline("normal"),i.setFillStyle(c.fontColor),i.fillText(e.text,r,a),i.closePath(),i.stroke()}))}}function be(e,t,n,r,i,a){var o=e.extra.tooltip||{};o.horizentalLine&&e.tooltip&&1===r&&("line"==e.type||"area"==e.type||"column"==e.type||"mount"==e.type||"candle"==e.type||"mix"==e.type)&&ye(e,t,n),n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&n.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&_e(e.tooltip.textList,e.tooltip.offset,e,t,n),n.restore()}function we(e,t,n,r){var i=t.chartData.xAxisData,a=i.xAxisPoints,o=i.startX,s=i.endX,c=i.eachSpacing,l="center";"bar"!=t.type&&"line"!=t.type&&"area"!=t.type&&"scatter"!=t.type&&"bubble"!=t.type||(l=t.xAxis.boundaryGap);var u=t.height-t.area[2],f=t.area[0];if(t.enableScroll&&t.xAxis.scrollShow){var h=t.height-t.area[2]+n.xAxisHeight,d=s-o,p=c*(a.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),p+=(t.extra.mount.widthRatio-1)*c);var g=d*d/p,v=0;t._scrollDistance_&&(v=-t._scrollDistance_*d/p),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),r.moveTo(o,h),r.lineTo(s,h),r.stroke(),r.closePath(),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),r.moveTo(o+v,h),r.lineTo(o+v+g,h),r.stroke(),r.closePath(),r.setLineCap("butt")}if(r.save(),t._scrollDistance_&&0!==t._scrollDistance_&&r.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),a.forEach((function(e,n){n>0&&(r.beginPath(),r.moveTo(e-c/2,u),r.lineTo(e-c/2,u+3*t.pix),r.closePath(),r.stroke())}))),!0!==t.xAxis.disableGrid&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&r.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,a.forEach((function(e,n){n%t.xAxis.gridEval==0&&(r.beginPath(),r.moveTo(e,u),r.lineTo(e,f),r.stroke())})),r.setLineDash([])),!0!==t.xAxis.disabled){var y=e.length;t.xAxis.labelCount&&(y=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,y-=1);for(var m=Math.ceil(e.length/y),_=[],b=e.length,w=0;w<b;w++)w%m!==0?_.push(""):_.push(e[w]);_[b-1]=e[b-1];var S=t.xAxis.fontSize*t.pix||n.fontSize;0===n._xAxisTextAngle_?_.forEach((function(e,n){var i=t.xAxis.formatter?t.xAxis.formatter(e,n,t):e,o=-x(String(i),S,r)/2;"center"==l&&(o+=c/2);t.xAxis.scrollShow&&t.pix;var s=t._scrollDistance_||0,f="center"==l?a[n]+c/2:a[n];f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1&&(r.beginPath(),r.setFontSize(S),r.setFillStyle(t.xAxis.fontColor||t.fontColor),r.fillText(String(i),a[n]+o,u+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.fontSize)*t.pix/2+t.xAxis.fontSize*t.pix),r.closePath(),r.stroke())})):_.forEach((function(e,i){var o=t.xAxis.formatter?t.xAxis.formatter(e):e,s=t._scrollDistance_||0,f="center"==l?a[i]+c/2:a[i];if(f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1){r.save(),r.beginPath(),r.setFontSize(S),r.setFillStyle(t.xAxis.fontColor||t.fontColor);var h=x(String(o),S,r),d=a[i];"center"==l&&(d=a[i]+c/2);t.xAxis.scrollShow&&6*t.pix;var p=u+t.xAxis.marginTop*t.pix+S-S*Math.abs(Math.sin(n._xAxisTextAngle_));t.xAxis.rotateAngle<0?(d-=S/2,h=0):(d+=S/2,h=-h),r.translate(d,p),r.rotate(-1*n._xAxisTextAngle_),r.fillText(String(o),h,0),r.closePath(),r.stroke(),r.restore()}}))}r.restore(),t.xAxis.title&&(r.beginPath(),r.setFontSize(t.xAxis.titleFontSize*t.pix),r.setFillStyle(t.xAxis.titleFontColor),r.fillText(String(t.xAxis.title),t.width-t.area[1]+t.xAxis.titleOffsetX*t.pix,t.height-t.area[2]+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.titleFontSize)*t.pix/2+(t.xAxis.titleFontSize+t.xAxis.titleOffsetY)*t.pix),r.closePath(),r.stroke()),t.xAxis.axisLine&&(r.beginPath(),r.setStrokeStyle(t.xAxis.axisLineColor),r.setLineWidth(1*t.pix),r.moveTo(o,t.height-t.area[2]),r.lineTo(s,t.height-t.area[2]),r.stroke())}function Se(e,t,n,r){if(!0!==t.yAxis.disableGrid){var i=t.height-t.area[0]-t.area[2],a=i/t.yAxis.splitNumber,o=t.area[3],s=t.chartData.xAxisData.xAxisPoints,c=t.chartData.xAxisData.eachSpacing,l=c*(s.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),l+=(t.extra.mount.widthRatio-1)*c);var u=o+l,f=[],h=1;!1===t.xAxis.axisLine&&(h=0);for(var d=h;d<t.yAxis.splitNumber+1;d++)f.push(t.height-t.area[2]-a*d);r.save(),t._scrollDistance_&&0!==t._scrollDistance_&&r.translate(t._scrollDistance_,0),"dash"==t.yAxis.gridType&&r.setLineDash([t.yAxis.dashLength*t.pix,t.yAxis.dashLength*t.pix]),r.setStrokeStyle(t.yAxis.gridColor),r.setLineWidth(1*t.pix),f.forEach((function(e,t){r.beginPath(),r.moveTo(o,e),r.lineTo(u,e),r.stroke()})),r.setLineDash([]),r.restore()}}function ke(e,t,n,r){if(!0!==t.yAxis.disabled){var i=t.height-t.area[0]-t.area[2],a=i/t.yAxis.splitNumber,o=t.area[3],s=t.width-t.area[1],c=t.height-t.area[2];r.beginPath(),r.setFillStyle(t.background),1==t.enableScroll&&t.xAxis.scrollPosition&&"left"!==t.xAxis.scrollPosition&&r.fillRect(0,0,o,c+2*t.pix),1==t.enableScroll&&t.xAxis.scrollPosition&&"right"!==t.xAxis.scrollPosition&&r.fillRect(s,0,t.width,c+2*t.pix),r.closePath(),r.stroke();var l=t.area[3],u=t.width-t.area[1],f=t.area[3]+(t.width-t.area[1]-t.area[3])/2;if(t.yAxis.data)for(var h=function(e){var o=t.yAxis.data[e];if(p=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)p.push(t.area[0]+i/o.categories.length/2+i/o.categories.length*s);else for(var c=0;c<=t.yAxis.splitNumber;c++)p.push(t.area[0]+a*c);if(!0!==o.disabled){var h=t.chartData.yAxisData.rangesFormat[e],d=o.fontSize?o.fontSize*t.pix:n.fontSize,g=t.chartData.yAxisData.yAxisWidth[e],v=o.textAlign||"right";if(h.forEach((function(e,n){var i=p[n];r.beginPath(),r.setFontSize(d),r.setLineWidth(1*t.pix),r.setStrokeStyle(o.axisLineColor||"#cccccc"),r.setFillStyle(o.fontColor||t.fontColor);var a=0,s=4*t.pix;if("left"==g.position){switch(1==o.calibration&&(r.moveTo(l,i),r.lineTo(l-3*t.pix,i),s+=3*t.pix),v){case"left":r.setTextAlign("left"),a=l-g.width;break;case"right":r.setTextAlign("right"),a=l-s;break;default:r.setTextAlign("center"),a=l-g.width/2}r.fillText(String(e),a,i+d/2-3*t.pix)}else if("right"==g.position){switch(1==o.calibration&&(r.moveTo(u,i),r.lineTo(u+3*t.pix,i),s+=3*t.pix),v){case"left":r.setTextAlign("left"),a=u+s;break;case"right":r.setTextAlign("right"),a=u+g.width;break;default:r.setTextAlign("center"),a=u+g.width/2}r.fillText(String(e),a,i+d/2-3*t.pix)}else if("center"==g.position){switch(1==o.calibration&&(r.moveTo(f,i),r.lineTo(f-3*t.pix,i),s+=3*t.pix),v){case"left":r.setTextAlign("left"),a=f-g.width;break;case"right":r.setTextAlign("right"),a=f-s;break;default:r.setTextAlign("center"),a=f-g.width/2}r.fillText(String(e),a,i+d/2-3*t.pix)}r.closePath(),r.stroke(),r.setTextAlign("left")})),!1!==o.axisLine&&(r.beginPath(),r.setStrokeStyle(o.axisLineColor||"#cccccc"),r.setLineWidth(1*t.pix),"left"==g.position?(r.moveTo(l,t.height-t.area[2]),r.lineTo(l,t.area[0])):"right"==g.position?(r.moveTo(u,t.height-t.area[2]),r.lineTo(u,t.area[0])):"center"==g.position&&(r.moveTo(f,t.height-t.area[2]),r.lineTo(f,t.area[0])),r.stroke()),t.yAxis.showTitle){var y=o.titleFontSize*t.pix||n.fontSize,m=o.title;r.beginPath(),r.setFontSize(y),r.setFillStyle(o.titleFontColor||t.fontColor),"left"==g.position?r.fillText(m,l-x(m,y,r)/2+(o.titleOffsetX||0),t.area[0]-(10-(o.titleOffsetY||0))*t.pix):"right"==g.position?r.fillText(m,u-x(m,y,r)/2+(o.titleOffsetX||0),t.area[0]-(10-(o.titleOffsetY||0))*t.pix):"center"==g.position&&r.fillText(m,f-x(m,y,r)/2+(o.titleOffsetX||0),t.area[0]-(10-(o.titleOffsetY||0))*t.pix),r.closePath(),r.stroke()}"left"==g.position?l-=g.width+t.yAxis.padding*t.pix:u+=g.width+t.yAxis.padding*t.pix}},d=0;d<t.yAxis.data.length;d++){var p;h(d)}}}function Ae(e,t,n,r,i){if(!1!==t.legend.show){var a=i.legendData,o=a.points,s=a.area,c=t.legend.padding*t.pix,l=t.legend.fontSize*t.pix,u=15*t.pix,f=5*t.pix,h=t.legend.itemGap*t.pix,d=Math.max(t.legend.lineHeight*t.pix,l);r.beginPath(),r.setLineWidth(t.legend.borderWidth*t.pix),r.setStrokeStyle(t.legend.borderColor),r.setFillStyle(t.legend.backgroundColor),r.moveTo(s.start.x,s.start.y),r.rect(s.start.x,s.start.y,s.width,s.height),r.closePath(),r.fill(),r.stroke(),o.forEach((function(e,i){var o,p=0;p=a.widthArr[i],o=a.heightArr[i];var g=0,v=0;if("top"==t.legend.position||"bottom"==t.legend.position){switch(t.legend.float){case"left":g=s.start.x+c;break;case"right":g=s.start.x+s.width-p;break;default:g=s.start.x+(s.width-p)/2}v=s.start.y+c+i*d}else p=0==i?0:a.widthArr[i-1],g=s.start.x+c+p,v=s.start.y+c+(s.height-o)/2;r.setFontSize(n.fontSize);for(var y=0;y<e.length;y++){var m=e[y];switch(m.area=[0,0,0,0],m.area[0]=g,m.area[1]=v,m.area[3]=v+d,r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(m.show?m.color:t.legend.hiddenColor),r.setFillStyle(m.show?m.color:t.legend.hiddenColor),m.legendShape){case"line":r.moveTo(g,v+.5*d-2*t.pix),r.fillRect(g,v+.5*d-2*t.pix,15*t.pix,4*t.pix);break;case"triangle":r.moveTo(g+7.5*t.pix,v+.5*d-5*t.pix),r.lineTo(g+2.5*t.pix,v+.5*d+5*t.pix),r.lineTo(g+12.5*t.pix,v+.5*d+5*t.pix),r.lineTo(g+7.5*t.pix,v+.5*d-5*t.pix);break;case"diamond":r.moveTo(g+7.5*t.pix,v+.5*d-5*t.pix),r.lineTo(g+2.5*t.pix,v+.5*d),r.lineTo(g+7.5*t.pix,v+.5*d+5*t.pix),r.lineTo(g+12.5*t.pix,v+.5*d),r.lineTo(g+7.5*t.pix,v+.5*d-5*t.pix);break;case"circle":r.moveTo(g+7.5*t.pix,v+.5*d),r.arc(g+7.5*t.pix,v+.5*d,5*t.pix,0,2*Math.PI);break;case"rect":r.moveTo(g,v+.5*d-5*t.pix),r.fillRect(g,v+.5*d-5*t.pix,15*t.pix,10*t.pix);break;case"square":r.moveTo(g+5*t.pix,v+.5*d-5*t.pix),r.fillRect(g+5*t.pix,v+.5*d-5*t.pix,10*t.pix,10*t.pix);break;case"none":break;default:r.moveTo(g,v+.5*d-5*t.pix),r.fillRect(g,v+.5*d-5*t.pix,15*t.pix,10*t.pix)}r.closePath(),r.fill(),r.stroke(),g+=u+f;var _=.5*d+.5*l-2,b=m.legendText?m.legendText:m.name;r.beginPath(),r.setFontSize(l),r.setFillStyle(m.show?t.legend.fontColor:t.legend.hiddenColor),r.fillText(b,g,v+_),r.closePath(),r.stroke(),"top"==t.legend.position||"bottom"==t.legend.position?(g+=x(b,l,r)+h,m.area[2]=g):(m.area[2]=g+x(b,l,r)+h,g-=u+f,v+=d)}}))}}function Te(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==t.type?t.extra.pie:t.extra.ring),o={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2};0==n.pieChartLinePadding&&(n.pieChartLinePadding=a.activeRadius*t.pix);var c=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);c=c<10?10:c,a.customRadius>0&&(c=a.customRadius*t.pix),e=j(e,c,i);var u=a.activeRadius*t.pix;if(a.customColor=y(a.linearType,a.customColor,e,n),e=e.map((function(e){return e._start_+=a.offsetAngle*Math.PI/180,e})),e.forEach((function(e,n){t.tooltip&&t.tooltip.index==n&&(r.beginPath(),r.setFillStyle(l(e.color,a.activeOpacity||.5)),r.moveTo(o.x,o.y),r.arc(o.x,o.y,e._radius_+u,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.lineJoin="round",r.setStrokeStyle(a.borderColor);var i,s=e.color;"custom"==a.linearType&&(i=r.createCircularGradient?r.createCircularGradient(o.x,o.y,e._radius_):r.createRadialGradient(o.x,o.y,0,o.x,o.y,e._radius_),i.addColorStop(0,l(a.customColor[e.linearIndex],1)),i.addColorStop(1,l(e.color,1)),s=i);r.setFillStyle(s),r.moveTo(o.x,o.y),r.arc(o.x,o.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill(),1==a.border&&r.stroke()})),"ring"===t.type){var f=.6*c;"number"===typeof a.ringWidth&&a.ringWidth>0&&(f=Math.max(0,c-a.ringWidth*t.pix)),r.beginPath(),r.setFillStyle(a.centerColor),r.moveTo(o.x,o.y),r.arc(o.x,o.y,f,0,2*Math.PI),r.closePath(),r.fill()}return!1!==t.dataLabel&&1===i&&ge(e,t,n,r,0,o),1===i&&"ring"===t.type&&ce(t,n,r,o),{center:o,radius:c,series:e}}function Pe(e,t){var n=Array(2),r=20037508.34*e/180,i=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return i=20037508.34*i/180,n[0]=r,n[1]=i,n}function Ce(e,t,n,r,i,a){return{x:(t-n.xMin)*r+i,y:(n.yMax-e)*r+a}}function Oe(e,t,n){if(t[1]==n[1])return!1;if(t[1]>e[1]&&n[1]>e[1])return!1;if(t[1]<e[1]&&n[1]<e[1])return!1;if(t[1]==e[1]&&n[1]>e[1])return!1;if(n[1]==e[1]&&t[1]>e[1])return!1;if(t[0]<e[0]&&n[1]<e[1])return!1;var r=n[0]-(n[0]-t[0])*(n[1]-e[1])/(n[1]-t[1]);return!(r<e[0])}function De(e,t,n){for(var r=0,i=0;i<t.length;i++){var a=t[i][0];1==t.length&&(a=t[i][0]);for(var o=0;o<a.length-1;o++){var s=a[o],c=a[o+1];n&&(s=Pe(a[o][0],a[o][1]),c=Pe(a[o+1][0],a[o+1][1])),Oe(e,s,c)&&(r+=1)}}return r%2==1}function Le(e,t,n){n=0==n?1:n;for(var r=[],i=0;i<n;i++)r[i]=Math.random();return Math.floor(r.reduce((function(e,t){return e+t}))/n*(t-e))+e}function Me(e,t,n,r){for(var i=!1,a=0;a<t.length;a++)if(t[a].area){if(!(e[3]<t[a].area[1]||e[0]>t[a].area[2]||e[1]>t[a].area[3]||e[2]<t[a].area[0])){i=!0;break}if(e[0]<0||e[1]<0||e[2]>n||e[3]>r){i=!0;break}i=!1}return i}function Ie(e,t,n){var r=e.series;switch(t){case"normal":for(var i=0;i<r.length;i++){var a=r[i].name,o=r[i].textSize*e.pix,s=x(a,o,n),c=void 0,l=void 0,u=void 0,f=0;while(1){f++,c=Le(-e.width/2,e.width/2,5)-s/2,l=Le(-e.height/2,e.height/2,5)+o/2,u=[c-5+e.width/2,l-5-o+e.height/2,c+s+5+e.width/2,l+5+e.height/2];var h=Me(u,r,e.width,e.height);if(!h)break;if(1e3==f){u=[-100,-100,-100,-100];break}}r[i].area=u}break;case"vertical":for(var d=function(){return Math.random()>.7},p=0;p<r.length;p++){var g=r[p].name,v=r[p].textSize*e.pix,y=x(g,v,n),m=d(),_=void 0,b=void 0,w=void 0,S=void 0,k=0;while(1){k++;var A=void 0;if(m?(_=Le(-e.width/2,e.width/2,5)-y/2,b=Le(-e.height/2,e.height/2,5)+v/2,w=[b-5-y+e.width/2,-_-5+e.height/2,b+5+e.width/2,-_+v+5+e.height/2],S=[e.width-(e.width/2-e.height/2)-(-_+v+5+e.height/2)-5,e.height/2-e.width/2+(b-5-y+e.width/2)-5,e.width-(e.width/2-e.height/2)-(-_+v+5+e.height/2)+v,e.height/2-e.width/2+(b-5-y+e.width/2)+y+5],A=Me(S,r,e.height,e.width)):(_=Le(-e.width/2,e.width/2,5)-y/2,b=Le(-e.height/2,e.height/2,5)+v/2,w=[_-5+e.width/2,b-5-v+e.height/2,_+y+5+e.width/2,b+5+e.height/2],A=Me(w,r,e.width,e.height)),!A)break;if(1e3==k){w=[-1e3,-1e3,-1e3,-1e3];break}}m?(r[p].area=S,r[p].areav=w):r[p].area=w,r[p].rotate=m}break}return r}function Fe(e,t,n,r,i,a,o){for(var s=0;s<e.length;s++){var l=e[s];if(!1!==l.labelShow){var u=void 0,f=void 0,h=void 0,d=void 0,p=l.formatter?l.formatter(l,s,e,t):c.toFixed(100*l._proportion_)+"%";p=l.labelText?l.labelText:p,"right"==i&&(u=s==e.length-1?(l.funnelArea[2]+o.x)/2:(l.funnelArea[2]+e[s+1].funnelArea[2])/2,f=u+2*a,h=l.funnelArea[1]+r/2,d=l.textSize*t.pix||t.fontSize*t.pix,n.setLineWidth(1*t.pix),n.setStrokeStyle(l.color),n.setFillStyle(l.color),n.beginPath(),n.moveTo(u,h),n.lineTo(f,h),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(f,h),n.arc(f,h,2*t.pix,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(d),n.setFillStyle(l.textColor||t.fontColor),n.fillText(p,f+5,h+d/2-2),n.closePath(),n.stroke(),n.closePath()),"left"==i&&(u=s==e.length-1?(l.funnelArea[0]+o.x)/2:(l.funnelArea[0]+e[s+1].funnelArea[0])/2,f=u-2*a,h=l.funnelArea[1]+r/2,d=l.textSize*t.pix||t.fontSize*t.pix,n.setLineWidth(1*t.pix),n.setStrokeStyle(l.color),n.setFillStyle(l.color),n.beginPath(),n.moveTo(u,h),n.lineTo(f,h),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(f,h),n.arc(f,h,2,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(d),n.setFillStyle(l.textColor||t.fontColor),n.fillText(p,f-5-x(p,d,n),h+d/2-2),n.closePath(),n.stroke(),n.closePath())}}}function Ee(e,t,n,r,i,a,o){for(var s=0;s<e.length;s++){var c=e[s],l=void 0,u=void 0;c.centerText&&(l=c.funnelArea[1]+r/2,u=c.centerTextSize*t.pix||t.fontSize*t.pix,n.beginPath(),n.setFontSize(u),n.setFillStyle(c.centerTextColor||"#FFFFFF"),n.fillText(c.centerText,o.x-x(c.centerText,u,n)/2,l+u/2-2),n.closePath(),n.stroke(),n.closePath())}}function je(e,t){t.save(),t.translate(0,.5),t.restore(),t.draw()}var Re={easeIn:function(e){return Math.pow(e,3)},easeOut:function(e){return Math.pow(e-1,3)+1},easeInOut:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},linear:function(e){return e}};function $e(e){this.isStop=!1,e.duration="undefined"===typeof e.duration?1e3:e.duration,e.timing=e.timing||"easeInOut";var t=function(){return"undefined"!==typeof setTimeout?function(e,t){setTimeout((function(){var t=+new Date;e(t)}),t)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(e){e(null)}}(),n=null,r=function(i){if(null===i||!0===this.isStop)return e.onProcess&&e.onProcess(1),void(e.onAnimationFinish&&e.onAnimationFinish());if(null===n&&(n=i),i-n<e.duration){var a=(i-n)/e.duration,o=Re[e.timing];a=o(a),e.onProcess&&e.onProcess(a),t(r,17)}else e.onProcess&&e.onProcess(1),e.onAnimationFinish&&e.onAnimationFinish()};r=r.bind(this),t(r,17)}function Ne(e,t,n,r){var a=this,o=this,u=t.series;"pie"!==e&&"ring"!==e&&"mount"!==e&&"rose"!==e&&"funnel"!==e||(u=function(e,t,n){var r=[];if(e.length>0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,a=0;a<i.length;a++)i[a].formatter=e[0].formatter,i[a].data=i[a].value,r.push(i[a]);t.series=r}else r=e;return r}(u,t));var f=t.categories;if("mount"===e){f=[];for(var h=0;h<u.length;h++)!1!==u[h].show&&f.push(u[h].name);t.categories=f}u=v(u,t,n);var g=t.animation?t.duration:0;o.animationInstance&&o.animationInstance.stop();var m=null;if("candle"==e){var b=s({},t.extra.candle.average);b.show?(m=function(e,t,n,r){for(var i=[],a=0;a<e.length;a++){for(var o={data:[],name:t[a],color:n[a]},s=0,c=r.length;s<c;s++)if(s<e[a])o.data.push(null);else{for(var l=0,u=0;u<e[a];u++)l+=r[s-u][1];o.data.push(+(l/e[a]).toFixed(3))}i.push(o)}return i}(b.day,b.name,b.color,u[0].data),m=v(m,t,n),t.seriesMA=m):m=t.seriesMA?t.seriesMA=v(t.seriesMA,t,n):u}else m=u;t._series_=u=O(u),t.area=new Array(4);for(var w=0;w<4;w++)t.area[w]=t.padding[w]*t.pix;var S=function(e,t,n,r,i){var a={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===t.legend.show)return r.legendData=a,a;var o=t.legend.padding*t.pix,s=t.legend.margin*t.pix,c=t.legend.fontSize?t.legend.fontSize*t.pix:n.fontSize,l=15*t.pix,u=5*t.pix,f=Math.max(t.legend.lineHeight*t.pix,c);if("top"==t.legend.position||"bottom"==t.legend.position){for(var h=[],d=0,p=[],g=[],v=0;v<e.length;v++){var y=e[v],m=y.legendText?y.legendText:y.name,_=l+u+x(m||"undefined",c,i)+t.legend.itemGap*t.pix;d+_>t.width-t.area[1]-t.area[3]?(h.push(g),p.push(d-t.legend.itemGap*t.pix),d=_,g=[y]):(d+=_,g.push(y))}if(g.length){h.push(g),p.push(d-t.legend.itemGap*t.pix),a.widthArr=p;var b=Math.max.apply(null,p);switch(t.legend.float){case"left":a.area.start.x=t.area[3],a.area.end.x=t.area[3]+b+2*o;break;case"right":a.area.start.x=t.width-t.area[1]-b-2*o,a.area.end.x=t.width-t.area[1];break;default:a.area.start.x=(t.width-b)/2-o,a.area.end.x=(t.width+b)/2+o}a.area.width=b+2*o,a.area.wholeWidth=b+2*o,a.area.height=h.length*f+2*o,a.area.wholeHeight=h.length*f+2*o+2*s,a.points=h}}else{var w=e.length,S=t.height-t.area[0]-t.area[2]-2*s-2*o,k=Math.min(Math.floor(S/f),w);switch(a.area.height=k*f+2*o,a.area.wholeHeight=k*f+2*o,t.legend.float){case"top":a.area.start.y=t.area[0]+s,a.area.end.y=t.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=t.height-t.area[2]-s-a.area.height,a.area.end.y=t.height-t.area[2]-s;break;default:a.area.start.y=(t.height-a.area.height)/2,a.area.end.y=(t.height+a.area.height)/2}for(var A=w%k===0?w/k:Math.floor(w/k+1),T=[],P=0;P<A;P++){var C=e.slice(P*k,P*k+k);T.push(C)}if(a.points=T,T.length){for(var O=0;O<T.length;O++){for(var D=T[O],L=0,M=0;M<D.length;M++){var I=l+u+x(D[M].name||"undefined",c,i)+t.legend.itemGap*t.pix;I>L&&(L=I)}a.widthArr.push(L),a.heightArr.push(D.length*f+2*o)}for(var F=0,E=0;E<a.widthArr.length;E++)F+=a.widthArr[E];a.area.width=F-t.legend.itemGap*t.pix+2*o,a.area.wholeWidth=a.area.width+o}}switch(t.legend.position){case"top":a.area.start.y=t.area[0]+s,a.area.end.y=t.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=t.height-t.area[2]-a.area.height-s,a.area.end.y=t.height-t.area[2]-s;break;case"left":a.area.start.x=t.area[3],a.area.end.x=t.area[3]+a.area.width;break;case"right":a.area.start.x=t.width-t.area[1]-a.area.width,a.area.end.x=t.width-t.area[1];break}return r.legendData=a,a}(m,t,n,t.chartData,r),T=S.area.wholeHeight,P=S.area.wholeWidth;switch(t.legend.position){case"top":t.area[0]+=T;break;case"bottom":t.area[2]+=T;break;case"left":t.area[3]+=P;break;case"right":t.area[1]+=P;break}var C={},D=0;if("line"===t.type||"column"===t.type||"mount"===t.type||"area"===t.type||"mix"===t.type||"candle"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){if(C=ie(u,t,n,r),D=C.yAxisWidth,t.yAxis.showTitle){for(var L=0,re=0;re<t.yAxis.data.length;re++)L=Math.max(L,t.yAxis.data[re].titleFontSize?t.yAxis.data[re].titleFontSize*t.pix:n.fontSize);t.area[0]+=L}for(var ye=0,_e=0,Oe=0;Oe<D.length;Oe++)"left"==D[Oe].position?(t.area[3]+=_e>0?D[Oe].width+t.yAxis.padding*t.pix:D[Oe].width,_e+=1):"right"==D[Oe].position&&(t.area[1]+=ye>0?D[Oe].width+t.yAxis.padding*t.pix:D[Oe].width,ye+=1)}else n.yAxisWidth=D;if(t.chartData.yAxisData=C,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=K(t.categories,t);var De=I(t.categories,t,0,t.chartData.xAxisData.eachSpacing,r),Le=De.xAxisHeight,Me=De.angle;n.xAxisHeight=Le,n._xAxisTextAngle_=Me,t.area[2]+=Le,t.chartData.categoriesData=De}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=F(u,t,n,r),f=t.chartData.xAxisData.rangesFormat;var Re=I(f,t,0,t.chartData.xAxisData.eachSpacing,r),Ne=Re.xAxisHeight,Be=Re.angle;n.xAxisHeight=Ne,n._xAxisTextAngle_=Be,t.area[2]+=Ne,t.chartData.categoriesData=Re}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var Ue,ze=t.chartData.xAxisData.xAxisPoints,We=t.chartData.xAxisData.startX,He=t.chartData.xAxisData.endX,qe=t.chartData.xAxisData.eachSpacing,Ve=qe*(ze.length-1),Ge=He-We;Ue=Ge-Ve,o.scrollOption.currentOffset=Ue,o.scrollOption.startTouchX=Ue,o.scrollOption.distance=0,o.scrollOption.lastMoveTime=0,t._scrollDistance_=Ue}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(n._pieTextMaxLength_=!1===t.dataLabel?0:function(e,t,n,r){e=j(e);for(var i=0,a=0;a<e.length;a++){var o=e[a],s=o.formatter?o.formatter(+o._proportion_.toFixed(2)):c.toFixed(100*o._proportion_)+"%";i=Math.max(i,x(s,o.textSize*r.pix||t.fontSize,n))}return i}(m,n,r,t)),e){case"word":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=Ie(t,a.type,r)),r.beginPath(),r.setFillStyle(t.background),r.rect(0,0,t.width,t.height),r.fill(),r.save();var o=t.chartData.wordCloudData;r.translate(t.width/2,t.height/2);for(var c=0;c<o.length;c++){r.save(),o[c].rotate&&r.rotate(90*Math.PI/180);var l=o[c].name,u=o[c].textSize*t.pix,f=x(l,u,r);r.beginPath(),r.setStrokeStyle(o[c].color),r.setFillStyle(o[c].color),r.setFontSize(u),o[c].rotate?o[c].areav[0]>0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(l,(o[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(o[c].areav[1]+5+u-t.height/2)*i):r.fillText(l,(o[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(o[c].areav[1]+5+u-t.height/2)*i)):o[c].area[0]>0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(l,(o[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(o[c].area[1]+5+u-t.height/2)*i):r.fillText(l,(o[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(o[c].area[1]+5+u-t.height/2)*i)),r.stroke(),r.restore()}r.restore()}(u,t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"map":r.clearRect(0,0,t.width,t.height),function(e,t,n,r){var i,a,o=s({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},t.extra.map),c=e,u=function(e){for(var t,n={xMin:180,xMax:0,yMin:90,yMax:0},r=0;r<e.length;r++)for(var i=e[r].geometry.coordinates,a=0;a<i.length;a++){t=i[a],1==t.length&&(t=t[0]);for(var o=0;o<t.length;o++){var s=t[o][0],c=t[o][1],l={x:s,y:c};n.xMin=n.xMin<l.x?n.xMin:l.x,n.xMax=n.xMax>l.x?n.xMax:l.x,n.yMin=n.yMin<l.y?n.yMin:l.y,n.yMax=n.yMax>l.y?n.yMax:l.y}}return n}(c);if(o.mercator){var f=Pe(u.xMax,u.yMax),h=Pe(u.xMin,u.yMin);u.xMax=f[0],u.yMax=f[1],u.xMin=h[0],u.yMin=h[1]}for(var d=t.width/Math.abs(u.xMax-u.xMin),p=t.height/Math.abs(u.yMax-u.yMin),g=d<p?d:p,v=t.width/2-Math.abs(u.xMax-u.xMin)/2*g,y=t.height/2-Math.abs(u.yMax-u.yMin)/2*g,m=0;m<c.length;m++){r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(o.borderColor),r.setFillStyle(l(e[m].color,e[m].fillOpacity||o.fillOpacity)),1==o.active&&t.tooltip&&t.tooltip.index==m&&(r.setStrokeStyle(o.activeBorderColor),r.setFillStyle(l(o.activeFillColor,o.activeFillOpacity)));for(var _=c[m].geometry.coordinates,b=0;b<_.length;b++){i=_[b],1==i.length&&(i=i[0]);for(var w=0;w<i.length;w++){var S=Array(2);S=o.mercator?Pe(i[w][0],i[w][1]):i[w],a=Ce(S[1],S[0],u,g,v,y),0===w?(r.beginPath(),r.moveTo(a.x,a.y)):r.lineTo(a.x,a.y)}r.fill(),1==o.border&&r.stroke()}}if(1==t.dataLabel)for(m=0;m<c.length;m++){var k=c[m].properties.centroid;if(k){o.mercator&&(k=Pe(c[m].properties.centroid[0],c[m].properties.centroid[1])),a=Ce(k[1],k[0],u,g,v,y);var A=c[m].textSize*t.pix||n.fontSize,T=c[m].textColor||t.fontColor;o.active&&o.activeTextColor&&t.tooltip&&t.tooltip.index==m&&(T=o.activeTextColor);var P=c[m].properties.name;r.beginPath(),r.setFontSize(A),r.setFillStyle(T),r.fillText(P,a.x-x(P,A,r)/2,a.y+A/2),r.closePath(),r.stroke()}}t.chartData.mapData={bounds:u,scale:g,xoffset:v,yoffset:y,mercator:o.mercator},be(t,n,r,1),r.draw()}(u,t,n,r),setTimeout((function(){a.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),t.chartData.funnelData=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),o=(t.height-t.area[0]-t.area[2])/e.length,c={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},u=a.activeWidth*t.pix,f=Math.min((t.width-t.area[1]-t.area[3])/2-u,(t.height-t.area[0]-t.area[2])/2-u),h=R(e,f,a,o,i);if(r.save(),r.translate(c.x,c.y),a.customColor=y(a.linearType,a.customColor,e,n),"pyramid"==a.type)for(var d=0;d<h.length;d++){if(d==h.length-1){t.tooltip&&t.tooltip.index==d&&(r.beginPath(),r.setFillStyle(l(h[d].color,a.activeOpacity)),r.moveTo(-u,-o),r.lineTo(-h[d].radius-u,0),r.lineTo(h[d].radius+u,0),r.lineTo(u,-o),r.lineTo(-u,-o),r.closePath(),r.fill()),h[d].funnelArea=[c.x-h[d].radius,c.y-o*(d+1),c.x+h[d].radius,c.y-o*d],r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.setStrokeStyle(a.borderColor);var p=l(h[d].color,a.fillOpacity);if("custom"==a.linearType){var g=r.createLinearGradient(h[d].radius,-o,-h[d].radius,-o);g.addColorStop(0,l(h[d].color,a.fillOpacity)),g.addColorStop(.5,l(a.customColor[h[d].linearIndex],a.fillOpacity)),g.addColorStop(1,l(h[d].color,a.fillOpacity)),p=g}r.setFillStyle(p),r.moveTo(0,-o),r.lineTo(-h[d].radius,0),r.lineTo(h[d].radius,0),r.lineTo(0,-o),r.closePath(),r.fill(),1==a.border&&r.stroke()}else{t.tooltip&&t.tooltip.index==d&&(r.beginPath(),r.setFillStyle(l(h[d].color,a.activeOpacity)),r.moveTo(0,0),r.lineTo(-h[d].radius-u,0),r.lineTo(-h[d+1].radius-u,-o),r.lineTo(h[d+1].radius+u,-o),r.lineTo(h[d].radius+u,0),r.lineTo(0,0),r.closePath(),r.fill()),h[d].funnelArea=[c.x-h[d].radius,c.y-o*(d+1),c.x+h[d].radius,c.y-o*d],r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.setStrokeStyle(a.borderColor);p=l(h[d].color,a.fillOpacity);if("custom"==a.linearType){g=r.createLinearGradient(h[d].radius,-o,-h[d].radius,-o);g.addColorStop(0,l(h[d].color,a.fillOpacity)),g.addColorStop(.5,l(a.customColor[h[d].linearIndex],a.fillOpacity)),g.addColorStop(1,l(h[d].color,a.fillOpacity)),p=g}r.setFillStyle(p),r.moveTo(0,0),r.lineTo(-h[d].radius,0),r.lineTo(-h[d+1].radius,-o),r.lineTo(h[d+1].radius,-o),r.lineTo(h[d].radius,0),r.lineTo(0,0),r.closePath(),r.fill(),1==a.border&&r.stroke()}r.translate(0,-o)}else{r.translate(0,-(h.length-1)*o);for(var v=0;v<h.length;v++){if(v==h.length-1){t.tooltip&&t.tooltip.index==v&&(r.beginPath(),r.setFillStyle(l(h[v].color,a.activeOpacity)),r.moveTo(-u-a.minSize/2,0),r.lineTo(-h[v].radius-u,-o),r.lineTo(h[v].radius+u,-o),r.lineTo(u+a.minSize/2,0),r.lineTo(-u-a.minSize/2,0),r.closePath(),r.fill()),h[v].funnelArea=[c.x-h[v].radius,c.y-o,c.x+h[v].radius,c.y],r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.setStrokeStyle(a.borderColor);p=l(h[v].color,a.fillOpacity);if("custom"==a.linearType){g=r.createLinearGradient(h[v].radius,-o,-h[v].radius,-o);g.addColorStop(0,l(h[v].color,a.fillOpacity)),g.addColorStop(.5,l(a.customColor[h[v].linearIndex],a.fillOpacity)),g.addColorStop(1,l(h[v].color,a.fillOpacity)),p=g}r.setFillStyle(p),r.moveTo(0,0),r.lineTo(-a.minSize/2,0),r.lineTo(-h[v].radius,-o),r.lineTo(h[v].radius,-o),r.lineTo(a.minSize/2,0),r.lineTo(0,0),r.closePath(),r.fill(),1==a.border&&r.stroke()}else{t.tooltip&&t.tooltip.index==v&&(r.beginPath(),r.setFillStyle(l(h[v].color,a.activeOpacity)),r.moveTo(0,0),r.lineTo(-h[v+1].radius-u,0),r.lineTo(-h[v].radius-u,-o),r.lineTo(h[v].radius+u,-o),r.lineTo(h[v+1].radius+u,0),r.lineTo(0,0),r.closePath(),r.fill()),h[v].funnelArea=[c.x-h[v].radius,c.y-o*(h.length-v),c.x+h[v].radius,c.y-o*(h.length-v-1)],r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.setStrokeStyle(a.borderColor);p=l(h[v].color,a.fillOpacity);if("custom"==a.linearType){g=r.createLinearGradient(h[v].radius,-o,-h[v].radius,-o);g.addColorStop(0,l(h[v].color,a.fillOpacity)),g.addColorStop(.5,l(a.customColor[h[v].linearIndex],a.fillOpacity)),g.addColorStop(1,l(h[v].color,a.fillOpacity)),p=g}r.setFillStyle(p),r.moveTo(0,0),r.lineTo(-h[v+1].radius,0),r.lineTo(-h[v].radius,-o),r.lineTo(h[v].radius,-o),r.lineTo(h[v+1].radius,0),r.lineTo(0,0),r.closePath(),r.fill(),1==a.border&&r.stroke()}r.translate(0,o)}}return r.restore(),!1!==t.dataLabel&&1===i&&Fe(h,t,r,o,a.labelAlign,u,c),1===i&&Ee(h,t,r,o,a.labelAlign,u,c),{center:c,radius:f,series:h}}(u,t,n,r,e),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var i=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},t.extra.line);a.width*=t.pix;var o=t.chartData.xAxisData,c=o.xAxisPoints,u=o.eachSpacing,f=[];r.save();var h=0,p=t.width+u;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),h=-t._scrollDistance_-2*u+t.area[3],p=h+(t.xAxis.itemCount+4)*u),e.forEach((function(e,o){var s,g,v;r.beginPath(),r.setStrokeStyle(e.color),r.moveTo(-1e4,-1e4),r.lineTo(-10001,-10001),r.stroke(),s=[].concat(t.chartData.yAxisData.ranges[e.index]),g=s.pop(),v=s.shift();var y=e.data,m=Y(y,g,v,c,u,t,n,a,i);f.push(m);var x=M(m,e);if("dash"==e.lineType){var _=e.dashLength?e.dashLength:8;_*=t.pix,r.setLineDash([_,_])}r.beginPath();var b=e.color;if("none"!==a.linearType&&e.linearColor&&e.linearColor.length>0){for(var w=r.createLinearGradient(t.chartData.xAxisData.startX,t.height/2,t.chartData.xAxisData.endX,t.height/2),S=0;S<e.linearColor.length;S++)w.addColorStop(e.linearColor[S][0],l(e.linearColor[S][1],1));b=w}r.setStrokeStyle(b),1==a.onShadow&&e.setShadow&&e.setShadow.length>0?r.setShadow(e.setShadow[0],e.setShadow[1],e.setShadow[2],e.setShadow[3]):r.setShadow(0,0,0,"rgba(0,0,0,0)"),r.setLineWidth(a.width),x.forEach((function(e,t){if(1===e.length)r.moveTo(e[0].x,e[0].y);else{r.moveTo(e[0].x,e[0].y);var n=0;if("curve"===a.type)for(var i=0;i<e.length;i++){var o=e[i];if(0==n&&o.x>h&&(r.moveTo(o.x,o.y),n=1),i>0&&o.x>h&&o.x<p){var s=d(e,i-1);r.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===a.type)for(var c=0;c<e.length;c++){var l=e[c];0==n&&l.x>h&&(r.moveTo(l.x,l.y),n=1),c>0&&l.x>h&&l.x<p&&r.lineTo(l.x,l.y)}if("step"===a.type)for(var u=0;u<e.length;u++){var f=e[u];0==n&&f.x>h&&(r.moveTo(f.x,f.y),n=1),u>0&&f.x>h&&f.x<p&&(r.lineTo(f.x,e[u-1].y),r.lineTo(f.x,f.y))}r.moveTo(e[0].x,e[0].y)}})),r.stroke(),r.setLineDash([]),!1!==t.dataPointShape&&oe(m,e.color,e.pointShape,r,t),se(m,e.color,e.pointShape,r,t,a)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,a){var o,s,l;o=[].concat(t.chartData.yAxisData.ranges[e.index]),s=o.pop(),l=o.shift();var f=e.data,h=X(f,s,l,c,u,t,n,i);le(h,e,n,r,t)})),r.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:u}}(u,t,n,r,e),a=i.xAxisPoints,o=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=c,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var i=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=(s({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),o=a.xAxisPoints,c=a.eachSpacing,l=[];r.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),-t._scrollDistance_-2*c+t.area[3],t.xAxis.itemCount),e.forEach((function(e,a){var s,l,u;s=[].concat(t.chartData.yAxisData.ranges[e.index]),l=s.pop(),u=s.shift();var f=e.data,h=X(f,l,u,o,c,t,n,i);r.beginPath(),r.setStrokeStyle(e.color),r.setFillStyle(e.color),r.setLineWidth(1*t.pix);var d=e.pointShape;if("diamond"===d)h.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===d)h.forEach((function(e,n){null!==e&&(r.moveTo(e.x+2.5*t.pix,e.y),r.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===d)h.forEach((function(e,t){null!==e&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===d)h.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("triangle"===d)return;r.closePath(),r.fill(),r.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,a){var s,l,u;s=[].concat(t.chartData.yAxisData.ranges[e.index]),l=s.pop(),u=s.shift();var f=e.data,h=X(f,l,u,o,c,t,n,i);le(h,e,n,r,t)})),r.restore(),{xAxisPoints:o,calPoints:l,eachSpacing:c}}(u,t,n,r,e),a=i.xAxisPoints,o=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=c,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var i=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{opacity:1,border:2},t.extra.bubble),o=t.chartData.xAxisData,c=o.xAxisPoints,u=o.eachSpacing,f=[];r.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),-t._scrollDistance_-2*u+t.area[3],t.xAxis.itemCount),e.forEach((function(e,o){var s,f,h;s=[].concat(t.chartData.yAxisData.ranges[e.index]),f=s.pop(),h=s.shift();var d=e.data,p=X(d,f,h,c,u,t,n,i);r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(a.border*t.pix),r.setFillStyle(l(e.color,a.opacity)),p.forEach((function(e,n){r.moveTo(e.x+e.r,e.y),r.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),r.closePath(),r.fill(),r.stroke(),!1!==t.dataLabel&&1===i&&p.forEach((function(i,a){r.beginPath();var o=e.textSize*t.pix||n.fontSize;r.setFontSize(o),r.setFillStyle(e.textColor||"#FFFFFF"),r.setTextAlign("center"),r.fillText(String(i.t),i.x,i.y+o/2),r.closePath(),r.stroke(),r.setTextAlign("left")}))})),r.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:u}}(u,t,n,r,e),a=i.xAxisPoints,o=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=c,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var a=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=t.chartData.xAxisData,c=o.xAxisPoints,u=o.eachSpacing,f=s({},{width:u/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),h=s({},{opacity:.2,gradient:!1},t.extra.mix.area),p=s({},{width:2},t.extra.mix.line),g=t.height-t.area[2],v=[],m=0,x=0;e.forEach((function(e,t){"column"==e.type&&(x+=1)})),r.save();var _=-2,b=c.length+2,w=0,S=t.width+u;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),_=Math.floor(-t._scrollDistance_/u)-2,b=_+t.xAxis.itemCount+4,w=-t._scrollDistance_-2*u+t.area[3],S=w+(t.xAxis.itemCount+4)*u),f.customColor=y(f.linearType,f.customColor,e,n),e.forEach((function(e,o){var s,y,k;s=[].concat(t.chartData.yAxisData.ranges[e.index]),y=s.pop(),k=s.shift();var A=e.data,T=X(A,y,k,c,u,t,n,a);if(v.push(T),"column"==e.type){T=W(T,u,x,m,0,t);for(var P=0;P<T.length;P++){var C=T[P];if(null!==C&&P>_&&P<b){var O=C.x-C.width/2;t.height,C.y,t.area[2];r.beginPath();var D=C.color||e.color,L=C.color||e.color;if("none"!==f.linearType){var I=r.createLinearGradient(O,C.y,O,t.height-t.area[2]);"opacity"==f.linearType?(I.addColorStop(0,l(D,f.linearOpacity)),I.addColorStop(1,l(D,1))):(I.addColorStop(0,l(f.customColor[e.linearIndex],f.linearOpacity)),I.addColorStop(f.colorStop,l(f.customColor[e.linearIndex],f.linearOpacity)),I.addColorStop(1,l(D,1))),D=I}if(f.barBorderRadius&&4===f.barBorderRadius.length||f.barBorderCircle){var F=O,E=C.y,j=C.width,R=t.height-t.area[2]-C.y;f.barBorderCircle&&(f.barBorderRadius=[j/2,j/2,0,0]);var $=(0,i.default)(f.barBorderRadius,4),N=$[0],B=$[1],U=$[2],z=$[3],H=Math.min(j/2,R/2);N=N>H?H:N,B=B>H?H:B,U=U>H?H:U,z=z>H?H:z,N=N<0?0:N,B=B<0?0:B,U=U<0?0:U,z=z<0?0:z,r.arc(F+N,E+N,N,-Math.PI,-Math.PI/2),r.arc(F+j-B,E+B,B,-Math.PI/2,0),r.arc(F+j-U,E+R-U,U,0,Math.PI/2),r.arc(F+z,E+R-z,z,Math.PI/2,Math.PI)}else r.moveTo(O,C.y),r.lineTo(O+C.width,C.y),r.lineTo(O+C.width,t.height-t.area[2]),r.lineTo(O,t.height-t.area[2]),r.lineTo(O,C.y),r.setLineWidth(1),r.setStrokeStyle(L);r.setFillStyle(D),r.closePath(),r.fill()}}m+=1}if("area"==e.type)for(var q=M(T,e),V=0;V<q.length;V++){var G=q[V];if(r.beginPath(),r.setStrokeStyle(e.color),r.setStrokeStyle(l(e.color,h.opacity)),h.gradient){var K=r.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);K.addColorStop("0",l(e.color,h.opacity)),K.addColorStop("1.0",l("#FFFFFF",.1)),r.setFillStyle(K)}else r.setFillStyle(l(e.color,h.opacity));if(r.setLineWidth(2*t.pix),G.length>1){var J=G[0],Y=G[G.length-1];r.moveTo(J.x,J.y);var Q=0;if("curve"===e.style)for(var Z=0;Z<G.length;Z++){var ee=G[Z];if(0==Q&&ee.x>w&&(r.moveTo(ee.x,ee.y),Q=1),Z>0&&ee.x>w&&ee.x<S){var te=d(G,Z-1);r.bezierCurveTo(te.ctrA.x,te.ctrA.y,te.ctrB.x,te.ctrB.y,ee.x,ee.y)}}else for(var ne=0;ne<G.length;ne++){var re=G[ne];0==Q&&re.x>w&&(r.moveTo(re.x,re.y),Q=1),ne>0&&re.x>w&&re.x<S&&r.lineTo(re.x,re.y)}r.lineTo(Y.x,g),r.lineTo(J.x,g),r.lineTo(J.x,J.y)}else{var ie=G[0];r.moveTo(ie.x-u/2,ie.y)}r.closePath(),r.fill()}if("line"==e.type){var ae=M(T,e);ae.forEach((function(n,i){if("dash"==e.lineType){var a=e.dashLength?e.dashLength:8;a*=t.pix,r.setLineDash([a,a])}if(r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(p.width*t.pix),1===n.length)r.moveTo(n[0].x,n[0].y);else{r.moveTo(n[0].x,n[0].y);var o=0;if("curve"==e.style)for(var s=0;s<n.length;s++){var c=n[s];if(0==o&&c.x>w&&(r.moveTo(c.x,c.y),o=1),s>0&&c.x>w&&c.x<S){var l=d(n,s-1);r.bezierCurveTo(l.ctrA.x,l.ctrA.y,l.ctrB.x,l.ctrB.y,c.x,c.y)}}else for(var u=0;u<n.length;u++){var f=n[u];0==o&&f.x>w&&(r.moveTo(f.x,f.y),o=1),u>0&&f.x>w&&f.x<S&&r.lineTo(f.x,f.y)}r.moveTo(n[0].x,n[0].y)}r.stroke(),r.setLineDash([])}))}"point"==e.type&&(e.addPoint=!0),1==e.addPoint&&"column"!==e.type&&oe(T,e.color,e.pointShape,r,t)})),!1!==t.dataLabel&&1===a){m=0;e.forEach((function(e,i){var o,s,l;o=[].concat(t.chartData.yAxisData.ranges[e.index]),s=o.pop(),l=o.shift();var f=e.data,h=X(f,s,l,c,u,t,n,a);"column"!==e.type?le(h,e,n,r,t):(h=W(h,u,x,m,0,t),le(h,e,n,r,t),m+=1)}))}return r.restore(),{xAxisPoints:c,calPoints:v,eachSpacing:u}}(u,t,n,r,e),o=a.xAxisPoints,c=a.calPoints,h=a.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=c,t.chartData.eachSpacing=h,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var a=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=t.chartData.xAxisData,c=o.xAxisPoints,u=o.eachSpacing,f=s({},{type:"group",width:u/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},t.extra.column),h=[];r.save();var d=-2,p=c.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),d=Math.floor(-t._scrollDistance_/u)-2,p=d+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&me(t.tooltip.offset.x,t,0,r,u),f.customColor=y(f.linearType,f.customColor,e,n),e.forEach((function(o,s){var g,v,y;g=[].concat(t.chartData.yAxisData.ranges[o.index]),v=g.pop(),y=g.shift();var m=t.height-t.area[0]-t.area[2],x=m*(0-v)/(y-v),_=t.height-Math.round(x)-t.area[2];o.zeroPoints=_;var b=o.data;switch(f.type){case"group":var w=Q(b,v,y,c,u,t,n,_,a),S=te(b,v,y,c,u,t,n,s,e,a);h.push(S),w=W(w,u,e.length,s,0,t);for(var k=0;k<w.length;k++){var A=w[k];if(null!==A&&k>d&&k<p){var T=A.x-A.width/2,P=t.height-A.y-t.area[2];r.beginPath();var C=A.color||o.color,O=A.color||o.color;if("none"!==f.linearType){var D=r.createLinearGradient(T,A.y,T,_);"opacity"==f.linearType?(D.addColorStop(0,l(C,f.linearOpacity)),D.addColorStop(1,l(C,1))):(D.addColorStop(0,l(f.customColor[o.linearIndex],f.linearOpacity)),D.addColorStop(f.colorStop,l(f.customColor[o.linearIndex],f.linearOpacity)),D.addColorStop(1,l(C,1))),C=D}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var L=T,M=A.y>_?_:A.y,I=A.width,F=Math.abs(_-A.y);f.barBorderCircle&&(f.barBorderRadius=[I/2,I/2,0,0]),A.y>_&&(f.barBorderRadius=[0,0,I/2,I/2]);var E=(0,i.default)(f.barBorderRadius,4),j=E[0],R=E[1],$=E[2],N=E[3],B=Math.min(I/2,F/2);j=j>B?B:j,R=R>B?B:R,$=$>B?B:$,N=N>B?B:N,j=j<0?0:j,R=R<0?0:R,$=$<0?0:$,N=N<0?0:N,r.arc(L+j,M+j,j,-Math.PI,-Math.PI/2),r.arc(L+I-R,M+R,R,-Math.PI/2,0),r.arc(L+I-$,M+F-$,$,0,Math.PI/2),r.arc(L+N,M+F-N,N,Math.PI/2,Math.PI)}else r.moveTo(T,A.y),r.lineTo(T+A.width,A.y),r.lineTo(T+A.width,_),r.lineTo(T,_),r.lineTo(T,A.y),r.setLineWidth(1),r.setStrokeStyle(O);r.setFillStyle(C),r.closePath(),r.fill()}}break;case"stack":w=te(b,v,y,c,u,t,n,s,e,a);h.push(w),w=V(w,u,e.length,0,0,t);for(var U=0;U<w.length;U++){var z=w[U];if(null!==z&&U>d&&U<p){r.beginPath();C=z.color||o.color,T=z.x-z.width/2+1,P=t.height-z.y-t.area[2];var H=t.height-z.y0-t.area[2];s>0&&(P-=H),r.setFillStyle(C),r.moveTo(T,z.y),r.fillRect(T,z.y,z.width,P),r.closePath(),r.fill()}}break;case"meter":w=X(b,v,y,c,u,t,n,a);h.push(w),w=q(w,u,e.length,s,0,t,f.meterBorder);for(var G=0;G<w.length;G++){var K=w[G];if(null!==K&&G>d&&G<p){r.beginPath(),0==s&&f.meterBorder>0&&(r.setStrokeStyle(o.color),r.setLineWidth(f.meterBorder*t.pix)),0==s?r.setFillStyle(f.meterFillColor):r.setFillStyle(K.color||o.color);T=K.x-K.width/2,P=t.height-K.y-t.area[2];if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var J=T,Y=K.y,Z=K.width,ee=_-K.y;f.barBorderCircle&&(f.barBorderRadius=[Z/2,Z/2,0,0]);var ne=(0,i.default)(f.barBorderRadius,4),re=ne[0],ie=ne[1],ae=ne[2],oe=ne[3],se=Math.min(Z/2,ee/2);re=re>se?se:re,ie=ie>se?se:ie,ae=ae>se?se:ae,oe=oe>se?se:oe,re=re<0?0:re,ie=ie<0?0:ie,ae=ae<0?0:ae,oe=oe<0?0:oe,r.arc(J+re,Y+re,re,-Math.PI,-Math.PI/2),r.arc(J+Z-ie,Y+ie,ie,-Math.PI/2,0),r.arc(J+Z-ae,Y+ee-ae,ae,0,Math.PI/2),r.arc(J+oe,Y+ee-oe,oe,Math.PI/2,Math.PI),r.fill()}else r.moveTo(T,K.y),r.lineTo(T+K.width,K.y),r.lineTo(T+K.width,_),r.lineTo(T,_),r.lineTo(T,K.y),r.fill();0==s&&f.meterBorder>0&&(r.closePath(),r.stroke())}}break}})),!1!==t.dataLabel&&1===a&&e.forEach((function(i,o){var s,l,h;s=[].concat(t.chartData.yAxisData.ranges[i.index]),l=s.pop(),h=s.shift();var d=i.data;switch(f.type){case"group":var p=Q(d,l,h,c,u,t,n,a);p=W(p,u,e.length,o,0,t),ue(p,i,n,r,t);break;case"stack":p=te(d,l,h,c,u,t,n,o,e,a);ue(p,i,n,r,t);break;case"meter":p=X(d,l,h,c,u,t,n,a);ue(p,i,n,r,t);break}})),r.restore(),{xAxisPoints:c,calPoints:h,eachSpacing:u}}(u,t,n,r,e),o=a.xAxisPoints,c=a.calPoints,h=a.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=c,t.chartData.eachSpacing=h,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var a=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=t.chartData.xAxisData,c=o.xAxisPoints,u=o.eachSpacing,f=s({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mount);f.widthRatio=f.widthRatio<=0?0:f.widthRatio,f.widthRatio=f.widthRatio>=2?2:f.widthRatio,r.save();var h,d,p,g=-2,v=c.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),g=Math.floor(-t._scrollDistance_/u)-2,v=g+t.xAxis.itemCount+4),f.customColor=y(f.linearType,f.customColor,e,n),h=[].concat(t.chartData.yAxisData.ranges[0]),d=h.pop(),p=h.shift();var m=t.height-t.area[0]-t.area[2],x=m*(0-d)/(p-d),_=t.height-Math.round(x)-t.area[2],b=Z(e,d,p,c,u,t,f,_,a);switch(f.type){case"bar":for(var w=0;w<b.length;w++){var S=b[w];if(null!==S&&w>g&&w<v){var k=S.x-u*f.widthRatio/2,A=t.height-S.y-t.area[2];r.beginPath();var T=S.color||e[w].color,P=S.color||e[w].color;if("none"!==f.linearType){var C=r.createLinearGradient(k,S.y,k,_);"opacity"==f.linearType?(C.addColorStop(0,l(T,f.linearOpacity)),C.addColorStop(1,l(T,1))):(C.addColorStop(0,l(f.customColor[e[w].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,l(f.customColor[e[w].linearIndex],f.linearOpacity)),C.addColorStop(1,l(T,1))),T=C}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var O=k,D=S.y>_?_:S.y,L=S.width,M=Math.abs(_-S.y);f.barBorderCircle&&(f.barBorderRadius=[L/2,L/2,0,0]),S.y>_&&(f.barBorderRadius=[0,0,L/2,L/2]);var I=(0,i.default)(f.barBorderRadius,4),F=I[0],E=I[1],j=I[2],R=I[3],$=Math.min(L/2,M/2);F=F>$?$:F,E=E>$?$:E,j=j>$?$:j,R=R>$?$:R,F=F<0?0:F,E=E<0?0:E,j=j<0?0:j,R=R<0?0:R,r.arc(O+F,D+F,F,-Math.PI,-Math.PI/2),r.arc(O+L-E,D+E,E,-Math.PI/2,0),r.arc(O+L-j,D+M-j,j,0,Math.PI/2),r.arc(O+R,D+M-R,R,Math.PI/2,Math.PI)}else r.moveTo(k,S.y),r.lineTo(k+S.width,S.y),r.lineTo(k+S.width,_),r.lineTo(k,_),r.lineTo(k,S.y);r.setStrokeStyle(P),r.setFillStyle(T),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.closePath(),r.stroke()),r.fill()}}break;case"triangle":for(var N=0;N<b.length;N++){var B=b[N];if(null!==B&&N>g&&N<v){k=B.x-u*f.widthRatio/2,A=t.height-B.y-t.area[2];r.beginPath();T=B.color||e[N].color,P=B.color||e[N].color;if("none"!==f.linearType){C=r.createLinearGradient(k,B.y,k,_);"opacity"==f.linearType?(C.addColorStop(0,l(T,f.linearOpacity)),C.addColorStop(1,l(T,1))):(C.addColorStop(0,l(f.customColor[e[N].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,l(f.customColor[e[N].linearIndex],f.linearOpacity)),C.addColorStop(1,l(T,1))),T=C}r.moveTo(k,_),r.lineTo(B.x,B.y),r.lineTo(k+B.width,_),r.setStrokeStyle(P),r.setFillStyle(T),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break;case"mount":for(var U=0;U<b.length;U++){var z=b[U];if(null!==z&&U>g&&U<v){k=z.x-u*f.widthRatio/2,A=t.height-z.y-t.area[2];r.beginPath();T=z.color||e[U].color,P=z.color||e[U].color;if("none"!==f.linearType){C=r.createLinearGradient(k,z.y,k,_);"opacity"==f.linearType?(C.addColorStop(0,l(T,f.linearOpacity)),C.addColorStop(1,l(T,1))):(C.addColorStop(0,l(f.customColor[e[U].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,l(f.customColor[e[U].linearIndex],f.linearOpacity)),C.addColorStop(1,l(T,1))),T=C}r.moveTo(k,_),r.bezierCurveTo(z.x-z.width/4,_,z.x-z.width/4,z.y,z.x,z.y),r.bezierCurveTo(z.x+z.width/4,z.y,z.x+z.width/4,_,k+z.width,_),r.setStrokeStyle(P),r.setFillStyle(T),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break;case"sharp":for(var W=0;W<b.length;W++){var H=b[W];if(null!==H&&W>g&&W<v){k=H.x-u*f.widthRatio/2,A=t.height-H.y-t.area[2];r.beginPath();T=H.color||e[W].color,P=H.color||e[W].color;if("none"!==f.linearType){C=r.createLinearGradient(k,H.y,k,_);"opacity"==f.linearType?(C.addColorStop(0,l(T,f.linearOpacity)),C.addColorStop(1,l(T,1))):(C.addColorStop(0,l(f.customColor[e[W].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,l(f.customColor[e[W].linearIndex],f.linearOpacity)),C.addColorStop(1,l(T,1))),T=C}r.moveTo(k,_),r.quadraticCurveTo(H.x-0,_-A/4,H.x,H.y),r.quadraticCurveTo(H.x+0,_-A/4,k+H.width,_),r.setStrokeStyle(P),r.setFillStyle(T),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break}if(!1!==t.dataLabel&&1===a){var q,V,G;q=[].concat(t.chartData.yAxisData.ranges[0]),V=q.pop(),G=q.shift();b=Z(e,V,G,c,u,t,f,_,a);fe(b,e,n,r,t,_)}return r.restore(),{xAxisPoints:c,calPoints:b,eachSpacing:u}}(u,t,n,r,e),o=a.xAxisPoints,c=a.calPoints,h=a.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=c,t.chartData.eachSpacing=h,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),we(f,t,n,r);var a=function(e,t,n,r){for(var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=[],c=(t.height-t.area[0]-t.area[2])/t.categories.length,u=0;u<t.categories.length;u++)o.push(t.area[0]+c/2+c*u);var f=s({},{type:"group",width:c/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.bar),h=[];r.save();var d=-2,p=o.length+2;return t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&xe(t.tooltip.offset.y,t,0,r,c),f.customColor=y(f.linearType,f.customColor,e,n),e.forEach((function(s,u){var g,v,y;g=[].concat(t.chartData.xAxisData.ranges),y=g.pop(),v=g.shift();var m=s.data;switch(f.type){case"group":var x=ee(m,v,y,o,c,t,n,a),_=ne(m,v,y,o,c,t,n,u,e,a);h.push(_),x=H(x,c,e.length,u,0,t);for(var b=0;b<x.length;b++){var w=x[b];if(null!==w&&b>d&&b<p){var S=t.area[3],k=w.y-w.width/2;w.height;r.beginPath();var A=w.color||s.color,T=w.color||s.color;if("none"!==f.linearType){var P=r.createLinearGradient(S,w.y,w.x,w.y);"opacity"==f.linearType?(P.addColorStop(0,l(A,f.linearOpacity)),P.addColorStop(1,l(A,1))):(P.addColorStop(0,l(f.customColor[s.linearIndex],f.linearOpacity)),P.addColorStop(f.colorStop,l(f.customColor[s.linearIndex],f.linearOpacity)),P.addColorStop(1,l(A,1))),A=P}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var C=S,O=w.width,D=w.y-w.width/2,L=w.height;f.barBorderCircle&&(f.barBorderRadius=[O/2,O/2,0,0]);var M=(0,i.default)(f.barBorderRadius,4),I=M[0],F=M[1],E=M[2],j=M[3],R=Math.min(O/2,L/2);I=I>R?R:I,F=F>R?R:F,E=E>R?R:E,j=j>R?R:j,I=I<0?0:I,F=F<0?0:F,E=E<0?0:E,j=j<0?0:j,r.arc(C+j,D+j,j,-Math.PI,-Math.PI/2),r.arc(w.x-I,D+I,I,-Math.PI/2,0),r.arc(w.x-F,D+O-F,F,0,Math.PI/2),r.arc(C+E,D+O-E,E,Math.PI/2,Math.PI)}else r.moveTo(S,k),r.lineTo(w.x,k),r.lineTo(w.x,k+w.width),r.lineTo(S,k+w.width),r.lineTo(S,k),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(A),r.closePath(),r.fill()}}break;case"stack":x=ne(m,v,y,o,c,t,n,u,e,a);h.push(x),x=G(x,c,e.length,0,0,t);for(var $=0;$<x.length;$++){var N=x[$];if(null!==N&&$>d&&$<p){r.beginPath();A=N.color||s.color,S=N.x0;r.setFillStyle(A),r.moveTo(S,N.y-N.width/2),r.fillRect(S,N.y-N.width/2,N.height,N.width),r.closePath(),r.fill()}}break}})),!1!==t.dataLabel&&1===a&&e.forEach((function(i,s){var l,u,h;l=[].concat(t.chartData.xAxisData.ranges),h=l.pop(),u=l.shift();var d=i.data;switch(f.type){case"group":var p=ee(d,u,h,o,c,t,n,a);p=H(p,c,e.length,s,0,t),he(p,i,n,r,t);break;case"stack":p=ne(d,u,h,o,c,t,n,s,e,a);he(p,i,n,r,t);break}})),{yAxisPoints:o,calPoints:h,eachSpacing:c}}(u,t,n,r,e),o=a.yAxisPoints,c=a.calPoints,h=a.eachSpacing;t.chartData.yAxisPoints=o,t.chartData.xAxisPoints=t.chartData.xAxisData.xAxisPoints,t.chartData.calPoints=c,t.chartData.eachSpacing=h,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var i=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},t.extra.area),o=t.chartData.xAxisData,c=o.xAxisPoints,u=o.eachSpacing,f=t.height-t.area[2],h=[];r.save();var p=0,g=t.width+u;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*u+t.area[3],g=p+(t.xAxis.itemCount+4)*u),e.forEach((function(e,o){var s,v,y;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),y=s.shift();var m=e.data,x=X(m,v,y,c,u,t,n,i);h.push(x);for(var _=M(x,e),b=0;b<_.length;b++){var w=_[b];if(r.beginPath(),r.setStrokeStyle(l(e.color,a.opacity)),a.gradient){var S=r.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);S.addColorStop("0",l(e.color,a.opacity)),S.addColorStop("1.0",l("#FFFFFF",.1)),r.setFillStyle(S)}else r.setFillStyle(l(e.color,a.opacity));if(r.setLineWidth(a.width*t.pix),w.length>1){var k=w[0],A=w[w.length-1];r.moveTo(k.x,k.y);var T=0;if("curve"===a.type)for(var P=0;P<w.length;P++){var C=w[P];if(0==T&&C.x>p&&(r.moveTo(C.x,C.y),T=1),P>0&&C.x>p&&C.x<g){var O=d(w,P-1);r.bezierCurveTo(O.ctrA.x,O.ctrA.y,O.ctrB.x,O.ctrB.y,C.x,C.y)}}if("straight"===a.type)for(var D=0;D<w.length;D++){var L=w[D];0==T&&L.x>p&&(r.moveTo(L.x,L.y),T=1),D>0&&L.x>p&&L.x<g&&r.lineTo(L.x,L.y)}if("step"===a.type)for(var I=0;I<w.length;I++){var F=w[I];0==T&&F.x>p&&(r.moveTo(F.x,F.y),T=1),I>0&&F.x>p&&F.x<g&&(r.lineTo(F.x,w[I-1].y),r.lineTo(F.x,F.y))}r.lineTo(A.x,f),r.lineTo(k.x,f),r.lineTo(k.x,k.y)}else{var E=w[0];r.moveTo(E.x-u/2,E.y)}if(r.closePath(),r.fill(),a.addLine){if("dash"==e.lineType){var j=e.dashLength?e.dashLength:8;j*=t.pix,r.setLineDash([j,j])}if(r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(a.width*t.pix),1===w.length)r.moveTo(w[0].x,w[0].y);else{r.moveTo(w[0].x,w[0].y);var R=0;if("curve"===a.type)for(var $=0;$<w.length;$++){var N=w[$];if(0==R&&N.x>p&&(r.moveTo(N.x,N.y),R=1),$>0&&N.x>p&&N.x<g){var B=d(w,$-1);r.bezierCurveTo(B.ctrA.x,B.ctrA.y,B.ctrB.x,B.ctrB.y,N.x,N.y)}}if("straight"===a.type)for(var U=0;U<w.length;U++){var z=w[U];0==R&&z.x>p&&(r.moveTo(z.x,z.y),R=1),U>0&&z.x>p&&z.x<g&&r.lineTo(z.x,z.y)}if("step"===a.type)for(var W=0;W<w.length;W++){var H=w[W];0==R&&H.x>p&&(r.moveTo(H.x,H.y),R=1),W>0&&H.x>p&&H.x<g&&(r.lineTo(H.x,w[W-1].y),r.lineTo(H.x,H.y))}r.moveTo(w[0].x,w[0].y)}r.stroke(),r.setLineDash([])}}!1!==t.dataPointShape&&oe(x,e.color,e.pointShape,r,t),se(x,e.color,e.pointShape,r,t,a,o)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,a){var o,s,l;o=[].concat(t.chartData.yAxisData.ranges[e.index]),s=o.pop(),l=o.shift();var f=e.data,h=X(f,s,l,c,u,t,n,i);le(h,e,n,r,t)})),r.restore(),{xAxisPoints:c,calPoints:h,eachSpacing:u}}(u,t,n,r,e),a=i.xAxisPoints,o=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=c,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),t.chartData.pieData=Te(u,t,n,r,e),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),t.chartData.pieData=Te(u,t,n,r,e),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),t.chartData.pieData=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==n.pieChartLinePadding&&(n.pieChartLinePadding=a.activeRadius*t.pix);var o={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},c=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);c=c<10?10:c;var u=a.minRadius||.5*c;c<u&&(c=u+10),e=$(e,a.type,u,c,i);var f=a.activeRadius*t.pix;return a.customColor=y(a.linearType,a.customColor,e,n),e=e.map((function(e){return e._start_+=(a.offsetAngle||0)*Math.PI/180,e})),e.forEach((function(e,n){t.tooltip&&t.tooltip.index==n&&(r.beginPath(),r.setFillStyle(l(e.color,a.activeOpacity||.5)),r.moveTo(o.x,o.y),r.arc(o.x,o.y,f+e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.lineJoin="round",r.setStrokeStyle(a.borderColor);var i,s=e.color;"custom"==a.linearType&&(i=r.createCircularGradient?r.createCircularGradient(o.x,o.y,e._radius_):r.createRadialGradient(o.x,o.y,0,o.x,o.y,e._radius_),i.addColorStop(0,l(a.customColor[e.linearIndex],1)),i.addColorStop(1,l(e.color,1)),s=i);r.setFillStyle(s),r.moveTo(o.x,o.y),r.arc(o.x,o.y,e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill(),1==a.border&&r.stroke()})),!1!==t.dataLabel&&1===i&&ge(e,t,n,r,0,o),{center:o,radius:c,series:e}}(u,t,n,r,e),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),t.chartData.radarData=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},t.extra.radar),o=A(t.categories.length),c={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},u=(t.width-t.area[1]-t.area[3])/2,f=(t.height-t.area[0]-t.area[2])/2,h=Math.min(u-(k(t.categories,n.fontSize,r)+n.radarLabelTextMargin),f-n.radarLabelTextMargin);h-=n.radarLabelTextMargin*t.pix,h=h<10?10:h,h=a.radius?a.radius:h,r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(a.gridColor),o.forEach((function(e,t){var n=p(h*Math.cos(e),h*Math.sin(e),c);r.moveTo(c.x,c.y),t%a.gridEval==0&&r.lineTo(n.x,n.y)})),r.stroke(),r.closePath();for(var d=function(e){var n={};if(r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(a.gridColor),"radar"==a.gridType)o.forEach((function(t,i){var o=p(h/a.gridCount*e*Math.cos(t),h/a.gridCount*e*Math.sin(t),c);0===i?(n=o,r.moveTo(o.x,o.y)):r.lineTo(o.x,o.y)})),r.lineTo(n.x,n.y);else{var i=p(h/a.gridCount*e*Math.cos(1.5),h/a.gridCount*e*Math.sin(1.5),c);r.arc(c.x,c.y,c.y-i.y,0,2*Math.PI,!1)}r.stroke(),r.closePath()},g=1;g<=a.gridCount;g++)d(g);a.customColor=y(a.linearType,a.customColor,e,n);var v=E(o,c,h,e,t,i);if(v.forEach((function(n,i){r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.setStrokeStyle(n.color);var o,s=l(n.color,a.opacity);"custom"==a.linearType&&(o=r.createCircularGradient?r.createCircularGradient(c.x,c.y,h):r.createRadialGradient(c.x,c.y,0,c.x,c.y,h),o.addColorStop(0,l(a.customColor[e[i].linearIndex],a.opacity)),o.addColorStop(1,l(n.color,a.opacity)),s=o);if(r.setFillStyle(s),n.data.forEach((function(e,t){0===t?r.moveTo(e.position.x,e.position.y):r.lineTo(e.position.x,e.position.y)})),r.closePath(),r.fill(),!0===a.border&&r.stroke(),r.closePath(),!1!==t.dataPointShape){var u=n.data.map((function(e){return e.position}));oe(u,n.color,n.pointShape,r,t)}})),!0===a.axisLabel){var m=Math.max(a.max,Math.max.apply(null,_(e))),x=h/a.gridCount,b=t.fontSize*t.pix;r.setFontSize(b),r.setFillStyle(t.fontColor),r.setTextAlign("left");for(g=0;g<a.gridCount+1;g++){var w=g*m/a.gridCount;w=w.toFixed(a.axisLabelTofix),r.fillText(String(w),c.x+3*t.pix,c.y-g*x+b/2)}}return pe(o,h,c,t,n,r),!1!==t.dataLabel&&1===i&&(v.forEach((function(e,i){r.beginPath();var a=e.textSize*t.pix||n.fontSize;r.setFontSize(a),r.setFillStyle(e.textColor||t.fontColor),e.data.forEach((function(e,t){Math.abs(e.position.x-c.x)<2?e.position.y<c.y?(r.setTextAlign("center"),r.fillText(e.value,e.position.x,e.position.y-4)):(r.setTextAlign("center"),r.fillText(e.value,e.position.x,e.position.y+a+2)):e.position.x<c.x?(r.setTextAlign("right"),r.fillText(e.value,e.position.x-4,e.position.y+a/2-2)):(r.setTextAlign("left"),r.fillText(e.value,e.position.x+4,e.position.y+a/2-2))})),r.closePath(),r.stroke()})),r.setTextAlign("left")),{center:c,radius:h,angleList:o}}(u,t,n,r,e),Ae(t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),t.chartData.arcbarData=function(e,t,n,r){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,c=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=N(e,c,o),i=c.centerX||c.centerY?{x:c.centerX?c.centerX:t.width/2,y:c.centerY?c.centerY:t.height/2}:{x:t.width/2,y:t.height/2},c.radius?a=c.radius:(a=Math.min(i.x,i.y),a-=5*t.pix,a-=c.width/2),a=a<10?10:a,c.customColor=y(c.linearType,c.customColor,e,n);for(var u=0;u<e.length;u++){var f=e[u];r.setLineWidth(c.width*t.pix),r.setStrokeStyle(c.backgroundColor||"#E9E9E9"),r.setLineCap(c.lineCap),r.beginPath(),"default"==c.type?r.arc(i.x,i.y,a-(c.width*t.pix+c.gap*t.pix)*u,c.startAngle*Math.PI,c.endAngle*Math.PI,"ccw"==c.direction):r.arc(i.x,i.y,a-(c.width*t.pix+c.gap*t.pix)*u,0,2*Math.PI,"ccw"==c.direction),r.stroke();var h=f.color;if("custom"==c.linearType){var d=r.createLinearGradient(i.x-a,i.y,i.x+a,i.y);d.addColorStop(1,l(c.customColor[f.linearIndex],1)),d.addColorStop(0,l(f.color,1)),h=d}r.setLineWidth(c.width*t.pix),r.setStrokeStyle(h),r.setLineCap(c.lineCap),r.beginPath(),r.arc(i.x,i.y,a-(c.width*t.pix+c.gap*t.pix)*u,c.startAngle*Math.PI,f._proportion_*Math.PI,"ccw"==c.direction),r.stroke()}return ce(t,n,r,i),{center:i,radius:a,series:e}}(u,t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),t.chartData.gaugeData=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=s({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},n.extra.gauge);void 0==o.oldAngle&&(o.oldAngle=o.startAngle),void 0==o.oldData&&(o.oldData=0),e=U(e,o.startAngle,o.endAngle);var c={x:n.width/2,y:n.height/2},u=Math.min(c.x,c.y);u-=5*n.pix,u-=o.width/2,u=u<10?10:u;var f=u-o.width,h=0;if("progress"==o.type){var d=u-3*o.width;i.beginPath();var p=i.createLinearGradient(c.x,c.y-d,c.x,c.y+d);p.addColorStop("0",l(t[0].color,.3)),p.addColorStop("1.0",l("#FFFFFF",.1)),i.setFillStyle(p),i.arc(c.x,c.y,d,0,2*Math.PI,!1),i.fill(),i.setLineWidth(o.width),i.setStrokeStyle(l(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,o.startAngle*Math.PI,o.endAngle*Math.PI,!1),i.stroke(),h=o.endAngle<o.startAngle?2+o.endAngle-o.startAngle:o.startAngle-o.endAngle;o.splitLine.splitNumber;var g=h/o.splitLine.splitNumber/o.splitLine.childNumber,v=-u-.5*o.width-o.splitLine.fixRadius,y=-u-o.width-o.splitLine.fixRadius+o.splitLine.width;i.save(),i.translate(c.x,c.y),i.rotate((o.startAngle-1)*Math.PI);for(var m=o.splitLine.splitNumber*o.splitLine.childNumber+1,x=t[0].data*a,_=0;_<m;_++)i.beginPath(),x>_/m?i.setStrokeStyle(l(t[0].color,1)):i.setStrokeStyle(l(t[0].color,.3)),i.setLineWidth(3*n.pix),i.moveTo(v,0),i.lineTo(y,0),i.stroke(),i.rotate(g*Math.PI);i.restore(),t=B(t,o,a),i.setLineWidth(o.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,o.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var b=u-2.5*o.width;i.save(),i.translate(c.x,c.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(o.width/3);var w=i.createLinearGradient(0,.6*-b,0,.6*b);w.addColorStop("0",l("#FFFFFF",0)),w.addColorStop("0.5",l(t[0].color,1)),w.addColorStop("1.0",l("#FFFFFF",0)),i.setStrokeStyle(w),i.arc(0,0,b,.85*Math.PI,1.15*Math.PI,!1),i.stroke(),i.beginPath(),i.setLineWidth(1),i.setStrokeStyle(t[0].color),i.setFillStyle(t[0].color),i.moveTo(-b-o.width/3/2,-4),i.lineTo(-b-o.width/3/2-4,0),i.lineTo(-b-o.width/3/2,4),i.lineTo(-b-o.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(o.width),i.setLineCap("butt");for(var S=0;S<e.length;S++){var k=e[S];i.beginPath(),i.setStrokeStyle(k.color),i.arc(c.x,c.y,u,k._startAngle_*Math.PI,k._endAngle_*Math.PI,!1),i.stroke()}i.save(),h=o.endAngle<o.startAngle?2+o.endAngle-o.startAngle:o.startAngle-o.endAngle;var A=h/o.splitLine.splitNumber,T=h/o.splitLine.splitNumber/o.splitLine.childNumber,P=-u-.5*o.width-o.splitLine.fixRadius,C=-u-.5*o.width-o.splitLine.fixRadius+o.splitLine.width,O=-u-.5*o.width-o.splitLine.fixRadius+o.splitLine.childWidth;i.translate(c.x,c.y),i.rotate((o.startAngle-1)*Math.PI);for(var D=0;D<o.splitLine.splitNumber+1;D++)i.beginPath(),i.setStrokeStyle(o.splitLine.color),i.setLineWidth(2*n.pix),i.moveTo(P,0),i.lineTo(C,0),i.stroke(),i.rotate(A*Math.PI);i.restore(),i.save(),i.translate(c.x,c.y),i.rotate((o.startAngle-1)*Math.PI);for(var L=0;L<o.splitLine.splitNumber*o.splitLine.childNumber+1;L++)i.beginPath(),i.setStrokeStyle(o.splitLine.color),i.setLineWidth(1*n.pix),i.moveTo(P,0),i.lineTo(O,0),i.stroke(),i.rotate(T*Math.PI);i.restore(),t=z(t,e,o,a);for(var M=0;M<t.length;M++){var I=t[M];i.save(),i.translate(c.x,c.y),i.rotate((I._proportion_-1)*Math.PI),i.beginPath(),i.setFillStyle(I.color),i.moveTo(o.pointer.width,0),i.lineTo(0,-o.pointer.width/2),i.lineTo(-f,0),i.lineTo(0,o.pointer.width/2),i.lineTo(o.pointer.width,0),i.closePath(),i.fill(),i.beginPath(),i.setFillStyle("#FFFFFF"),i.arc(0,0,o.pointer.width/6,0,2*Math.PI,!1),i.fill(),i.restore()}!1!==n.dataLabel&&de(o,u,c,n,r,i)}return ce(n,r,i,c),1===a&&"gauge"===n.type&&(n.extra.gauge.oldAngle=t[0]._proportion_,n.extra.gauge.oldData=t[0].data),{center:c,radius:u,innerRadius:f,categories:e,totalAngle:h}}(f,u,t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ae(r,t),Se(0,t,0,r),we(f,t,n,r);var i=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=s({},{color:{},average:{}},n.extra.candle);o.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=s({},{show:!1,name:[],day:[],color:r.color},o.average),n.extra.candle=o;var c=n.chartData.xAxisData,l=c.xAxisPoints,u=c.eachSpacing,f=[];i.save();var h=-2,p=l.length+2,g=0,v=n.width+u;return n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(i.translate(n._scrollDistance_,0),h=Math.floor(-n._scrollDistance_/u)-2,p=h+n.xAxis.itemCount+4,g=-n._scrollDistance_-2*u+n.area[3],v=g+(n.xAxis.itemCount+4)*u),(o.average.show||t)&&t.forEach((function(e,t){var o,s,c;o=[].concat(n.chartData.yAxisData.ranges[e.index]),s=o.pop(),c=o.shift();for(var f=e.data,h=X(f,s,c,l,u,n,r,a),p=M(h,e),y=0;y<p.length;y++){var m=p[y];if(i.beginPath(),i.setStrokeStyle(e.color),i.setLineWidth(1),1===m.length)i.moveTo(m[0].x,m[0].y),i.arc(m[0].x,m[0].y,1,0,2*Math.PI);else{i.moveTo(m[0].x,m[0].y);for(var x=0,_=0;_<m.length;_++){var b=m[_];if(0==x&&b.x>g&&(i.moveTo(b.x,b.y),x=1),_>0&&b.x>g&&b.x<v){var w=d(m,_-1);i.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,b.x,b.y)}}i.moveTo(m[0].x,m[0].y)}i.closePath(),i.stroke()}})),e.forEach((function(e,t){var s,c,d;s=[].concat(n.chartData.yAxisData.ranges[e.index]),c=s.pop(),d=s.shift();var g=e.data,v=J(g,c,d,l,u,n,r,a);f.push(v);for(var y=M(v,e),m=0;m<y[0].length;m++)if(m>h&&m<p){var x=y[0][m];i.beginPath(),g[m][1]-g[m][0]>0?(i.setStrokeStyle(o.color.upLine),i.setFillStyle(o.color.upFill),i.setLineWidth(1*n.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x-u/4,x[1].y),i.lineTo(x[0].x-u/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x+u/4,x[0].y),i.lineTo(x[1].x+u/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.moveTo(x[3].x,x[3].y)):(i.setStrokeStyle(o.color.downLine),i.setFillStyle(o.color.downFill),i.setLineWidth(1*n.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x-u/4,x[0].y),i.lineTo(x[1].x-u/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x+u/4,x[1].y),i.lineTo(x[0].x+u/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.moveTo(x[3].x,x[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:l,calPoints:f,eachSpacing:u}}(u,m,t,n,r,e),a=i.xAxisPoints,o=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=c,ke(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Ae(m?0:t.series,t,n,r,t.chartData),be(t,n,r,e),je(0,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break}}function Be(){this.events={}}$e.prototype.stop=function(){this.isStop=!0},Be.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},Be.prototype.delEventListener=function(e){this.events[e]=[]},Be.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t.slice(1);this.events[r]&&this.events[r].forEach((function(e){try{e.apply(null,i)}catch(t){}}))};var Ue=function(e){e.pix=e.pixelRatio?e.pixelRatio:1,e.fontSize=e.fontSize?e.fontSize:13,e.fontColor=e.fontColor?e.fontColor:o.fontColor,""!=e.background&&"none"!=e.background||(e.background="#FFFFFF"),e.title=s({},e.title),e.subtitle=s({},e.subtitle),e.duration=e.duration?e.duration:1e3,e.yAxis=s({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,gridSet:"number",splitNumber:5,gridType:"solid",dashLength:4*e.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},e.yAxis),e.xAxis=s({},{rotateLabel:!1,rotateAngle:45,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,fontColor:"#666666",fontSize:13,lineHeight:20,marginTop:0,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc",titleFontSize:13,titleOffsetY:0,titleOffsetX:0,titleFontColor:"#666666"},e.xAxis),e.xAxis.scrollPosition=e.xAxis.scrollAlign,e.legend=s({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:e.fontSize,lineHeight:e.fontSize,fontColor:e.fontColor,formatter:{},hiddenColor:"#CECECE"},e.legend),e.extra=s({tooltip:{legendShape:"auto"}},e.extra),e.rotate=!!e.rotate,e.animation=!!e.animation,e.rotate=!!e.rotate,e.canvas2d=!!e.canvas2d;var t=s({},o);if(t.color=e.color?e.color:t.color,"pie"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.pie.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"ring"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.ring.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"rose"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.rose.labelWidth*e.pix||t.pieChartLinePadding*e.pix),t.pieChartTextPadding=!1===e.dataLabel?0:t.pieChartTextPadding*e.pix,t.rotate=e.rotate,e.rotate){var n=e.width,r=e.height;e.width=r,e.height=n}if(e.padding=e.padding?e.padding:t.padding,t.yAxisWidth=o.yAxisWidth*e.pix,t.fontSize=e.fontSize*e.pix,t.titleFontSize=o.titleFontSize*e.pix,t.subtitleFontSize=o.subtitleFontSize*e.pix,!e.context)throw new Error("[uCharts] 未获取到context注意v2.0版本后需要自行获取canvas的绘图上下文并传入opts.context");this.context=e.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(e){return this.strokeStyle=e},this.context.setLineWidth=function(e){return this.lineWidth=e},this.context.setLineCap=function(e){return this.lineCap=e},this.context.setFontSize=function(e){return this.font=e+"px sans-serif"},this.context.setFillStyle=function(e){return this.fillStyle=e},this.context.setTextAlign=function(e){return this.textAlign=e},this.context.setTextBaseline=function(e){return this.textBaseline=e},this.context.setShadow=function(e,t,n,r){this.shadowColor=r,this.shadowOffsetX=e,this.shadowOffsetY=t,this.shadowBlur=n},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(e){}),e.chartData={},this.uevent=new Be,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=e,this.config=t,Ne.call(this,e.type,e,t,this.context)};Ue.prototype.updateData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=s({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var n=ie(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,a=K(this.opts.categories,this.opts,this.config),o=a.xAxisPoints,c=a.startX,l=a.endX,u=a.eachSpacing,f=u*(o.length-1),h=l-c;i=h-f,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}Ne.call(this,this.opts.type,this.opts,this.config,this.context)},Ue.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var n=ie(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,a=K(this.opts.categories,this.opts,this.config),o=a.xAxisPoints,s=a.startX,c=a.endX,l=a.eachSpacing,u=l*t,h=c-s,d=h-l*(o.length-1);i=h/2-u,i>0&&(i=0),i<d&&(i=d),this.scrollOption={currentOffset:i,startTouchX:0,distance:0,lastMoveTime:0},f(this,i,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=i,Ne.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("[uCharts] 请启用滚动条后使用")},Ue.prototype.dobuleZoom=function(e){if(!0===this.opts.enableScroll){var t=e.changedTouches;if(!(t.length<2)){for(var n=0;n<t.length;n++)t[n].x=t[n].x?t[n].x:t[n].clientX,t[n].y=t[n].y?t[n].y:t[n].clientY;var r=[w(t[0],this.opts,e),w(t[1],this.opts,e)],i=Math.abs(r[0].x-r[1].x);if(!this.scrollOption.moveCount){var a={changedTouches:[{x:t[0].x,y:this.opts.area[0]/this.opts.pix+2}]},o={changedTouches:[{x:t[1].x,y:this.opts.area[0]/this.opts.pix+2}]};this.opts.rotate&&(a={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[0].y}]},o={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[1].y}]});var s=this.getCurrentDataIndex(a).index,c=this.getCurrentDataIndex(o).index,l=Math.abs(s-c);return this.scrollOption.moveCount=l,this.scrollOption.moveCurrent1=Math.min(s,c),void(this.scrollOption.moveCurrent2=Math.max(s,c))}var u=i/this.scrollOption.moveCount,h=(this.opts.width-this.opts.area[1]-this.opts.area[3])/u;h=h<=2?2:h,h=h>=this.opts.categories.length?this.opts.categories.length:h,this.opts.animation=!1,this.opts.xAxis.itemCount=h;var d=0,p=K(this.opts.categories,this.opts,this.config),g=p.xAxisPoints,v=p.startX,y=p.endX,m=p.eachSpacing,x=m*this.scrollOption.moveCurrent1,_=y-v,b=_-m*(g.length-1);d=-x+Math.min(r[0].x,r[1].x)-this.opts.area[3]-m,d>0&&(d=0),d<b&&(d=b),this.scrollOption.currentOffset=d,this.scrollOption.startTouchX=0,this.scrollOption.distance=0,f(this,d,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=d,Ne.call(this,this.opts.type,this.opts,this.config,this.context)}}else console.log("[uCharts] 请启用滚动条后使用")},Ue.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Ue.prototype.addEventListener=function(e,t){this.uevent.addEventListener(e,t)},Ue.prototype.delEventListener=function(e){this.uevent.delEventListener(e)},Ue.prototype.getCurrentDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var n=w(t,this.opts,e);return"pie"===this.opts.type||"ring"===this.opts.type?function(e,t,n){var r=-1,i=j(t.series);if(t&&t.center&&L(e,t.center,t.radius)){var a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a=-a,n.extra.pie&&n.extra.pie.offsetAngle&&(a-=n.extra.pie.offsetAngle*Math.PI/180),n.extra.ring&&n.extra.ring.offsetAngle&&(a-=n.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=i.length;o<s;o++)if(h(a,i[o]._start_,i[o]._start_+2*i[o]._proportion_*Math.PI)){r=o;break}}return r}({x:n.x,y:n.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?function(e,t,n){var r=-1,i=$(n._series_,n.extra.rose.type,t.radius,t.radius);if(t&&t.center&&L(e,t.center,t.radius)){var a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a=-a,n.extra.rose&&n.extra.rose.offsetAngle&&(a-=n.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=i.length;o<s;o++)if(h(a,i[o]._start_,i[o]._start_+2*i[o]._rose_proportion_*Math.PI)){r=o;break}}return r}({x:n.x,y:n.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?function(e,t,n){var r=2*Math.PI/n,i=-1;if(L(e,t.center,t.radius)){var a=function(e){return e<0&&(e+=2*Math.PI),e>2*Math.PI&&(e-=2*Math.PI),e},o=Math.atan2(t.center.y-e.y,e.x-t.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=t.angleList.map((function(e){return e=a(-1*e),e}));s.forEach((function(e,t){var n=a(e-r/2),s=a(e+r/2);s<n&&(s+=2*Math.PI),(o>=n&&o<=s||o+2*Math.PI>=n&&o+2*Math.PI<=s)&&(i=t)}))}return i}({x:n.x,y:n.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(e,t){for(var n=-1,r=0,i=t.series.length;r<i;r++){var a=t.series[r];if(e.x>a.funnelArea[0]&&e.x<a.funnelArea[2]&&e.y>a.funnelArea[1]&&e.y<a.funnelArea[3]){n=r;break}}return n}({x:n.x,y:n.y},this.opts.chartData.funnelData):"map"===this.opts.type?function(e,t){for(var n=-1,r=t.chartData.mapData,i=t.series,a=function(e,t,n,r,i,a){return{x:(t-i)/r+n.xMin,y:n.yMax-(e-a)/r}}(e.y,e.x,r.bounds,r.scale,r.xoffset,r.yoffset),o=[a.x,a.y],s=0,c=i.length;s<c;s++){var l=i[s].geometry.coordinates;if(De(o,l,t.chartData.mapData.mercator)){n=s;break}}return n}({x:n.x,y:n.y},this.opts):"word"===this.opts.type?function(e,t){for(var n=-1,r=0,i=t.length;r<i;r++){var a=t[r];if(e.x>a.area[0]&&e.x<a.area[2]&&e.y>a.area[1]&&e.y<a.area[3]){n=r;break}}return n}({x:n.x,y:n.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=n.chartData.eachSpacing/2,s=n.chartData.yAxisPoints;return t&&t.length>0&&D(e,n,r)&&s.forEach((function(t,n){e.y+i+o>t&&(a.index=n)})),a}({x:n.x,y:n.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=n.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(n.categories){for(var c=1;c<n.chartData.xAxisPoints.length;c++)s.push(n.chartData.xAxisPoints[c]-o);"line"!=n.type&&"area"!=n.type||"justify"!=n.xAxis.boundaryGap||(s=n.chartData.xAxisPoints)}else o=0;if(D(e,n,r))if(n.categories)s.forEach((function(t,n){e.x+i+o>t&&(a.index=n)}));else{for(var l=Array(t.length),u=0;u<t.length;u++){l[u]=Array(t[u].length);for(var f=0;f<t[u].length;f++)l[u][f]=Math.abs(t[u][f].x-e.x)}for(var h=Array(l.length),d=Array(l.length),p=0;p<l.length;p++)h[p]=Math.min.apply(null,l[p]),d[p]=l[p].indexOf(h[p]);var g=Math.min.apply(null,h);a.index=[];for(var v=0;v<h.length;v++)h[v]==g&&(a.group.push(v),a.index.push(d[v]))}}return a}({x:n.x,y:n.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Ue.prototype.getLegendDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var n=w(t,this.opts,e);return function(e,t,n){var r=-1;if(function(e,t){return e.x>t.start.x&&e.x<t.end.x&&e.y>t.start.y&&e.y<t.end.y}(e,t.area)){for(var i=t.points,a=-1,o=0,s=i.length;o<s;o++)for(var c=i[o],l=0;l<c.length;l++){a+=1;var u=c[l]["area"];if(u&&e.x>u[0]-0&&e.x<u[2]+0&&e.y>u[1]-0&&e.y<u[3]+0){r=a;break}}return r}return r}({x:n.x,y:n.y},this.opts.chartData.legendData)}return-1},Ue.prototype.touchLegend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n){w(n,this.opts,e);var r=this.getLegendDataIndex(e);r>=0&&("candle"==this.opts.type?this.opts.seriesMA[r].show=!this.opts.seriesMA[r].show:this.opts.series[r].show=!this.opts.series[r].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Ne.call(this,this.opts.type,this.opts,this.config,this.context))}},Ue.prototype.showToolTip=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||console.log("[uCharts] 未获取到event坐标信息");var i=w(r,this.opts,e),a=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:a,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),l=void 0==n.index?c.index:n.index;if(l>-1||l.length>0){var u=S(this.opts.series,l,c.group);if(0!==u.length){var f=T(u,this.opts,l,c.group,this.opts.categories,n),h=f.textList,d=f.offset;d.y=i.y,o.tooltip={textList:void 0!==n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l,group:c.group}}}Ne.call(this,o.type,o,this.config,this.context)}if("mount"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e).index:n.index;if(l>-1){o=s({},this.opts,{animation:!1}),u=s({},o._series_[l]),h=[{text:n.formatter?n.formatter(u,void 0,l,o):u.name+": "+u.data,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:o.chartData.calPoints[l].x,y:i.y};o.tooltip={textList:n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}Ne.call(this,o.type,o,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),l=void 0==n.index?c.index:n.index;if(l>-1||l.length>0){u=S(this.opts.series,l,c.group);if(0!==u.length){f=T(u,this.opts,l,c.group,this.opts.categories,n),h=f.textList,d=f.offset;d.x=i.x,o.tooltip={textList:void 0!==n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}}Ne.call(this,o.type,o,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),l=void 0==n.index?c.index:n.index;if(l>-1){a=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:a,animation:!1}),u=S(this.opts.series,l);if(0!==u.length){var p=P(u,this.opts,l,this.opts.categories,n);h=p.textList,d=p.offset;d.y=i.y,o.tooltip={textList:n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}}Ne.call(this,o.type,o,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),l=void 0==n.index?c.index:n.index;if(l>-1){a=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:a,animation:!1}),u=S(this.opts.series,l);if(0!==u.length){f=C(this.opts.series[0].data,u,this.opts,l,this.opts.categories,this.opts.extra.candle,n),h=f.textList,d=f.offset;d.y=i.y,o.tooltip={textList:n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}}Ne.call(this,o.type,o,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){o=s({},this.opts,{animation:!1}),u=s({},o._series_[l]),h=[{text:n.formatter?n.formatter(u,void 0,l,o):u.name+": "+u.data,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:i.x,y:i.y};o.tooltip={textList:n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}Ne.call(this,o.type,o,this.config,this.context)}if("map"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){o=s({},this.opts,{animation:!1}),u=s({},this.opts.series[l]);u.name=u.properties.name;h=[{text:n.formatter?n.formatter(u,void 0,l,this.opts):u.name,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:i.x,y:i.y};o.tooltip={textList:n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}o.updateData=!1,Ne.call(this,o.type,o,this.config,this.context)}if("word"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){o=s({},this.opts,{animation:!1}),u=s({},this.opts.series[l]),h=[{text:n.formatter?n.formatter(u,void 0,l,this.opts):u.name,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:i.x,y:i.y};o.tooltip={textList:n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}o.updateData=!1,Ne.call(this,o.type,o,this.config,this.context)}if("radar"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){o=s({},this.opts,{animation:!1}),u=S(this.opts.series,l);if(0!==u.length){h=u.map((function(e){return{text:n.formatter?n.formatter(e,t.opts.categories[l],l,t.opts):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.opts.extra.tooltip.legendShape?e.legendShape:t.opts.extra.tooltip.legendShape}})),d={x:i.x,y:i.y};o.tooltip={textList:n.textList?n.textList:h,offset:void 0!==n.offset?n.offset:d,option:n,index:l}}}Ne.call(this,o.type,o,this.config,this.context)}},Ue.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=s({},this.opts,{_scrollDistance_:e,animation:!1});Ne.call(this,this.opts.type,t,this.config,this.context)},Ue.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var n=w(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=n.x)},Ue.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,n=Date.now(),r=n-this.scrollOption.lastMoveTime;if(!(r<Math.floor(1e3/t))&&0!=this.scrollOption.startTouchX){this.scrollOption.lastMoveTime=n;var i=null;if(i=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],i&&!0===this.opts.enableScroll){var a,o=w(i,this.opts,e);a=o.x-this.scrollOption.startTouchX;var c=this.scrollOption.currentOffset,l=f(this,c+a,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=a=l-c;var u=s({},this.opts,{_scrollDistance_:c+a,animation:!1});return this.opts=u,Ne.call(this,u.type,u,this.config,this.context),c+a}}},Ue.prototype.scrollEnd=function(e){if(!0===this.opts.enableScroll){var t=this.scrollOption,n=t.currentOffset,r=t.distance;this.scrollOption.currentOffset=n+r,this.scrollOption.distance=0,this.scrollOption.moveCount=0}};var ze=Ue;t.default=ze},"0bdb":function(e,t,n){var r=n("d551");function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"0ee4":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},1160:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3240")),a=r(n("8f59")),o=r(n("2c93"));i.default.use(a.default);var s=new a.default.Store({state:{user:{id:"",head_pic:null,nickname:"",birthday:"",gender:0,sex:0,age:0,stage:"",height:"",weight:"",address:"",head_data:0,card_order:[],card_data_list:[],target_current:{},vitalcapacity_data:[]},accountNumber:{create_time:"",head_pic:"",last_update_time:"",my_email:"",my_tel:"",nickname:""},MeasureSkip:null,MeasureResult:{body_type_name:"",body_type_unit:"",body_type_value:"",bottom_list:[],cplist:{moodlist:[],nutritionlist:[],sleeplist:[],sportlist:[]},literature:[],record_time:"",score_name:"",score_unit:"",score_value:"",target_current:{target_weight:0,initial_weight:"",cumulative_weight:"",cumulative_day:""},top_list:[]},MeasureLung:null,PublicContent:null,familayList:[],historyList:[],PublicRecord:[],cardList:{user:[],all:[]},Trend:[],userDeviceList:[],isDrawe:!1,isedit:!1,isTarget:!1,isFirst:!1,isRecord:!1,isSlider:!1,isConnected:!1,isPublicRecord:!1,isBluetoothTyle:!1,CooperationUrl:[],LungLevel:[],devicesList:[],labelList:[],phoneInfo:{info:{},versionUrl:null,platform:""},cityList:[],gradeList:[],identityList:[]},mutations:{changePhoneInfo:function(e,t){Object.assign(e.phoneInfo,t)},changeAccountNumber:function(e,t){Object.assign(e.accountNumber,t)},changeUser:function(e,t){Object.assign(e.user,t)},changeCardList:function(e,t){e.cardList=t},changehistoryList:function(e,t){e.historyList=t},changeMeasureResult:function(e,t){Object.assign(e.MeasureResult,t)},changeMeasureSkip:function(e,t){e.MeasureSkip=t},changeMeasureLung:function(e,t){e.MeasureLung=t},changePublicContent:function(e,t){e.PublicContent=t},changePublicRecord:function(e,t){e.PublicRecord=t},changeEdit:function(e,t){e.isedit=t},changeTarget:function(e,t){e.isTarget=t},changeFirst:function(e,t){e.isFirst=t},changeRecord:function(e,t){e.isRecord=t},changeSlider:function(e,t){e.isSlider=t},changeDrawe:function(e,t){e.isDrawe=t},changeLungLevel:function(e,t){e.lungLevel=t},changeFamilay:function(t,n){0==n.length&&(e.setStorageSync("userid",""),e.setStorageSync("gender",0),t.user={id:"",head_pic:null,nickname:"",birthday:"",gender:0,sex:0,age:0,weight:"",address:"",measure_model:0,card_order:[],card_data_list:[],target_current:{},vitalcapacity_data:[]}),t.familayList=n},changeTrend:function(e,t){e.Trend=t},changeBluetooth:function(e,t){e.isBluetoothTyle=t},changeConnected:function(e,t){e.isConnected=t},changeUserDeviceList:function(e,t){e.userDeviceList=t},changedevicesList:function(e,t){e.devicesList=t},changeLabelList:function(e,t){e.labelList=t},changeCityList:function(e,t){e.cityList=t},changeGradeList:function(e,t){e.gradeList=t},changeIdentityList:function(e,t){e.identityList=t},changePublicAdd:function(e,t){e.isPublicRecord=t},changeCooperationUrl:function(e,t){e.CooperationUrl=t}},modules:{},actions:o.default});t.default=s}).call(this,n("df3c")["default"])},"1eaf":function(e){e.exports=JSON.parse('{"index.title":"Hello i18n","index.home":"主頁","index.component":"組件","index.api":"API","index.schema":"Schema","index.demo":"uni-app 國際化演示","index.demo-description":"包含 uni-framework、manifest.json、pages.json、tabbar、頁面、組件、API、Schema","index.detail":"詳情","index.language":"語言","index.language-info":"語言信息","index.system-language":"系統語言","index.application-language":"應用語言","index.language-change-confirm":"應用此設置將重啟App"}')},"20e4":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}')},"2c93":function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("455e")),a=r(n("7d8e")),o={getAccountNumber:function(e){var t=e.commit;return i.default.getAccountNumber({}).then((function(e){console.log("账户信息",e.data),0==e.code?t("changeAccountNumber",e.data):a.default.msg(e.msg)}))},getUserInfo:function(t,n){var r=t.commit;return i.default.getUserInfo(n).then((function(t){console.log("用户信息",t.data),0==t.code?(e.setStorageSync("userid",t.data.id),e.setStorageSync("gender",t.data.gender),r("changeUser",t.data),r("changeLungLevel",t.data.vitalcapacity_data)):a.default.msg(t.msg)}))},getFamilyList:function(e,t){var n=e.commit;return i.default.getUserList(t).then((function(e){0==e.code?n("changeFamilay",e.data):a.default.msg(e.msg)}))},getCardList:function(e,t){var n=e.commit;return i.default.getCardAllList(t).then((function(e){console.log("卡片列表",e.data),n("changeCardList",e.data)}))},getResult:function(e,t){var n=e.commit;return i.default.getResult(t).then((function(e){console.log("报告",e),0==e.code?n("changeMeasureResult",e.data):n("changeMeasureResult",null)}))},getSkipResult:function(e,t){var n=e.commit;return i.default.getSkipResult(t).then((function(e){console.log("跳绳报告",e),0==e.code?n("changeMeasureSkip",e.data):n("changeMeasureSkip",null)}))},getLungResult:function(e,t){var n=e.commit;return i.default.getLungResult(t).then((function(e){console.log("肺活量报告",e),0==e.code?(n("changeLungLevel",e.data.list),n("changeMeasureLung",e.data)):n("changeMeasureLung",null)}))},getPublicContent:function(e,t){var n=e.commit;return i.default.getpublicContent(t).then((function(e){console.log("公共报告",e),0==e.code?n("changePublicContent",e.data):n("changePublicContent",null)}))},GetBodyTrendList:function(e,t){var n=e.commit;return i.default.getTrendList(t).then((function(e){console.log("趋势",e),n("changeTrend",e.data)}))},gethistoryList:function(e,t){var n=e.commit;return i.default.getHistoryList(t).then((function(e){e.data&&e.data.items?n("changehistoryList",e.data.items):n("changehistoryList",null)}))},getUserDeviceList:function(e){var t=e.commit;return i.default.getUserDeviceList({}).then((function(e){console.log("用户设备",e),e.data?t("changeUserDeviceList",e.data.list):t("changeUserDeviceList",[])}))}};t.default=o}).call(this,n("df3c")["default"])},"30b7":function(e,t){},3223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],a="undefined"!==typeof globalThis?globalThis:function(){return this}(),o=["w","x"].join(""),s=a[o],c=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function l(e){return(!c||1154!==c.scene||!i.includes(e))&&(r.indexOf(e)>-1||"function"===typeof s[e])}a[o]=function(){var e={};for(var t in s)l(t)&&(e[t]=s[t]);return e}();var u=a[o];t.default=u},3240:function(e,t,n){"use strict";n.r(t),function(e){
/*!
* Vue.js v2.6.11
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function a(e){return!0===e}function o(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}p("slot,component",!0);var g=p("key,ref,slot,slot-scope,is");function v(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function m(e,t){return y.call(e,t)}function x(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var _=/-(\w)/g,b=x((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),w=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),S=/\B([A-Z])/g,k=x((function(e){return e.replace(S,"-$1").toLowerCase()}));var A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function C(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function O(e,t,n){}var D=function(e,t,n){return!1},L=function(e){return e};function M(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,n){return M(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),c=Object.keys(t);return o.length===c.length&&o.every((function(n){return M(e[n],t[n])}))}catch(l){return!1}}function I(e,t){for(var n=0;n<e.length;n++)if(M(e[n],t))return n;return-1}function F(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var E=["component","directive","filter"],j=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],R={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:O,parsePlatformTagName:L,mustUseProp:D,async:!0,_lifecycleHooks:j},$=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function N(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function B(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var U=new RegExp("[^"+$.source+".$_\\d]");var z,W="__proto__"in{},H="undefined"!==typeof window,q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,V=q&&WXEnvironment.platform.toLowerCase(),G=H&&window.navigator.userAgent.toLowerCase(),K=G&&/msie|trident/.test(G),J=(G&&G.indexOf("msie 9.0"),G&&G.indexOf("edge/")>0),X=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===V),Y=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/),{}.watch);if(H)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(Rn){}var Z=function(){return void 0===z&&(z=!H&&!q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),z},ee=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var ne,re="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);ne="undefined"!==typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=O,ae=0,oe=function(){this.id=ae++,this.subs=[]};function se(e){oe.SharedObject.targetStack.push(e),oe.SharedObject.target=e,oe.target=e}function ce(){oe.SharedObject.targetStack.pop(),oe.SharedObject.target=oe.SharedObject.targetStack[oe.SharedObject.targetStack.length-1],oe.target=oe.SharedObject.target}oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){v(this.subs,e)},oe.prototype.depend=function(){oe.SharedObject.target&&oe.SharedObject.target.addDep(this)},oe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},oe.SharedObject={},oe.SharedObject.target=null,oe.SharedObject.targetStack=[];var le=function(e,t,n,r,i,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ue={child:{configurable:!0}};ue.child.get=function(){return this.componentInstance},Object.defineProperties(le.prototype,ue);var fe=function(e){void 0===e&&(e="");var t=new le;return t.text=e,t.isComment=!0,t};function he(e){return new le(void 0,void 0,void 0,String(e))}var de=Array.prototype,pe=Object.create(de);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=de[e];B(pe,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&o.observeArray(i),o.dep.notify(),a}))}));var ge=Object.getOwnPropertyNames(pe),ve=!0;function ye(e){ve=e}var me=function(e){this.value=e,this.dep=new oe,this.vmCount=0,B(e,"__ob__",this),Array.isArray(e)?(W?e.push!==e.__proto__.push?xe(e,pe,ge):function(e,t){e.__proto__=t}(e,pe):xe(e,pe,ge),this.observeArray(e)):this.walk(e)};function xe(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];B(e,a,t[a])}}function _e(e,t){var n;if(s(e)&&!(e instanceof le))return m(e,"__ob__")&&e.__ob__ instanceof me?n=e.__ob__:!ve||Z()||!Array.isArray(e)&&!l(e)||!Object.isExtensible(e)||e._isVue||e.__v_isMPComponent||(n=new me(e)),t&&n&&n.vmCount++,n}function be(e,t,n,r,i){var a=new oe,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,c=o&&o.set;s&&!c||2!==arguments.length||(n=e[t]);var l=!i&&_e(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return oe.SharedObject.target&&(a.depend(),l&&(l.dep.depend(),Array.isArray(t)&&ke(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!c||(c?c.call(e,t):n=t,l=!i&&_e(t),a.notify())}})}}function we(e,t,n){if(Array.isArray(e)&&u(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(be(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Se(e,t){if(Array.isArray(e)&&u(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||m(e,t)&&(delete e[t],n&&n.dep.notify())}}function ke(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&ke(t)}me.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)be(e,t[n])},me.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)_e(e[t])};var Ae=R.optionMergeStrategies;function Te(e,t){if(!t)return e;for(var n,r,i,a=re?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)n=a[o],"__ob__"!==n&&(r=e[n],i=t[n],m(e,n)?r!==i&&l(r)&&l(i)&&Te(r,i):we(e,n,i));return e}function Pe(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?Te(r,i):i}:t?e?function(){return Te("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ce(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Oe(e,t,n,r){var i=Object.create(e||null);return t?P(i,t):i}Ae.data=function(e,t,n){return n?Pe(e,t,n):t&&"function"!==typeof t?e:Pe(e,t)},j.forEach((function(e){Ae[e]=Ce})),E.forEach((function(e){Ae[e+"s"]=Oe})),Ae.watch=function(e,t,n,r){if(e===Y&&(e=void 0),t===Y&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var a in P(i,e),t){var o=i[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),i[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return i},Ae.props=Ae.methods=Ae.inject=Ae.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},Ae.provide=Pe;var De=function(e,t){return void 0===t?e:t};function Le(e,t,n){if("function"===typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,a,o={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(a=b(i),o[a]={type:null})}else if(l(n))for(var s in n)i=n[s],a=b(s),o[a]=l(i)?i:{type:i};else 0;e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var a in n){var o=n[a];r[a]=l(o)?P({from:a},o):{from:o}}else 0}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Le(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Le(e,t.mixins[r],n);var a,o={};for(a in e)s(a);for(a in t)m(e,a)||s(a);function s(r){var i=Ae[r]||De;o[r]=i(e[r],t[r],n,r)}return o}function Me(e,t,n,r){if("string"===typeof n){var i=e[t];if(m(i,n))return i[n];var a=b(n);if(m(i,a))return i[a];var o=w(a);if(m(i,o))return i[o];var s=i[n]||i[a]||i[o];return s}}function Ie(e,t,n,r){var i=t[e],a=!m(n,e),o=n[e],s=je(Boolean,i.type);if(s>-1)if(a&&!m(i,"default"))o=!1;else if(""===o||o===k(e)){var c=je(String,i.type);(c<0||s<c)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!m(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"===typeof r&&"Function"!==Fe(t.type)?r.call(e):r}(r,i,e);var l=ve;ye(!0),_e(o),ye(l)}return o}function Fe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ee(e,t){return Fe(e)===Fe(t)}function je(e,t){if(!Array.isArray(t))return Ee(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Ee(t[n],e))return n;return-1}function Re(e,t,n){se();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{var o=!1===i[a].call(r,e,t,n);if(o)return}catch(Rn){Ne(Rn,r,"errorCaptured hook")}}}Ne(e,t,n)}finally{ce()}}function $e(e,t,n,r,i){var a;try{a=n?e.apply(t,n):e.call(t),a&&!a._isVue&&f(a)&&!a._handled&&(a.catch((function(e){return Re(e,r,i+" (Promise/async)")})),a._handled=!0)}catch(Rn){Re(Rn,r,i)}return a}function Ne(e,t,n){if(R.errorHandler)try{return R.errorHandler.call(null,e,t,n)}catch(Rn){Rn!==e&&Be(Rn,null,"config.errorHandler")}Be(e,t,n)}function Be(e,t,n){if(!H&&!q||"undefined"===typeof console)throw e;console.error(e)}var Ue,ze=[],We=!1;function He(){We=!1;var e=ze.slice(0);ze.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&te(Promise)){var qe=Promise.resolve();Ue=function(){qe.then(He),X&&setTimeout(O)}}else if(K||"undefined"===typeof MutationObserver||!te(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ue="undefined"!==typeof setImmediate&&te(setImmediate)?function(){setImmediate(He)}:function(){setTimeout(He,0)};else{var Ve=1,Ge=new MutationObserver(He),Ke=document.createTextNode(String(Ve));Ge.observe(Ke,{characterData:!0}),Ue=function(){Ve=(Ve+1)%2,Ke.data=String(Ve)}}function Je(e,t){var n;if(ze.push((function(){if(e)try{e.call(t)}catch(Rn){Re(Rn,t,"nextTick")}else n&&n(t)})),We||(We=!0,Ue()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var Xe=new ne;function Ye(e){(function e(t,n){var r,i,a=Array.isArray(t);if(!a&&!s(t)||Object.isFrozen(t)||t instanceof le)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a){r=t.length;while(r--)e(t[r],n)}else{i=Object.keys(t),r=i.length;while(r--)e(t[i[r]],n)}})(e,Xe),Xe.clear()}var Qe=x((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function Ze(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return $e(r,null,arguments,t,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)$e(i[a],null,e,t,"v-on handler")}return n.fns=e,n}function et(e,t,n,a){var o=t.options.mpOptions&&t.options.mpOptions.properties;if(r(o))return n;var s=t.options.mpOptions.externalClasses||[],c=e.attrs,l=e.props;if(i(c)||i(l))for(var u in o){var f=k(u),h=tt(n,l,u,f,!0)||tt(n,c,u,f,!1);h&&n[u]&&-1!==s.indexOf(f)&&a[b(n[u])]&&(n[u]=a[b(n[u])])}return n}function tt(e,t,n,r,a){if(i(t)){if(m(t,n))return e[n]=t[n],a||delete t[n],!0;if(m(t,r))return e[n]=t[r],a||delete t[r],!0}return!1}function nt(e){return o(e)?[he(e)]:Array.isArray(e)?function e(t,n){var s,c,l,u,f=[];for(s=0;s<t.length;s++)c=t[s],r(c)||"boolean"===typeof c||(l=f.length-1,u=f[l],Array.isArray(c)?c.length>0&&(c=e(c,(n||"")+"_"+s),rt(c[0])&&rt(u)&&(f[l]=he(u.text+c[0].text),c.shift()),f.push.apply(f,c)):o(c)?rt(u)?f[l]=he(u.text+c):""!==c&&f.push(he(c)):rt(c)&&rt(u)?f[l]=he(u.text+c.text):(a(t._isVList)&&i(c.tag)&&r(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+s+"__"),f.push(c)));return f}(e):void 0}function rt(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function it(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function at(e){var t=ot(e.$options.inject,e);t&&(ye(!1),Object.keys(t).forEach((function(n){be(e,n,t[n])})),ye(!0))}function ot(e,t){if(e){for(var n=Object.create(null),r=re?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var a=r[i];if("__ob__"!==a){var o=e[a].from,s=t;while(s){if(s._provided&&m(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var c=e[a].default;n[a]="function"===typeof c?c.call(t):c}else 0}}return n}}function st(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var a=e[r],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)a.asyncMeta&&a.asyncMeta.data&&"page"===a.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(a):(n.default||(n.default=[])).push(a);else{var s=o.slot,c=n[s]||(n[s]=[]);"template"===a.tag?c.push.apply(c,a.children||[]):c.push(a)}}for(var l in n)n[l].every(ct)&&delete n[l];return n}function ct(e){return e.isComment&&!e.asyncFactory||" "===e.text}function lt(e,t,r){var i,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&r&&r!==n&&s===r.$key&&!a&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=ut(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=ft(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),B(i,"$stable",o),B(i,"$key",s),B(i,"$hasNormal",a),i}function ut(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:nt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function ft(e,t){return function(){return e[t]}}function ht(e,t){var n,r,a,o,c;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,a=e.length;r<a;r++)n[r]=t(e[r],r,r,r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(s(e))if(re&&e[Symbol.iterator]){n=[];var l=e[Symbol.iterator](),u=l.next();while(!u.done)n.push(t(u.value,n.length,r,r++)),u=l.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,a=o.length;r<a;r++)c=o[r],n[r]=t(e[c],c,r,r);return i(n)||(n=[]),n._isVList=!0,n}function dt(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=P(P({},r),n)),i=a(n,this,n._i)||t):i=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function pt(e){return Me(this.$options,"filters",e)||L}function gt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function vt(e,t,n,r,i){var a=R.keyCodes[t]||n;return i&&r&&!R.keyCodes[t]?gt(i,r):a?gt(a,e):r?k(r)!==t:void 0}function yt(e,t,n,r,i){if(n)if(s(n)){var a;Array.isArray(n)&&(n=C(n));var o=function(o){if("class"===o||"style"===o||g(o))a=e;else{var s=e.attrs&&e.attrs.type;a=r||R.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=b(o),l=k(o);if(!(c in a)&&!(l in a)&&(a[o]=n[o],i)){var u=e.on||(e.on={});u["update:"+o]=function(e){n[o]=e}}};for(var c in n)o(c)}else;return e}function mt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),_t(r,"__static__"+e,!1)),r}function xt(e,t,n){return _t(e,"__once__"+t+(n?"_"+n:""),!0),e}function _t(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&bt(e[r],t+"_"+r,n);else bt(e,t,n)}function bt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function wt(e,t){if(t)if(l(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var i=n[r],a=t[r];n[r]=i?[].concat(i,a):a}}else;return e}function St(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?St(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function kt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function At(e,t){return"string"===typeof e?t+e:e}function Tt(e){e._o=xt,e._n=d,e._s=h,e._l=ht,e._t=dt,e._q=M,e._i=I,e._m=mt,e._f=pt,e._k=vt,e._b=yt,e._v=he,e._e=fe,e._u=St,e._g=wt,e._d=kt,e._p=At}function Pt(e,t,r,i,o){var s,c=this,l=o.options;m(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var u=a(l._compiled),f=!u;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=ot(l.inject,i),this.slots=function(){return c.$slots||lt(e.scopedSlots,c.$slots=st(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return lt(e.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=lt(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var a=Ft(s,e,t,n,r,f);return a&&!Array.isArray(a)&&(a.fnScopeId=l._scopeId,a.fnContext=i),a}:this._c=function(e,t,n,r){return Ft(s,e,t,n,r,f)}}function Ct(e,t,n,r,i){var a=function(e){var t=new le(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}(e);return a.fnContext=n,a.fnOptions=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Ot(e,t){for(var n in t)e[b(n)]=t[n]}Tt(Pt.prototype);var Dt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Dt.prepatch(n,n)}else{var r=e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Wt);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var r=t.componentOptions,i=t.componentInstance=e.componentInstance;(function(e,t,r,i,a){0;var o=i.data.scopedSlots,s=e.$scopedSlots,c=!!(o&&!o.$stable||s!==n&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),l=!!(a||e.$options._renderChildren||c);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=a,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){ye(!1);for(var u=e._props,f=e.$options._propKeys||[],h=0;h<f.length;h++){var d=f[h],p=e.$options.props;u[d]=Ie(d,p,t,e)}ye(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,zt(e,r,g),l&&(e.$slots=st(a,i.context),e.$forceUpdate());0})(i,r.propsData,r.listeners,t,r.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Vt(n,"onServiceCreated"),Vt(n,"onServiceAttached"),n._isMounted=!0,Vt(n,"mounted")),e.data.keepAlive&&(t._isMounted?function(e){e._inactive=!1,Kt.push(e)}(n):qt(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Ht(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Vt(t,"deactivated")}}(t,!0):t.$destroy())}},Lt=Object.keys(Dt);function Mt(e,t,o,c,l){if(!r(e)){var u=o.$options._base;if(s(e)&&(e=u.extend(e)),"function"===typeof e){var h;if(r(e.cid)&&(h=e,e=function(e,t){if(a(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=jt;n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(a(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var o=e.owners=[n],c=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return v(o,n)}));var h=function(e){for(var t=0,n=o.length;t<n;t++)o[t].$forceUpdate();e&&(o.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},d=F((function(n){e.resolved=Rt(n,t),c?o.length=0:h(!0)})),p=F((function(t){i(e.errorComp)&&(e.error=!0,h(!0))})),g=e(d,p);return s(g)&&(f(g)?r(e.resolved)&&g.then(d,p):f(g.component)&&(g.component.then(d,p),i(g.error)&&(e.errorComp=Rt(g.error,t)),i(g.loading)&&(e.loadingComp=Rt(g.loading,t),0===g.delay?e.loading=!0:l=setTimeout((function(){l=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,h(!1))}),g.delay||200)),i(g.timeout)&&(u=setTimeout((function(){u=null,r(e.resolved)&&p(null)}),g.timeout)))),c=!1,e.loading?e.loadingComp:e.resolved}}(h,u),void 0===e))return function(e,t,n,r,i){var a=fe();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}(h,t,o,c,l);t=t||{},pn(e),i(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),o=a[r],s=t.model.callback;i(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(a[r]=[s].concat(o)):a[r]=s}(e.options,t);var d=function(e,t,n,a){var o=t.options.props;if(r(o))return et(e,t,{},a);var s={},c=e.attrs,l=e.props;if(i(c)||i(l))for(var u in o){var f=k(u);tt(s,l,u,f,!0)||tt(s,c,u,f,!1)}return et(e,t,s,a)}(t,e,0,o);if(a(e.options.functional))return function(e,t,r,a,o){var s=e.options,c={},l=s.props;if(i(l))for(var u in l)c[u]=Ie(u,l,t||n);else i(r.attrs)&&Ot(c,r.attrs),i(r.props)&&Ot(c,r.props);var f=new Pt(r,c,o,a,e),h=s.render.call(null,f._c,f);if(h instanceof le)return Ct(h,r,f.parent,s,f);if(Array.isArray(h)){for(var d=nt(h)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Ct(d[g],r,f.parent,s,f);return p}}(e,d,t,o,c);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var g=t.slot;t={},g&&(t.slot=g)}(function(e){for(var t=e.hook||(e.hook={}),n=0;n<Lt.length;n++){var r=Lt[n],i=t[r],a=Dt[r];i===a||i&&i._merged||(t[r]=i?It(a,i):a)}})(t);var y=e.options.name||l,m=new le("vue-component-"+e.cid+(y?"-"+y:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:d,listeners:p,tag:l,children:c},h);return m}}}function It(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Ft(e,t,n,c,l,u){return(Array.isArray(n)||o(n))&&(l=c,c=n,n=void 0),a(u)&&(l=2),function(e,t,n,o,c){if(i(n)&&i(n.__ob__))return fe();i(n)&&i(n.is)&&(t=n.is);if(!t)return fe();0;Array.isArray(o)&&"function"===typeof o[0]&&(n=n||{},n.scopedSlots={default:o[0]},o.length=0);2===c?o=nt(o):1===c&&(o=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(o));var l,u;if("string"===typeof t){var f;u=e.$vnode&&e.$vnode.ns||R.getTagNamespace(t),l=R.isReservedTag(t)?new le(R.parsePlatformTagName(t),n,o,void 0,void 0,e):n&&n.pre||!i(f=Me(e.$options,"components",t))?new le(t,n,o,void 0,void 0,e):Mt(f,n,e,o,t)}else l=Mt(t,n,e,o);return Array.isArray(l)?l:i(l)?(i(u)&&function e(t,n,o){t.ns=n,"foreignObject"===t.tag&&(n=void 0,o=!0);if(i(t.children))for(var s=0,c=t.children.length;s<c;s++){var l=t.children[s];i(l.tag)&&(r(l.ns)||a(o)&&"svg"!==l.tag)&&e(l,n,o)}}(l,u),i(n)&&function(e){s(e.style)&&Ye(e.style);s(e.class)&&Ye(e.class)}(n),l):fe()}(e,t,n,c,l)}var Et,jt=null;function Rt(e,t){return(e.__esModule||re&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function $t(e){return e.isComment&&e.asyncFactory}function Nt(e,t){Et.$on(e,t)}function Bt(e,t){Et.$off(e,t)}function Ut(e,t){var n=Et;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function zt(e,t,n){Et=e,function(e,t,n,i,o,s){var c,l,u,f;for(c in e)l=e[c],u=t[c],f=Qe(c),r(l)||(r(u)?(r(l.fns)&&(l=e[c]=Ze(l,s)),a(f.once)&&(l=e[c]=o(f.name,l,f.capture)),n(f.name,l,f.capture,f.passive,f.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)r(e[c])&&(f=Qe(c),i(f.name,t[c],f.capture))}(t,n||{},Nt,Bt,Ut,e),Et=void 0}var Wt=null;function Ht(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function qt(e,t){if(t){if(e._directInactive=!1,Ht(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)qt(e.$children[n]);Vt(e,"activated")}}function Vt(e,t){se();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,a=n.length;i<a;i++)$e(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ce()}var Gt=[],Kt=[],Jt={},Xt=!1,Yt=!1,Qt=0;var Zt=Date.now;if(H&&!K){var en=window.performance;en&&"function"===typeof en.now&&Zt()>document.createEvent("Event").timeStamp&&(Zt=function(){return en.now()})}function tn(){var e,t;for(Zt(),Yt=!0,Gt.sort((function(e,t){return e.id-t.id})),Qt=0;Qt<Gt.length;Qt++)e=Gt[Qt],e.before&&e.before(),t=e.id,Jt[t]=null,e.run();var n=Kt.slice(),r=Gt.slice();(function(){Qt=Gt.length=Kt.length=0,Jt={},Xt=Yt=!1})(),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,qt(e[t],!0)}(n),function(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Vt(r,"updated")}}(r),ee&&R.devtools&&ee.emit("flush")}var nn=0,rn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++nn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ne,this.newDepIds=new ne,this.expression="","function"===typeof t?this.getter=t:(this.getter=function(e){if(!U.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()};rn.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Rn){if(!this.user)throw Rn;Re(Rn,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ye(e),ce(),this.cleanupDeps()}return e},rn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},rn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},rn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Jt[t]){if(Jt[t]=!0,Yt){var n=Gt.length-1;while(n>Qt&&Gt[n].id>e.id)n--;Gt.splice(n+1,0,e)}else Gt.push(e);Xt||(Xt=!0,Je(tn))}}(this)},rn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Rn){Re(Rn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var an={enumerable:!0,configurable:!0,get:O,set:O};function on(e,t,n){an.get=function(){return this[t][n]},an.set=function(e){this[t][n]=e},Object.defineProperty(e,n,an)}function sn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],a=!e.$parent;a||ye(!1);var o=function(a){i.push(a);var o=Ie(a,t,n,e);be(r,a,o),a in e||on(e,"_props",a)};for(var s in t)o(s);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?O:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(Rn){return Re(Rn,t,"data()"),{}}finally{ce()}}(t,e):t||{},l(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var a=n[i];0,r&&m(r,a)||N(a)||on(e,"_data",a)}_e(t,!0)}(e):_e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Z();for(var i in t){var a=t[i],o="function"===typeof a?a:a.get;0,r||(n[i]=new rn(e,o||O,O,cn)),i in e||ln(e,i,a)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)hn(e,n,r[i]);else hn(e,n,r)}}(e,t.watch)}var cn={lazy:!0};function ln(e,t,n){var r=!Z();"function"===typeof n?(an.get=r?un(t):fn(n),an.set=O):(an.get=n.get?r&&!1!==n.cache?un(t):fn(n.get):O,an.set=n.set||O),Object.defineProperty(e,t,an)}function un(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),oe.SharedObject.target&&t.depend(),t.value}}function fn(e){return function(){return e.call(this,this)}}function hn(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}var dn=0;function pn(e){var t=e.options;if(e.super){var n=pn(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);i&&P(e.extendOptions,i),t=e.options=Le(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function gn(e){this._init(e)}function vn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=Le(n.options,e),o["super"]=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)on(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)ln(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,E.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=P({},o.options),i[r]=o,o}}function yn(e){return e&&(e.Ctor.options.name||e.tag)}function mn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function xn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=yn(o.componentOptions);s&&!t(s)&&_n(n,a,r,i)}}}function _n(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=dn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Le(pn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=st(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var a=r&&r.data;be(e,"$attrs",a&&a.attrs||n,null,!0),be(e,"$listeners",t._parentListeners||n,null,!0)}(t),Vt(t,"beforeCreate"),!t._$fallback&&at(t),sn(t),!t._$fallback&&it(t),!t._$fallback&&Vt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(gn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=we,e.prototype.$delete=Se,e.prototype.$watch=function(e,t,n){if(l(t))return hn(this,e,t,n);n=n||{},n.user=!0;var r=new rn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(i){Re(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(gn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;var s=o.length;while(s--)if(a=o[s],a===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)$e(n[a],t,r,t,i)}return t}}(gn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=function(e){var t=Wt;return Wt=e,function(){Wt=t}}(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),a(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Vt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||v(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Vt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(gn),function(e){Tt(e.prototype),e.prototype.$nextTick=function(e){return Je(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=lt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{jt=t,e=r.call(t._renderProxy,t.$createElement)}catch(Rn){Re(Rn,t,"render"),e=t._vnode}finally{jt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof le||(e=fe()),e.parent=i,e}}(gn);var bn=[String,RegExp,Array],wn={name:"keep-alive",abstract:!0,props:{include:bn,exclude:bn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)_n(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){xn(e,(function(e){return mn(t,e)}))})),this.$watch("exclude",(function(t){xn(e,(function(e){return!mn(t,e)}))}))},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||$t(n)))return n}}(e),n=t&&t.componentOptions;if(n){var r=yn(n),a=this.include,o=this.exclude;if(a&&(!r||!mn(a,r))||o&&r&&mn(o,r))return t;var s=this.cache,c=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;s[l]?(t.componentInstance=s[l].componentInstance,v(c,l),c.push(l)):(s[l]=t,c.push(l),this.max&&c.length>parseInt(this.max)&&_n(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Sn={KeepAlive:wn};(function(e){var t={get:function(){return R}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:P,mergeOptions:Le,defineReactive:be},e.set=we,e.delete=Se,e.nextTick=Je,e.observable=function(e){return _e(e),e},e.options=Object.create(null),E.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,Sn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Le(this.options,e),this}}(e),vn(e),function(e){E.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)})(gn),Object.defineProperty(gn.prototype,"$isServer",{get:Z}),Object.defineProperty(gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Pt}),gn.version="2.6.11";var kn="[object Array]",An="[object Object]";function Tn(e,t){var n={};return function e(t,n){if(t===n)return;var r=Cn(t),i=Cn(n);if(r==An&&i==An){if(Object.keys(t).length>=Object.keys(n).length)for(var a in n){var o=t[a];void 0===o?t[a]=null:e(o,n[a])}}else r==kn&&i==kn&&t.length>=n.length&&n.forEach((function(n,r){e(t[r],n)}))}(e,t),function e(t,n,r,i){if(t===n)return;var a=Cn(t),o=Cn(n);if(a==An)if(o!=An||Object.keys(t).length<Object.keys(n).length)Pn(i,r,t);else{var s=function(a){var o=t[a],s=n[a],c=Cn(o),l=Cn(s);if(c!=kn&&c!=An)o!==n[a]&&function(e,t){if(("[object Null]"===e||"[object Undefined]"===e)&&("[object Null]"===t||"[object Undefined]"===t))return!1;return!0}(c,l)&&Pn(i,(""==r?"":r+".")+a,o);else if(c==kn)l!=kn||o.length<s.length?Pn(i,(""==r?"":r+".")+a,o):o.forEach((function(t,n){e(t,s[n],(""==r?"":r+".")+a+"["+n+"]",i)}));else if(c==An)if(l!=An||Object.keys(o).length<Object.keys(s).length)Pn(i,(""==r?"":r+".")+a,o);else for(var u in o)e(o[u],s[u],(""==r?"":r+".")+a+"."+u,i)};for(var c in t)s(c)}else a==kn?o!=kn||t.length<n.length?Pn(i,r,t):t.forEach((function(t,a){e(t,n[a],r+"["+a+"]",i)})):Pn(i,r,t)}(e,t,"",n),n}function Pn(e,t,n){e[t]=n}function Cn(e){return Object.prototype.toString.call(e)}function On(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"Reedaw",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var n=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function Dn(e,t){if(!e.__next_tick_pending&&!function(e){return Gt.find((function(t){return e._watcher===t}))}(e)){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"Reedaw",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextVueTick")}return Je(t,e)}if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"Reedaw",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextMPTick")}var i;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(Rn){Re(Rn,e,"nextTick")}else i&&i(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){i=e}))}function Ln(e,t){return t&&(t._isVue||t.__v_isMPComponent)?{}:t}function Mn(){}function In(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r<a;r++)i(t=In(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):s(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"===typeof e?e:""}var Fn=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));var En=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var jn=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];gn.prototype.__patch__=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=function(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){t[n]=e[n]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,Ln))}(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var a=Object.create(null);Object.keys(i).forEach((function(e){a[e]=r.data[e]}));var o=!1===this.$shouldDiffData?i:Tn(i,a);Object.keys(o).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"Reedaw",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(o)),this.__next_tick_pending=!0,r.setData(o,(function(){n.__next_tick_pending=!1,On(n)}))):On(this)}},gn.prototype.$mount=function(e,t){return function(e,t,n){return e.mpType?("app"===e.mpType&&(e.$options.render=Mn),e.$options.render||(e.$options.render=Mn),!e._$fallback&&Vt(e,"beforeMount"),new rn(e,(function(){e._update(e._render(),n)}),O,{before:function(){e._isMounted&&!e._isDestroyed&&Vt(e,"beforeUpdate")}},!0),n=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==jn.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;jn.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=jn}(gn),function(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:T(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Dn(this,e)},En.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=it,e.prototype.__init_injections=at,e.prototype.__call_hook=function(e,t){var n=this;se();var r,i=n.$options[e],a=e+" hook";if(i)for(var o=0,s=i.length;o<s;o++)r=$e(i[o],n,t?[t]:null,n,a);return n._hasHookEvent&&n.$emit("hook:"+e,t),ce(),r},e.prototype.__set_model=function(t,n,r,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(r=r.trim()),-1!==i.indexOf("number")&&(r=this._n(r))),t||(t=this),e.set(t,n,r)},e.prototype.__set_sync=function(t,n,r){t||(t=this),e.set(t,n,r)},e.prototype.__get_orig=function(e){return l(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return function e(t,n){var r=n.split("."),i=r[0];return 0===i.indexOf("__$n")&&(i=parseInt(i.replace("__$n",""))),1===r.length?t[i]:e(t[i],r.slice(1).join("."))}(t||this,e)},e.prototype.__get_class=function(e,t){return function(e,t){return i(e)||i(t)?function(e,t){return e?t?e+" "+t:e:t||""}(e,In(t)):""}(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=function(e){return Array.isArray(e)?C(e):"string"===typeof e?Fn(e):e}(e),r=t?P(t,n):n;return Object.keys(r).map((function(e){return k(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,i,a,o;if(Array.isArray(e)){for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);return n}if(s(e)){for(a=Object.keys(e),n=Object.create(null),r=0,i=a.length;r<i;r++)o=a[r],n[o]=t(e[o],o,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,i=e;r<i;r++)n[r]=t(r,r);return n}return[]}}(gn),t["default"]=gn}.call(this,n("0ee4"))},3352:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"34cf":function(e,t,n){var r=n("ed45"),i=n("7172"),a=n("6382"),o=n("dd3e");e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports},"36c8":function(e){e.exports=JSON.parse('{"index.title":"Hello i18n","index.home":"ホーム","index.component":"コンポーネント","index.api":"API","index.schema":"Schema","index.demo":"uni-app globalization","index.demo-description":"ユニフレームワーク、manifest.json、pages.json、タブバー、ページ、コンポーネント、APIを含める、Schema","index.detail":"詳細","index.language":"言語","index.language-info":"設定","index.system-language":"システム言語","index.application-language":"アプリケーション言語","index.language-change-confirm":"この設定を適用すると、アプリが再起動します"}')},"3b2d":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"42d6":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"}')},"455e":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("b788")),a=(r(n("7d8e")),r(n("1160")),{getonlogin:function(e){return i.default.post("/login_action",e).then((function(e){return e}))},getSendCode:function(e){return i.default.post("/send_phone_email_code",e).then((function(e){return e}))},getregister:function(e){return i.default.post("/register_action",e).then((function(e){return e}))},getdeleteAccount:function(e){return i.default.post("/delete_account",e).then((function(e){return e}))},getResetPassword:function(e){return i.default.post("/reset_password",e).then((function(e){return e}))},getloginOut:function(e){return i.default.post("/user_quit_account",e).then((function(e){return e}))},getloginversion:function(e){return i.default.post("/login_invalid_version",e).then((function(e){return e}))},getAccountNumber:function(e){return i.default.post("/get_my_account_msg",e).then((function(e){return e}))},getAccountPassword:function(e){return i.default.post("/update_my_password",e).then((function(e){return e}))},getAccountNickname:function(e){return i.default.post("/update_my_nickname",e).then((function(e){return e}))},getAccountMsg:function(e){return i.default.post("/update_my_account_msg",e).then((function(e){return e}))},getUserInfo:function(e){return i.default.post("/get_user_data_information",e).then((function(e){return e}))},getUserList:function(e){return i.default.post("/get_user_card_list",e).then((function(e){if(e.data.length){var t=[{text:"删除",style:{backgroundColor:"#dd524d"}}];e.data.forEach((function(e){e.options=t}))}return e}))},getDelUser:function(e){return i.default.post("/del_user_data",e).then((function(e){return e}))},getEditUser:function(e){return i.default.post("/update_user_data",e).then((function(e){return e}))},getAddUser:function(e){return i.default.post("/create_user_data",e).then((function(e){return e}))},getGradeList:function(e){return i.default.post("/get_grade_list",e).then((function(e){return e}))},getCardAllList:function(e){return i.default.post("/get_card_all_list",e).then((function(e){return e}))},getCardAllOrder:function(e){return i.default.post("/save_user_card_order",e).then((function(e){return e}))},getfirstweight:function(e){return i.default.post("/card_modify_weight",e).then((function(e){return e}))},getinsertmeasure:function(e){return i.default.post("/card_manual_recording",e).then((function(e){return e}))},getResult:function(e){return i.default.post("/card_data_detailed",e).then((function(e){return e}))},getTrendList:function(e){return i.default.post("/card_curve_chart",e).then((function(e){return e}))},getmeasurefunit:function(e){return i.default.post("/card_manual_recording_device",e).then((function(e){return e}))},getSkipResult:function(e){return i.default.post("/skip_today_data",e).then((function(e){return e}))},getskipmeasure:function(e){return i.default.post("/skip_manual_recording",e).then((function(e){return e}))},getskipResult:function(e){return i.default.post("/skip_manual_recording_device",e).then((function(e){return e}))},getSkipTrendList:function(e){return i.default.post("/skip_curve_chart",e).then((function(e){return e}))},getLungResult:function(e){return i.default.post("/vitalcapacity_data_report",e).then((function(e){return e}))},getLungmeasure:function(e){return i.default.post("/vitalcapacity_save_record_data",e).then((function(e){return e}))},getMeasureLung:function(e){return i.default.post("/vitalcapacity_save_record_data_device",e).then((function(e){return e}))},getLungTrendList:function(e){return i.default.post("/vitalcapacity_curve_chart",e).then((function(e){return e}))},getSportshistory:function(e){return i.default.post("/sportstesting_get_all_list",e).then((function(e){return e}))},getSportshistorydetail:function(e){return i.default.post("/sportstesting_get_one_details",e).then((function(e){return e}))},getSportsListAll:function(e){return i.default.post("/sportstesting_get_region_list",e).then((function(e){return e}))},getSportsList:function(e){return i.default.post("/sportstesting_get_type_list",e).then((function(e){return e}))},getSportsData:function(e){return i.default.post("/sportstesting_set_once_data",e).then((function(e){return e}))},getCityList:function(e){return i.default.post("/sportstesting_get_city_list",e).then((function(e){return e}))},getDeviceList:function(e){return i.default.post("/device_data_list",e).then((function(e){return e}))},getBinding:function(e){return i.default.post("/device_binding",e).then((function(e){return e}))},getUserDeviceList:function(e){return i.default.post("/device_user_data_list",e).then((function(e){return e}))},getUnbinding:function(e){return i.default.post("/device_unbinding",e).then((function(e){return e}))},getdevdetail:function(e){return i.default.post("/device_mac_get_content",e).then((function(e){return e}))},gethistory:function(e){return i.default.post("/get_all_record_data_page",e).then((function(e){return e}))},gethistorydetail:function(e){return i.default.post("/get_all_record_detailed_information",e).then((function(e){return e}))},gethistorydelete:function(e){return i.default.post("/card_del_record_data",e).then((function(e){return e}))},getresultdiff:function(e){return i.default.post("/get_all_record_data_group",e).then((function(e){if(0==e.code){for(var t=[],n=0;n<e.data.length;n++)t.includes(e.data[n].r_t)||t.push(e.data[n].r_t);e.Dlist=t,console.log("111111",e)}return e}))},getresultcontrast:function(e){return i.default.post("/get_all_card_data_contrast",e).then((function(e){return e}))},getPublicRecord:function(e){return i.default.post("/obtain_manual_record_content",e).then((function(e){return e}))},getpublicmeasure:function(e){return i.default.post("/public_data_save",e).then((function(e){return e}))},getpublicContent:function(e){return i.default.post("/get_card_content",e).then((function(e){return e}))},getLabelList:function(e){return i.default.post("/get_label_list",e).then((function(e){return e}))},getPublicTrendList:function(e){return i.default.post("/card_motion_curve",e).then((function(e){return e}))},getPublicHistory:function(e){return i.default.post("/obtain_history_record",e).then((function(e){return e}))},getPublicHistoryDel:function(e){return i.default.post("/history_record_del",e).then((function(e){return e}))},getPublicResultdiff:function(e){return i.default.post("/data_contrast_obtain_data",e).then((function(e){if(0==e.code){for(var t=[],n=0;n<e.data.length;n++)t.includes(e.data[n].r_t)||t.push(e.data[n].r_t);e.Dlist=t}return e}))},GetPredictheight:function(e){return i.default.post("/card_height_prediction",e).then((function(e){return e}))},calcbmi:function(e){return i.default.post("/card_bmi_evaluation",e).then((function(e){return e}))},getContentMsg:function(e){return i.default.post("/get_sector_content_msg",e).then((function(e){return e}))},getContentLabel:function(e){return i.default.post("/get_sector_label_msg",e).then((function(e){return e}))},getContentLike:function(e){return i.default.post("/user_like_it",e).then((function(e){return e}))},getContentDetail:function(e){return i.default.get("/model_content",e).then((function(e){return e}))},getBannerList:function(e){return i.default.post("/get_recommend_information",e).then((function(e){return e}))},getCooperationUrl:function(e){return i.default.post("/get_business_cooperation_url",e).then((function(e){return e}))}});t.default=a},4589:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"}')},"47a9":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},4965:function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"4d79":function(e,t,n){"use strict";n.r(t);
/*!
* vue-i18n v8.28.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],i=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function a(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var o=Array.isArray;function s(e){return null!==e&&"object"===typeof e}function c(e){return"boolean"===typeof e}function l(e){return"string"===typeof e}var u=Object.prototype.toString;function f(e){return"[object Object]"===u.call(e)}function h(e){return null===e||void 0===e}function d(e){return"function"===typeof e}function p(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,r=null;return 1===e.length?s(e[0])||o(e[0])?r=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(s(e[1])||o(e[1]))&&(r=e[1])),{locale:n,params:r}}function g(e){return JSON.parse(JSON.stringify(e))}function v(e,t){return!!~e.indexOf(t)}var y=Object.prototype.hasOwnProperty;function m(e,t){return y.call(e,t)}function x(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var i=t[r];if(void 0!==i&&null!==i){var a=void 0;for(a in i)m(i,a)&&(s(i[a])?n[a]=x(n[a],i[a]):n[a]=i[a])}}return n}function _(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=o(e),a=o(t);if(i&&a)return e.length===t.length&&e.every((function(e,n){return _(e,t[n])}));if(i||a)return!1;var c=Object.keys(e),l=Object.keys(t);return c.length===l.length&&c.every((function(n){return _(e[n],t[n])}))}catch(u){return!1}}function b(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}(e[t]))})),e}var w={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,i=t.props,a=t.slots,o=r.$i18n;if(o){var s=i.path,c=i.locale,l=i.places,u=a(),f=o.i(s,c,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||l?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(k,{}):Object.assign({},e)}(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(A);0;return e.reduce(r?S:k,n)}(u.default,l):u),h=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return h?e(h,n,f):f}}};function S(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function k(e,t,n){return e[n]=t,e}function A(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var T,P={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,i=t.parent,a=t.data,o=i.$i18n;if(!o)return null;var c=null,u=null;l(n.format)?c=n.format:s(n.format)&&(n.format.key&&(c=n.format.key),u=Object.keys(n.format).reduce((function(e,t){var i;return v(r,t)?Object.assign({},e,(i={},i[t]=n.format[t],i)):e}),null));var f=n.locale||o.locale,h=o._ntp(n.value,f,c,u),d=h.map((function(e,t){var n,r=a.scopedSlots&&a.scopedSlots[e.type];return r?r((n={},n[e.type]=e.value,n.index=t,n.parts=h,n)):e.value})),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?e(p,{attrs:a.attrs,class:a["class"],staticClass:a.staticClass},d):d}};function C(e,t,n){L(e,n)&&M(e,t,n)}function O(e,t,n,r){if(L(e,n)){var i=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&_(t.value,t.oldValue)&&_(e._localeMessage,i.getLocaleMessage(i.locale))||M(e,t,n)}}function D(e,t,n,r){var i=n.context;if(i){var o=n.context.$i18n||{};t.modifiers.preserve||o.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else a("Vue instance does not exists in VNode context")}function L(e,t){var n=t.context;return n?!!n.$i18n||(a("VueI18n instance does not exists in Vue instance"),!1):(a("Vue instance does not exists in VNode context"),!1)}function M(e,t,n){var r,i,o=t.value,s=function(e){var t,n,r,i;l(e)?t=e:f(e)&&(t=e.path,n=e.locale,r=e.args,i=e.choice);return{path:t,locale:n,args:r,choice:i}}(o),c=s.path,u=s.locale,h=s.args,d=s.choice;if(c||u||h)if(c){var p=n.context;e._vt=e.textContent=null!=d?(r=p.$i18n).tc.apply(r,[c,d].concat(I(u,h))):(i=p.$i18n).t.apply(i,[c].concat(I(u,h))),e._locale=p.$i18n.locale,e._localeMessage=p.$i18n.getLocaleMessage(p.$i18n.locale)}else a("`path` is required in v-t directive");else a("value type not supported")}function I(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||f(t))&&n.push(t),n}function F(e,t){void 0===t&&(t={bridge:!1}),F.installed=!0,T=e;T.version&&Number(T.version.split(".")[0]);(function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(T),T.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n)if(e.i18n instanceof X){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{},n=e.__i18nBridge||e.__i18n;n.forEach((function(e){t=x(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(c){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof X?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var i=e.i18n&&e.i18n.messages?e.i18n.messages:{},a=e.__i18nBridge||e.__i18n;a.forEach((function(e){i=x(i,JSON.parse(e))})),e.i18n.messages=i}catch(c){0}var o=e.i18n,s=o.sharedMessages;s&&f(s)&&(e.i18n.messages=x(e.i18n.messages,s)),this._i18n=new X(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof X?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof X&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof X||f(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof X||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof X)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),T.directive("t",{bind:C,update:O,unbind:D}),T.component(w.name,w),T.component(P.name,P);var n=T.config.optionMergeStrategies;n.i18n=function(e,t){return void 0===t?e:t}}var E=function(){this._caches=Object.create(null)};E.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";while(n<e.length){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var a="";i=e[n++];while(void 0!==i&&"}"!==i)a+=i,i=e[n++];var o="}"===i,s=j.test(a)?"list":o&&R.test(a)?"named":"unknown";t.push({value:a,type:s})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":s(t)?"named":"unknown";if("unknown"===i)return n;while(r<e.length){var a=e[r];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(t[parseInt(a.value,10)]);break;case"named":"named"===i&&n.push(t[a.value]);break;case"unknown":0;break}r++}return n}(n,t)};var j=/^(?:\d)+/,R=/^(?:\w)+/;var $=[];$[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},$[1]={ws:[1],".":[2],"[":[4],eof:[7]},$[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},$[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},$[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},$[5]={"'":[4,0],eof:8,else:[5,0]},$[6]={'"':[4,0],eof:8,else:[6,0]};var N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function B(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function U(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(function(e){return N.test(e)}(t)?function(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t)}var z=function(){this._cache=Object.create(null)};z.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,r,i,a,o,s,c=[],l=-1,u=0,f=0,h=[];function d(){var t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,r="\\"+t,h[0](),!0}h[1]=function(){void 0!==n&&(c.push(n),n=void 0)},h[0]=function(){void 0===n?n=r:n+=r},h[2]=function(){h[0](),f++},h[3]=function(){if(f>0)f--,u=4,h[0]();else{if(f=0,void 0===n)return!1;if(n=U(n),!1===n)return!1;h[1]()}};while(null!==u)if(l++,t=e[l],"\\"!==t||!d()){if(i=B(t),s=$[u],a=s[i]||s["else"]||8,8===a)return;if(u=a[0],o=h[a[1]],o&&(r=a[2],r=void 0===r?t:r,!1===o()))return;if(7===u)return c}}(e),t&&(this._cache[e]=t)),t||[]},z.prototype.getPathValue=function(e,t){if(!s(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var r=n.length,i=e,a=0;while(a<r){var o=i[n[a]];if(void 0===o||null===o)return null;i=o,a++}return i};var W,H=/<\/?[\w\s="/.':;#-\/]+>/,q=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,V=/^@(?:\.([a-zA-Z]+))?:/,G=/[()]/g,K={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},J=new E,X=function(e){var t=this;void 0===e&&(e={}),!T&&"undefined"!==typeof window&&window.Vue&&F(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},a=e.dateTimeFormats||e.datetimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||J,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new z,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex){var i=r.getChoiceIndex;return i.call(t,e,n)}return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}(e,n)},this._exist=function(e,n){return!(!e||!n)&&(!h(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:a,numberFormats:o})},Y={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};X.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,i){if(f(n))Object.keys(n).forEach((function(a){var o=n[a];f(o)?(i.push(a),i.push("."),r(e,t,o,i),i.pop(),i.pop()):(i.push(a),r(e,t,o,i),i.pop())}));else if(o(n))n.forEach((function(n,a){f(n)?(i.push("["+a+"]"),i.push("."),r(e,t,n,i),i.pop(),i.pop()):(i.push("["+a+"]"),r(e,t,n,i),i.pop())}));else if(l(n)){var s=H.test(n);if(s){var c="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?a(c):"error"===e&&function(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(c)}}};r(t,e,n,[])},X.prototype._initVM=function(e){var t=T.config.silent;T.config.silent=!0,this._vm=new T({data:e,__VUE18N__INSTANCE__:!0}),T.config.silent=t},X.prototype.destroyVM=function(){this._vm.$destroy()},X.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},X.prototype.unsubscribeDataChanging=function(e){(function(e,t){if(e.delete(t));})(this._dataListeners,e)},X.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}(e._dataListeners),n=t.length;while(n--)T.nextTick((function(){t[n]&&t[n].$forceUpdate()}))}),{deep:!0})},X.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},X.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Y.vm.get=function(){return this._vm},Y.messages.get=function(){return g(this._getMessages())},Y.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},Y.numberFormats.get=function(){return g(this._getNumberFormats())},Y.availableLocales.get=function(){return Object.keys(this.messages).sort()},Y.locale.get=function(){return this._vm.locale},Y.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Y.fallbackLocale.get=function(){return this._vm.fallbackLocale},Y.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Y.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Y.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Y.missing.get=function(){return this._missing},Y.missing.set=function(e){this._missing=e},Y.formatter.get=function(){return this._formatter},Y.formatter.set=function(e){this._formatter=e},Y.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Y.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Y.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Y.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Y.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Y.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Y.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Y.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},Y.postTranslation.get=function(){return this._postTranslation},Y.postTranslation.set=function(e){this._postTranslation=e},Y.sync.get=function(){return this._sync},Y.sync.set=function(e){this._sync=e},X.prototype._getMessages=function(){return this._vm.messages},X.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},X.prototype._getNumberFormats=function(){return this._vm.numberFormats},X.prototype._warnDefault=function(e,t,n,r,i,a){if(!h(n))return n;if(this._missing){var o=this._missing.apply(null,[e,t,r,i]);if(l(o))return o}else 0;if(this._formatFallbackMessages){var s=p.apply(void 0,i);return this._render(t,a,s.params,t)}return t},X.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:h(e))&&!h(this._root)&&this._fallbackRoot},X.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},X.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},X.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},X.prototype._interpolate=function(e,t,n,r,i,a,s){if(!t)return null;var c,u=this._path.getPathValue(t,n);if(o(u)||f(u))return u;if(h(u)){if(!f(t))return null;if(c=t[n],!l(c)&&!d(c))return null}else{if(!l(u)&&!d(u))return null;c=u}return l(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(e,t,c,r,"raw",a,s)),this._render(c,i,a,n)},X.prototype._link=function(e,t,n,r,i,a,s){var c=n,l=c.match(q);for(var u in l)if(l.hasOwnProperty(u)){var f=l[u],h=f.match(V),d=h[0],p=h[1],g=f.replace(d,"").replace(G,"");if(v(s,g))return c;s.push(g);var y=this._interpolate(e,t,g,r,"raw"===i?"string":i,"raw"===i?void 0:a,s);if(this._isFallbackRoot(y)){if(!this._root)throw Error("unexpected error");var m=this._root.$i18n;y=m._translate(m._getMessages(),m.locale,m.fallbackLocale,g,r,i,a)}y=this._warnDefault(e,g,y,r,o(a)?a:[a],i),this._modifiers.hasOwnProperty(p)?y=this._modifiers[p](y):K.hasOwnProperty(p)&&(y=K[p](y)),s.pop(),c=y?c.replace(f,y):c}return c},X.prototype._createMessageContext=function(e,t,n,r){var i=this,a=o(e)?e:[],c=s(e)?e:{},l=this._getMessages(),u=this.locale;return{list:function(e){return a[e]},named:function(e){return c[e]},values:e,formatter:t,path:n,messages:l,locale:u,linked:function(e){return i._interpolate(u,l[u]||{},e,null,r,void 0,[e])}}},X.prototype._render=function(e,t,n,r){if(d(e))return e(this._createMessageContext(n,this._formatter||J,r,t));var i=this._formatter.interpolate(e,n,r);return i||(i=J.interpolate(e,n,r)),"string"!==t||l(i)?i:i.join("")},X.prototype._appendItemToChain=function(e,t,n){var r=!1;return v(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},X.prototype._appendLocaleToChain=function(e,t,n){var r,i=t.split("-");do{var a=i.join("-");r=this._appendItemToChain(e,a,n),i.splice(-1,1)}while(i.length&&!0===r);return r},X.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&c(r);i++){var a=t[i];l(a)&&(r=this._appendLocaleToChain(e,a,n))}return r},X.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];var r,i=[e];while(o(i))i=this._appendBlockToChain(n,i,t);r=o(t)?t:s(t)?t["default"]?t["default"]:null:t,i=l(r)?[r]:r,i&&this._appendBlockToChain(n,i,null),this._localeChainCache[e]=n}return n},X.prototype._translate=function(e,t,n,r,i,a,o){for(var s,c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var u=c[l];if(s=this._interpolate(u,e[u],r,i,a,o,[r]),!h(s))return s}return null},X.prototype._t=function(e,t,n,r){var i,a=[],o=arguments.length-4;while(o-- >0)a[o]=arguments[o+4];if(!e)return"";var s=p.apply(void 0,a);this._escapeParameterHtml&&(s.params=b(s.params));var c=s.locale||t,l=this._translate(n,c,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(a))}return l=this._warnDefault(c,e,l,r,a,"string"),this._postTranslation&&null!==l&&void 0!==l&&(l=this._postTranslation(l,e)),l},X.prototype.t=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},X.prototype._i=function(e,t,n,r,i){var a=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,a,r,[i],"raw")},X.prototype.i=function(e,t,n){return e?(l(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},X.prototype._tc=function(e,t,n,r,i){var a,o=[],s=arguments.length-5;while(s-- >0)o[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},l=p.apply(void 0,o);return l.params=Object.assign(c,l.params),o=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((a=this)._t.apply(a,[e,t,n,r].concat(o)),i)},X.prototype.fetchChoice=function(e,t){if(!e||!l(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},X.prototype.tc=function(e,t){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},X.prototype._te=function(e,t,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var a=p.apply(void 0,r).locale||t;return this._exist(n[a],e)},X.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},X.prototype.getLocaleMessage=function(e){return g(this._vm.messages[e]||{})},X.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},X.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,x("undefined"!==typeof this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},X.prototype.getDateTimeFormat=function(e){return g(this._vm.dateTimeFormats[e]||{})},X.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},X.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,x(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},X.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},X.prototype._localizeDateTime=function(e,t,n,r,i,a){for(var o=t,s=r[o],c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var u=c[l];if(s=r[u],o=u,!h(s)&&!h(s[i]))break}if(h(s)||h(s[i]))return null;var f,d=s[i];if(a)f=new Intl.DateTimeFormat(o,Object.assign({},d,a));else{var p=o+"__"+i;f=this._dateTimeFormatters[p],f||(f=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(o,d))}return f.format(e)},X.prototype._d=function(e,t,n,r){if(!n){var i=r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t);return i.format(e)}var a=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return a||""},X.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,a=null,o=null;return 1===t.length?(l(t[0])?a=t[0]:s(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(a=t[0].key)),o=Object.keys(t[0]).reduce((function(e,n){var r;return v(i,n)?Object.assign({},e,(r={},r[n]=t[0][n],r)):e}),null)):2===t.length&&(l(t[0])&&(a=t[0]),l(t[1])&&(r=t[1])),this._d(e,r,a,o)},X.prototype.getNumberFormat=function(e){return g(this._vm.numberFormats[e]||{})},X.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},X.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,x(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},X.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},X.prototype._getNumberFormatter=function(e,t,n,r,i,a){for(var o=t,s=r[o],c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var u=c[l];if(s=r[u],o=u,!h(s)&&!h(s[i]))break}if(h(s)||h(s[i]))return null;var f,d=s[i];if(a)f=new Intl.NumberFormat(o,Object.assign({},d,a));else{var p=o+"__"+i;f=this._numberFormatters[p],f||(f=this._numberFormatters[p]=new Intl.NumberFormat(o,d))}return f},X.prototype._n=function(e,t,n,r){if(!X.availabilities.numberFormat)return"";if(!n){var i=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return i.format(e)}var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),o=a&&a.format(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return o||""},X.prototype.n=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.locale,a=null,o=null;return 1===t.length?l(t[0])?a=t[0]:s(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(a=t[0].key),o=Object.keys(t[0]).reduce((function(e,n){var i;return v(r,n)?Object.assign({},e,(i={},i[n]=t[0][n],i)):e}),null)):2===t.length&&(l(t[0])&&(a=t[0]),l(t[1])&&(i=t[1])),this._n(e,i,a,o)},X.prototype._ntp=function(e,t,n,r){if(!X.availabilities.numberFormat)return[];if(!n){var i=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return i.formatToParts(e)}var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),o=a&&a.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return o||[]},Object.defineProperties(X.prototype,Y),Object.defineProperty(X,"availabilities",{get:function(){if(!W){var e="undefined"!==typeof Intl;W={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return W}}),X.install=F,X.version="8.28.2",t["default"]=X},"4ffb":function(e,t,n){var r=n("3b2d")["default"],i=n("3352");e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"560f":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.Calendar=void 0,t.addZero=u,t.checkDate=function(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)},t.dateCompare=f,t.fixIosDateFormat=d,t.getDate=c,t.getDateTime=function(e,t){return"".concat(c(e)," ").concat(l(e,t))},t.getDefaultSecond=function(e){return e?"00:00":"00:00:00"},t.getTime=l;var i=r(n("af34")),a=r(n("67ad")),o=r(n("0bdb")),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selected,r=t.startDate,i=t.endDate,o=t.range;(0,a.default)(this,e),this.date=this.getDateObj(new Date),this.selected=n||[],this.startDate=r,this.endDate=i,this.range=o,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return(0,o.default)(e,[{key:"setDate",value:function(e){var t=this.getDateObj(e);this.getWeeks(t.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"setStartDate",value:function(e){this.startDate=e}},{key:"setEndDate",value:function(e){this.endDate=e}},{key:"getPreMonthObj",value:function(e){e=d(e),e=new Date(e);var t=e.getMonth();e.setMonth(t-1);var n=e.getMonth();return 0!==t&&n-t===0&&e.setMonth(n-1),this.getDateObj(e)}},{key:"getNextMonthObj",value:function(e){e=d(e),e=new Date(e);var t=e.getMonth();e.setMonth(t+1);var n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}},{key:"getDateObj",value:function(e){return e=d(e),e=new Date(e),{fullDate:c(e),year:e.getFullYear(),month:u(e.getMonth()+1),date:u(e.getDate()),day:e.getDay()}}},{key:"getPreMonthDays",value:function(e,t){for(var n=[],r=e-1;r>=0;r--){var i=t.month-1;n.push({date:new Date(t.year,i,-r).getDate(),month:i,disable:!0})}return n}},{key:"getCurrentMonthDays",value:function(e,t){for(var n=this,r=[],i=this.date.fullDate,a=function(e){var a="".concat(t.year,"-").concat(t.month,"-").concat(u(e)),o=i===a,s=n.selected&&n.selected.find((function(e){if(n.dateEqual(a,e.date))return e}));n.startDate&&f(n.startDate,a),n.endDate&&f(a,n.endDate);var c=n.multipleStatus.data,l=-1;n.range&&c&&(l=c.findIndex((function(e){return n.dateEqual(e,a)})));var h=-1!==l;r.push({fullDate:a,year:t.year,date:e,multiple:!!n.range&&h,beforeMultiple:n.isLogicBefore(a,n.multipleStatus.before,n.multipleStatus.after),afterMultiple:n.isLogicAfter(a,n.multipleStatus.before,n.multipleStatus.after),month:t.month,disable:n.startDate&&!f(n.startDate,a)||n.endDate&&!f(a,n.endDate),isToday:o,userChecked:!1,extraInfo:s})},o=1;o<=e;o++)a(o);return r}},{key:"_getNextMonthDays",value:function(e,t){for(var n=[],r=t.month+1,i=1;i<=e;i++)n.push({date:i,month:r,disable:!0});return n}},{key:"getInfo",value:function(e){var t=this;return e||(e=new Date),this.calendar.find((function(n){return n.fullDate===t.getDateObj(e).fullDate}))}},{key:"dateEqual",value:function(e,t){return e=new Date(d(e)),t=new Date(d(t)),e.valueOf()===t.valueOf()}},{key:"isLogicBefore",value:function(e,t,n){var r=t;return t&&n&&(r=f(t,n)?t:n),this.dateEqual(r,e)}},{key:"isLogicAfter",value:function(e,t,n){var r=n;return t&&n&&(r=f(t,n)?n:t),this.dateEqual(r,e)}},{key:"geDateAll",value:function(e,t){var n=[],r=e.split("-"),i=t.split("-"),a=new Date;a.setFullYear(r[0],r[1]-1,r[2]);var o=new Date;o.setFullYear(i[0],i[1]-1,i[2]);for(var s=a.getTime()-864e5,c=o.getTime()-864e5,l=s;l<=c;)l+=864e5,n.push(this.getDateObj(new Date(parseInt(l))).fullDate);return n}},{key:"setMultiple",value:function(e){if(this.range){var t=this.multipleStatus,n=t.before,r=t.after;if(n&&r){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else n?(this.multipleStatus.after=e,f(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}}},{key:"setHoverMultiple",value:function(e){if(this.range&&!this.lastHover){var t=this.multipleStatus.before;t?(this.multipleStatus.after=e,f(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}}},{key:"setDefaultMultiple",value:function(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(f(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}},{key:"getWeeks",value:function(e){for(var t=this.getDateObj(e),n=t.year,r=t.month,a=new Date(n,r-1,1).getDay(),o=this.getPreMonthDays(a,this.getDateObj(e)),s=new Date(n,r,0).getDate(),c=this.getCurrentMonthDays(s,this.getDateObj(e)),l=42-a-s,u=this._getNextMonthDays(l,this.getDateObj(e)),f=[].concat((0,i.default)(o),(0,i.default)(c),(0,i.default)(u)),h=new Array(6),d=0;d<f.length;d++){var p=Math.floor(d/7);h[p]||(h[p]=new Array(7)),h[p][d%7]=f[d]}this.calendar=f,this.weeks=h}}]),e}();function c(e){e=d(e),e=new Date(e);var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return"".concat(t,"-").concat(u(n),"-").concat(u(r))}function l(e,t){e=d(e),e=new Date(e);var n=e.getHours(),r=e.getMinutes(),i=e.getSeconds();return t?"".concat(u(n),":").concat(u(r)):"".concat(u(n),":").concat(u(r),":").concat(u(i))}function u(e){return e<10&&(e="0".concat(e)),e}function f(e,t){return e=new Date(d(e)),t=new Date(d(t)),e<=t}t.Calendar=s;var h=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function d(e){return"string"===typeof e&&h.test(e)&&(e=e.replace(/-/g,"/")),e}},"589b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={};t.default=r},6382:function(e,t,n){var r=n("6454");e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},6454:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports["default"]=e.exports},"67ad":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports["default"]=e.exports},7160:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={appid:"__UNI__20604F1"}},7172:function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n["return"]&&(o=n["return"](),Object(o)!==o))return}finally{if(l)throw i}}return s}},e.exports.__esModule=!0,e.exports["default"]=e.exports},7647:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7ca3":function(e,t,n){var r=n("d551");e.exports=function(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"7ce1":function(e,t,n){var r=n("b4d2"),i=n("7647"),a=n("4965"),o=n("931d");function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7d8e":function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3b2d")),a=r(n("1160")),o=(r(n("7d8e")),{msg:function(t){e.showToast({title:t,icon:"none",duration:3e3})},toHex:function(e,t){return e.toString(16).padStart(t,"0")},gethms:function(e){for(var t=[],n=[],r=[],i=0;i<=59;i++)i=i>9?i:"0"+i,t.push(i+"分");for(i=0;i<=59;i++)i=i>9?i:"0"+i,n.push(i+"秒");return r[0]=t,r[1]=n,r},str2hex:function(e){var t=new TextEncoder("utf8");return t.encode(e)},hex2str:function(e){var t=new TextDecoder("utf8"),n=new Uint8Array(e),r=t.decode(n);return r},ab2hex:function(e,t){var n=Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)}));return n.join(t)},inArray:function(e,t,n){if(!e||!e.length||"object"!=(0,i.default)(e)||!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t){if(e[r][t]===n)return r}else if(e[r]==n)return r;return-1},getMonth:function(e,t){var n=new Date(e.substring(0,10)),r=n.getFullYear(),i=n.getMonth()+1;Math.abs(t)>12&&(t%=12);0!=t&&(i+t>12?(r++,i=(i+t)%12):i+t<1?(r--,i=12+i+t):i+=t);i=i<10?"0"+i:i;n.getDate();return"01"==i||"03"==i||"05"==i||"07"==i||"08"==i||"10"==i||"12"==i?r+"-"+i+"-01~"+r+"-"+i+"-31":"02"==i?r%4==0&&r%100!=0||r%100==0&&r%400==0?r+"-"+i+"-01~"+r+"-"+i+"-29":r+"-"+i+"-01~"+r+"-"+i+"-28":r+"-"+i+"-01~"+r+"-"+i+"-30"},getDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate();if(r=r>9?r:"0"+r,i=i>9?i:"0"+i,"tow"===e)return n-=2,"".concat(n,"-").concat(r,"-").concat(i);if("start"===e)return n=n,"".concat(n,"-").concat(r,"-").concat(i);if("end"===e)return n+=60,"".concat(n,"-").concat(r,"-").concat(i);if("year"===e)return n=n,"".concat(n);if("month"===e)return n=n,"".concat(n,"-").concat(r);if("m"==e)return"01"==r||"03"==r||"05"==r||"07"==r||"08"==r||"10"==r||"12"==r?n+"-"+r+"-01~"+n+"-"+r+"-31":"02"==r?n%4==0&&n%100!=0||n%100==0&&n%400==0?n+"-"+r+"-01~"+n+"-"+r+"-29":n+"-"+r+"-01~"+n+"-"+r+"-28":n+"-"+r+"-01~"+n+"-"+r+"-30"},GetDateStr:function(e){var t=new Date;t.setDate(t.getDate()+e);var n=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate();return n+"-"+r+"-"+i},PrefixZero:function(e,t){return(Array(t).join(0)+e).slice(-t)},showModal:function(t){e.showModal({title:"提示",content:t,showCancel:!1,success:function(t){t.confirm&&e.switchTab({url:"/pages/home/home"})}})},NewsPtype:function(t){"wechat"==t.type?e.navigateToMiniProgram({appId:t.appid,path:t.path,extraData:{}}):"wechat"!=t.type&&e.navigateTo({url:"/pageTwo/webview/webview?id="+t.id+"&url="+t.jump_url})},compareVersions:function(e,t){console.log("版本对比",e,t);for(var n=e.split(".").map(Number),r=t.split(".").map(Number),i=0;i<Math.max(n.length,r.length);i++){var a=parseInt(n[i]||0),o=parseInt(r[i]||0);if(a<o)return-1;if(a>o)return 1}return 0},validatePhoneEmail:function(e){var t=/^(\+?\d{1,4})?[-\s.]?\(?(\d{3})\)?[-\s.]?(\d{3})[-\s.]?(\d{4})$/.test(e),n=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(e);return{isPhone:t,isEmail:n}},checkPrivacyAgreement:function(){var t=e.getStorageSync("isPrivacyAgreed");return!!t},getBluetoothAdapter:function(t){var n="";if("openBluetoothAdapter:fail auth denied"!=t.errMsg&&"openBluetoothAdapter:fail auth deny"!==t.errMsg&&"openBluetoothAdapter:fail authorize no response"!==t.errMsg)return n="请打开手机蓝牙后,开始测量",n;e.showModal({title:"提示",content:"需要您授权使用手机蓝牙",showCancel:!1,success:function(t){e.openSetting({success:function(t){if(!t.authSetting["scope.bluetooth"])return n="获取权限失败,将无法使用手机蓝牙进行测量",n;e.openBluetoothAdapter({success:function(e){return a.default.commit("changeBluetooth",!0),n="蓝牙权限获取成功,重新连接蓝牙",n},fail:function(e){return n="请打开手机蓝牙后,开始测量",console.log("初始化蓝牙失败:"+e.errMsg),n}})}})}})}});t.default=o}).call(this,n("df3c")["default"])},"7eb4":function(e,t,n){var r=n("9fc1")();e.exports=r},"828b":function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c,l){var u,f="function"===typeof e?e.options:e;if(c){f.components||(f.components={});var h=Object.prototype.hasOwnProperty;for(var d in c)h.call(c,d)&&!h.call(f.components,d)&&(f.components[d]=c[d])}if(l&&("function"===typeof l.beforeCreate&&(l.beforeCreate=[l.beforeCreate]),(l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(f.mixins||(f.mixins=[])).push(l)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},f._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(f.functional){f._injectStyles=u;var p=f.render;f.render=function(e,t){return u.call(t),p(e,t)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,u):[u]}return{exports:e,options:f}}n.d(t,"a",(function(){return r}))},"861b":function(e,t,n){"use strict";(function(e,r,i){var a=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("7eb4")),s=a(n("3352")),c=a(n("34cf")),l=a(n("3b2d")),u=a(n("af34")),f=a(n("ee10")),h=a(n("7ca3")),d=a(n("8ffa")),p=a(n("4ffb")),g=a(n("b4d2")),v=a(n("7ce1")),y=a(n("67ad")),m=a(n("0bdb")),x=a(n("b1fc"));function _(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,h.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.default)(e);if(t){var i=(0,g.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function A(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var T=A((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},a=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a<t;a+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new o.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,i);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(r,u);var f=r.splice(0,c);n.sigBytes-=l}return new o.init(f,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=f.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=r.algo={};return r}(Math),n)})),P=T,C=(A((function(e,t){var n;e.exports=(n=P,function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],m=e[t+7],x=e[t+8],_=e[t+9],b=e[t+10],w=e[t+11],S=e[t+12],k=e[t+13],A=e[t+14],T=e[t+15],P=a[0],C=a[1],O=a[2],D=a[3];P=l(P,C,O,D,o,7,s[0]),D=l(D,P,C,O,c,12,s[1]),O=l(O,D,P,C,d,17,s[2]),C=l(C,O,D,P,p,22,s[3]),P=l(P,C,O,D,g,7,s[4]),D=l(D,P,C,O,v,12,s[5]),O=l(O,D,P,C,y,17,s[6]),C=l(C,O,D,P,m,22,s[7]),P=l(P,C,O,D,x,7,s[8]),D=l(D,P,C,O,_,12,s[9]),O=l(O,D,P,C,b,17,s[10]),C=l(C,O,D,P,w,22,s[11]),P=l(P,C,O,D,S,7,s[12]),D=l(D,P,C,O,k,12,s[13]),O=l(O,D,P,C,A,17,s[14]),P=u(P,C=l(C,O,D,P,T,22,s[15]),O,D,c,5,s[16]),D=u(D,P,C,O,y,9,s[17]),O=u(O,D,P,C,w,14,s[18]),C=u(C,O,D,P,o,20,s[19]),P=u(P,C,O,D,v,5,s[20]),D=u(D,P,C,O,b,9,s[21]),O=u(O,D,P,C,T,14,s[22]),C=u(C,O,D,P,g,20,s[23]),P=u(P,C,O,D,_,5,s[24]),D=u(D,P,C,O,A,9,s[25]),O=u(O,D,P,C,p,14,s[26]),C=u(C,O,D,P,x,20,s[27]),P=u(P,C,O,D,k,5,s[28]),D=u(D,P,C,O,d,9,s[29]),O=u(O,D,P,C,m,14,s[30]),P=f(P,C=u(C,O,D,P,S,20,s[31]),O,D,v,4,s[32]),D=f(D,P,C,O,x,11,s[33]),O=f(O,D,P,C,w,16,s[34]),C=f(C,O,D,P,A,23,s[35]),P=f(P,C,O,D,c,4,s[36]),D=f(D,P,C,O,g,11,s[37]),O=f(O,D,P,C,m,16,s[38]),C=f(C,O,D,P,b,23,s[39]),P=f(P,C,O,D,k,4,s[40]),D=f(D,P,C,O,o,11,s[41]),O=f(O,D,P,C,p,16,s[42]),C=f(C,O,D,P,y,23,s[43]),P=f(P,C,O,D,_,4,s[44]),D=f(D,P,C,O,S,11,s[45]),O=f(O,D,P,C,T,16,s[46]),P=h(P,C=f(C,O,D,P,d,23,s[47]),O,D,o,6,s[48]),D=h(D,P,C,O,m,10,s[49]),O=h(O,D,P,C,A,15,s[50]),C=h(C,O,D,P,v,21,s[51]),P=h(P,C,O,D,S,6,s[52]),D=h(D,P,C,O,p,10,s[53]),O=h(O,D,P,C,b,15,s[54]),C=h(C,O,D,P,c,21,s[55]),P=h(P,C,O,D,x,6,s[56]),D=h(D,P,C,O,T,10,s[57]),O=h(O,D,P,C,y,15,s[58]),C=h(C,O,D,P,k,21,s[59]),P=h(P,C,O,D,g,6,s[60]),D=h(D,P,C,O,w,10,s[61]),O=h(O,D,P,C,d,15,s[62]),C=h(C,O,D,P,_,21,s[63]),a[0]=a[0]+P|0,a[1]=a[1]+C|0,a[2]=a[2]+O|0,a[3]=a[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<<a|s>>>32-a)+t}function u(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<<a|s>>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<<a|s>>>32-a)+t}function h(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<<a|s>>>32-a)+t}t.MD5=a._createHelper(c),t.HmacMD5=a._createHmacHelper(c)}(Math),n.MD5)})),A((function(e,t){var n;e.exports=(n=P,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,l=0;l<n;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())})),A((function(e,t){e.exports=P.HmacMD5}))),O=A((function(e,t){e.exports=P.enc.Utf8})),D=A((function(e,t){var n;e.exports=(n=P,function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2,c=r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=(s|c)<<24-a%4*8,a++}return t.create(i,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)i.push(r.charAt(o>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<n.length;a++)i[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),L="FUNCTION",M="OBJECT",I="pending",F="fulfilled",E="rejected";function j(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function R(e){return"object"===j(e)}function $(e){return"function"==typeof e}function N(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var B="REJECTED",U="NOT_PENDING",z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?B:r;(0,y.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case B:return this.status===E;case U:return this.status!==I}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=I,this.promise=this.createPromise().then((function(t){return e.status=F,Promise.resolve(t)}),(function(t){return e.status=E,Promise.reject(t)})),this.promise):this.promise}}]),e}();function W(e){return e&&"string"==typeof e?JSON.parse(e):e}var H="mp-weixin",q=W([]),V=H,G=(W(void 0),W([])||[]);try{(n("7160").default||n("7160")).appid}catch(gr){}var K={};function J(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=K,n=e,Object.prototype.hasOwnProperty.call(t,n)||(K[e]=r),K[e]}"app"===V&&(K=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var X=["invoke","success","fail","complete"],Y=J("_globalUniCloudInterceptor");function Q(e,t){Y[e]||(Y[e]={}),R(t)&&Object.keys(t).forEach((function(n){X.indexOf(n)>-1&&function(e,t,n){var r=Y[e][t];r||(r=Y[e][t]=[]),-1===r.indexOf(n)&&$(n)&&r.push(n)}(e,n,t[n])}))}function Z(e,t){Y[e]||(Y[e]={}),R(t)?Object.keys(t).forEach((function(n){X.indexOf(n)>-1&&function(e,t,n){var r=Y[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete Y[e]}function ee(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function te(e,t){return Y[e]&&Y[e][t]||[]}function ne(e){Q("callObject",e)}var re=J("_globalUniCloudListener"),ie="response",ae="needLogin",oe="refreshToken",se="clientdb",ce="cloudfunction",le="cloudobject";function ue(e){return re[e]||(re[e]=[]),re[e]}function fe(e,t){var n=ue(e);n.includes(t)||n.push(t)}function he(e,t){var n=ue(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function de(e,t){for(var n=ue(e),r=0;r<n.length;r++)(0,n[r])(t)}var pe,ge=!1;function ve(){return pe||(pe=new Promise((function(e){ge&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(ge=!0,e())}ge||setTimeout((function(){t()}),30)}()})),pe)}function ye(e){var t={};for(var n in e){var r=e[n];$(r)&&(t[n]=N(r))}return t}var me,xe,_e=function(e){(0,d.default)(n,e);var t=k(n);function n(e){var r;return(0,y.default)(this,n),r=t.call(this,e.message),r.errMsg=e.message||e.errMsg||"unknown system error",r.code=r.errCode=e.code||e.errCode||"SYSTEM_ERROR",r.errSubject=r.subject=e.subject||e.errSubject,r.cause=e.cause,r.requestId=e.requestId,r}return(0,m.default)(n,[{key:"toJson",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,v.default)(Error)),be={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()},connectSocket:function(e){return r.connectSocket(e)}};function we(){return{token:be.getStorageSync("uni_id_token")||be.getStorageSync("uniIdToken"),tokenExpired:be.getStorageSync("uni_id_token_expired")}}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&be.setStorageSync("uni_id_token",t),n&&be.setStorageSync("uni_id_token_expired",n)}function ke(){return me||(me=r.getSystemInfoSync()),me}var Ae={};function Te(){var e=r.getLocale&&r.getLocale()||"en";if(xe)return S(S(S({},Ae),xe),{},{locale:e,LOCALE:e});var t=ke(),n=t.deviceId,i=t.osName,a=t.uniPlatform,o=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var c in t)Object.hasOwnProperty.call(t,c)&&-1===s.indexOf(c)&&delete t[c];return xe=S(S({PLATFORM:a,OS:i,APPID:o,DEVICEID:n},function(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,a=n.channel;e=a,t=i}}catch(e){}return{channel:e,scene:t}}()),t),S(S(S({},Ae),xe),{},{locale:e,LOCALE:e})}var Pe,Ce={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),C(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",a=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new _e({code:i,message:a,requestId:t}))}var o=e.data;if(o.error)return r(new _e({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},toBase64:function(e){return D.stringify(O.parse(e))}},Oe=function(){function e(t){var n=this;(0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=be,this._getAccessTokenPromiseHub=new z({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new _e({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:U})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Ce.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ce.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Ce.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var l=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r,i,a,s,c,l,u,f,h,d,p,g,v,y,m,x,_,b,w,S,k;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,a=void 0===i?"image":i,s=t.cloudPathAsRealPath,c=void 0!==s&&s,l=t.onUploadProgress,u=t.config,"string"===j(r)){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=u&&u.envType||this.config.envType,!(c&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new _e({code:"INVALID_PARAM",message:"使用cloudPath作为路径时cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:c?r.split("/").pop():r,fileId:c?r:void 0});case 12:return h=e.sent.result,d="https://"+h.cdnDomain+"/"+h.ossPath,p=h.securityToken,g=h.accessKeyId,v=h.signature,y=h.host,m=h.ossPath,x=h.id,_=h.policy,b=h.ossCallbackUrl,w={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:v,host:y,id:x,key:m,policy:_,success_action_status:200},p&&(w["x-oss-security-token"]=p),b&&(S=JSON.stringify({callbackUrl:b,callbackBody:JSON.stringify({fileId:x,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),w.callback=Ce.toBase64(S)),k={url:"https://"+h.host,formData:w,fileName:"file",name:"file",filePath:n,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},k,{onUploadProgress:l}));case 27:if(!b){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:d});case 29:return e.next=31,this.reportOSSUpload({id:x});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:d});case 33:throw new _e({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n,r,i=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),De={init:function(e){var t=new Oe(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Le="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Pe||(Pe={}));var Me,Ie=function(){},Fe=A((function(e,t){var n;e.exports=(n=P,function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],f=n[6],h=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=l[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[d]=g+l[d-7]+y+l[d-16]}var m=r&i^r&a^i&a,x=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+c[d]+l[d];h=f,f=u,u=s,s=o+_|0,o=a,a=i,i=r,r=_+(x+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(u),t.HmacSHA256=a._createHmacHelper(u)}(Math),n.SHA256)})),Ee=Fe,je=A((function(e,t){e.exports=P.HmacSHA256})),Re=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new _e({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function $e(e){return void 0===e}function Ne(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Me||(Me={}));var Be={adapter:null,runtime:void 0},Ue=["anonymousUuidKey"],ze=function(e){(0,d.default)(n,e);var t=k(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),Be.adapter.root.tcbObject||(Be.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Be.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Be.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Be.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Be.adapter.root.tcbObject}}]),n}(Ie);function We(e,t){switch(e){case"local":return t.localStorage||new ze;case"none":return new ze;default:return t.sessionStorage||new ze}}var He=function(){function e(t){if((0,y.default)(this,e),!this._storage){this._persistence=Be.adapter.primaryStorage||t.persistence,this._storage=We(this._persistence,Be.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),a="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return(0,m.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=We(e,Be.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!Ue.includes(r)){var a=this._storage.getItem(i);$e(a)||Ne(a)||(n.setItem(i,a),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),qe={},Ve={};function Ge(e){return qe[e]}var Ke=(0,m.default)((function e(t,n){(0,y.default)(this,e),this.data=n||null,this.name=t})),Je=function(e){(0,d.default)(n,e);var t=k(n);function n(e,r){var i;return(0,y.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,m.default)(n)}(Ke),Xe=new(function(){function e(){(0,y.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Je)return console.error(e.error),this;var n="string"==typeof e?new Ke(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,a=this._listeners[r]?(0,u.default)(this._listeners[r]):[],o=_(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.call(this,n)}}catch(c){o.e(c)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Ye(e,t){Xe.on(e,t)}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xe.fire(e,t)}function Ze(e,t){Xe.off(e,t)}var et,tt="loginStateChanged",nt="loginStateExpire",rt="loginTypeChanged",it="anonymousConverted",at="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(et||(et={}));var ot=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],st={"X-SDK-Version":"1.3.5"};function ct(e,t,n){var r=e[t];e[t]=function(t){var i={},a={};n.forEach((function(n){var r=n.call(e,t),o=r.data,s=r.headers;Object.assign(i,o),Object.assign(a,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=S(S({},o),i);else for(var n in i)o.append(n,i[n])}(),t.headers=S(S({},t.headers||{}),a),r.call(e,t)}}function lt(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:S(S({},st),{},{"x-seqid":e})}}var ut=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=n,this._reqClass=new Be.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成已中断"),restrictedMethods:["post"]}),this._cache=Ge(this.config.env),this._localCache=(t=this.config.env,Ve[t]),ct(this._reqClass,"post",[lt]),ct(this._reqClass,"upload",[lt]),ct(this._reqClass,"download",[lt])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n,r,i,a,s,c,l,u,f,h,d,p;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,a=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(i),c){e.next=5;break}throw new _e({message:"未登录CloudBase"});case 5:return l={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(u=e.sent,!u.data.code){e.next=21;break}if(f=u.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(a)!==et.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return h=this._cache.getStore(s),d=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:h,refresh_token:d});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Qe(nt),this._cache.removeStore(i);case 20:throw new _e({code:u.data.code,message:"刷新access token失败".concat(u.data.code)});case 21:if(!u.data.access_token){e.next=23;break}return e.abrupt("return",(Qe(at),this._cache.setStore(n,u.data.access_token),this._cache.setStore(r,u.data.access_token_expire+Date.now()),{accessToken:u.data.access_token,accessTokenExpire:u.data.access_token_expire}));case 23:u.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,u.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n,r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new _e({message:"refresh token不存在登录状态异常"});case 3:if(a=this._cache.getStore(n),s=this._cache.getStore(r),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!a||!s||s<Date.now())&&c?this.refreshAccessToken():{accessToken:a,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"request",value:function(){var e=(0,f.default)(o.default.mark((function e(t,n,r){var i,a,s,c,l,u,f,h,d,p,g,v,y,m,x,_;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),a="application/x-www-form-urlencoded",s=S({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==ot.indexOf(t)){e.next=10;break}if(c=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(c),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:s.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(u in l=new FormData,l)l.hasOwnProperty(u)&&void 0!==l[u]&&l.append(u,s[u]);a="multipart/form-data"}else for(f in a="application/json",l={},s)void 0!==s[f]&&(l[f]=s[f]);return h={headers:{"content-type":a}},r&&r.onUploadProgress&&(h.onUploadProgress=r.onUploadProgress),d=this._localCache.getStore(i),d&&(h.headers["X-TCB-Trace"]=d),p=n.parse,g=n.inQuery,v=n.search,y={env:this.config.env},p&&(y.parse=!0),g&&(y=S(S({},g),y)),m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(a,"=").concat(encodeURIComponent(n[a]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Le,"//tcb-api.tencentcloudapi.com/web",y),v&&(m+=v),e.next=22,this.post(S({url:m,data:l},h));case 22:if(x=e.sent,_=x.header&&x.header["x-tcb-trace"],_&&this._localCache.setStore(i,_),(200===Number(x.status)||200===Number(x.statusCode))&&x.data){e.next=26;break}throw new _e({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",x);case 27:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r,i,a=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==ot.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=e.sent,!i.data.code){e.next=12;break}throw new _e({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!r.data.code){e.next=15;break}throw new _e({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.data);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),ft={};function ht(e){return ft[e]}var dt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ge(t.env),this._request=ht(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),pt=function(){function e(t){if((0,y.default)(this,e),!t)throw new _e({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ge(this._envId),this._request=ht(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new _e({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new _e({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n,r,i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r,i,a,s,c,l,u;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,a=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:a,country:s,city:c});case 8:l=e.sent,u=l.data,this.setLocalUserInfo(u);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),gt=function(){function e(t){if((0,y.default)(this,e),!t)throw new _e({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ge(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,a=n.accessTokenExpireKey,o=this._cache.getStore(r),s=this._cache.getStore(i),c=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:c},this.user=new pt(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===et.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===et.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===et.WECHAT||this.loginType===et.WECHAT_OPEN||this.loginType===et.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),vt=function(e){(0,d.default)(n,e);var t=k(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n,r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,i=this._cache.getStore(n)||void 0,a=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:a});case 8:if(s=e.sent,!s.uuid||!s.refresh_token){e.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return Qe(tt),Qe(rt,{env:this.config.env,loginType:et.ANONYMOUS,persistence:"local"}),c=new gt(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);case 20:throw new _e({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,a=this._cache.getStore(r),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Qe(it,{env:this.config.env}),Qe(rt,{loginType:et.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new _e({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,et.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(dt),yt=function(e){(0,d.default)(n,e);var t=k(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Qe(tt),Qe(rt,{env:this.config.env,loginType:et.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new gt(this.config.env));case 15:throw new _e({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(dt),mt=function(e){(0,d.default)(n,e);var t=k(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(t,n){var r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,a=i.refresh_token,s=i.access_token,c=i.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Qe(tt),Qe(rt,{env:this.config.env,loginType:et.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new gt(this.config.env));case 22:throw i.code?new _e({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new _e({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,f.default)(o.default.mark((function e(t,n){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(dt),xt=function(e){(0,d.default)(n,e);var t=k(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(t,n){var r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:et.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,a=i.refresh_token,s=i.access_token_expire,c=i.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Qe(tt),Qe(rt,{env:this.config.env,loginType:et.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new gt(this.config.env));case 23:throw i.code?new _e({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new _e({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(dt),_t=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ge(t.env),this._request=ht(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ye(rt,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new vt(this.config)}},{key:"customAuthProvider",value:function(){return new yt(this.config)}},{key:"emailAuthProvider",value:function(){return new mt(this.config)}},{key:"usernameAuthProvider",value:function(){return new xt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new vt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,f.default)(o.default.mark((function e(t,n){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new mt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new xt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new vt(this.config)),Ye(it,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,n,r,i,a,s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==et.ANONYMOUS){e.next=2;break}throw new _e({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,a=this._cache.getStore(n),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Qe(tt),Qe(rt,{env:this.config.env,loginType:et.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,f.default)(o.default.mark((function e(t,n){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Ye(tt,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Ye(nt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ye(at,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ye(it,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ye(rt,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new gt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new yt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:S(S({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),bt=function(e,t){t=t||Re();var n=ht(this.config.env),r=e.cloudPath,i=e.filePath,a=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,c=o.url,l=o.authorization,u=o.token,f=o.fileId,h=o.cosFileId,d=e.requestId,p={key:r,signature:l,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};n.upload({url:c,data:p,file:i,name:r,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:d}):t(new _e({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},wt=function(e,t){t=t||Re();var n=ht(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},St=function(e,t){var n=e.fileList;if(t=t||Re(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=_(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:n};return ht(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},kt=function(e,t){var n=e.fileList;t=t||Re(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],a=_(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;"object"==(0,l.default)(o)?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?i.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){a.e(c)}finally{a.f()}var s={file_list:i};return ht(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},At=function(){var e=(0,f.default)(o.default.mark((function e(t,n){var r,i,a,s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,kt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(a=ht(this.config.env),s=i.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",a.download({url:s}));case 10:return e.t0=n,e.next=13,a.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),Tt=function(e,t){var n,r=e.name,i=e.data,a=e.query,o=e.parse,s=e.search,c=t||Re();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new _e({code:"PARAM_ERROR",message:"函数名不能为空"}));var l={inQuery:a,parse:o,search:s,function_name:r,request_data:n};return ht(this.config.env).send("functions.invokeFunction",l).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(o)c(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),c(null,{result:t,requestId:e.requestId})}catch(e){c(new _e({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},Pt={timeout:15e3,persistence:"session"},Ct={},Ot=function(){function e(t){(0,y.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(Be.adapter||(this.requestClient=new Be.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成已中断")})),this.config=S(S({},Pt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Be.adapter.primaryStorage||Pt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;qe[t]=new He(e),Ve[t]=new He(S(S({},e),{},{persistence:"local"}))}(this.config),n=this.config,ft[n.env]=new ut(n),this.authObj=new _t(this.config),this.authObj}},{key:"on",value:function(e,t){return Ye.apply(this,[e,t])}},{key:"off",value:function(e,t){return Ze.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Tt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return St.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return kt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return At.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return bt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return wt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ct[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,f.default)(o.default.mark((function e(t,n){var r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Ct[t],r){e.next=3;break}throw new _e({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=_(r);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.isMatch,s=a.genAdapter,c=a.runtime;if(o())return{adapter:s(),runtime:c}}}catch(l){i.e(l)}finally{i.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Be.adapter=n),r&&(Be.runtime=r)}}]),e}(),Dt=new Ot;function Lt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+=a+"="+encodeURIComponent(n[a]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Mt=function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,i){be.request({url:Lt("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,a=e.data,o=e.headers,s=e.fileType,c=be.uploadFile({url:Lt("https:",r),name:"file",formData:Object.assign({},a),filePath:i,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(n.statusCode=parseInt(a.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),It={setItem:function(e,t){be.setStorageSync(e,t)},getItem:function(e){return be.getStorageSync(e)},removeItem:function(e){be.removeStorageSync(e)},clear:function(){be.clearStorageSync()}},Ft={genAdapter:function(){return{root:{},reqClass:Mt,localStorage:It,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Dt.useAdapters(Ft);var Et=Dt,jt=Et.init;Et.init=function(e){e.env=e.spaceId;var t=jt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ye(e),r=t.success,i=t.fail,a=t.complete;if(!(r||i||a))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),a&&a(e)}),(function(e){i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Rt=Et,$t=function(e){(0,d.default)(n,e);var t=k(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Ce.sign(n,this.config.clientSecret);var i=Te();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var a=we(),o=a.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var l=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,success:function(t){t&&t.statusCode<400?e(t):c(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,a=e.fileType,o=void 0===a?"image":a,s=e.onUploadProgress;if(!i)throw new _e({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(e){var i=e.result,a=i.url,c=i.formData,l=i.name;t=e.result.fileUrl;var u={url:a,formData:c,name:l,filePath:r,fileType:o};return n.uploadFileToOSS(Object.assign({},u,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return e.result;throw new _e({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(this.setupRequest(r)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new _e({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(Oe),Nt={init:function(e){var t=new $t(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Bt=A((function(e,t){e.exports=P.enc.Hex}));function Ut(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,a=t.headers,o=t.signHeaderKeys,s=void 0===o?[]:o,l=t.config,u=Date.now(),f=Ut(),h=Object.assign({},a,{"x-from-app-id":l.spaceAppId,"x-from-env-id":l.spaceId,"x-to-env-id":l.spaceId,"x-from-instance-id":u,"x-from-function-name":r,"x-client-timestamp":u,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),p=e.split("?")||[],g=(0,c.default)(p,2),v=g[0],y=void 0===v?"":v,m=g[1],x=void 0===m?"":m,_=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=Ee(e.body).toString(Bt),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),a=Ee(i).toString(Bt),o="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(a,"\n"),s=je(o,e.secretKey).toString(Bt);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:y,query:x,method:i,headers:h,timestamp:u,body:JSON.stringify(n),secretId:l.accessKey,secretKey:l.secretKey,signedHeaders:d.sort()});return{url:"".concat(l.endpoint).concat(e),headers:Object.assign({},h,{Authorization:_})}}function Wt(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,a=e.headers,o=void 0===a?{}:a;return new Promise((function(e,r){be.request({url:t,method:i,data:"object"==(0,l.default)(n)?JSON.stringify(n):n,header:o,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},a=i.message,s=i.errMsg,c=i.trace_id;return r(new _e({code:"SYS_ERR",message:a||s||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Ht(e,t){var n=e.path,r=e.data,i=e.method,a=void 0===i?"GET":i,o=zt(n,{functionName:"",data:r,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=o.url,c=o.headers;return Wt({url:s,data:r,method:a,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new _e({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new _e({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new _e({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),i=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function Vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Gt=function(){function e(t){(0,y.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Ut(),timestamp:""+Date.now()}),a=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(r)].join("\n"),o=["HMAC-SHA256",Ee(a).toString(Bt)].join("\n"),s=je(o,this.config.secretKey).toString(Bt),c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(c,"&signature=").concat(s)}}]),e}(),Kt=function(){function e(t){if((0,y.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new Gt(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i=e.async,a=void 0!==i&&i,o="POST",s={"x-to-function-name":n};a&&(s["x-function-invoke-type"]="async");var c=zt("/functions/invokeFunction",{functionName:n,data:r,method:o,headers:s,signHeaderKeys:["x-to-function-name"],config:t}),l=c.url,u=c.headers;return Wt({url:l,data:r,method:o,headers:u}).then((function(e){var t=0;if(a){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new _e({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new _e({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,a=e.onUploadProgress;return new Promise((function(e,o){var s=be.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):o(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){o(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r,i,a,s,c,l,u,f,h,d;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,a=t.fileType,s=void 0===a?"image":a,c=t.onUploadProgress,"string"===j(i)){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Ht({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return l=e.sent,u=l.file_id,f=l.upload_url,h=l.form_data,d=h&&h.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:n,fileType:s,formData:d,onUploadProgress:c}).then((function(){return{fileID:u}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r=this;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new _e({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new _e({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var i,a=[],o=_(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;"string"!==j(s)&&t(new _e({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var c=qt.call(r,s);a.push({file_id:c,expire:600})}}catch(l){o.e(l)}finally{o.f()}Ht({path:"/?download_url",data:{file_list:a},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:Vt.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectWebSocket",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,e.abrupt("return",be.connectSocket({url:this._websocket.signedURL(n,r),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Jt={init:function(e){e.provider="alipay";var t=new Kt(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Xt(e){var t,n=e.data;t=Te();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=we(),a=i.token;a&&(r.uniIdToken=a)}return r}var Yt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Qt=/[\\^$.*+?()[\]{}|]/g,Zt=RegExp(Qt.source);function en(e,t,n){return e.replace(new RegExp((r=t)&&Zt.test(r)?r.replace(Qt,"\\$&"):r,"g"),n);var r}var tn="request",nn="response";var rn;rn="0123456789abcdef";var an={code:2e4,message:"System error"},on={code:20101,message:"Invalid client"};function sn(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,a=t.errMsg,o=t.code,s=t.message,c=t.cause;return new _e({subject:n||r||"uni-secure-network",code:i||o||an.code,message:a||s,cause:c})}var cn;function ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===tn||t===nn||"both"===t}function un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===V&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function fn(e){e.functionName,e.result,e.logPvd}function hn(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=Xt.call(e,{data:n.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=ln(n),s=un(n),c=o||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&fn.call(r,{functionName:i,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return!c&&fn.call(r,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,a=e.formatter,o=void 0===a?[]:a,s=0;s<o.length;s++){var c=o[s],l=c.rule,u=c.content,f=c.mode,h=n.match(l);if(h){for(var d=u,p=1;p<h.length;p++)d=en(d,"{$".concat(p,"}"),h[p]);for(var g in i)d=en(d,"{".concat(g,"}"),i[g]);return"replace"===f?d:n+d}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:Yt,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var r,i,a=e.config,o=a.provider,s=a.spaceId,c=t.name;return t.data=t.data||{},r=n,r=r.bind(e),i=un(t)?n.call(e,t):function(e){var t=e.name,n=e.data,r=void 0===n?{}:n;return"mp-weixin"===V&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===r.method}(t)?r.call(e,t):ln(t)?new cn({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=ke(),a=i.appId,o=i.uniPlatform,s=i.osName,c=o;"app"===o&&(c=s);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=q;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!l||!l.accessControl||!l.accessControl.enable)return!1;var u=l.accessControl.function||{},f=Object.keys(u);if(0===f.length)return!0;var h=function(e,t){for(var n,r,i,a=0;a<e.length;a++){var o=e[a];o!==t?"*"!==o?o.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(r=o):i=o:n=o}return n||r||i}(f,r);if(!h)return!1;if((u[h]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===a&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(a,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内参考https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),sn(on)}({provider:o,spaceId:s,functionName:c})?new cn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型不可直接访问其result属性详情请参考https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}cn="mp-weixin"!==V&&"app"!==V?function(){return(0,m.default)((function e(){throw(0,y.default)(this,e),sn({message:"Platform ".concat(V," is not supported by secure network")})}))}():function(){return(0,m.default)((function e(){throw(0,y.default)(this,e),sn({message:"Platform ".concat(V," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var dn=Symbol("CLIENT_DB_INTERNAL");function pn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=dn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,l.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function gn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var vn=["db.Geo","db.command","command.aggregate"];function yn(e,t){return vn.indexOf("".concat(e,".").concat(t))>-1}function mn(e){switch(j(e)){case"array":return e.map((function(e){return mn(e)}));case"object":return e._internalType===dn||Object.keys(e).forEach((function(t){e[t]=mn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function xn(e){return e&&e.content&&e.content.$method}var _n=function(){function e(t,n,r){(0,y.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:mn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=xn(e),n=xn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===xn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=xn(e),n=xn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return bn({$method:e,$param:mn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:mn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function bn(e,t,n){return pn(new _n(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),yn(r,t)?bn({$method:t},e,n):function(){return bn({$method:t,$param:mn(Array.from(arguments))},e,n)}}})}function wn(e){var t=e.path,n=e.method;return function(){function e(){(0,y.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,u.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pn(new e(t),{get:function(e,t){return yn("db",t)?bn({$method:t},null,e):function(){return bn({$method:t,$param:mn(Array.from(arguments))},null,e)}}})}var kn=function(e){(0,d.default)(n,e);var t=k(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,a=e.queryList;function o(e,t){if(i&&a)for(var n=0;n<a.length;n++){var r=a[n];r.udb&&"function"==typeof r.udb.setResult&&(t?r.udb.setResult(t):r.udb.setResult(e.result.dataList[n]))}}var s=this,c=this._isJQL?"databaseForJQL":"database";function l(e){return s._callback("error",[e]),ee(te(c,"fail"),e).then((function(){return ee(te(c,"complete"),e)})).then((function(){return o(null,e),de(ie,{type:se,content:e}),Promise.reject(e)}))}var u=ee(te(c,"invoke")),f=this._uniClient;return u.then((function(){return f.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:n,command:r,multiCommand:i}})})).then((function(e){var n=e.result,r=n.code,i=n.message,a=n.token,u=n.tokenExpired,f=n.systemInfo,h=void 0===f?[]:f;if(h)for(var d=0;d<h.length;d++){var p=h[d],g=p.level,v=p.message,y=p.detail,m=console["app"===V&&"warn"===g?"error":g]||console.log,x="[System Info]"+v;y&&(x="".concat(x,"\n详细信息").concat(y)),m(x)}if(r)return l(new _e({code:r,message:i,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,a&&u&&(Se({token:a,tokenExpired:u}),t._callbackAuth("refreshToken",[{token:a,tokenExpired:u}]),t._callback("refreshToken",[{token:a,tokenExpired:u}]),de(oe,{token:a,tokenExpired:u}));for(var _=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用请使用errCode替代"},{prop:"message",tips:"message不再推荐使用请使用errMsg替代"}],b=function(t){var n=_[t],r=n.prop,i=n.tips;if(r in e.result){var a=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(i),a}})}},w=0;w<_.length;w++)b(w);return function(e){return ee(te(c,"success"),e).then((function(){return ee(te(c,"complete"),e)})).then((function(){o(e,null);var t=s._parseResult(e);return de(ie,{type:se,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化请在web控制台保存一次schema以开启clientDB"),l(new _e({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),n}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,a=void 0!==i&&i;(0,y.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=J("_globalUniCloudDatabaseCallback")),a||(this.auth=gn(this._authCallBacks)),this._isJQL=a,Object.assign(this,gn(this._dbCallBacks)),this.env=pn({},{get:function(e,t){return{$env:t}}}),this.Geo=pn({},{get:function(e,t){return wn({path:["Geo"],method:t})}}),this.serverDate=wn({path:[],method:"serverDate"}),this.RegExp=wn({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),An="token无效跳转登录页面",Tn="token过期跳转登录页面",Pn={TOKEN_INVALID_TOKEN_EXPIRED:Tn,TOKEN_INVALID_INVALID_CLIENTID:An,TOKEN_INVALID:An,TOKEN_INVALID_WRONG_TOKEN:An,TOKEN_INVALID_ANONYMOUS_USER:An},Cn={"uni-id-token-expired":Tn,"uni-id-check-token-failed":An,"uni-id-token-not-exist":An,"uni-id-check-device-feature-failed":An};function On(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function Dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(On(t,e.path)):!1===e.needLogin&&r.push(On(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Ln(e){return e.split("?")[0].replace(/^\//,"")}function Mn(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function In(){return Ln(Mn())}function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=Ln(e);return n.some((function(e){return e.pagePath===r}))}var En,jn=!!x.default.uniIdRouter,Rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,a=e.uniIdRouter,o=void 0===a?{}:a,s=e.tabBar,c=void 0===s?{}:s,l=o.loginPage,f=o.needLogin,h=void 0===f?[]:f,d=o.resToLogin,p=void 0===d||d,g=Dn(n),v=g.needLoginPage,y=g.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,a=void 0===i?[]:i,o=Dn(a,r),s=o.needLoginPage,c=o.notNeedLoginPage;t.push.apply(t,(0,u.default)(s)),n.push.apply(n,(0,u.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),_=m.needLoginPage,b=m.notNeedLoginPage;return{loginPage:l,routerNeedLogin:h,resToLogin:p,needLoginPage:[].concat((0,u.default)(v),(0,u.default)(_)),notNeedLoginPage:[].concat((0,u.default)(y),(0,u.default)(b)),loginPageInTabBar:Fn(l,c)}}(),$n=Rn.loginPage,Nn=Rn.routerNeedLogin,Bn=Rn.resToLogin,Un=Rn.needLoginPage,zn=Rn.notNeedLoginPage,Wn=Rn.loginPageInTabBar;if(Un.indexOf($n)>-1)throw new Error("Login page [".concat($n,'] should not be "needLogin", please check your pages.json'));function Hn(e){var t=In();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,c.default)(n,2),i=r[0],a=r[1],o=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var l=0;l<o.length;l++){var u=o[l];".."===u?s.pop():"."!==u&&s.push(u)}return""===s[0]&&s.shift(),"/"+s.join("/")+(a?"?"+a:"")}function qn(e){var t=Ln(Hn(e));return!(zn.indexOf(t)>-1)&&(Un.indexOf(t)>-1||Nn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Vn(e){var t=e.redirect,n=Ln(t),r=Ln($n);return In()!==r&&n!==r}function Gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Vn({redirect:n})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}($n,n);Wn?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var a={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){a[t]({url:i})}),0)}}function Kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=we(),n=t.token,r=t.tokenExpired;if(n){if(r<Date.now()){var i="uni-id-token-expired";e={errCode:i,errMsg:Cn[i]}}}else{var a="uni-id-check-token-failed";e={errCode:a,errMsg:Cn[a]}}return e}();if(qn(t)&&r){if(r.uniIdRedirectUrl=t,ue(ae).length>0)return setTimeout((function(){de(ae,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Jn(){!function(){var e=Mn(),t=Kn({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&Gn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=Kn({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(Gn({api:n,redirect:Hn(e.url)}),!1):e}})},n=0;n<e.length;n++)t(n)}function Xn(){this.onResponse((function(e){var t=e.type,n=e.content,r=!1;switch(t){case"cloudobject":r=function(e){if("object"!=(0,l.default)(e))return!1;var t=e||{},n=t.errCode;return n in Cn}(n);break;case"clientdb":r=function(e){if("object"!=(0,l.default)(e))return!1;var t=e||{},n=t.errCode;return n in Pn}(n)}r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ue(ae);ve().then((function(){var n=Mn();if(n&&Vn({redirect:n}))return t.length>0?de(ae,Object.assign({uniIdRedirectUrl:n},e)):void($n&&Gn({api:"navigateTo",redirect:n}))}))}(n)}))}function Yn(e){!function(e){e.onResponse=function(e){fe(ie,e)},e.offResponse=function(e){he(ie,e)}}(e),function(e){e.onNeedLogin=function(e){fe(ae,e)},e.offNeedLogin=function(e){he(ae,e)},jn&&(J("_globalUniCloudStatus").needLoginInit||(J("_globalUniCloudStatus").needLoginInit=!0,ve().then((function(){Jn.call(e)})),Bn&&Xn.call(e)))}(e),function(e){e.onRefreshToken=function(e){fe(oe,e)},e.offRefreshToken=function(e){he(oe,e)}}(e)}var Qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function er(){var e,t,n=we().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(En(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}En="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Zn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",a=0;a<e.length;)t=Qn.indexOf(e.charAt(a++))<<18|Qn.indexOf(e.charAt(a++))<<12|(n=Qn.indexOf(e.charAt(a++)))<<6|(r=Qn.indexOf(e.charAt(a++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var tr=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var i=r.onChooseFile,a=r.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var a=t.tempFiles,o=a.length,s=0;return new Promise((function(n){for(;s<r;)c();function c(){var r=s++;if(r>=o)!a.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var l=a[r];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=l,e.tempFilePath=l.path,i&&i(e)}}).then((function(e){l.url=e.fileID,r<o&&c()})).catch((function(e){l.errMsg=e.errMsg||e.message,r<o&&c()}))}}}))}(e,t,5,a)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,n=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,c=e.extension;return new Promise((function(e,i){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:c,success:function(t){e(o(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,i=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,l=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:c,extension:l,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,a=t.height,s=t.width;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var c=r.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(c=i.chooseMessageFile),"function"!=typeof c)return s({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});c({type:"all",count:t,extension:n,success:function(t){e(o(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),nr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(tr);function rr(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var r=!1,i=[],a=2;a<t.length;a++)t[a]!==n[a]&&(i.push(t[a]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,i)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,a=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=a.length<e.pageSize;var s=r?a.length?a[0]:void 0:a;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,a&&a(t)})))},mixinDatacomGet:function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=r.action||this.action;i&&(n=n.action(i));var a=r.collection||this.collection;n=Array.isArray(a)?(t=n).collection.apply(t,(0,u.default)(a)):n.collection(a);var o=r.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));var s=r.field||this.field;s&&(n=n.field(s));var c=r.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var l=r.groupby||this.groupby;l&&(n=n.groupBy(l));var f=r.groupField||this.groupField;f&&(n=n.groupField(f)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var h=r.orderby||this.orderby;h&&(n=n.orderBy(h));var d=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,p=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,g=void 0!==r.getcount?r.getcount:this.getcount,v=void 0!==r.gettree?r.gettree:this.gettree,y=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,m={getCount:g},x={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return v&&(m.getTree=x),y&&(m.getTreePath=x),n=n.skip(p*(d-1)).limit(p).get(m),n}}}}function ir(e){return J("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function ar(){return or.apply(this,arguments)}function or(){return or=(0,f.default)(o.default.mark((function e(){var t,n,i,a,s,c,l,u=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.openid,i=t.callLoginByWeixin,a=void 0!==i&&i,s=ir(this),"mp-weixin"===V){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(V,"`"));case 4:if(!n||!a){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return c=e.sent,l=this.importObject("uni-id-co",{customUI:!0}),e.next=14,l.secureNetworkHandshakeByWeixin({code:c,callLoginByWeixin:a});case 14:return s.mpWeixinCode=c,e.abrupt("return",{code:c});case 16:case"end":return e.stop()}}),e,this)}))),or.apply(this,arguments)}function sr(e){return cr.apply(this,arguments)}function cr(){return cr=(0,f.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=ir(this),e.abrupt("return",(n.initPromise||(n.initPromise=ar.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),cr.apply(this,arguments)}function lr(e){!function(e){Ae=e}(e)}function ur(e){var t={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,i){t[e](S(S({},n),{},{success:function(e){r(e)},fail:function(e){i(e)}}))}))}}var fr=function(e){(0,d.default)(n,e);var t=k(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([ur("getSystemInfo")(),ur("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,c.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,a=n[1];a=void 0===a?{}:a;var o=a.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!o)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=o,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,y.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)for(var a=0;a<t.length;a++)t[a].apply(t,r)}}]),e}());var hr={tcb:Rt,tencent:Rt,aliyun:De,private:Nt,alipay:Jt},dr=new(function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},n=hr[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new z({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var n=e.auth();return t.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}(t),hn(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=Sn(kn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=Sn(kn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=er,e.chooseAndUploadFile=nr.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return rr(e)}}),e.SSEChannel=fr,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return sr.call(e,{openid:n,callLoginByWeixin:i})}}(e),e.setCustomClientInfo=lr,e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,l.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,a=i.customUI,s=i.loadingOptions,c=i.errorOptions,u=i.parseSystemError,h=!a;return new Proxy({},{get:function(i,a){switch(a){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,f.default)(o.default.mark((function e(){var i,a,s,c,l,u,f=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,a=new Array(i),s=0;s<i;s++)a[s]=f[s];return c=r?r({params:a}):{},e.prev=2,e.next=5,ee(te(n,"invoke"),S({},c));case 5:return e.next=7,t.apply(void 0,a);case 7:return l=e.sent,e.next=10,ee(te(n,"success"),S(S({},c),{},{result:l}));case 10:return e.abrupt("return",l);case 13:return e.prev=13,e.t0=e["catch"](2),u=e.t0,e.next=18,ee(te(n,"fail"),S(S({},c),{},{error:u}));case 18:throw u;case 19:return e.prev=19,e.next=22,ee(te(n,"complete"),S(S({},c),{},u?{error:u}:{result:l}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var i=(0,f.default)(o.default.mark((function i(){var p,g,v,y,m,x,_,b,w,k,A,T,P,C,O,D=arguments;return o.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(h&&r.showLoading({title:s.title,mask:s.mask}),g=D.length,v=new Array(g),y=0;y<g;y++)v[y]=D[y];return m={name:t,type:M,data:{method:a,params:v}},"object"==(0,l.default)(n.secretMethods)&&function(e,t){var n=t.data.method,r=e.secretMethods||{},i=r[n]||r["*"];i&&(t.secretType=i)}(n,m),x=!1,i.prev=5,i.next=8,e.callFunction(m);case 8:p=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](5),x=!0,p={result:new _e(i.t0)};case 14:if(_=p.result||{},b=_.errSubject,w=_.errCode,k=_.errMsg,A=_.newToken,h&&r.hideLoading(),A&&A.token&&A.tokenExpired&&(Se(A),de(oe,S({},A))),!w){i.next=39;break}if(T=k,!x||!u){i.next=24;break}return i.next=20,u({objectName:t,methodName:a,params:v,errSubject:b,errCode:w,errMsg:k});case 20:if(i.t1=i.sent.errMsg,i.t1){i.next=23;break}i.t1=k;case 23:T=i.t1;case 24:if(!h){i.next=37;break}if("toast"!==c.type){i.next=29;break}r.showToast({title:T,icon:"none"}),i.next=37;break;case 29:if("modal"===c.type){i.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(c.type));case 31:return i.next=33,(0,f.default)(o.default.mark((function e(){var t,n,i,a,s,c,l=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.title,i=t.content,a=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:i,showCancel:a,cancelText:s,confirmText:c,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:T,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 33:if(P=i.sent,C=P.confirm,!c.retry||!C){i.next=37;break}return i.abrupt("return",d.apply(void 0,v));case 37:throw O=new _e({subject:b,code:w,message:k,requestId:p.requestId}),O.detail=p.result,de(ie,{type:le,content:O}),O;case 39:return i.abrupt("return",(de(ie,{type:le,content:p.result}),p.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function d(){return i.apply(this,arguments)}return d}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:a,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var a=n&&n.type||L;i=a!==L}var o="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var c=ye(n),l=c.success,u=c.fail,f=c.complete,h=s.then((function(){return i?Promise.resolve():ee(te(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):ee(te(t,"success"),e).then((function(){return ee(te(t,"complete"),e)})).then((function(){return o&&de(ie,{type:ce,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):ee(te(t,"fail"),e).then((function(){return ee(te(t,"complete"),e)})).then((function(){return de(ie,{type:ce,content:e}),Promise.reject(e)}))}));if(!(l||u||f))return h;h.then((function(e){l&&l(e),f&&f(e),o&&de(ie,{type:ce,content:e})}),(function(e){u&&u(e),f&&f(e),o&&de(ie,{type:ce,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=G,t={};if(e&&1===e.length)t=e[0],dr=dr.init(t),dr._isDefault=!0;else{var n;n=e&&e.length>0?"应用有多个服务空间请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){dr[e]=function(){return console.error(n),Promise.reject(new _e({code:"SYS_ERR",message:n}))}}))}Object.assign(dr,{get mixinDatacom(){return rr(dr)}}),Yn(dr),dr.addInterceptor=Q,dr.removeInterceptor=Z,dr.interceptObject=ne})();var pr=dr;t.default=pr}).call(this,n("0ee4"),n("df3c")["default"],n("3223")["default"])},"8d27":function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("1160")),a=r(n("8d27")),o=r(n("7d8e")),s=[],c={str2Num:function(e){for(var t="",n=0;n<e.length-2;n++)t+=e[n],n%2===1&&(t+=":");return t+e.slice(-2)},handleDevicesMac:function(t,n){console.log("卡片设备",t,n),e.openBluetoothAdapter({success:function(r){i.default.commit("changeBluetooth",!0),e.navigateTo({url:"/pageTwo/devices/search?id="+n+"&device="+t}),console.log("初始化蓝牙成功:"+r.errMsg)},fail:function(e){return console.log("初始化蓝牙失败:"+e.errMsg),a.default.getBluetoothAdapter(e)}})},openBluetoothAdapter:function(){e.openBluetoothAdapter({success:function(e){i.default.commit("changeBluetooth",!0),a.default.startBluetoothDeviceDiscovery(),console.log("初始化蓝牙成功:"+e.errMsg)},fail:function(e){a.default.getBluetoothAdapter(e)}})},startBluetoothDeviceDiscovery:function(){s=[],e.startBluetoothDevicesDiscovery({allowDuplicatesKey:!0,interval:200,services:[],success:function(e){a.default.onBluetoothDeviceFound()},fail:function(e){o.default.msg("请确定设备是开机状态、手机蓝牙权限已打开!")}})},onBluetoothDeviceFound:function(){e.onBluetoothDeviceFound((function(e){console.log("开始监听寻找到新设备的事件",e),e.devices.forEach((function(e){if((e.name||e.localName)&&-1!=e.name.indexOf("YPC")){var t=e.name.slice(7,19);return e.macAddr=a.default.str2Num(t),e.deviceId=e.deviceId,a.default.stopBluetoothDevicesDiscovery(),a.default.handleDevice(e),void console.log("ypc",e)}}))}))},getBluetoothAdapter:function(t){"openBluetoothAdapter:fail auth denied"==t.errMsg||"openBluetoothAdapter:fail auth deny"===t.errMsg||"openBluetoothAdapter:fail authorize no response"===t.errMsg?e.showModal({title:"提示",content:"需要您授权使用手机蓝牙",showCancel:!1,success:function(t){e.openSetting({success:function(t){t.authSetting["scope.bluetooth"]?e.openBluetoothAdapter({success:function(t){e.showToast({title:"获取权限成功,请继续去测量",icon:"none"}),i.default.commit("changeBluetooth",!0)},fail:function(e){o.default.showModal("手机蓝牙未打开"),console.log("初始化蓝牙失败:"+e.errMsg)}}):e.showToast({title:"获取权限失败,将无法使用手机蓝牙进行测量",icon:"none"})}})}}):o.default.showModal("手机蓝牙未打开")},handleDevice:function(e){var t=s,n=o.default.inArray(t,"deviceId",e.deviceId);if(console.log("ind",n,s,e),-1===n)return s.push(e),void i.default.commit("changedevicesList",s)},onBLEConnectionStateChange:function(){e.onBLEConnectionStateChange((function(e){console.log("蓝牙连接状态",JSON.stringify(e)),e.connected||(a.default.closeBLEConnection(),a.default.closeBluetoothAdapter()),i.default.commit("changeConnected",e.connected)}))},closeBLEConnection:function(t){console.log("deviceId",t),e.closeBLEConnection({deviceId:t,success:function(e){console.log("断开蓝牙连接成功"),i.default.commit("changeConnected",!1)}})},closeBluetoothAdapter:function(){e.closeBluetoothAdapter({success:function(e){console.log("蓝牙模块关闭成功")}})},stopBluetoothDevicesDiscovery:function(){e.stopBluetoothDevicesDiscovery({success:function(e){console.log("停止搜索蓝牙设备",e)}})}};t.default=c}).call(this,n("df3c")["default"])},"8f59":function(e,t,n){"use strict";(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=i(e[n],t)})),r}function a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"===typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){a(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,c);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},l.prototype.update=function(e){(function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}})([],this.root,e)},l.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new s(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&a(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var u;var f=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!==typeof window&&window.Vue&&x(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,s=this.commit;this.dispatch=function(e,t){return o.call(a,e,t)},this.commit=function(e,t,n){return s.call(a,e,t,n)},this.strict=i;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),n.forEach((function(e){return e(t)}));var f=void 0!==e.devtools?e.devtools:u.config.devtools;f&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},h={state:{configurable:!0}};function d(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function p(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),g(e,n,t)}function g(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:o}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function v(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=y(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){u.set(s,c,r.state)}))}var l=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=m(n,r,i),o=a.payload,s=a.options,c=a.type;return s&&s.root||(c=t+c),e.dispatch(c,o)},commit:r?e.commit:function(n,r,i){var a=m(n,r,i),o=a.payload,s=a.options,c=a.type;s&&s.root||(c=t+c),e.commit(c,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return y(e.state,n)}}}),i}(e,o,n);r.forEachMutation((function(t,n){var r=o+n;(function(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))})(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,i=t.handler||t;(function(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"===typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))})(e,r,i,l)})),r.forEachGetter((function(t,n){var r=o+n;(function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}})(e,r,t,l)})),r.forEachChild((function(r,a){v(e,t,n.concat(a),r,i)}))}function y(e,t){return t.reduce((function(e,t){return e[t]}),e)}function m(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function x(e){u&&e===u||(u=e,
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u))}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(e){0},f.prototype.commit=function(e,t,n){var r=this,i=m(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),c=this._mutations[a];c&&(this._withCommit((function(){c.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},f.prototype.dispatch=function(e,t){var n=this,r=m(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(l){0}t(e)}))}))}},f.prototype.subscribe=function(e,t){return d(e,this._subscribers,t)},f.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return d(n,this._actionSubscribers,t)},f.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},f.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},f.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),g(this,this.state)},f.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=y(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])})),p(this)},f.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),p(this,!0)},f.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(f.prototype,h);var _=A((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=T(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),b=A((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=T(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),w=A((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),S=A((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=T(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function k(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function A(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function T(e,t,n){var r=e._modulesNamespaceMap[n];return r}function P(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function C(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function O(){var e=new Date;return" @ "+D(e.getHours(),2)+":"+D(e.getMinutes(),2)+":"+D(e.getSeconds(),2)+"."+D(e.getMilliseconds(),3)}function D(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var L={Store:f,install:x,version:"3.6.2",mapState:_,mapMutations:b,mapGetters:w,mapActions:S,createNamespacedHelpers:function(e){return{mapState:_.bind(null,e),mapGetters:w.bind(null,e),mapMutations:b.bind(null,e),mapActions:S.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var a=e.mutationTransformer;void 0===a&&(a=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var f=i(e.state);"undefined"!==typeof u&&(c&&e.subscribe((function(e,o){var s=i(o);if(n(e,f,s)){var c=O(),l=a(e),h="mutation "+e.type+c;P(u,h,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),C(u)}f=s})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=O(),i=s(e),a="action "+e.type+r;P(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),C(u)}})))}}};e.exports=L}).call(this,n("0ee4"))},"8ffa":function(e,t,n){var r=n("7647");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},9008:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"931d":function(e,t,n){var r=n("7647"),i=n("011a");e.exports=function(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var o=new(e.bind.apply(e,a));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports["default"]=e.exports},9596:function(e){e.exports=JSON.parse('{"login.title":"登录","login.phone":"手机号/邮箱","login.code":"验证码","login.sendcode":"发送验证码","login.agreement":"我已阅读并授权","login.agreementContnt":"《中招体测用户隐私协议》","login.btn":"登录","login.ForgotPassword":"忘记密码","login.register":"马上注册","login.valtips":"请勾选同意《中招体测用户隐私协议》","login.phonetip":"请输入手机号码","login.phonetipsTwo":"请输入正确的手机号码","login.codeTips":"请输入验证码","index.home":"主页","index.age":"年龄","index.birthday":"出生日期","index.region":"当前地区","index.body":"身体数据","index.height":"身高","index.weight":"体重","index.BMI":"BMI","index.none":"暂无","index.look":"查看详情"}')},"9fc1":function(e,t,n){var r=n("3b2d")["default"];function i(){"use strict";
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,a=Object.create(i.prototype),o=new M(r||[]);return s(a,"_invoke",{value:C(e,n,o)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var g="suspendedStart",v="executing",y="completed",m={};function x(){}function _(){}function b(){}var w={};h(w,l,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(I([])));k&&k!==a&&o.call(k,l)&&(w=k);var A=b.prototype=x.prototype=Object.create(w);function T(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==r(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function C(e,n,r){var i=g;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var l=p(e,n,r);if("normal"===l.type){if(i=r.done?y:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=y,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=p(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return _.prototype=b,s(A,"constructor",{value:b,configurable:!0}),s(b,"constructor",{value:_,configurable:!0}),_.displayName=h(b,f,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,h(e,f,"GeneratorFunction")),e.prototype=Object.create(A),e},n.awrap=function(e){return{__await:e}},T(P.prototype),h(P.prototype,u,(function(){return this})),n.AsyncIterator=P,n.async=function(e,t,r,i,a){void 0===a&&(a=Promise);var o=new P(d(e,t,r,i),a);return n.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},T(A),h(A,f,"Generator"),h(A,l,(function(){return this})),h(A,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=I,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},n}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},a3d2:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("f690")),a=r(n("9596")),o=r(n("1eaf")),s=r(n("36c8")),c={en:i.default,"zh-Hans":a.default,"zh-Hant":o.default,ja:s.default};t.default=c},a708:function(e,t,n){var r=n("6454");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},af34:function(e,t,n){var r=n("a708"),i=n("b893"),a=n("6382"),o=n("9008");e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports},b168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fontData=void 0;t.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}]},b1fc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={pages:[{path:"pages/home/home",style:{navigationBarTitleText:"",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/skiping/skip",style:{navigationBarTitleText:"跳绳数据",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/skiping/charts",style:{navigationBarTitleText:"运动曲线",enablePullDownRefresh:!1}},{path:"pages/lunging/vitalcapacity",style:{navigationBarTitleText:"肺活量数据",enablePullDownRefresh:!0,onReachBottomDistance:50,navigationBarBackgroundColor:"#000000",backgroundColor:"#000000"}},{path:"pages/lunging/charts",style:{navigationBarTitleText:"运动曲线",enablePullDownRefresh:!1}},{path:"pages/my/me",style:{navigationBarTitleText:"我的",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/score/score",style:{navigationBarTitleText:"分数评估",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/PublicCards/PublicCards",style:{navigationBarTitleText:"对比详情"}},{path:"pages/body/body",style:{navigationBarTitleText:"身体数据",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/zixun/list",style:{navigationBarTitleText:""}}],subPackages:[{root:"pageTwo",pages:[{path:"history/history",style:{navigationBarTitleText:"历史记录",enablePullDownRefresh:!1}},{path:"history/historyDetail",style:{navigationBarTitleText:"记录详情",enablePullDownRefresh:!1}},{path:"compk/contrast",style:{navigationBarTitleText:"数据对比",enablePullDownRefresh:!1}},{path:"compk/pkdetail",style:{navigationBarTitleText:"对比详情",enablePullDownRefresh:!1}},{path:"cardList/card",style:{navigationBarTitleText:"卡片设置",enablePullDownRefresh:!1}},{path:"business/business",style:{navigationBarTitleText:"设备管理",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"business/addDevice",style:{navigationBarTitleText:"设备列表",enablePullDownRefresh:!1}},{path:"business/search",style:{navigationBarTitleText:"搜索设备",enablePullDownRefresh:!1}},{path:"score/history",style:{navigationBarTitleText:"估分历史",enablePullDownRefresh:!1}},{path:"score/report",style:{navigationBarTitleText:"估分报告",enablePullDownRefresh:!1}},{path:"my/manage",style:{navigationBarTitleText:"成员管理",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"message/list",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"my/userInfo",style:{navigationBarTitleText:"资料"}},{path:"login/forgetPassword",style:{navigationBarTitleText:"密码",enablePullDownRefresh:!1}},{path:"login/login",style:{navigationBarTitleText:"登录",enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"my/about",style:{navigationBarTitleText:"关于我们",enablePullDownRefresh:!1}},{path:"setting/setting",style:{navigationBarTitleText:"设置",enablePullDownRefresh:!1}},{path:"setting/password",style:{navigationBarTitleText:"修改密码",enablePullDownRefresh:!1}},{path:"setting/email",style:{navigationBarTitleText:"绑定邮箱",enablePullDownRefresh:!1}},{path:"setting/phone",style:{navigationBarTitleText:"绑定手机号",enablePullDownRefresh:!1}},{path:"devices/search",style:{navigationBarTitleText:"蓝牙搜索",enablePullDownRefresh:!1}},{path:"devices/G02",style:{navigationBarTitleText:"测量",enablePullDownRefresh:!1}},{path:"devices/PCL",style:{navigationBarTitleText:"测量",enablePullDownRefresh:!1}},{path:"devices/PCV02",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"devices/PCT01",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"devices/B20",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"notepad/notepad",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"notepad/addNotepad",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"PublicCards/charts",style:{navigationBarTitleText:"运动曲线"}},{path:"PublicCards/history",style:{navigationBarTitleText:"历史记录"}},{path:"PublicCards/contrast",style:{navigationBarTitleText:"数据对比"}},{path:"PublicCards/pkdetail",style:{navigationBarTitleText:"对比详情"}},{path:"home/inheritHeighet",style:{navigationBarTitleText:"身高预测"}},{path:"home/bmi",style:{navigationBarTitleText:"BMI测评"}},{path:"webview/webview",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}}]}],globalStyle:{navigationBarTextStyle:"white",navigationBarTitleText:"",navigationBarBackgroundColor:"#37cc92",backgroundColor:"#fff"},tabBar:{color:"#333",fontSize:"14px",selectedColor:"#37cc92",backgroundColor:"#fff",list:[{pagePath:"pages/home/home",iconPath:"static/shou.png",selectedIconPath:"static/shou2.png",text:"记录"},{pagePath:"pages/zixun/list",iconPath:"static/ping.png",selectedIconPath:"static/ping2.png",text:"资讯"},{pagePath:"pages/my/me",iconPath:"static/wo.png",selectedIconPath:"static/wo2.png",text:"我的"}]},uniIdRouter:{}}},b4d2:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},b664:function(e){e.exports=JSON.parse('{"video":[{"name":"50","video":"/pageTwo/static/50.mp3"},{"name":"100","video":"/pageTwo/static/100.mp3"},{"name":"150","video":"/pageTwo/static/150.mp3"},{"name":"200","video":"/pageTwo/static/200.mp3"},{"name":"250","video":"/pageTwo/static/250.mp3"},{"name":"300","video":"/pageTwo/static/300.mp3"},{"name":"350","video":"/pageTwo/static/350.mp3"},{"name":"400","video":"/pageTwo/static/400.mp3"},{"name":"450","video":"/pageTwo/static/450.mp3"},{"name":"500","video":"/pageTwo/static/500.mp3"},{"name":"550","video":"/pageTwo/static/550.mp3"},{"name":"600","video":"/pageTwo/static/600.mp3"},{"name":"650","video":"/pageTwo/static/650.mp3"},{"name":"700","video":"/pageTwo/static/700.mp3"},{"name":"750","video":"/pageTwo/static/750.mp3"},{"name":"800","video":"/pageTwo/static/800.mp3"},{"name":"850","video":"/pageTwo/static/850.mp3"},{"name":"900","video":"/pageTwo/static/900.mp3"},{"name":"950","video":"/pageTwo/static/950.mp3"},{"name":"1000","video":"/pageTwo/static/1000.mp3"}]}')},b788:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7d8e")),a=(r(n("1160")),"https://tc.pcxbc.com"),o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",r=arguments.length>2?arguments[2]:void 0,o={url:a+t,data:r,method:n,header:{"X-Requested-With":"XMLHttpRequest","content-type":"application/json; charset=UTF-8"}},s=new Promise((function(n,r){e.request(o).then((function(r){if(e.hideLoading(),console.log("request",t,r),20001==r[1].data.code)return e.clearStorageSync(),e.setStorageSync("token",null),e.setStorageSync("aan_id",null),void setTimeout((function(){e.reLaunch({url:"/pageTwo/login/login"})}),2e3);200==r[1].statusCode?n(r[1].data):i.default.msg(r[1].data.msg)})).catch((function(t){e.hideLoading(),r(t)}))}));return s},s={baseUrl:a,get:function(t,n){return n.token=e.getStorageSync("token"),n.aan_id=e.getStorageSync("aan_id"),o(t,"get",n)},post:function(t,n){return n.token=e.getStorageSync("token"),n.aan_id=e.getStorageSync("aan_id"),o(t,"post",n)}};t.default=s}).call(this,n("df3c")["default"])},b893:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},b8eb:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("4589")),a=r(n("42d6")),o=r(n("20e4")),s={en:i.default,"zh-Hans":a.default,"zh-Hant":o.default};t.default=s},c0aa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r;r={data:function(){return{is_show:"none"}},watch:{show:function(e){this.is_show=this.show}},created:function(){this.swipeaction=this.getSwipeAction(),this.swipeaction&&Array.isArray(this.swipeaction.children)&&this.swipeaction.children.push(this)},mounted:function(){this.is_show=this.show},methods:{closeSwipe:function(e){this.autoClose&&this.swipeaction&&this.swipeaction.closeOther(this)},change:function(e){this.$emit("change",e.open),this.is_show!==e.open&&(this.is_show=e.open)},appTouchStart:function(e){var t=e.changedTouches[0].clientX;this.clientX=t,this.timestamp=(new Date).getTime()},appTouchEnd:function(e,t,n,r){var i=e.changedTouches[0].clientX,a=Math.abs(this.clientX-i),o=(new Date).getTime()-this.timestamp;a<40&&o<300&&this.$emit("click",{content:n,index:t,position:r})},onClickForPC:function(e,t,n){}}};var i=r;t.default=i},d3b4:function(e,t,n){"use strict";(function(e,r){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=function(e,t){var n=t.locale,r=t.locales,i=t.delimiters;if(!A(e,i))return e;S||(S=new f);var a=[];Object.keys(r).forEach((function(e){e!==n&&a.push({locale:e,values:r[e]})})),a.unshift({locale:n,values:r[n]});try{return JSON.stringify(P(JSON.parse(e),a,i),null,2)}catch(o){}return e},t.hasI18nJson=function e(t,n){S||(S=new f);return C(t,(function(t,r){var i=t[r];return k(i)?!!A(i,n)||void 0:e(i,n)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=w());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var a=new _({locale:e,fallbackLocale:n,messages:t,watcher:r}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return a.t(e,t)};else{var n=!1;o=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,b(r,a))),a.t(e,t)}}return o(e,t)};return{i18n:a,f:function(e,t,n){return a.f(e,t,n)},t:function(e,t){return o(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(e,t,n)},watch:function(e){return a.watchLocale(e)},getLocale:function(){return a.getLocale()},setLocale:function(e){return a.setLocale(e)}}},t.isI18nStr=A,t.isString=void 0,t.normalizeLocale=x,t.parseI18nJson=function e(t,n,r){S||(S=new f);return C(t,(function(t,i){var a=t[i];k(a)?A(a,r)&&(t[i]=T(a,n,r)):e(a,n,r)})),t},t.resolveLocale=function(e){return function(t){return t?(t=x(t)||t,function(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var a=i(n("34cf")),o=i(n("67ad")),s=i(n("0bdb")),c=i(n("3b2d")),l=function(e){return null!==e&&"object"===(0,c.default)(e)},u=["{","}"],f=function(){function e(){(0,o.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(!t)return[e];var r=this._caches[e];return r||(r=p(e,n),this._caches[e]=r),g(r,t)}}]),e}();t.Formatter=f;var h=/^(?:\d)+/,d=/^(?:\w)+/;function p(e,t){var n=(0,a.default)(t,2),r=n[0],i=n[1],o=[],s=0,c="";while(s<e.length){var l=e[s++];if(l===r){c&&o.push({type:"text",value:c}),c="";var u="";l=e[s++];while(void 0!==l&&l!==i)u+=l,l=e[s++];var f=l===i,p=h.test(u)?"list":f&&d.test(u)?"named":"unknown";o.push({value:u,type:p})}else c+=l}return c&&o.push({type:"text",value:c}),o}function g(e,t){var n=[],r=0,i=Array.isArray(t)?"list":l(t)?"named":"unknown";if("unknown"===i)return n;while(r<e.length){var a=e[r];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(t[parseInt(a.value,10)]);break;case"named":"named"===i&&n.push(t[a.value]);break;case"unknown":0;break}r++}return n}t.LOCALE_ZH_HANS="zh-Hans";t.LOCALE_ZH_HANT="zh-Hant";t.LOCALE_EN="en";t.LOCALE_FR="fr";t.LOCALE_ES="es";var v=Object.prototype.hasOwnProperty,y=function(e,t){return v.call(e,t)},m=new f;function x(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=["en","fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,n);return r||void 0}}var _=function(){function e(t){var n=t.locale,r=t.fallbackLocale,i=t.messages,a=t.watcher,s=t.formater;(0,o.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||m,this.messages=i||{},this.setLocale(n||"en"),a&&this.watchLocale(a)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=x(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){y(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=x(t,this.messages),t&&(r=this.messages[t])):n=t,y(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function b(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function w(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}t.I18n=_;var S,k=function(e){return"string"===typeof e};function A(e,t){return e.indexOf(t[0])>-1}function T(e,t,n){return S.interpolate(e,t,n).join("")}function P(e,t,n){return C(e,(function(e,r){(function(e,t,n,r){var i=e[t];if(k(i)){if(A(i,r)&&(e[t]=T(i,n[0].values,r),n.length>1)){var a=e[t+"Locales"]={};n.forEach((function(e){a[e.locale]=T(i,e.values,r)}))}}else P(i,n,r)})(e,r,t,n)})),e}function C(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(l(e))for(var r in e)if(t(e,r))return!0;return!1}t.isString=k}).call(this,n("df3c")["default"],n("0ee4"))},d551:function(e,t,n){var r=n("3b2d")["default"],i=n("e6db");e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports["default"]=e.exports},dd3e:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},df3c:function(e,t,n){"use strict";(function(e,r){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Lt,t.createComponent=Ut,t.createPage=Bt,t.createPlugin=Wt,t.createSubpackageApp=zt,t.default=void 0;var a,o=i(n("34cf")),s=i(n("7ca3")),c=i(n("931d")),l=i(n("af34")),u=i(n("3b2d")),f=n("d3b4"),h=i(n("3240"));function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function y(){var t,n=e.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(function(e){return decodeURIComponent(a(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(r[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}a="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!v.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",a=0;a<e.length;)t=g.indexOf(e.charAt(a++))<<18|g.indexOf(e.charAt(a++))<<12|(n=g.indexOf(e.charAt(a++)))<<6|(r=g.indexOf(e.charAt(a++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var m=Object.prototype.toString,x=Object.prototype.hasOwnProperty;function _(e){return"function"===typeof e}function b(e){return"string"===typeof e}function w(e){return"[object Object]"===m.call(e)}function S(e,t){return x.call(e,t)}function k(){}function A(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var T=/-(\w)/g,P=A((function(e){return e.replace(T,(function(e,t){return t?t.toUpperCase():""}))}));function C(e){var t={};return w(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var O=["invoke","success","fail","complete","returnValue"],D={},L={};function M(e,t){Object.keys(t).forEach((function(n){-1!==O.indexOf(n)&&_(t[n])&&(e[n]=function(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))}))}function I(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==O.indexOf(n)&&_(t[n])&&function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}(e[n],t[n])}))}function F(e,t){return function(n){return e(n,t)||n}}function E(e){return!!e&&("object"===(0,u.default)(e)||"function"===typeof e)&&"function"===typeof e.then}function j(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];if(r)r=Promise.resolve(F(a,n));else{var o=a(t,n);if(E(o)&&(r=Promise.resolve(o)),!1===o)return{then:function(){}}}}return r||{then:function(e){return e(t)}}}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(i){j(e[n],i,t).then((function(e){return _(r)&&r(e)||e}))}}})),t}function $(e,t){var n=[];Array.isArray(D.returnValue)&&n.push.apply(n,(0,l.default)(D.returnValue));var r=L[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,l.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function N(e){var t=Object.create(null);Object.keys(D).forEach((function(e){"returnValue"!==e&&(t[e]=D[e].slice())}));var n=L[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function B(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var o=N(e);if(o&&Object.keys(o).length){if(Array.isArray(o.invoke)){var s=j(o.invoke,n);return s.then((function(n){return t.apply(void 0,[R(N(e),n)].concat(i))}))}return t.apply(void 0,[R(o,n)].concat(i))}return t.apply(void 0,[n].concat(i))}var U={returnValue:function(e){return E(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}},z=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,W=/^create|Manager$/,H=["createBLEConnection"],q=["createBLEConnection","createPushMessage"],V=/^on|^off/;function G(e){return W.test(e)&&-1===H.indexOf(e)}function K(e){return z.test(e)&&-1===q.indexOf(e)}function J(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function X(e){return!(G(e)||K(e)||function(e){return V.test(e)&&"onPush"!==e}(e))}function Y(e,t){return X(e)&&_(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return _(n.success)||_(n.fail)||_(n.complete)?$(e,B.apply(void 0,[e,t,n].concat(i))):$(e,J(new Promise((function(r,a){B.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:a})].concat(i))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))});var Q=!1,Z=0,ee=0;var te,ne={};te=ae(e.getSystemInfoSync().language)||"en",function(){if(function(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=ne[e],n=__uniConfig.locales[e];t?Object.assign(t,n):ne[e]=n}))}}();var re=(0,f.initVueI18n)(te,{}),ie=re.t;re.mixin={beforeCreate:function(){var e=this,t=re.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return ie(e,t)}}},re.setLocale,re.getLocale;function ae(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return n||void 0}}function oe(){if(_(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return ae(e.getSystemInfoSync().language)||"en"}var se=[];"undefined"!==typeof r&&(r.getLocale=oe);var ce={promiseInterceptor:U},le=Object.freeze({__proto__:null,upx2px:function(t,n){if(0===Z&&function(){var t=e.getSystemInfoSync(),n=t.platform,r=t.pixelRatio,i=t.windowWidth;Z=i,ee=r,Q="ios"===n}(),t=Number(t),0===t)return 0;var r=t/750*(n||Z);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r&&(r=1!==ee&&Q?.5:1),t<0?-r:r},getLocale:oe,setLocale:function(e){var t=!!_(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,se.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===se.indexOf(e)&&se.push(e)},addInterceptor:function(e,t){"string"===typeof e&&w(t)?M(L[e]||(L[e]={}),t):w(e)&&M(D,e)},removeInterceptor:function(e,t){"string"===typeof e?w(t)?I(L[e],t):delete L[e]:w(e)&&I(D,e)},interceptors:ce});var ue,fe={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},he={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r<t)||e!==n[t]}))):e.current=n[0],{indicator:!1,loop:!1}}}}};function de(t){ue=ue||e.getStorageSync("__DC_STAT_UUID"),ue||(ue=Date.now()+""+Math.floor(1e7*Math.random()),e.setStorage({key:"__DC_STAT_UUID",data:ue})),t.deviceId=ue}function pe(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function ge(e,t){for(var n=e.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},i=Object.keys(r),a=t.toLocaleLowerCase(),o=0;o<i.length;o++){var s=i[o];if(-1!==a.indexOf(s)){n=r[s];break}}return n}function ve(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function ye(e){return oe?oe():e}function me(e){var t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}var xe={returnValue:function(e){de(e),pe(e),function(e){var t,n=e.brand,r=void 0===n?"":n,i=e.model,a=void 0===i?"":i,o=e.system,s=void 0===o?"":o,c=e.language,l=void 0===c?"":c,u=e.theme,f=e.version,h=(e.platform,e.fontSizeSetting),d=e.SDKVersion,p=e.pixelRatio,g=e.deviceOrientation,v="";v=s.split(" ")[0]||"",t=s.split(" ")[1]||"";var y=f,m=ge(e,a),x=ve(r),_=me(e),b=g,w=p,S=d,k=l.replace(/_/g,"-"),A={appId:"__UNI__20604F1",appName:"Reedaw",appVersion:"1.2.9",appVersionCode:"129",appLanguage:ye(k),uniCompileVersion:"4.24",uniRuntimeVersion:"4.24",uniPlatform:"mp-weixin",deviceBrand:x,deviceModel:a,deviceType:m,devicePixelRatio:w,deviceOrientation:b,osName:v.toLocaleLowerCase(),osVersion:t,hostTheme:u,hostVersion:y,hostLanguage:k,hostName:_,hostSDKVersion:S,hostFontSizeSetting:h,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};Object.assign(e,A,{})}(e)}},_e={args:function(e){"object"===(0,u.default)(e)&&(e.alertText=e.title)}},be={returnValue:function(e){var t=e,n=t.version,r=t.language,i=t.SDKVersion,a=t.theme,o=me(e),s=r.replace("_","-");e=C(Object.assign(e,{appId:"__UNI__20604F1",appName:"Reedaw",appVersion:"1.2.9",appVersionCode:"129",appLanguage:ye(s),hostVersion:n,hostLanguage:s,hostName:o,hostSDKVersion:i,hostTheme:a}))}},we={returnValue:function(e){var t=e,n=t.brand,r=t.model,i=ge(e,r),a=ve(n);de(e),e=C(Object.assign(e,{deviceType:i,deviceBrand:a,deviceModel:r}))}},Se={returnValue:function(e){pe(e),e=C(Object.assign(e,{windowTop:0,windowBottom:0}))}},ke={redirectTo:fe,previewImage:he,getSystemInfo:xe,getSystemInfoSync:xe,showActionSheet:_e,getAppBaseInfo:be,getDeviceInfo:we,getWindowInfo:Se,getAppAuthorizeSetting:{returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},compressImage:{args:function(e){e.compressedHeight&&!e.compressHeight&&(e.compressHeight=e.compressedHeight),e.compressedWidth&&!e.compressWidth&&(e.compressWidth=e.compressedWidth)}}},Ae=["success","fail","cancel","complete"];function Te(e,t,n){return function(r){return t(Ce(e,r,n))}}function Pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(w(t)){var a=!0===i?t:{};for(var o in _(n)&&(n=n(t,a)||{}),t)if(S(n,o)){var s=n[o];_(s)&&(s=s(t[o],t,a)),s?b(s)?a[s]=t[o]:w(s)&&(a[s.name?s.name:o]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(o,"'"))}else-1!==Ae.indexOf(o)?_(t[o])&&(a[o]=Te(e,t[o],r)):i||(a[o]=t[o]);return a}return _(t)&&(t=Te(e,t,r)),t}function Ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _(ke.returnValue)&&(t=ke.returnValue(e,t)),Pe(e,t,n,{},r)}function Oe(t,n){if(S(ke,t)){var r=ke[t];return r?function(n,i){var a=r;_(r)&&(a=r(n)),n=Pe(t,n,a.args,a.returnValue);var o=[n];"undefined"!==typeof i&&o.push(i),_(a.name)?t=a.name(n):b(a.name)&&(t=a.name);var s=e[t].apply(e,o);return K(t)?Ce(t,s,a.returnValue,G(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var De=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){De[e]=function(e){return function(t){var n=t.fail,r=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};_(n)&&n(i),_(r)&&r(i)}}(e)}));var Le={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Me=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,n=e.success,r=e.fail,i=e.complete,a=!1;Le[t]?(a={errMsg:"getProvider:ok",service:t,provider:Le[t]},_(n)&&n(a)):(a={errMsg:"getProvider:fail service not found"},_(r)&&r(a)),_(i)&&i(a)}}),Ie=function(){var e;return function(){return e||(e=new h.default),e}}();function Fe(e,t,n){return e[t].apply(e,n)}var Ee,je,Re,$e=Object.freeze({__proto__:null,$on:function(){return Fe(Ie(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Fe(Ie(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Fe(Ie(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Fe(Ie(),"$emit",Array.prototype.slice.call(arguments))}});function Ne(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Be(e){try{return JSON.parse(e)}catch(t){}return e}var Ue=[];function ze(e,t){Ue.forEach((function(n){n(e,t)})),Ue.length=0}var We=[],He=e.getAppBaseInfo&&e.getAppBaseInfo();He||(He=e.getSystemInfoSync());var qe=He?He.host:null,Ve=qe&&"SAAASDK"===qe.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Ge=Object.freeze({__proto__:null,shareVideoMessage:Ve,getPushClientId:function(e){w(e)||(e={});var t=function(e){var t={};for(var n in e){var r=e[n];_(r)&&(t[n]=Ne(r),delete e[n])}return t}(e),n=t.success,r=t.fail,i=t.complete,a=_(n),o=_(r),s=_(i);Promise.resolve().then((function(){"undefined"===typeof Re&&(Re=!1,Ee="",je="uniPush is not enabled"),Ue.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},a&&n(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},o&&r(c)),s&&i(c)})),"undefined"!==typeof Ee&&ze(Ee,je)}))},onPushMessage:function(e){-1===We.indexOf(e)&&We.push(e)},offPushMessage:function(e){if(e){var t=We.indexOf(e);t>-1&&We.splice(t,1)}else We.length=0},invokePushCallback:function(e){if("enabled"===e.type)Re=!0;else if("clientId"===e.type)Ee=e.cid,je=e.errMsg,ze(Ee,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Be(e.message)},n=0;n<We.length;n++){var r=We[n];if(r(t),t.stopped)break}else"click"===e.type&&We.forEach((function(t){t({type:"click",data:Be(e.message)})}))}}),Ke=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Je(e){return Behavior(e)}function Xe(){return!!this.route}function Ye(e){this.triggerEvent("__l",e)}function Qe(e){var t=e.$scope,n={};Object.defineProperty(e,"$refs",{get:function(){var e={};(function e(t,n,r){var i=t.selectAllComponents(n)||[];i.forEach((function(t){var i=t.dataset.ref;r[i]=t.$vm||tt(t),"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){e(t,n,r)}))}))})(t,".vue-ref",e);var r=t.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(t){var n=t.dataset.ref;e[n]||(e[n]=[]),e[n].push(t.$vm||tt(t))})),function(e,t){var n=(0,c.default)(Set,(0,l.default)(Object.keys(e))),r=Object.keys(t);return r.forEach((function(r){var i=e[r],a=t[r];Array.isArray(i)&&Array.isArray(a)&&i.length===a.length&&a.every((function(e){return i.includes(e)}))||(e[r]=a,n.delete(r))})),n.forEach((function(t){delete e[t]})),e}(n,e)}})}function Ze(e){var t,n=e.detail||e.value,r=n.vuePid,i=n.vueOptions;r&&(t=function e(t,n){for(var r,i=t.$children,a=i.length-1;a>=0;a--){var o=i[a];if(o.$scope._$vueId===n)return o}for(var s=i.length-1;s>=0;s--)if(r=e(i[s],n),r)return r}(this.$vm,r)),t||(t=this.$vm),i.parent=t}function et(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function tt(e){return function(e){return null!==e&&"object"===(0,u.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var nt=/_(.*)_worklet_factory_/;var rt=Page,it=Component,at=/:/g,ot=A((function(e){return P(e.replace(at,"-"))}));function st(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.$vm||this.dataset&&this.dataset.comType)e=ot(e);else{var a=ot(e);a!==e&&t.apply(this,[a].concat(r))}return t.apply(this,[e].concat(r))};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function ct(e,t,n){var r=t[e];t[e]=function(){if(et(this),st(this),r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(this,t)}}}rt.__$wrappered||(rt.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct("onLoad",e),rt(e)},Page.after=rt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct("created",e),it(e)});function lt(e,t,n){t.forEach((function(t){(function e(t,n){if(!n)return!0;if(h.default.options&&Array.isArray(h.default.options[t]))return!0;if(n=n.default||n,_(n))return!!_(n.extendOptions[t])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[t]));if(_(n[t])||Array.isArray(n[t]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return e(t,n)})):void 0})(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];ft(t).forEach((function(t){return ht(e,t,n)}))}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&_(e[n])&&t.push(n)})),t}function ht(e,t,n){-1!==n.indexOf(t)||S(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function dt(e,t){var n;return t=t.default||t,n=_(t)?t:e.extend(t),t=n.options,[n,t]}function pt(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function gt(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function vt(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(i){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"Reedaw",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return w(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||S(n,e)||(n[e]=r[e])})),n}var yt=[String,Number,Boolean,Object,Array,null];function mt(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function xt(e,t){var n=e.behaviors,r=e.extends,i=e.mixins,a=e.props;a||(e.props=a=[]);var o=[];return Array.isArray(n)&&n.forEach((function(e){o.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(a)?(a.push("name"),a.push("value")):(a.name={type:String,default:""},a.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),w(r)&&r.props&&o.push(t({properties:bt(r.props,!0)})),Array.isArray(i)&&i.forEach((function(e){w(e)&&e.props&&o.push(t({properties:bt(e.props,!0)}))})),o}function _t(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:mt(e)}})):w(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(w(n)){var i=n.default;_(i)&&(i=i()),n.type=_t(0,n.type),r[t]={type:-1!==yt.indexOf(n.type)?n.type:null,value:i,observer:mt(t)}}else{var a=_t(0,n);r[t]={type:-1!==yt.indexOf(a)?a:null,observer:mt(t)}}})),r}function wt(e,t,n,r){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,a){"string"===typeof t?t?"$event"===t?i["$"+a]=n:"arguments"===t?i["$"+a]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?i["$"+a]=e.__get_value(t.replace("$event.",""),n):i["$"+a]=e.__get_value(t):i["$"+a]=e:i["$"+a]=function(e,t){var n=e;return t.forEach((function(t){var r=t[0],i=t[2];if(r||"undefined"!==typeof i){var a,o=t[1],s=t[3];Number.isInteger(r)?a=r:r?"string"===typeof r&&r&&(a=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):a=n,Number.isInteger(a)?n=i:o?Array.isArray(a)?n=a.find((function(t){return e.__get_value(o,t)===i})):w(a)?n=Object.keys(a).find((function(t){return e.__get_value(o,a[t])===i})):console.error("v-for 暂不支持循环数据:",a):n=a[i],s&&(n=e.__get_value(s,n))}})),n}(e,t)})),i}function St(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function kt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=!1,s=w(t.detail)&&t.detail.__args__||[t.detail];if(i&&(o=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return o?[t]:s;var c=wt(e,r,t,s),l=[];return n.forEach((function(e){"$event"===e?"__set_model"!==a||i?i&&!o?l.push(s[0]):l.push(t):l.push(t.target.value):Array.isArray(e)&&"o"===e[0]?l.push(St(e)):"string"===typeof e&&S(c,e)?l.push(c[e]):l.push(e)})),l}function At(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=k,e.preventDefault=k,e.target=e.target||{},S(e,"detail")||(e.detail={}),S(e,"markerId")&&(e.detail="object"===(0,u.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),w(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=e.type,a=[];return r.forEach((function(n){var r=n[0],o=n[1],s="^"===r.charAt(0);r=s?r.slice(1):r;var c="~"===r.charAt(0);r=c?r.slice(1):r,o&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(i,r)&&o.forEach((function(n){var r=n[0];if(r){var i=t.$vm;if(i.$options.generic&&(i=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(i)||i),"$emit"===r)return void i.$emit.apply(i,kt(t.$vm,e,n[1],n[2],s,r));var o=i[r];if(!_(o)){var l="page"===t.$vm.mpType?"Page":"Component",u=t.route||t.is;throw new Error("".concat(l,' "').concat(u,'" does not have a method "').concat(r,'"'))}if(c){if(o.once)return;o.once=!0}var f=kt(t.$vm,e,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(o.toString())&&(f=f.concat([,,,,,,,,,,e])),a.push(o.apply(i,f))}}))})),"input"===i&&1===a.length&&"undefined"!==typeof a[0]?a[0]:void 0}var Tt={};var Pt=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ct(){h.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=h.default.prototype.__call_hook;h.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=function(e){var t=Tt[e];return delete Tt[e],t}(n.__id__),delete n.__id__),e.call(this,t,n)}}function Ot(t,n){var r=n.mocks,i=n.initRefs;Ct(),function(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}h.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},h.default.prototype.$getSSP=function(t,n,r){var i=e[t];if(i){var a=i[n]||[];return r?a:a[0]}},h.default.prototype.$setSSP=function(t,r){var i=0;return n.call(this,(function(n){var a=e[n],o=a[t]=a[t]||[];o.push(r),i=o.length-1})),i},h.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},h.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},h.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}(),t.$options.store&&(h.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=y(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=y(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=y(),t=e.tokenExpired;return t>Date.now()}}(h.default),h.default.prototype.mpHost="mp-weixin",h.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(i(this),function(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){S(n,t)&&(e[t]=n[t])}))}(this,r))}}});var a={onLaunch:function(n){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};a.globalData=t.$options.globalData||{};var o=t.$options.methods;return o&&Object.keys(o).forEach((function(e){a[e]=o[e]})),function(e,t,n){var r=e.observable({locale:n||re.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,i.forEach((function(t){return t(e)}))}})}(h.default,t,ae(e.getSystemInfoSync().language)||"en"),lt(a,Pt),ut(a,t.$options),a}function Dt(e){return Ot(e,{mocks:Ke,initRefs:Qe})}function Lt(e){return App(Dt(e)),e}var Mt=/[!'()*]/g,It=function(e){return"%"+e.charCodeAt(0).toString(16)},Ft=/%2C/g,Et=function(e){return encodeURIComponent(e).replace(Mt,It).replace(Ft,",")};function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var i=[];return r.forEach((function(e){void 0!==e&&(null===e?i.push(t(n)):i.push(t(n)+"="+t(e)))})),i.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function Rt(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,i=arguments.length>2?arguments[2]:void 0,a=dt(h.default,e),s=(0,o.default)(a,2),c=s[0],l=s[1],u=p({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(u,l["mp-weixin"].options);var f={options:u,data:vt(l,h.default.prototype),behaviors:xt(l,Je),properties:bt(l.props,!1,l.__file,u),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};gt(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),pt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:Ze,__e:At}};return l.externalClasses&&(f.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),i?[f,l,c]:n?f:[f,c]}(e,{isPage:Xe,initRelation:Ye},t)}var $t=["onShow","onHide","onUnload"];function Nt(e){var t=Rt(e,!0),n=(0,o.default)(t,2),r=n[0],i=n[1];return lt(r.methods,$t,i),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+jt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},ut(r.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(nt);if(r){var i=r[1];e[n]=t[n],e[i]=t[i]}}))}(r.methods,i.methods),r}function Bt(e){return Component(function(e){return Nt(e)}(e))}function Ut(e){return Component(Rt(e))}function zt(t){var n=Dt(t),r=getApp({allowDefault:!0});t.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(e){S(i,e)||(i[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){S(r,e)||(r[e]=n[e])})),_(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),_(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),_(n.onLaunch)){var a=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",a)}return t}function Wt(t){var n=Dt(t);if(_(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),_(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),_(n.onLaunch)){var r=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",r)}return t}$t.push.apply($t,["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"]),["vibrate","preloadPage","unPreloadPage","loadSubPackage"].forEach((function(e){ke[e]=!1})),[].forEach((function(t){var n=ke[t]&&ke[t].name?ke[t].name:t;e.canIUse(n)||(ke[t]=!1)}));var Ht={};"undefined"!==typeof Proxy?Ht=new Proxy({},{get:function(t,n){return S(t,n)?t[n]:le[n]?le[n]:Ge[n]?Y(n,Ge[n]):Me[n]?Y(n,Me[n]):De[n]?Y(n,De[n]):$e[n]?$e[n]:Y(n,Oe(n,e[n]))},set:function(e,t,n){return e[t]=n,!0}}):(Object.keys(le).forEach((function(e){Ht[e]=le[e]})),Object.keys(De).forEach((function(e){Ht[e]=Y(e,De[e])})),Object.keys(Me).forEach((function(e){Ht[e]=Y(e,Me[e])})),Object.keys($e).forEach((function(e){Ht[e]=$e[e]})),Object.keys(Ge).forEach((function(e){Ht[e]=Y(e,Ge[e])})),Object.keys(e).forEach((function(t){(S(e,t)||S(ke,t))&&(Ht[t]=Y(t,Oe(t,e[t])))}))),e.createApp=Lt,e.createPage=Bt,e.createComponent=Ut,e.createSubpackageApp=zt,e.createPlugin=Wt;var qt=Ht,Vt=qt;t.default=Vt}).call(this,n("3223")["default"],n("0ee4"))},e424:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7ca3")),a=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],o={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","mount","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","山峰图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","mount","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(e,t,n){return e+"元"},yAxisDemo2:function(e,t,n){return e.toFixed(2)},xAxisDemo1:function(e,t,n){return e+"年"},xAxisDemo2:function(e,t,n){return function(e,t){var n=new Date;n.setTime(1e3*e);var r=n.getFullYear(),i=n.getMonth()+1;i=i<10?"0"+i:i;var a=n.getDate();a=a<10?"0"+a:a;var o=n.getHours();o=o<10?"0"+o:o;var s=n.getMinutes(),c=n.getSeconds();return s=s<10?"0"+s:s,c=c<10?"0"+c:c,"full"==t?r+"-"+i+"-"+a+" "+o+":"+s+":"+c:"y-m-d"==t?r+"-"+i+"-"+a:"h:m"==t?o+":"+s:"h:m:s"==t?o+":"+s+":"+c:[r,i,a,o,s,c]}(e,"h:m")},seriesDemo1:function(e,t,n,r){return e+"元"},tooltipDemo1:function(e,t,n,r){return 0==n?"随便用"+e.data+"年":"其他我没改"+e.data+"天"},pieDemo:function(e,t,n,r){if(void 0!==t)return n[t].name+""+n[t].data+"元"}},demotype:{type:"line",color:a,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:a,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:a,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:a,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:a,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:a,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:a,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:a,title:{name:"",fontSize:25,color:""},subtitle:{name:"",fontSize:15,color:""},extra:{arcbar:{type:"circle",width:10,backgroundColor:"#E9E9E9",startAngle:1.5,endAngle:.25,gap:2}}},line:{type:"line",color:a,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:a,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:a,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:a,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:(0,i.default)({gridType:"dash",disableGrid:!0,gridColor:"#ffffff",data:[{tofix:1,min:0}]},"data",[{min:0}]),legend:{},extra:{column:{type:"group",width:20,seriesGap:5,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.5,barBorderCircle:!0,linearType:"opacity",linearOpacity:1}}},mount:{type:"mount",color:a,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:a,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:a,padding:[20,15,5,10],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",disableGrid:!0,gridColor:"#ffffff",data:[{tofix:1,min:0}]},legend:{show:!1},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:1,gradient:!0,activeType:"hollow"}}},radar:{type:"radar",color:a,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:a,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:a,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:a,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:a,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:a,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},s=o;t.default=s},e6db:function(e,t,n){var r=n("3b2d")["default"];e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},ed45:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},ee10:function(e,t){function n(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,c,"next",e)}function c(e){n(o,i,a,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports["default"]=e.exports},f690:function(e){e.exports=JSON.parse('{"index.title":"Hello i18n","index.home":"Home","index.component":"Component","index.api":"API","index.schema":"Schema","index.demo":"uni-app globalization","index.demo-description":"Include uni-framework, manifest.json, pages.json, tabbar, Page, Component, API, Schema","index.detail":"Detail","index.language":"Language","index.language-info":"Settings","index.system-language":"System language","index.application-language":"Application language","index.language-change-confirm":"Applying this setting will restart the app"}')},fe8d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={};t.default=r}}]);