123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- webpackJsonp([0],{"++K3":function(t,e){var n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m=!1;function y(){if(!m){m=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),y=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(f=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),h=/Android/i.exec(t),g=/FBAN\/\w+;/i.exec(t),v=/Mobile/i.exec(t),d=!!/Win64/.exec(t),e){(n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,(o=e[4]?parseFloat(e[4]):NaN)?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(y){if(y[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;u=!!y[2],c=!!y[3]}else l=u=c=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||u},osx:function(){return y()||l},linux:function(){return y()||c},iphone:function(){return y()||f},mobile:function(){return y()||f||p||h||v},nativeApp:function(){return y()||g},android:function(){return y()||h},ipad:function(){return y()||p}};t.exports=b},"+66z":function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+N5+":function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(t,e){return r.call(t,e)}function o(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!=(65535&t)&&65534!=(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function a(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,c=n("881s");var h=/[&<>"]/,d=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(t){return f[t]}var g=/[.?*+^$[\]\\(){}|-]/g;var v=n("TUzn");e.lib={},e.lib.mdurl=n("HxqY"),e.lib.ucmicro=n("QgkH"),e.assign=function(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach(function(n){t[n]=e[n]})}}),t},e.isString=function(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)},e.has=i,e.unescapeMd=function(t){return t.indexOf("\\")<0?t:t.replace(s,"$1")},e.unescapeAll=function(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(l,function(t,e,n){return e||function(t,e){var n;return i(c,e)?c[e]:35===e.charCodeAt(0)&&u.test(e)&&o(n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?a(n):t}(t,n)})},e.isValidEntityCode=o,e.fromCodePoint=a,e.escapeHtml=function(t){return h.test(t)?t.replace(d,p):t},e.arrayReplaceAt=function(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))},e.isSpace=function(t){switch(t){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(t){return v.test(t)},e.escapeRE=function(t){return t.replace(g,"\\$&")},e.normalizeReference=function(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}},"+RLJ":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e,n=function(t){var e,n={},r=0,i=function(e){var o,a=r;null===(o=t.children(e))||void 0===o||o.forEach(i),n[e]={low:a,lim:r++}};return null===(e=t.children())||void 0===e||e.forEach(i),n}(t);null===(e=t.graph().dummyChains)||void 0===e||e.forEach(function(e){var r,i,o=e,a=t.node(o),s=a.edgeObj;if(s)for(var l=function(t,e,n,r){var i,o,a=[],s=[],l=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>l||u>e[i].lim));for(o=i,i=r;i&&i!==o;)s.push(i),i=t.parent(i);return{lca:o,path:a.concat(s.reverse())}}(t,n,s.v,s.w),u=l.path,c=l.lca,h=0,d=u[h],f=!0;o!==s.w;){if(a=t.node(o),f){for(;d!==c&&(null===(r=t.node(d))||void 0===r?void 0:r.maxRank)<a.rank;)d=u[++h];d===c&&(f=!1)}if(!f){for(;h<u.length-1&&(null===(i=t.node(u[h+1]))||void 0===i?void 0:i.minRank)<=a.rank;)h++;d=u[h]}t.setParent(o,d),o=t.successors(o)[0]}})}},"+ZMJ":function(t,e,n){var r=n("lOnJ");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"+ZTV":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.minBy=e.notime=e.time=e.partition=e.maxRank=e.addBorderNode=e.removeEmptyRanks=e.normalizeRanks=e.buildLayerMatrix=e.intersectRect=e.predecessorWeights=e.successorWeights=e.zipObject=e.asNonCompoundGraph=e.simplify=e.addDummyNode=void 0;var r=n("ZE1E"),i=n("3MGd");e.addDummyNode=function(t,e,n,r){var i;do{i="".concat(r).concat(Math.random())}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i};e.simplify=function(t){var e=(new i.Graph).setGraph(t.graph());return t.nodes().forEach(function(n){e.setNode(n,t.node(n))}),t.edges().forEach(function(n){var r=e.edgeFromArgs(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e};e.asNonCompoundGraph=function(t){var e=new i.Graph({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach(function(n){var r;(null===(r=t.children(n))||void 0===r?void 0:r.length)||e.setNode(n,t.node(n))}),t.edges().forEach(function(n){e.setEdgeObj(n,t.edge(n))}),e};e.zipObject=function(t,e){return null===t||void 0===t?void 0:t.reduce(function(t,n,r){return t[n]=e[r],t},{})};e.successorWeights=function(t){var e={};return t.nodes().forEach(function(n){var r,i={};null===(r=t.outEdges(n))||void 0===r||r.forEach(function(e){var n;i[e.w]=(i[e.w]||0)+((null===(n=t.edge(e))||void 0===n?void 0:n.weight)||0)}),e[n]=i}),e};e.predecessorWeights=function(t){var n=t.nodes(),r=n.map(function(e){var n,r={};return null===(n=t.inEdges(e))||void 0===n||n.forEach(function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight}),r});return(0,e.zipObject)(n,r)};e.intersectRect=function(t,e){var n,r,i=Number(t.x),o=Number(t.y),a=Number(e.x)-i,s=Number(e.y)-o,l=Number(t.width)/2,u=Number(t.height)/2;return a||s?(Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}):{x:0,y:0}};e.buildLayerMatrix=function(t){for(var n=[],r=(0,e.maxRank)(t)+1,i=0;i<r;i++)n.push([]);t.nodes().forEach(function(e){var r=t.node(e);if(r){var i=r.rank;void 0!==i&&n[i]&&n[i].push(e)}});for(i=0;i<r;i++)n[i]=n[i].sort(function(e,n){var r,i,o,a;return o=null===(r=t.node(e))||void 0===r?void 0:r.order,a=null===(i=t.node(n))||void 0===i?void 0:i.order,Number(o)-Number(a)});return n};e.normalizeRanks=function(t){var e=t.nodes().filter(function(e){var n;return void 0!==(null===(n=t.node(e))||void 0===n?void 0:n.rank)}).map(function(e){return t.node(e).rank}),n=Math.min.apply(Math,e);t.nodes().forEach(function(e){var r=t.node(e);r.hasOwnProperty("rank")&&n!==1/0&&(r.rank-=n)})};e.removeEmptyRanks=function(t){var e=t.nodes(),n=e.filter(function(e){var n;return void 0!==(null===(n=t.node(e))||void 0===n?void 0:n.rank)}).map(function(e){return t.node(e).rank}),r=Math.min.apply(Math,n),i=[];e.forEach(function(e){var n,o=((null===(n=t.node(e))||void 0===n?void 0:n.rank)||0)-r;i[o]||(i[o]=[]),i[o].push(e)});for(var o=0,a=t.graph().nodeRankFactor||0,s=0;s<i.length;s++){var l=i[s];void 0===l?s%a!=0&&(o-=1):o&&(null===l||void 0===l||l.forEach(function(e){var n=t.node(e);n&&(n.rank=n.rank||0,n.rank+=o)}))}};e.addBorderNode=function(t,n,i,o){var a={width:0,height:0};return(0,r.isNumber)(i)&&(0,r.isNumber)(o)&&(a.rank=i,a.order=o),(0,e.addDummyNode)(t,"border",a,n)};e.maxRank=function(t){var e;return t.nodes().forEach(function(n){var r,i=null===(r=t.node(n))||void 0===r?void 0:r.rank;void 0!==i&&(void 0===e||i>e)&&(e=i)}),e||(e=0),e};e.partition=function(t,e){var n={lhs:[],rhs:[]};return null===t||void 0===t||t.forEach(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n};e.time=function(t,e){var n=Date.now();try{return e()}finally{console.log("".concat(t," time: ").concat(Date.now()-n,"ms"))}};e.notime=function(t,e){return e()};e.minBy=function(t,e){return t.reduce(function(t,n){return e(t)>e(n)?n:t})}},"+cvj":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("Jsh2"))&&r.__esModule?r:{default:r};var o=function(t,e){for(var n=(0,i.default)(t,e),r=[],o=n.length,a=0;a<o;a+=1){r[a]=[];for(var s=0;s<o;s+=1)a===s?r[a][s]=0:0!==n[a][s]&&n[a][s]?r[a][s]=n[a][s]:r[a][s]=1/0}for(var l=0;l<o;l+=1)for(a=0;a<o;a+=1)for(s=0;s<o;s+=1)r[a][s]>r[a][l]+r[l][s]&&(r[a][s]=r[a][l]+r[l][s]);return r};e.default=o},"+tPU":function(t,e,n){n("xGkn");for(var r=n("7KvD"),i=n("hJx8"),o=n("/bQp"),a=n("dSzd")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],h=c&&c.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},"+ymx":function(t,e,n){"use strict";e.c=function(t,e,n,r,i){var l=s(r-e,n-t);return{dx:a(l)*i,dy:o(l)*i}},e.b=function(t,e,n,r,i,o){"object"==typeof e.startArrow?c(t,e,n,r,i,o,!0):e.startArrow?u(t,e,n,r,i,o,!0):t.set("startArrowShape",null)},e.a=function(t,e,n,r,i,o){"object"==typeof e.endArrow?c(t,e,n,r,i,o,!1):e.endArrow?u(t,e,n,r,i,o,!1):t.set("startArrowShape",null)};var r=n("TToO"),i=n("3BVV"),o=Math.sin,a=Math.cos,s=Math.atan2,l=Math.PI;function u(t,e,n,r,u,c,h){var d=e.stroke,f=e.lineWidth,p=s(r-c,n-u),g=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(l/6)+","+10*o(l/6)+" L0,0 L"+10*a(l/6)+",-"+10*o(l/6),stroke:d,lineWidth:f}});g.translate(u,c),g.rotateAtPoint(u,c,p),t.set(h?"startArrowShape":"endArrowShape",g)}function c(t,e,n,l,u,c,h){var d=e.startArrow,f=e.endArrow,p=e.stroke,g=e.lineWidth,v=h?d:f,m=v.d,y=v.fill,b=v.stroke,_=v.lineWidth,x=Object(r.__rest)(v,["d","fill","stroke","lineWidth"]),w=s(l-c,n-u);m&&(u-=a(w)*m,c-=o(w)*m);var S=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.__assign)(Object(r.__assign)({},x),{stroke:b||p,lineWidth:_||g,fill:y})});S.translate(u,c),S.rotateAtPoint(u,c,w),t.set(h?"startArrowShape":"endArrowShape",S)}},"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"/OLh":function(t,e,n){"use strict";t.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},"/bQp":function(t,e){t.exports={}},"/gxq":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.guid=function(){return g++},e.logError=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)},e.clone=v,e.merge=m,e.mergeAll=function(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=m(n,t[r],e);return n},e.extend=y,e.defaults=b,n.d(e,"createCanvas",function(){return _}),e.indexOf=function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1},e.inherits=function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e},e.mixin=function(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else b(t,e,n)},e.isArrayLike=function(t){if(!t)return!1;if("string"==typeof t)return!1;return"number"==typeof t.length},e.each=x,e.map=function(t,e,n){if(!t)return[];if(!e)return I(t);if(t.map&&t.map===h)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r},e.reduce=w,e.filter=function(t,e,n){if(!t)return[];if(!e)return I(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r},e.find=function(t,e,n){if(!t||!e)return;for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]},e.keys=S,n.d(e,"bind",function(){return C}),n.d(e,"curry",function(){return k}),e.isArray=O,e.isFunction=M,e.isString=function(t){return"string"==typeof t},e.isStringSafe=function(t){return"[object String]"===a.call(t)},e.isNumber=function(t){return"number"==typeof t},e.isObject=E,e.isBuiltInObject=T,e.isTypedArray=function(t){return!!o[a.call(t)]},e.isDom=A,e.isGradientObject=function(t){return null!=t.colorStops},e.isImagePatternObject=function(t){return null!=t.image},e.isRegExp=function(t){return"[object RegExp]"===a.call(t)},e.eqNaN=function(t){return t!=t},e.retrieve=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]},e.retrieve2=function(t,e){return null!=t?t:e},e.retrieve3=function(t,e,n){return null!=t?t:null!=e?e:n},e.slice=I,e.normalizeCssArray=function(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];return t},e.assert=function(t,e){if(!t)throw new Error(e)},e.trim=function(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.setAsPrimitive=function(t){t[D]=!0},e.isPrimitive=P,n.d(e,"HashMap",function(){return N}),e.createHashMap=function(t){return new N(t)},e.concatArray=function(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n},e.createObject=function(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}e&&y(n,e);return n},e.disableUserSelect=function(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"},e.hasOwn=function(t,e){return t.hasOwnProperty(e)},e.noop=function(){},n.d(e,"RADIAN_TO_DEGREE",function(){return R});var r=n("OwOc"),i=w(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),o=w(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,f=d?d.prototype:null,p="__proto__",g=2311;function v(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!P(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=v(t[r])}}else if(o[n]){if(!P(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!P(t)&&!A(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==p&&(e[u]=v(t[u]));return e}function m(t,e,n){if(!E(e)||!E(t))return n?v(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==p){var i=t[r],o=e[r];!E(o)||!E(i)||O(o)||O(i)||A(o)||A(i)||T(o)||T(i)||P(o)||P(i)?!n&&r in t||(t[r]=v(e[r])):m(i,o,n)}return t}function y(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==p&&(t[n]=e[n]);return t}function b(t,e,n){for(var r=S(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var _=r.d.createCanvas;function x(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function w(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function S(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var C=f&&M(f.bind)?f.call.bind(f.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(c.call(arguments)))}};function k(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function O(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function M(t){return"function"==typeof t}function E(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function T(t){return!!i[a.call(t)]}function A(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function I(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}var D="__ec_primitive__";function P(t){return t[D]}var L=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return S(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),j="function"==typeof Map;var N=function(){function t(e){var n=O(e);this.data=j?new Map:new L;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&x(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,r){t.call(e,n,r)})},t.prototype.keys=function(){var t=this.data.keys();return j?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();var R=180/Math.PI},"/n6Q":function(t,e,n){n("zQR9"),n("+tPU"),t.exports=n("Kh4W").f("iterator")},"/ocq":function(t,e,n){"use strict";
- /*!
- * vue-router v3.5.1
- * (c) 2021 Evan You
- * @license MIT
- */function r(t,e){0}function i(t,e){for(var n in e)t[n]=e[n];return t}var o=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,l=function(t){return encodeURIComponent(t).replace(o,a).replace(s,",")};function u(t){try{return decodeURIComponent(t)}catch(t){0}return t}var c=function(t){return null==t||"object"==typeof t?t:String(t)};function h(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function d(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(l(e)):r.push(l(e)+"="+l(t)))}),r.join("&")}return l(e)+"="+l(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var f=/\/?$/;function p(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=g(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:m(e,i),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(a.redirectedFrom=m(n,i)),Object.freeze(a)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var v=p(null,{path:"/"});function m(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||d)(r)+i}function y(t,e,n){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(f,"")===e.path.replace(f,"")&&(n||t.hash===e.hash&&b(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&b(t.query,e.query)&&b(t.params,e.params))))}function b(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every(function(n,i){var o=t[n];if(r[i]!==n)return!1;var a=e[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?b(o,a):String(o)===String(a)})}function _(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var x={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=o.$createElement,l=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;o&&o._routerRoot!==o;){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(a.routerViewDepth=h,d){var p=c[l],g=p&&p.component;return g?(p.configProps&&w(g,a,p.route,p.configProps),s(g,a,r)):s()}var v=u.matched[h],m=v&&v.components[l];if(!v||!m)return c[l]=null,s();c[l]={component:m},a.registerRouteInstance=function(t,e){var n=v.instances[l];(e&&n!==t||!e&&n===t)&&(v.instances[l]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){v.instances[l]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[l]&&(v.instances[l]=t.componentInstance),_(u)};var y=v.props&&v.props[l];return y&&(i(c[l],{route:u,configProps:y}),w(m,a,u,y)),s(m,a,r)}};function w(t,e,n,r){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,r);if(o){o=e.props=i({},o);var a=e.attrs=e.attrs||{};for(var s in o)t.props&&s in t.props||(a[s]=o[s],delete o[s])}}function S(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function C(t){return t.replace(/\/\//g,"/")}var k=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},O=z,M=D,E=function(t,e){return L(D(t,e),e)},T=L,A=F,I=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function D(t,e){for(var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=I.exec(t));){var l=n[0],u=n[1],c=n.index;if(a+=t.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=t[o],d=n[2],f=n[3],p=n[4],g=n[5],v=n[6],m=n[7];a&&(r.push(a),a="");var y=null!=d&&null!=h&&h!==d,b="+"===v||"*"===v,_="?"===v||"*"===v,x=n[2]||s,w=p||g;r.push({name:f||i++,prefix:d||"",delimiter:x,optional:_,repeat:b,partial:y,asterisk:!!m,pattern:w?N(w):m?".*":"[^"+j(x)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function P(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function L(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",B(e)));return function(e,r){for(var i="",o=e||{},a=(r||{}).pretty?P:encodeURIComponent,s=0;s<t.length;s++){var l=t[s];if("string"!=typeof l){var u,c=o[l.name];if(null==c){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(k(c)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<c.length;h++){if(u=a(c[h]),!n[s].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");i+=(0===h?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?encodeURI(c).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):a(c),!n[s].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');i+=l.prefix+u}}else i+=l}return i}}function j(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function N(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function R(t,e){return t.keys=e,t}function B(t){return t&&t.sensitive?"":"i"}function F(t,e,n){k(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)o+=j(s);else{var l=j(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+l+u+")*"),o+=u=s.optional?s.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")"}}var c=j(n.delimiter||"/"),h=o.slice(-c.length)===c;return r||(o=(h?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+c+"|$)",R(new RegExp("^"+o,B(n)),e)}function z(t,e,n){return k(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return R(t,e)}(t,e):k(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(z(t[i],e,n).source);return R(new RegExp("(?:"+r.join("|")+")",B(n)),e)}(t,e,n):function(t,e,n){return F(D(t,n),e,n)}(t,e,n)}O.parse=M,O.compile=E,O.tokensToFunction=T,O.tokensToRegExp=A;var V=Object.create(null);function $(t,e,n){e=e||{};try{var r=V[t]||(V[t]=O.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function G(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var a=(o=i({},t)).params;return a&&"object"==typeof a&&(o.params=i({},a)),o}if(!o.path&&o.params&&e){(o=i({},o))._normalized=!0;var s=i(i({},e.params),o.params);if(e.name)o.name=e.name,o.params=s;else if(e.matched.length){var l=e.matched[e.matched.length-1].path;o.path=$(l,s,e.path)}else 0;return o}var u=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),d=e&&e.path||"/",f=u.path?S(u.path,d,n||o.append):d,p=function(t,e,n){void 0===e&&(e={});var r,i=n||h;try{r=i(t||"")}catch(t){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(c):c(a)}return r}(u.query,o.query,r&&r.options.parseQuery),g=o.hash||u.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:f,query:p,hash:g}}var H,W=[String,Object],U=[String,Array],Y=function(){},X={name:"RouterLink",props:{to:{type:W,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:U,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,l=o.href,u={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,g=null==h?"router-link-exact-active":h,v=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?g:this.exactActiveClass,b=s.redirectedFrom?p(null,G(s.redirectedFrom),null,n):s;u[m]=y(r,b,this.exactPath),u[v]=this.exact||this.exactPath?u[m]:function(t,e){return 0===t.path.replace(f,"/").indexOf(e.path.replace(f,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,b);var _=u[m]?this.ariaCurrentValue:null,x=function(t){q(t)&&(e.replace?n.replace(a,Y):n.push(a,Y))},w={click:q};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=x}):w[this.event]=x;var S={class:u},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:x,isActive:u[v],isExactActive:u[m]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?t():t("span",{},C)}if("a"===this.tag)S.on=w,S.attrs={href:l,"aria-current":_};else{var k=function t(e){if(e)for(var n,r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(k){k.isStatic=!1;var O=k.data=i({},k.data);for(var M in O.on=O.on||{},O.on){var E=O.on[M];M in w&&(O.on[M]=Array.isArray(E)?E:[E])}for(var T in w)T in O.on?O.on[T].push(w[T]):O.on[T]=x;var A=k.data.attrs=i({},k.data.attrs);A.href=l,A["aria-current"]=_}else S.on=w}return t(this.tag,S,this.$slots.default)}};function q(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Z(t){if(!Z.installed||H!==t){Z.installed=!0,H=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",x),t.component("RouterLink",X);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var K="undefined"!=typeof window;function J(t,e,n,r,i){var o=e||[],a=n||Object.create(null),s=r||Object.create(null);t.forEach(function(t){!function t(e,n,r,i,o,a){var s=i.path;var l=i.name;0;var u=i.pathToRegexpOptions||{};var c=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return C(e.path+"/"+t)}(s,o,u.strict);"boolean"==typeof i.caseSensitive&&(u.sensitive=i.caseSensitive);var h={path:c,regex:function(t,e){var n=O(t,[],e);return n}(c,u),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:l,parent:o,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach(function(i){var o=a?C(a+"/"+i.path):void 0;t(e,n,r,i,h,o)});n[h.path]||(e.push(h.path),n[h.path]=h);if(void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],f=0;f<d.length;++f){var p=d[f];0;var g={path:p,children:i.children};t(e,n,r,g,o,h.path||"/")}l&&(r[l]||(r[l]=h))}(o,a,s,t,i)});for(var l=0,u=o.length;l<u;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),u--,l--);return{pathList:o,pathMap:a,nameMap:s}}function Q(t,e){var n=J(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var s=G(t,n,!1,e),u=s.name;if(u){var c=o[u];if(!c)return l(null,s);var h=c.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in s.params)&&h.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=$(c.path,s.params),l(c,s,a)}if(s.path){s.params={};for(var f=0;f<r.length;f++){var p=r[f],g=i[p];if(tt(g.regex,s.path,s.params))return l(g,s,a)}}return l(null,s)}function s(t,n){var r=t.redirect,i="function"==typeof r?r(p(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return l(null,n);var s=i,u=s.name,c=s.path,h=n.query,d=n.hash,f=n.params;if(h=s.hasOwnProperty("query")?s.query:h,d=s.hasOwnProperty("hash")?s.hash:d,f=s.hasOwnProperty("params")?s.params:f,u){o[u];return a({_normalized:!0,name:u,query:h,hash:d,params:f},void 0,n)}if(c){var g=function(t,e){return S(t,e.parent?e.parent.path:"/",!0)}(c,t);return a({_normalized:!0,path:$(g,f),query:h,hash:d},void 0,n)}return l(null,n)}function l(t,n,r){return t&&t.redirect?s(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:$(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,l(o,e)}return l(null,e)}(0,n,t.matchAs):p(t,n,r,e)}return{match:a,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;J([e||t],r,i,o,n),n&&J(n.alias.map(function(t){return{path:t,children:[e]}}),r,i,o,n)},getRoutes:function(){return r.map(function(t){return i[t]})},addRoutes:function(t){J(t,r,i,o)}}}function tt(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1];a&&(n[a.name||"pathMatch"]="string"==typeof r[i]?u(r[i]):r[i])}return!0}var et=K&&window.performance&&window.performance.now?window.performance:Date;function nt(){return et.now().toFixed(3)}var rt=nt();function it(){return rt}function ot(t){return rt=t}var at=Object.create(null);function st(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=i({},window.history.state);return n.key=it(),window.history.replaceState(n,"",e),window.addEventListener("popstate",ct),function(){window.removeEventListener("popstate",ct)}}function lt(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick(function(){var o=function(){var t=it();if(t)return at[t]}(),a=i.call(t,e,n,r?o:null);a&&("function"==typeof a.then?a.then(function(t){gt(t,o)}).catch(function(t){0}):gt(a,o))})}}function ut(){var t=it();t&&(at[t]={x:window.pageXOffset,y:window.pageYOffset})}function ct(t){ut(),t.state&&t.state.key&&ot(t.state.key)}function ht(t){return ft(t.x)||ft(t.y)}function dt(t){return{x:ft(t.x)?t.x:window.pageXOffset,y:ft(t.y)?t.y:window.pageYOffset}}function ft(t){return"number"==typeof t}var pt=/^#\d/;function gt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=pt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:ft((n=o).x)?n.x:0,y:ft(n.y)?n.y:0})}else ht(t)&&(e=dt(t))}else r&&ht(t)&&(e=dt(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var vt,mt=K&&((-1===(vt=window.navigator.userAgent).indexOf("Android 2.")&&-1===vt.indexOf("Android 4.0")||-1===vt.indexOf("Mobile Safari")||-1!==vt.indexOf("Chrome")||-1!==vt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function yt(t,e){ut();var n=window.history;try{if(e){var r=i({},n.state);r.key=it(),n.replaceState(r,"",t)}else n.pushState({key:ot(nt())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function bt(t){yt(t,!0)}function _t(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}var xt={redirected:2,aborted:4,cancelled:8,duplicated:16};function wt(t,e){return Ct(t,e,xt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return kt.forEach(function(n){n in t&&(e[n]=t[n])}),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function St(t,e){return Ct(t,e,xt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Ct(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var kt=["params","query","hash"];function Ot(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Mt(t,e){return Ot(t)&&t._isRouter&&(null==e||t.type===e)}function Et(t){return function(e,n,r){var i=!1,o=0,a=null;Tt(t,function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var l,u=Dt(function(e){var i;((i=e).__esModule||It&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:H.extend(e),n.components[s]=e,--o<=0&&r()}),c=Dt(function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Ot(t)?t:new Error(e),r(a))});try{l=t(u,c)}catch(t){c(t)}if(l)if("function"==typeof l.then)l.then(u,c);else{var h=l.component;h&&"function"==typeof h.then&&h.then(u,c)}}}),i||r()}}function Tt(t,e){return At(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function At(t){return Array.prototype.concat.apply([],t)}var It="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Dt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Pt=function(t,e){this.router=t,this.base=function(t){if(!t)if(K){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Lt(t,e,n,r){var i=Tt(t,function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=H.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,i,o)}):n(a,r,i,o)});return At(r?i.reverse():i)}function jt(t,e){if(e)return function(){return t.apply(e,arguments)}}Pt.prototype.listen=function(t){this.cb=t},Pt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Pt.prototype.onError=function(t){this.errorCbs.push(t)},Pt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach(function(e){e(t)}),t}var o=this.current;this.confirmTransition(r,function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach(function(t){t&&t(r,o)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(t){t(r)}))},function(t){n&&n(t),t&&!i.ready&&(Mt(t,xt.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach(function(e){e(t)})))})},Pt.prototype.confirmTransition=function(t,e,n){var i=this,o=this.current;this.pending=t;var a,s,l=function(t){!Mt(t)&&Ot(t)&&(i.errorCbs.length?i.errorCbs.forEach(function(e){e(t)}):(r(),console.error(t))),n&&n(t)},u=t.matched.length-1,c=o.matched.length-1;if(y(t,o)&&u===c&&t.matched[u]===o.matched[c])return this.ensureURL(),l(((s=Ct(a=o,t,xt.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",s));var h=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),d=h.updated,f=h.deactivated,p=h.activated,g=function(e,n){if(i.pending!==t)return l(St(o,t));try{e(t,o,function(e){!1===e?(i.ensureURL(!0),l(function(t,e){return Ct(t,e,xt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(o,t))):Ot(e)?(i.ensureURL(!0),l(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(l(wt(o,t)),"object"==typeof e&&e.replace?i.replace(e):i.push(e)):n(e)})}catch(t){l(t)}};_t([].concat(function(t){return Lt(t,"beforeRouteLeave",jt,!0)}(f),this.router.beforeHooks,function(t){return Lt(t,"beforeRouteUpdate",jt)}(d),p.map(function(t){return t.beforeEnter}),Et(p)),g,function(){_t(function(t){return Lt(t,"beforeRouteEnter",function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)})}}(t,n,r)})}(p).concat(i.router.resolveHooks),g,function(){if(i.pending!==t)return l(St(o,t));i.pending=null,e(t),i.router.app&&i.router.app.$nextTick(function(){_(t)})})})},Pt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Pt.prototype.setupListeners=function(){},Pt.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=v,this.pending=null};var Nt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=Rt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=mt&&n;r&&this.listeners.push(st());var i=function(){var n=t.current,i=Rt(t.base);t.current===v&&i===t._startLocation||t.transitionTo(i,function(t){r&<(e,t,n,!0)})};window.addEventListener("popstate",i),this.listeners.push(function(){window.removeEventListener("popstate",i)})}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){yt(C(r.base+t.fullPath)),lt(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){bt(C(r.base+t.fullPath)),lt(r.router,t,i,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Rt(this.base)!==this.current.fullPath){var e=C(this.base+this.current.fullPath);t?yt(e):bt(e)}},e.prototype.getCurrentLocation=function(){return Rt(this.base)},e}(Pt);function Rt(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Bt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Rt(t);if(!/^\/#/.test(e))return window.location.replace(C(t+"/#"+e)),!0}(this.base)||Ft()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(st());var r=function(){var e=t.current;Ft()&&t.transitionTo(zt(),function(r){n&<(t.router,r,e,!0),mt||Gt(r.fullPath)})},i=mt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push(function(){window.removeEventListener(i,r)})}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){$t(t.fullPath),lt(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){Gt(t.fullPath),lt(r.router,t,i,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;zt()!==e&&(t?$t(e):Gt(e))},e.prototype.getCurrentLocation=function(){return zt()},e}(Pt);function Ft(){var t=zt();return"/"===t.charAt(0)||(Gt("/"+t),!1)}function zt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Vt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function $t(t){mt?yt(Vt(t)):window.location.hash=t}function Gt(t){mt?bt(Vt(t)):window.location.replace(Vt(t))}var Ht=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach(function(e){e&&e(r,t)})},function(t){Mt(t,xt.duplicated)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Pt),Wt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),K||(e="abstract"),this.mode=e,e){case"history":this.history=new Nt(this,t.base);break;case"hash":this.history=new Bt(this,t.base,this.fallback);break;case"abstract":this.history=new Ht(this,t.base);break;default:0}},Ut={currentRoute:{configurable:!0}};function Yt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Wt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ut.currentRoute.get=function(){return this.history&&this.history.current},Wt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof Nt||n instanceof Bt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;mt&&i&&"fullPath"in t&<(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Wt.prototype.beforeEach=function(t){return Yt(this.beforeHooks,t)},Wt.prototype.beforeResolve=function(t){return Yt(this.resolveHooks,t)},Wt.prototype.afterEach=function(t){return Yt(this.afterHooks,t)},Wt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Wt.prototype.onError=function(t){this.history.onError(t)},Wt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.push(t,e,n)});this.history.push(t,e,n)},Wt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.replace(t,e,n)});this.history.replace(t,e,n)},Wt.prototype.go=function(t){this.history.go(t)},Wt.prototype.back=function(){this.go(-1)},Wt.prototype.forward=function(){this.go(1)},Wt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Wt.prototype.resolve=function(t,e,n){var r=G(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?C(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Wt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Wt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Wt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Wt.prototype,Ut),Wt.install=Z,Wt.version="3.5.1",Wt.isNavigationFailure=Mt,Wt.NavigationFailureType=xt,Wt.START_LOCATION=v,K&&window.Vue&&window.Vue.use(Wt),e.a=Wt},"/xpm":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("+ZTV"),i=function(t,e,n){for(var r,i=n;e.length&&(r=e[e.length-1]).i<=i;)e.pop(),null===t||void 0===t||t.push(r.vs),i++;return i},o=function(t,e){return function(n,r){if(void 0!==n.fixorder&&void 0!==r.fixorder)return n.fixorder-r.fixorder;if(n.barycenter<r.barycenter)return-1;if(n.barycenter>r.barycenter)return 1;if(e&&void 0!==n.order&&void 0!==r.order){if(n.order<r.order)return-1;if(n.order>r.order)return 1}return t?r.i-n.i:n.i-r.i}};e.default=function(t,e,n,a){var s=(0,r.partition)(t,function(t){var e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return a?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")}),l=s.lhs,u=s.rhs.sort(function(t,e){return-t.i- -e.i}),c=[],h=0,d=0,f=0;null===l||void 0===l||l.sort(o(!!e,!!n)),f=i(c,u,f),null===l||void 0===l||l.forEach(function(t){var e;f+=null===(e=t.vs)||void 0===e?void 0:e.length,c.push(t.vs),h+=t.barycenter*t.weight,d+=t.weight,f=i(c,u,f)});var p={vs:c.flat()};return d&&(p.barycenter=h/d,p.weight=d),p}},"02w1":function(t,e,n){"use strict";e.__esModule=!0,e.removeResizeListener=e.addResizeListener=void 0;var r,i=n("z+gd"),o=(r=i)&&r.__esModule?r:{default:r};var a="undefined"==typeof window,s=function(t){var e=t,n=Array.isArray(e),r=0;for(e=n?e:e[Symbol.iterator]();;){var i;if(n){if(r>=e.length)break;i=e[r++]}else{if((r=e.next()).done)break;i=r.value}var o=i.target.__resizeListeners__||[];o.length&&o.forEach(function(t){t()})}};e.addResizeListener=function(t,e){a||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new o.default(s),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},"06OY":function(t,e,n){var r=n("3Eo+")("meta"),i=n("EqjI"),o=n("D2L2"),a=n("evD5").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("S82l")(function(){return l(Object.preventExtensions({}))}),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return u&&h.NEED&&l(t)&&!o(t,r)&&c(t),t}}},"0IlV":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreCompoundLayout=void 0;var s=n("w9t0"),l=n("rRkU"),u=n("ZE1E"),c=function(t){function e(e){var n=t.call(this)||this;return n.rankdir="TB",n.nodesep=50,n.edgesep=5,n.ranksep=50,n.controlPoints=!0,n.anchorPoint=!0,n.nodes=[],n.edges=[],n.combos=[],n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,begin:void 0,nodeSize:void 0,nodesep:50,ranksep:50,controlPoints:!0,anchorPoint:!0}},e.prototype.init=function(t){var e=t.hiddenNodes||[],n=t.hiddenEdges||[],r=t.hiddenCombos||[];this.nodes=this.getDataByOrder((t.nodes||[]).concat(e)),this.edges=this.getDataByOrder((t.edges||[]).concat(n)),this.combos=(t.combos||[]).concat(r.map(function(t){return o(o({},t),{collapsed:!0})}))},e.prototype.execute=function(){var t=this.nodes,e=this.edges;if(t){var n=this.getLayoutConfig(),r=n.graphDef,i=n.graphOption,o=n.graphSettings,a=(0,l.buildGraph)(r,i,o),s=(0,l.flatGraph)(a,!0);return this.updatePosition(s),this.onLayoutEnd&&this.onLayoutEnd(),{nodes:t,edges:e}}},e.prototype.getNodePath=function(t){var e=this.nodes,n=this.combos,r=e.find(function(e){return e.id===t}),i=function(t,e){void 0===e&&(e=[]);var r=n.find(function(e){return e.id===t});return r?(e.unshift(t),r.parentId?i(r.parentId,e):e):e};return r&&r.comboId?i(r.comboId,[t]):[t]},e.prototype.getLayoutConfig=function(){var t,e,n,r,i=this.nodes,s=this.edges,c=this.combos,h=this.nodeSize,d=this.rankdir,f=this.align,p=this.edgesep,g=this.nodesep,v=this.ranksep,m=this.settings,y=(c||[]).reduce(function(t,e){var n=i.filter(function(t){return t.comboId===e.id}).map(function(t){return t.id}),r=(c||[]).filter(function(t){return t.parentId===e.id}).map(function(t){return t.id});return(n.length||r.length)&&(t[e.id]=a(a([],n,!0),r,!0)),t},{});r=h?(0,u.isArray)(h)?function(){return h}:function(){return[h,h]}:function(t){return t&&t.size?(0,u.isArray)(t.size)?t.size:(0,u.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40]};var b,_=(b=null===c||void 0===c?void 0:c[0])&&b.size?(0,u.isArray)(b.size)?b.size:[b.size,b.size]:[80,40],x=_[0],w=_[1],S=null===(e=null===(t=this.graphSettings)||void 0===t?void 0:t.subScene)||void 0===e?void 0:e.meta,C=(null===(n=c.find(function(t){return!t.collapsed}))||void 0===n?void 0:n.padding)||[20,20,20,20],k=C[0],O=C[1],M=C[2],E=C[3],T={compound:y,nodes:a([],(i||[]).map(function(t){var e=r(t),n=e[0],i=e[1];return o(o({},t),{width:n,height:i})}),!0),edges:a([],(s||[]).map(function(t){return o(o({},t),{v:t.source,w:t.target})}),!0)},A={expanded:(c||[]).filter(function(t){return!t.collapsed}).map(function(t){return t.id})},I={graph:{meta:{align:f,rankDir:d,nodeSep:g,edgeSep:p,rankSep:v}},subScene:{meta:{paddingTop:k||(null===S||void 0===S?void 0:S.paddingTop)||20,paddingRight:O||(null===S||void 0===S?void 0:S.paddingRight)||20,paddingBottom:M||(null===S||void 0===S?void 0:S.paddingBottom)||20,paddingLeft:E||(null===S||void 0===S?void 0:S.paddingLeft)||20,labelHeight:0}},nodeSize:{meta:{width:x,height:w}}},D=(0,l.mergeConfig)(m,o({},(0,l.mergeConfig)(I,l.LAYOUT_CONFIG)));return this.graphSettings=D,{graphDef:T,graphOption:A,graphSettings:D}},e.prototype.updatePosition=function(t){var e=t.nodes,n=t.edges;this.updateNodePosition(e,n),this.updateEdgePosition(e,n)},e.prototype.getBegin=function(t,e){var n=this.begin,r=[0,0];if(n){var i=1/0,o=1/0;t.forEach(function(t){i>t.x&&(i=t.x),o>t.y&&(o=t.y)}),e.forEach(function(t){t.points.forEach(function(t){i>t.x&&(i=t.x),o>t.y&&(o=t.y)})}),r[0]=n[0]-i,r[1]=n[1]-o}return r},e.prototype.updateNodePosition=function(t,e){var n=this.combos,r=this.nodes,i=this.edges,o=this.anchorPoint,a=this.graphSettings,s=this.getBegin(t,e);t.forEach(function(t){var u,c=t.x,h=t.y,d=t.id,f=t.type,p=t.coreBox;if(f===l.HierarchyNodeType.META&&d!==l.ROOT_NAME){var g=n.findIndex(function(t){return t.id===d}),v=null===(u=null===a||void 0===a?void 0:a.subScene)||void 0===u?void 0:u.meta;n[g].offsetX=c+s[0],n[g].offsetY=h+s[1],n[g].fixSize=[p.width,p.height],n[g].fixCollapseSize=[p.width,p.height],t.expanded?n[g].padding=[null===v||void 0===v?void 0:v.paddingTop,null===v||void 0===v?void 0:v.paddingRight,null===v||void 0===v?void 0:v.paddingBottom,null===v||void 0===v?void 0:v.paddingLeft]:n[g].padding=[0,0,0,0]}else if(f===l.HierarchyNodeType.OP){g=r.findIndex(function(t){return t.id===d});if(r[g].x=c+s[0],r[g].y=h+s[1],o){var m=[],y=e.filter(function(t){return t.v===d}),b=e.filter(function(t){return t.w===d});y.length>0&&y.forEach(function(e){var n=e.points[0],r=(n.x-c)/t.width+.5,o=(n.y-h)/t.height+.5;m.push([r,o]),e.baseEdgeList.forEach(function(t){var e=i.find(function(e){return e.source===t.v&&e.target===t.w});e&&(e.sourceAnchor=m.length-1)})}),b.length>0&&b.forEach(function(e){var n=e.points[e.points.length-1],r=(n.x-c)/t.width+.5,o=(n.y-h)/t.height+.5;m.push([r,o]),e.baseEdgeList.forEach(function(t){var e=i.find(function(e){return e.source===t.v&&e.target===t.w});e&&(e.targetAnchor=m.length-1)})}),r[g].anchorPoints=m.length>0?m:r[g].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(t,e){var n=this,r=n.combos,i=n.edges,s=n.controlPoints,u=this.getBegin(t,e);s&&(r.forEach(function(t){t.inEdges=[],t.outEdges=[]}),i.forEach(function(e){var i,s,c,h,d=t.find(function(t){return t.id===e.source}),f=t.find(function(t){return t.id===e.target}),p=[],g=[];if(d&&f)g=(0,l.getEdges)(null===d||void 0===d?void 0:d.id,null===f||void 0===f?void 0:f.id,t);else if(!d||!f){var v=n.getNodePath(e.source),m=n.getNodePath(e.target),y=v.reverse().slice(d?0:1).find(function(e){return t.find(function(t){return t.id===e})}),b=m.reverse().slice(f?0:1).find(function(e){return t.find(function(t){return t.id===e})});d=t.find(function(t){return t.id===y}),f=t.find(function(t){return t.id===b}),g=(0,l.getEdges)(null===d||void 0===d?void 0:d.id,null===f||void 0===f?void 0:f.id,t,{v:e.source,w:e.target})}if(p=(p=g.reduce(function(t,e){return a(a([],t,!0),e.points.map(function(t){return o(o({},t),{x:t.x+u[0],y:t.y+u[1]})}),!0)},[])).slice(1,-1),e.controlPoints=p,(null===f||void 0===f?void 0:f.type)===l.NodeType.META){var _=r.findIndex(function(t){return t.id===(null===f||void 0===f?void 0:f.id)});if(!r[_]||(null===(i=r[_].inEdges)||void 0===i?void 0:i.some(function(t){return t.source===d.id&&t.target===f.id})))return;null===(s=r[_].inEdges)||void 0===s||s.push({source:d.id,target:f.id,controlPoints:p})}if((null===d||void 0===d?void 0:d.type)===l.NodeType.META){_=r.findIndex(function(t){return t.id===(null===d||void 0===d?void 0:d.id)});if(!r[_]||(null===(c=r[_].outEdges)||void 0===c?void 0:c.some(function(t){return t.source===d.id&&t.target===f.id})))return;null===(h=r[_].outEdges)||void 0===h||h.push({source:d.id,target:f.id,controlPoints:p})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(t){return t.every(function(t){return void 0!==t.layoutOrder})||t.forEach(function(t,e){t.layoutOrder=e}),t.sort(function(t,e){return t.layoutOrder-e.layoutOrder})},e}(s.Base);e.DagreCompoundLayout=c},"0buI":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){void 0===i&&(i=!0);!function t(e,n,i,o,a){void 0===a&&(a=!0);o.enter({current:n,previous:i});var s=e.edges,l=void 0===s?[]:s;(0,r.getNeighbors)(n,l,a?"target":void 0).forEach(function(r){o.allowTraversal({previous:i,current:n,next:r})&&t(e,r,n,o,a)});o.leave({current:n,previous:i})}(t,e,"",function(t){void 0===t&&(t={});var e=t,n=function(){},r=(i={},function(t){var e=t.next;return!i[e]&&(i[e]=!0,!0)});var i;return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}(n),i)};var r=n("lSAc")},"0kY3":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=114)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},10:function(t,e){t.exports=n("HJMx")},114:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.decrease(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.increase(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.increase(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.decrease(e)):null}]}})],1)};r._withStripped=!0;var i=n(10),o=n.n(i),a=n(22),s=n.n(a),l=n(30),u={name:"ElInputNumber",mixins:[s()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:l.a},components:{ElInput:o.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},c=n(0),h=Object(c.a)(u,r,[],!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var d=h.exports;d.install=function(t){t.component(d.name,d)};e.default=d},2:function(t,e){t.exports=n("2kvA")},22:function(t,e){t.exports=n("1oZe")},30:function(t,e,n){"use strict";var r=n(2);e.a={bind:function(t,e,n){var i=null,o=void 0,a=function(){return n.context[e.expression].apply()},s=function(){Date.now()-o<100&&a(),clearInterval(i),i=null};Object(r.on)(t,"mousedown",function(t){0===t.button&&(o=Date.now(),Object(r.once)(document,"mouseup",s),clearInterval(i),i=setInterval(a,100))})}}}})},"17Ia":function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=a(n("sq6L")),u=s(n("iPQi")),c=s(n("TQfK")),h=n("Cq/5");e.default=function(t,e){var n=t.nodes,i=t.edges,o=e.width,a=e.height;if(!(null===n||void 0===n?void 0:n.length))return Promise.resolve();var s=[];n.forEach(function(t){if(i.filter(function(e){return e.source===t.id||e.target===t.id}).length>1){var e=r({},t);delete e.size,s.push(e)}});var d=[];i.forEach(function(t){var e=s.find(function(e){return e.id===t.source}),n=s.find(function(e){return e.id===t.target});e&&n&&d.push(t)});var f=new h.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}).layout({nodes:s,edges:d}).nodes;n.forEach(function(t){var e=(f||[]).find(function(e){return e.id===t.id});t.x=(null===e||void 0===e?void 0:e.x)||o/2,t.y=(null===e||void 0===e?void 0:e.y)||a/2});var p=JSON.parse(JSON.stringify(n)),g=JSON.parse(JSON.stringify(i)),v=l.forceSimulation().nodes(p).force("link",l.forceLink(g).id(function(t){return t.id}).distance(function(t){return d.find(function(e){return e.source===t.source&&e.target===t.target})?30:20})).force("charge",l.forceManyBody()).force("center",l.forceCenter(o/2,a/2)).force("x",l.forceX(o/2)).force("y",l.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001);return new Promise(function(t){v.on("end",function(){n.forEach(function(t){var e=p.find(function(e){return e.id===t.id});e&&(t.x=e.x,t.y=e.y)});var r=Math.min.apply(Math,n.map(function(t){return t.x})),s=Math.max.apply(Math,n.map(function(t){return t.x})),l=Math.min.apply(Math,n.map(function(t){return t.y})),h=Math.max.apply(Math,n.map(function(t){return t.y})),d=o/(s-r),f=a/(h-l);n.forEach(function(t){void 0!==t.x&&d<1&&(t.x=(t.x-r)*d),void 0!==t.y&&f<1&&(t.y=(t.y-l)*f)}),n.forEach(function(t){t.sizeTemp=t.size,t.size=[10,10]}),(0,c.default)(n,i),n.forEach(function(t){t.size=t.sizeTemp||[],delete t.sizeTemp}),(0,u.default)({nodes:n,edges:i},e),t()})})}},"1VE+":function(t,e,n){var r=n("Oy1H").default,i=n("5ttK");t.exports=function(t){var e=i(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},"1Xk4":function(t,e,n){"use strict";var r=n("awF4"),i=n("Rl2i"),o=n("sD9O"),a=n("q+vg");function s(t,e,n){var r=t;return i(e)?(n=e,"string"==typeof t&&(r={uri:t})):r=a(e,{uri:t}),r.callback=n,r}function l(t,e,n){return u(e=s(t,e,n))}function u(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,r,i){e||(e=!0,t.callback(n,r,i))};function r(t){return clearTimeout(c),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,m)}function i(){if(!s){var e;clearTimeout(c),e=t.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var r=m,i=null;return 0!==e?(r={body:function(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}(u),v)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:d,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(r.headers=o(u.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),n(i,r,r.body)}}var a,s,u=t.xhr||null;u||(u=t.cors||t.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var c,h=u.url=t.uri||t.url,d=u.method=t.method||"GET",f=t.body||t.data,p=u.headers=t.headers||{},g=!!t.sync,v=!1,m={body:void 0,headers:{},statusCode:0,method:d,url:h,rawRequest:u};if("json"in t&&!1!==t.json&&(v=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),f=JSON.stringify(!0===t.json?f:t.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(i,0)},u.onload=i,u.onerror=r,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=r,u.open(d,h,!g,t.username,t.password),g||(u.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(c=setTimeout(function(){if(!s){s=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}},t.timeout)),u.setRequestHeader)for(a in p)p.hasOwnProperty(a)&&u.setRequestHeader(a,p[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(f||null),u}t.exports=l,l.XMLHttpRequest=r.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:r.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){l["delete"===t?"del":t]=function(e,n,r){return(n=s(e,n,r)).method=t.toUpperCase(),u(n)}})},"1YJU":function(t,e){},"1b2O":function(t,e,n){"use strict";function r(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(t){var e,n,r;if(!this.attrs)return-1;for(n=0,r=(e=this.attrs).length;n<r;n++)if(e[n][0]===t)return n;return-1},r.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},r.prototype.attrSet=function(t,e){var n=this.attrIndex(t),r=[t,e];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(t){var e=this.attrIndex(t),n=null;return e>=0&&(n=this.attrs[e][1]),n},r.prototype.attrJoin=function(t,e){var n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e},t.exports=r},"1kS7":function(t,e){e.f=Object.getOwnPropertySymbols},"1oZe":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},"1we+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"components",function(){return I}),n.d(r,"dfs",function(){return D}),n.d(r,"dijkstra",function(){return R}),n.d(r,"dijkstraAll",function(){return B}),n.d(r,"findCycles",function(){return z}),n.d(r,"tarjan",function(){return F}),n.d(r,"isAcyclic",function(){return K}),n.d(r,"postorder",function(){return J}),n.d(r,"preorder",function(){return Q}),n.d(r,"prim",function(){return A}),n.d(r,"topsort",function(){return Z}),n.d(r,"floydWarshall",function(){return et});var i={};n.d(i,"isGraph",function(){return ft}),n.d(i,"isSimpleGraph",function(){return pt}),n.d(i,"isNullGraph",function(){return gt}),n.d(i,"hasSelfLoop",function(){return vt});var o={};n.d(o,"containAllSameEdges",function(){return lt}),n.d(o,"containAllSameNodes",function(){return st}),n.d(o,"containSameEdges",function(){return rt}),n.d(o,"containSameNodes",function(){return nt}),n.d(o,"isGraphComplement",function(){return mt}),n.d(o,"isGraphOptionSame",function(){return at}),n.d(o,"getSameEdges",function(){return ot}),n.d(o,"getSameNodes",function(){return it}),n.d(o,"isGraphSame",function(){return ut}),n.d(o,"isGraphContainsAnother",function(){return ct});var a,s={};function l(t,e){var n=t.get(e)||0;t.set(e,n+1)}function u(t,e){var n=t.get(e);void 0!==n&&((n-=1)>0?t.set(e,n):t.delete(e))}function c(t,e,n,r){var i=String(e),o=String(n);if(!t&&i>o){var s=i;i=o,o=s}return i+a.EDGE_KEY_DELIM+o+a.EDGE_KEY_DELIM+(void 0===r?a.DEFAULT_EDGE_NAME:r)}function h(t,e,n,r){var i=String(e),o=String(n),a={v:e,w:n};if(!t&&i>o){var s=a.v;a.v=a.w,a.w=s}return void 0!==r&&(a.name=r),a}function d(t,e){return c(t,e.v,e.w,e.name)}function f(t){return"function"==typeof t}n.d(s,"getGraphComplement",function(){return yt}),function(t){t.DEFAULT_EDGE_NAME="\0",t.GRAPH_NODE="\0",t.EDGE_KEY_DELIM=""}(a||(a={}));var p=function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return t.nodes().map(function(e){var n={id:e,value:t.node(e),parent:t.parent(e)};return void 0===n.value&&delete n.value,void 0===n.parent&&delete n.parent,n})}(t),edges:function(t){return t.edges().map(function(e){var n=t.edge(e),r={v:e.v,w:e.w,value:n,name:e.name};return void 0===r.name&&delete r.name,void 0===r.value&&delete r.value,r})}(t),value:t.graph()};return void 0===e.value&&delete e.value,e};function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach(function(e){m(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var b={compound:!1,multigraph:!1,directed:!0},_=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=a.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(t){return e.label=t,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(t){return f(t)?e.defaultNodeLabelFn=t:e.defaultNodeLabelFn=function(){return t},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(t){return e.nodesLabelMap.get(t)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(t){var n;return!(null===(n=e.inEdgesMap.get(t))||void 0===n?void 0:n.size)})},this.sinks=function(){return e.nodes().filter(function(t){var n;return!(null===(n=e.outEdgesMap.get(t))||void 0===n?void 0:n.size)})},this.setNodes=function(t,n){return t.map(function(t){return e.setNode(t,n)}),e},this.hasNode=function(t){return e.nodesLabelMap.has(t)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(t){if(e.isCompound()){var n,r=null===(n=e.parentMap)||void 0===n?void 0:n.get(t);if(r!==e.GRAPH_NODE)return r}},this.removeFromParentsChildList=function(t){var n=e.parentMap.get(t);e.childrenMap.get(n).delete(t)},this.setParent=function(t,n){var r,i;e.checkCompound();for(var o=void 0===n?e.GRAPH_NODE:n,a=e.parent(o);a;){if(t===a)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");a=e.parent(a)}n&&e.setNode(n),e.setNode(t),e.removeFromParentsChildList(t),null===(r=e.parentMap)||void 0===r||r.set(t,o);var s=e.childrenMap.get(o);return s.set(t,!0),null===(i=e.childrenMap)||void 0===i||i.set(o,s),e},this.children=function(t){var n=void 0===t?e.GRAPH_NODE:t;if(e.isCompound()){var r,i=null===(r=e.childrenMap)||void 0===r?void 0:r.get(n);return i?Array.from(i.keys()):void 0}return n===e.GRAPH_NODE?e.nodes():t&&e.hasNode(t)?[]:void 0},this.predecessors=function(t){var n=e.predecessorsMap.get(t);return n?Array.from(n.keys()):void 0},this.successors=function(t){var n=e.successorsMap.get(t);return n?Array.from(n.keys()):void 0},this.neighbors=function(t){var n;if(e.hasNode(t))return Array.from(new Set(null===(n=e.predecessors(t))||void 0===n?void 0:n.concat(e.successors(t))))},this.isLeaf=function(t){var n,r;return e.isDirected()?!(null===(r=e.successors(t))||void 0===r?void 0:r.length):!(null===(n=e.neighbors(t))||void 0===n?void 0:n.length)},this.filterNodes=function(n){var r=e.directed,i=e.multigraph,o=e.compound,a=new t({directed:r,multigraph:i,compound:o});if(a.setGraph(e.graph()),e.nodes().forEach(function(t){n(t)&&a.setNode(t,e.node(t))}),e.edges().forEach(function(t){a.hasNode(t.v)&&a.hasNode(t.w)&&a.setEdgeObj(t,e.edge(t))}),o){a.nodes().forEach(function(t){a.setParent(t,function(t){for(var n=e.parent(t);void 0!==n&&!a.hasNode(n);)n=e.parent(n);return n}(t))})}return a},this.setDefaultEdgeLabel=function(t){return f(t)?e.defaultEdgeLabelFn=t:e.defaultEdgeLabelFn=function(){return t},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(t,n){return e.setEdge(t.v,t.w,n,t.name)},this.setPath=function(t,n){return t.reduce(function(t,r){return e.setEdge(t,r,n),r}),e},this.edgeFromArgs=function(t,n,r){return e.edge({v:t,w:n,name:r})},this.edge=function(t){return e.edgesLabelsMap.get(d(e.isDirected(),t))},this.hasEdge=function(t,n,r){return e.edgesLabelsMap.has(d(e.isDirected(),{v:t,w:n,name:r}))},this.removeEdgeObj=function(t){var n=t.v,r=t.w,i=t.name;return e.removeEdge(n,r,i)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(t,n){var r=e.inEdgesMap.get(t);if(r)return Array.from(r.values()).filter(function(t){return!n||t.v===n})},this.outEdges=function(t,n){var r=e.outEdgesMap.get(t);if(r)return Array.from(r.values()).filter(function(t){return!n||t.w===n})},this.nodeEdges=function(t,n){var r;if(e.hasNode(t))return null===(r=e.inEdges(t,n))||void 0===r?void 0:r.concat(e.outEdges(t,n))},this.toJSON=function(){return p(e)},this.nodeInDegree=function(t){var n=e.inEdgesMap.get(t);return n?n.size:0},this.nodeOutDegree=function(t){var n=e.outEdgesMap.get(t);return n?n.size:0},this.nodeDegree=function(t){return e.nodeInDegree(t)+e.nodeOutDegree(t)},this.source=function(t){return t.v},this.target=function(t){return t.w};var r=v(v({},b),n);this.compound=r.compound,this.directed=r.directed,this.multigraph=r.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}var e,n,r;return e=t,(n=[{key:"setNode",value:function(t,e){var n,r=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,a=this.parentMap,s=this.childrenMap,l=this.inEdgesMap,u=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;if(r.has(t))return void 0!==e&&r.set(t,e),this;(r.set(t,e||i(t)),o())&&(null===a||void 0===a||a.set(t,this.GRAPH_NODE),null===s||void 0===s||s.set(t,new Map),(null===s||void 0===s?void 0:s.has(this.GRAPH_NODE))||null===s||void 0===s||s.set(this.GRAPH_NODE,new Map),null===s||void 0===s||null===(n=s.get(this.GRAPH_NODE))||void 0===n||n.set(t,!0));return[l,u,c,h].forEach(function(e){return e.set(t,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(t){var e=this;if(this.hasNode(t)){var n,r,i,o=function(t){e.removeEdge(t.v,t.w,t.name)},a=this.inEdgesMap,s=this.outEdgesMap,l=this.predecessorsMap,u=this.successorsMap,c=this.nodesLabelMap;if(this.isCompound())this.removeFromParentsChildList(t),null===(n=this.parentMap)||void 0===n||n.delete(t),null===(r=this.children(t))||void 0===r||r.forEach(function(t){return e.setParent(t)}),null===(i=this.childrenMap)||void 0===i||i.delete(t);var h=a.get(t),d=s.get(t);Array.from(h.values()).forEach(function(t){return o(t)}),Array.from(d.values()).forEach(function(t){return o(t)}),c.delete(t),a.delete(t),s.delete(t),l.delete(t),u.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,e,n,r){var i,o,a=h(this.isDirected(),t,e,r),s=d(this.isDirected(),a),u=a.v,c=a.w;if(this.edgesLabelsMap.has(s))return this.edgesLabelsMap.set(s,n),this;if(void 0!==r&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(c),this.edgesLabelsMap.set(s,n||this.defaultEdgeLabelFn(u,c,r)),Object.freeze(a),this.edgesMap.set(s,a);var f=this.predecessorsMap.get(c),p=this.successorsMap.get(u);return l(f,u),l(p,c),null===(i=this.inEdgesMap.get(c))||void 0===i||i.set(s,a),null===(o=this.outEdgesMap.get(u))||void 0===o||o.set(s,a),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,e,n){var r=c(this.isDirected(),t,e,n);if(this.edgesMap.get(r)){var i=h(this.isDirected(),t,e,n),o=i.v,a=i.w;this.edgesLabelsMap.delete(r),this.edgesMap.delete(r);var s=this.predecessorsMap.get(a),l=this.successorsMap.get(o);u(s,o),u(l,a),this.inEdgesMap.get(a).delete(r),this.outEdgesMap.get(o).delete(r),this.edgeCountNum-=1}return this}}])&&y(e.prototype,n),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function x(t){"@babel/helpers - typeof";return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(){return(S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=O(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===x(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}_.fromJSON=function(t){var e=new _(t.options);return void 0!==t.value&&e.setGraph(t.value),t.nodes.forEach(function(t){e.setNode(t.id,t.value),t.parent&&e.setParent(t.id,t.parent)}),t.edges.forEach(function(t){e.setEdge(t.v,t.w,t.value,t.name)}),e};var M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(o,_);var e,n,r,i=k(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).eventPool={},t}return e=o,(n=[{key:"appendEvent",value:function(t,e){this.eventPool[t]||(this.eventPool[t]=[]),this.eventPool[t].push(e)}},{key:"removeEvent",value:function(t,e){if(this.eventPool[t]){var n=this.eventPool[t].indexOf(e);n>-1&&this.eventPool[t].splice(n,1)}}},{key:"emitEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.eventPool[t]&&this.eventPool[t].forEach(function(t){t.apply(void 0,n)})}},{key:"setNode",value:function(t,e){return S(O(o.prototype),"setNode",this).call(this,t,e),this.emitEvent("nodeAdd",t,e),this}},{key:"removeNode",value:function(t){return S(O(o.prototype),"removeNode",this).call(this,t),this.emitEvent("nodeRemove",t),this}},{key:"setEdge",value:function(t,e,n,r){return S(O(o.prototype),"setEdge",this).call(this,t,e,n,r),this.emitEvent("edgeAdd",t,e,n,r),this}},{key:"removeEdge",value:function(t,e,n){return S(O(o.prototype),"removeEdge",this).call(this,t,e,n),this.emitEvent("edgeRemove",t,e,n),this}}])&&w(e.prototype,n),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var T=function(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.arr=[],this.keyIndice=new Map,this.size=function(){return e.arr.length},this.keys=function(){return e.arr.map(function(t){return t.key})},this.has=function(t){return e.keyIndice.has(t)},this.priority=function(t){var n=e.keyIndice.get(t);if(void 0!==n)return e.arr[n].priority},this.swap=function(t,n){var r=e.arr,i=e.keyIndice,o=[r[t],r[n]],a=o[0],s=o[1];r[t]=s,r[n]=a,i.set(a.key,n),i.set(s.key,t)},this.innerDecrease=function(t){for(var n,r=e.arr,i=r[t].priority,o=t;0!==o;){var a;if((null===(a=r[n=o>>1])||void 0===a?void 0:a.priority)<i)break;e.swap(o,n),o=n}},this.heapify=function(t){var n=e.arr,r=t<<1,i=r+1,o=t;r<n.length&&(o=n[r].priority<n[o].priority?r:o,i<n.length&&(o=n[i].priority<n[o].priority?i:o),o!==t&&(e.swap(t,o),e.heapify(o)))},this.min=function(){if(0===e.size())throw new Error("Queue underflow");return e.arr[0].key},this.add=function(t,n){var r=e.keyIndice,i=e.arr;if(!r.has(t)){var o=i.length;return r.set(t,o),i.push({key:t,priority:n}),e.innerDecrease(o),!0}return!1},this.removeMin=function(){e.swap(0,e.arr.length-1);var t=e.arr.pop();return e.keyIndice.delete(t.key),e.heapify(0),t.key},this.decrease=function(t,n){if(!e.has(t))throw new Error("There's no key named ".concat(t));var r=e.keyIndice.get(t);if(n>e.arr[r].priority)throw new Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[r].priority," New: ").concat(n));e.arr[r].priority=n,e.innerDecrease(r)}}),A=function(t,e){var n,r=new _,i=new Map,o=new T;function a(t){var r=t.v===n?t.w:t.v,a=o.priority(r);if(void 0!==a){var s=e(t);s<a&&(i.set(r,n),o.decrease(r,s))}}if(0===t.nodeCount())return r;t.nodes().forEach(function(t){o.add(t,Number.POSITIVE_INFINITY),r.setNode(t)}),o.decrease(t.nodes()[0],0);for(var s=!1;o.size()>0;){var l;if(n=o.removeMin(),i.has(n))r.setEdge(n,i.get(n));else{if(s)throw new Error("Input graph is not connected: "+t.graph());s=!0}null===(l=t.nodeEdges(n))||void 0===l||l.forEach(a)}return r},I=function(t){var e=new Set,n=[];return t.nodes().forEach(function(r){for(var i=[],o=[r];o.length>0;){var a,s,l=o.pop();e.has(l)||(e.add(l),i.push(l),null===(a=t.successors(l))||void 0===a||a.forEach(function(t){return o.push(t)}),null===(s=t.predecessors(l))||void 0===s||s.forEach(function(t){return o.push(t)}))}i.length&&n.push(i)}),n},D=function(t,e,n){var r=function(e){return t.isDirected()?t.successors(e):t.neighbors(e)},i=[],o=[];return(Array.isArray(e)?e:[e]).forEach(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,r,i,o,a){i.includes(n)||(i.push(n),r||a.push(n),o(n).forEach(function(n){return t(e,n,r,i,o,a)}),r&&a.push(n))}(t,e,"post"===n,o,r,i)}),i};function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var j=function(){return 1},N=function(t,e,n,r){var i,o,a=new Map,s=new T,l=function(t){var e=t.v!==i?t.v:t.w,r=a.get(e),l=n(t),u=o.distance+l;if(l<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+l);u<r.distance&&(r.distance=u,r.predecessor=i,s.decrease(e,u))};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;a.set(t,{distance:n}),s.add(t,n)});s.size()>0&&(i=s.removeMin(),!(o=a.get(i))||o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);var u={};return Array.from(a.entries()).forEach(function(t){var e=P(t,2),n=e[0],r=e[1];return u[String(n)]=r,u}),u},R=function(t,e,n,r){return N(t,e,n||j,r||function(e){return t.outEdges(e)})},B=function(t,e,n){var r={};return t.nodes().forEach(function(i){return r[String(i)]=R(t,i,e,n),r}),r},F=function(t){var e=0,n=[],r=new Map,i=[];return t.nodes().forEach(function(o){r.has(o)||function o(a){var s,l={onStack:!0,lowlink:e,index:e};if(r.set(a,l),e+=1,n.push(a),null===(s=t.successors(a))||void 0===s||s.forEach(function(t){var e;if(r.has(t)){if(null===(e=r.get(t))||void 0===e?void 0:e.onStack){var n=r.get(t);l.lowlink=Math.min(l.lowlink,n.index)}}else{o(t);var i=r.get(t);l.lowlink=Math.min(l.lowlink,i.lowlink)}}),l.lowlink===l.index){var u,c=[];do{u=n.pop(),r.get(u).onStack=!1,c.push(u)}while(a!==u);i.push(c)}}(o)}),i},z=function(t){return F(t).filter(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})};function V(t){"@babel/helpers - typeof";return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G(t){var e=U();return function(){var n,r=X(t);if(e){var i=X(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===V(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function H(t){var e="function"==typeof Map?new Map:void 0;return(H=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return W(t,arguments,X(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Y(r,t)})(t)}function W(t,e,n){return(W=U()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&Y(i,n.prototype),i}).apply(null,arguments)}function U(){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(t){return!1}}function Y(t,e){return(Y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function X(t){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Y(t,e)}(o,H(Error));var e,n,r,i=G(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,n&&$(e.prototype,n),r&&$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}();var Z=function(t){var e=new Set,n=new Set,r=[];if(t.sinks().forEach(function i(o){if(n.has(o))throw new q;var a;e.has(o)||(n.add(o),e.add(o),null===(a=t.predecessors(o))||void 0===a||a.forEach(i),n.delete(o),r.push(o))}),e.size!==t.nodeCount())throw new q;return r},K=function(t){try{Z(t)}catch(t){if(t instanceof q)return!1;throw t}return!0},J=function(t,e){return D(t,e,"post")},Q=function(t,e){return D(t,e,"pre")},tt=function(){return 1};var et=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){var o=String(t);r[o]={},r[o][o]={distance:0},i.forEach(function(e){t!==e&&(r[o][String(e)]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,a=e(n);r[o][String(i)]={distance:a,predecessor:t}})}),i.forEach(function(t){var e=String(t),n=r[e];i.forEach(function(t){var o=String(t),a=r[o];i.forEach(function(t){var r=String(t),i=a[e],o=n[r],s=a[r],l=i.distance+o.distance;l<s.distance&&(s.distance=l,s.predecessor=o.predecessor)})})}),r}(t,e||tt,n||function(e){return t.outEdges(e)})},nt=function(t,e){for(var n=t.nodes(),r=0;r<n.length;r++){var i=n[r];if(e.hasNode(i))return!0}return!1},rt=function(t,e){for(var n=t.edges(),r=0;r<n.length;r++){var i=n[r];if(e.hasEdge(i.v,i.w,i.name))return!0}return!1},it=function(t,e){return t.nodes().filter(function(t){return e.hasNode(t)})},ot=function(t,e){return t.edges().filter(function(t){return e.hasEdge(t.v,t.w,t.name)})},at=function(t,e){return t.isCompound()===e.isCompound()&&t.isDirected()===e.isDirected()&&t.isMultigraph()===e.isMultigraph()},st=function(t,e){return it(t,e).length===t.nodes().length},lt=function(t,e){return ot(t,e).length===t.edges().length},ut=function(t,e){return at(t,e)&&t.nodeCount()===e.nodeCount()&&st(t,e)&&t.edgeCount()===e.edgeCount()&<(t,e)},ct=function(t,e){return st(t,e)&<(t,e)};function ht(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ft(t){return t instanceof _}function pt(t){if(t.isMultigraph())return!1;for(var e=t.edges(),n=new Map,r=0;r<e.length;r++){var i=e[r];if(i.v===i.w)return!1;var o=ht([i.v,i.w].sort(),2),a=o[0],s=o[1],l="".concat(a,"-").concat(s);if(n.has(l))return!1;n.set(l,!0)}return!0}function gt(t){return 0===t.nodes().length}function vt(t){for(var e=t.edges(),n=0;n<e.length;n++){var r=e[n];if(r.v===r.w)return!0}return!1}var mt=function(t,e){if(!pt(t)||!pt(e))return!1;if(!st(t,e))return!1;if(rt(t,e))return!1;var n=t.nodeCount();return t.edgeCount()+e.edgeCount()===n*(n-1)/2},yt=function(t){if(!pt(t))return null;for(var e=t.nodeCount(),n=new _({compound:t.isCompound(),directed:t.isDirected(),multigraph:t.isMultigraph()}),r=t.nodes(),i=0;i<e;i++){var o=r[i];n.setNode(o,t.node(o));for(var a=i+1;a<e;a++){var s=r[a];t.hasEdge(o,s)||n.setEdge(o,s)}}return n};n.d(e,"Graph",function(){return _}),n.d(e,"GraphWithEvent",function(){return M}),n.d(e,"algorithm",function(){return r}),n.d(e,"comparision",function(){return o}),n.d(e,"essence",function(){return i}),n.d(e,"generate",function(){return s})},"21It":function(t,e,n){"use strict";var r=n("FtD3");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"2F+n":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RadialLayout=void 0;var a=n("ZE1E"),s=n("w9t0"),l=o(n("RjVl")),u=o(n("qZxm"));function c(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var h=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.focusNode=null,n.unitRadius=null,n.linkDistance=50,n.preventOverlap=!1,n.strictRadial=!0,n.maxPreventOverlapIteration=200,n.sortStrength=10,n.nodes=[],n.edges=[],n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges||[];if(e&&0!==e.length){t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var r=t.center;if(1===e.length)return e[0].x=r[0],e[0].y=r[1],void(t.onLayoutEnd&&t.onLayoutEnd());var i=t.linkDistance,o=null;if((0,a.isString)(t.focusNode)){for(var s=!1,c=0;c<e.length;c++)e[c].id===t.focusNode&&(o=e[c],t.focusNode=o,s=!0,c=e.length);s||(o=null)}else o=t.focusNode;o||(o=e[0],t.focusNode=o);var h,d,f,p=(h=e,d=o.id,f=-1,h.forEach(function(t,e){t.id===d&&(f=e)}),f);p<0&&(p=0),t.focusIndex=p;var g=(0,a.getAdjMatrix)({nodes:e,edges:n},!1),v=(0,a.floydWarshall)(g),m=t.maxToFocus(v,p);t.handleInfinity(v,p,m+1),t.distances=v;var y=v[p],b=t.width||500,_=t.height||500,x=b-r[0]>r[0]?r[0]:b-r[0],w=_-r[1]>r[1]?r[1]:_-r[1];0===x&&(x=b/2),0===w&&(w=_/2);var S=w>x?x:w,C=Math.max.apply(Math,y),k=[];y.forEach(function(e,n){t.unitRadius||(t.unitRadius=S/C),k[n]=e*t.unitRadius}),t.radii=k;var O=t.eIdealDisMatrix();t.eIdealDistances=O;var M=function(t){for(var e=t.length,n=t[0].length,r=[],i=0;i<e;i++){for(var o=[],a=0;a<n;a++)0!==t[i][a]?o.push(1/(t[i][a]*t[i][a])):o.push(0);r.push(o)}return r}(O);t.weights=M;var E=new l.default({linkDistance:i,distances:O}).layout();E.forEach(function(t){(0,a.isNaN)(t[0])&&(t[0]=Math.random()*i),(0,a.isNaN)(t[1])&&(t[1]=Math.random()*i)}),t.positions=E,E.forEach(function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]}),E.forEach(function(t){t[0]-=E[p][0],t[1]-=E[p][1]}),t.run();var T,A=t.preventOverlap,I=t.nodeSize,D=t.strictRadial;if(A){var P,L=t.nodeSpacing;P=(0,a.isNumber)(L)?function(){return L}:(0,a.isFunction)(L)?L:function(){return 0},T=I?(0,a.isArray)(I)?function(t){return(I[0]>I[1]?I[0]:I[1])+P(t)}:function(t){return I+P(t)}:function(t){return t.size?(0,a.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+P(t):(0,a.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)+P(t):t.size+P(t):10+P(t)};var j={nodes:e,nodeSizeFunc:T,adjMatrix:g,positions:E,radii:k,height:_,width:b,strictRadial:D,focusID:p,iterations:t.maxPreventOverlapIteration||200,k:E.length/4.5},N=new u.default(j);E=N.layout()}return E.forEach(function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){for(var t=this.maxIteration,e=this.positions||[],n=this.weights||[],r=this.eIdealDistances||[],i=this.radii||[],o=0;o<=t;o++){var a=o/t;this.oneIteration(a,e,i,r,n)}},e.prototype.oneIteration=function(t,e,n,r,i){var o=1-t,a=this.focusIndex;e.forEach(function(s,l){var u=c(s,[0,0]),h=0===u?0:1/u;if(l!==a){var d=0,f=0,p=0;e.forEach(function(t,e){if(l!==e){var n=c(s,t),o=0===n?0:1/n,a=r[e][l];p+=i[l][e],d+=i[l][e]*(t[0]+a*(s[0]-t[0])*o),f+=i[l][e]*(t[1]+a*(s[1]-t[1])*o)}});var g=0===n[l]?0:1/n[l];p*=o,p+=t*g*g,d*=o,d+=t*g*s[0]*h,s[0]=d/p,f*=o,f+=t*g*s[1]*h,s[1]=f/p}})},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],o=t.unitRadius||50,s=[];return n&&n.forEach(function(n,l){var u=[];n.forEach(function(n,s){if(l===s)u.push(0);else if(i[l]===i[s])if("data"===t.sortBy)u.push(n*(Math.abs(l-s)*t.sortStrength)/(i[l]/o));else if(t.sortBy){var c=e[l][t.sortBy]||0,h=e[s][t.sortBy]||0;(0,a.isString)(c)&&(c=c.charCodeAt(0)),(0,a.isString)(h)&&(h=h.charCodeAt(0)),u.push(n*(Math.abs(c-h)*t.sortStrength)/(i[l]/o))}else u.push(n*r/(i[l]/o));else{var d=(r+o)/2;u.push(n*d)}}),s.push(u)}),s},e.prototype.handleInfinity=function(t,e,n){for(var r=t.length,i=0;i<r;i++)if(t[e][i]===1/0){t[e][i]=n,t[i][e]=n;for(var o=0;o<r;o++)t[i][o]!==1/0&&t[e][o]===1/0&&(t[e][o]=n+t[i][o],t[o][e]=n+t[i][o])}for(i=0;i<r;i++)if(i!==e)for(o=0;o<r;o++)if(t[i][o]===1/0){var a=Math.abs(t[e][i]-t[e][o]);a=0===a?1:a,t[i][o]=a}},e.prototype.maxToFocus=function(t,e){for(var n=0,r=0;r<t[e].length;r++)t[e][r]!==1/0&&(n=t[e][r]>n?t[e][r]:n);return n},e.prototype.getType=function(){return"radial"},e}(s.Base);e.RadialLayout=h},"2KxR":function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},"2j9C":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("TToO"),i=n("IgWN"),o=n("lSAc"),a=function(t,e,n,r){var i=t.nodes,a=void 0===i?[]:i,l=t.edges,u=void 0===l?[]:l,c=[],h={},d={},f={};a.forEach(function(t,n){var r=t.id;c.push(r),d[r]=1/0,r===e&&(d[r]=0)});for(var p=a.length,g=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;o<e.length;o++){var a=e[o].id;!n[a]&&t[a]<=i&&(i=t[a],r=e[o])}return r}(d,a,h),i=e.id;if(h[i]=!0,d[i]===1/0)return"continue";(n?(0,o.getOutEdgesNodeId)(i,u):(0,o.getEdgesByNodeId)(i,u)).forEach(function(t){var n=t.target,o=t.source,a=n===i?o:n,s=r&&t[r]?t[r]:1;d[a]>d[e.id]+s?(d[a]=d[e.id]+s,f[a]=[e.id]):d[a]===d[e.id]+s&&f[a].push(e.id)})},v=0;v<p;v++)g();f[e]=[e];var m={};for(var y in d)d[y]!==1/0&&s(e,y,f,m);var b={};for(var y in m)b[y]=m[y][0];return{length:d,path:b,allPath:m}};function s(t,e,n,o){if(t===e)return[t];if(o[e])return o[e];for(var a=[],l=0,u=n[e];l<u.length;l++){var c=s(t,u[l],n,o);if(!c)return;for(var h=0,d=c;h<d.length;h++){var f=d[h];(0,i.isArray)(f)?a.push((0,r.__spreadArray)((0,r.__spreadArray)([],f,!0),[e],!1)):a.push([f,e])}}return o[e]=a,o[e]}e.default=a},"2kvA":function(t,e,n){"use strict";e.__esModule=!0,e.isInContainer=e.getScrollContainer=e.isScroll=e.getStyle=e.once=e.off=e.on=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.hasClass=p,e.addClass=function(t,e){if(!t)return;for(var n=t.className,r=(e||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(t.classList?t.classList.add(a):p(t,a)||(n+=" "+a))}t.classList||(t.className=n)},e.removeClass=function(t,e){if(!t||!e)return;for(var n=e.split(" "),r=" "+t.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(t.classList?t.classList.remove(a):p(t,a)&&(r=r.replace(" "+a+" "," ")))}t.classList||(t.className=c(r))},e.setStyle=function t(e,n,i){if(!e||!n)return;if("object"===(void 0===n?"undefined":r(n)))for(var o in n)n.hasOwnProperty(o)&&t(e,o,n[o]);else"opacity"===(n=h(n))&&u<9?e.style.filter=isNaN(i)?"":"alpha(opacity="+100*i+")":e.style[n]=i};var i,o=n("7+uW");var a=((i=o)&&i.__esModule?i:{default:i}).default.prototype.$isServer,s=/([\:\-\_]+(.))/g,l=/^moz([A-Z])/,u=a?0:Number(document.documentMode),c=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(t){return t.replace(s,function(t,e,n,r){return r?n.toUpperCase():n}).replace(l,"Moz$1")},d=e.on=!a&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)},f=e.off=!a&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)};e.once=function(t,e,n){d(t,e,function r(){n&&n.apply(this,arguments),f(t,e,r)})};function p(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}var g=e.getStyle=u<9?function(t,e){if(!a){if(!t||!e)return null;"float"===(e=h(e))&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(t){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(n){return t.style[e]}}}:function(t,e){if(!a){if(!t||!e)return null;"float"===(e=h(e))&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}};var v=e.isScroll=function(t,e){if(!a)return g(t,null!==e||void 0!==e?e?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto)/)};e.getScrollContainer=function(t,e){if(!a){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(v(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(a||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},"3BVV":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"Base",function(){return u}),n.d(r,"Circle",function(){return c}),n.d(r,"Ellipse",function(){return d}),n.d(r,"Image",function(){return p}),n.d(r,"Line",function(){return y}),n.d(r,"Marker",function(){return w}),n.d(r,"Path",function(){return L}),n.d(r,"Polygon",function(){return N}),n.d(r,"Polyline",function(){return R}),n.d(r,"Rect",function(){return F}),n.d(r,"Text",function(){return z});var i=n("TToO"),o=n("i6H2"),a=n("PDVq"),s=n("gosJ"),l=n("SodV"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return l.a},e.prototype.onCanvasChange=function(t){Object(s.h)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(o.getBBoxMethod)(t)(this),r=e/2,i=n.x-r,a=n.y-r,s=n.x+n.width+r,l=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:s,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(s.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!Object(a.f)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(s.a)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(a.f)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(o.AbstractShape),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,l=o.y,u=o.r,c=i/2,h=Object(a.b)(s,l,t,e);return r&&n?h<=u+c:r?h<=u:!!n&&(h>=u-c&&h<=u+c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(u);function h(t,e,n,r){return t/(n*n)+e/(r*r)}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,l=o.y,u=o.rx,c=o.ry,d=(t-s)*(t-s),f=(e-l)*(e-l);return r&&n?h(d,f,u+a,c+a)<=1:r?h(d,f,u,c)<=1:!!n&&(h(d,f,u-a,c-a)>=1&&h(d,f,u+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,l=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(u);function f(t){return t instanceof HTMLElement&&Object(a.k)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(a.k)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):f(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,s=e.sx,l=e.sy,u=e.swidth,c=e.sheight,h=e.img;(h instanceof Image||f(h))&&(Object(a.i)(s)||Object(a.i)(l)||Object(a.i)(u)||Object(a.i)(c)?t.drawImage(h,n,r,i,o):t.drawImage(h,s,l,u,c,n,r,i,o))},e}(u),g=n("6zlC");function v(t,e,n,r,i,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=l+h&&a>=u-h&&a<=c+h&&g.c.pointToLine(t,e,n,r,o,a)<=i/2}var m=n("+ymx"),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&m.b(this,t,r,i,e,n),a&&m.a(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return v(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(l=m.c(n,r,i,o,e.startArrow.d)),s&&s.d&&(u=m.c(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return g.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return g.c.pointAt(n,r,i,o,t)},e}(u),b=n("IgWN"),_=n("wHEO"),x={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(b.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,s=r.symbol||"circle",l=this._getR(r);if(Object(a.h)(s))n=(t=s)(i,o,l),n=Object(_.c)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,o,l)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s.e)(this,t,{path:e},n)},e.Symbols=x,e}(u);function S(t,e,n){var r=Object(o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}var C=1e-6;function k(t){return Math.abs(t)<C?0:t<0?-1:1}function O(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function M(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(O(a,s,[e,n]))return!0;k(a[1]-n)>0!=k(s[1]-n)>0&&k(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var E=n("IzBs"),T=n("YPq+");function A(t,e,n,r,i,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(u<r||u>i)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return Object(a.b)(c.x,c.y,s,l)<=o/2}var I=E.a.transform;var D=Object(i.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,s=e/2,l=0;l<t.length;l++){var u=t[l],c=u.currentPoint,h=u.params,d=u.prePoint,f=u.box;if(!f||Object(a.e)(f.x-s,f.y-s,f.width+e,f.height+e,n,r)){switch(u.command){case"L":case"Z":o=v(d[0],d[1],c[0],c[1],e,n,r);break;case"Q":o=g.e.pointDistance(d[0],d[1],h[1],h[2],h[3],h[4],n,r)<=e/2;break;case"C":o=g.b.pointDistance(d[0],d[1],h[1],h[2],h[3],h[4],h[5],h[6],n,r,i)<=e/2;break;case"A":var p=u.arcParams,m=p.cx,y=p.cy,b=p.rx,_=p.ry,x=p.startAngle,w=p.endAngle,S=p.xRotation,C=[n,r,1],k=b>_?b:_,O=I(null,[["t",-m,-y],["r",-S],["s",1/(b>_?1:b/_),1/(b>_?_/b:1)]]);T.transformMat3(C,C,O),o=A(0,0,k,x,w,e,C[0],C[1])}if(o)break}}return o}},o.PathUtil);function P(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=M(t[i],e,n))break}return r}var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(_.c)(t);var e=D.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(_.d)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();m.b(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();m.a(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=D.isPointInStroke(o,i,t,e,l)}if(!s&&r)if(a)s=S(this,t,e);else{var u=this.attr("path"),c=D.extractPolygons(u);s=P(c.polygons,t,e)||P(c.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(s.e)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(b.isNil)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;Object(b.each)(r,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)});var o=i[n];if(Object(b.isNil)(o)||Object(b.isNil)(n))return null;var a=o.length,s=i[n+1];return g.b.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",D.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(Object(b.each)(s,function(t,e){n=s[e+1],r=t.length,n&&(i+=g.b.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)}),this.set("totalLength",i),0!==i?(Object(b.each)(s,function(l,u){n=s[u+1],r=l.length,n&&((t=[])[0]=o/i,e=g.b.length(l[r-2],l[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))}),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(u);function j(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(v(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var s=t[0],l=t[o-1];if(v(s[0],s[1],l[0],l[1],e,n,r))return!0}return!1}var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=j(o,i,t,e,!0)),!a&&r&&(a=M(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(u),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];r&&m.b(this,t,n[1][0],n[1][1],a,s),i&&m.a(this,t,n[o-2][0],n[o-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&j(this.attr().points,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],l=n[0][1],u=n[o-1][0],c=n[o-1][1];if(r&&r.d)s+=(a=m.c(s,l,n[1][0],n[1][1],r.d)).dx,l+=a.dy;if(i&&i.d)u-=(a=m.c(n[o-2][0],n[o-2][1],u,c,i.d)).dx,c-=a.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<o-1;h++){var d=n[h];t.lineTo(d[0],d[1])}t.lineTo(u,c)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(b.isNil)(e)?(this.set("totalLength",g.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Object(b.each)(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),g.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Object(b.each)(t,function(a,s){t[s+1]&&((n=[])[0]=i/e,r=g.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))}),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u),B=n("4KIz");var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,l=o.y,u=o.width,c=o.height,h=o.radius;if(h){var d=!1;return n&&(d=function(t,e,n,r,i,o,a,s){return v(t+i,e,t+n-i,e,o,a,s)||v(t+n,e+i,t+n,e+r-i,o,a,s)||v(t+n-i,e+r,t+i,e+r,o,a,s)||v(t,e+r-i,t,e+i,o,a,s)||A(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||A(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||A(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||A(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(s,l,u,c,h,i,t,e)),!d&&r&&(d=S(this,t,e)),d}var f=i/2;return r&&n?Object(a.e)(s-f,l-f,u+f,c+f,t,e):r?Object(a.e)(s,l,u,c,t,e):n?function(t,e,n,r,i,o,s){var l=i/2;return Object(a.e)(t-l,e-l,n,i,o,s)||Object(a.e)(t+n-l,e-l,i,r,o,s)||Object(a.e)(t+l,e+r-l,n,i,o,s)||Object(a.e)(t-l,e+l,i,r,o,s)}(s,l,u,c,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=Object(B.a)(a),l=s[0],u=s[1],c=s[2],h=s[3];t.moveTo(n+l,r),t.lineTo(n+i-u,r),0!==u&&t.arc(n+i-u,r+u,u,-Math.PI/2,0),t.lineTo(n+i,r+o-c),0!==c&&t.arc(n+i-c,r+o-c,c,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(o.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(a.k)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,h=this._getSpaceingY(),d=Object(o.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(a.c)(e,function(e,i){r=u+i*(h+c)-d+c,"middle"===s&&(r+=d-c-(d-c)/2),"top"===s&&(r+=d-c),Object(a.i)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))})},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var s=n.text;Object(a.i)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(u);n.d(e,"Base",function(){return u}),n.d(e,"Circle",function(){return c}),n.d(e,"Ellipse",function(){return d}),n.d(e,"Image",function(){return p}),n.d(e,"Line",function(){return y}),n.d(e,"Marker",function(){return w}),n.d(e,"Path",function(){return L}),n.d(e,"Polygon",function(){return N}),n.d(e,"Polyline",function(){return R}),n.d(e,"Rect",function(){return F}),n.d(e,"Text",function(){return z})},"3C/1":function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("qCoq"),n("UvrK"),n("Xjd4"),n("bqnK"),t.exports=n("FeBl").Map},"3Eo+":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"3IRH":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"3MGd":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(n("1we+").Graph);e.Graph=o},"3fo+":function(t,e,n){t.exports=n("YAhB")},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"3kQQ":function(t,e,n){"use strict";var r=n("+N5+").unescapeAll;t.exports=function(t,e,n){var i,o,a=0,s=e,l={ok:!1,pos:0,lines:0,str:""};if(s>=n)return l;if(34!==(o=t.charCodeAt(s))&&39!==o&&40!==o)return l;for(s++,40===o&&(o=41);s<n;){if((i=t.charCodeAt(s))===o)return l.pos=s+1,l.lines=a,l.str=r(t.slice(e+1,s)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?a++:92===i&&s+1<n&&(s++,10===t.charCodeAt(s)&&a++),s++}return l}},"4KIz":function(t,e,n){"use strict";e.b=function(t,e,n){var u=e.getBBox();if(isNaN(u.x)||isNaN(u.y)||isNaN(u.width)||isNaN(u.height))return n;if(Object(r.k)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),u=a[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},o={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:c.maxX,y:c.minY},o={x:c.minX,y:c.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:c.maxX,y:c.maxY},o={x:c.minX,y:c.minY}):(r={x:c.minX,y:c.maxY},o={x:c.maxX,y:c.minY});var h=Math.tan(s),d=h*h,f=(o.x-r.x+h*(o.y-r.y))/(d+1)+r.x,p=h*(o.x-r.x+h*(o.y-r.y))/(d+1)+r.y,g=t.createLinearGradient(r.x,r.y,f,p);return l(u,g),g}(t,e,n);if("r"===n[0])return function(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),u=parseFloat(r[3]),c=r[4];if(0===u){var h=c.match(s);return h[h.length-1].split(":")[1]}var d=e.getBBox(),f=d.maxX-d.minX,p=d.maxY-d.minY,g=Math.sqrt(f*f+p*p)/2,v=t.createRadialGradient(d.minX+f*i,d.minY+p*a,0,d.minX+f/2,d.minY+p/2,u*g);return l(c,v),v}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=a.exec(n),s=o[1],l=o[2];function u(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}i=new Image,l.match(/^data:/i)||(i.crossOrigin="Anonymous");i.src=l,i.complete?u():(i.onload=u,i.src=i.src);return r}(t,e,n)}return n}if(n instanceof CanvasPattern)return n},e.a=function(t){var e=0,n=0,i=0,o=0;Object(r.g)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t;return[e,n,i,o]};var r=n("PDVq"),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);Object(r.c)(n,function(t){var n=t.split(":");e.addColorStop(n[0],n[1])})}},"4MdZ":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("esuD"))&&r.__esModule?r:{default:r},o=n("lSAc");var a=function(t,e,n,r){void 0===r&&(r=!0);var a=function(t){void 0===t&&(t={});var e,n=t,r=function(){},i=(e={},function(t){var n=t.next;return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||i,n.enter=t.enter||r,n.leave=t.leave||r,n}(n),s=new i.default,l=t.edges,u=void 0===l?[]:l;s.enqueue(e);for(var c="",h=function(){var t=s.dequeue();a.enter({current:t,previous:c}),(0,o.getNeighbors)(t,u,r?"target":void 0).forEach(function(e){a.allowTraversal({previous:c,current:t,next:e})&&s.enqueue(e)}),a.leave({current:t,previous:c}),c=t};!s.isEmpty();)h()};e.default=a},"4WTo":function(t,e,n){var r=n("NWt+");t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},"4aIT":function(t,e,n){"use strict";var r=n("/OLh"),i=n("wzKY").HTML_OPEN_CLOSE_TAG_RE,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];t.exports=function(t,e,n,r){var i,a,s,l,u=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(u))return!1;for(l=t.src.slice(u,c),i=0;i<o.length&&!o[i][0].test(l);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=e+1,!o[i][1].test(l))for(;a<n&&!(t.sCount[a]<t.blkIndent);a++)if(u=t.bMarks[a]+t.tShift[a],c=t.eMarks[a],l=t.src.slice(u,c),o[i][1].test(l)){0!==l.length&&a++;break}return t.line=a,(s=t.push("html_block","",0)).map=[e,a],s.content=t.getLines(e,a,t.blkIndent,!0),!0}},"4kcw":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}return t.prototype.getLength=function(){return this.length},t.prototype.contains=function(t,e){var n=this.length/2;return t<=this.xmid+n&&t>=this.xmid-n&&e<=this.ymid+n&&e>=this.ymid-n},t.prototype.NW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.NE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.SW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t.prototype.SE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t}();e.default=r},"4mcu":function(t,e){t.exports=function(){}},"4t6P":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){for(var e,n,r=[],o=function(){var o=t.pop();r.push(o),null===(e=o.in.reverse())||void 0===e||e.forEach(function(t){return(e=o,function(t){t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&i(e,t)})(t);var e}),null===(n=o.out)||void 0===n||n.forEach(function(e){return(n=o,function(e){e.in.push(n),0==--e.indegree&&t.push(e)})(e);var n})};null===t||void 0===t?void 0:t.length;)o();var a=["vs","i","barycenter","weight"];return r.filter(function(t){return!t.merged}).map(function(t){var e={};return null===a||void 0===a||a.forEach(function(n){void 0!==t[n]&&(e[n]=t[n])}),e})},i=function(t,e){var n,r=0,i=0;t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.vs=null===(n=e.vs)||void 0===n?void 0:n.concat(t.vs),t.barycenter=r/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0};e.default=function(t,e){var n,i,o,a={};null===t||void 0===t||t.forEach(function(t,e){a[t.v]={i:e,indegree:0,in:[],out:[],vs:[t.v]};var n=a[t.v];void 0!==t.barycenter&&(n.barycenter=t.barycenter,n.weight=t.weight)}),null===(n=e.edges())||void 0===n||n.forEach(function(t){var e=a[t.v],n=a[t.w];void 0!==e&&void 0!==n&&(n.indegree++,e.out.push(a[t.w]))});var s=null===(o=(i=Object.values(a)).filter)||void 0===o?void 0:o.call(i,function(t){return!t.indegree});return r(s)}},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"5PlU":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},"5QVw":function(t,e,n){t.exports={default:n("BwfY"),__esModule:!0}},"5VQ+":function(t,e,n){"use strict";var r=n("cGG2");t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},"5XWd":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ConcentricLayout=void 0;var o=n("ZE1E"),a=function(t){function e(e){var n=t.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=1.5*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t,e,n=this,r=n.nodes,i=n.edges,a=r.length;if(0!==a){n.width||"undefined"==typeof window||(n.width=window.innerWidth),n.height||"undefined"==typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(1===a)return r[0].x=s[0],r[0].y=s[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var l,u=n.nodeSize,c=n.nodeSpacing,h=[],d=0;l=(0,o.isArray)(u)?Math.max(u[0],u[1]):u,(0,o.isArray)(c)?d=Math.max(c[0],c[1]):(0,o.isNumber)(c)&&(d=c),r.forEach(function(t){h.push(t);var e=l;(0,o.isArray)(t.size)?e=Math.max(t.size[0],t.size[1]):(0,o.isNumber)(t.size)?e=t.size:(0,o.isObject)(t.size)&&(e=Math.max(t.size.width,t.size.height)),l=Math.max(l,e),(0,o.isFunction)(c)&&(d=Math.max(c(t),d))}),n.clockwise=void 0!==n.counterclockwise?!n.counterclockwise:n.clockwise;var f={},p={};if(h.forEach(function(t,e){f[t.id]=t,p[t.id]=e}),!("degree"!==n.sortBy&&(0,o.isString)(n.sortBy)&&void 0!==h[0][n.sortBy]||(n.sortBy="degree",(0,o.isNumber)(r[0].degree)))){var g=(0,o.getDegree)(r.length,p,i);h.forEach(function(t,e){t.degree=g[e].all})}h.sort(function(t,e){return e[n.sortBy]-t[n.sortBy]}),n.maxValueNode=h[0],n.maxLevelDiff=n.maxLevelDiff||n.maxValueNode[n.sortBy]/4;var v=[[]],m=v[0];h.forEach(function(t){if(m.length>0){var e=Math.abs(m[0][n.sortBy]-t[n.sortBy]);n.maxLevelDiff&&e>=n.maxLevelDiff&&(m=[],v.push(m))}m.push(t)});var y=l+(d||n.minNodeSpacing);if(!n.preventOverlap){var b=v.length>0&&v[0].length>1,_=(Math.min(n.width,n.height)/2-y)/(v.length+(b?1:0));y=Math.min(y,_)}var x=0;if(v.forEach(function(t){var e=n.sweep;void 0===e&&(e=2*Math.PI-2*Math.PI/t.length);var r=t.dTheta=e/Math.max(1,t.length-1);if(t.length>1&&n.preventOverlap){var i=Math.cos(r)-Math.cos(0),o=Math.sin(r)-Math.sin(0),a=Math.sqrt(y*y/(i*i+o*o));x=Math.max(a,x)}t.r=x,x+=y}),n.equidistant){for(var w=0,S=0,C=0;C<v.length;C++){var k=v[C].r-S;w=Math.max(w,k)}S=0,v.forEach(function(t,e){0===e&&(S=t.r),t.r=S,S+=w})}return v.forEach(function(t){var e=t.dTheta,r=t.r;t.forEach(function(t,i){var o=n.startAngle+(n.clockwise?1:-1)*e*i;t.x=s[0]+r*Math.cos(o),t.y=s[1]+r*Math.sin(o)})}),n.onLayoutEnd&&n.onLayoutEnd(),{nodes:r,edges:i}}null===(t=n.onLayoutEnd)||void 0===t||t.call(n)},e.prototype.getType=function(){return"concentric"},e}(n("w9t0").Base);e.ConcentricLayout=a},"5tg8":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceAtlas2Layout=void 0;var a=n("w9t0"),s=n("ZE1E"),l=o(n("P2Of")),u=o(n("4kcw")),c=o(n("JUN/")),h=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.kr=5,n.kg=1,n.mode="normal",n.preventOverlap=!1,n.dissuadeHubs=!1,n.barnesHut=void 0,n.maxIteration=0,n.ks=.1,n.ksmax=10,n.tao=.1,n.onLayoutEnd=function(){},n.prune=void 0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this.nodes,e=this.onLayoutEnd,n=this.prune,r=this.maxIteration;this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight);for(var i=[],o=t.length,a=0;a<o;a+=1){var l=t[a],u=10,c=10;(0,s.isNumber)(l.size)&&(u=l.size,c=l.size),(0,s.isArray)(l.size)?(isNaN(l.size[0])||(u=l.size[0]),isNaN(l.size[1])||(c=l.size[1])):(0,s.isObject)(l.size)&&(u=l.size.width,c=l.size.height),this.getWidth&&!isNaN(this.getWidth(l))&&(c=this.getWidth(l)),this.getHeight&&!isNaN(this.getHeight(l))&&(u=this.getHeight(l));var h=Math.max(u,c);i.push(h)}void 0===this.barnesHut&&o>250&&(this.barnesHut=!0),void 0===this.prune&&o>100&&(this.prune=!0),0!==this.maxIteration||this.prune?0===this.maxIteration&&n&&(r=100,o<=200&&o>100?r=500:o>200&&(r=950),this.maxIteration=r):(r=250,o<=200&&o>100?r=1e3:o>200&&(r=1200),this.maxIteration=r),this.kr||(this.kr=50,o>100&&o<=500?this.kr=20:o>500&&(this.kr=1)),this.kg||(this.kg=20,o>100&&o<=500?this.kg=10:o>500&&(this.kg=1)),this.nodes=this.updateNodesByForces(i),e()},e.prototype.updateNodesByForces=function(t){for(var e=this.edges,n=this.maxIteration,r=this.nodes,i=e.filter(function(t){return(0,s.getEdgeTerminal)(t,"source")!==(0,s.getEdgeTerminal)(t,"target")}),o=r.length,a=i.length,l=[],u={},c={},h=[],d=0;d<o;d+=1)u[r[d].id]=d,l[d]=0,(void 0===r[d].x||isNaN(r[d].x))&&(r[d].x=1e3*Math.random()),(void 0===r[d].y||isNaN(r[d].y))&&(r[d].y=1e3*Math.random()),h.push({x:r[d].x,y:r[d].y});for(d=0;d<a;d+=1){for(var f=void 0,p=void 0,g=0,v=0,m=0;m<o;m+=1){var y=(0,s.getEdgeTerminal)(i[d],"source"),b=(0,s.getEdgeTerminal)(i[d],"target");r[m].id===y?(f=r[m],g=m):r[m].id===b&&(p=r[m],v=m),c[d]={sourceIdx:g,targetIdx:v}}f&&(l[u[f.id]]+=1),p&&(l[u[p.id]]+=1)}var _=n;if(r=this.iterate(_,u,c,a,l,t),this.prune){for(m=0;m<a;m+=1)l[c[m].sourceIdx]<=1?(r[c[m].sourceIdx].x=r[c[m].targetIdx].x,r[c[m].sourceIdx].y=r[c[m].targetIdx].y):l[c[m].targetIdx]<=1&&(r[c[m].targetIdx].x=r[c[m].sourceIdx].x,r[c[m].targetIdx].y=r[c[m].sourceIdx].y);this.prune=!1,this.barnesHut=!1,_=100,r=this.iterate(_,u,c,a,l,t)}return r},e.prototype.iterate=function(t,e,n,r,i,o){for(var a=this.nodes,s=this.kr,u=this.preventOverlap,c=this.barnesHut,h=a.length,d=0,f=t,p=[],g=[],v=[],m=0;m<h;m+=1)if(p[2*m]=0,p[2*m+1]=0,c){var y={id:m,rx:a[m].x,ry:a[m].y,mass:1,g:s,degree:i[m]};v[m]=new l.default(y)}for(;f>0;){for(m=0;m<h;m+=1)g[2*m]=p[2*m],g[2*m+1]=p[2*m+1],p[2*m]=0,p[2*m+1]=0;p=this.getAttrForces(f,50,r,e,n,i,o,p),p=c&&(u&&f>50||!u)?this.getOptRepGraForces(p,v,i):this.getRepGraForces(f,50,p,100,o,i);var b=this.updatePos(p,g,d,i);a=b.nodes,d=b.sg,f--,this.tick&&this.tick()}return a},e.prototype.getAttrForces=function(t,e,n,r,i,o,a,s){for(var l=this.nodes,u=this.preventOverlap,c=this.dissuadeHubs,h=this.mode,d=this.prune,f=0;f<n;f+=1){var p=l[i[f].sourceIdx],g=i[f].sourceIdx,v=l[i[f].targetIdx],m=i[f].targetIdx;if(!d||!(o[g]<=1||o[m]<=1)){var y=[v.x-p.x,v.y-p.y],b=Math.hypot(y[0],y[1]);b=b<1e-4?1e-4:b,y[0]=y[0]/b,y[1]=y[1]/b,u&&t<e&&(b=b-a[g]-a[m]);var _=b,x=_;"linlog"===h&&(x=_=Math.log(1+b)),c&&(_=b/o[g],x=b/o[m]),u&&t<e&&b<=0?(_=0,x=0):u&&t<e&&b>0&&(_=b,x=b),s[2*r[p.id]]+=_*y[0],s[2*r[v.id]]-=x*y[0],s[2*r[p.id]+1]+=_*y[1],s[2*r[v.id]+1]-=x*y[1]}}return s},e.prototype.getRepGraForces=function(t,e,n,r,i,o){for(var a=this.nodes,s=this.preventOverlap,l=this.kr,u=this.kg,c=this.center,h=this.prune,d=a.length,f=0;f<d;f+=1){for(var p=f+1;p<d;p+=1)if(!h||!(o[f]<=1||o[p]<=1)){var g=[a[p].x-a[f].x,a[p].y-a[f].y],v=Math.hypot(g[0],g[1]);v=v<1e-4?1e-4:v,g[0]=g[0]/v,g[1]=g[1]/v,s&&t<e&&(v=v-i[f]-i[p]);var m=l*(o[f]+1)*(o[p]+1)/v;s&&t<e&&v<0?m=r*(o[f]+1)*(o[p]+1):s&&t<e&&0===v?m=0:s&&t<e&&v>0&&(m=l*(o[f]+1)*(o[p]+1)/v),n[2*f]-=m*g[0],n[2*p]+=m*g[0],n[2*f+1]-=m*g[1],n[2*p+1]+=m*g[1]}var y=[a[f].x-c[0],a[f].y-c[1]],b=Math.hypot(y[0],y[1]);y[0]=y[0]/b,y[1]=y[1]/b;var _=u*(o[f]+1);n[2*f]-=_*y[0],n[2*f+1]-=_*y[1]}return n},e.prototype.getOptRepGraForces=function(t,e,n){for(var r=this.nodes,i=this.kg,o=this.center,a=this.prune,s=r.length,l=9e10,h=-9e10,d=9e10,f=-9e10,p=0;p<s;p+=1)a&&n[p]<=1||(e[p].setPos(r[p].x,r[p].y),r[p].x>=h&&(h=r[p].x),r[p].x<=l&&(l=r[p].x),r[p].y>=f&&(f=r[p].y),r[p].y<=d&&(d=r[p].y));var g={xmid:(h+l)/2,ymid:(f+d)/2,length:Math.max(h-l,f-d),massCenter:o,mass:s},v=new u.default(g),m=new c.default(v);for(p=0;p<s;p+=1)a&&n[p]<=1||e[p].in(v)&&m.insert(e[p]);for(p=0;p<s;p+=1)if(!(a&&n[p]<=1)){e[p].resetForce(),m.updateForce(e[p]),t[2*p]-=e[p].fx,t[2*p+1]-=e[p].fy;var y=[r[p].x-o[0],r[p].y-o[1]],b=Math.hypot(y[0],y[1]);b=b<1e-4?1e-4:b,y[0]=y[0]/b,y[1]=y[1]/b;var _=i*(n[p]+1);t[2*p]-=_*y[0],t[2*p+1]-=_*y[1]}return t},e.prototype.updatePos=function(t,e,n,r){for(var i=this.nodes,o=this.ks,a=this.tao,l=this.prune,u=this.ksmax,c=i.length,h=[],d=[],f=0,p=0,g=0;g<c;g+=1)if(!(l&&r[g]<=1)){var v=[t[2*g]-e[2*g],t[2*g+1]-e[2*g+1]],m=Math.hypot(v[0],v[1]),y=[t[2*g]+e[2*g],t[2*g+1]+e[2*g+1]],b=Math.hypot(y[0],y[1]);h[g]=m,d[g]=b/2,f+=(r[g]+1)*h[g],p+=(r[g]+1)*d[g]}var _=n;n=a*p/f,0!==_&&(n=n>1.5*_?1.5*_:n);for(g=0;g<c;g+=1)if(!(l&&r[g]<=1||(0,s.isNumber)(i[g].fx)&&(0,s.isNumber)(i[g].fy))){var x=o*n/(1+n*Math.sqrt(h[g])),w=Math.hypot(t[2*g],t[2*g+1]),S=u/(w=w<1e-4?1e-4:w),C=(x=x>S?S:x)*t[2*g],k=x*t[2*g+1];i[g].x+=C,i[g].y+=k}return{nodes:i,sg:n}},e}(a.Base);e.ForceAtlas2Layout=h},"5ttK":function(t,e,n){var r=n("Oy1H").default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},"5zde":function(t,e,n){n("zQR9"),n("qyJz"),t.exports=n("FeBl").Array.from},"6D6L":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDSLayout=void 0;var o=n("fnHN"),a=n("ZE1E"),s=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.linkDistance=50,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},e.prototype.execute=function(){var t=this.nodes,e=this.edges,n=void 0===e?[]:e,r=this.center;if(t&&0!==t.length){if(1===t.length)return t[0].x=r[0],t[0].y=r[1],void(this.onLayoutEnd&&this.onLayoutEnd());var i=this.linkDistance,o=(0,a.getAdjMatrix)({nodes:t,edges:n},!1),s=(0,a.floydWarshall)(o);this.handleInfinity(s);var l=(0,a.scaleMatrix)(s,i);this.scaledDistances=l;var u=this.runMDS();return this.positions=u,u.forEach(function(e,n){t[n].x=e[0]+r[0],t[n].y=e[1]+r[1]}),this.onLayoutEnd&&this.onLayoutEnd(),{nodes:t,edges:n}}this.onLayoutEnd&&this.onLayoutEnd()},e.prototype.runMDS=function(){var t=this.scaledDistances,e=o.Matrix.mul(o.Matrix.pow(t,2),-.5),n=e.mean("row"),r=e.mean("column"),i=e.mean();e.add(i).subRowVector(n).subColumnVector(r);var a=new o.SingularValueDecomposition(e),s=o.Matrix.sqrt(a.diagonalMatrix).diagonal();return a.leftSingularVectors.toJSON().map(function(t){return o.Matrix.mul([t],[s]).toJSON()[0].splice(0,2)})},e.prototype.handleInfinity=function(t){var e=-999999;t.forEach(function(t){t.forEach(function(t){t!==1/0&&e<t&&(e=t)})}),t.forEach(function(n,r){n.forEach(function(n,i){n===1/0&&(t[r][i]=e)})})},e.prototype.getType=function(){return"mds"},e}(n("w9t0").Base);e.MDSLayout=s},"6KJJ":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){var r,i={};null===n||void 0===n||n.forEach(function(n){for(var o,a,s=t.parent(n);s;){if((o=t.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=o}})}},"6Kz3":function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDI",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"breadthFirstSearch",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"depthFirstSearch",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"detectCycle",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"dijkstra",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"findAllPath",{enumerable:!0,get:function(){return h.findAllPath}}),Object.defineProperty(e,"findShortestPath",{enumerable:!0,get:function(){return h.findShortestPath}}),Object.defineProperty(e,"floydWarshall",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"getAdjMatrix",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"getDegree",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"getInDegree",{enumerable:!0,get:function(){return s.getInDegree}}),Object.defineProperty(e,"getNeighbors",{enumerable:!0,get:function(){return y.getNeighbors}}),Object.defineProperty(e,"getOutDegree",{enumerable:!0,get:function(){return s.getOutDegree}}),Object.defineProperty(e,"labelPropagation",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"louvain",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"minimumSpanningTree",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"pageRank",{enumerable:!0,get:function(){return v.default}});var i=_(n("Jsh2")),o=_(n("4MdZ")),a=_(n("l8+k")),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=b(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n("7N6o")),l=_(n("UO3t")),u=_(n("0buI")),c=_(n("2j9C")),h=n("uaD/"),d=_(n("+cvj")),f=_(n("lljM")),p=_(n("Dgox")),g=_(n("ToeE")),v=_(n("E9gP")),m=_(n("AZiY")),y=n("lSAc");function b(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(b=function(t){return t?n:e})(t)}function _(t){return t&&t.__esModule?t:{default:t}}},"6OHT":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("+ZTV"),i=function(t,e,n){for(var i=(0,r.zipObject)(n,n.map(function(t,e){return e})),o=e.map(function(e){var n,r=null===(n=t.outEdges(e))||void 0===n?void 0:n.map(function(e){return{pos:i[e.w]||0,weight:t.edge(e).weight}});return null===r||void 0===r?void 0:r.sort(function(t,e){return t.pos-e.pos})}).flat().filter(function(t){return void 0!==t}),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=Array(s).fill(0,0,s),u=0;return null===o||void 0===o||o.forEach(function(t){if(t){var e=t.pos+a;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*n}}),u};e.default=function(t,e){for(var n=0,r=1;r<(null===e||void 0===e?void 0:e.length);r+=1)n+=i(t,e[r-1],e[r]);return n}},"6Twh":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(){if(o.default.prototype.$isServer)return 0;if(void 0!==a)return a;var t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),a=e-r};var r,i=n("7+uW"),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0},"6hwo":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayToTextureData=e.attributesToTextureData=e.buildTextureDataWithTwoEdgeAttr=e.buildTextureData=e.proccessToFunc=void 0;var r=n("ZE1E"),i=n("PRxO");e.proccessToFunc=function(t,e){return t?(0,r.isNumber)(t)?function(){return t}:t:function(){return e||1}};e.buildTextureData=function(t,e){var n=[],r=[],o={},a=0;for(a=0;a<t.length;a++){var s=t[a];o[s.id]=a,n.push(s.x),n.push(s.y),n.push(0),n.push(0),r.push([])}for(a=0;a<e.length;a++){var l=e[a],u=(0,i.getEdgeTerminal)(l,"source"),c=(0,i.getEdgeTerminal)(l,"target");isNaN(o[u])||isNaN(o[c])||(r[o[u]].push(o[c]),r[o[c]].push(o[u]))}var h=0;for(a=0;a<t.length;a++){var d=n.length,f=r[a],p=f.length;n[4*a+2]=d,n[4*a+3]=p,h=Math.max(h,p);for(var g=0;g<p;++g){var v=f[g];n.push(+v)}}for(;n.length%4!=0;)n.push(0);return{maxEdgePerVetex:h,array:new Float32Array(n)}};e.buildTextureDataWithTwoEdgeAttr=function(t,e,n,r){var o=[],a=[],s={},l=0;for(l=0;l<t.length;l++){var u=t[l];s[u.id]=l,o.push(u.x),o.push(u.y),o.push(0),o.push(0),a.push([])}for(l=0;l<e.length;l++){var c=e[l],h=(0,i.getEdgeTerminal)(c,"source"),d=(0,i.getEdgeTerminal)(c,"target");a[s[h]].push(s[d]),a[s[h]].push(n(c)),a[s[h]].push(r(c)),a[s[h]].push(0),a[s[d]].push(s[h]),a[s[d]].push(n(c)),a[s[d]].push(r(c)),a[s[d]].push(0)}var f=0;for(l=0;l<t.length;l++){var p=o.length,g=a[l],v=g.length;o[4*l+2]=p+1048576*v/4,o[4*l+3]=0,f=Math.max(f,v/4);for(var m=0;m<v;++m){var y=g[m];o.push(+y)}}for(;o.length%4!=0;)o.push(0);return{maxEdgePerVetex:f,array:new Float32Array(o)}};e.attributesToTextureData=function(t,e){var n=[],r=t.length,i={};return e.forEach(function(e){t.forEach(function(t,o){if(void 0===i[e[t]]&&(i[e[t]]=Object.keys(i).length),n.push(i[e[t]]),o===r-1)for(;n.length%4!=0;)n.push(0)})}),{array:new Float32Array(n),count:Object.keys(i).length}};e.arrayToTextureData=function(t){for(var e=[],n=t.length,r=t[0].length,i=function(r){t.forEach(function(t,i){if(e.push(t[r]),i===n-1)for(;e.length%4!=0;)e.push(0)})},o=0;o<r;o++)i(o);return new Float32Array(e)}},"6klO":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.oneHot=e.getDistance=e.getAllKeyValueMap=e.default=void 0;var r,i=n("IgWN"),o=n("IJ9V"),a=(r=n("ncSy"))&&r.__esModule?r:{default:r};var s=function(t,e,n){var r=[];(null===e||void 0===e?void 0:e.length)?r=e:(t.forEach(function(t){r=r.concat(Object.keys(t))}),r=(0,i.uniq)(r));var o={};return r.forEach(function(e){var r=[];t.forEach(function(t){void 0!==t[e]&&""!==t[e]&&r.push(t[e])}),r.length&&!(null===n||void 0===n?void 0:n.includes(e))&&(o[e]=(0,i.uniq)(r))}),o};e.getAllKeyValueMap=s;var l=function(t,e,n){var r=s(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r).every(function(t){return t.every(function(t){return"number"==typeof t})});return t.forEach(function(t,e){var n=[];Object.keys(r).forEach(function(e){var i=t[e],a=r[e],s=a.findIndex(function(t){return i===t}),l=[];if(o)l.push(i);else for(var u=0;u<a.length;u++)u===s?l.push(1):l.push(0);n=n.concat(l)}),i[e]=n}),i};e.oneHot=l;var u=function(t,e,n,r){void 0===n&&(n=o.DistanceType.EuclideanDistance);var i=0;switch(n){case o.DistanceType.EuclideanDistance:i=new a.default(t).euclideanDistance(new a.default(e))}return i};e.getDistance=u;var c={getAllKeyValueMap:s,oneHot:l,getDistance:u};e.default=c},"6nDL":function(t,e,n){"use strict";var r=n("+N5+").arrayReplaceAt;function i(t){return/^<\/a\s*>/i.test(t)}t.exports=function(t){var e,n,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x=t.tokens;if(t.md.options.linkify)for(n=0,o=x.length;n<o;n++)if("inline"===x[n].type&&t.md.linkify.pretest(x[n].content))for(g=0,e=(a=x[n].children).length-1;e>=0;e--)if("link_close"!==(l=a[e]).type){if("html_inline"===l.type&&(_=l.content,/^<a[>\s]/i.test(_)&&g>0&&g--,i(l.content)&&g++),!(g>0)&&"text"===l.type&&t.md.linkify.test(l.content)){for(h=l.content,b=t.md.linkify.match(h),u=[],p=l.level,f=0,b.length>0&&0===b[0].index&&e>0&&"text_special"===a[e-1].type&&(b=b.slice(1)),c=0;c<b.length;c++)v=b[c].url,m=t.md.normalizeLink(v),t.md.validateLink(m)&&(y=b[c].text,y=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(y)?t.md.normalizeLinkText(y):t.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(d=b[c].index)>f&&((s=new t.Token("text","",0)).content=h.slice(f,d),s.level=p,u.push(s)),(s=new t.Token("link_open","a",1)).attrs=[["href",m]],s.level=p++,s.markup="linkify",s.info="auto",u.push(s),(s=new t.Token("text","",0)).content=y,s.level=p,u.push(s),(s=new t.Token("link_close","a",-1)).level=--p,s.markup="linkify",s.info="auto",u.push(s),f=b[c].lastIndex);f<h.length&&((s=new t.Token("text","",0)).content=h.slice(f),s.level=p,u.push(s)),x[n].children=a=r(a,e,u)}}else for(e--;a[e].level!==l.level&&"link_open"!==a[e].type;)e--}},"6zlC":function(t,e,n){"use strict";var r={};n.d(r,"distance",function(){return o}),n.d(r,"isNumberEqual",function(){return a}),n.d(r,"getBBoxByArray",function(){return s}),n.d(r,"getBBoxRange",function(){return l}),n.d(r,"piMod",function(){return u});var i=n("IgWN");function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=Object(i.min)(t),r=Object(i.min)(e);return{x:n,y:r,width:Object(i.max)(t)-n,height:Object(i.max)(e)-r}}function l(t,e,n,r){return{minX:Object(i.min)([t,n]),maxX:Object(i.max)([t,n]),minY:Object(i.min)([e,r]),maxY:Object(i.max)([e,r])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}var c=n("SEFl"),h={box:function(t,e,n,r){return s([t,n],[e,r])},length:function(t,e,n,r){return o(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,a){var s=(n-t)*(i-t)+(r-e)*(a-e);return s<0?o(t,e,i,a):s>(n-t)*(n-t)+(r-e)*(r-e)?o(n,r,i,a):this.pointToLine(t,e,n,r,i,a)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(c.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];c.normalize(s,s);var l=[i-t,o-e];return Math.abs(c.dot(l,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}},d=1e-4;function f(t,e,n,r,i,a){var s,l=1/0,u=[n,r],c=20;a&&a>200&&(c=a/10);for(var h=1/c,f=h/10,p=0;p<=c;p++){var g=p*h,v=[i.apply(null,t.concat([g])),i.apply(null,e.concat([g]))];(_=o(u[0],u[1],v[0],v[1]))<l&&(s=g,l=_)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var m=t.length;return{x:t[m-1],y:e[m-1]}}l=1/0;for(p=0;p<32&&!(f<d);p++){var y=s-f,b=s+f,_=(v=[i.apply(null,t.concat([y])),i.apply(null,e.concat([y]))],o(u[0],u[1],v[0],v[1]));if(y>=0&&_<l)s=y,l=_;else{var x=[i.apply(null,t.concat([b])),i.apply(null,e.concat([b]))],w=o(u[0],u[1],x[0],x[1]);b<=1&&w<l?(s=b,l=w):f*=.5}}return{x:i.apply(null,t.concat([s])),y:i.apply(null,e.concat([s]))}}function p(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function g(t,e,n){var r=t+n-2*e;if(a(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function m(t,e,n,r,i,o,a){var s=p(t,n,i,a),l=p(e,r,o,a),u=h.pointAt(t,e,n,r,a),c=h.pointAt(n,r,i,o,a);return[[t,e,u.x,u.y,s,l],[s,l,c.x,c.y,i,o]]}var y={box:function(t,e,n,r,i,o){var a=g(t,n,i)[0],l=g(e,r,o)[0],u=[t,i],c=[e,o];return void 0!==a&&u.push(p(t,n,i,a)),void 0!==l&&c.push(p(e,r,o,l)),s(u,c)},length:function(t,e,n,r,i,a){return function t(e,n,r,i,a,s,l){if(0===l)return(o(e,n,r,i)+o(r,i,a,s)+o(e,n,a,s))/2;var u=m(e,n,r,i,a,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),t.apply(null,c)+t.apply(null,h)}(t,e,n,r,i,a,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return f([t,n,i],[e,r,o],a,s,p)},pointDistance:function(t,e,n,r,i,a,s,l){var u=this.nearestPoint(t,e,n,r,i,a,s,l);return o(u.x,u.y,s,l)},interpolationAt:p,pointAt:function(t,e,n,r,i,o,a){return{x:p(t,n,i,a),y:p(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return m(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=v(t,n,i,a),l=v(e,r,o,a);return u(Math.atan2(l,s))}};function b(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function _(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function x(t,e,n,r){var i,o,s,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,h=[];if(a(l,0))a(u,0)||(i=-c/u)>=0&&i<=1&&h.push(i);else{var d=u*u-4*l*c;a(d,0)?h.push(-u/(2*l)):d>0&&(o=(-u-(s=Math.sqrt(d)))/(2*l),(i=(-u+s)/(2*l))>=0&&i<=1&&h.push(i),o>=0&&o<=1&&h.push(o))}return h}function w(t,e,n,r,i,o,a,s,l){var u=b(t,n,i,a,l),c=b(e,r,o,s,l),d=h.pointAt(t,e,n,r,l),f=h.pointAt(n,r,i,o,l),p=h.pointAt(i,o,a,s,l),g=h.pointAt(d.x,d.y,f.x,f.y,l),v=h.pointAt(f.x,f.y,p.x,p.y,l);return[[t,e,d.x,d.y,g.x,g.y,u,c],[u,c,v.x,v.y,p.x,p.y,a,s]]}function S(t,e,n,r,i,a,s,l,u){if(0===u)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++)n+=o(t[i],e[i],t[(i+1)%r],e[(i+1)%r]);return n/2}([t,n,i,s],[e,r,a,l]);var c=w(t,e,n,r,i,a,s,l,.5),h=c[0],d=c[1];return h.push(u-1),d.push(u-1),S.apply(null,h)+S.apply(null,d)}var C={extrema:x,box:function(t,e,n,r,i,o,a,l){for(var u=[t,a],c=[e,l],h=x(t,n,i,a),d=x(e,r,o,l),f=0;f<h.length;f++)u.push(b(t,n,i,a,h[f]));for(f=0;f<d.length;f++)c.push(b(e,r,o,l,d[f]));return s(u,c)},length:function(t,e,n,r,i,o,a,s){return S(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,l,u,c){return f([t,n,i,a],[e,r,o,s],l,u,b,c)},pointDistance:function(t,e,n,r,i,a,s,l,u,c,h){var d=this.nearestPoint(t,e,n,r,i,a,s,l,u,c,h);return o(d.x,d.y,u,c)},interpolationAt:b,pointAt:function(t,e,n,r,i,o,a,s,l){return{x:b(t,n,i,a,l),y:b(e,r,o,s,l)}},divide:function(t,e,n,r,i,o,a,s,l){return w(t,e,n,r,i,o,a,s,l)},tangentAngle:function(t,e,n,r,i,o,a,s,l){var c=_(t,n,i,a,l),h=_(e,r,o,s,l);return u(Math.atan2(h,c))}};function k(t,e){var n=Math.abs(t);return e>0?n:-1*n}var O=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var l,u,c=i-t,h=o-e,d=Math.abs(c),f=Math.abs(h),p=a*a,g=s*s,v=Math.PI/4,m=0;m<4;m++){l=a*Math.cos(v),u=s*Math.sin(v);var y=(p-g)*Math.pow(Math.cos(v),3)/a,b=(g-p)*Math.pow(Math.sin(v),3)/s,_=l-y,x=u-b,w=d-y,S=f-b,C=Math.hypot(x,_),O=Math.hypot(S,w);v+=C*Math.asin((_*S-x*w)/(C*O))/Math.sqrt(p+g-l*l-u*u),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+k(l,c),y:e+k(u,h)}};function M(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function E(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function T(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function A(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var I={box:function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),l=1/0,u=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;o<a?o<d&&d<a&&c.push(d):a<d&&d<o&&c.push(d)}for(h=0;h<c.length;h++){var f=M(t,0,n,r,i,c[h]);f<l&&(l=f),f>u&&(u=f)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),g=1/0,v=-1/0,m=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=p+h;o<a?o<y&&y<a&&m.push(y):a<y&&y<o&&m.push(y)}for(h=0;h<m.length;h++){var b=E(0,e,n,r,i,m[h]);b<g&&(g=b),b>v&&(v=b)}return{x:l,y:g,width:u-l,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,l){var u=A(s-t,l-e,-i),c=u[0],h=u[1],d=O(0,0,n,r,c,h),f=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,d.x,d.y);f<o?d=T(n,r,o):f>a&&(d=T(n,r,a));var p=A(d.x,d.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,a,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return o(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,o,a,s){var l=(a-o)*s+o;return{x:M(t,0,n,r,i,l),y:E(0,e,n,r,i,l)}},tangentAngle:function(t,e,n,r,i,o,a,s){var l=(a-o)*s+o,c=function(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,i,0,0,l),h=function(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,i,0,0,l);return u(Math.atan2(h,c))}};function D(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],a=t[r+1],s=o(i[0],i[1],a[0],a[1]),l={from:i,to:a,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}function P(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=o(r[0],r[1],i[0],i[1])}return e}function L(t,e){if(e>1||e<0||t.length<2)return null;var n=D(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,d=l.length/i;if(e>=o&&e<=o+d){var f=(e-o)/d;a=h.pointAt(u[0],u[1],c[0],c[1],f);break}o+=d}return a}function j(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=D(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,h=l.length/i;if(e>=o&&e<=o+h){a=Math.atan2(c[1]-u[1],c[0]-u[0]);break}o+=h}return a}function N(t,e,n){for(var r=1/0,i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=h.pointDistance(o[0],o[1],a[0],a[1],e,n);s<r&&(r=s)}return r}var R={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return s(e,n)},length:function(t){return P(t)},pointAt:function(t,e){return L(t,e)},pointDistance:function(t,e,n){return N(t,e,n)},tangentAngle:function(t,e){return j(t,e)}};function B(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}var F={box:function(t){return R.box(t)},length:function(t){return P(B(t))},pointAt:function(t,e){return L(B(t),e)},pointDistance:function(t,e,n){return N(B(t),e,n)},tangentAngle:function(t,e){return j(B(t),e)}};n.d(e,"e",function(){return y}),n.d(e,"b",function(){return C}),n.d(e,"a",function(){return I}),n.d(e,"c",function(){return h}),n.d(e,!1,function(){return F}),n.d(e,"d",function(){return R}),n.d(e,"f",function(){return r})},"7+uW":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){
- /*!
- * Vue.js v2.6.12
- * (c) 2014-2020 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function c(t){return"[object RegExp]"===l.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var v=g("slot,component",!0),m=g("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,S=x(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),C=x(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),k=/\B([A-Z])/g,O=x(function(t){return t.replace(k,"-$1").toLowerCase()});var M=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function E(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function A(t){for(var e={},n=0;n<t.length;n++)t[n]&&T(e,t[n]);return e}function I(t,e,n){}var D=function(t,e,n){return!1},P=function(t){return t};function L(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every(function(t,n){return L(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),l=Object.keys(e);return a.length===l.length&&a.every(function(n){return L(t[n],e[n])})}catch(t){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(L(t[n],e))return n;return-1}function N(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var R="data-server-rendered",B=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],z={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:I,parsePlatformTagName:P,mustUseProp:D,async:!0,_lifecycleHooks:F},V=/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 $(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function G(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H=new RegExp("[^"+V.source+".$_\\d]");var W,U="__proto__"in{},Y="undefined"!=typeof window,X="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,q=X&&WXEnvironment.platform.toLowerCase(),Z=Y&&window.navigator.userAgent.toLowerCase(),K=Z&&/msie|trident/.test(Z),J=Z&&Z.indexOf("msie 9.0")>0,Q=Z&&Z.indexOf("edge/")>0,tt=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===q),et=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),nt={}.watch,rt=!1;if(Y)try{var it={};Object.defineProperty(it,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,it)}catch(t){}var ot=function(){return void 0===W&&(W=!Y&&!X&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),W},at=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var lt,ut="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);lt="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=I,ht=0,dt=function(){this.id=ht++,this.subs=[]};dt.prototype.addSub=function(t){this.subs.push(t)},dt.prototype.removeSub=function(t){y(this.subs,t)},dt.prototype.depend=function(){dt.target&&dt.target.addDep(this)},dt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},dt.target=null;var ft=[];function pt(t){ft.push(t),dt.target=t}function gt(){ft.pop(),dt.target=ft[ft.length-1]}var vt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,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},mt={child:{configurable:!0}};mt.child.get=function(){return this.componentInstance},Object.defineProperties(vt.prototype,mt);var yt=function(t){void 0===t&&(t="");var e=new vt;return e.text=t,e.isComment=!0,e};function bt(t){return new vt(void 0,void 0,void 0,String(t))}function _t(t){var e=new vt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var xt=Array.prototype,wt=Object.create(xt);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=xt[t];G(wt,t,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var St=Object.getOwnPropertyNames(wt),Ct=!0;function kt(t){Ct=t}var Ot=function(t){var e;this.value=t,this.dep=new dt,this.vmCount=0,G(t,"__ob__",this),Array.isArray(t)?(U?(e=wt,t.__proto__=e):function(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];G(t,o,e[o])}}(t,wt,St),this.observeArray(t)):this.walk(t)};function Mt(t,e){var n;if(s(t)&&!(t instanceof vt))return _(t,"__ob__")&&t.__ob__ instanceof Ot?n=t.__ob__:Ct&&!ot()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Ot(t)),e&&n&&n.vmCount++,n}function Et(t,e,n,r,i){var o=new dt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var u=!i&&Mt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return dt.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,r=0,i=e.length;r<i;r++)(n=e[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!=e&&r!=r||s&&!l||(l?l.call(t,e):n=e,u=!i&&Mt(e),o.notify())}})}}function Tt(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Et(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function At(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||_(t,e)&&(delete t[e],n&&n.dep.notify())}}Ot.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Et(t,e[n])},Ot.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Mt(t[e])};var It=z.optionMergeStrategies;function Dt(t,e){if(!e)return t;for(var n,r,i,o=ut?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=t[n],i=e[n],_(t,n)?r!==i&&u(r)&&u(i)&&Dt(r,i):Tt(t,n,i));return t}function Pt(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,i="function"==typeof t?t.call(n,n):t;return r?Dt(r,i):i}:e?t?function(){return Dt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Lt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function jt(t,e,n,r){var i=Object.create(t||null);return e?T(i,e):i}It.data=function(t,e,n){return n?Pt(t,e,n):e&&"function"!=typeof e?t:Pt(t,e)},F.forEach(function(t){It[t]=Lt}),B.forEach(function(t){It[t+"s"]=jt}),It.watch=function(t,e,n,r){if(t===nt&&(t=void 0),e===nt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in T(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},It.props=It.methods=It.inject=It.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return T(i,t),e&&T(i,e),i},It.provide=Pt;var Nt=function(t,e){return void 0===e?t:e};function Rt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[S(i)]={type:null});else if(u(n))for(var a in n)i=n[a],o[S(a)]=u(i)?i:{type:i};t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?T({from:o},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Rt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Rt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)_(t,o)||s(o);function s(r){var i=It[r]||Nt;a[r]=i(t[r],e[r],n,r)}return a}function Bt(t,e,n,r){if("string"==typeof n){var i=t[e];if(_(i,n))return i[n];var o=S(n);if(_(i,o))return i[o];var a=C(o);return _(i,a)?i[a]:i[n]||i[o]||i[a]}}function Ft(t,e,n,r){var i=e[t],o=!_(n,t),a=n[t],s=$t(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===O(t)){var l=$t(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!_(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof r&&"Function"!==zt(e.type)?r.call(t):r}(r,i,t);var u=Ct;kt(!0),Mt(a),kt(u)}return a}function zt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Vt(t,e){return zt(t)===zt(e)}function $t(t,e){if(!Array.isArray(e))return Vt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Vt(e[n],t))return n;return-1}function Gt(t,e,n){pt();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){Wt(t,r,"errorCaptured hook")}}Wt(t,e,n)}finally{gt()}}function Ht(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&d(o)&&!o._handled&&(o.catch(function(t){return Gt(t,r,i+" (Promise/async)")}),o._handled=!0)}catch(t){Gt(t,r,i)}return o}function Wt(t,e,n){if(z.errorHandler)try{return z.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Ut(e,null,"config.errorHandler")}Ut(t,e,n)}function Ut(t,e,n){if(!Y&&!X||"undefined"==typeof console)throw t;console.error(t)}var Yt,Xt=!1,qt=[],Zt=!1;function Kt(){Zt=!1;var t=qt.slice(0);qt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&st(Promise)){var Jt=Promise.resolve();Yt=function(){Jt.then(Kt),tt&&setTimeout(I)},Xt=!0}else if(K||"undefined"==typeof MutationObserver||!st(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Yt="undefined"!=typeof setImmediate&&st(setImmediate)?function(){setImmediate(Kt)}:function(){setTimeout(Kt,0)};else{var Qt=1,te=new MutationObserver(Kt),ee=document.createTextNode(String(Qt));te.observe(ee,{characterData:!0}),Yt=function(){Qt=(Qt+1)%2,ee.data=String(Qt)},Xt=!0}function ne(t,e){var n;if(qt.push(function(){if(t)try{t.call(e)}catch(t){Gt(t,e,"nextTick")}else n&&n(e)}),Zt||(Zt=!0,Yt()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}var re=new lt;function ie(t){!function t(e,n){var r,i;var o=Array.isArray(e);if(!o&&!s(e)||Object.isFrozen(e)||e instanceof vt)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=e.length;r--;)t(e[r],n);else for(i=Object.keys(e),r=i.length;r--;)t(e[i[r]],n)}(t,re),re.clear()}var oe=x(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}});function ae(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Ht(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ht(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function se(t,e,n,i,a,s){var l,u,c,h;for(l in t)u=t[l],c=e[l],h=oe(l),r(u)||(r(c)?(r(u.fns)&&(u=t[l]=ae(u,s)),o(h.once)&&(u=t[l]=a(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)r(t[l])&&i((h=oe(l)).name,e[l],h.capture)}function le(t,e,n){var a;t instanceof vt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function l(){n.apply(this,arguments),y(a.fns,l)}r(s)?a=ae([l]):i(s.fns)&&o(s.merged)?(a=s).fns.push(l):a=ae([s,l]),a.merged=!0,t[e]=a}function ue(t,e,n,r,o){if(i(e)){if(_(e,n))return t[n]=e[n],o||delete e[n],!0;if(_(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function ce(t){return a(t)?[bt(t)]:Array.isArray(t)?function t(e,n){var s=[];var l,u,c,h;for(l=0;l<e.length;l++)r(u=e[l])||"boolean"==typeof u||(c=s.length-1,h=s[c],Array.isArray(u)?u.length>0&&(he((u=t(u,(n||"")+"_"+l))[0])&&he(h)&&(s[c]=bt(h.text+u[0].text),u.shift()),s.push.apply(s,u)):a(u)?he(h)?s[c]=bt(h.text+u):""!==u&&s.push(bt(u)):he(u)&&he(h)?s[c]=bt(h.text+u.text):(o(e._isVList)&&i(u.tag)&&r(u.key)&&i(n)&&(u.key="__vlist"+n+"_"+l+"__"),s.push(u)));return s}(t):void 0}function he(t){return i(t)&&i(t.text)&&!1===t.isComment}function de(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=t[o].from,s=e;s;){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;n[o]="function"==typeof l?l.call(e):l}else 0}}return n}}function fe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(pe)&&delete n[u];return n}function pe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ge(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ve(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=me(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),G(i,"$stable",a),G(i,"$key",s),G(i,"$hasNormal",o),i}function ve(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ce(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function me(t,e){return function(){return t[e]}}function ye(t,e){var n,r,o,a,l;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(s(t))if(ut&&t[Symbol.iterator]){n=[];for(var u=t[Symbol.iterator](),c=u.next();!c.done;)n.push(e(c.value,n.length)),c=u.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)l=a[r],n[r]=e(t[l],l,r);return i(n)||(n=[]),n._isVList=!0,n}function be(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=T(T({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function _e(t){return Bt(this.$options,"filters",t)||P}function xe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function we(t,e,n,r,i){var o=z.keyCodes[e]||n;return i&&r&&!z.keyCodes[e]?xe(i,r):o?xe(o,t):r?O(r)!==e:void 0}function Se(t,e,n,r,i){if(n)if(s(n)){var o;Array.isArray(n)&&(n=A(n));var a=function(a){if("class"===a||"style"===a||m(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||z.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=S(a),u=O(a);l in o||u in o||(o[a]=n[a],i&&((t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}))};for(var l in n)a(l)}else;return t}function Ce(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e?r:(Oe(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r)}function ke(t,e,n){return Oe(t,"__once__"+e+(n?"_"+n:""),!0),t}function Oe(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Me(t[r],e+"_"+r,n);else Me(t,e,n)}function Me(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Ee(t,e){if(e)if(u(e)){var n=t.on=t.on?T({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Te(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Te(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ae(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Ie(t,e){return"string"==typeof t?e+t:t}function De(t){t._o=ke,t._n=p,t._s=f,t._l=ye,t._t=be,t._q=L,t._i=j,t._m=Ce,t._f=_e,t._k=we,t._b=Se,t._v=bt,t._e=yt,t._u=Te,t._g=Ee,t._d=Ae,t._p=Ie}function Pe(t,e,r,i,a){var s,l=this,u=a.options;_(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var c=o(u._compiled),h=!c;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=de(u.inject,i),this.slots=function(){return l.$slots||ge(t.scopedSlots,l.$slots=fe(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ge(t.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=ge(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,r){var o=$e(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return $e(s,t,e,n,r,h)}}function Le(t,e,n,r,i){var o=_t(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function je(t,e){for(var n in e)t[S(n)]=e[n]}De(Pe.prototype);var Ne={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Ne.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Je)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var r=e.componentOptions;!function(t,e,r,i,o){0;var a=i.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||l);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){kt(!1);for(var c=t._props,h=t.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=t.$options.props;c[f]=Ft(f,p,e,t)}kt(!0),t.$options.propsData=e}r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,Ke(t,r,g),u&&(t.$slots=fe(o,i.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,r.propsData,r.listeners,e,r.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,nn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,on.push(e)):en(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,tn(e)))return;if(!e._inactive){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);nn(e,"deactivated")}}(e,!0):e.$destroy())}},Re=Object.keys(Ne);function Be(t,e,a,l,u){if(!r(t)){var c=a.$options._base;if(s(t)&&(t=c.extend(t)),"function"==typeof t){var h;if(r(t.cid)&&void 0===(t=function(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=He;n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],l=!0,u=null,c=null;n.$on("hook:destroyed",function(){return y(a,n)});var h=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=N(function(n){t.resolved=We(n,e),l?a.length=0:h(!0)}),p=N(function(e){i(t.errorComp)&&(t.error=!0,h(!0))}),g=t(f,p);return s(g)&&(d(g)?r(t.resolved)&&g.then(f,p):d(g.component)&&(g.component.then(f,p),i(g.error)&&(t.errorComp=We(g.error,e)),i(g.loading)&&(t.loadingComp=We(g.loading,e),0===g.delay?t.loading=!0:u=setTimeout(function(){u=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))},g.delay||200)),i(g.timeout)&&(c=setTimeout(function(){c=null,r(t.resolved)&&p(null)},g.timeout)))),l=!1,t.loading?t.loadingComp:t.resolved}}(h=t,c)))return function(t,e,n,r,i){var o=yt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(h,e,a,l,u);e=e||{},kn(t),i(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}(t.options,e);var f=function(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,l=t.props;if(i(s)||i(l))for(var u in o){var c=O(u);ue(a,l,u,c,!0)||ue(a,s,u,c,!1)}return a}}(e,t);if(o(t.options.functional))return function(t,e,r,o,a){var s=t.options,l={},u=s.props;if(i(u))for(var c in u)l[c]=Ft(c,u,e||n);else i(r.attrs)&&je(l,r.attrs),i(r.props)&&je(l,r.props);var h=new Pe(r,l,a,o,t),d=s.render.call(null,h._c,h);if(d instanceof vt)return Le(d,r,h.parent,s);if(Array.isArray(d)){for(var f=ce(d)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=Le(f[g],r,h.parent,s);return p}}(t,f,e,a,l);var p=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var g=e.slot;e={},g&&(e.slot=g)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Re.length;n++){var r=Re[n],i=e[r],o=Ne[r];i===o||i&&i._merged||(e[r]=i?Fe(o,i):o)}}(e);var v=t.options.name||u;return new vt("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,a,{Ctor:t,propsData:f,listeners:p,tag:u,children:l},h)}}}function Fe(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var ze=1,Ve=2;function $e(t,e,n,l,u,c){return(Array.isArray(n)||a(n))&&(u=l,l=n,n=void 0),o(c)&&(u=Ve),function(t,e,n,a,l){if(i(n)&&i(n.__ob__))return yt();i(n)&&i(n.is)&&(e=n.is);if(!e)return yt();0;Array.isArray(a)&&"function"==typeof a[0]&&((n=n||{}).scopedSlots={default:a[0]},a.length=0);l===Ve?a=ce(a):l===ze&&(a=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(a));var u,c;if("string"==typeof e){var h;c=t.$vnode&&t.$vnode.ns||z.getTagNamespace(e),u=z.isReservedTag(e)?new vt(z.parsePlatformTagName(e),n,a,void 0,void 0,t):n&&n.pre||!i(h=Bt(t.$options,"components",e))?new vt(e,n,a,void 0,void 0,t):Be(h,n,t,a,e)}else u=Be(e,n,t,a);return Array.isArray(u)?u:i(u)?(i(c)&&function t(e,n,a){e.ns=n;"foreignObject"===e.tag&&(n=void 0,a=!0);if(i(e.children))for(var s=0,l=e.children.length;s<l;s++){var u=e.children[s];i(u.tag)&&(r(u.ns)||o(a)&&"svg"!==u.tag)&&t(u,n,a)}}(u,c),i(n)&&function(t){s(t.style)&&ie(t.style);s(t.class)&&ie(t.class)}(n),u):yt()}(t,e,n,l,u)}var Ge,He=null;function We(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t)?e.extend(t):t}function Ue(t){return t.isComment&&t.asyncFactory}function Ye(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||Ue(n)))return n}}function Xe(t,e){Ge.$on(t,e)}function qe(t,e){Ge.$off(t,e)}function Ze(t,e){var n=Ge;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function Ke(t,e,n){Ge=t,se(e,n||{},Xe,qe,Ze,t),Ge=void 0}var Je=null;function Qe(t){var e=Je;return Je=t,function(){Je=e}}function tn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function en(t,e){if(e){if(t._directInactive=!1,tn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)en(t.$children[n]);nn(t,"activated")}}function nn(t,e){pt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ht(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),gt()}var rn=[],on=[],an={},sn=!1,ln=!1,un=0;var cn=0,hn=Date.now;if(Y&&!K){var dn=window.performance;dn&&"function"==typeof dn.now&&hn()>document.createEvent("Event").timeStamp&&(hn=function(){return dn.now()})}function fn(){var t,e;for(cn=hn(),ln=!0,rn.sort(function(t,e){return t.id-e.id}),un=0;un<rn.length;un++)(t=rn[un]).before&&t.before(),e=t.id,an[e]=null,t.run();var n=on.slice(),r=rn.slice();un=rn.length=on.length=0,an={},sn=ln=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,en(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&nn(r,"updated")}}(r),at&&z.devtools&&at.emit("flush")}var pn=0,gn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._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=++pn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!H.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};gn.prototype.get=function(){var t;pt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Gt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ie(t),gt(),this.cleanupDeps()}return t},gn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},gn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.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},gn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==an[e]){if(an[e]=!0,ln){for(var n=rn.length-1;n>un&&rn[n].id>t.id;)n--;rn.splice(n+1,0,t)}else rn.push(t);sn||(sn=!0,ne(fn))}}(this)},gn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Gt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},gn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},gn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},gn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var vn={enumerable:!0,configurable:!0,get:I,set:I};function mn(t,e,n){vn.get=function(){return this[e][n]},vn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,vn)}function yn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||kt(!1);var a=function(o){i.push(o);var a=Ft(o,e,n,t);Et(r,o,a),o in t||mn(t,"_props",o)};for(var s in e)a(s);kt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?I:M(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Gt(t,e,"data()"),{}}finally{gt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&_(r,o)||$(o)||mn(t,"_data",o)}Mt(e,!0)}(t):Mt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ot();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new gn(t,a||I,I,bn)),i in t||_n(t,i,o)}}(t,e.computed),e.watch&&e.watch!==nt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Sn(t,n,r[i]);else Sn(t,n,r)}}(t,e.watch)}var bn={lazy:!0};function _n(t,e,n){var r=!ot();"function"==typeof n?(vn.get=r?xn(e):wn(n),vn.set=I):(vn.get=n.get?r&&!1!==n.cache?xn(e):wn(n.get):I,vn.set=n.set||I),Object.defineProperty(t,e,vn)}function xn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),dt.target&&e.depend(),e.value}}function wn(t){return function(){return t.call(this,this)}}function Sn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Cn=0;function kn(t){var e=t.options;if(t.super){var n=kn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&T(t.extendOptions,r),(e=t.options=Rt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function On(t){this._init(t)}function Mn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Rt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)mn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)_n(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=T({},a.options),i[r]=a,a}}function En(t){return t&&(t.Ctor.options.name||t.tag)}function Tn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function An(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=En(a.componentOptions);s&&!e(s)&&In(n,o,r,i)}}}function In(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Rt(kn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ke(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=fe(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return $e(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return $e(t,e,n,r,i,!0)};var o=r&&r.data;Et(t,"$attrs",o&&o.attrs||n,null,!0),Et(t,"$listeners",e._parentListeners||n,null,!0)}(e),nn(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach(function(n){Et(t,n,e[n])}),kt(!0))}(e),yn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),nn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(On),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Tt,t.prototype.$delete=At,t.prototype.$watch=function(t,e,n){if(u(e))return Sn(this,t,e,n);(n=n||{}).user=!0;var r=new gn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Gt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(On),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)Ht(n[o],e,r,e,i)}return e}}(On),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Qe(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){nn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),nn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(On),function(t){De(t.prototype),t.prototype.$nextTick=function(t){return ne(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=ge(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{He=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Gt(n,e,"render"),t=e._vnode}finally{He=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof vt||(t=yt()),t.parent=i,t}}(On);var Dn=[String,RegExp,Array],Pn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Dn,exclude:Dn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)In(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){An(t,function(t){return Tn(e,t)})}),this.$watch("exclude",function(e){An(t,function(t){return!Tn(e,t)})})},render:function(){var t=this.$slots.default,e=Ye(t),n=e&&e.componentOptions;if(n){var r=En(n),i=this.include,o=this.exclude;if(i&&(!r||!Tn(i,r))||o&&r&&Tn(o,r))return e;var a=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,y(s,l),s.push(l)):(a[l]=e,s.push(l),this.max&&s.length>parseInt(this.max)&&In(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return z}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:T,mergeOptions:Rt,defineReactive:Et},t.set=Tt,t.delete=At,t.nextTick=ne,t.observable=function(t){return Mt(t),t},t.options=Object.create(null),B.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,T(t.options.components,Pn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rt(this.options,t),this}}(t),Mn(t),function(t){B.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(On),Object.defineProperty(On.prototype,"$isServer",{get:ot}),Object.defineProperty(On.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(On,"FunctionalRenderContext",{value:Pe}),On.version="2.6.12";var Ln=g("style,class"),jn=g("input,textarea,option,select,progress"),Nn=function(t,e,n){return"value"===n&&jn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Rn=g("contenteditable,draggable,spellcheck"),Bn=g("events,caret,typing,plaintext-only"),Fn=function(t,e){return Hn(e)||"false"===e?"false":"contenteditable"===t&&Bn(e)?e:"true"},zn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Vn="http://www.w3.org/1999/xlink",$n=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gn=function(t){return $n(t)?t.slice(6,t.length):""},Hn=function(t){return null==t||!1===t};function Wn(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Un(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=Un(e,n.data));return function(t,e){if(i(t)||i(e))return Yn(t,Xn(e));return""}(e.staticClass,e.class)}function Un(t,e){return{staticClass:Yn(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Yn(t,e){return t?e?t+" "+e:t:e||""}function Xn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Xn(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):s(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var qn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Zn=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Kn=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(t){return Zn(t)||Kn(t)};function Qn(t){return Kn(t)?"svg":"math"===t?"math":void 0}var tr=Object.create(null);var er=g("text,number,password,search,email,tel,url");function nr(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var rr=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(t,e){return document.createElementNS(qn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ir={create:function(t,e){or(e)},update:function(t,e){t.data.ref!==e.data.ref&&(or(t,!0),or(e))},destroy:function(t){or(t,!0)}};function or(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var ar=new vt("",{},[]),sr=["create","activate","update","remove","destroy"];function lr(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||er(r)&&er(o)}(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function ur(t,e,n){var r,o,a={};for(r=e;r<=n;++r)i(o=t[r].key)&&(a[o]=r);return a}var cr={create:hr,update:hr,destroy:function(t){hr(t,ar)}};function hr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===ar,a=e===ar,s=fr(t.data.directives,t.context),l=fr(e.data.directives,e.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,gr(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(gr(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var h=function(){for(var n=0;n<u.length;n++)gr(u[n],"inserted",e,t)};o?le(e,"insert",h):h()}c.length&&le(e,"postpatch",function(){for(var n=0;n<c.length;n++)gr(c[n],"componentUpdated",e,t)});if(!o)for(n in s)l[n]||gr(s[n],"unbind",t,t,a)}(t,e)}var dr=Object.create(null);function fr(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=dr),i[pr(r)]=r,r.def=Bt(e.$options,"directives",r.name);return i}function pr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function gr(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Gt(r,n.context,"directive "+t.name+" "+e+" hook")}}var vr=[ir,cr];function mr(t,e){var n=e.componentOptions;if(!(i(n)&&!1===n.Ctor.options.inheritAttrs||r(t.data.attrs)&&r(e.data.attrs))){var o,a,s=e.elm,l=t.data.attrs||{},u=e.data.attrs||{};for(o in i(u.__ob__)&&(u=e.data.attrs=T({},u)),u)a=u[o],l[o]!==a&&yr(s,o,a);for(o in(K||Q)&&u.value!==l.value&&yr(s,"value",u.value),l)r(u[o])&&($n(o)?s.removeAttributeNS(Vn,Gn(o)):Rn(o)||s.removeAttribute(o))}}function yr(t,e,n){t.tagName.indexOf("-")>-1?br(t,e,n):zn(e)?Hn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Rn(e)?t.setAttribute(e,Fn(e,n)):$n(e)?Hn(n)?t.removeAttributeNS(Vn,Gn(e)):t.setAttributeNS(Vn,e,n):br(t,e,n)}function br(t,e,n){if(Hn(n))t.removeAttribute(e);else{if(K&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var _r={create:mr,update:mr};function xr(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Wn(e),l=n._transitionClasses;i(l)&&(s=Yn(s,Xn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var wr,Sr,Cr,kr,Or,Mr,Er={create:xr,update:xr},Tr=/[\w).+\-_$\]]/;function Ar(t){var e,n,r,i,o,a=!1,s=!1,l=!1,u=!1,c=0,h=0,d=0,f=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),a)39===e&&92!==n&&(a=!1);else if(s)34===e&&92!==n&&(s=!1);else if(l)96===e&&92!==n&&(l=!1);else if(u)47===e&&92!==n&&(u=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||c||h||d){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:c++;break;case 125:c--}if(47===e){for(var p=r-1,g=void 0;p>=0&&" "===(g=t.charAt(p));p--);g&&Tr.test(g)||(u=!0)}}else void 0===i?(f=r+1,i=t.slice(0,r).trim()):v();function v(){(o||(o=[])).push(t.slice(f,r).trim()),f=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==f&&v(),o)for(r=0;r<o.length;r++)i=Ir(i,o[r]);return i}function Ir(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var r=e.slice(0,n),i=e.slice(n+1);return'_f("'+r+'")('+t+(")"!==i?","+i:i)}function Dr(t,e){console.error("[Vue compiler]: "+t)}function Pr(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function Lr(t,e,n,r,i){(t.props||(t.props=[])).push(Hr({name:e,value:n,dynamic:i},r)),t.plain=!1}function jr(t,e,n,r,i){(i?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Hr({name:e,value:n,dynamic:i},r)),t.plain=!1}function Nr(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(Hr({name:e,value:n},r))}function Rr(t,e,n,r,i,o,a,s){(t.directives||(t.directives=[])).push(Hr({name:e,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),t.plain=!1}function Br(t,e,n){return n?"_p("+e+',"'+t+'")':t+e}function Fr(t,e,r,i,o,a,s,l){var u;(i=i||n).right?l?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete i.right):i.middle&&(l?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),i.capture&&(delete i.capture,e=Br("!",e,l)),i.once&&(delete i.once,e=Br("~",e,l)),i.passive&&(delete i.passive,e=Br("&",e,l)),i.native?(delete i.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var c=Hr({value:r.trim(),dynamic:l},s);i!==n&&(c.modifiers=i);var h=u[e];Array.isArray(h)?o?h.unshift(c):h.push(c):u[e]=h?o?[c,h]:[h,c]:c,t.plain=!1}function zr(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}function Vr(t,e,n){var r=$r(t,":"+e)||$r(t,"v-bind:"+e);if(null!=r)return Ar(r);if(!1!==n){var i=$r(t,e);if(null!=i)return JSON.stringify(i)}}function $r(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var i=t.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===e){i.splice(o,1);break}return n&&delete t.attrsMap[e],r}function Gr(t,e){for(var n=t.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(e.test(o.name))return n.splice(r,1),o}}function Hr(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Wr(t,e,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Ur(e,o);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+a+"}"}}function Ur(t,e){var n=function(t){if(t=t.trim(),wr=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<wr-1)return(kr=t.lastIndexOf("."))>-1?{exp:t.slice(0,kr),key:'"'+t.slice(kr+1)+'"'}:{exp:t,key:null};Sr=t,kr=Or=Mr=0;for(;!Xr();)qr(Cr=Yr())?Kr(Cr):91===Cr&&Zr(Cr);return{exp:t.slice(0,Or),key:t.slice(Or+1,Mr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Yr(){return Sr.charCodeAt(++kr)}function Xr(){return kr>=wr}function qr(t){return 34===t||39===t}function Zr(t){var e=1;for(Or=kr;!Xr();)if(qr(t=Yr()))Kr(t);else if(91===t&&e++,93===t&&e--,0===e){Mr=kr;break}}function Kr(t){for(var e=t;!Xr()&&(t=Yr())!==e;);}var Jr,Qr="__r",ti="__c";function ei(t,e,n){var r=Jr;return function i(){null!==e.apply(null,arguments)&&ii(t,i,n,r)}}var ni=Xt&&!(et&&Number(et[1])<=53);function ri(t,e,n,r){if(ni){var i=cn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Jr.addEventListener(t,e,rt?{capture:n,passive:r}:n)}function ii(t,e,n,r){(r||Jr).removeEventListener(t,e._wrapper||e,n)}function oi(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},o=t.data.on||{};Jr=e.elm,function(t){if(i(t[Qr])){var e=K?"change":"input";t[e]=[].concat(t[Qr],t[e]||[]),delete t[Qr]}i(t[ti])&&(t.change=[].concat(t[ti],t.change||[]),delete t[ti])}(n),se(n,o,ri,ii,ei,e.context),Jr=void 0}}var ai,si={create:oi,update:oi};function li(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=T({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);ui(a,u)&&(a.value=u)}else if("innerHTML"===n&&Kn(a.tagName)&&r(a.innerHTML)){(ai=ai||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var c=ai.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(t){}}}}function ui(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return p(n)!==p(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var ci={create:li,update:li},hi=x(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function di(t){var e=fi(t.style);return t.staticStyle?T(t.staticStyle,e):e}function fi(t){return Array.isArray(t)?A(t):"string"==typeof t?hi(t):t}var pi,gi=/^--/,vi=/\s*!important$/,mi=function(t,e,n){if(gi.test(e))t.style.setProperty(e,n);else if(vi.test(n))t.style.setProperty(O(e),n.replace(vi,""),"important");else{var r=bi(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},yi=["Webkit","Moz","ms"],bi=x(function(t){if(pi=pi||document.createElement("div").style,"filter"!==(t=S(t))&&t in pi)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<yi.length;n++){var r=yi[n]+e;if(r in pi)return r}});function _i(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,l=e.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},h=u||c,d=fi(e.data.style)||{};e.data.normalizedStyle=i(d.__ob__)?T({},d):d;var f=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=di(i.data))&&T(r,n);(n=di(t.data))&&T(r,n);for(var o=t;o=o.parent;)o.data&&(n=di(o.data))&&T(r,n);return r}(e,!0);for(s in h)r(f[s])&&mi(l,s,"");for(s in f)(a=f[s])!==h[s]&&mi(l,s,null==a?"":a)}}var xi={create:_i,update:_i},wi=/\s+/;function Si(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wi).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ci(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wi).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ki(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,Oi(t.name||"v")),T(e,t),e}return"string"==typeof t?Oi(t):void 0}}var Oi=x(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Mi=Y&&!J,Ei="transition",Ti="animation",Ai="transition",Ii="transitionend",Di="animation",Pi="animationend";Mi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ai="WebkitTransition",Ii="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Di="WebkitAnimation",Pi="webkitAnimationEnd"));var Li=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ji(t){Li(function(){Li(t)})}function Ni(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Si(t,e))}function Ri(t,e){t._transitionClasses&&y(t._transitionClasses,e),Ci(t,e)}function Bi(t,e,n){var r=zi(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ei?Ii:Pi,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout(function(){l<a&&u()},o+1),t.addEventListener(s,c)}var Fi=/\b(transform|all)(,|$)/;function zi(t,e){var n,r=window.getComputedStyle(t),i=(r[Ai+"Delay"]||"").split(", "),o=(r[Ai+"Duration"]||"").split(", "),a=Vi(i,o),s=(r[Di+"Delay"]||"").split(", "),l=(r[Di+"Duration"]||"").split(", "),u=Vi(s,l),c=0,h=0;return e===Ei?a>0&&(n=Ei,c=a,h=o.length):e===Ti?u>0&&(n=Ti,c=u,h=l.length):h=(n=(c=Math.max(a,u))>0?a>u?Ei:Ti:null)?n===Ei?o.length:l.length:0,{type:n,timeout:c,propCount:h,hasTransform:n===Ei&&Fi.test(r[Ai+"Property"])}}function Vi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return $i(e)+$i(t[n])}))}function $i(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Gi(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=ki(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){for(var a=o.css,l=o.type,u=o.enterClass,c=o.enterToClass,h=o.enterActiveClass,d=o.appearClass,f=o.appearToClass,g=o.appearActiveClass,v=o.beforeEnter,m=o.enter,y=o.afterEnter,b=o.enterCancelled,_=o.beforeAppear,x=o.appear,w=o.afterAppear,S=o.appearCancelled,C=o.duration,k=Je,O=Je.$vnode;O&&O.parent;)k=O.context,O=O.parent;var M=!k._isMounted||!t.isRootInsert;if(!M||x||""===x){var E=M&&d?d:u,T=M&&g?g:h,A=M&&f?f:c,I=M&&_||v,D=M&&"function"==typeof x?x:m,P=M&&w||y,L=M&&S||b,j=p(s(C)?C.enter:C);0;var R=!1!==a&&!J,B=Ui(D),F=n._enterCb=N(function(){R&&(Ri(n,A),Ri(n,T)),F.cancelled?(R&&Ri(n,E),L&&L(n)):P&&P(n),n._enterCb=null});t.data.show||le(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,F)}),I&&I(n),R&&(Ni(n,E),Ni(n,T),ji(function(){Ri(n,E),F.cancelled||(Ni(n,A),B||(Wi(j)?setTimeout(F,j):Bi(n,l,F)))})),t.data.show&&(e&&e(),D&&D(n,F)),R||B||F()}}}function Hi(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=ki(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,l=o.type,u=o.leaveClass,c=o.leaveToClass,h=o.leaveActiveClass,d=o.beforeLeave,f=o.leave,g=o.afterLeave,v=o.leaveCancelled,m=o.delayLeave,y=o.duration,b=!1!==a&&!J,_=Ui(f),x=p(s(y)?y.leave:y);0;var w=n._leaveCb=N(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(Ri(n,c),Ri(n,h)),w.cancelled?(b&&Ri(n,u),v&&v(n)):(e(),g&&g(n)),n._leaveCb=null});m?m(S):S()}function S(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),b&&(Ni(n,u),Ni(n,h),ji(function(){Ri(n,u),w.cancelled||(Ni(n,c),_||(Wi(x)?setTimeout(w,x):Bi(n,l,w)))})),f&&f(n,w),b||_||w())}}function Wi(t){return"number"==typeof t&&!isNaN(t)}function Ui(t){if(r(t))return!1;var e=t.fns;return i(e)?Ui(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Yi(t,e){!0!==e.data.show&&Gi(e)}var Xi=function(t){var e,n,s={},l=t.modules,u=t.nodeOps;for(e=0;e<sr.length;++e)for(s[sr[e]]=[],n=0;n<l.length;++n)i(l[n][sr[e]])&&s[sr[e]].push(l[n][sr[e]]);function c(t){var e=u.parentNode(t);i(e)&&u.removeChild(e,t)}function h(t,e,n,r,a,l,c){if(i(t.elm)&&i(l)&&(t=l[c]=_t(t)),t.isRootInsert=!a,!function(t,e,n,r){var a=t.data;if(i(a)){var l=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return d(t,e),f(n,t.elm,r),o(l)&&function(t,e,n,r){for(var o,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,i(o=a.data)&&i(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](ar,a);e.push(a);break}f(n,t.elm,r)}(t,e,n,r),!0}}(t,e,n,r)){var h=t.data,g=t.children,v=t.tag;i(v)?(t.elm=t.ns?u.createElementNS(t.ns,v):u.createElement(v,t),y(t),p(t,g,e),i(h)&&m(t,e),f(n,t.elm,r)):o(t.isComment)?(t.elm=u.createComment(t.text),f(n,t.elm,r)):(t.elm=u.createTextNode(t.text),f(n,t.elm,r))}}function d(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(m(t,e),y(t)):(or(t),e.push(t))}function f(t,e,n){i(t)&&(i(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.appendChild(t,e))}function p(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r);else a(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return i(t.tag)}function m(t,n){for(var r=0;r<s.create.length;++r)s.create[r](ar,t);i(e=t.data.hook)&&(i(e.create)&&e.create(ar,t),i(e.insert)&&n.push(t))}function y(t){var e;if(i(e=t.fnScopeId))u.setStyleScope(t.elm,e);else for(var n=t;n;)i(e=n.context)&&i(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent;i(e=Je)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function b(t,e,n,r,i,o){for(;r<=i;++r)h(n[r],o,t,e,!1,n,r)}function _(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<s.destroy.length;++e)s.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)_(t.children[n])}function x(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(i(r.tag)?(w(r),_(r)):c(r.elm))}}function w(t,e){if(i(e)||i(t.data)){var n,r=s.remove.length+1;for(i(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&c(t)}return n.listeners=e,n}(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&w(n,e),n=0;n<s.remove.length;++n)s.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else c(t.elm)}function S(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&lr(t,a))return o}}function C(t,e,n,a,l,c){if(t!==e){i(e.elm)&&i(a)&&(e=a[l]=_t(e));var d=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?M(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;i(p)&&i(f=p.hook)&&i(f=f.prepatch)&&f(t,e);var g=t.children,m=e.children;if(i(p)&&v(e)){for(f=0;f<s.update.length;++f)s.update[f](t,e);i(f=p.hook)&&i(f=f.update)&&f(t,e)}r(e.text)?i(g)&&i(m)?g!==m&&function(t,e,n,o,a){for(var s,l,c,d=0,f=0,p=e.length-1,g=e[0],v=e[p],m=n.length-1,y=n[0],_=n[m],w=!a;d<=p&&f<=m;)r(g)?g=e[++d]:r(v)?v=e[--p]:lr(g,y)?(C(g,y,o,n,f),g=e[++d],y=n[++f]):lr(v,_)?(C(v,_,o,n,m),v=e[--p],_=n[--m]):lr(g,_)?(C(g,_,o,n,m),w&&u.insertBefore(t,g.elm,u.nextSibling(v.elm)),g=e[++d],_=n[--m]):lr(v,y)?(C(v,y,o,n,f),w&&u.insertBefore(t,v.elm,g.elm),v=e[--p],y=n[++f]):(r(s)&&(s=ur(e,d,p)),r(l=i(y.key)?s[y.key]:S(y,e,d,p))?h(y,o,t,g.elm,!1,n,f):lr(c=e[l],y)?(C(c,y,o,n,f),e[l]=void 0,w&&u.insertBefore(t,c.elm,g.elm)):h(y,o,t,g.elm,!1,n,f),y=n[++f]);d>p?b(t,r(n[m+1])?null:n[m+1].elm,n,f,m,o):f>m&&x(e,d,p)}(d,g,m,n,c):i(m)?(i(t.text)&&u.setTextContent(d,""),b(d,null,m,0,m.length-1,n)):i(g)?x(g,0,g.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(p)&&i(f=p.hook)&&i(f=f.postpatch)&&f(t,e)}}}function k(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var O=g("attrs,class,staticClass,staticStyle,key");function M(t,e,n,r){var a,s=e.tag,l=e.data,u=e.children;if(r=r||l&&l.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(a=l.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return d(e,n),!0;if(i(s)){if(i(u))if(t.hasChildNodes())if(i(a=l)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,f=0;f<u.length;f++){if(!h||!M(h,u[f],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else p(e,u,n);if(i(l)){var g=!1;for(var v in l)if(!O(v)){g=!0,m(e,n);break}!g&&l.class&&ie(l.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!r(e)){var l,c=!1,d=[];if(r(t))c=!0,h(e,d);else{var f=i(t.nodeType);if(!f&&lr(t,e))C(t,e,d,null,null,a);else{if(f){if(1===t.nodeType&&t.hasAttribute(R)&&(t.removeAttribute(R),n=!0),o(n)&&M(t,e,d))return k(e,d,!0),t;l=t,t=new vt(u.tagName(l).toLowerCase(),{},[],void 0,l)}var p=t.elm,g=u.parentNode(p);if(h(e,d,p._leaveCb?null:g,u.nextSibling(p)),i(e.parent))for(var m=e.parent,y=v(e);m;){for(var b=0;b<s.destroy.length;++b)s.destroy[b](m);if(m.elm=e.elm,y){for(var w=0;w<s.create.length;++w)s.create[w](ar,m);var S=m.data.hook.insert;if(S.merged)for(var O=1;O<S.fns.length;O++)S.fns[O]()}else or(m);m=m.parent}i(g)?x([t],0,0):i(t.tag)&&_(t)}}return k(e,d,c),e.elm}i(t)&&_(t)}}({nodeOps:rr,modules:[_r,Er,si,ci,xi,Y?{create:Yi,activate:Yi,remove:function(t,e){!0!==t.data.show?Hi(t,e):e()}}:{}].concat(vr)});J&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&no(t,"input")});var qi={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?le(n,"postpatch",function(){qi.componentUpdated(t,e,n)}):Zi(t,e,n.context),t._vOptions=[].map.call(t.options,Qi)):("textarea"===n.tag||er(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",to),t.addEventListener("compositionend",eo),t.addEventListener("change",eo),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Zi(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,Qi);if(i.some(function(t,e){return!L(t,r[e])}))(t.multiple?e.value.some(function(t){return Ji(t,i)}):e.value!==e.oldValue&&Ji(e.value,i))&&no(t,"change")}}};function Zi(t,e,n){Ki(t,e,n),(K||Q)&&setTimeout(function(){Ki(t,e,n)},0)}function Ki(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],i)o=j(r,Qi(a))>-1,a.selected!==o&&(a.selected=o);else if(L(Qi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ji(t,e){return e.every(function(e){return!L(e,t)})}function Qi(t){return"_value"in t?t._value:t.value}function to(t){t.target.composing=!0}function eo(t){t.target.composing&&(t.target.composing=!1,no(t.target,"input"))}function no(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ro(t){return!t.componentInstance||t.data&&t.data.transition?t:ro(t.componentInstance._vnode)}var io={model:qi,show:{bind:function(t,e,n){var r=e.value,i=(n=ro(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Gi(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=ro(n)).data&&n.data.transition?(n.data.show=!0,r?Gi(n,function(){t.style.display=t.__vOriginalDisplay}):Hi(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},oo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ao(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ao(Ye(e.children)):t}function so(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function lo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var uo=function(t){return t.tag||Ue(t)},co=function(t){return"show"===t.name},ho={name:"transition",props:oo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(uo)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=ao(i);if(!o)return i;if(this._leaving)return lo(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=so(this),u=this._vnode,c=ao(u);if(o.data.directives&&o.data.directives.some(co)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!Ue(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=T({},l);if("out-in"===r)return this._leaving=!0,le(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),lo(t,i);if("in-out"===r){if(Ue(o))return u;var d,f=function(){d()};le(l,"afterEnter",f),le(l,"enterCancelled",f),le(h,"delayLeave",function(t){d=t})}}return i}}},fo=T({tag:String,moveClass:String},oo);function po(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function go(t){t.data.newPos=t.elm.getBoundingClientRect()}function vo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete fo.mode;var mo={Transition:ho,TransitionGroup:{props:fo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Qe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=so(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){for(var u=[],c=[],h=0;h<r.length;h++){var d=r[h];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):c.push(d)}this.kept=t(e,null,u),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(po),t.forEach(go),t.forEach(vo),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;Ni(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ii,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ii,t),n._moveCb=null,Ri(n,e))})}}))},methods:{hasMove:function(t,e){if(!Mi)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Ci(n,t)}),Si(n,e),n.style.display="none",this.$el.appendChild(n);var r=zi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};On.config.mustUseProp=Nn,On.config.isReservedTag=Jn,On.config.isReservedAttr=Ln,On.config.getTagNamespace=Qn,On.config.isUnknownElement=function(t){if(!Y)return!0;if(Jn(t))return!1;if(t=t.toLowerCase(),null!=tr[t])return tr[t];var e=document.createElement(t);return t.indexOf("-")>-1?tr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:tr[t]=/HTMLUnknownElement/.test(e.toString())},T(On.options.directives,io),T(On.options.components,mo),On.prototype.__patch__=Y?Xi:I,On.prototype.$mount=function(t,e){return function(t,e,n){return t.$el=e,t.$options.render||(t.$options.render=yt),nn(t,"beforeMount"),new gn(t,function(){t._update(t._render(),n)},I,{before:function(){t._isMounted&&!t._isDestroyed&&nn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,nn(t,"mounted")),t}(this,t=t&&Y?nr(t):void 0,e)},Y&&setTimeout(function(){z.devtools&&at&&at.emit("init",On)},0);var yo=/\{\{((?:.|\r?\n)+?)\}\}/g,bo=/[-.*+?^${}()|[\]\/\\]/g,_o=x(function(t){var e=t[0].replace(bo,"\\$&"),n=t[1].replace(bo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")});function xo(t,e){var n=e?_o(e):yo;if(n.test(t)){for(var r,i,o,a=[],s=[],l=n.lastIndex=0;r=n.exec(t);){(i=r.index)>l&&(s.push(o=t.slice(l,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),l=i+r[0].length}return l<t.length&&(s.push(o=t.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}var wo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=$r(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Vr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}};var So,Co={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=$r(t,"style");n&&(t.staticStyle=JSON.stringify(hi(n)));var r=Vr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},ko=function(t){return(So=So||document.createElement("div")).innerHTML=t,So.textContent},Oo=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Mo=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Eo=g("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),To=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ao=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Io="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+V.source+"]*",Do="((?:"+Io+"\\:)?"+Io+")",Po=new RegExp("^<"+Do),Lo=/^\s*(\/?)>/,jo=new RegExp("^<\\/"+Do+"[^>]*>"),No=/^<!DOCTYPE [^>]+>/i,Ro=/^<!\--/,Bo=/^<!\[/,Fo=g("script,style,textarea",!0),zo={},Vo={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},$o=/&(?:lt|gt|quot|amp|#39);/g,Go=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ho=g("pre,textarea",!0),Wo=function(t,e){return t&&Ho(t)&&"\n"===e[0]};function Uo(t,e){var n=e?Go:$o;return t.replace(n,function(t){return Vo[t]})}var Yo,Xo,qo,Zo,Ko,Jo,Qo,ta,ea=/^@|^v-on:/,na=/^v-|^@|^:|^#/,ra=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ia=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,oa=/^\(|\)$/g,aa=/^\[.*\]$/,sa=/:(.*)$/,la=/^:|^\.|^v-bind:/,ua=/\.[^.\]]+(?=[^\]]*$)/g,ca=/^v-slot(:|$)|^#/,ha=/[\r\n]/,da=/\s+/g,fa=x(ko),pa="_empty_";function ga(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}(e),rawAttrsMap:{},parent:n,children:[]}}function va(t,e){Yo=e.warn||Dr,Jo=e.isPreTag||D,Qo=e.mustUseProp||D,ta=e.getTagNamespace||D;var n=e.isReservedTag||D;(function(t){return!!t.component||!n(t.tag)}),qo=Pr(e.modules,"transformNode"),Zo=Pr(e.modules,"preTransformNode"),Ko=Pr(e.modules,"postTransformNode"),Xo=e.delimiters;var r,i,o=[],a=!1!==e.preserveWhitespace,s=e.whitespace,l=!1,u=!1;function c(t){if(h(t),l||t.processed||(t=ma(t,e)),o.length||t===r||r.if&&(t.elseif||t.else)&&ba(r,{exp:t.elseif,block:t}),i&&!t.forbidden)if(t.elseif||t.else)a=t,(s=function(t){var e=t.length;for(;e--;){if(1===t[e].type)return t[e];t.pop()}}(i.children))&&s.if&&ba(s,{exp:a.elseif,block:a});else{if(t.slotScope){var n=t.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=t}i.children.push(t),t.parent=i}var a,s;t.children=t.children.filter(function(t){return!t.slotScope}),h(t),t.pre&&(l=!1),Jo(t.tag)&&(u=!1);for(var c=0;c<Ko.length;c++)Ko[c](t,e)}function h(t){if(!u)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var n,r,i=[],o=e.expectHTML,a=e.isUnaryTag||D,s=e.canBeLeftOpenTag||D,l=0;t;){if(n=t,r&&Fo(r)){var u=0,c=r.toLowerCase(),h=zo[c]||(zo[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),d=t.replace(h,function(t,n,r){return u=r.length,Fo(c)||"noscript"===c||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Wo(c,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-d.length,t=d,O(c,l-u,l)}else{var f=t.indexOf("<");if(0===f){if(Ro.test(t)){var p=t.indexOf("--\x3e");if(p>=0){e.shouldKeepComment&&e.comment(t.substring(4,p),l,l+p+3),S(p+3);continue}}if(Bo.test(t)){var g=t.indexOf("]>");if(g>=0){S(g+2);continue}}var v=t.match(No);if(v){S(v[0].length);continue}var m=t.match(jo);if(m){var y=l;S(m[0].length),O(m[1],y,l);continue}var b=C();if(b){k(b),Wo(b.tagName,t)&&S(1);continue}}var _=void 0,x=void 0,w=void 0;if(f>=0){for(x=t.slice(f);!(jo.test(x)||Po.test(x)||Ro.test(x)||Bo.test(x)||(w=x.indexOf("<",1))<0);)f+=w,x=t.slice(f);_=t.substring(0,f)}f<0&&(_=t),_&&S(_.length),e.chars&&_&&e.chars(_,l-_.length,l)}if(t===n){e.chars&&e.chars(t);break}}function S(e){l+=e,t=t.substring(e)}function C(){var e=t.match(Po);if(e){var n,r,i={tagName:e[1],attrs:[],start:l};for(S(e[0].length);!(n=t.match(Lo))&&(r=t.match(Ao)||t.match(To));)r.start=l,S(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],S(n[0].length),i.end=l,i}}function k(t){var n=t.tagName,l=t.unarySlash;o&&("p"===r&&Eo(n)&&O(r),s(n)&&r===n&&O(n));for(var u=a(n)||!!l,c=t.attrs.length,h=new Array(c),d=0;d<c;d++){var f=t.attrs[d],p=f[3]||f[4]||f[5]||"",g="a"===n&&"href"===f[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;h[d]={name:f[1],value:Uo(p,g)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:h,start:t.start,end:t.end}),r=n),e.start&&e.start(n,h,u,t.start,t.end)}function O(t,n,o){var a,s;if(null==n&&(n=l),null==o&&(o=l),t)for(s=t.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)e.end&&e.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}O()}(t,{warn:Yo,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,a,s,h){var d=i&&i.ns||ta(t);K&&"svg"===d&&(n=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];wa.test(r.name)||(r.name=r.name.replace(Sa,""),e.push(r))}return e}(n));var f,p=ga(t,n,i);d&&(p.ns=d),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||ot()||(p.forbidden=!0);for(var g=0;g<Zo.length;g++)p=Zo[g](p,e)||p;l||(!function(t){null!=$r(t,"v-pre")&&(t.pre=!0)}(p),p.pre&&(l=!0)),Jo(p.tag)&&(u=!0),l?function(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=new Array(n),i=0;i<n;i++)r[i]={name:e[i].name,value:JSON.stringify(e[i].value)},null!=e[i].start&&(r[i].start=e[i].start,r[i].end=e[i].end);else t.pre||(t.plain=!0)}(p):p.processed||(ya(p),function(t){var e=$r(t,"v-if");if(e)t.if=e,ba(t,{exp:e,block:t});else{null!=$r(t,"v-else")&&(t.else=!0);var n=$r(t,"v-else-if");n&&(t.elseif=n)}}(p),function(t){null!=$r(t,"v-once")&&(t.once=!0)}(p)),r||(r=p),a?c(p):(i=p,o.push(p))},end:function(t,e,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],c(r)},chars:function(t,e,n){if(i&&(!K||"textarea"!==i.tag||i.attrsMap.placeholder!==t)){var r,o,c,h=i.children;if(t=u||t.trim()?"script"===(r=i).tag||"style"===r.tag?t:fa(t):h.length?s?"condense"===s&&ha.test(t)?"":" ":a?" ":"":"")u||"condense"!==s||(t=t.replace(da," ")),!l&&" "!==t&&(o=xo(t,Xo))?c={type:2,expression:o.expression,tokens:o.tokens,text:t}:" "===t&&h.length&&" "===h[h.length-1].text||(c={type:3,text:t}),c&&h.push(c)}},comment:function(t,e,n){if(i){var r={type:3,text:t,isComment:!0};0,i.children.push(r)}}}),r}function ma(t,e){var n,r;!function(t){var e=Vr(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,(r=Vr(n=t,"ref"))&&(n.ref=r,n.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(n)),function(t){var e;"template"===t.tag?(e=$r(t,"scope"),t.slotScope=e||$r(t,"slot-scope")):(e=$r(t,"slot-scope"))&&(t.slotScope=e);var n=Vr(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||jr(t,"slot",n,zr(t,"slot")));if("template"===t.tag){var r=Gr(t,ca);if(r){0;var i=_a(r),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||pa}}else{var s=Gr(t,ca);if(s){0;var l=t.scopedSlots||(t.scopedSlots={}),u=_a(s),c=u.name,h=u.dynamic,d=l[c]=ga("template",[],t);d.slotTarget=c,d.slotTargetDynamic=h,d.children=t.children.filter(function(t){if(!t.slotScope)return t.parent=d,!0}),d.slotScope=s.value||pa,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Vr(t,"name"))}(t),function(t){var e;(e=Vr(t,"is"))&&(t.component=e);null!=$r(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i<qo.length;i++)t=qo[i](t,e)||t;return function(t){var e,n,r,i,o,a,s,l,u=t.attrsList;for(e=0,n=u.length;e<n;e++){if(r=i=u[e].name,o=u[e].value,na.test(r))if(t.hasBindings=!0,(a=xa(r.replace(na,"")))&&(r=r.replace(ua,"")),la.test(r))r=r.replace(la,""),o=Ar(o),(l=aa.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!l&&"innerHtml"===(r=S(r))&&(r="innerHTML"),a.camel&&!l&&(r=S(r)),a.sync&&(s=Ur(o,"$event"),l?Fr(t,'"update:"+('+r+")",s,null,!1,0,u[e],!0):(Fr(t,"update:"+S(r),s,null,!1,0,u[e]),O(r)!==S(r)&&Fr(t,"update:"+O(r),s,null,!1,0,u[e])))),a&&a.prop||!t.component&&Qo(t.tag,t.attrsMap.type,r)?Lr(t,r,o,u[e],l):jr(t,r,o,u[e],l);else if(ea.test(r))r=r.replace(ea,""),(l=aa.test(r))&&(r=r.slice(1,-1)),Fr(t,r,o,a,!1,0,u[e],l);else{var c=(r=r.replace(na,"")).match(sa),h=c&&c[1];l=!1,h&&(r=r.slice(0,-(h.length+1)),aa.test(h)&&(h=h.slice(1,-1),l=!0)),Rr(t,r,i,o,h,l,a,u[e])}else jr(t,r,JSON.stringify(o),u[e]),!t.component&&"muted"===r&&Qo(t.tag,t.attrsMap.type,r)&&Lr(t,r,"true",u[e])}}(t),t}function ya(t){var e;if(e=$r(t,"v-for")){var n=function(t){var e=t.match(ra);if(!e)return;var n={};n.for=e[2].trim();var r=e[1].trim().replace(oa,""),i=r.match(ia);i?(n.alias=r.replace(ia,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(e);n&&T(t,n)}}function ba(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function _a(t){var e=t.name.replace(ca,"");return e||"#"!==t.name[0]&&(e="default"),aa.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}function xa(t){var e=t.match(ua);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}var wa=/^xmlns:NS\d+/,Sa=/^NS\d+:/;function Ca(t){return ga(t.tag,t.attrsList.slice(),t.parent)}var ka=[wo,Co,{preTransformNode:function(t,e){if("input"===t.tag){var n,r=t.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Vr(t,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=$r(t,"v-if",!0),o=i?"&&("+i+")":"",a=null!=$r(t,"v-else",!0),s=$r(t,"v-else-if",!0),l=Ca(t);ya(l),Nr(l,"type","checkbox"),ma(l,e),l.processed=!0,l.if="("+n+")==='checkbox'"+o,ba(l,{exp:l.if,block:l});var u=Ca(t);$r(u,"v-for",!0),Nr(u,"type","radio"),ma(u,e),ba(l,{exp:"("+n+")==='radio'"+o,block:u});var c=Ca(t);return $r(c,"v-for",!0),Nr(c,":type",n),ma(c,e),ba(l,{exp:i,block:c}),a?l.else=!0:s&&(l.elseif=s),l}}}}];var Oa,Ma,Ea={expectHTML:!0,modules:ka,directives:{model:function(t,e,n){n;var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return Wr(t,r,i),!1;if("select"===o)!function(t,e,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+Ur(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Fr(t,"change",r,null,!0)}(t,r,i);else if("input"===o&&"checkbox"===a)!function(t,e,n){var r=n&&n.number,i=Vr(t,"value")||"null",o=Vr(t,"true-value")||"true",a=Vr(t,"false-value")||"false";Lr(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Fr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Ur(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Ur(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Ur(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=Vr(t,"value")||"null";Lr(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),Fr(t,"change",Ur(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,u=o?"change":"range"===r?Qr:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var h=Ur(e,c);l&&(h="if($event.target.composing)return;"+h),Lr(t,"value","("+e+")"),Fr(t,u,h,null,!0),(s||a)&&Fr(t,"blur","$forceUpdate()")}(t,r,i);else if(!z.isReservedTag(o))return Wr(t,r,i),!1;return!0},text:function(t,e){e.value&&Lr(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Lr(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:Oo,mustUseProp:Nn,canBeLeftOpenTag:Mo,isReservedTag:Jn,getTagNamespace:Qn,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(ka)},Ta=x(function(t){return g("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))});function Aa(t,e){t&&(Oa=Ta(e.staticKeys||""),Ma=e.isReservedTag||D,function t(e){e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||v(t.tag)||!Ma(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Oa)))}(e);if(1===e.type){if(!Ma(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];t(i),i.static||(e.static=!1)}if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++){var s=e.ifConditions[o].block;t(s),s.static||(e.static=!1)}}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var r=0,i=e.children.length;r<i;r++)t(e.children[r],n||!!e.for);if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++)t(e.ifConditions[o].block,n)}}(t,!1))}var Ia=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Da=/\([^)]*?\);*$/,Pa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,La={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ja={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Na=function(t){return"if("+t+")return null;"},Ra={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Ba(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=Fa(t[o]);t[o]&&t[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Fa(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return Fa(t)}).join(",")+"]";var e=Pa.test(t.value),n=Ia.test(t.value),r=Pa.test(t.value.replace(Da,""));if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(Ra[s])o+=Ra[s],La[s]&&a.push(s);else if("exact"===s){var l=t.modifiers;o+=Na(["ctrl","shift","alt","meta"].filter(function(t){return!l[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(za).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function za(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=La[t],r=ja[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Va={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:I},$a=function(t){this.options=t,this.warn=t.warn||Dr,this.transforms=Pr(t.modules,"transformCode"),this.dataGenFns=Pr(t.modules,"genData"),this.directives=T(T({},Va),t.directives);var e=t.isReservedTag||D;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ga(t,e){var n=new $a(e);return{render:"with(this){return "+(t?Ha(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ha(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Wa(t,e);if(t.once&&!t.onceProcessed)return Ua(t,e);if(t.for&&!t.forProcessed)return Xa(t,e);if(t.if&&!t.ifProcessed)return Ya(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Ja(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?es((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:S(t.name),value:t.value,dynamic:t.dynamic}})):null,a=t.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Ja(e,n,!0);return"_c("+t+","+qa(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=qa(t,e));var i=t.inlineTemplate?null:Ja(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<e.transforms.length;o++)n=e.transforms[o](t,n);return n}return Ja(t,e)||"void 0"}function Wa(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+Ha(t,e)+"}"),e.pre=n,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function Ua(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Ya(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Ha(t,e)+","+e.onceId+++","+n+")":Ha(t,e)}return Wa(t,e)}function Ya(t,e,n,r){return t.ifProcessed=!0,function t(e,n,r,i){if(!e.length)return i||"_e()";var o=e.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+t(e,n,r,i):""+a(o.block);function a(t){return r?r(t,n):t.once?Ua(t,n):Ha(t,n)}}(t.ifConditions.slice(),e,n,r)}function Xa(t,e,n,r){var i=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Ha)(t,e)+"})"}function qa(t,e){var n="{",r=function(t,e){var n=t.directives;if(!n)return;var r,i,o,a,s="directives:[",l=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=e.directives[o.name];u&&(a=!!u(t,o,e.warn)),a&&(l=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(t,e);r&&(n+=r+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var i=0;i<e.dataGenFns.length;i++)n+=e.dataGenFns[i](t);if(t.attrs&&(n+="attrs:"+es(t.attrs)+","),t.props&&(n+="domProps:"+es(t.props)+","),t.events&&(n+=Ba(t.events,!1)+","),t.nativeEvents&&(n+=Ba(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=function(t,e,n){var r=t.for||Object.keys(e).some(function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||Za(n)}),i=!!t.if;if(!r)for(var o=t.parent;o;){if(o.slotScope&&o.slotScope!==pa||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(e).map(function(t){return Ka(e[t],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];0;if(n&&1===n.type){var r=Ga(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+es(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Za(t){return 1===t.type&&("slot"===t.tag||t.children.some(Za))}function Ka(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Ya(t,e,Ka,"null");if(t.for&&!t.forProcessed)return Xa(t,e,Ka);var r=t.slotScope===pa?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Ja(t,e)||"undefined")+":undefined":Ja(t,e)||"undefined":Ha(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ja(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(r||Ha)(a,e)+s}var l=n?function(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(1===i.type){if(Qa(i)||i.ifConditions&&i.ifConditions.some(function(t){return Qa(t.block)})){n=2;break}(e(i)||i.ifConditions&&i.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}(o,e.maybeComponent):0,u=i||ts;return"["+o.map(function(t){return u(t,e)}).join(",")+"]"+(l?","+l:"")}}function Qa(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function ts(t,e){return 1===t.type?Ha(t,e):3===t.type&&t.isComment?(r=t,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=t).type?n.expression:ns(JSON.stringify(n.text)))+")";var n,r}function es(t){for(var e="",n="",r=0;r<t.length;r++){var i=t[r],o=ns(i.value);i.dynamic?n+=i.name+","+o+",":e+='"'+i.name+'":'+o+","}return e="{"+e.slice(0,-1)+"}",n?"_d("+e+",["+n.slice(0,-1)+"])":e}function ns(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function rs(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),I}}function is(t){var e=Object.create(null);return function(n,r,i){(r=T({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(e[o])return e[o];var a=t(n,r);var s={},l=[];return s.render=rs(a.render,l),s.staticRenderFns=a.staticRenderFns.map(function(t){return rs(t,l)}),e[o]=s}}var os,as,ss=(os=function(t,e){var n=va(t.trim(),e);!1!==e.optimize&&Aa(n,e);var r=Ga(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(t){function e(e,n){var r=Object.create(t),i=[],o=[],a=function(t,e,n){(n?o:i).push(t)};if(n)for(var s in n.modules&&(r.modules=(t.modules||[]).concat(n.modules)),n.directives&&(r.directives=T(Object.create(t.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(r[s]=n[s]);r.warn=a;var l=os(e.trim(),r);return l.errors=i,l.tips=o,l}return{compile:e,compileToFunctions:is(e)}})(Ea),ls=(ss.compile,ss.compileToFunctions);function us(t){return(as=as||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',as.innerHTML.indexOf(" ")>0}var cs=!!Y&&us(!1),hs=!!Y&&us(!0),ds=x(function(t){var e=nr(t);return e&&e.innerHTML}),fs=On.prototype.$mount;On.prototype.$mount=function(t,e){if((t=t&&nr(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ds(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){0;var i=ls(r,{outputSourceRange:!1,shouldDecodeNewlines:cs,shouldDecodeNewlinesForHref:hs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return fs.call(this,t,e)},On.compile=ls,e.default=On}.call(e,n("DuR2"))},"72Lu":function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},"76UX":function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n("9MlZ");t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},"77Pl":function(t,e,n){var r=n("EqjI");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"7Doy":function(t,e,n){var r=n("EqjI"),i=n("7UMu"),o=n("dSzd")("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},"7GwW":function(t,e,n){"use strict";var r=n("cGG2"),i=n("21It"),o=n("p1b6"),a=n("DQCr"),s=n("Oi+a"),l=n("oJlt"),u=n("GHBc"),c=n("FtD3");t.exports=function(t){return new Promise(function(e,n){var h=t.data,d=t.headers;r.isFormData(h)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+g)}var v=s(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),a(v,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:t,request:f};i(e,n,o),f=null}},f.onabort=function(){f&&(n(c("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(c("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var m=(t.withCredentials||u(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)}),r.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),n(t),f=null)}),h||(h=null),f.send(h)})}},"7J9s":function(t,e,n){"use strict";e.__esModule=!0,e.PopupManager=void 0;var r=l(n("7+uW")),i=l(n("jmaC")),o=l(n("OAzY")),a=l(n("6Twh")),s=n("2kvA");function l(t){return t&&t.__esModule?t:{default:t}}var u=1,c=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+u++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick(function(){e.open()}))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout(function(){e._openTimer=null,e.doOpen(n)},r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),c=(0,a.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,l=(0,s.getStyle)(document.body,"overflowY");c>0&&(i||"scroll"===l)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+c+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout(function(){t._closeTimer=null,t.doClose()},e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},"7KvD":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"7N6o":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOutDegree=e.getInDegree=e.default=void 0;var r=function(t){var e={},n=t.nodes,r=void 0===n?[]:n,i=t.edges,o=void 0===i?[]:i;return r.forEach(function(t){e[t.id]={degree:0,inDegree:0,outDegree:0}}),o.forEach(function(t){e[t.source].degree++,e[t.source].outDegree++,e[t.target].degree++,e[t.target].inDegree++}),e},i=r;e.default=i;e.getInDegree=function(t,e){return r(t)[e]?r(t)[e].inDegree:0};e.getOutDegree=function(t,e){return r(t)[e]?r(t)[e].outDegree:0}},"7UMu":function(t,e,n){var r=n("R9M2");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"7ar3":function(t,e,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var l=function(){throw new o},u=s?function(){try{return arguments.callee,l}catch(t){try{return s(arguments,"callee").get}catch(t){return l}}}():l,c=n("76UX")(),h=Object.getPrototypeOf||function(t){return t.__proto__},d={},f="undefined"==typeof Uint8Array?void 0:h(Uint8Array),p={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c?h([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?h(h([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?h((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?h((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?h(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n("PiFy"),m=n("XfW5"),y=v.call(Function.call,Array.prototype.concat),b=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),x=v.call(Function.call,String.prototype.slice),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,C=function(t,e){var n,i=t;if(m(g,i)&&(i="%"+(n=g[i])[0]+"%"),m(p,i)){var s=p[i];if(s===d&&(s=function t(e){var n;if("%AsyncFunction%"===e)n=a("async function () {}");else if("%GeneratorFunction%"===e)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=a("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=h(i.prototype))}return p[e]=n,n}(i)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');var n=function(t){var e=x(t,0,1),n=x(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return _(t,w,function(t,e,n,r){i[i.length]=n?_(r,S,"$1"):e||t}),i}(t),i=n.length>0?n[0]:"",a=C("%"+i+"%",e),l=a.name,u=a.value,c=!1,h=a.alias;h&&(i=h[0],b(n,y([0,1],h)));for(var d=1,f=!0;d<n.length;d+=1){var g=n[d],v=x(g,0,1),k=x(g,-1);if(('"'===v||"'"===v||"`"===v||'"'===k||"'"===k||"`"===k)&&v!==k)throw new r("property names with quotes must have matching quotes");if("constructor"!==g&&f||(c=!0),m(p,l="%"+(i+="."+g)+"%"))u=p[l];else if(null!=u){if(!(g in u)){if(!e)throw new o("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var O=s(u,g);u=(f=!!O)&&"get"in O&&!("originalValue"in O.get)?O.get:u[g]}else f=m(u,g),u=u[g];f&&!c&&(p[l]=u)}}return u}},"7hDC":function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},"7rlq":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("3MGd"),i=function(t){for(var e;t.hasNode(e="_root".concat(Math.random())););return e};e.default=function(t,e,n){var o=i(t),a=new r.Graph({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(e){return t.node(e)});return t.nodes().forEach(function(r){var i,s=t.node(r),l=t.parent(r);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(r),a.setParent(r,l||o),null===(i=t[n](r))||void 0===i||i.forEach(function(e){var n=e.v===r?e.w:e.v,i=a.edgeFromArgs(n,r),o=void 0!==i?i.weight:0;a.setEdge(n,r,{weight:t.edge(e).weight+o})}),s.hasOwnProperty("minRank")&&a.setNode(r,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a}},"82Mu":function(t,e,n){var r=n("7KvD"),i=n("L42u").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n("R9M2")(a);t.exports=function(){var t,e,n,u=function(){var r,i;for(l&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){i.call(r,u)};else{var h=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},"835U":function(t,e,n){"use strict";e.__esModule=!0,e.isString=function(t){return"[object String]"===Object.prototype.toString.call(t)},e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.isHtmlElement=function(t){return t&&t.nodeType===Node.ELEMENT_NODE};e.isFunction=function(t){return t&&"[object Function]"==={}.toString.call(t)},e.isUndefined=function(t){return void 0===t},e.isDefined=function(t){return void 0!==t&&null!==t}},"85Et":function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"}},"880/":function(t,e,n){t.exports=n("hJx8")},"881s":function(t,e,n){"use strict";t.exports=n("MfCb")},"8ALn":function(t,e,n){"use strict";e.b=o,e.a=function(t){var e=i.a[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);t.get("id")&&(r.id=t.get("id"));if(t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a?a.appendChild(r):(a=n.createDom(),n.set("el",a),a.appendChild(r))}return r},e.d=function(t,e){var n=t.get("el"),i=Object(r.toArray)(n.children).sort(e),o=document.createDocumentFragment();i.forEach(function(t){o.appendChild(t)}),n.appendChild(o)},e.c=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter(function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()}),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)};var r=n("IgWN"),i=n("85Et");function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},"8PNL":function(t,e,n){"use strict";var r=n("1b2O");function i(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}i.prototype.Token=r,t.exports=i},"8a/n":function(t,e,n){var r;r=function(){"use strict";var t=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},e=function(t,e){for(var n=Object.keys(e),r=0;r<n.length;++r)t[n[r]]=e[n[r]];return t},n="\n";function r(t){var e=new Error("(regl) "+t);throw console.error(e),e}function i(t,e){t||r(e)}function o(t){return t?": "+t:""}function a(t,e){switch(e){case"number":return"number"==typeof t;case"object":return"object"==typeof t;case"string":return"string"==typeof t;case"boolean":return"boolean"==typeof t;case"function":return"function"==typeof t;case"undefined":return void 0===t;case"symbol":return"symbol"==typeof t}}function s(t,e,n){e.indexOf(t)<0&&r("invalid value"+o(n)+". must be one of: "+e)}var l=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function u(t,e){for(t+="";t.length<e;)t=" "+t;return t}function c(){this.name="unknown",this.lines=[],this.index={},this.hasErrors=!1}function h(t,e){this.number=t,this.line=e,this.errors=[]}function d(t,e,n){this.file=t,this.line=e,this.message=n}function f(){var t=new Error,e=(t.stack||t).toString(),n=/compileProcedure.*\n\s*at.*\((.*)\)/.exec(e);if(n)return n[1];var r=/compileProcedure.*\n\s*at\s+(.*)(\n|$)/.exec(e);return r?r[1]:"unknown"}function p(){var t=new Error,e=(t.stack||t).toString(),n=/at REGLCommand.*\n\s+at.*\((.*)\)/.exec(e);if(n)return n[1];var r=/at REGLCommand.*\n\s+at\s+(.*)\n/.exec(e);return r?r[1]:"unknown"}function g(t,e){var n,r=t.split("\n"),i=1,o=0,a={unknown:new c,0:new c};a.unknown.name=a[0].name=e||f(),a.unknown.lines.push(new h(0,""));for(var s=0;s<r.length;++s){var l=r[s],u=/^\s*#\s*(\w+)\s+(.+)\s*$/.exec(l);if(u)switch(u[1]){case"line":var d=/(\d+)(\s+\d+)?/.exec(u[2]);d&&(i=0|d[1],d[2]&&((o=0|d[2])in a||(a[o]=new c)));break;case"define":var p=/SHADER_NAME(_B64)?\s+(.*)$/.exec(u[2]);p&&(a[o].name=p[1]?(n=p[2],"undefined"!=typeof atob?atob(n):"base64:"+n):p[2])}a[o].lines.push(new h(i++,l))}return Object.keys(a).forEach(function(t){var e=a[t];e.lines.forEach(function(t){e.index[t.number]=t})}),a}function v(t){t._commandRef=f()}function m(t,e){var n=p();r(t+" in command "+(e||f())+("unknown"===n?"":" called from "+n))}function y(t,e,n,r){a(t,e)||m("invalid parameter type"+o(n)+". expected "+e+", got "+typeof t,r||f())}var b=33071,_=9728,x=9984,w=9985,S=9986,C=9987,k=5126,O=32819,M=32820,E=33635,T=34042,A={};function I(t,e){return t===M||t===O||t===E?2:t===T?4:A[t]*e}function D(t){return!(t&t-1||!t)}A[5120]=A[5121]=1,A[5122]=A[5123]=A[36193]=A[E]=A[O]=A[M]=2,A[5124]=A[5125]=A[k]=A[T]=4;var P=e(i,{optional:function(t){t()},raise:r,commandRaise:m,command:function(t,e,n){t||m(e,n||f())},parameter:function(t,e,n){t in e||r("unknown parameter ("+t+")"+o(n)+". possible values: "+Object.keys(e).join())},commandParameter:function(t,e,n,r){t in e||m("unknown parameter ("+t+")"+o(n)+". possible values: "+Object.keys(e).join(),r||f())},constructor:function(t){Object.keys(t).forEach(function(t){l.indexOf(t)<0&&r('invalid regl constructor argument "'+t+'". must be one of '+l)})},type:function(t,e,n){a(t,e)||r("invalid parameter type"+o(n)+". expected "+e+", got "+typeof t)},commandType:y,isTypedArray:function(e,n){t(e)||r("invalid parameter type"+o(n)+". must be a typed array")},nni:function(t,e){t>=0&&(0|t)===t||r("invalid parameter type, ("+t+")"+o(e)+". must be a nonnegative integer")},oneOf:s,shaderError:function(t,e,r,o,a){if(!t.getShaderParameter(e,t.COMPILE_STATUS)){var s=t.getShaderInfoLog(e),l=o===t.FRAGMENT_SHADER?"fragment":"vertex";y(r,"string",l+" shader source must be a string",a);var c=g(r,a),h=function(t){var e=[];return t.split("\n").forEach(function(t){if(!(t.length<5)){var n=/^ERROR:\s+(\d+):(\d+):\s*(.*)$/.exec(t);n?e.push(new d(0|n[1],0|n[2],n[3].trim())):t.length>0&&e.push(new d("unknown",0,t))}}),e}(s);!function(t,e){e.forEach(function(e){var n=t[e.file];if(n){var r=n.index[e.line];if(r)return r.errors.push(e),void(n.hasErrors=!0)}t.unknown.hasErrors=!0,t.unknown.lines[0].errors.push(e)})}(c,h),Object.keys(c).forEach(function(t){var e=c[t];if(e.hasErrors){var r=[""],i=[""];o("file number "+t+": "+e.name+"\n","color:red;text-decoration:underline;font-weight:bold"),e.lines.forEach(function(t){if(t.errors.length>0){o(u(t.number,4)+"| ","background-color:yellow; font-weight:bold"),o(t.line+n,"color:red; background-color:yellow; font-weight:bold");var e=0;t.errors.forEach(function(r){var i=r.message,a=/^\s*'(.*)'\s*:\s*(.*)$/.exec(i);if(a){var s=a[1];switch(i=a[2],s){case"assign":s="="}e=Math.max(t.line.indexOf(s,e),0)}else e=0;o(u("| ",6)),o(u("^^^",e+3)+n,"font-weight:bold"),o(u("| ",6)),o(i+n,"font-weight:bold")}),o(u("| ",6)+n)}else o(u(t.number,4)+"| "),o(t.line+n,"color:red")}),"undefined"==typeof document||window.chrome?console.log(r.join("")):(i[0]=r.join("%c"),console.log.apply(console,i))}function o(t,e){r.push(t),i.push(e||"")}}),i.raise("Error compiling "+l+" shader, "+c[0].name)}},linkError:function(t,e,r,o,a){if(!t.getProgramParameter(e,t.LINK_STATUS)){var s=t.getProgramInfoLog(e),l=g(r,a),u='Error linking program with vertex shader, "'+g(o,a)[0].name+'", and fragment shader "'+l[0].name+'"';"undefined"!=typeof document?console.log("%c"+u+n+"%c"+s,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(u+n+s),i.raise(u)}},callSite:p,saveCommandRef:v,saveDrawInfo:function(t,e,n,r){function i(t){return t?r.id(t):0}function o(t,e){Object.keys(e).forEach(function(e){t[r.id(e)]=!0})}v(t),t._fragId=i(t.static.frag),t._vertId=i(t.static.vert);var a=t._uniformSet={};o(a,e.static),o(a,e.dynamic);var s=t._attributeSet={};o(s,n.static),o(s,n.dynamic),t._hasCount="count"in t.static||"count"in t.dynamic||"elements"in t.static||"elements"in t.dynamic},framebufferFormat:function(t,e,n){t.texture?s(t.texture._texture.internalformat,e,"unsupported texture format for attachment"):s(t.renderbuffer._renderbuffer.format,n,"unsupported renderbuffer format for attachment")},guessCommand:f,texture2D:function(t,e,n){var r,o=e.width,a=e.height,s=e.channels;i(o>0&&o<=n.maxTextureSize&&a>0&&a<=n.maxTextureSize,"invalid texture shape"),t.wrapS===b&&t.wrapT===b||i(D(o)&&D(a),"incompatible wrap mode for texture, both width and height must be power of 2"),1===e.mipmask?1!==o&&1!==a&&i(t.minFilter!==x&&t.minFilter!==S&&t.minFilter!==w&&t.minFilter!==C,"min filter requires mipmap"):(i(D(o)&&D(a),"texture must be a square power of 2 to support mipmapping"),i(e.mipmask===(o<<1)-1,"missing or incomplete mipmap data")),e.type===k&&(n.extensions.indexOf("oes_texture_float_linear")<0&&i(t.minFilter===_&&t.magFilter===_,"filter not supported, must enable oes_texture_float_linear"),i(!t.genMipmaps,"mipmap generation not supported with float textures"));var l=e.images;for(r=0;r<16;++r)if(l[r]){var u=o>>r,c=a>>r;i(e.mipmask&1<<r,"missing mipmap data");var h=l[r];if(i(h.width===u&&h.height===c,"invalid shape for mip images"),i(h.format===e.format&&h.internalformat===e.internalformat&&h.type===e.type,"incompatible type for mip image"),h.compressed);else if(h.data){var d=Math.ceil(I(h.type,s)*u/h.unpackAlignment)*h.unpackAlignment;i(h.data.byteLength===d*c,"invalid data for image, buffer size is inconsistent with image format")}else h.element||h.copy}else t.genMipmaps||i(0==(e.mipmask&1<<r),"extra mipmap data");e.compressed&&i(!t.genMipmaps,"mipmap generation for compressed images not supported")},textureCube:function(t,e,n,r){var o=t.width,a=t.height,s=t.channels;i(o>0&&o<=r.maxTextureSize&&a>0&&a<=r.maxTextureSize,"invalid texture shape"),i(o===a,"cube map must be square"),i(e.wrapS===b&&e.wrapT===b,"wrap mode not supported by cube map");for(var l=0;l<n.length;++l){var u=n[l];i(u.width===o&&u.height===a,"inconsistent cube map face shape"),e.genMipmaps&&(i(!u.compressed,"can not generate mipmap for compressed textures"),i(1===u.mipmask,"can not specify mipmaps and generate mipmaps"));for(var c=u.images,h=0;h<16;++h){var d=c[h];if(d){var f=o>>h,p=a>>h;i(u.mipmask&1<<h,"missing mipmap data"),i(d.width===f&&d.height===p,"invalid shape for mip images"),i(d.format===t.format&&d.internalformat===t.internalformat&&d.type===t.type,"incompatible type for mip image"),d.compressed||(d.data?i(d.data.byteLength===f*p*Math.max(I(d.type,s),d.unpackAlignment),"invalid data for image, buffer size is inconsistent with image format"):d.element||d.copy)}}}}}),L=0,j=0,N=5,R=6;function B(t,e){this.id=L++,this.type=t,this.data=e}function F(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function z(t){return"["+function t(e){if(0===e.length)return[];var n=e.charAt(0),r=e.charAt(e.length-1);if(e.length>1&&n===r&&('"'===n||"'"===n))return['"'+F(e.substr(1,e.length-2))+'"'];var i=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(e);if(i)return t(e.substr(0,i.index)).concat(t(i[1])).concat(t(e.substr(i.index+i[0].length)));var o=e.split(".");if(1===o.length)return['"'+F(e)+'"'];for(var a=[],s=0;s<o.length;++s)a=a.concat(t(o[s]));return a}(t).join("][")+"]"}var V={DynamicVariable:B,define:function(t,e){return new B(t,z(e+""))},isDynamic:function(t){return"function"==typeof t&&!t._reglType||t instanceof B},unbox:function t(e,n){return"function"==typeof e?new B(j,e):"number"==typeof e||"boolean"==typeof e?new B(N,e):Array.isArray(e)?new B(R,e.map((e,r)=>t(e,n+"["+r+"]"))):e instanceof B?e:void P(!1,"invalid option type in uniform "+n)},accessor:z},$={next:"function"==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:"function"==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},G="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date};function H(t){return"string"==typeof t?t.split():(P(Array.isArray(t),"invalid extension array"),t)}function W(t){return"string"==typeof t?(P("undefined"!=typeof document,"not supported outside of DOM"),document.querySelector(t)):t}function U(t){var n,r,i,o,a,s=t||{},l={},u=[],c=[],h="undefined"==typeof window?1:window.devicePixelRatio,d=!1,f=function(t){t&&P.raise(t)},p=function(){};if("string"==typeof s?(P("undefined"!=typeof document,"selector queries only supported in DOM enviroments"),n=document.querySelector(s),P(n,"invalid query string for element")):"object"==typeof s?"string"==typeof(a=s).nodeName&&"function"==typeof a.appendChild&&"function"==typeof a.getBoundingClientRect?n=s:!function(t){return"function"==typeof t.drawArrays||"function"==typeof t.drawElements}(s)?(P.constructor(s),"gl"in s?o=s.gl:"canvas"in s?i=W(s.canvas):"container"in s&&(r=W(s.container)),"attributes"in s&&(l=s.attributes,P.type(l,"object","invalid context attributes")),"extensions"in s&&(u=H(s.extensions)),"optionalExtensions"in s&&(c=H(s.optionalExtensions)),"onDone"in s&&(P.type(s.onDone,"function","invalid or missing onDone callback"),f=s.onDone),"profile"in s&&(d=!!s.profile),"pixelRatio"in s&&(h=+s.pixelRatio,P(h>0,"invalid pixel ratio"))):i=(o=s).canvas:P.raise("invalid arguments to regl"),n&&("canvas"===n.nodeName.toLowerCase()?i=n:r=n),!o){if(!i){P("undefined"!=typeof document,"must manually specify webgl context outside of DOM environments");var g=function(t,n,r){var i,o=document.createElement("canvas");function a(){var n=window.innerWidth,i=window.innerHeight;if(t!==document.body){var a=t.getBoundingClientRect();n=a.right-a.left,i=a.bottom-a.top}o.width=r*n,o.height=r*i,e(o.style,{width:n+"px",height:i+"px"})}return e(o.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(o),t===document.body&&(o.style.position="absolute",e(t.style,{margin:0,padding:0})),t!==document.body&&"function"==typeof ResizeObserver?(i=new ResizeObserver(function(){setTimeout(a)})).observe(t):window.addEventListener("resize",a,!1),a(),{canvas:o,onDestroy:function(){i?i.disconnect():window.removeEventListener("resize",a),t.removeChild(o)}}}(r||document.body,0,h);if(!g)return null;i=g.canvas,p=g.onDestroy}void 0===l.premultipliedAlpha&&(l.premultipliedAlpha=!0),o=function(t,e){function n(n){try{return t.getContext(n,e)}catch(t){return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}(i,l)}return o?{gl:o,canvas:i,container:r,extensions:u,optionalExtensions:c,pixelRatio:h,profile:d,onDone:f,onDestroy:p}:(p(),f("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Y(t,e){for(var n=Array(t),r=0;r<t;++r)n[r]=e(r);return n}var X=5120,q=5121,Z=5122,K=5123,J=5124,Q=5125,tt=5126;function et(t){var e,n;return e=(t>65535)<<4,e|=n=((t>>>=e)>255)<<3,e|=n=((t>>>=n)>15)<<2,(e|=n=((t>>>=n)>3)<<1)|(t>>>=n)>>1}function nt(){var t=Y(8,function(){return[]});function e(e){var n=function(t){for(var e=16;e<=1<<28;e*=16)if(t<=e)return e;return 0}(e),r=t[et(n)>>2];return r.length>0?r.pop():new ArrayBuffer(n)}function n(e){t[et(e.byteLength)>>2].push(e)}return{alloc:e,free:n,allocType:function(t,n){var r=null;switch(t){case X:r=new Int8Array(e(n),0,n);break;case q:r=new Uint8Array(e(n),0,n);break;case Z:r=new Int16Array(e(2*n),0,n);break;case K:r=new Uint16Array(e(2*n),0,n);break;case J:r=new Int32Array(e(4*n),0,n);break;case Q:r=new Uint32Array(e(4*n),0,n);break;case tt:r=new Float32Array(e(4*n),0,n);break;default:return null}return r.length!==n?r.subarray(0,n):r},freeType:function(t){n(t.buffer)}}}var rt=nt();rt.zero=nt();var it=function(t,e){var n=1;e.ext_texture_filter_anisotropic&&(n=t.getParameter(34047));var r=1,i=1;e.webgl_draw_buffers&&(r=t.getParameter(34852),i=t.getParameter(36063));var o=!!e.oes_texture_float;if(o){var a=t.createTexture();t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var s=t.createFramebuffer();if(t.bindFramebuffer(36160,s),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))o=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var l=rt.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,l),t.getError()?o=!1:(t.deleteFramebuffer(s),t.deleteTexture(a),o=1===l[0]),rt.freeType(l)}}var u=!0;if(!("undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)))){var c=t.createTexture(),h=rt.allocType(5121,36);t.activeTexture(33984),t.bindTexture(34067,c),t.texImage2D(34069,0,6408,3,3,0,6408,5121,h),rt.freeType(h),t.bindTexture(34067,null),t.deleteTexture(c),u=!t.getError()}return{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter(function(t){return!!e[t]}),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:o,npotTextureCube:u}};function ot(e){return!!e&&"object"==typeof e&&Array.isArray(e.shape)&&Array.isArray(e.stride)&&"number"==typeof e.offset&&e.shape.length===e.stride.length&&(Array.isArray(e.data)||t(e.data))}var at=function(t){return Object.keys(t).map(function(e){return t[e]})},st={shape:function(t){for(var e=[],n=t;n.length;n=n[0])e.push(n.length);return e},flatten:function(t,e,n,r){var i=1;if(e.length)for(var o=0;o<e.length;++o)i*=e[o];else i=0;var a=r||rt.allocType(n,i);switch(e.length){case 0:break;case 1:!function(t,e,n){for(var r=0;r<e;++r)n[r]=t[r]}(t,e[0],a);break;case 2:!function(t,e,n,r){for(var i=0,o=0;o<e;++o)for(var a=t[o],s=0;s<n;++s)r[i++]=a[s]}(t,e[0],e[1],a);break;case 3:lt(t,e[0],e[1],e[2],a,0);break;default:!function t(e,n,r,i,o){var a=1;for(var s=r+1;s<n.length;++s)a*=n[s];var l=n[r];if(n.length-r==4){var u=n[r+1],c=n[r+2],h=n[r+3];for(s=0;s<l;++s)lt(e[s],u,c,h,i,o),o+=a}else for(s=0;s<l;++s)t(e[s],n,r+1,i,o),o+=a}(t,e,0,a,0)}return a}};function lt(t,e,n,r,i,o){for(var a=o,s=0;s<e;++s)for(var l=t[s],u=0;u<n;++u)for(var c=l[u],h=0;h<r;++h)i[a++]=c[h]}var ut={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},ct={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ht={dynamic:35048,stream:35040,static:35044},dt=st.flatten,ft=st.shape,pt=35044,gt=35040,vt=5121,mt=5126,yt=[];function bt(t){return 0|ut[Object.prototype.toString.call(t)]}function _t(t,e){for(var n=0;n<e.length;++n)t[n]=e[n]}function xt(t,e,n,r,i,o,a){for(var s=0,l=0;l<n;++l)for(var u=0;u<r;++u)t[s++]=e[i*l+o*u+a]}yt[5120]=1,yt[5122]=2,yt[5124]=4,yt[5121]=1,yt[5123]=2,yt[5125]=4,yt[5126]=4;var wt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},St=0,Ct=1,kt=4,Ot=5120,Mt=5121,Et=5122,Tt=5123,At=5124,It=5125,Dt=34963,Pt=35040,Lt=35044;var jt=new Float32Array(1),Nt=new Uint32Array(jt.buffer),Rt=5123;function Bt(t){for(var e=rt.allocType(Rt,t.length),n=0;n<t.length;++n)if(isNaN(t[n]))e[n]=65535;else if(t[n]===1/0)e[n]=31744;else if(t[n]===-1/0)e[n]=64512;else{jt[0]=t[n];var r=Nt[0],i=r>>>31<<15,o=(r<<1>>>24)-127,a=r>>13&1023;if(o<-24)e[n]=i;else if(o<-14){var s=-14-o;e[n]=i+(a+1024>>s)}else e[n]=o>15?i+31744:i+(o+15<<10)+a}return e}function Ft(e){return Array.isArray(e)||t(e)}var zt=function(t){return!(t&t-1||!t)},Vt=34467,$t=3553,Gt=34067,Ht=34069,Wt=6408,Ut=6406,Yt=6407,Xt=6409,qt=6410,Zt=32854,Kt=32855,Jt=36194,Qt=32819,te=32820,ee=33635,ne=34042,re=6402,ie=34041,oe=35904,ae=35906,se=36193,le=33776,ue=33777,ce=33778,he=33779,de=35986,fe=35987,pe=34798,ge=35840,ve=35841,me=35842,ye=35843,be=36196,_e=5121,xe=5123,we=5125,Se=5126,Ce=10242,ke=10243,Oe=10497,Me=33071,Ee=33648,Te=10240,Ae=10241,Ie=9728,De=9729,Pe=9984,Le=9985,je=9986,Ne=9987,Re=33170,Be=4352,Fe=4353,ze=4354,Ve=34046,$e=3317,Ge=37440,He=37441,We=37443,Ue=37444,Ye=33984,Xe=[Pe,je,Le,Ne],qe=[0,Xt,qt,Yt,Wt],Ze={};function Ke(t){return"[object "+t+"]"}Ze[Xt]=Ze[Ut]=Ze[re]=1,Ze[ie]=Ze[qt]=2,Ze[Yt]=Ze[oe]=3,Ze[Wt]=Ze[ae]=4;var Je=Ke("HTMLCanvasElement"),Qe=Ke("OffscreenCanvas"),tn=Ke("CanvasRenderingContext2D"),en=Ke("ImageBitmap"),nn=Ke("HTMLImageElement"),rn=Ke("HTMLVideoElement"),on=Object.keys(ut).concat([Je,Qe,tn,en,nn,rn]),an=[];an[_e]=1,an[Se]=4,an[se]=2,an[xe]=2,an[we]=4;var sn=[];function ln(t){return Array.isArray(t)&&(0===t.length||"number"==typeof t[0])}function un(t){return!!Array.isArray(t)&&!(0===t.length||!Ft(t[0]))}function cn(t){return Object.prototype.toString.call(t)}function hn(t){return cn(t)===Je}function dn(t){return cn(t)===Qe}function fn(t){if(!t)return!1;var e=cn(t);return on.indexOf(e)>=0||(ln(t)||un(t)||ot(t))}function pn(t){return 0|ut[Object.prototype.toString.call(t)]}function gn(t,e){return rt.allocType(t.type===se?Se:t.type,e)}function vn(t,e){t.type===se?(t.data=Bt(e),rt.freeType(e)):t.data=e}function mn(t,e,n,r,i,o){var a;if(a=void 0!==sn[t]?sn[t]:Ze[t]*an[e],o&&(a*=6),i){for(var s=0,l=n;l>=1;)s+=a*l*l,l/=2;return s}return a*n*r}function yn(n,r,i,o,a,s,l){var u={"don't care":Be,"dont care":Be,nice:ze,fast:Fe},c={repeat:Oe,clamp:Me,mirror:Ee},h={nearest:Ie,linear:De},d=e({mipmap:Ne,"nearest mipmap nearest":Pe,"linear mipmap nearest":Le,"nearest mipmap linear":je,"linear mipmap linear":Ne},h),f={none:0,browser:Ue},p={uint8:_e,rgba4:Qt,rgb565:ee,"rgb5 a1":te},g={alpha:Ut,luminance:Xt,"luminance alpha":qt,rgb:Yt,rgba:Wt,rgba4:Zt,"rgb5 a1":Kt,rgb565:Jt},v={};r.ext_srgb&&(g.srgb=oe,g.srgba=ae),r.oes_texture_float&&(p.float32=p.float=Se),r.oes_texture_half_float&&(p.float16=p["half float"]=se),r.webgl_depth_texture&&(e(g,{depth:re,"depth stencil":ie}),e(p,{uint16:xe,uint32:we,"depth stencil":ne})),r.webgl_compressed_texture_s3tc&&e(v,{"rgb s3tc dxt1":le,"rgba s3tc dxt1":ue,"rgba s3tc dxt3":ce,"rgba s3tc dxt5":he}),r.webgl_compressed_texture_atc&&e(v,{"rgb atc":de,"rgba atc explicit alpha":fe,"rgba atc interpolated alpha":pe}),r.webgl_compressed_texture_pvrtc&&e(v,{"rgb pvrtc 4bppv1":ge,"rgb pvrtc 2bppv1":ve,"rgba pvrtc 4bppv1":me,"rgba pvrtc 2bppv1":ye}),r.webgl_compressed_texture_etc1&&(v["rgb etc1"]=be);var m=Array.prototype.slice.call(n.getParameter(Vt));Object.keys(v).forEach(function(t){var e=v[t];m.indexOf(e)>=0&&(g[t]=e)});var y=Object.keys(g);i.textureFormats=y;var b=[];Object.keys(g).forEach(function(t){var e=g[t];b[e]=t});var _=[];Object.keys(p).forEach(function(t){var e=p[t];_[e]=t});var x=[];Object.keys(h).forEach(function(t){var e=h[t];x[e]=t});var w=[];Object.keys(d).forEach(function(t){var e=d[t];w[e]=t});var S=[];Object.keys(c).forEach(function(t){var e=c[t];S[e]=t});var C=y.reduce(function(t,e){var n=g[e];return n===Xt||n===Ut||n===Xt||n===qt||n===re||n===ie||r.ext_srgb&&(n===oe||n===ae)?t[n]=n:n===Kt||e.indexOf("rgba")>=0?t[n]=Wt:t[n]=Yt,t},{});function k(){this.internalformat=Wt,this.format=Wt,this.type=_e,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Ue,this.width=0,this.height=0,this.channels=0}function O(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function M(t,e){if("object"==typeof e&&e){if("premultiplyAlpha"in e&&(P.type(e.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),t.premultiplyAlpha=e.premultiplyAlpha),"flipY"in e&&(P.type(e.flipY,"boolean","invalid texture flip"),t.flipY=e.flipY),"alignment"in e&&(P.oneOf(e.alignment,[1,2,4,8],"invalid texture unpack alignment"),t.unpackAlignment=e.alignment),"colorSpace"in e&&(P.parameter(e.colorSpace,f,"invalid colorSpace"),t.colorSpace=f[e.colorSpace]),"type"in e){var n=e.type;P(r.oes_texture_float||!("float"===n||"float32"===n),"you must enable the OES_texture_float extension in order to use floating point textures."),P(r.oes_texture_half_float||!("half float"===n||"float16"===n),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),P(r.webgl_depth_texture||!("uint16"===n||"uint32"===n||"depth stencil"===n),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),P.parameter(n,p,"invalid texture type"),t.type=p[n]}var o=t.width,a=t.height,s=t.channels,l=!1;"shape"in e?(P(Array.isArray(e.shape)&&e.shape.length>=2,"shape must be an array"),o=e.shape[0],a=e.shape[1],3===e.shape.length&&(s=e.shape[2],P(s>0&&s<=4,"invalid number of channels"),l=!0),P(o>=0&&o<=i.maxTextureSize,"invalid width"),P(a>=0&&a<=i.maxTextureSize,"invalid height")):("radius"in e&&(o=a=e.radius,P(o>=0&&o<=i.maxTextureSize,"invalid radius")),"width"in e&&(o=e.width,P(o>=0&&o<=i.maxTextureSize,"invalid width")),"height"in e&&(a=e.height,P(a>=0&&a<=i.maxTextureSize,"invalid height")),"channels"in e&&(s=e.channels,P(s>0&&s<=4,"invalid number of channels"),l=!0)),t.width=0|o,t.height=0|a,t.channels=0|s;var u=!1;if("format"in e){var c=e.format;P(r.webgl_depth_texture||!("depth"===c||"depth stencil"===c),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),P.parameter(c,g,"invalid texture format");var h=t.internalformat=g[c];t.format=C[h],c in p&&("type"in e||(t.type=p[c])),c in v&&(t.compressed=!0),u=!0}!l&&u?t.channels=Ze[t.format]:l&&!u?t.channels!==qe[t.format]&&(t.format=t.internalformat=qe[t.channels]):u&&l&&P(t.channels===Ze[t.format],"number of channels inconsistent with specified format")}}function E(t){n.pixelStorei(Ge,t.flipY),n.pixelStorei(He,t.premultiplyAlpha),n.pixelStorei(We,t.colorSpace),n.pixelStorei($e,t.unpackAlignment)}function T(){k.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function A(e,n){var r=null;if(fn(n)?r=n:n&&(P.type(n,"object","invalid pixel data type"),M(e,n),"x"in n&&(e.xOffset=0|n.x),"y"in n&&(e.yOffset=0|n.y),fn(n.data)&&(r=n.data)),P(!e.compressed||r instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),n.copy){P(!r,"can not specify copy and data field for the same texture");var o=a.viewportWidth,s=a.viewportHeight;e.width=e.width||o-e.xOffset,e.height=e.height||s-e.yOffset,e.needsCopy=!0,P(e.xOffset>=0&&e.xOffset<o&&e.yOffset>=0&&e.yOffset<s&&e.width>0&&e.width<=o&&e.height>0&&e.height<=s,"copy texture read out of bounds")}else if(r){if(t(r))e.channels=e.channels||4,e.data=r,"type"in n||e.type!==_e||(e.type=pn(r));else if(ln(r))e.channels=e.channels||4,function(t,e){var n=e.length;switch(t.type){case _e:case xe:case we:case Se:var r=rt.allocType(t.type,n);r.set(e),t.data=r;break;case se:t.data=Bt(e);break;default:P.raise("unsupported texture type, must specify a typed array")}}(e,r),e.alignment=1,e.needsFree=!0;else if(ot(r)){var l=r.data;Array.isArray(l)||e.type!==_e||(e.type=pn(l));var u,c,h,d,f,p,g=r.shape,v=r.stride;3===g.length?(h=g[2],p=v[2]):(P(2===g.length,"invalid ndarray pixel data, must be 2 or 3D"),h=1,p=1),u=g[0],c=g[1],d=v[0],f=v[1],e.alignment=1,e.width=u,e.height=c,e.channels=h,e.format=e.internalformat=qe[h],e.needsFree=!0,function(t,e,n,r,i,o){for(var a=t.width,s=t.height,l=t.channels,u=gn(t,a*s*l),c=0,h=0;h<s;++h)for(var d=0;d<a;++d)for(var f=0;f<l;++f)u[c++]=e[n*d+r*h+i*f+o];vn(t,u)}(e,l,d,f,p,r.offset)}else if(hn(r)||dn(r)||cn(r)===tn)hn(r)||dn(r)?e.element=r:e.element=r.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(function(t){return cn(t)===en}(r))e.element=r,e.width=r.width,e.height=r.height,e.channels=4;else if(function(t){return cn(t)===nn}(r))e.element=r,e.width=r.naturalWidth,e.height=r.naturalHeight,e.channels=4;else if(function(t){return cn(t)===rn}(r))e.element=r,e.width=r.videoWidth,e.height=r.videoHeight,e.channels=4;else if(un(r)){var m=e.width||r[0].length,y=e.height||r.length,b=e.channels;b=Ft(r[0][0])?b||r[0][0].length:b||1;for(var _=st.shape(r),x=1,w=0;w<_.length;++w)x*=_[w];var S=gn(e,x);st.flatten(r,_,"",S),vn(e,S),e.alignment=1,e.width=m,e.height=y,e.channels=b,e.format=e.internalformat=qe[b],e.needsFree=!0}}else e.width=e.width||1,e.height=e.height||1,e.channels=e.channels||4;e.type===Se?P(i.extensions.indexOf("oes_texture_float")>=0,"oes_texture_float extension not enabled"):e.type===se&&P(i.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function I(t,e,r){var i=t.element,a=t.data,s=t.internalformat,l=t.format,u=t.type,c=t.width,h=t.height;E(t),i?n.texImage2D(e,r,l,l,u,i):t.compressed?n.compressedTexImage2D(e,r,s,c,h,0,a):t.needsCopy?(o(),n.copyTexImage2D(e,r,l,t.xOffset,t.yOffset,c,h,0)):n.texImage2D(e,r,l,c,h,0,l,u,a||null)}function D(t,e,r,i,a){var s=t.element,l=t.data,u=t.internalformat,c=t.format,h=t.type,d=t.width,f=t.height;E(t),s?n.texSubImage2D(e,a,r,i,c,h,s):t.compressed?n.compressedTexSubImage2D(e,a,r,i,u,d,f,l):t.needsCopy?(o(),n.copyTexSubImage2D(e,a,r,i,t.xOffset,t.yOffset,d,f)):n.texSubImage2D(e,a,r,i,d,f,c,h,l)}var L=[];function j(){return L.pop()||new T}function N(t){t.needsFree&&rt.freeType(t.data),T.call(t),L.push(t)}function R(t,e,n){var r=t.images[0]=j();t.mipmask=1,r.width=t.width=e,r.height=t.height=n,r.channels=t.channels=4}function B(t,e){var n=null;if(fn(e))O(n=t.images[0]=j(),t),A(n,e),t.mipmask=1;else if(M(t,e),Array.isArray(e.mipmap))for(var r=e.mipmap,i=0;i<r.length;++i)O(n=t.images[i]=j(),t),n.width>>=i,n.height>>=i,A(n,r[i]),t.mipmask|=1<<i;else O(n=t.images[0]=j(),t),A(n,e),t.mipmask=1;O(t,t.images[0]),!t.compressed||t.internalformat!==le&&t.internalformat!==ue&&t.internalformat!==ce&&t.internalformat!==he||P(t.width%4==0&&t.height%4==0,"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4")}function F(t,e){for(var n=t.images,r=0;r<n.length;++r){if(!n[r])return;I(n[r],e,r)}}var z=[];function V(){var t=z.pop()||new function(){k.call(this),this.genMipmaps=!1,this.mipmapHint=Be,this.mipmask=0,this.images=Array(16)};k.call(t),t.mipmask=0;for(var e=0;e<16;++e)t.images[e]=null;return t}function $(t){for(var e=t.images,n=0;n<e.length;++n)e[n]&&N(e[n]),e[n]=null;z.push(t)}function G(){this.minFilter=Ie,this.magFilter=Ie,this.wrapS=Me,this.wrapT=Me,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Be}function H(t,e){if("min"in e){var n=e.min;P.parameter(n,d),t.minFilter=d[n],Xe.indexOf(t.minFilter)>=0&&!("faces"in e)&&(t.genMipmaps=!0)}if("mag"in e){var r=e.mag;P.parameter(r,h),t.magFilter=h[r]}var o=t.wrapS,a=t.wrapT;if("wrap"in e){var s=e.wrap;"string"==typeof s?(P.parameter(s,c),o=a=c[s]):Array.isArray(s)&&(P.parameter(s[0],c),P.parameter(s[1],c),o=c[s[0]],a=c[s[1]])}else{if("wrapS"in e){var l=e.wrapS;P.parameter(l,c),o=c[l]}if("wrapT"in e){var f=e.wrapT;P.parameter(f,c),a=c[f]}}if(t.wrapS=o,t.wrapT=a,"anisotropic"in e){var p=e.anisotropic;P("number"==typeof p&&p>=1&&p<=i.maxAnisotropic,"aniso samples must be between 1 and "),t.anisotropic=e.anisotropic}if("mipmap"in e){var g=!1;switch(typeof e.mipmap){case"string":P.parameter(e.mipmap,u,"invalid mipmap hint"),t.mipmapHint=u[e.mipmap],t.genMipmaps=!0,g=!0;break;case"boolean":g=t.genMipmaps=e.mipmap;break;case"object":P(Array.isArray(e.mipmap),"invalid mipmap type"),t.genMipmaps=!1,g=!0;break;default:P.raise("invalid mipmap type")}!g||"min"in e||(t.minFilter=Pe)}}function W(t,e){n.texParameteri(e,Ae,t.minFilter),n.texParameteri(e,Te,t.magFilter),n.texParameteri(e,Ce,t.wrapS),n.texParameteri(e,ke,t.wrapT),r.ext_texture_filter_anisotropic&&n.texParameteri(e,Ve,t.anisotropic),t.genMipmaps&&(n.hint(Re,t.mipmapHint),n.generateMipmap(e))}var U=0,Y={},X=i.maxTextureUnits,q=Array(X).map(function(){return null});function Z(t){k.call(this),this.mipmask=0,this.internalformat=Wt,this.id=U++,this.refCount=1,this.target=t,this.texture=n.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new G,l.profile&&(this.stats={size:0})}function K(t){n.activeTexture(Ye),n.bindTexture(t.target,t.texture)}function J(){var t=q[0];t?n.bindTexture(t.target,t.texture):n.bindTexture($t,null)}function Q(t){var e=t.texture;P(e,"must not double destroy texture");var r=t.unit,i=t.target;r>=0&&(n.activeTexture(Ye+r),n.bindTexture(i,null),q[r]=null),n.deleteTexture(e),t.texture=null,t.params=null,t.pixels=null,t.refCount=0,delete Y[t.id],s.textureCount--}return e(Z.prototype,{bind:function(){this.bindCount+=1;var t=this.unit;if(t<0){for(var e=0;e<X;++e){var r=q[e];if(r){if(r.bindCount>0)continue;r.unit=-1}q[e]=this,t=e;break}t>=X&&P.raise("insufficient number of texture units"),l.profile&&s.maxTextureUnits<t+1&&(s.maxTextureUnits=t+1),this.unit=t,n.activeTexture(Ye+t),n.bindTexture(this.target,this.texture)}return t},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Q(this)}}),l.profile&&(s.getTotalTextureSize=function(){var t=0;return Object.keys(Y).forEach(function(e){t+=Y[e].stats.size}),t}),{create2D:function(t,e){var r=new Z($t);function o(t,e){var n=r.texInfo;G.call(n);var a=V();return"number"==typeof t?R(a,0|t,"number"==typeof e?0|e:0|t):t?(P.type(t,"object","invalid arguments to regl.texture"),H(n,t),B(a,t)):R(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),r.mipmask=a.mipmask,O(r,a),P.texture2D(n,a,i),r.internalformat=a.internalformat,o.width=a.width,o.height=a.height,K(r),F(a,$t),W(n,$t),J(),$(a),l.profile&&(r.stats.size=mn(r.internalformat,r.type,a.width,a.height,n.genMipmaps,!1)),o.format=b[r.internalformat],o.type=_[r.type],o.mag=x[n.magFilter],o.min=w[n.minFilter],o.wrapS=S[n.wrapS],o.wrapT=S[n.wrapT],o}return Y[r.id]=r,s.textureCount++,o(t,e),o.subimage=function(t,e,n,i){P(!!t,"must specify image data");var a=0|e,s=0|n,l=0|i,u=j();return O(u,r),u.width=0,u.height=0,A(u,t),u.width=u.width||(r.width>>l)-a,u.height=u.height||(r.height>>l)-s,P(r.type===u.type&&r.format===u.format&&r.internalformat===u.internalformat,"incompatible format for texture.subimage"),P(a>=0&&s>=0&&a+u.width<=r.width&&s+u.height<=r.height,"texture.subimage write out of bounds"),P(r.mipmask&1<<l,"missing mipmap data"),P(u.data||u.element||u.needsCopy,"missing image data"),K(r),D(u,$t,a,s,l),J(),N(u),o},o.resize=function(t,e){var i=0|t,a=0|e||i;if(i===r.width&&a===r.height)return o;o.width=r.width=i,o.height=r.height=a,K(r);for(var s=0;r.mipmask>>s;++s){var u=i>>s,c=a>>s;if(!u||!c)break;n.texImage2D($t,s,r.format,u,c,0,r.format,r.type,null)}return J(),l.profile&&(r.stats.size=mn(r.internalformat,r.type,i,a,!1,!1)),o},o._reglType="texture2d",o._texture=r,l.profile&&(o.stats=r.stats),o.destroy=function(){r.decRef()},o},createCube:function(t,e,r,o,a,u){var c=new Z(Gt);Y[c.id]=c,s.cubeCount++;var h=new Array(6);function d(t,e,n,r,o,a){var s,u=c.texInfo;for(G.call(u),s=0;s<6;++s)h[s]=V();if("number"!=typeof t&&t)if("object"==typeof t)if(e)B(h[0],t),B(h[1],e),B(h[2],n),B(h[3],r),B(h[4],o),B(h[5],a);else if(H(u,t),M(c,t),"faces"in t){var f=t.faces;for(P(Array.isArray(f)&&6===f.length,"cube faces must be a length 6 array"),s=0;s<6;++s)P("object"==typeof f[s]&&!!f[s],"invalid input for cube map face"),O(h[s],c),B(h[s],f[s])}else for(s=0;s<6;++s)B(h[s],t);else P.raise("invalid arguments to cube map");else{var p=0|t||1;for(s=0;s<6;++s)R(h[s],p,p)}for(O(c,h[0]),i.npotTextureCube||P(zt(c.width)&&zt(c.height),"your browser does not support non power or two texture dimensions"),u.genMipmaps?c.mipmask=(h[0].width<<1)-1:c.mipmask=h[0].mipmask,P.textureCube(c,u,h,i),c.internalformat=h[0].internalformat,d.width=h[0].width,d.height=h[0].height,K(c),s=0;s<6;++s)F(h[s],Ht+s);for(W(u,Gt),J(),l.profile&&(c.stats.size=mn(c.internalformat,c.type,d.width,d.height,u.genMipmaps,!0)),d.format=b[c.internalformat],d.type=_[c.type],d.mag=x[u.magFilter],d.min=w[u.minFilter],d.wrapS=S[u.wrapS],d.wrapT=S[u.wrapT],s=0;s<6;++s)$(h[s]);return d}return d(t,e,r,o,a,u),d.subimage=function(t,e,n,r,i){P(!!e,"must specify image data"),P("number"==typeof t&&t===(0|t)&&t>=0&&t<6,"invalid face");var o=0|n,a=0|r,s=0|i,l=j();return O(l,c),l.width=0,l.height=0,A(l,e),l.width=l.width||(c.width>>s)-o,l.height=l.height||(c.height>>s)-a,P(c.type===l.type&&c.format===l.format&&c.internalformat===l.internalformat,"incompatible format for texture.subimage"),P(o>=0&&a>=0&&o+l.width<=c.width&&a+l.height<=c.height,"texture.subimage write out of bounds"),P(c.mipmask&1<<s,"missing mipmap data"),P(l.data||l.element||l.needsCopy,"missing image data"),K(c),D(l,Ht+t,o,a,s),J(),N(l),d},d.resize=function(t){var e=0|t;if(e!==c.width){d.width=c.width=e,d.height=c.height=e,K(c);for(var r=0;r<6;++r)for(var i=0;c.mipmask>>i;++i)n.texImage2D(Ht+r,i,c.format,e>>i,e>>i,0,c.format,c.type,null);return J(),l.profile&&(c.stats.size=mn(c.internalformat,c.type,d.width,d.height,!1,!0)),d}},d._reglType="textureCube",d._texture=c,l.profile&&(d.stats=c.stats),d.destroy=function(){c.decRef()},d},clear:function(){for(var t=0;t<X;++t)n.activeTexture(Ye+t),n.bindTexture($t,null),q[t]=null;at(Y).forEach(Q),s.cubeCount=0,s.textureCount=0},getTexture:function(t){return null},restore:function(){for(var t=0;t<X;++t){var e=q[t];e&&(e.bindCount=0,e.unit=-1,q[t]=null)}at(Y).forEach(function(t){t.texture=n.createTexture(),n.bindTexture(t.target,t.texture);for(var e=0;e<32;++e)if(0!=(t.mipmask&1<<e))if(t.target===$t)n.texImage2D($t,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);else for(var r=0;r<6;++r)n.texImage2D(Ht+r,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);W(t.texInfo,t.target)})},refresh:function(){for(var t=0;t<X;++t){var e=q[t];e&&(e.bindCount=0,e.unit=-1,q[t]=null),n.activeTexture(Ye+t),n.bindTexture($t,null),n.bindTexture(Gt,null)}}}}sn[Zt]=2,sn[Kt]=2,sn[Jt]=2,sn[ie]=4,sn[le]=.5,sn[ue]=.5,sn[ce]=1,sn[he]=1,sn[de]=.5,sn[fe]=1,sn[pe]=1,sn[ge]=.5,sn[ve]=.25,sn[me]=.5,sn[ye]=.25,sn[be]=.5;var bn=36161,_n=32854,xn=[];function wn(t,e,n){return xn[t]*e*n}xn[_n]=2,xn[32855]=2,xn[36194]=2,xn[33189]=2,xn[36168]=1,xn[34041]=4,xn[35907]=4,xn[34836]=16,xn[34842]=8,xn[34843]=6;var Sn=function(t,e,n,r,i){var o={rgba4:_n,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};e.ext_srgb&&(o.srgba=35907),e.ext_color_buffer_half_float&&(o.rgba16f=34842,o.rgb16f=34843),e.webgl_color_buffer_float&&(o.rgba32f=34836);var a=[];Object.keys(o).forEach(function(t){var e=o[t];a[e]=t});var s=0,l={};function u(t){this.id=s++,this.refCount=1,this.renderbuffer=t,this.format=_n,this.width=0,this.height=0,i.profile&&(this.stats={size:0})}function c(e){var n=e.renderbuffer;P(n,"must not double destroy renderbuffer"),t.bindRenderbuffer(bn,null),t.deleteRenderbuffer(n),e.renderbuffer=null,e.refCount=0,delete l[e.id],r.renderbufferCount--}return u.prototype.decRef=function(){--this.refCount<=0&&c(this)},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(l).forEach(function(e){t+=l[e].stats.size}),t}),{create:function(e,s){var c=new u(t.createRenderbuffer());function h(e,r){var s=0,l=0,u=_n;if("object"==typeof e&&e){var d=e;if("shape"in d){var f=d.shape;P(Array.isArray(f)&&f.length>=2,"invalid renderbuffer shape"),s=0|f[0],l=0|f[1]}else"radius"in d&&(s=l=0|d.radius),"width"in d&&(s=0|d.width),"height"in d&&(l=0|d.height);"format"in d&&(P.parameter(d.format,o,"invalid renderbuffer format"),u=o[d.format])}else"number"==typeof e?(s=0|e,l="number"==typeof r?0|r:s):e?P.raise("invalid arguments to renderbuffer constructor"):s=l=1;if(P(s>0&&l>0&&s<=n.maxRenderbufferSize&&l<=n.maxRenderbufferSize,"invalid renderbuffer size"),s!==c.width||l!==c.height||u!==c.format)return h.width=c.width=s,h.height=c.height=l,c.format=u,t.bindRenderbuffer(bn,c.renderbuffer),t.renderbufferStorage(bn,u,s,l),P(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=wn(c.format,c.width,c.height)),h.format=a[c.format],h}return l[c.id]=c,r.renderbufferCount++,h(e,s),h.resize=function(e,r){var o=0|e,a=0|r||o;return o===c.width&&a===c.height?h:(P(o>0&&a>0&&o<=n.maxRenderbufferSize&&a<=n.maxRenderbufferSize,"invalid renderbuffer size"),h.width=c.width=o,h.height=c.height=a,t.bindRenderbuffer(bn,c.renderbuffer),t.renderbufferStorage(bn,c.format,o,a),P(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=wn(c.format,c.width,c.height)),h)},h._reglType="renderbuffer",h._renderbuffer=c,i.profile&&(h.stats=c.stats),h.destroy=function(){c.decRef()},h},clear:function(){at(l).forEach(c)},restore:function(){at(l).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(bn,e.renderbuffer),t.renderbufferStorage(bn,e.format,e.width,e.height)}),t.bindRenderbuffer(bn,null)}}},Cn=36160,kn=36161,On=3553,Mn=34069,En=36064,Tn=36096,An=36128,In=33306,Dn=36053,Pn=6402,Ln=[6407,6408],jn=[];jn[6408]=4,jn[6407]=3;var Nn=[];Nn[5121]=1,Nn[5126]=4,Nn[36193]=2;var Rn=33189,Bn=36168,Fn=34041,zn=[32854,32855,36194,35907,34842,34843,34836],Vn={};Vn[Dn]="complete",Vn[36054]="incomplete attachment",Vn[36057]="incomplete dimensions",Vn[36055]="incomplete, missing attachment",Vn[36061]="unsupported";var $n=5126,Gn=34962;function Hn(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=$n,this.offset=0,this.stride=0,this.divisor=0}var Wn=35632,Un=35633,Yn=35718,Xn=35721;function qn(t,n,r,i){var o={},a={};function s(t,e,n,r){this.name=t,this.id=e,this.location=n,this.info=r}function l(t,e){for(var n=0;n<t.length;++n)if(t[n].id===e.id)return void(t[n].location=e.location);t.push(e)}function u(e,r,i){var s=e===Wn?o:a,l=s[r];if(!l){var u=n.str(r);l=t.createShader(e),t.shaderSource(l,u),t.compileShader(l),P.shaderError(t,l,u,e,i),s[r]=l}return l}var c={},h=[],d=0;function f(e,r,o){var a,c,h=u(Wn,e.fragId),d=u(Un,e.vertId),f=e.program=t.createProgram();if(t.attachShader(f,h),t.attachShader(f,d),o)for(a=0;a<o.length;++a){var p=o[a];t.bindAttribLocation(f,p[0],p[1])}t.linkProgram(f),P.linkError(t,f,n.str(e.fragId),n.str(e.vertId),r);var g=t.getProgramParameter(f,Yn);i.profile&&(e.stats.uniformsCount=g);var v=e.uniforms;for(a=0;a<g;++a)if(c=t.getActiveUniform(f,a))if(c.size>1)for(var m=0;m<c.size;++m){var y=c.name.replace("[0]","["+m+"]");l(v,new s(y,n.id(y),t.getUniformLocation(f,y),c))}else l(v,new s(c.name,n.id(c.name),t.getUniformLocation(f,c.name),c));var b=t.getProgramParameter(f,Xn);i.profile&&(e.stats.attributesCount=b);var _=e.attributes;for(a=0;a<b;++a)(c=t.getActiveAttrib(f,a))&&l(_,new s(c.name,n.id(c.name),t.getAttribLocation(f,c.name),c))}return i.profile&&(r.getMaxUniformsCount=function(){var t=0;return h.forEach(function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)}),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)}),t}),{clear:function(){var e=t.deleteShader.bind(t);at(o).forEach(e),o={},at(a).forEach(e),a={},h.forEach(function(e){t.deleteProgram(e.program)}),h.length=0,c={},r.shaderCount=0},program:function(n,s,l,u){P.command(n>=0,"missing vertex shader",l),P.command(s>=0,"missing fragment shader",l);var p=c[s];p||(p=c[s]={});var g=p[n];if(g&&(g.refCount++,!u))return g;var v=new function(t,e){this.id=d++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,i.profile&&(this.stats={uniformsCount:0,attributesCount:0})}(s,n);return r.shaderCount++,f(v,l,u),g||(p[n]=v),h.push(v),e(v,{destroy:function(){if(v.refCount--,v.refCount<=0){t.deleteProgram(v.program);var e=h.indexOf(v);h.splice(e,1),r.shaderCount--}p[v.vertId].refCount<=0&&(t.deleteShader(a[v.vertId]),delete a[v.vertId],delete c[v.fragId][v.vertId]),Object.keys(c[v.fragId]).length||(t.deleteShader(o[v.fragId]),delete o[v.fragId],delete c[v.fragId])}})},restore:function(){o={},a={};for(var t=0;t<h.length;++t)f(h[t],null,h[t].attributes.map(function(t){return[t.location,t.name]}))},shader:u,frag:-1,vert:-1}}var Zn=6408,Kn=5121,Jn=3333,Qn=5126;function tr(e,n,r,i,o,a,s){function l(l){var u;null===n.next?(P(o.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),u=Kn):(P(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),u=n.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?(P(u===Kn||u===Qn,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),u===Qn&&P(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):P(u===Kn,"Reading from a framebuffer is only allowed for the type 'uint8'"));var c=0,h=0,d=i.framebufferWidth,f=i.framebufferHeight,p=null;t(l)?p=l:l&&(P.type(l,"object","invalid arguments to regl.read()"),c=0|l.x,h=0|l.y,P(c>=0&&c<i.framebufferWidth,"invalid x offset for regl.read"),P(h>=0&&h<i.framebufferHeight,"invalid y offset for regl.read"),d=0|(l.width||i.framebufferWidth-c),f=0|(l.height||i.framebufferHeight-h),p=l.data||null),p&&(u===Kn?P(p instanceof Uint8Array,"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'"):u===Qn&&P(p instanceof Float32Array,"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'")),P(d>0&&d+c<=i.framebufferWidth,"invalid width for read pixels"),P(f>0&&f+h<=i.framebufferHeight,"invalid height for read pixels"),r();var g=d*f*4;return p||(u===Kn?p=new Uint8Array(g):u===Qn&&(p=p||new Float32Array(g))),P.isTypedArray(p,"data buffer for regl.read() must be a typedarray"),P(p.byteLength>=g,"data buffer for regl.read() too small"),e.pixelStorei(Jn,4),e.readPixels(c,h,d,f,Zn,u,p),p}return function(t){return t&&"framebuffer"in t?function(t){var e;return n.setFBO({framebuffer:t.framebuffer},function(){e=l(t)}),e}(t):l(t)}}function er(t){return Array.prototype.slice.call(t)}function nr(t){return er(t).join("")}var rr="xyzw".split(""),ir=5121,or=1,ar=2,sr=0,lr=1,ur=2,cr=3,hr=4,dr=5,fr=6,pr="dither",gr="blend.enable",vr="blend.color",mr="blend.equation",yr="blend.func",br="depth.enable",_r="depth.func",xr="depth.range",wr="depth.mask",Sr="colorMask",Cr="cull.enable",kr="cull.face",Or="frontFace",Mr="lineWidth",Er="polygonOffset.enable",Tr="polygonOffset.offset",Ar="sample.alpha",Ir="sample.enable",Dr="sample.coverage",Pr="stencil.enable",Lr="stencil.mask",jr="stencil.func",Nr="stencil.opFront",Rr="stencil.opBack",Br="scissor.enable",Fr="scissor.box",zr="viewport",Vr="profile",$r="framebuffer",Gr="vert",Hr="frag",Wr="elements",Ur="primitive",Yr="count",Xr="offset",qr="instances",Zr="vao",Kr=$r+"Width",Jr=$r+"Height",Qr=zr+"Width",ti=zr+"Height",ei="drawingBufferWidth",ni="drawingBufferHeight",ri=[yr,mr,jr,Nr,Rr,Dr,zr,Fr,Tr],ii=34962,oi=34963,ai=3553,si=34067,li=2884,ui=3042,ci=3024,hi=2960,di=2929,fi=3089,pi=32823,gi=32926,vi=32928,mi=5126,yi=35664,bi=35665,_i=35666,xi=5124,wi=35667,Si=35668,Ci=35669,ki=35670,Oi=35671,Mi=35672,Ei=35673,Ti=35674,Ai=35675,Ii=35676,Di=35678,Pi=35680,Li=4,ji=1028,Ni=1029,Ri=2304,Bi=2305,Fi=32775,zi=32776,Vi=519,$i=7680,Gi=0,Hi=1,Wi=32774,Ui=513,Yi=36160,Xi=36064,qi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Zi=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],Ki={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ji={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Qi={frag:35632,vert:35633},to={cw:Ri,ccw:Bi};function eo(e){return Array.isArray(e)||t(e)||ot(e)}function no(t){return t.sort(function(t,e){return t===zr?-1:e===zr?1:t<e?-1:1})}function ro(t,e,n,r){this.thisDep=t,this.contextDep=e,this.propDep=n,this.append=r}function io(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function oo(t){return new ro(!1,!1,!1,t)}function ao(t,e){var n=t.type;if(n===sr){var r=t.data.length;return new ro(!0,r>=1,r>=2,e)}if(n===hr){var i=t.data;return new ro(i.thisDep,i.contextDep,i.propDep,e)}if(n===dr)return new ro(!1,!1,!1,e);if(n===fr){for(var o=!1,a=!1,s=!1,l=0;l<t.data.length;++l){var u=t.data[l];if(u.type===lr)s=!0;else if(u.type===ur)a=!0;else if(u.type===cr)o=!0;else if(u.type===sr){o=!0;var c=u.data;c>=1&&(a=!0),c>=2&&(s=!0)}else u.type===hr&&(o=o||u.data.thisDep,a=a||u.data.contextDep,s=s||u.data.propDep)}return new ro(o,a,s,e)}return new ro(n===cr,n===ur,n===lr,e)}var so=new ro(!1,!1,!1,function(){});function lo(t,n,r,i,o,a,s,l,u,c,h,d,f,p,g){var v=c.Record,m={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(m.min=Fi,m.max=zi);var y=r.angle_instanced_arrays,b=r.webgl_draw_buffers,_={dirty:!0,profile:g.profile},x={},w=[],S={},C={};function k(t){return t.replace(".","_")}function O(t,e,n){var r=k(t);w.push(t),x[r]=_[r]=!!n,S[r]=e}function M(t,e,n){var r=k(t);w.push(t),Array.isArray(n)?(_[r]=n.slice(),x[r]=n.slice()):_[r]=x[r]=n,C[r]=e}O(pr,ci),O(gr,ui),M(vr,"blendColor",[0,0,0,0]),M(mr,"blendEquationSeparate",[Wi,Wi]),M(yr,"blendFuncSeparate",[Hi,Gi,Hi,Gi]),O(br,di,!0),M(_r,"depthFunc",Ui),M(xr,"depthRange",[0,1]),M(wr,"depthMask",!0),M(Sr,Sr,[!0,!0,!0,!0]),O(Cr,li),M(kr,"cullFace",Ni),M(Or,Or,Bi),M(Mr,Mr,1),O(Er,pi),M(Tr,"polygonOffset",[0,0]),O(Ar,gi),O(Ir,vi),M(Dr,"sampleCoverage",[1,!1]),O(Pr,hi),M(Lr,"stencilMask",-1),M(jr,"stencilFunc",[Vi,0,-1]),M(Nr,"stencilOpSeparate",[ji,$i,$i,$i]),M(Rr,"stencilOpSeparate",[Ni,$i,$i,$i]),O(Br,fi),M(Fr,"scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),M(zr,zr,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var E={gl:t,context:f,strings:n,next:x,current:_,draw:d,elements:a,buffer:o,shader:h,attributes:c.state,vao:c,uniforms:u,framebuffer:l,extensions:r,timer:p,isBufferArgs:eo},T={primTypes:wt,compareFuncs:Ki,blendFuncs:qi,blendEquations:m,stencilOps:Ji,glTypes:ct,orientationType:to};P.optional(function(){E.isArrayLike=Ft}),b&&(T.backBuffer=[Ni],T.drawBuffer=Y(i.maxDrawbuffers,function(t){return 0===t?[0]:Y(t,function(t){return Xi+t})}));var A=0;function I(){var t=function(){var t=0,n=[],r=[];function i(){var n=[],r=[];return e(function(){n.push.apply(n,er(arguments))},{def:function(){var e="v"+t++;return r.push(e),arguments.length>0&&(n.push(e,"="),n.push.apply(n,er(arguments)),n.push(";")),e},toString:function(){return nr([r.length>0?"var "+r.join(",")+";":"",nr(n)])}})}function o(){var t=i(),n=i(),r=t.toString,o=n.toString;function a(e,r){n(e,r,"=",t.def(e,r),";")}return e(function(){t.apply(t,er(arguments))},{def:t.def,entry:t,exit:n,save:a,set:function(e,n,r){a(e,n),t(e,n,"=",r,";")},toString:function(){return r()+o()}})}var a=i(),s={};return{global:a,link:function(e){for(var i=0;i<r.length;++i)if(r[i]===e)return n[i];var o="g"+t++;return n.push(o),r.push(e),o},block:i,proc:function(t,n){var r=[];function i(){var t="a"+r.length;return r.push(t),t}n=n||0;for(var a=0;a<n;++a)i();var l=o(),u=l.toString;return s[t]=e(l,{arg:i,toString:function(){return nr(["function(",r.join(),"){",u(),"}"])}})},scope:o,cond:function(){var t=nr(arguments),n=o(),r=o(),i=n.toString,a=r.toString;return e(n,{then:function(){return n.apply(n,er(arguments)),this},else:function(){return r.apply(r,er(arguments)),this},toString:function(){var e=a();return e&&(e="else{"+e+"}"),nr(["if(",t,"){",i(),"}",e])}})},compile:function(){var t=['"use strict";',a,"return {"];Object.keys(s).forEach(function(e){t.push('"',e,'":',s[e].toString(),",")}),t.push("}");var e=nr(t).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");return Function.apply(null,n.concat(e)).apply(null,r)}}}(),r=t.link,i=t.global;t.id=A++,t.batchId="0";var o=r(E),a=t.shared={props:"a0"};Object.keys(E).forEach(function(t){a[t]=i.def(o,".",t)}),P.optional(function(){t.CHECK=r(P),t.commandStr=P.guessCommand(),t.command=r(t.commandStr),t.assert=function(t,e,n){t("if(!(",e,"))",this.CHECK,".commandRaise(",r(n),",",this.command,");")},T.invalidBlendCombinations=Zi});var s=t.next={},l=t.current={};Object.keys(C).forEach(function(t){Array.isArray(_[t])&&(s[t]=i.def(a.next,".",t),l[t]=i.def(a.current,".",t))});var u=t.constants={};Object.keys(T).forEach(function(t){u[t]=i.def(JSON.stringify(T[t]))}),t.invoke=function(e,n){switch(n.type){case sr:var i=["this",a.context,a.props,t.batchId];return e.def(r(n.data),".call(",i.slice(0,Math.max(n.data.length+1,4)),")");case lr:return e.def(a.props,n.data);case ur:return e.def(a.context,n.data);case cr:return e.def("this",n.data);case hr:return n.data.append(t,e),n.data.ref;case dr:return n.data.toString();case fr:return n.data.map(function(n){return t.invoke(e,n)})}},t.attribCache={};var h={};return t.scopeAttrib=function(t){var e=n.id(t);if(e in h)return h[e];var i=c.scope[e];return i||(i=c.scope[e]=new v),h[e]=r(i)},t}function D(t,e,s,u,d){var f=t.static,p=t.dynamic;P.optional(function(){var t=[$r,Gr,Hr,Wr,Ur,Xr,Yr,qr,Vr,Zr].concat(w);function e(e){Object.keys(e).forEach(function(e){P.command(t.indexOf(e)>=0,'unknown parameter "'+e+'"',d.commandStr)})}e(f),e(p)});var g=function(t,e){var n=t.static;if("string"==typeof n[Hr]&&"string"==typeof n[Gr]){if(Object.keys(e.dynamic).length>0)return null;var r=e.static,i=Object.keys(r);if(i.length>0&&"number"==typeof r[i[0]]){for(var o=[],a=0;a<i.length;++a)P("number"==typeof r[i[a]],"must specify all vertex attribute locations when using vaos"),o.push([0|r[i[a]],i[a]]);return o}}return null}(t,e),b=function(t,e){var n=t.static,r=t.dynamic;if($r in n){var i=n[$r];return i?(i=l.getFramebuffer(i),P.command(i,"invalid framebuffer object"),oo(function(t,e){var n=t.link(i),r=t.shared;e.set(r.framebuffer,".next",n);var o=r.context;return e.set(o,"."+Kr,n+".width"),e.set(o,"."+Jr,n+".height"),n})):oo(function(t,e){var n=t.shared;e.set(n.framebuffer,".next","null");var r=n.context;return e.set(r,"."+Kr,r+"."+ei),e.set(r,"."+Jr,r+"."+ni),"null"})}if($r in r){var o=r[$r];return ao(o,function(t,e){var n=t.invoke(e,o),r=t.shared,i=r.framebuffer,a=e.def(i,".getFramebuffer(",n,")");P.optional(function(){t.assert(e,"!"+n+"||"+a,"invalid framebuffer object")}),e.set(i,".next",a);var s=r.context;return e.set(s,"."+Kr,a+"?"+a+".width:"+s+"."+ei),e.set(s,"."+Jr,a+"?"+a+".height:"+s+"."+ni),a})}return null}(t),_=function(t,e,n){var r=t.static,i=t.dynamic;function o(t){if(t in r){var o=r[t];P.commandType(o,"object","invalid "+t,n.commandStr);var a,s,l=!0,u=0|o.x,c=0|o.y;return"width"in o?(a=0|o.width,P.command(a>=0,"invalid "+t,n.commandStr)):l=!1,"height"in o?(s=0|o.height,P.command(s>=0,"invalid "+t,n.commandStr)):l=!1,new ro(!l&&e&&e.thisDep,!l&&e&&e.contextDep,!l&&e&&e.propDep,function(t,e){var n=t.shared.context,r=a;"width"in o||(r=e.def(n,".",Kr,"-",u));var i=s;return"height"in o||(i=e.def(n,".",Jr,"-",c)),[u,c,r,i]})}if(t in i){var h=i[t],d=ao(h,function(e,n){var r=e.invoke(n,h);P.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)});var i=e.shared.context,o=n.def(r,".x|0"),a=n.def(r,".y|0"),s=n.def('"width" in ',r,"?",r,".width|0:","(",i,".",Kr,"-",o,")"),l=n.def('"height" in ',r,"?",r,".height|0:","(",i,".",Jr,"-",a,")");return P.optional(function(){e.assert(n,s+">=0&&"+l+">=0","invalid "+t)}),[o,a,s,l]});return e&&(d.thisDep=d.thisDep||e.thisDep,d.contextDep=d.contextDep||e.contextDep,d.propDep=d.propDep||e.propDep),d}return e?new ro(e.thisDep,e.contextDep,e.propDep,function(t,e){var n=t.shared.context;return[0,0,e.def(n,".",Kr),e.def(n,".",Jr)]}):null}var a=o(zr);if(a){var s=a;a=new ro(a.thisDep,a.contextDep,a.propDep,function(t,e){var n=s.append(t,e),r=t.shared.context;return e.set(r,"."+Qr,n[2]),e.set(r,"."+ti,n[3]),n})}return{viewport:a,scissor_box:o(Fr)}}(t,b,d),x=function(t,e){var n=t.static,r=t.dynamic,i=function(){if(Wr in n){var t=n[Wr];eo(t)?t=a.getElements(a.create(t,!0)):t&&(t=a.getElements(t),P.command(t,"invalid elements",e.commandStr));var i=oo(function(e,n){if(t){var r=e.link(t);return e.ELEMENTS=r,r}return e.ELEMENTS=null,null});return i.value=t,i}if(Wr in r){var o=r[Wr];return ao(o,function(t,e){var n=t.shared,r=n.isBufferArgs,i=n.elements,a=t.invoke(e,o),s=e.def("null"),l=e.def(r,"(",a,")"),u=t.cond(l).then(s,"=",i,".createStream(",a,");").else(s,"=",i,".getElements(",a,");");return P.optional(function(){t.assert(u.else,"!"+a+"||"+s,"invalid elements")}),e.entry(u),e.exit(t.cond(l).then(i,".destroyStream(",s,");")),t.ELEMENTS=s,s})}return null}();function o(t,o){if(t in n){var a=0|n[t];return P.command(!o||a>=0,"invalid "+t,e.commandStr),oo(function(t,e){return o&&(t.OFFSET=a),a})}if(t in r){var s=r[t];return ao(s,function(e,n){var r=e.invoke(n,s);return o&&(e.OFFSET=r,P.optional(function(){e.assert(n,r+">=0","invalid "+t)})),r})}return o&&i?oo(function(t,e){return t.OFFSET="0",0}):null}var s=o(Xr,!0);return{elements:i,primitive:function(){if(Ur in n){var t=n[Ur];return P.commandParameter(t,wt,"invalid primitve",e.commandStr),oo(function(e,n){return wt[t]})}if(Ur in r){var o=r[Ur];return ao(o,function(t,e){var n=t.constants.primTypes,r=t.invoke(e,o);return P.optional(function(){t.assert(e,r+" in "+n,"invalid primitive, must be one of "+Object.keys(wt))}),e.def(n,"[",r,"]")})}return i?io(i)?i.value?oo(function(t,e){return e.def(t.ELEMENTS,".primType")}):oo(function(){return Li}):new ro(i.thisDep,i.contextDep,i.propDep,function(t,e){var n=t.ELEMENTS;return e.def(n,"?",n,".primType:",Li)}):null}(),count:function(){if(Yr in n){var t=0|n[Yr];return P.command("number"==typeof t&&t>=0,"invalid vertex count",e.commandStr),oo(function(){return t})}if(Yr in r){var o=r[Yr];return ao(o,function(t,e){var n=t.invoke(e,o);return P.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count")}),n})}if(i){if(io(i)){if(i)return s?new ro(s.thisDep,s.contextDep,s.propDep,function(t,e){var n=e.def(t.ELEMENTS,".vertCount-",t.OFFSET);return P.optional(function(){t.assert(e,n+">=0","invalid vertex offset/element buffer too small")}),n}):oo(function(t,e){return e.def(t.ELEMENTS,".vertCount")});var a=oo(function(){return-1});return P.optional(function(){a.MISSING=!0}),a}var l=new ro(i.thisDep||s.thisDep,i.contextDep||s.contextDep,i.propDep||s.propDep,function(t,e){var n=t.ELEMENTS;return t.OFFSET?e.def(n,"?",n,".vertCount-",t.OFFSET,":-1"):e.def(n,"?",n,".vertCount:-1")});return P.optional(function(){l.DYNAMIC=!0}),l}return null}(),instances:o(qr,!1),offset:s}}(t,d),S=function(t,e){var n=t.static,r=t.dynamic,o={};return w.forEach(function(t){var a=k(t);function s(e,i){if(t in n){var s=e(n[t]);o[a]=oo(function(){return s})}else if(t in r){var l=r[t];o[a]=ao(l,function(t,e){return i(t,e,t.invoke(e,l))})}}switch(t){case Cr:case gr:case pr:case Pr:case br:case Br:case Er:case Ar:case Ir:case wr:return s(function(n){return P.commandType(n,"boolean",t,e.commandStr),n},function(e,n,r){return P.optional(function(){e.assert(n,"typeof "+r+'==="boolean"',"invalid flag "+t,e.commandStr)}),r});case _r:return s(function(n){return P.commandParameter(n,Ki,"invalid "+t,e.commandStr),Ki[n]},function(e,n,r){var i=e.constants.compareFuncs;return P.optional(function(){e.assert(n,r+" in "+i,"invalid "+t+", must be one of "+Object.keys(Ki))}),n.def(i,"[",r,"]")});case xr:return s(function(t){return P.command(Ft(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]&&t[0]<=t[1],"depth range is 2d array",e.commandStr),t},function(t,e,n){return P.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===2&&typeof "+n+'[0]==="number"&&typeof '+n+'[1]==="number"&&'+n+"[0]<="+n+"[1]","depth range must be a 2d array")}),[e.def("+",n,"[0]"),e.def("+",n,"[1]")]});case yr:return s(function(t){P.commandType(t,"object","blend.func",e.commandStr);var n="srcRGB"in t?t.srcRGB:t.src,r="srcAlpha"in t?t.srcAlpha:t.src,i="dstRGB"in t?t.dstRGB:t.dst,o="dstAlpha"in t?t.dstAlpha:t.dst;return P.commandParameter(n,qi,a+".srcRGB",e.commandStr),P.commandParameter(r,qi,a+".srcAlpha",e.commandStr),P.commandParameter(i,qi,a+".dstRGB",e.commandStr),P.commandParameter(o,qi,a+".dstAlpha",e.commandStr),P.command(-1===Zi.indexOf(n+", "+i),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+i+")",e.commandStr),[qi[n],qi[i],qi[r],qi[o]]},function(e,n,r){var i=e.constants.blendFuncs;function o(o,a){var s=n.def('"',o,a,'" in ',r,"?",r,".",o,a,":",r,".",o);return P.optional(function(){e.assert(n,s+" in "+i,"invalid "+t+"."+o+a+", must be one of "+Object.keys(qi))}),s}P.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid blend func, must be an object")});var a=o("src","RGB"),s=o("dst","RGB");P.optional(function(){var t=e.constants.invalidBlendCombinations;e.assert(n,t+".indexOf("+a+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var l=n.def(i,"[",a,"]"),u=n.def(i,"[",o("src","Alpha"),"]");return[l,n.def(i,"[",s,"]"),u,n.def(i,"[",o("dst","Alpha"),"]")]});case mr:return s(function(n){return"string"==typeof n?(P.commandParameter(n,m,"invalid "+t,e.commandStr),[m[n],m[n]]):"object"==typeof n?(P.commandParameter(n.rgb,m,t+".rgb",e.commandStr),P.commandParameter(n.alpha,m,t+".alpha",e.commandStr),[m[n.rgb],m[n.alpha]]):void P.commandRaise("invalid blend.equation",e.commandStr)},function(e,n,r){var i=e.constants.blendEquations,o=n.def(),a=n.def(),s=e.cond("typeof ",r,'==="string"');return P.optional(function(){function n(t,n,r){e.assert(t,r+" in "+i,"invalid "+n+", must be one of "+Object.keys(m))}n(s.then,t,r),e.assert(s.else,r+"&&typeof "+r+'==="object"',"invalid "+t),n(s.else,t+".rgb",r+".rgb"),n(s.else,t+".alpha",r+".alpha")}),s.then(o,"=",a,"=",i,"[",r,"];"),s.else(o,"=",i,"[",r,".rgb];",a,"=",i,"[",r,".alpha];"),n(s),[o,a]});case vr:return s(function(t){return P.command(Ft(t)&&4===t.length,"blend.color must be a 4d array",e.commandStr),Y(4,function(e){return+t[e]})},function(t,e,n){return P.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","blend.color must be a 4d array")}),Y(4,function(t){return e.def("+",n,"[",t,"]")})});case Lr:return s(function(t){return P.commandType(t,"number",a,e.commandStr),0|t},function(t,e,n){return P.optional(function(){t.assert(e,"typeof "+n+'==="number"',"invalid stencil.mask")}),e.def(n,"|0")});case jr:return s(function(n){P.commandType(n,"object",a,e.commandStr);var r=n.cmp||"keep",i=n.ref||0,o="mask"in n?n.mask:-1;return P.commandParameter(r,Ki,t+".cmp",e.commandStr),P.commandType(i,"number",t+".ref",e.commandStr),P.commandType(o,"number",t+".mask",e.commandStr),[Ki[r],i,o]},function(t,e,n){var r=t.constants.compareFuncs;return P.optional(function(){function i(){t.assert(e,Array.prototype.join.call(arguments,""),"invalid stencil.func")}i(n+"&&typeof ",n,'==="object"'),i('!("cmp" in ',n,")||(",n,".cmp in ",r,")")}),[e.def('"cmp" in ',n,"?",r,"[",n,".cmp]",":",$i),e.def(n,".ref|0"),e.def('"mask" in ',n,"?",n,".mask|0:-1")]});case Nr:case Rr:return s(function(n){P.commandType(n,"object",a,e.commandStr);var r=n.fail||"keep",i=n.zfail||"keep",o=n.zpass||"keep";return P.commandParameter(r,Ji,t+".fail",e.commandStr),P.commandParameter(i,Ji,t+".zfail",e.commandStr),P.commandParameter(o,Ji,t+".zpass",e.commandStr),[t===Rr?Ni:ji,Ji[r],Ji[i],Ji[o]]},function(e,n,r){var i=e.constants.stencilOps;function o(o){return P.optional(function(){e.assert(n,'!("'+o+'" in '+r+")||("+r+"."+o+" in "+i+")","invalid "+t+"."+o+", must be one of "+Object.keys(Ji))}),n.def('"',o,'" in ',r,"?",i,"[",r,".",o,"]:",$i)}return P.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)}),[t===Rr?Ni:ji,o("fail"),o("zfail"),o("zpass")]});case Tr:return s(function(t){P.commandType(t,"object",a,e.commandStr);var n=0|t.factor,r=0|t.units;return P.commandType(n,"number",a+".factor",e.commandStr),P.commandType(r,"number",a+".units",e.commandStr),[n,r]},function(e,n,r){return P.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)}),[n.def(r,".factor|0"),n.def(r,".units|0")]});case kr:return s(function(t){var n=0;return"front"===t?n=ji:"back"===t&&(n=Ni),P.command(!!n,a,e.commandStr),n},function(t,e,n){return P.optional(function(){t.assert(e,n+'==="front"||'+n+'==="back"',"invalid cull.face")}),e.def(n,'==="front"?',ji,":",Ni)});case Mr:return s(function(t){return P.command("number"==typeof t&&t>=i.lineWidthDims[0]&&t<=i.lineWidthDims[1],"invalid line width, must be a positive number between "+i.lineWidthDims[0]+" and "+i.lineWidthDims[1],e.commandStr),t},function(t,e,n){return P.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">="+i.lineWidthDims[0]+"&&"+n+"<="+i.lineWidthDims[1],"invalid line width")}),n});case Or:return s(function(t){return P.commandParameter(t,to,a,e.commandStr),to[t]},function(t,e,n){return P.optional(function(){t.assert(e,n+'==="cw"||'+n+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),e.def(n+'==="cw"?'+Ri+":"+Bi)});case Sr:return s(function(t){return P.command(Ft(t)&&4===t.length,"color.mask must be length 4 array",e.commandStr),t.map(function(t){return!!t})},function(t,e,n){return P.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask")}),Y(4,function(t){return"!!"+n+"["+t+"]"})});case Dr:return s(function(t){P.command("object"==typeof t&&t,a,e.commandStr);var n="value"in t?t.value:1,r=!!t.invert;return P.command("number"==typeof n&&n>=0&&n<=1,"sample.coverage.value must be a number between 0 and 1",e.commandStr),[n,r]},function(t,e,n){return P.optional(function(){t.assert(e,n+"&&typeof "+n+'==="object"',"invalid sample.coverage")}),[e.def('"value" in ',n,"?+",n,".value:1"),e.def("!!",n,".invert")]})}}),o}(t,d),C=function(t,e,r){var i=t.static,o=t.dynamic;function a(t){if(t in i){var e=n.id(i[t]);P.optional(function(){h.shader(Qi[t],e,P.guessCommand())});var r=oo(function(){return e});return r.id=e,r}if(t in o){var a=o[t];return ao(a,function(e,n){var r=e.invoke(n,a),i=n.def(e.shared.strings,".id(",r,")");return P.optional(function(){n(e.shared.shader,".shader(",Qi[t],",",i,",",e.command,");")}),i})}return null}var s,l=a(Hr),u=a(Gr),c=null;return io(l)&&io(u)?(c=h.program(u.id,l.id,null,r),s=oo(function(t,e){return t.link(c)})):s=new ro(l&&l.thisDep||u&&u.thisDep,l&&l.contextDep||u&&u.contextDep,l&&l.propDep||u&&u.propDep,function(t,e){var n,r=t.shared.shader;n=l?l.append(t,e):e.def(r,".",Hr);var i=r+".program("+(u?u.append(t,e):e.def(r,".",Gr))+","+n;return P.optional(function(){i+=","+t.command}),e.def(i+")")}),{frag:l,vert:u,progVar:s,program:c}}(t,0,g);function O(t){var e=_[t];e&&(S[t]=e)}O(zr),O(k(Fr));var M=Object.keys(S).length>0,E={framebuffer:b,draw:x,shader:C,state:S,dirty:M,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(E.profile=function(t){var e,n=t.static,r=t.dynamic;if(Vr in n){var i=!!n[Vr];(e=oo(function(t,e){return i})).enable=i}else if(Vr in r){var o=r[Vr];e=ao(o,function(t,e){return t.invoke(e,o)})}return e}(t),E.uniforms=function(t,e){var n=t.static,r=t.dynamic,i={};return Object.keys(n).forEach(function(t){var r,o=n[t];if("number"==typeof o||"boolean"==typeof o)r=oo(function(){return o});else if("function"==typeof o){var a=o._reglType;"texture2d"===a||"textureCube"===a?r=oo(function(t){return t.link(o)}):"framebuffer"===a||"framebufferCube"===a?(P.command(o.color.length>0,'missing color attachment for framebuffer sent to uniform "'+t+'"',e.commandStr),r=oo(function(t){return t.link(o.color[0])})):P.commandRaise('invalid data for uniform "'+t+'"',e.commandStr)}else Ft(o)?r=oo(function(e){return e.global.def("[",Y(o.length,function(n){return P.command("number"==typeof o[n]||"boolean"==typeof o[n],"invalid uniform "+t,e.commandStr),o[n]}),"]")}):P.commandRaise('invalid or missing data for uniform "'+t+'"',e.commandStr);r.value=o,i[t]=r}),Object.keys(r).forEach(function(t){var e=r[t];i[t]=ao(e,function(t,n){return t.invoke(n,e)})}),i}(s,d),E.drawVAO=E.scopeVAO=function(t,e){var n=t.static,r=t.dynamic;if(Zr in n){var i=n[Zr];return null!==i&&null===c.getVAO(i)&&(i=c.createVAO(i)),oo(function(t){return t.link(c.getVAO(i))})}if(Zr in r){var o=r[Zr];return ao(o,function(t,e){var n=t.invoke(e,o);return e.def(t.shared.vao+".getVAO("+n+")")})}return null}(t),!E.drawVAO&&C.program&&!g&&r.angle_instanced_arrays){var T=!0,A=C.program.attributes.map(function(t){var n=e.static[t];return T=T&&!!n,n});if(T&&A.length>0){var I=c.getVAO(c.createVAO(A));E.drawVAO=new ro(null,null,null,function(t,e){return t.link(I)}),E.useVAO=!0}}return g?E.useVAO=!0:E.attributes=function(t,e){var r=t.static,i=t.dynamic,a={};return Object.keys(r).forEach(function(t){var i=r[t],s=n.id(t),l=new v;if(eo(i))l.state=or,l.buffer=o.getBuffer(o.create(i,ii,!1,!0)),l.type=0;else{var u=o.getBuffer(i);if(u)l.state=or,l.buffer=u,l.type=0;else if(P.command("object"==typeof i&&i,"invalid data for attribute "+t,e.commandStr),"constant"in i){var c=i.constant;l.buffer="null",l.state=ar,"number"==typeof c?l.x=c:(P.command(Ft(c)&&c.length>0&&c.length<=4,"invalid constant for attribute "+t,e.commandStr),rr.forEach(function(t,e){e<c.length&&(l[t]=c[e])}))}else{u=eo(i.buffer)?o.getBuffer(o.create(i.buffer,ii,!1,!0)):o.getBuffer(i.buffer),P.command(!!u,'missing buffer for attribute "'+t+'"',e.commandStr);var h=0|i.offset;P.command(h>=0,'invalid offset for attribute "'+t+'"',e.commandStr);var d=0|i.stride;P.command(d>=0&&d<256,'invalid stride for attribute "'+t+'", must be integer betweeen [0, 255]',e.commandStr);var f=0|i.size;P.command(!("size"in i)||f>0&&f<=4,'invalid size for attribute "'+t+'", must be 1,2,3,4',e.commandStr);var p=!!i.normalized,g=0;"type"in i&&(P.commandParameter(i.type,ct,"invalid type for attribute "+t,e.commandStr),g=ct[i.type]);var m=0|i.divisor;"divisor"in i&&(P.command(0===m||y,'cannot specify divisor for attribute "'+t+'", instancing not supported',e.commandStr),P.command(m>=0,'invalid divisor for attribute "'+t+'"',e.commandStr)),P.optional(function(){var n=e.commandStr,r=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(i).forEach(function(e){P.command(r.indexOf(e)>=0,'unknown parameter "'+e+'" for attribute pointer "'+t+'" (valid parameters are '+r+")",n)})}),l.buffer=u,l.state=or,l.size=f,l.normalized=p,l.type=g||u.dtype,l.offset=h,l.stride=d,l.divisor=m}}a[t]=oo(function(t,e){var n=t.attribCache;if(s in n)return n[s];var r={isStream:!1};return Object.keys(l).forEach(function(t){r[t]=l[t]}),l.buffer&&(r.buffer=t.link(l.buffer),r.type=r.type||r.buffer+".dtype"),n[s]=r,r})}),Object.keys(i).forEach(function(t){var e=i[t];a[t]=ao(e,function(n,r){var i=n.invoke(r,e),o=n.shared,a=n.constants,s=o.isBufferArgs,l=o.buffer;P.optional(function(){n.assert(r,i+"&&(typeof "+i+'==="object"||typeof '+i+'==="function")&&('+s+"("+i+")||"+l+".getBuffer("+i+")||"+l+".getBuffer("+i+".buffer)||"+s+"("+i+'.buffer)||("constant" in '+i+"&&(typeof "+i+'.constant==="number"||'+o.isArrayLike+"("+i+".constant))))",'invalid dynamic attribute "'+t+'"')});var u={isStream:r.def(!1)},c=new v;c.state=or,Object.keys(c).forEach(function(t){u[t]=r.def(""+c[t])});var h=u.buffer,d=u.type;function f(t){r(u[t],"=",i,".",t,"|0;")}return r("if(",s,"(",i,")){",u.isStream,"=true;",h,"=",l,".createStream(",ii,",",i,");",d,"=",h,".dtype;","}else{",h,"=",l,".getBuffer(",i,");","if(",h,"){",d,"=",h,".dtype;",'}else if("constant" in ',i,"){",u.state,"=",ar,";","if(typeof "+i+'.constant === "number"){',u[rr[0]],"=",i,".constant;",rr.slice(1).map(function(t){return u[t]}).join("="),"=0;","}else{",rr.map(function(t,e){return u[t]+"="+i+".constant.length>"+e+"?"+i+".constant["+e+"]:0;"}).join(""),"}}else{","if(",s,"(",i,".buffer)){",h,"=",l,".createStream(",ii,",",i,".buffer);","}else{",h,"=",l,".getBuffer(",i,".buffer);","}",d,'="type" in ',i,"?",a.glTypes,"[",i,".type]:",h,".dtype;",u.normalized,"=!!",i,".normalized;"),f("size"),f("offset"),f("stride"),f("divisor"),r("}}"),r.exit("if(",u.isStream,"){",l,".destroyStream(",h,");","}"),u})}),a}(e,d),E.context=function(t){var e=t.static,n=t.dynamic,r={};return Object.keys(e).forEach(function(t){var n=e[t];r[t]=oo(function(t,e){return"number"==typeof n||"boolean"==typeof n?""+n:t.link(n)})}),Object.keys(n).forEach(function(t){var e=n[t];r[t]=ao(e,function(t,n){return t.invoke(n,e)})}),r}(u),E}function L(t,e,n){var r=t.shared.context,i=t.scope();Object.keys(n).forEach(function(o){e.save(r,"."+o);var a=n[o].append(t,e);Array.isArray(a)?i(r,".",o,"=[",a.join(),"];"):i(r,".",o,"=",a,";")}),e(i)}function j(t,e,n,r){var i,o=t.shared,a=o.gl,s=o.framebuffer;b&&(i=e.def(o.extensions,".webgl_draw_buffers"));var l,u=t.constants,c=u.drawBuffer,h=u.backBuffer;l=n?n.append(t,e):e.def(s,".next"),r||e("if(",l,"!==",s,".cur){"),e("if(",l,"){",a,".bindFramebuffer(",Yi,",",l,".framebuffer);"),b&&e(i,".drawBuffersWEBGL(",c,"[",l,".colorAttachments.length]);"),e("}else{",a,".bindFramebuffer(",Yi,",null);"),b&&e(i,".drawBuffersWEBGL(",h,");"),e("}",s,".cur=",l,";"),r||e("}")}function N(t,e,n){var r=t.shared,i=r.gl,o=t.current,a=t.next,s=r.current,l=r.next,u=t.cond(s,".dirty");w.forEach(function(e){var r,c,h=k(e);if(!(h in n.state))if(h in a){r=a[h],c=o[h];var d=Y(_[h].length,function(t){return u.def(r,"[",t,"]")});u(t.cond(d.map(function(t,e){return t+"!=="+c+"["+e+"]"}).join("||")).then(i,".",C[h],"(",d,");",d.map(function(t,e){return c+"["+e+"]="+t}).join(";"),";"))}else{r=u.def(l,".",h);var f=t.cond(r,"!==",s,".",h);u(f),h in S?f(t.cond(r).then(i,".enable(",S[h],");").else(i,".disable(",S[h],");"),s,".",h,"=",r,";"):f(i,".",C[h],"(",r,");",s,".",h,"=",r,";")}}),0===Object.keys(n.state).length&&u(s,".dirty=false;"),e(u)}function R(t,e,n,r){var i=t.shared,o=t.current,a=i.current,s=i.gl;no(Object.keys(n)).forEach(function(i){var l=n[i];if(!r||r(l)){var u=l.append(t,e);if(S[i]){var c=S[i];io(l)?e(s,u?".enable(":".disable(",c,");"):e(t.cond(u).then(s,".enable(",c,");").else(s,".disable(",c,");")),e(a,".",i,"=",u,";")}else if(Ft(u)){var h=o[i];e(s,".",C[i],"(",u,");",u.map(function(t,e){return h+"["+e+"]="+t}).join(";"),";")}else e(s,".",C[i],"(",u,");",a,".",i,"=",u,";")}})}function B(t,e){y&&(t.instancing=e.def(t.shared.extensions,".angle_instanced_arrays"))}function F(t,e,n,r,i){var o,a,s,l=t.shared,u=t.stats,c=l.current,h=l.timer,d=n.profile;function f(){return"undefined"==typeof performance?"Date.now()":"performance.now()"}function g(t){t(o=e.def(),"=",f(),";"),"string"==typeof i?t(u,".count+=",i,";"):t(u,".count++;"),p&&(r?t(a=e.def(),"=",h,".getNumPendingQueries();"):t(h,".beginQuery(",u,");"))}function v(t){t(u,".cpuTime+=",f(),"-",o,";"),p&&(r?t(h,".pushScopeStats(",a,",",h,".getNumPendingQueries(),",u,");"):t(h,".endQuery();"))}function m(t){var n=e.def(c,".profile");e(c,".profile=",t,";"),e.exit(c,".profile=",n,";")}if(d){if(io(d))return void(d.enable?(g(e),v(e.exit),m("true")):m("false"));m(s=d.append(t,e))}else s=e.def(c,".profile");var y=t.block();g(y),e("if(",s,"){",y,"}");var b=t.block();v(b),e.exit("if(",s,"){",b,"}")}function z(t,e,n,r,i){var o=t.shared;r.forEach(function(r){var a,s=r.name,l=n.attributes[s];if(l){if(!i(l))return;a=l.append(t,e)}else{if(!i(so))return;var u=t.scopeAttrib(s);P.optional(function(){t.assert(e,u+".state","missing attribute "+s)}),a={},Object.keys(new v).forEach(function(t){a[t]=e.def(u,".",t)})}!function(n,r,i){var a=o.gl,s=e.def(n,".location"),l=e.def(o.attributes,"[",s,"]"),u=i.state,c=i.buffer,h=[i.x,i.y,i.z,i.w],d=["buffer","normalized","offset","stride"];function f(){e("if(!",l,".buffer){",a,".enableVertexAttribArray(",s,");}");var n,o=i.type;if(n=i.size?e.def(i.size,"||",r):r,e("if(",l,".type!==",o,"||",l,".size!==",n,"||",d.map(function(t){return l+"."+t+"!=="+i[t]}).join("||"),"){",a,".bindBuffer(",ii,",",c,".buffer);",a,".vertexAttribPointer(",[s,n,o,i.normalized,i.stride,i.offset],");",l,".type=",o,";",l,".size=",n,";",d.map(function(t){return l+"."+t+"="+i[t]+";"}).join(""),"}"),y){var u=i.divisor;e("if(",l,".divisor!==",u,"){",t.instancing,".vertexAttribDivisorANGLE(",[s,u],");",l,".divisor=",u,";}")}}function p(){e("if(",l,".buffer){",a,".disableVertexAttribArray(",s,");",l,".buffer=null;","}if(",rr.map(function(t,e){return l+"."+t+"!=="+h[e]}).join("||"),"){",a,".vertexAttrib4f(",s,",",h,");",rr.map(function(t,e){return l+"."+t+"="+h[e]+";"}).join(""),"}")}u===or?f():u===ar?p():(e("if(",u,"===",or,"){"),f(),e("}else{"),p(),e("}"))}(t.link(r),function(t){switch(t){case yi:case wi:case Oi:return 2;case bi:case Si:case Mi:return 3;case _i:case Ci:case Ei:return 4;default:return 1}}(r.info.type),a)})}function $(t,e,r,i,o){for(var a,s=t.shared,l=s.gl,u=0;u<i.length;++u){var c,h=i[u],d=h.name,f=h.info.type,p=r.uniforms[d],g=t.link(h)+".location";if(p){if(!o(p))continue;if(io(p)){var v=p.value;if(P.command(null!==v&&void 0!==v,'missing uniform "'+d+'"',t.commandStr),f===Di||f===Pi){P.command("function"==typeof v&&(f===Di&&("texture2d"===v._reglType||"framebuffer"===v._reglType)||f===Pi&&("textureCube"===v._reglType||"framebufferCube"===v._reglType)),"invalid texture for uniform "+d,t.commandStr);var m=t.link(v._texture||v.color[0]._texture);e(l,".uniform1i(",g,",",m+".bind());"),e.exit(m,".unbind();")}else if(f===Ti||f===Ai||f===Ii){P.optional(function(){P.command(Ft(v),"invalid matrix for uniform "+d,t.commandStr),P.command(f===Ti&&4===v.length||f===Ai&&9===v.length||f===Ii&&16===v.length,"invalid length for matrix uniform "+d,t.commandStr)});var y=t.global.def("new Float32Array(["+Array.prototype.slice.call(v)+"])"),b=2;f===Ai?b=3:f===Ii&&(b=4),e(l,".uniformMatrix",b,"fv(",g,",false,",y,");")}else{switch(f){case mi:P.commandType(v,"number","uniform "+d,t.commandStr),a="1f";break;case yi:P.command(Ft(v)&&2===v.length,"uniform "+d,t.commandStr),a="2f";break;case bi:P.command(Ft(v)&&3===v.length,"uniform "+d,t.commandStr),a="3f";break;case _i:P.command(Ft(v)&&4===v.length,"uniform "+d,t.commandStr),a="4f";break;case ki:P.commandType(v,"boolean","uniform "+d,t.commandStr),a="1i";break;case xi:P.commandType(v,"number","uniform "+d,t.commandStr),a="1i";break;case Oi:case wi:P.command(Ft(v)&&2===v.length,"uniform "+d,t.commandStr),a="2i";break;case Mi:case Si:P.command(Ft(v)&&3===v.length,"uniform "+d,t.commandStr),a="3i";break;case Ei:case Ci:P.command(Ft(v)&&4===v.length,"uniform "+d,t.commandStr),a="4i"}e(l,".uniform",a,"(",g,",",Ft(v)?Array.prototype.slice.call(v):v,");")}continue}c=p.append(t,e)}else{if(!o(so))continue;c=e.def(s.uniforms,"[",n.id(d),"]")}f===Di?(P(!Array.isArray(c),"must specify a scalar prop for textures"),e("if(",c,"&&",c,'._reglType==="framebuffer"){',c,"=",c,".color[0];","}")):f===Pi&&(P(!Array.isArray(c),"must specify a scalar prop for cube maps"),e("if(",c,"&&",c,'._reglType==="framebufferCube"){',c,"=",c,".color[0];","}")),P.optional(function(){function n(n,r){t.assert(e,n,'bad data or missing for uniform "'+d+'". '+r)}function r(t){P(!Array.isArray(c),"must not specify an array type for uniform"),n("typeof "+c+'==="'+t+'"',"invalid type, expected "+t)}function i(e,r){Array.isArray(c)?P(c.length===e,"must have length "+e):n(s.isArrayLike+"("+c+")&&"+c+".length==="+e,"invalid vector, should have length "+e,t.commandStr)}function o(e){P(!Array.isArray(c),"must not specify a value type"),n("typeof "+c+'==="function"&&'+c+'._reglType==="texture'+(e===ai?"2d":"Cube")+'"',"invalid texture type",t.commandStr)}switch(f){case xi:r("number");break;case wi:i(2);break;case Si:i(3);break;case Ci:i(4);break;case mi:r("number");break;case yi:i(2);break;case bi:i(3);break;case _i:i(4);break;case ki:r("boolean");break;case Oi:i(2);break;case Mi:i(3);break;case Ei:case Ti:i(4);break;case Ai:i(9);break;case Ii:i(16);break;case Di:o(ai);break;case Pi:o(si)}});var _=1;switch(f){case Di:case Pi:var x=e.def(c,"._texture");e(l,".uniform1i(",g,",",x,".bind());"),e.exit(x,".unbind();");continue;case xi:case ki:a="1i";break;case wi:case Oi:a="2i",_=2;break;case Si:case Mi:a="3i",_=3;break;case Ci:case Ei:a="4i",_=4;break;case mi:a="1f";break;case yi:a="2f",_=2;break;case bi:a="3f",_=3;break;case _i:a="4f",_=4;break;case Ti:a="Matrix2fv";break;case Ai:a="Matrix3fv";break;case Ii:a="Matrix4fv"}if(e(l,".uniform",a,"(",g,","),"M"===a.charAt(0)){var w=Math.pow(f-Ti+2,2),S=t.global.def("new Float32Array(",w,")");Array.isArray(c)?e("false,(",Y(w,function(t){return S+"["+t+"]="+c[t]}),",",S,")"):e("false,(Array.isArray(",c,")||",c," instanceof Float32Array)?",c,":(",Y(w,function(t){return S+"["+t+"]="+c+"["+t+"]"}),",",S,")")}else _>1?e(Y(_,function(t){return Array.isArray(c)?c[t]:c+"["+t+"]"})):(P(!Array.isArray(c),"uniform value must not be an array"),e(c));e(");")}}function G(t,e,n,r){var i=t.shared,o=i.gl,a=i.draw,s=r.draw;var l=function(){var i,l=s.elements,u=e;return l?((l.contextDep&&r.contextDynamic||l.propDep)&&(u=n),i=l.append(t,u)):i=u.def(a,".",Wr),i&&u("if("+i+")"+o+".bindBuffer("+oi+","+i+".buffer.buffer);"),i}();function u(i){var o=s[i];return o?o.contextDep&&r.contextDynamic||o.propDep?o.append(t,n):o.append(t,e):e.def(a,".",i)}var c,h,d=u(Ur),f=u(Xr),p=function(){var i,o=s.count,l=e;return o?((o.contextDep&&r.contextDynamic||o.propDep)&&(l=n),i=o.append(t,l),P.optional(function(){o.MISSING&&t.assert(e,"false","missing vertex count"),o.DYNAMIC&&t.assert(l,i+">=0","missing vertex count")})):(i=l.def(a,".",Yr),P.optional(function(){t.assert(l,i+">=0","missing vertex count")})),i}();if("number"==typeof p){if(0===p)return}else n("if(",p,"){"),n.exit("}");y&&(c=u(qr),h=t.instancing);var g=l+".type",v=s.elements&&io(s.elements);function m(){function t(){n(h,".drawElementsInstancedANGLE(",[d,p,g,f+"<<(("+g+"-"+ir+")>>1)",c],");")}function e(){n(h,".drawArraysInstancedANGLE(",[d,f,p,c],");")}l?v?t():(n("if(",l,"){"),t(),n("}else{"),e(),n("}")):e()}function b(){function t(){n(o+".drawElements("+[d,p,g,f+"<<(("+g+"-"+ir+")>>1)"]+");")}function e(){n(o+".drawArrays("+[d,f,p]+");")}l?v?t():(n("if(",l,"){"),t(),n("}else{"),e(),n("}")):e()}y&&("number"!=typeof c||c>=0)?"string"==typeof c?(n("if(",c,">0){"),m(),n("}else if(",c,"<0){"),b(),n("}")):m():b()}function H(t,e,n,r,i){var o=I(),a=o.proc("body",i);return P.optional(function(){o.commandStr=e.commandStr,o.command=o.link(e.commandStr)}),y&&(o.instancing=a.def(o.shared.extensions,".angle_instanced_arrays")),t(o,a,n,r),o.compile().body}function W(t,e,n,r){B(t,e),n.useVAO?n.drawVAO?e(t.shared.vao,".setVAO(",n.drawVAO.append(t,e),");"):e(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(e(t.shared.vao,".setVAO(null);"),z(t,e,n,r.attributes,function(){return!0})),$(t,e,n,r.uniforms,function(){return!0}),G(t,e,e,n)}function U(t,e,n,r){function i(){return!0}t.batchId="a1",B(t,e),z(t,e,n,r.attributes,i),$(t,e,n,r.uniforms,i),G(t,e,e,n)}function X(t,e,n,r){B(t,e);var i=n.contextDep,o=e.def(),a=e.def();t.shared.props=a,t.batchId=o;var s=t.scope(),l=t.scope();function u(t){return t.contextDep&&i||t.propDep}function c(t){return!u(t)}if(e(s.entry,"for(",o,"=0;",o,"<","a1",";++",o,"){",a,"=","a0","[",o,"];",l,"}",s.exit),n.needsContext&&L(t,l,n.context),n.needsFramebuffer&&j(t,l,n.framebuffer),R(t,l,n.state,u),n.profile&&u(n.profile)&&F(t,l,n,!1,!0),r)n.useVAO?n.drawVAO?u(n.drawVAO)?l(t.shared.vao,".setVAO(",n.drawVAO.append(t,l),");"):s(t.shared.vao,".setVAO(",n.drawVAO.append(t,s),");"):s(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(s(t.shared.vao,".setVAO(null);"),z(t,s,n,r.attributes,c),z(t,l,n,r.attributes,u)),$(t,s,n,r.uniforms,c),$(t,l,n,r.uniforms,u),G(t,s,l,n);else{var h=t.global.def("{}"),d=n.shader.progVar.append(t,l),f=l.def(d,".id"),p=l.def(h,"[",f,"]");l(t.shared.gl,".useProgram(",d,".program);","if(!",p,"){",p,"=",h,"[",f,"]=",t.link(function(e){return H(U,t,n,e,2)}),"(",d,");}",p,".call(this,a0[",o,"],",o,");")}}function q(t,e,n){var r=e.static[n];if(r&&function(t){if("object"==typeof t&&!Ft(t)){for(var e=Object.keys(t),n=0;n<e.length;++n)if(V.isDynamic(t[e[n]]))return!0;return!1}}(r)){var i=t.global,o=Object.keys(r),a=!1,s=!1,l=!1,u=t.global.def("{}");o.forEach(function(e){var n=r[e];if(V.isDynamic(n)){"function"==typeof n&&(n=r[e]=V.unbox(n));var o=ao(n,null);a=a||o.thisDep,l=l||o.propDep,s=s||o.contextDep}else{switch(i(u,".",e,"="),typeof n){case"number":i(n);break;case"string":i('"',n,'"');break;case"object":Array.isArray(n)&&i("[",n.join(),"]");break;default:i(t.link(n))}i(";")}}),e.dynamic[n]=new V.DynamicVariable(hr,{thisDep:a,contextDep:s,propDep:l,ref:u,append:function(t,e){o.forEach(function(n){var i=r[n];if(V.isDynamic(i)){var o=t.invoke(e,i);e(u,".",n,"=",o,";")}})}}),delete e.static[n]}}return{next:x,current:_,procs:function(){var t=I(),e=t.proc("poll"),n=t.proc("refresh"),o=t.block();e(o),n(o);var a,s=t.shared,l=s.gl,u=s.next,c=s.current;o(c,".dirty=false;"),j(t,e),j(t,n,null,!0),y&&(a=t.link(y)),r.oes_vertex_array_object&&n(t.link(r.oes_vertex_array_object),".bindVertexArrayOES(null);");for(var h=0;h<i.maxAttributes;++h){var d=n.def(s.attributes,"[",h,"]"),f=t.cond(d,".buffer");f.then(l,".enableVertexAttribArray(",h,");",l,".bindBuffer(",ii,",",d,".buffer.buffer);",l,".vertexAttribPointer(",h,",",d,".size,",d,".type,",d,".normalized,",d,".stride,",d,".offset);").else(l,".disableVertexAttribArray(",h,");",l,".vertexAttrib4f(",h,",",d,".x,",d,".y,",d,".z,",d,".w);",d,".buffer=null;"),n(f),y&&n(a,".vertexAttribDivisorANGLE(",h,",",d,".divisor);")}return n(t.shared.vao,".currentVAO=null;",t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"),Object.keys(S).forEach(function(r){var i=S[r],a=o.def(u,".",r),s=t.block();s("if(",a,"){",l,".enable(",i,")}else{",l,".disable(",i,")}",c,".",r,"=",a,";"),n(s),e("if(",a,"!==",c,".",r,"){",s,"}")}),Object.keys(C).forEach(function(r){var i,a,s=C[r],h=_[r],d=t.block();if(d(l,".",s,"("),Ft(h)){var f=h.length;i=t.global.def(u,".",r),a=t.global.def(c,".",r),d(Y(f,function(t){return i+"["+t+"]"}),");",Y(f,function(t){return a+"["+t+"]="+i+"["+t+"];"}).join("")),e("if(",Y(f,function(t){return i+"["+t+"]!=="+a+"["+t+"]"}).join("||"),"){",d,"}")}else i=o.def(u,".",r),a=o.def(c,".",r),d(i,");",c,".",r,"=",i,";"),e("if(",i,"!==",a,"){",d,"}");n(d)}),t.compile()}(),compile:function(t,r,i,o,a){var s=I();s.stats=s.link(a),Object.keys(r.static).forEach(function(t){q(s,r,t)}),ri.forEach(function(e){q(s,t,e)});var l=D(t,r,i,o,s);return function(t,e){var n=t.proc("draw",1);B(t,n),L(t,n,e.context),j(t,n,e.framebuffer),N(t,n,e),R(t,n,e.state),F(t,n,e,!1,!0);var r=e.shader.progVar.append(t,n);if(n(t.shared.gl,".useProgram(",r,".program);"),e.shader.program)W(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var i=t.global.def("{}"),o=n.def(r,".id"),a=n.def(i,"[",o,"]");n(t.cond(a).then(a,".call(this,a0);").else(a,"=",i,"[",o,"]=",t.link(function(n){return H(W,t,e,n,1)}),"(",r,");",a,".call(this,a0);"))}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}(s,l),function(t,e){var r=t.proc("scope",3);t.batchId="a2";var i=t.shared,o=i.current;function a(n){var o=e.shader[n];o&&r.set(i.shader,"."+n,o.append(t,r))}L(t,r,e.context),e.framebuffer&&e.framebuffer.append(t,r),no(Object.keys(e.state)).forEach(function(n){var o=e.state[n].append(t,r);Ft(o)?o.forEach(function(e,i){r.set(t.next[n],"["+i+"]",e)}):r.set(i.next,"."+n,o)}),F(t,r,e,!0,!0),[Wr,Xr,Yr,qr,Ur].forEach(function(n){var o=e.draw[n];o&&r.set(i.draw,"."+n,""+o.append(t,r))}),Object.keys(e.uniforms).forEach(function(o){var a=e.uniforms[o].append(t,r);Array.isArray(a)&&(a="["+a.join()+"]"),r.set(i.uniforms,"["+n.id(o)+"]",a)}),Object.keys(e.attributes).forEach(function(n){var i=e.attributes[n].append(t,r),o=t.scopeAttrib(n);Object.keys(new v).forEach(function(t){r.set(o,"."+t,i[t])})}),e.scopeVAO&&r.set(i.vao,".targetVAO",e.scopeVAO.append(t,r)),a(Gr),a(Hr),Object.keys(e.state).length>0&&(r(o,".dirty=true;"),r.exit(o,".dirty=true;")),r("a1(",t.shared.context,",a0,",t.batchId,");")}(s,l),function(t,e){var n=t.proc("batch",2);t.batchId="0",B(t,n);var r=!1,i=!0;Object.keys(e.context).forEach(function(t){r=r||e.context[t].propDep}),r||(L(t,n,e.context),i=!1);var o=e.framebuffer,a=!1;function s(t){return t.contextDep&&r||t.propDep}o?(o.propDep?r=a=!0:o.contextDep&&r&&(a=!0),a||j(t,n,o)):j(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(r=!0),N(t,n,e),R(t,n,e.state,function(t){return!s(t)}),e.profile&&s(e.profile)||F(t,n,e,!1,"a1"),e.contextDep=r,e.needsContext=i,e.needsFramebuffer=a;var l=e.shader.progVar;if(l.contextDep&&r||l.propDep)X(t,n,e,null);else{var u=l.append(t,n);if(n(t.shared.gl,".useProgram(",u,".program);"),e.shader.program)X(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var c=t.global.def("{}"),h=n.def(u,".id"),d=n.def(c,"[",h,"]");n(t.cond(d).then(d,".call(this,a0,a1);").else(d,"=",c,"[",h,"]=",t.link(function(n){return H(X,t,e,n,2)}),"(",u,");",d,".call(this,a0,a1);"))}}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}(s,l),e(s.compile(),{destroy:function(){l.shader.program.destroy()}})}}}var uo=34918,co=34919,ho=35007,fo=function(t,e){if(!e.ext_disjoint_timer_query)return null;var n=[];function r(t){n.push(t)}var i=[];var o=[];function a(t){o.push(t)}var s=[];function l(t,e,n){var r=o.pop()||new function(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null};r.startQueryIndex=t,r.endQueryIndex=e,r.sum=0,r.stats=n,s.push(r)}var u=[],c=[];return{beginQuery:function(t){var r=n.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(ho,r),i.push(r),l(i.length-1,i.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(ho)},pushScopeStats:l,update:function(){var t,n,o=i.length;if(0!==o){c.length=Math.max(c.length,o+1),u.length=Math.max(u.length,o+1),u[0]=0,c[0]=0;var l=0;for(t=0,n=0;n<i.length;++n){var h=i[n];e.ext_disjoint_timer_query.getQueryObjectEXT(h,co)?(l+=e.ext_disjoint_timer_query.getQueryObjectEXT(h,uo),r(h)):i[t++]=h,u[n+1]=l,c[n+1]=t}for(i.length=t,t=0,n=0;n<s.length;++n){var d=s[n],f=d.startQueryIndex,p=d.endQueryIndex;d.sum+=u[p]-u[f];var g=c[f],v=c[p];v===g?(d.stats.gpuTime+=d.sum/1e6,a(d)):(d.startQueryIndex=g,d.endQueryIndex=v,s[t++]=d)}s.length=t}},getNumPendingQueries:function(){return i.length},clear:function(){n.push.apply(n,i);for(var t=0;t<n.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(n[t]);i.length=0,n.length=0},restore:function(){i.length=0,n.length=0}}},po=16384,go=256,vo=1024,mo=34962,yo="webglcontextlost",bo="webglcontextrestored",_o=1,xo=2,wo=3;function So(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}return function(n){var r=U(n);if(!r)return null;var i=r.gl,o=i.getContextAttributes(),a=i.isContextLost(),s=function(t,e){var n={};function r(e){P.type(e,"string","extension name must be string");var r,i=e.toLowerCase();try{r=n[i]=t.getExtension(i)}catch(t){}return!!r}for(var i=0;i<e.extensions.length;++i){var o=e.extensions[i];if(!r(o))return e.onDestroy(),e.onDone('"'+o+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(t){if(n[t]&&!r(t))throw new Error("(regl): error restoring extension "+t)})}}}(i,r);if(!s)return null;var l,u,c=(l={"":0},u=[""],{id:function(t){var e=l[t];return e||(e=l[t]=u.length,u.push(t),e)},str:function(t){return u[t]}}),h={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},d=s.extensions,f=fo(i,d),p=G(),g=i.drawingBufferWidth,v=i.drawingBufferHeight,m={tick:0,time:0,viewportWidth:g,viewportHeight:v,framebufferWidth:g,framebufferHeight:v,drawingBufferWidth:g,drawingBufferHeight:v,pixelRatio:r.pixelRatio},y=it(i,d),b=function(e,n,r,i){var o=0,a={};function s(t){this.id=o++,this.buffer=e.createBuffer(),this.type=t,this.usage=pt,this.byteLength=0,this.dimension=1,this.dtype=vt,this.persistentData=null,r.profile&&(this.stats={size:0})}s.prototype.bind=function(){e.bindBuffer(this.type,this.buffer)},s.prototype.destroy=function(){h(this)};var l=[];function u(t,n,r){t.byteLength=n.byteLength,e.bufferData(t.type,n,r)}function c(e,n,r,i,o,a){var s,l;if(e.usage=r,Array.isArray(n)){if(e.dtype=i||mt,n.length>0)if(Array.isArray(n[0])){s=ft(n);for(var c=1,h=1;h<s.length;++h)c*=s[h];e.dimension=c,u(e,l=dt(n,s,e.dtype),r),a?e.persistentData=l:rt.freeType(l)}else if("number"==typeof n[0]){e.dimension=o;var d=rt.allocType(e.dtype,n.length);_t(d,n),u(e,d,r),a?e.persistentData=d:rt.freeType(d)}else t(n[0])?(e.dimension=n[0].length,e.dtype=i||bt(n[0])||mt,u(e,l=dt(n,[n.length,n[0].length],e.dtype),r),a?e.persistentData=l:rt.freeType(l)):P.raise("invalid buffer data")}else if(t(n))e.dtype=i||bt(n),e.dimension=o,u(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n.buffer)));else if(ot(n)){s=n.shape;var f=n.stride,p=n.offset,g=0,v=0,m=0,y=0;1===s.length?(g=s[0],v=1,m=f[0],y=0):2===s.length?(g=s[0],v=s[1],m=f[0],y=f[1]):P.raise("invalid shape"),e.dtype=i||bt(n.data)||mt,e.dimension=v;var b=rt.allocType(e.dtype,g*v);xt(b,n.data,g,v,m,y,p),u(e,b,r),a?e.persistentData=b:rt.freeType(b)}else n instanceof ArrayBuffer?(e.dtype=vt,e.dimension=o,u(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n)))):P.raise("invalid buffer data")}function h(t){n.bufferCount--,i(t);var r=t.buffer;P(r,"buffer must not be deleted already"),e.deleteBuffer(r),t.buffer=null,delete a[t.id]}return r.profile&&(n.getTotalBufferSize=function(){var t=0;return Object.keys(a).forEach(function(e){t+=a[e].stats.size}),t}),{create:function(i,o,l,u){n.bufferCount++;var d=new s(o);function f(n){var i=pt,o=null,a=0,s=0,l=1;return Array.isArray(n)||t(n)||ot(n)||n instanceof ArrayBuffer?o=n:"number"==typeof n?a=0|n:n&&(P.type(n,"object","buffer arguments must be an object, a number or an array"),"data"in n&&(P(null===o||Array.isArray(o)||t(o)||ot(o),"invalid data for buffer"),o=n.data),"usage"in n&&(P.parameter(n.usage,ht,"invalid buffer usage"),i=ht[n.usage]),"type"in n&&(P.parameter(n.type,ct,"invalid buffer type"),s=ct[n.type]),"dimension"in n&&(P.type(n.dimension,"number","invalid dimension"),l=0|n.dimension),"length"in n&&(P.nni(a,"buffer length must be a nonnegative integer"),a=0|n.length)),d.bind(),o?c(d,o,i,s,l,u):(a&&e.bufferData(d.type,a,i),d.dtype=s||vt,d.usage=i,d.dimension=l,d.byteLength=a),r.profile&&(d.stats.size=d.byteLength*yt[d.dtype]),f}function p(t,n){P(n+t.byteLength<=d.byteLength,"invalid buffer subdata call, buffer is too small. Can't write data of size "+t.byteLength+" starting from offset "+n+" to a buffer of size "+d.byteLength),e.bufferSubData(d.type,n,t)}return a[d.id]=d,l||f(i),f._reglType="buffer",f._buffer=d,f.subdata=function(e,n){var r,i=0|(n||0);if(d.bind(),t(e)||e instanceof ArrayBuffer)p(e,i);else if(Array.isArray(e)){if(e.length>0)if("number"==typeof e[0]){var o=rt.allocType(d.dtype,e.length);_t(o,e),p(o,i),rt.freeType(o)}else if(Array.isArray(e[0])||t(e[0])){r=ft(e);var a=dt(e,r,d.dtype);p(a,i),rt.freeType(a)}else P.raise("invalid buffer data")}else if(ot(e)){r=e.shape;var s=e.stride,l=0,u=0,c=0,h=0;1===r.length?(l=r[0],u=1,c=s[0],h=0):2===r.length?(l=r[0],u=r[1],c=s[0],h=s[1]):P.raise("invalid shape");var g=Array.isArray(e.data)?d.dtype:bt(e.data),v=rt.allocType(g,l*u);xt(v,e.data,l,u,c,h,e.offset),p(v,i),rt.freeType(v)}else P.raise("invalid data for buffer subdata");return f},r.profile&&(f.stats=d.stats),f.destroy=function(){h(d)},f},createStream:function(t,e){var n=l.pop();return n||(n=new s(t)),n.bind(),c(n,e,gt,0,1,!1),n},destroyStream:function(t){l.push(t)},clear:function(){at(a).forEach(h),l.forEach(h)},getBuffer:function(t){return t&&t._buffer instanceof s?t._buffer:null},restore:function(){at(a).forEach(function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage)})},_initBuffer:c}}(i,h,r,function(t){return _.destroyBuffer(t)}),_=function(e,n,r,i,o){for(var a=r.maxAttributes,s=new Array(a),l=0;l<a;++l)s[l]=new Hn;var u=0,c={},h={Record:Hn,scope:{},state:s,currentVAO:null,targetVAO:null,restore:d()?function(){d()&&at(c).forEach(function(t){t.refresh()})}:function(){},createVAO:function(e){var r=new p;function s(e){P(Array.isArray(e),"arguments to vertex array constructor must be an array"),P(e.length<a,"too many attributes"),P(e.length>0,"must specify at least one attribute");var i={},l=r.attributes;l.length=e.length;for(var u=0;u<e.length;++u){var c,h=e[u],d=l[u]=new Hn,f=h.data||h;Array.isArray(f)||t(f)||ot(f)?(r.buffers[u]&&(c=r.buffers[u],t(f)&&c._buffer.byteLength>=f.byteLength?c.subdata(f):(c.destroy(),r.buffers[u]=null)),r.buffers[u]||(c=r.buffers[u]=o.create(h,Gn,!1,!0)),d.buffer=o.getBuffer(c),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1,i[u]=1):o.getBuffer(h)?(d.buffer=o.getBuffer(h),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1):o.getBuffer(h.buffer)?(d.buffer=o.getBuffer(h.buffer),d.size=0|(+h.size||d.buffer.dimension),d.normalized=!!h.normalized||!1,"type"in h?(P.parameter(h.type,ct,"invalid buffer type"),d.type=ct[h.type]):d.type=d.buffer.dtype,d.offset=0|(h.offset||0),d.stride=0|(h.stride||0),d.divisor=0|(h.divisor||0),d.state=1,P(d.size>=1&&d.size<=4,"size must be between 1 and 4"),P(d.offset>=0,"invalid offset"),P(d.stride>=0&&d.stride<=255,"stride must be between 0 and 255"),P(d.divisor>=0,"divisor must be positive"),P(!d.divisor||!!n.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in h?(P(u>0,"first attribute must not be a constant"),d.x=+h.x||0,d.y=+h.y||0,d.z=+h.z||0,d.w=+h.w||0,d.state=2):P(!1,"invalid attribute spec for location "+u)}for(var p=0;p<r.buffers.length;++p)!i[p]&&r.buffers[p]&&(r.buffers[p].destroy(),r.buffers[p]=null);return r.refresh(),s}return i.vaoCount+=1,s.destroy=function(){for(var t=0;t<r.buffers.length;++t)r.buffers[t]&&r.buffers[t].destroy();r.buffers.length=0,r.destroy()},s._vao=r,s._reglType="vao",s(e)},getVAO:function(t){return"function"==typeof t&&t._vao?t._vao:null},destroyBuffer:function(t){for(var n=0;n<s.length;++n){var r=s[n];r.buffer===t&&(e.disableVertexAttribArray(n),r.buffer=null)}},setVAO:d()?function(t){if(t!==h.currentVAO){var e=d();t?e.bindVertexArrayOES(t.vao):e.bindVertexArrayOES(null),h.currentVAO=t}}:function(t){if(t!==h.currentVAO){if(t)t.bindAttrs();else for(var n=f(),r=0;r<s.length;++r){var i=s[r];i.buffer?(e.enableVertexAttribArray(r),e.vertexAttribPointer(r,i.size,i.type,i.normalized,i.stride,i.offfset),n&&i.divisor&&n.vertexAttribDivisorANGLE(r,i.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,i.x,i.y,i.z,i.w))}h.currentVAO=t}},clear:d()?function(){at(c).forEach(function(t){t.destroy()})}:function(){}};function d(){return n.oes_vertex_array_object}function f(){return n.angle_instanced_arrays}function p(){this.id=++u,this.attributes=[];var t=d();this.vao=t?t.createVertexArrayOES():null,c[this.id]=this,this.buffers=[]}return p.prototype.bindAttrs=function(){for(var t=f(),n=this.attributes,r=0;r<n.length;++r){var i=n[r];i.buffer?(e.enableVertexAttribArray(r),e.bindBuffer(Gn,i.buffer.buffer),e.vertexAttribPointer(r,i.size,i.type,i.normalized,i.stride,i.offset),t&&i.divisor&&t.vertexAttribDivisorANGLE(r,i.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,i.x,i.y,i.z,i.w))}for(var o=n.length;o<a;++o)e.disableVertexAttribArray(o)},p.prototype.refresh=function(){var t=d();t&&(t.bindVertexArrayOES(this.vao),this.bindAttrs(),h.currentVAO=this)},p.prototype.destroy=function(){if(this.vao){var t=d();this===h.currentVAO&&(h.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}c[this.id]&&(delete c[this.id],i.vaoCount-=1)},h}(i,d,y,h,b),x=function(e,n,r,i){var o={},a=0,s={uint8:Mt,uint16:Tt};function l(t){this.id=a++,o[this.id]=this,this.buffer=t,this.primType=kt,this.vertCount=0,this.type=0}n.oes_element_index_uint&&(s.uint32=It),l.prototype.bind=function(){this.buffer.bind()};var u=[];function c(i,o,a,s,l,u,c){var h;if(i.buffer.bind(),o){var d=c;c||t(o)&&(!ot(o)||t(o.data))||(d=n.oes_element_index_uint?It:Tt),r._initBuffer(i.buffer,o,a,d,3)}else e.bufferData(Dt,u,a),i.buffer.dtype=h||Mt,i.buffer.usage=a,i.buffer.dimension=3,i.buffer.byteLength=u;if(h=c,!c){switch(i.buffer.dtype){case Mt:case Ot:h=Mt;break;case Tt:case Et:h=Tt;break;case It:case At:h=It;break;default:P.raise("unsupported type for element array")}i.buffer.dtype=h}i.type=h,P(h!==It||!!n.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var f=l;f<0&&(f=i.buffer.byteLength,h===Tt?f>>=1:h===It&&(f>>=2)),i.vertCount=f;var p=s;if(s<0){p=kt;var g=i.buffer.dimension;1===g&&(p=St),2===g&&(p=Ct),3===g&&(p=kt)}i.primType=p}function h(t){i.elementsCount--,P(null!==t.buffer,"must not double destroy elements"),delete o[t.id],t.buffer.destroy(),t.buffer=null}return{create:function(e,n){var o=r.create(null,Dt,!0),a=new l(o._buffer);function u(e){if(e)if("number"==typeof e)o(e),a.primType=kt,a.vertCount=0|e,a.type=Mt;else{var n=null,r=Lt,i=-1,l=-1,h=0,d=0;Array.isArray(e)||t(e)||ot(e)?n=e:(P.type(e,"object","invalid arguments for elements"),"data"in e&&(n=e.data,P(Array.isArray(n)||t(n)||ot(n),"invalid data for element buffer")),"usage"in e&&(P.parameter(e.usage,ht,"invalid element buffer usage"),r=ht[e.usage]),"primitive"in e&&(P.parameter(e.primitive,wt,"invalid element buffer primitive"),i=wt[e.primitive]),"count"in e&&(P("number"==typeof e.count&&e.count>=0,"invalid vertex count for elements"),l=0|e.count),"type"in e&&(P.parameter(e.type,s,"invalid buffer type"),d=s[e.type]),"length"in e?h=0|e.length:(h=l,d===Tt||d===Et?h*=2:d!==It&&d!==At||(h*=4))),c(a,n,r,i,l,h,d)}else o(),a.primType=kt,a.vertCount=0,a.type=Mt;return u}return i.elementsCount++,u(e),u._reglType="elements",u._elements=a,u.subdata=function(t,e){return o.subdata(t,e),u},u.destroy=function(){h(a)},u},createStream:function(t){var e=u.pop();return e||(e=new l(r.create(null,Dt,!0,!1)._buffer)),c(e,t,Pt,-1,-1,0,0),e},destroyStream:function(t){u.push(t)},getElements:function(t){return"function"==typeof t&&t._elements instanceof l?t._elements:null},clear:function(){at(o).forEach(h)}}}(i,d,b,h),w=qn(i,c,h,r),S=yn(i,d,y,function(){O.procs.poll()},m,h,r),C=Sn(i,d,y,h,r),k=function(t,n,r,i,o,a){var s={cur:null,next:null,dirty:!1,setFBO:null},l=["rgba"],u=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&u.push("srgba"),n.ext_color_buffer_half_float&&u.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&u.push("rgba32f");var c=["uint8"];function h(t,e,n){this.target=t,this.texture=e,this.renderbuffer=n;var r=0,i=0;e?(r=e.width,i=e.height):n&&(r=n.width,i=n.height),this.width=r,this.height=i}function d(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function f(t,e,n){if(t)if(t.texture){var r=t.texture._texture,i=Math.max(1,r.width),o=Math.max(1,r.height);P(i===e&&o===n,"inconsistent width/height for supplied texture"),r.refCount+=1}else{var a=t.renderbuffer._renderbuffer;P(a.width===e&&a.height===n,"inconsistent width/height for renderbuffer"),a.refCount+=1}}function p(e,n){n&&(n.texture?t.framebufferTexture2D(Cn,e,n.target,n.texture._texture.texture,0):t.framebufferRenderbuffer(Cn,e,kn,n.renderbuffer._renderbuffer.renderbuffer))}function g(t){var e=On,n=null,r=null,i=t;"object"==typeof t&&(i=t.data,"target"in t&&(e=0|t.target)),P.type(i,"function","invalid attachment data");var o=i._reglType;return"texture2d"===o?(n=i,P(e===On)):"textureCube"===o?(n=i,P(e>=Mn&&e<Mn+6,"invalid cube map target")):"renderbuffer"===o?(r=i,e=kn):P.raise("invalid regl object for attachment"),new h(e,n,r)}function v(t,e,n,r,a){if(n){var s=i.create2D({width:t,height:e,format:r,type:a});return s._texture.refCount=0,new h(On,s,null)}var l=o.create({width:t,height:e,format:r});return l._renderbuffer.refCount=0,new h(kn,null,l)}function m(t){return t&&(t.texture||t.renderbuffer)}function y(t,e,n){t&&(t.texture?t.texture.resize(e,n):t.renderbuffer&&t.renderbuffer.resize(e,n),t.width=e,t.height=n)}n.oes_texture_half_float&&c.push("half float","float16"),n.oes_texture_float&&c.push("float","float32");var b=0,_={};function x(){this.id=b++,_[this.id]=this,this.framebuffer=t.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function w(t){t.colorAttachments.forEach(d),d(t.depthAttachment),d(t.stencilAttachment),d(t.depthStencilAttachment)}function S(e){var n=e.framebuffer;P(n,"must not double destroy framebuffer"),t.deleteFramebuffer(n),e.framebuffer=null,a.framebufferCount--,delete _[e.id]}function C(e){var n;t.bindFramebuffer(Cn,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)p(En+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(Cn,En+n,On,null,0);t.framebufferTexture2D(Cn,In,On,null,0),t.framebufferTexture2D(Cn,Tn,On,null,0),t.framebufferTexture2D(Cn,An,On,null,0),p(Tn,e.depthAttachment),p(An,e.stencilAttachment),p(In,e.depthStencilAttachment);var o=t.checkFramebufferStatus(Cn);t.isContextLost()||o===Dn||P.raise("framebuffer configuration not supported, status = "+Vn[o]),t.bindFramebuffer(Cn,s.next?s.next.framebuffer:null),s.cur=s.next,t.getError()}function k(t,i){var o=new x;function h(t,e){var i;P(s.next!==o,"can not update framebuffer which is currently in use");var a=0,d=0,p=!0,y=!0,b=null,_=!0,x="rgba",S="uint8",k=1,O=null,M=null,E=null,T=!1;if("number"==typeof t)a=0|t,d=0|e||a;else if(t){P.type(t,"object","invalid arguments for framebuffer");var A=t;if("shape"in A){var I=A.shape;P(Array.isArray(I)&&I.length>=2,"invalid shape for framebuffer"),a=I[0],d=I[1]}else"radius"in A&&(a=d=A.radius),"width"in A&&(a=A.width),"height"in A&&(d=A.height);("color"in A||"colors"in A)&&(b=A.color||A.colors,Array.isArray(b)&&P(1===b.length||n.webgl_draw_buffers,"multiple render targets not supported")),b||("colorCount"in A&&(k=0|A.colorCount,P(k>0,"invalid color buffer count")),"colorTexture"in A&&(_=!!A.colorTexture,x="rgba4"),"colorType"in A&&(S=A.colorType,_?(P(n.oes_texture_float||!("float"===S||"float32"===S),"you must enable OES_texture_float in order to use floating point framebuffer objects"),P(n.oes_texture_half_float||!("half float"===S||"float16"===S),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===S||"float16"===S?(P(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),x="rgba16f"):"float"!==S&&"float32"!==S||(P(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),x="rgba32f"),P.oneOf(S,c,"invalid color type")),"colorFormat"in A&&(x=A.colorFormat,l.indexOf(x)>=0?_=!0:u.indexOf(x)>=0?_=!1:_?P.oneOf(A.colorFormat,l,"invalid color format for texture"):P.oneOf(A.colorFormat,u,"invalid color format for renderbuffer"))),("depthTexture"in A||"depthStencilTexture"in A)&&(T=!(!A.depthTexture&&!A.depthStencilTexture),P(!T||n.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in A&&("boolean"==typeof A.depth?p=A.depth:(O=A.depth,y=!1)),"stencil"in A&&("boolean"==typeof A.stencil?y=A.stencil:(M=A.stencil,p=!1)),"depthStencil"in A&&("boolean"==typeof A.depthStencil?p=y=A.depthStencil:(E=A.depthStencil,p=!1,y=!1))}else a=d=1;var D=null,L=null,j=null,N=null;if(Array.isArray(b))D=b.map(g);else if(b)D=[g(b)];else for(D=new Array(k),i=0;i<k;++i)D[i]=v(a,d,_,x,S);P(n.webgl_draw_buffers||D.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),P(D.length<=r.maxColorAttachments,"too many color attachments, not supported"),a=a||D[0].width,d=d||D[0].height,O?L=g(O):p&&!y&&(L=v(a,d,T,"depth","uint32")),M?j=g(M):y&&!p&&(j=v(a,d,!1,"stencil","uint8")),E?N=g(E):!O&&!M&&y&&p&&(N=v(a,d,T,"depth stencil","depth stencil")),P(!!O+!!M+!!E<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var R=null;for(i=0;i<D.length;++i)if(f(D[i],a,d),P(!D[i]||D[i].texture&&Ln.indexOf(D[i].texture._texture.format)>=0||D[i].renderbuffer&&zn.indexOf(D[i].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+i+" is invalid"),D[i]&&D[i].texture){var B=jn[D[i].texture._texture.format]*Nn[D[i].texture._texture.type];null===R?R=B:P(R===B,"all color attachments much have the same number of bits per pixel.")}return f(L,a,d),P(!L||L.texture&&L.texture._texture.format===Pn||L.renderbuffer&&L.renderbuffer._renderbuffer.format===Rn,"invalid depth attachment for framebuffer object"),f(j,a,d),P(!j||j.renderbuffer&&j.renderbuffer._renderbuffer.format===Bn,"invalid stencil attachment for framebuffer object"),f(N,a,d),P(!N||N.texture&&N.texture._texture.format===Fn||N.renderbuffer&&N.renderbuffer._renderbuffer.format===Fn,"invalid depth-stencil attachment for framebuffer object"),w(o),o.width=a,o.height=d,o.colorAttachments=D,o.depthAttachment=L,o.stencilAttachment=j,o.depthStencilAttachment=N,h.color=D.map(m),h.depth=m(L),h.stencil=m(j),h.depthStencil=m(N),h.width=o.width,h.height=o.height,C(o),h}return a.framebufferCount++,h(t,i),e(h,{resize:function(t,e){P(s.next!==o,"can not resize a framebuffer which is currently in use");var n=Math.max(0|t,1),r=Math.max(0|e||n,1);if(n===o.width&&r===o.height)return h;for(var i=o.colorAttachments,a=0;a<i.length;++a)y(i[a],n,r);return y(o.depthAttachment,n,r),y(o.stencilAttachment,n,r),y(o.depthStencilAttachment,n,r),o.width=h.width=n,o.height=h.height=r,C(o),h},_reglType:"framebuffer",_framebuffer:o,destroy:function(){S(o),w(o)},use:function(t){s.setFBO({framebuffer:h},t)}})}return e(s,{getFramebuffer:function(t){if("function"==typeof t&&"framebuffer"===t._reglType){var e=t._framebuffer;if(e instanceof x)return e}return null},create:k,createCube:function(t){var o=Array(6);function a(t){var r;P(o.indexOf(s.next)<0,"can not update framebuffer which is currently in use");var u,h={color:null},d=0,f=null,p="rgba",g="uint8",v=1;if("number"==typeof t)d=0|t;else if(t){P.type(t,"object","invalid arguments for framebuffer");var m=t;if("shape"in m){var y=m.shape;P(Array.isArray(y)&&y.length>=2,"invalid shape for framebuffer"),P(y[0]===y[1],"cube framebuffer must be square"),d=y[0]}else"radius"in m&&(d=0|m.radius),"width"in m?(d=0|m.width,"height"in m&&P(m.height===d,"must be square")):"height"in m&&(d=0|m.height);("color"in m||"colors"in m)&&(f=m.color||m.colors,Array.isArray(f)&&P(1===f.length||n.webgl_draw_buffers,"multiple render targets not supported")),f||("colorCount"in m&&(v=0|m.colorCount,P(v>0,"invalid color buffer count")),"colorType"in m&&(P.oneOf(m.colorType,c,"invalid color type"),g=m.colorType),"colorFormat"in m&&(p=m.colorFormat,P.oneOf(m.colorFormat,l,"invalid color format for texture"))),"depth"in m&&(h.depth=m.depth),"stencil"in m&&(h.stencil=m.stencil),"depthStencil"in m&&(h.depthStencil=m.depthStencil)}else d=1;if(f)if(Array.isArray(f))for(u=[],r=0;r<f.length;++r)u[r]=f[r];else u=[f];else{u=Array(v);var b={radius:d,format:p,type:g};for(r=0;r<v;++r)u[r]=i.createCube(b)}for(h.color=Array(u.length),r=0;r<u.length;++r){var _=u[r];P("function"==typeof _&&"textureCube"===_._reglType,"invalid cube map"),d=d||_.width,P(_.width===d&&_.height===d,"invalid cube map shape"),h.color[r]={target:Mn,data:u[r]}}for(r=0;r<6;++r){for(var x=0;x<u.length;++x)h.color[x].target=Mn+r;r>0&&(h.depth=o[0].depth,h.stencil=o[0].stencil,h.depthStencil=o[0].depthStencil),o[r]?o[r](h):o[r]=k(h)}return e(a,{width:d,height:d,color:u})}return a(t),e(a,{faces:o,resize:function(t){var e,n=0|t;if(P(n>0&&n<=r.maxCubeMapSize,"invalid radius for cube fbo"),n===a.width)return a;var i=a.color;for(e=0;e<i.length;++e)i[e].resize(n);for(e=0;e<6;++e)o[e].resize(n);return a.width=a.height=n,a},_reglType:"framebufferCube",destroy:function(){o.forEach(function(t){t.destroy()})}})},clear:function(){at(_).forEach(S)},restore:function(){s.cur=null,s.next=null,s.dirty=!0,at(_).forEach(function(e){e.framebuffer=t.createFramebuffer(),C(e)})}})}(i,d,y,S,C,h),O=lo(i,c,d,y,b,x,0,k,{},_,w,{elements:null,primitive:4,count:-1,offset:0,instances:-1},m,f,r),M=tr(i,k,O.procs.poll,m,o,d,y),E=O.next,T=i.canvas,A=[],I=[],D=[],L=[r.onDestroy],j=null;function N(){if(0===A.length)return f&&f.update(),void(j=null);j=$.next(N),Z();for(var t=A.length-1;t>=0;--t){var e=A[t];e&&e(m,null,0)}i.flush(),f&&f.update()}function R(){!j&&A.length>0&&(j=$.next(N))}function B(){j&&($.cancel(N),j=null)}function F(t){t.preventDefault(),a=!0,B(),I.forEach(function(t){t()})}function z(t){i.getError(),a=!1,s.restore(),w.restore(),b.restore(),S.restore(),C.restore(),k.restore(),_.restore(),f&&f.restore(),O.procs.refresh(),R(),D.forEach(function(t){t()})}function H(t){function n(t,e){var n={},r={};return Object.keys(t).forEach(function(i){var o=t[i];if(V.isDynamic(o))r[i]=V.unbox(o,i);else{if(e&&Array.isArray(o))for(var a=0;a<o.length;++a)if(V.isDynamic(o[a]))return void(r[i]=V.unbox(o,i));n[i]=o}}),{dynamic:r,static:n}}P(!!t,"invalid args to regl({...})"),P.type(t,"object","invalid args to regl({...})");var r=n(t.context||{},!0),i=n(t.uniforms||{},!0),o=n(t.attributes||{},!1),s=n(function(t){var n=e({},t);function r(t){if(t in n){var e=n[t];delete n[t],Object.keys(e).forEach(function(r){n[t+"."+r]=e[r]})}}return delete n.uniforms,delete n.attributes,delete n.context,delete n.vao,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),r("blend"),r("depth"),r("cull"),r("stencil"),r("polygonOffset"),r("scissor"),r("sample"),"vao"in t&&(n.vao=t.vao),n}(t),!1),l={gpuTime:0,cpuTime:0,count:0},u=O.compile(s,o,i,r,l),c=u.draw,h=u.batch,d=u.scope,f=[];return e(function(t,e){var n;if(a&&P.raise("context lost"),"function"==typeof t)return d.call(this,null,t,0);if("function"==typeof e)if("number"==typeof t)for(n=0;n<t;++n)d.call(this,null,e,n);else{if(!Array.isArray(t))return d.call(this,t,e,0);for(n=0;n<t.length;++n)d.call(this,t[n],e,n)}else if("number"==typeof t){if(t>0)return h.call(this,function(t){for(;f.length<t;)f.push(null);return f}(0|t),0|t)}else{if(!Array.isArray(t))return c.call(this,t);if(t.length)return h.call(this,t,t.length)}},{stats:l,destroy:function(){u.destroy()}})}T&&(T.addEventListener(yo,F,!1),T.addEventListener(bo,z,!1));var W=k.setFBO=H({framebuffer:V.define.call(null,_o,"framebuffer")});function Y(t,e){var n=0;O.procs.poll();var r=e.color;r&&(i.clearColor(+r[0]||0,+r[1]||0,+r[2]||0,+r[3]||0),n|=po),"depth"in e&&(i.clearDepth(+e.depth),n|=go),"stencil"in e&&(i.clearStencil(0|e.stencil),n|=vo),P(!!n,"called regl.clear with no buffer specified"),i.clear(n)}function X(t){return P.type(t,"function","regl.frame() callback must be a function"),A.push(t),R(),{cancel:function(){var e=So(A,t);P(e>=0,"cannot cancel a frame twice"),A[e]=function t(){var e=So(A,t);A[e]=A[A.length-1],A.length-=1,A.length<=0&&B()}}}}function q(){var t=E.viewport,e=E.scissor_box;t[0]=t[1]=e[0]=e[1]=0,m.viewportWidth=m.framebufferWidth=m.drawingBufferWidth=t[2]=e[2]=i.drawingBufferWidth,m.viewportHeight=m.framebufferHeight=m.drawingBufferHeight=t[3]=e[3]=i.drawingBufferHeight}function Z(){m.tick+=1,m.time=J(),q(),O.procs.poll()}function K(){S.refresh(),q(),O.procs.refresh(),f&&f.update()}function J(){return(G()-p)/1e3}K();var Q=e(H,{clear:function(t){if(P("object"==typeof t&&t,"regl.clear() takes an object as input"),"framebuffer"in t)if(t.framebuffer&&"framebufferCube"===t.framebuffer_reglType)for(var n=0;n<6;++n)W(e({framebuffer:t.framebuffer.faces[n]},t),Y);else W(t,Y);else Y(0,t)},prop:V.define.bind(null,_o),context:V.define.bind(null,xo),this:V.define.bind(null,wo),draw:H({}),buffer:function(t){return b.create(t,mo,!1,!1)},elements:function(t){return x.create(t,!1)},texture:S.create2D,cube:S.createCube,renderbuffer:C.create,framebuffer:k.create,framebufferCube:k.createCube,vao:_.createVAO,attributes:o,frame:X,on:function(t,e){var n;switch(P.type(e,"function","listener callback must be a function"),t){case"frame":return X(e);case"lost":n=I;break;case"restore":n=D;break;case"destroy":n=L;break;default:P.raise("invalid event, must be one of frame,lost,restore,destroy")}return n.push(e),{cancel:function(){for(var t=0;t<n.length;++t)if(n[t]===e)return n[t]=n[n.length-1],void n.pop()}}},limits:y,hasExtension:function(t){return y.extensions.indexOf(t.toLowerCase())>=0},read:M,destroy:function(){A.length=0,B(),T&&(T.removeEventListener(yo,F),T.removeEventListener(bo,z)),w.clear(),k.clear(),C.clear(),S.clear(),x.clear(),b.clear(),_.clear(),f&&f.clear(),L.forEach(function(t){t()})},_gl:i,_refresh:K,poll:function(){Z(),f&&f.update()},now:J,stats:h});return r.onDone(null,Q),Q}},t.exports=r()},"8dI8":function(t,e,n){"use strict";var r=n("WlQy"),i=n("zOqJ"),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach(function(t){s[o.call(i[t].labels).sort().join("")]=t});var l={};function u(t,e){if(!(this instanceof u))return new u(t,e);if(e&&e in a&&(e=null),e&&!(e in i))throw new Error("Unknown model: "+e);var n,c;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof u)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var h=r.get(t);if(null===h)throw new Error("Unable to parse color from string: "+t);this.model=h.model,c=i[this.model].channels,this.color=h.value.slice(0,c),this.valpha="number"==typeof h.value[c]?h.value[c]:1}else if(t.length){this.model=e||"rgb",c=i[this.model].channels;var f=o.call(t,0,c);this.color=d(f,c),this.valpha="number"==typeof t[c]?t[c]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var p=Object.keys(t);"alpha"in t&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var g=p.sort().join("");if(!(g in s))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=s[g];var v=i[this.model].labels,m=[];for(n=0;n<v.length;n++)m.push(t[v[n]]);this.color=d(m)}if(l[this.model])for(c=i[this.model].channels,n=0;n<c;n++){var y=l[this.model][n];y&&(this.color[n]=y(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function c(t,e,n){return(t=Array.isArray(t)?t:[t]).forEach(function(t){(l[t]||(l[t]=[]))[e]=n}),t=t[0],function(r){var i;return arguments.length?(n&&(r=n(r)),(i=this[t]()).color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function h(t){return function(e){return Math.max(0,Math.min(t,e))}}function d(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}u.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in r.to?this:this.rgb(),n=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return r.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=i[this.model].channels,n=i[this.model].labels,r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new u(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new u(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:c("rgb",0,h(255)),green:c("rgb",1,h(255)),blue:c("rgb",2,h(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:c("hsl",1,h(100)),lightness:c("hsl",2,h(100)),saturationv:c("hsv",1,h(100)),value:c("hsv",2,h(100)),chroma:c("hcg",1,h(100)),gray:c("hcg",2,h(100)),white:c("hwb",1,h(100)),wblack:c("hwb",2,h(100)),cyan:c("cmyk",0,h(100)),magenta:c("cmyk",1,h(100)),yellow:c("cmyk",2,h(100)),black:c("cmyk",3,h(100)),x:c("xyz",0,h(100)),y:c("xyz",1,h(100)),z:c("xyz",2,h(100)),l:c("lab",0,h(100)),a:c("lab",1),b:c("lab",2),keyword:function(t){return arguments.length?new u(t):i[this.model].keyword(this.color)},hex:function(t){return arguments.length?new u(t):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return u.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),r=this.rgb(),i=void 0===e?.5:e,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return u.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach(function(t){if(-1===a.indexOf(t)){var e=i[t].channels;u.prototype[t]=function(){if(this.model===t)return new u(this);if(arguments.length)return new u(arguments,t);var n,r="number"==typeof arguments[e]?e:this.valpha;return new u((n=i[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(r),t)},u[t]=function(n){return"number"==typeof n&&(n=d(o.call(arguments),e)),new u(n,t)}}}),t.exports=u},"8ej2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exchangeEdges=e.enterEdge=e.leaveEdge=e.initLowLimValues=e.calcCutValue=e.initCutValues=void 0;var r=n("DmAK"),i=n("FlGC"),o=n("+ZTV"),a=n("1we+"),s=a.algorithm.preorder,l=a.algorithm.postorder;e.initCutValues=function(t,e){var n=l(t,t.nodes());null===(n=null===n||void 0===n?void 0:n.slice(0,(null===n||void 0===n?void 0:n.length)-1))||void 0===n||n.forEach(function(n){u(t,e,n)})};var u=function(t,n,r){var i=t.node(r).parent;t.edgeFromArgs(r,i).cutvalue=(0,e.calcCutValue)(t,n,r)};e.calcCutValue=function(t,e,n){var r,i=t.node(n).parent,o=!0,a=e.edgeFromArgs(n,i),s=0;return a||(o=!1,a=e.edgeFromArgs(i,n)),s=a.weight,null===(r=e.nodeEdges(n))||void 0===r||r.forEach(function(r){var a=r.v===n,l=a?r.w:r.v;if(l!==i){var u=a===o,c=e.edge(r).weight;if(s+=u?c:-c,d(t,n,l)){var h=t.edgeFromArgs(n,l).cutvalue;s+=u?-h:h}}}),s};e.initLowLimValues=function(t,e){void 0===e&&(e=t.nodes()[0]),c(t,{},1,e)};var c=function(t,e,n,r,i){var o,a=n,s=n,l=t.node(r);return e[r]=!0,null===(o=t.neighbors(r))||void 0===o||o.forEach(function(n){e[n]||(s=c(t,e,s,n,r))}),l.low=a,l.lim=s++,i?l.parent=i:delete l.parent,s};e.leaveEdge=function(t){return t.edges().find(function(e){return t.edge(e).cutvalue<0})};e.enterEdge=function(t,e,n){var r=n.v,a=n.w;e.hasEdge(r,a)||(r=n.w,a=n.v);var s=t.node(r),l=t.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var h=e.edges().filter(function(e){return c===f(t,t.node(e.v),u)&&c!==f(t,t.node(e.w),u)});return(0,o.minBy)(h,function(t){return(0,i.slack)(e,t)})};e.exchangeEdges=function(t,n,r,i){var o=r.v,a=r.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),(0,e.initLowLimValues)(t),(0,e.initCutValues)(t,n),h(t,n)};var h=function(t,e){var n=t.nodes().find(function(t){var n;return!(null===(n=e.node(t))||void 0===n?void 0:n.parent)}),r=s(t,n);null===(r=null===r||void 0===r?void 0:r.slice(1))||void 0===r||r.forEach(function(n){var r=t.node(n).parent,i=e.edgeFromArgs(n,r),o=!1;i||(i=e.edgeFromArgs(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})},d=function(t,e,n){return t.hasEdge(e,n)},f=function(t,e,n){return n.low<=e.lim&&e.lim<=n.lim};e.default=function(t){var n=(0,o.simplify)(t);(0,i.longestPath)(n);var a,s,l=(0,r.feasibleTree)(n);for((0,e.initLowLimValues)(l),(0,e.initCutValues)(l,n);a=(0,e.leaveEdge)(l);)s=(0,e.enterEdge)(l,n,a),(0,e.exchangeEdges)(l,n,a,s)}},"94VQ":function(t,e,n){"use strict";var r=n("Yobk"),i=n("X8DO"),o=n("e6n0"),a={};n("hJx8")(a,n("dSzd")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},9938:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.GForceLayout=void 0;var o=n("w9t0"),a=n("ZE1E"),s=function(t,e){return t?(0,a.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},l=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=n.nodes;if(void 0!==n.timeInterval&&"undefined"!=typeof window&&window.clearInterval(n.timeInterval),r&&0!==r.length){n.width||"undefined"==typeof window||(n.width=window.innerWidth),n.height||"undefined"==typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var i=n.center;if(1===r.length)return r[0].x=i[0],r[0].y=i[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var o={},l={};r.forEach(function(t,e){(0,a.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,a.isNumber)(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,l[t.id]=e}),n.nodeMap=o,n.nodeIdxMap=l,n.linkDistance=s(n.linkDistance,1),n.nodeStrength=s(n.nodeStrength,1),n.edgeStrength=s(n.edgeStrength,1);var u,c=n.nodeSize;if(n.preventOverlap){var h,d=n.nodeSpacing;h=(0,a.isNumber)(d)?function(){return d}:(0,a.isFunction)(d)?d:function(){return 0},u=c?(0,a.isArray)(c)?function(t){return Math.max(c[0],c[1])+h(t)}:function(t){return c+h(t)}:function(t){return t.size?(0,a.isArray)(t.size)?Math.max(t.size[0],t.size[1])+h(t):(0,a.isObject)(t.size)?Math.max(t.size.width,t.size.height)+h(t):t.size+h(t):10+h(t)}}n.nodeSize=u;var f=n.edges;n.degrees=(0,a.getDegree)(r.length,n.nodeIdxMap,f),n.getMass||(n.getMass=function(t){return t.mass||n.degrees[n.nodeIdxMap[t.id]].all||1}),n.run()}else null===(t=n.onLayoutEnd)||void 0===t||t.call(n)},e.prototype.run=function(){var t,e=this,n=e.maxIteration,r=e.nodes,i=e.workerEnabled,o=e.minMovement,a=e.animate;if(r)if(i||!a){for(var s=0;s<n;s++){var l=e.runOneStep(s);if(e.reachMoveThreshold(r,l,o))break}null===(t=e.onLayoutEnd)||void 0===t||t.call(e)}else{if("undefined"==typeof window)return;var u=0;this.timeInterval=window.setInterval(function(){var t,i;if(r){var a=e.runOneStep(u)||[];e.reachMoveThreshold(r,a,o)&&(null===(t=e.onLayoutEnd)||void 0===t||t.call(e),window.clearInterval(e.timeInterval)),++u>=n&&(null===(i=e.onLayoutEnd)||void 0===i||i.call(e),window.clearInterval(e.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(t,e,n){var r=0;return t.forEach(function(t,n){var i=t.x-e[n].x,o=t.y-e[n].y;r+=Math.sqrt(i*i+o*o)}),(r/=t.length)<n},e.prototype.runOneStep=function(t){var e,n=this.nodes,r=this.edges,i=[],o=[];if(n){n.forEach(function(t,e){i[2*e]=0,i[2*e+1]=0,o[2*e]=0,o[2*e+1]=0}),this.calRepulsive(i,n),r&&this.calAttractive(i,r),this.calGravity(i,n);var a=Math.max(.02,this.interval-.002*t);this.updateVelocity(i,o,a,n);var s=[];return n.forEach(function(t){s.push({x:t.x,y:t.y})}),this.updatePosition(o,a,n),null===(e=this.tick)||void 0===e||e.call(this),s}},e.prototype.calRepulsive=function(t,e){var n=this.getMass,r=this.factor,i=this.coulombDisScale,o=this.preventOverlap,a=this.collideStrength,s=void 0===a?1:a,l=this.nodeStrength,u=this.nodeSize;e.forEach(function(a,c){var h=n?n(a):1;e.forEach(function(e,d){if(!(c>=d)){var f=a.x-e.x,p=a.y-e.y;0===f&&0===p&&(f=.01*Math.random(),p=.01*Math.random());var g=f*f+p*p,v=Math.sqrt(g),m=(v+.1)*i,y=f/v,b=p/v,_=.5*(l(a)+l(e))*r/(m*m),x=n?n(e):1;if(t[2*c]+=y*_,t[2*c+1]+=b*_,t[2*d]-=y*_,t[2*d+1]-=b*_,o&&(u(a)+u(e))/2>v){var w=s*(l(a)+l(e))*.5/g;t[2*c]+=y*w/h,t[2*c+1]+=b*w/h,t[2*d]-=y*w/x,t[2*d+1]-=b*w/x}}})})},e.prototype.calAttractive=function(t,e){var n=this.nodeMap,r=this.nodeIdxMap,i=this.linkDistance,o=this.edgeStrength,s=this.nodeSize,l=this.getMass;e.forEach(function(e,u){var c=(0,a.getEdgeTerminal)(e,"source"),h=(0,a.getEdgeTerminal)(e,"target"),d=n[c],f=n[h],p=f.x-d.x,g=f.y-d.y;0===p&&0===g&&(p=.01*Math.random(),g=.01*Math.random());var v=Math.sqrt(p*p+g*g),m=p/v,y=g/v,b=((i(e,d,f)||1+(s(d)+s(f)||0)/2)-v)*o(e),_=r[c],x=r[h],w=l?l(d):1,S=l?l(f):1;t[2*_]-=m*b/w,t[2*_+1]-=y*b/w,t[2*x]+=m*b/S,t[2*x+1]+=y*b/S})},e.prototype.calGravity=function(t,e){for(var n=this.center,r=this.gravity,i=this.degrees,o=e.length,s=0;s<o;s++){var l=e[s],u=l.x-n[0],c=l.y-n[1],h=r;if(this.getCenter){var d=this.getCenter(l,i[s].all);d&&(0,a.isNumber)(d[0])&&(0,a.isNumber)(d[1])&&(0,a.isNumber)(d[2])&&(u=l.x-d[0],c=l.y-d[1],h=d[2])}h&&(t[2*s]-=h*u,t[2*s+1]-=h*c)}},e.prototype.updateVelocity=function(t,e,n,r){var i=this,o=n*i.damping;r.forEach(function(n,r){var a=t[2*r]*o||.01,s=t[2*r+1]*o||.01,l=Math.sqrt(a*a+s*s);if(l>i.maxSpeed){var u=i.maxSpeed/l;a*=u,s*=u}e[2*r]=a,e[2*r+1]=s})},e.prototype.updatePosition=function(t,e,n){n.forEach(function(n,r){if((0,a.isNumber)(n.fx)&&(0,a.isNumber)(n.fy))return n.x=n.fx,void(n.y=n.fy);var i=t[2*r]*e,o=t[2*r+1]*e;n.x+=i,n.y+=o})},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){this.stop(),this.tick=null,this.nodes=null,this.edges=null,this.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(o.Base);e.GForceLayout=l},"9Bbf":function(t,e,n){"use strict";var r=n("kM2E");t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},"9C8M":function(t,e,n){"use strict";var r=n("evD5").f,i=n("Yobk"),o=n("xH/j"),a=n("+ZMJ"),s=n("2KxR"),l=n("NWt+"),u=n("vIB/"),c=n("EGZi"),h=n("bRrM"),d=n("+E39"),f=n("06OY").fastKey,p=n("LIJb"),g=d?"_s":"size",v=function(t,e){var n,r=f(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=r&&l(r,n,t[u],t)});return o(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=p(this,e),r=v(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(p(this,e),t)}}),d&&r(c.prototype,"size",{get:function(){return p(this,e)[g]}}),c},def:function(t,e,n){var r,i,o=v(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,n){u(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?c(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),h(e)}}},"9MlZ":function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},"9Nhl":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t,e){return t-e},i=function(){function t(t){void 0===t&&(t=r),this.compareFn=t,this.list=[]}return t.prototype.getLeft=function(t){return 2*t+1},t.prototype.getRight=function(t){return 2*t+2},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r<o&&this.compareFn(this.list[n],this.list[r])>0?n=r:null!==i&&i<o&&this.compareFn(this.list[n],this.list[i])>0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}();e.default=i},"9Qp/":function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("ldJr")),o=r(n("4t6P")),a=r(n("/xpm")),s=function(t,e,n,r,c,h){var d,f,p,g,v=t.children(e),m=t.node(e),y=m?m.borderLeft:void 0,b=m?m.borderRight:void 0,_={};y&&(v=null===v||void 0===v?void 0:v.filter(function(t){return t!==y&&t!==b}));var x=(0,i.default)(t,v||[]);null===x||void 0===x||x.forEach(function(e){var i;if(null===(i=t.children(e.v))||void 0===i?void 0:i.length){var o=s(t,e.v,n,r,h);_[e.v]=o,o.hasOwnProperty("barycenter")&&u(e,o)}});var w=(0,o.default)(x,n);l(w,_),null===(d=w.filter(function(t){return t.vs.length>0}))||void 0===d||d.forEach(function(e){var n=t.node(e.vs[0]);n&&(e.fixorder=n.fixorder,e.order=n.order)});var S=(0,a.default)(w,r,c,h);if(y&&(S.vs=[y,S.vs,b].flat(),null===(f=t.predecessors(y))||void 0===f?void 0:f.length)){var C=t.node((null===(p=t.predecessors(y))||void 0===p?void 0:p[0])||""),k=t.node((null===(g=t.predecessors(b))||void 0===g?void 0:g[0])||"");S.hasOwnProperty("barycenter")||(S.barycenter=0,S.weight=0),S.barycenter=(S.barycenter*S.weight+C.order+k.order)/(S.weight+2),S.weight+=2}return S},l=function(t,e){null===t||void 0===t||t.forEach(function(t){var n,r=null===(n=t.vs)||void 0===n?void 0:n.map(function(t){return e[t]?e[t].vs:t});t.vs=r.flat()})},u=function(t,e){void 0!==t.barycenter?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)};e.default=s},"9UkZ":function(t,e,n){var r=n("aCM0"),i=n("vi0E"),o=n("UnEC"),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,h=u.call(Object);t.exports=function(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==h}},"9bBU":function(t,e,n){n("mClu");var r=n("FeBl").Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},"9lWR":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var o=n("Umca");Object.defineProperty(e,"registerLayout",{enumerable:!0,get:function(){return o.registerLayout}}),Object.defineProperty(e,"unRegisterLayout",{enumerable:!0,get:function(){return o.unRegisterLayout}}),Object.defineProperty(e,"getLayoutByName",{enumerable:!0,get:function(){return o.getLayoutByName}}),i(n("tN2E"),e)},"9v3E":function(t,e,n){"use strict";var r=n("BldQ"),i=[["text",n("Hvbp")],["linkify",n("hCci")],["newline",n("YNYx")],["escape",n("z7gM")],["backticks",n("LAoY")],["strikethrough",n("HVvo").tokenize],["emphasis",n("Inmu").tokenize],["link",n("EL1N")],["image",n("WCAV")],["autolink",n("W1VW")],["html_inline",n("ryq5")],["entity",n("sIya")]],o=[["balance_pairs",n("GmDp")],["strikethrough",n("HVvo").postProcess],["emphasis",n("Inmu").postProcess],["fragments_join",n("rYzl")]];function a(){var t;for(this.ruler=new r,t=0;t<i.length;t++)this.ruler.push(i[t][0],i[t][1]);for(this.ruler2=new r,t=0;t<o.length;t++)this.ruler2.push(o[t][0],o[t][1])}a.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,a=t.md.options.maxNesting,s=t.cache;if(void 0===s[r]){if(t.level<a){for(n=0;n<o;n++)if(t.level++,e=i[n](t,!0),t.level--,e){if(r>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,s[r]=t.pos}else t.pos=s[r]},a.prototype.tokenize=function(t){for(var e,n,r,i=this.ruler.getRules(""),o=i.length,a=t.posMax,s=t.md.options.maxNesting;t.pos<a;){if(r=t.pos,t.level<s)for(n=0;n<o;n++)if(e=i[n](t,!1)){if(r>=t.pos)throw new Error("inline rule didn't increment state.pos");break}if(e){if(t.pos>=a)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},a.prototype.parse=function(t,e,n,r){var i,o,a,s=new this.State(t,e,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},a.prototype.State=n("gEWq"),t.exports=a},ALrJ:function(t,e,n){var r=n("+ZMJ"),i=n("MU5D"),o=n("sB3e"),a=n("QRG4"),s=n("oeOm");t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var g,v,m=o(e),y=i(m),b=r(s,p,3),_=a(y.length),x=0,w=n?f(e,_):l?f(e,0):void 0;_>x;x++)if((d||x in y)&&(v=b(g=y[x],x,m),t))if(n)w[x]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return x;case 2:w.push(g)}else if(c)return!1;return h?-1:u||c?c:w}}},AMCD:function(t,e,n){"use strict";e.__esModule=!0,e.validateRangeInOneMonth=e.extractTimeFormat=e.extractDateFormat=e.nextYear=e.prevYear=e.nextMonth=e.prevMonth=e.changeYearMonthAndClampDate=e.timeWithinRange=e.limitTimeRange=e.clearMilliseconds=e.clearTime=e.modifyWithTimeString=e.modifyTime=e.modifyDate=e.range=e.getRangeMinutes=e.getMonthDays=e.getPrevMonthLastDays=e.getRangeHours=e.getWeekNumber=e.getStartDateOfMonth=e.nextDate=e.prevDate=e.getFirstDayOfMonth=e.getDayCountOfYear=e.getDayCountOfMonth=e.parseDate=e.formatDate=e.isDateObject=e.isDate=e.toDate=e.getI18nSettings=void 0;var r,i=n("eNfa"),o=(r=i)&&r.__esModule?r:{default:r},a=n("urW8");var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],u=e.getI18nSettings=function(){return{dayNamesShort:s.map(function(t){return(0,a.t)("el.datepicker.weeks."+t)}),dayNames:s.map(function(t){return(0,a.t)("el.datepicker.weeks."+t)}),monthNamesShort:l.map(function(t){return(0,a.t)("el.datepicker.months."+t)}),monthNames:l.map(function(t,e){return(0,a.t)("el.datepicker.month"+(e+1))}),amPm:["am","pm"]}},c=e.toDate=function(t){return h(t)?new Date(t):null},h=e.isDate=function(t){return null!==t&&void 0!==t&&(!isNaN(new Date(t).getTime())&&!Array.isArray(t))},d=(e.isDateObject=function(t){return t instanceof Date},e.formatDate=function(t,e){return(t=c(t))?o.default.format(t,e||"yyyy-MM-dd",u()):""},e.parseDate=function(t,e){return o.default.parse(t,e||"yyyy-MM-dd",u())}),f=e.getDayCountOfMonth=function(t,e){return 3===e||5===e||8===e||10===e?30:1===e?t%4==0&&t%100!=0||t%400==0?29:28:31},p=(e.getDayCountOfYear=function(t){return t%400==0||t%100!=0&&t%4==0?366:365},e.getFirstDayOfMonth=function(t){var e=new Date(t.getTime());return e.setDate(1),e.getDay()},e.prevDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)});e.nextDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},e.getStartDateOfMonth=function(t,e){var n=new Date(t,e,1),r=n.getDay();return p(n,0===r?7:r)},e.getWeekNumber=function(t){if(!h(t))return null;var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},e.getRangeHours=function(t){var e=[],n=[];if((t||[]).forEach(function(t){var e=t.map(function(t){return t.getHours()});n=n.concat(function(t,e){for(var n=[],r=t;r<=e;r++)n.push(r);return n}(e[0],e[1]))}),n.length)for(var r=0;r<24;r++)e[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)e[i]=!1;return e},e.getPrevMonthLastDays=function(t,e){if(e<=0)return[];var n=new Date(t.getTime());n.setDate(0);var r=n.getDate();return v(e).map(function(t,n){return r-(e-n-1)})},e.getMonthDays=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0).getDate();return v(e).map(function(t,e){return e+1})};function g(t,e,n,r){for(var i=e;i<n;i++)t[i]=r}e.getRangeMinutes=function(t,e){var n=new Array(60);return t.length>0?t.forEach(function(t){var r=t[0],i=t[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),l=i.getMinutes();o===e&&s!==e?g(n,a,60,!0):o===e&&s===e?g(n,a,l+1,!0):o!==e&&s===e?g(n,0,l+1,!0):o<e&&s>e&&g(n,0,60,!0)}):g(n,0,60,!0),n};var v=e.range=function(t){return Array.apply(null,{length:t}).map(function(t,e){return e})},m=e.modifyDate=function(t,e,n,r){return new Date(e,n,r,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},y=e.modifyTime=function(t,e,n,r){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n,r,t.getMilliseconds())},b=(e.modifyWithTimeString=function(t,e){return null!=t&&e?(e=d(e,"HH:mm:ss"),y(t,e.getHours(),e.getMinutes(),e.getSeconds())):t},e.clearTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.clearMilliseconds=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),0)},e.limitTimeRange=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===e.length)return t;var r=function(t){return o.default.parse(o.default.format(t,n),n)},i=r(t),a=e.map(function(t){return t.map(r)});if(a.some(function(t){return i>=t[0]&&i<=t[1]}))return t;var s=a[0][0],l=a[0][0];return a.forEach(function(t){s=new Date(Math.min(t[0],s)),l=new Date(Math.max(t[1],s))}),m(i<s?s:l,t.getFullYear(),t.getMonth(),t.getDate())}),_=(e.timeWithinRange=function(t,e,n){return b(t,e,n).getTime()===t.getTime()},e.changeYearMonthAndClampDate=function(t,e,n){var r=Math.min(t.getDate(),f(e,n));return m(t,e,n,r)});e.prevMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 0===n?_(t,e-1,11):_(t,e,n-1)},e.nextMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 11===n?_(t,e+1,0):_(t,e,n+1)},e.prevYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n-e,r)},e.nextYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n+e,r)},e.extractDateFormat=function(t){return t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},e.extractTimeFormat=function(t){return t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},e.validateRangeInOneMonth=function(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}},AZiY:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("TToO"),i=l(n("+cvj")),o=l(n("tZ0v")),a=l(n("2j9C")),s=n("lSAc");function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach(function(t,e){i.push(c(o,t,e,n,r))}),i},c=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach(function(e,l){if(e<=i&&n!==l){o.push(l),a.push(t[l]);var u=t[l][r];s[u]?(s[u].count++,s[u].dists.push(e)):s[u]={count:1,dists:[e]}}}),Object.keys(s).forEach(function(t){s[t].dists=s[t].dists.sort(function(t,e){return t-e})}),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s}},h=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach(function(o){var a,s;if(!r||!r[o]){r[o]={nodes:[],edges:[]};var l=t[o],u=null===(a=e[l.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[l.end])||void 0===s?void 0:s.nodeIdxs;if(u&&c){var h=new Set(c),d=u.filter(function(t){return h.has(t)});if(d&&d.length){for(var f={},p=d.length,g=0;g<p;g++){var v=i[d[g]];r[o].nodes.push(v),f[v.id]=!0}n.edges.forEach(function(t){f[t.source]&&f[t.target]&&r[o].edges.push(t)})}}}}),r},d=function(t,e,n,r){var i,o,a={};t.nodes.forEach(function(t){a[t.id]=t});var s=0;return!(null===(i=null===e||void 0===e?void 0:e.edges)||void 0===i?void 0:i.length)||(null===(o=null===e||void 0===e?void 0:e.nodes)||void 0===o?void 0:o.length)<2?0:(t.edges.forEach(function(t){var i=a[t.source][n],o=a[t.target][n],l=null===e||void 0===e?void 0:e.nodes[0][n],u=null===e||void 0===e?void 0:e.nodes[1][n],c=null===e||void 0===e?void 0:e.edges[0][r];t[r]===c&&(i===l&&o===u||i===u&&o===l)&&s++}),s)},f=function(t,e){var n={},r={};return t.forEach(function(t,i){n[t.id]={idx:i,node:t,degree:0,inDegree:0,outDegree:0};var o=t[e];r[o]||(r[o]=[]),r[o].push(t)}),{nodeMap:n,nodeLabelMap:r}},p=function(t,e,n){var r={},i={};return t.forEach(function(t,o){r["".concat(s.uniqueId)]={idx:o,edge:t};var a=t[e];i[a]||(i[a]=[]),i[a].push(t);var l=n[t.source];l&&(l.degree++,l.outDegree++);var u=n[t.target];u&&(u.degree++,u.inDegree++)}),{edgeMap:r,edgeLabelMap:i}},g=function(t,e,n){var r=e.length,i={};return e.forEach(function(e,o){for(var a=n?0:o+1,s=t[o].id,l=a;l<r;l++)if(o!==l){var u=t[l].id,c=e[l];i["".concat(s,"-").concat(u)]=c,n||(i["".concat(u,"-").concat(s)]=c)}}),i},v=function(t,e,n,r,i,o,a,s,l,u,c){var f,p="".concat(e.id,"-").concat(n.id);if(u&&u[p])return u[p];var g=c?c[p]:void 0;if(!g){var v=((f={})[p]={start:r[e.id].idx,end:r[n.id].idx,distance:i},f);g=(c=h(v,o,t,c))[p]}return d(g,a,s,l)},m=function(t,e,n,r){var i,o,a,s=null===(i=t[e])||void 0===i?void 0:i.degree,l=null===(o=t[e])||void 0===o?void 0:o.inDegree,u=null===(a=t[e])||void 0===a?void 0:a.outDegree;return void 0===t[e]&&(s=1/0,l=1/0,u=1/0,r[e].forEach(function(t){var e=n[t.id].degree;s>e&&(s=e);var r=n[t.id].inDegree;l>r&&(l=r);var i=n[t.id].outDegree;u>i&&(u=i)}),t[e]={degree:s,inDegree:l,outDegree:u}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:l,minPatternNodeLabelOutDegree:u}},y=function(t,e,n,s,l,y,b){var _;if(void 0===n&&(n=!1),void 0===y&&(y="cluster"),void 0===b&&(b="cluster"),t&&t.nodes){var x=t.nodes.length;if(x){var w=(0,i.default)(t,n),S=(0,i.default)(e,n),C=g(t.nodes,w,n),k=g(e.nodes,S,n),O=f(t.nodes,y),M=O.nodeMap,E=O.nodeLabelMap,T=f(e.nodes,y),A=T.nodeMap,I=T.nodeLabelMap;p(t.edges,b,M);var D=p(e.edges,b,A).edgeLabelMap,P=[];null===S||void 0===S||S.forEach(function(t){P=P.concat(t)}),l||(l=Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],P,!1),[2],!1))),s||(s=l);var L=u(t,w,y,s),j=u(e,S,y,s),N=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach(function(t,r){for(var l=0,u=0,c=t.nodeIdxs,h=t.neighborNum-1;l<o;){for(var d=c[1+Math.floor(Math.random()*h)],f=0;(a["".concat(r,"-").concat(d)]||a["".concat(d,"-").concat(r)])&&(d=Math.floor(Math.random()*e),!(++f>2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},l++,++s>=n))return a;if(++u>2*e)break}l<o&&(o=(o+(o-l))/(e-r-1))}),a}(0,x,Math.min(100,x*(x-1)/2),L,w),R=h(N,L,t),B={graphs:R,nodeLabelProp:y,edgeLabelProp:b,minSupport:1,minNodeNum:1,maxNodeNum:4,directed:n},F=(0,o.default)(B).slice(0,10),z=F.length,V=[];F.forEach(function(t,e){V[e]={},Object.keys(R).forEach(function(n){var r=R[n],i=d(r,t,y,b);V[e][n]=i})});var $=function(t,e,n){for(var r=1/0,i=0,o=function(e){var n=t[e],o=[];Object.keys(n).sort(function(t,e){return n[t]-n[e]}).forEach(function(t,e){o[e%10]||(o[e%10]={graphs:[],totalCount:0,aveCount:0}),o[e%10].graphs.push(t),o[e%10].totalCount+=n[t]});var a=0,s=[];o.forEach(function(t){var e=t.totalCount/t.graphs.length;t.aveCount=e,s.push(e);var r=0,i=t.length;t.graphs.forEach(function(e,i){var o=n[e];t.graphs.forEach(function(t,e){i!==e&&(r+=Math.abs(o-n[t]))})}),a+=r/=i*(i-1)/2}),a/=o.length;var l=0;s.forEach(function(t,e){s.forEach(function(n,r){e!==r&&(l+=Math.abs(t-n))}),l/=s.length*(s.length-1)/2});var u=l-a;r<u&&(r=u,i=e)},a=0;a<e;a++)o(a);return{structure:n[i],structureCountMap:t[i]}}(V,z,F),G=$.structure,H=$.structureCountMap,W=e.nodes[0],U=[],Y=null===(_=e.nodes[0])||void 0===_?void 0:_[y],X=-1/0;e.nodes.forEach(function(t){var e=t[y],n=E[e];(null===n||void 0===n?void 0:n.length)>X&&(X=n.length,U=n,Y=e,W=t)});var q={},Z={},K={},J={},Q={},tt={};Object.keys(I).forEach(function(r,i){Q[r]=[],n&&(tt[r]=[]);var o=-1/0,a={};I[r].forEach(function(t){var e=k["".concat(W.id,"-").concat(t.id)];if(e&&Q[r].push(e),o<e&&(o=e),a["".concat(W.id,"-").concat(t.id)]={start:0,end:A[t.id].idx,distance:e},n){var i=k["".concat(t.id,"-").concat(W.id)];i&&tt[r].push(i)}}),Q[r]=Q[r].sort(function(t,e){return t-e}),n&&(tt[r]=tt[r].sort(function(t,e){return t-e})),Z=h(a,j,e,Z);var s=[];if(Object.keys(a).forEach(function(t){if(K[t])s.push(K[t]);else{var e=Z[t];K[t]=d(e,G,y,b),s.push(K[t])}}),s=s.sort(function(t,e){return e-t}),J["".concat(W.id,"-").concat(r)]=s,r!==Y)for(var l=function(e){var n=U[e],i=L[M[n.id].idx],o=i.nodeLabelCountMap[r],a=I[r].length;if(!o||o.count<a)return U.splice(e,1),"continue";for(var l=!1,u=0;u<a;u++)if(o.dists[u]>Q[r][u]){l=!0;break}if(l)return U.splice(e,1),"continue";var c={};i.neighbors.forEach(function(t){var e=C["".concat(n.id,"-").concat(t.id)];c["".concat(n.id,"-").concat(t.id)]={start:M[n.id].idx,end:M[t.id].idx,distance:e}}),R=h(c,L,t,R);var f=[];Object.keys(c).forEach(function(t){if(H[t])f.push(H[t]);else{var e=R[t];H[t]=d(e,G,y,b),f.push(H[t])}}),f=f.sort(function(t,e){return e-t});var p=!1;for(u=0;u<a;u++)if(f[u]<s[u]){p=!0;break}return p?(U.splice(e,1),"continue"):void 0},u=((null===U||void 0===U?void 0:U.length)||0)-1;u>=0;u--)l(u)});var et=[];null===U||void 0===U||U.forEach(function(r){for(var i=M[r.id].idx,o=c(t.nodes,w[i],i,y,l).neighbors,a=!1,s=o.length-1;s>=0;s--){if(o.length+1<e.nodes.length)return void(a=!0);var u=o[s],h=u[y];if(I[h]&&I[h].length)if(Q[h]&&Q[h].length){var d="".concat(r.id,"-").concat(u.id),f=C[d],p=Q[h].length-1;if(f>Q[h][p])o.splice(s,1);else{if(n){var g="".concat(u.id,"-").concat(r.id),_=C[g];if(p=tt[h].length-1,_>tt[h][p]){o.splice(s,1);continue}}var x=H[d]?H[d]:v(t,r,u,M,f,L,G,y,b,H,R),S="".concat(W.id,"-").concat(h);if(x<J[S][J[S].length-1])o.splice(s,1);else{var k=m(q,h,A,I),O=k.minPatternNodeLabelDegree;k.minPatternNodeLabelInDegree,k.minPatternNodeLabelOutDegree,M[u.id].degree<O&&o.splice(s,1)}}}else o.splice(s,1);else o.splice(s,1)}a||et.push({nodes:[r].concat(o)})});var nt=(0,a.default)(e,W.id,!1).length,rt={};n?(Object.keys(nt).forEach(function(t){var e=A[t].node[y];rt[e]?rt[e].push(nt[t]):rt[e]=[nt[t]]}),Object.keys(rt).forEach(function(t){rt[t].sort(function(t,e){return t-e})})):rt=Q;for(var it=function(r){var i=et[r],o=i.nodes[0],s={},l={};i.nodes.forEach(function(t,e){l[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[y];s[n]?s[n]++:s[n]=1});var u=[],c={};t.edges.forEach(function(t){l[t.source]&&l[t.target]&&(u.push(t),c[t[b]]?c[t[b]]++:c[t[b]]=1,l[t.source].degree++,l[t.target].degree++,l[t.source].outDegree++,l[t.target].inDegree++)});for(var h=Object.keys(D).length,d=!1,f=0;f<h;f++){var p=Object.keys(D)[f];if(!c[p]||c[p]<D[p].length){d=!0;break}}if(d)return et.splice(r,1),"continue";var g=u.length;if(g<e.edges.length)return et.splice(r,1),"break";var v=!1,_=function(t){var e=u[t],r=e[b],i=D[r];if(!i||!i.length)return c[r]--,i&&c[r]<i.length?(v=!0,"break"):(u.splice(t,1),l[e.source].degree--,l[e.target].degree--,l[e.source].outDegree--,l[e.target].inDegree--,"continue");var o=l[e.source].node[y],a=l[e.target].node[y],s=!1;return i.forEach(function(t){var e=A[t.source].node,r=A[t.target].node;e[y]===o&&r[y]===a&&(s=!0),n||e[y]!==a||r[y]!==o||(s=!0)}),s?void 0:(c[r]--,i&&c[r]<i.length?(v=!0,"break"):(u.splice(t,1),l[e.source].degree--,l[e.target].degree--,l[e.source].outDegree--,l[e.target].inDegree--,"continue"))};for(f=g-1;f>=0&&"break"!==_(f);f--);if(v)return et.splice(r,1),"continue";i.edges=u;var x=(0,a.default)(i,i.nodes[0].id,!1).length;if(Object.keys(x).reverse().forEach(function(t){if(t!==i.nodes[0].id&&!v){if(x[t]===1/0){var e=l[t].node[y];if(s[e]--,s[e]<I[e].length)return void(v=!0);var n=i.nodes.indexOf(l[t].node);return i.nodes.splice(n,1),void(l[t]=void 0)}var r=M[t].node[y];if(!rt[r]||!rt[r].length||x[t]>rt[r][rt[r].length-1]){if(e=l[t].node[y],s[e]--,s[e]<I[e].length)return void(v=!0);n=i.nodes.indexOf(l[t].node),i.nodes.splice(n,1),l[t]=void 0}}}),v)return et.splice(r,1),"continue";for(var w=!0,S=0;w&&!v;){if(w=!1,n?l[o.id].degree<A[W.id].degree||l[o.id].inDegree<A[W.id].inDegree||l[o.id].outDegree<A[W.id].outDegree:l[o.id].degree<A[W.id].degree){v=!0;break}if(s[o[y]]<I[o[y]].length){v=!0;break}for(var C=i.nodes.length-1;C>=0;C--){var k=i.nodes[C],O=l[k.id].degree,E=l[k.id].inDegree,T=l[k.id].outDegree,P=k[y],L=m(q,P,A,I),j=L.minPatternNodeLabelDegree,N=L.minPatternNodeLabelInDegree,R=L.minPatternNodeLabelOutDegree;if(n?O<j||E<N||T<R:O<j){if(s[k[y]]--,s[k[y]]<I[k[y]].length){v=!0;break}i.nodes.splice(C,1),l[k.id]=void 0,w=!0}}if(v||!w&&0!==S)break;for(var B=(g=u.length)-1;B>=0;B--){var F=u[B];if(!l[F.source]||!l[F.target]){u.splice(B,1);var z=F[b];if(c[z]--,l[F.source]&&(l[F.source].degree--,l[F.source].outDegree--),l[F.target]&&(l[F.target].degree--,l[F.target].inDegree--),D[z]&&c[z]<D[z].length){v=!0;break}w=!0}}S++}return v?(et.splice(r,1),"continue"):v||i.nodes.length<e.nodes.length||u.length<e.edges.length?(et.splice(r,1),"continue"):void 0},ot=et.length-1;ot>=0&&"break"!==it(ot);ot--);var at=et.length,st=function(t){var e={};et[t].edges.forEach(function(t){var n="".concat(t.source,"-").concat(t.target,"-").concat(t.label);e[n]?e[n]++:e[n]=1});for(var n=function(t){var n={};et[t].edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1});var r=!0;Object.keys(n).length!==Object.keys(e).length?r=!1:Object.keys(e).forEach(function(t){n[t]!==e[t]&&(r=!1)}),r&&et.splice(t,1)},r=at-1;r>t;r--)n(r);at=et.length};for(ot=0;ot<=at-1;ot++)st(ot);return et}}};e.default=y},BDhv:function(t,e,n){var r=n("kM2E");r(r.P+r.R,"Set",{toJSON:n("m9gC")("Set")})},BIhM:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VACANT_NODE_LABEL=e.VACANT_NODE_ID=e.VACANT_GRAPH_ID=e.VACANT_EDGE_LABEL=e.VACANT_EDGE_ID=e.Node=e.Graph=e.Edge=e.AUTO_EDGE_ID=void 0;var r=-1;e.VACANT_EDGE_ID=r;var i=-1;e.VACANT_NODE_ID=i;var o="-1";e.VACANT_EDGE_LABEL=o;var a="-1";e.VACANT_NODE_LABEL=a;e.VACANT_GRAPH_ID=-1;e.AUTO_EDGE_ID="-1";var s=function(){return function(t,e,n,a){void 0===t&&(t=r),void 0===e&&(e=i),void 0===n&&(n=i),void 0===a&&(a=o),this.id=t,this.from=e,this.to=n,this.label=a}}();e.Edge=s;var l=function(){function t(t,e){void 0===t&&(t=i),void 0===e&&(e=a),this.id=t,this.label=e,this.edges=[],this.edgeMap={}}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t},t}();e.Node=l;var u=function(){function t(t,e,n){void 0===t&&(t=i),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n}return t.prototype.getNodeNum=function(){return this.nodes.length},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new l(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t)}},t.prototype.addEdge=function(t,e,n,r){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!(this.nodeMap[e]&&this.nodeMap[n]&&this.nodeMap[n].edgeMap[t])){var i=new s(t,e,n,r);if(this.edges.push(i),this.edgeMap[t]=i,this.nodeMap[e].addEdge(i),this.edgeLabelMap[r]||(this.edgeLabelMap[r]=[]),this.edgeLabelMap[r].push(i),!this.directed){var o=new s(t,n,e,r);this.nodeMap[n].addEdge(o),this.edgeLabelMap[r].push(o)}}},t}();e.Graph=u},BO1k:function(t,e,n){t.exports={default:n("fxRn"),__esModule:!0}},BldQ:function(t,e,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},r.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(t){e.indexOf(t)<0&&e.push(t)})}),t.__cache__={},e.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn))})})},r.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.after=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!0,n.push(t)},this),this.__cache__=null,n},r.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(t,e)},r.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(t){var r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!1,n.push(t)},this),this.__cache__=null,n},r.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},t.exports=r},BuFP:function(t,e,n){"use strict";e.j=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},n.d(e,"c",function(){return i}),e.g=function(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;for(;n;){if(n===t){r=!0;break}n=n.getParent()}return r},e.b=function(t){return t.cfg.visible&&t.cfg.capture};var r=n("IgWN");n.d(e,"e",function(){return r.isNil}),n.d(e,"d",function(){return r.isFunction}),n.d(e,"h",function(){return r.isString}),n.d(e,"f",function(){return r.isObject}),n.d(e,"i",function(){return r.mix}),n.d(e,"a",function(){return r.each}),n.d(e,"k",function(){return r.upperFirst});var i="undefined"!=typeof window&&void 0!==window.document},BwfY:function(t,e,n){n("fWfb"),n("M6a0"),n("OYls"),n("QWe/"),t.exports=n("FeBl").Symbol},"C3+6":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ComboForceLayout=void 0;var o=n("w9t0"),a=n("ZE1E"),s=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.maxIteration=100,n.gravity=10,n.comboGravity=10,n.linkDistance=10,n.alpha=1,n.alphaMin=.001,n.alphaDecay=1-Math.pow(n.alphaMin,1/300),n.alphaTarget=0,n.velocityDecay=.6,n.edgeStrength=.6,n.nodeStrength=30,n.preventOverlap=!1,n.preventNodeOverlap=!1,n.preventComboOverlap=!1,n.collideStrength=void 0,n.nodeCollideStrength=.5,n.comboCollideStrength=.5,n.comboSpacing=20,n.comboPadding=10,n.optimizeRangeFactor=1,n.onTick=function(){},n.onLayoutEnd=function(){},n.depthAttractiveForceScale=1,n.depthRepulsiveForceScale=2,n.nodes=[],n.edges=[],n.combos=[],n.comboTrees=[],n.width=300,n.height=300,n.bias=[],n.nodeMap={},n.oriComboMap={},n.indexMap={},n.comboMap={},n.previousLayouted=!1,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(this.comboTree={id:"comboTreeRoot",depth:-1,children:this.comboTrees},t&&0!==t.length){if(1===t.length)return t[0].x=e[0],t[0].y=e[1],void(this.onLayoutEnd&&this.onLayoutEnd());this.initVals(),this.run(),this.onLayoutEnd&&this.onLayoutEnd()}else this.onLayoutEnd&&this.onLayoutEnd()},e.prototype.run=function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var r=t.center,i=t.velocityDecay,o=t.comboMap;t.previousLayouted||t.initPos(o);for(var s=function(n){var r=[];e.forEach(function(t,e){r[e]={x:0,y:0}}),t.applyCalculate(r),t.applyComboCenterForce(r),e.forEach(function(t,e){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(t.x+=r[e].x*i,t.y+=r[e].y*i)}),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},l=0;l<n;l++)s();var u=[0,0];e.forEach(function(t){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(u[0]+=t.x,u[1]+=t.y)}),u[0]/=e.length,u[1]/=e.length;var c=[r[0]-u[0],r[1]-u[1]];e.forEach(function(t,e){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(t.x+=c[0],t.y+=c[1])}),t.combos.forEach(function(t){var e=o[t.id];e&&e.empty&&(t.x=e.cx||t.x,t.y=e.cy||t.y)}),t.previousLayouted=!0},e.prototype.initVals=function(){var t=this.edges,e=this.nodes,n=this.combos,r={},i={},o={};e.forEach(function(t,e){i[t.id]=t,o[t.id]=e}),this.nodeMap=i,this.indexMap=o;var s={};n.forEach(function(t){s[t.id]=t}),this.oriComboMap=s,this.comboMap=this.getComboMap();var l=this.preventOverlap;this.preventComboOverlap=this.preventComboOverlap||l,this.preventNodeOverlap=this.preventNodeOverlap||l;var u=this.collideStrength;u&&(this.comboCollideStrength=u,this.nodeCollideStrength=u),this.comboCollideStrength=this.comboCollideStrength?this.comboCollideStrength:0,this.nodeCollideStrength=this.nodeCollideStrength?this.nodeCollideStrength:0;for(var c=0;c<t.length;++c){var h=(0,a.getEdgeTerminal)(t[c],"source"),d=(0,a.getEdgeTerminal)(t[c],"target");r[h]?r[h]++:r[h]=1,r[d]?r[d]++:r[d]=1}var f=[];for(c=0;c<t.length;++c){h=(0,a.getEdgeTerminal)(t[c],"source"),d=(0,a.getEdgeTerminal)(t[c],"target");f[c]=r[h]/(r[h]+r[d])}this.bias=f;var p,g,v=this.nodeSize,m=this.nodeSpacing;if(g=(0,a.isNumber)(m)?function(){return m}:(0,a.isFunction)(m)?m:function(){return 0},this.nodeSpacing=g,v)if((0,a.isFunction)(v))p=function(t){return v(t)};else if((0,a.isArray)(v)){var y=(v[0]>v[1]?v[0]:v[1])/2;p=function(t){return y}}else{var b=v/2;p=function(t){return b}}else p=function(t){return t.size?(0,a.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:(0,a.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2:t.size/2:10};this.nodeSize=p;var _,x=this.comboSpacing;_=(0,a.isNumber)(x)?function(){return x}:(0,a.isFunction)(x)?x:function(){return 0},this.comboSpacing=_;var w,S=this.comboPadding;w=(0,a.isNumber)(S)?function(){return S}:(0,a.isArray)(S)?function(){return Math.max.apply(null,S)}:(0,a.isFunction)(S)?S:function(){return 0},this.comboPadding=w;var C,k=this.linkDistance;k||(k=10),C=(0,a.isNumber)(k)?function(t){return k}:k,this.linkDistance=C;var O,M=this.edgeStrength;M||(M=1),O=(0,a.isNumber)(M)?function(t){return M}:M,this.edgeStrength=O;var E,T=this.nodeStrength;T||(T=30),E=(0,a.isNumber)(T)?function(t){return T}:T,this.nodeStrength=E},e.prototype.initPos=function(t){this.nodes.forEach(function(e,n){var r=e.comboId,i=t[r];r&&i?(e.x=i.cx+100/(n+1),e.y=i.cy+100/(n+1)):(e.x=100/(n+1),e.y=100/(n+1))})},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,n=t.comboTrees,r=t.oriComboMap,i={};return(n||[]).forEach(function(n){var o=[];(0,a.traverseTreeUp)(n,function(n){if("node"===n.itemType)return!0;if(!r[n.id])return!0;if(void 0===i[n.id]){var s={id:n.id,name:n.id,cx:0,cy:0,count:0,depth:t.oriComboMap[n.id].depth||0,children:[]};i[n.id]=s}var l=n.children;l&&l.forEach(function(t){if(!i[t.id]&&!e[t.id])return!0;o.push(t)});var u=i[n.id];if(u.cx=0,u.cy=0,0===o.length){u.empty=!0;var c=r[n.id];u.cx=c.x,u.cy=c.y}return o.forEach(function(t){if(u.count++,"node"!==t.itemType){var n=i[t.id];return(0,a.isNumber)(n.cx)&&(u.cx+=n.cx),void((0,a.isNumber)(n.cy)&&(u.cy+=n.cy))}var r=e[t.id];r&&((0,a.isNumber)(r.x)&&(u.cx+=r.x),(0,a.isNumber)(r.y)&&(u.cy+=r.y))}),u.cx/=u.count||1,u.cy/=u.count||1,u.children=o,!0})}),i},e.prototype.applyComboCenterForce=function(t){var e=this.gravity,n=this.comboGravity||e,r=this.alpha,i=this.comboTrees,o=this.indexMap,s=this.nodeMap,l=this.comboMap;(i||[]).forEach(function(e){(0,a.traverseTreeUp)(e,function(e){if("node"===e.itemType)return!0;if(!l[e.id])return!0;var i=l[e.id],u=(i.depth+1)/10*.5,c=i.cx,h=i.cy;return i.cx=0,i.cy=0,i.children.forEach(function(e){if("node"!==e.itemType){var d=l[e.id];return d&&(0,a.isNumber)(d.cx)&&(i.cx+=d.cx),void(d&&(0,a.isNumber)(d.cy)&&(i.cy+=d.cy))}var f=s[e.id],p=f.x-c||.005,g=f.y-h||.005,v=Math.sqrt(p*p+g*g),m=o[f.id],y=n*r/v*u;t[m].x-=p*y,t[m].y-=g*y,(0,a.isNumber)(f.x)&&(i.cx+=f.x),(0,a.isNumber)(f.y)&&(i.cy+=f.y)}),i.cx/=i.count||1,i.cy/=i.count||1,!0})})},e.prototype.applyCalculate=function(t){var e=this.comboMap,n=this.nodes,r={};n.forEach(function(t,e){n.forEach(function(n,i){if(!(e<i)){var o=t.x-n.x||.005,a=t.y-n.y||.005,s=o*o+a*a,l=Math.sqrt(s);s<1&&(s=l),r["".concat(t.id,"-").concat(n.id)]={vx:o,vy:a,vl2:s,vl:l},r["".concat(n.id,"-").concat(t.id)]={vl2:s,vl:l,vx:-o,vy:-a}}})}),this.updateComboSizes(e),this.calRepulsive(t,r),this.calAttractive(t,r),this.preventComboOverlap&&this.comboNonOverlapping(t,e)},e.prototype.updateComboSizes=function(t){var e=this,n=e.comboTrees,r=e.nodeMap,i=e.nodeSize,o=e.comboSpacing,s=e.comboPadding;(n||[]).forEach(function(n){var l=[];(0,a.traverseTreeUp)(n,function(n){if("node"===n.itemType)return!0;var u=t[n.id];if(!u)return!1;var c=n.children;c&&c.forEach(function(e){(t[e.id]||r[e.id])&&l.push(e)}),u.minX=1/0,u.minY=1/0,u.maxX=-1/0,u.maxY=-1/0,l.forEach(function(t){if("node"!==t.itemType)return!0;var e=r[t.id];if(!e)return!0;var n=i(e),o=e.x-n,a=e.y-n,s=e.x+n,l=e.y+n;u.minX>o&&(u.minX=o),u.minY>a&&(u.minY=a),u.maxX<s&&(u.maxX=s),u.maxY<l&&(u.maxY=l)});var h=e.oriComboMap[n.id].size||10;(0,a.isArray)(h)&&(h=h[0]);var d=Math.max(u.maxX-u.minX,u.maxY-u.minY,h);return u.r=d/2+o(u)/2+s(u),!0})})},e.prototype.comboNonOverlapping=function(t,e){var n=this.comboTree,r=this.comboCollideStrength,i=this.indexMap,o=this.nodeMap;(0,a.traverseTreeUp)(n,function(n){if(!e[n.id]&&!o[n.id]&&"comboTreeRoot"!==n.id)return!1;var a=n.children;return a&&a.length>1&&a.forEach(function(n,s){if("node"===n.itemType)return!1;var l=e[n.id];l&&a.forEach(function(a,u){if(s<=u)return!1;if("node"===a.itemType)return!1;var c=e[a.id];if(!c)return!1;var h=l.cx-c.cx||.005,d=l.cy-c.cy||.005,f=h*h+d*d,p=l.r||1,g=c.r||1,v=p+g,m=g*g,y=p*p;if(f<v*v){var b=n.children;if(!b||0===b.length)return!1;var _=a.children;if(!_||0===_.length)return!1;var x=Math.sqrt(f),w=(v-x)/x*r,S=h*w,C=d*w,k=m/(y+m),O=1-k;b.forEach(function(e){if("node"!==e.itemType)return!1;if(o[e.id]){var n=i[e.id];_.forEach(function(e){if("node"!==e.itemType)return!1;if(!o[e.id])return!1;var r=i[e.id];t[n].x+=S*k,t[n].y+=C*k,t[r].x-=S*O,t[r].y-=C*O})}})}})}),!0})},e.prototype.calRepulsive=function(t,e){var n=this,r=n.nodes,i=n.width*n.optimizeRangeFactor,o=n.nodeStrength,a=n.alpha,s=n.nodeCollideStrength,l=n.preventNodeOverlap,u=n.nodeSize,c=n.nodeSpacing,h=n.depthRepulsiveForceScale,d=n.center;r.forEach(function(f,p){if(f.x&&f.y){if(d){var g=n.gravity,v=f.x-d[0]||.005,m=f.y-d[1]||.005,y=Math.sqrt(v*v+m*m);t[p].x-=v*g*a/y,t[p].y-=m*g*a/y}r.forEach(function(n,r){if(p!==r&&n.x&&n.y){var d=e["".concat(f.id,"-").concat(n.id)],g=d.vl2,v=d.vl;if(!(v>i)){var m=e["".concat(f.id,"-").concat(n.id)],y=m.vx,b=m.vy,_=Math.log(Math.abs(n.depth-f.depth)/10)+1||1;_=_<1?1:_,n.comboId!==f.comboId&&(_+=1);var x=_?Math.pow(h,_):1,w=o(n)*a/g*x;if(t[p].x+=y*w,t[p].y+=b*w,p<r&&l){var S=u(f)+c(f)||1,C=u(n)+c(n)||1,k=S+C;if(g<k*k){var O=(k-v)/v*s,M=C*C,E=M/(S*S+M),T=y*O,A=b*O;t[p].x+=T*E,t[p].y+=A*E,E=1-E,t[r].x-=T*E,t[r].y-=A*E}}}}})}})},e.prototype.calAttractive=function(t,e){var n=this,r=n.edges,i=n.linkDistance,o=n.alpha,s=n.edgeStrength,l=n.bias,u=n.depthAttractiveForceScale;r.forEach(function(r,c){var h=(0,a.getEdgeTerminal)(r,"source"),d=(0,a.getEdgeTerminal)(r,"target");if(h&&d&&h!==d){var f=n.indexMap[h],p=n.indexMap[d],g=n.nodeMap[h],v=n.nodeMap[d];if(g&&v){var m=g.depth===v.depth?0:Math.log(Math.abs(g.depth-v.depth)/10);g.comboId===v.comboId&&(m/=2);var y=m?Math.pow(u,m):1;if(g.comboId!==v.comboId&&1===y?y=u/2:g.comboId===v.comboId&&(y=2),(0,a.isNumber)(v.x)&&(0,a.isNumber)(g.x)&&(0,a.isNumber)(v.y)&&(0,a.isNumber)(g.y)){var b=e["".concat(d,"-").concat(h)],_=b.vl,x=b.vx,w=b.vy,S=(_-i(r))/_*o*s(r)*y,C=x*S,k=w*S,O=l[c];t[p].x-=C*O,t[p].y-=k*O,t[f].x+=C*(1-O),t[f].y+=k*(1-O)}}}})},e.prototype.getType=function(){return"comboForce"},e}(o.Base);e.ComboForceLayout=s},C4MV:function(t,e,n){t.exports={default:n("9bBU"),__esModule:!0}},C9uT:function(t,e,n){var r=n("1VE+");function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},CLuh:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Force2Layout=void 0;var a=n("w9t0"),s=n("ZE1E"),l=n("dVqt"),u=function(t,e){return t?(0,s.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},c=function(t){function e(e){var n=t.call(this)||this;n.maxIteration=1e3,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=500,n.minMovement=.4,n.interval=.02,n.factor=1,n.linkDistance=200,n.gravity=0,n.clusterNodeStrength=20,n.preventOverlap=!0,n.distanceThresholdMode="mean",n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.judgingDistance=0,n.centripetalOptions={leaf:2,single:2,others:1,center:function(t){return{x:n.width/2,y:n.height/2}}};var r=e.getMass;return n.propsGetMass=r,n.updateCfg(e),n}return i(e,t),e.prototype.getCentripetalOptions=function(){var t,e=this,n=e.leafCluster,r=e.clustering,i=e.nodeClusterBy,a=e.nodes,l=e.nodeMap,u=e.clusterNodeStrength,c=function(t){return"function"==typeof u?u(t):u},h={};if(n){t=this.getSameTypeLeafMap()||{};var d=Array.from(new Set(null===a||void 0===a?void 0:a.map(function(t){return t[i]})))||[];h={single:100,leaf:function(e,n,r){var i=t[e.id]||{},o=i.relativeLeafNodes,a=i.sameTypeLeafNodes;return(null===a||void 0===a?void 0:a.length)===(null===o||void 0===o?void 0:o.length)||1===(null===d||void 0===d?void 0:d.length)?1:c(e)},others:1,center:function(e,n,r){var i,o,a=((null===(i=e.data)||void 0===i?void 0:i.layout)||{}).degree;if(!a)return{x:100,y:100};if(1===a){var l=(t[e.id]||{}).sameTypeLeafNodes,u=void 0===l?[]:l;1===u.length?o=void 0:u.length>1&&(o=(0,s.getAvgNodePosition)(u))}else o=void 0;return{x:null===o||void 0===o?void 0:o.x,y:null===o||void 0===o?void 0:o.y}}}}if(r){t||(t=this.getSameTypeLeafMap());var f={};Array.from(new Set(a.map(function(t,e){return t[i]}))).filter(function(t){return void 0!==t}).forEach(function(t){var e=a.filter(function(e){return e[i]===t}).map(function(t){return l[t.id]});f[t]=(0,s.getAvgNodePosition)(e)}),h={single:function(t){return c(t)},leaf:function(t){return c(t)},others:function(t){return c(t)},center:function(t,e,n){var r=f[t[i]];return{x:null===r||void 0===r?void 0:r.x,y:null===r||void 0===r?void 0:r.y}}}}this.centripetalOptions=o(o({},this.centripetalOptions),h);var p=this.centripetalOptions,g=p.leaf,v=p.single,m=p.others;g&&"function"!=typeof g&&(this.centripetalOptions.leaf=function(){return g}),v&&"function"!=typeof v&&(this.centripetalOptions.single=function(){return v}),m&&"function"!=typeof m&&(this.centripetalOptions.others=function(){return m})},e.prototype.updateCfg=function(t){t&&Object.assign(this,t)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t=this;t.stop();var e=t.nodes,n=t.edges,r=t.defSpringLen;if(t.judgingDistance=0,e&&0!==e.length){t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var i=t.center;if(1===e.length)return e[0].x=i[0],e[0].y=i[1],void t.onLayoutEnd([o({},e[0])]);t.degreesMap=(0,s.getDegreeMap)(e,n),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(e){var n=1;(0,s.isNumber)(e.mass)&&(n=e.mass);var r=t.degreesMap[e.id].all;return!r||r<5?n:5*r*n};var a,l=t.nodeSize;if(t.preventOverlap){var c,h=t.nodeSpacing;c=(0,s.isNumber)(h)?function(){return h}:(0,s.isFunction)(h)?h:function(){return 0},a=l?(0,s.isArray)(l)?function(t){return Math.max(l[0],l[1])+c(t)}:function(t){return l+c(t)}:function(t){return t.size?(0,s.isArray)(t.size)?Math.max(t.size[0],t.size[1])+c(t):(0,s.isObject)(t.size)?Math.max(t.size.width,t.size.height)+c(t):t.size+c(t):10+c(t)}}t.nodeSize=a,t.linkDistance=u(t.linkDistance,1),t.nodeStrength=u(t.nodeStrength,1),t.edgeStrength=u(t.edgeStrength,1);var d={},f={};e.forEach(function(e,r){(0,s.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,s.isNumber)(e.y)||(e.y=Math.random()*t.height);var i=t.degreesMap[e.id];d[e.id]=o(o({},e),{data:o(o({},e.data),{size:t.nodeSize(e)||30,layout:{inDegree:i.in,outDegree:i.out,degree:i.all,tDegree:i.in,sDegree:i.out,force:{mass:t.getMass(e),nodeStrength:t.nodeStrength(e,n)}}})}),f[e.id]=r}),t.nodeMap=d,t.nodeIdxMap=f,t.edgeInfos=[],null===n||void 0===n||n.forEach(function(e){var n=d[e.source],i=d[e.target];n&&i?t.edgeInfos.push({edgeStrength:t.edgeStrength(e),linkDistance:r?r(o(o({},e),{source:n,target:i}),n,i):t.linkDistance(e,n,i)||1+(l(n)+l(n)||0)/2}):elf.edgeInfos.push({})}),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()}else t.onLayoutEnd([])},e.prototype.run=function(){var t=this,e=t.maxIteration,n=t.nodes,r=t.edges,i=t.workerEnabled,o=t.minMovement,a=t.animate,s=t.nodeMap,l=t.height;if(t.currentMinY=0,t.currentMaxY=l,n){var u=[];if(n.forEach(function(t,e){u[2*e]=0,u[2*e+1]=0}),this.defSideCoe&&"function"==typeof this.defSideCoe){var c={};r.forEach(function(t){var e=t.source,n=t.target;c[e]=c[e]||[],c[e].push(t),c[n]=c[n]||[],c[n].push(t)}),this.relatedEdges=c}var h=e;if(i||!a){for(var d=0;(t.judgingDistance>o||d<1)&&d<h;d++)d,t.runOneStep(d,u);t.onLayoutEnd(Object.values(s))}else{if("undefined"==typeof window)return;var f=0;this.timeInterval=window.setInterval(function(){n&&(t.runOneStep(f,u),(++f>=h||t.judgingDistance<o)&&(t.onLayoutEnd(Object.values(s)),window.clearInterval(t.timeInterval)))},0)}}},e.prototype.runOneStep=function(t,e){var n,r=this.nodes,i=this.edges,o=(this.nodeMap,this.monitor),a=[];if(null===r||void 0===r?void 0:r.length){this.calRepulsive(a),i&&this.calAttractive(a),this.calGravity(a),this.attractToSide(a);var s=this.interval;if(this.updateVelocity(a,e,s),this.updatePosition(e,s),null===(n=this.tick)||void 0===n||n.call(this),o)o({energy:this.calTotalEnergy(a),nodes:r,edges:i,iterations:t})}},e.prototype.calTotalEnergy=function(t){var e=this.nodes,n=this.nodeMap;if(!(null===e||void 0===e?void 0:e.length))return 0;var r=0;return e.forEach(function(e,i){var o=t[2*i],a=t[2*i+1],s=o*o+a*a,l=n[e.id].data.layout.force.mass;r+=(void 0===l?1:l)*s*.5}),r},e.prototype.calRepulsive=function(t){var e=this.nodes,n=this.nodeMap,r=this.factor,i=this.coulombDisScale;this.nodeSize;(0,l.forceNBody)(e,n,r,i*i,t)},e.prototype.calAttractive=function(t){var e=this.edges,n=this.nodeMap,r=this.nodeIdxMap,i=this.edgeInfos;this.nodeSize;e.forEach(function(e,o){var a=(0,s.getEdgeTerminal)(e,"source"),l=(0,s.getEdgeTerminal)(e,"target"),u=n[a],c=n[l];if(u&&c){var h=c.x-u.x,d=c.y-u.y;h||d||(h=.01*Math.random(),d=.01*Math.random());var f=Math.sqrt(h*h+d*d),p=h/f,g=d/f,v=i[o]||{},m=v.linkDistance,y=void 0===m?200:m,b=v.edgeStrength,_=(y-f)*(void 0===b?200:b),x=1/(u.data.layout.force.mass||1),w=1/(c.data.layout.force.mass||1),S=p*_,C=g*_,k=2*r[a],O=2*r[l];t[k]-=S*x,t[k+1]-=C*x,t[O]+=S*w,t[O+1]+=C*w}})},e.prototype.calGravity=function(t){var e,n=this.nodes,r=this.edges,i=void 0===r?[]:r,o=this.nodeMap,a=this.width,l=this.height,u=this.center,c=this.gravity,h=this.degreesMap,d=this.centripetalOptions;if(n)for(var f=n.length,p=0;p<f;p++){var g=2*p,v=o[n[p].id],m=v.data.layout.force.mass,y=void 0===m?1:m,b=0,_=0,x=c,w=h[v.id],S=w.in,C=w.out,k=w.all,O=null===(e=this.getCenter)||void 0===e?void 0:e.call(this,v,k);if(O){var M=O[0],E=O[1],T=O[2];b=v.x-M,_=v.y-E,x=T}else b=v.x-u[0],_=v.y-u[1];if(x&&(t[g]-=x*b/y,t[g+1]-=x*_/y),d){var A=d.leaf,I=d.single,D=d.others,P=d.center,L=(null===P||void 0===P?void 0:P(v,n,i,a,l))||{x:0,y:0,centerStrength:0},j=L.x,N=L.y,R=L.centerStrength;if(!(0,s.isNumber)(j)||!(0,s.isNumber)(N))continue;var B=(v.x-j)/y,F=(v.y-N)/y;if(R&&(t[g]-=R*B,t[g+1]-=R*F),0===k){var z=I(v);if(!z)continue;t[g]-=z*B,t[g+1]-=z*F;continue}if(0===S||0===C){var V=A(v,n,i);if(!V)continue;t[g]-=V*B,t[g+1]-=V*F;continue}var $=D(v);if(!$)continue;t[g]-=$*B,t[g+1]-=$*F}}},e.prototype.attractToSide=function(t){var e=this,n=e.defSideCoe,r=(e.height,e.nodes),i=e.relatedEdges,o=e.currentMinY,a=void 0===o?0:o,s=e.currentMaxY,l=void 0===s?this.height:s;n&&"function"==typeof n&&(null===r||void 0===r?void 0:r.length)&&r.forEach(function(e,r){var o=n(e,i[e.id]||[]);if(0!==o){var s=o<0?a:l,u=Math.abs(o);t[2*r+1]-=u*(e.y-s)}})},e.prototype.updateVelocity=function(t,e,n){var r=this.nodes,i=this.damping,o=this.maxSpeed;(null===r||void 0===r?void 0:r.length)&&r.forEach(function(r,a){var s=(e[2*a]+t[2*a]*n)*i||.01,l=(e[2*a+1]+t[2*a+1]*n)*i||.01,u=Math.sqrt(s*s+l*l);if(u>o){var c=o/u;s*=c,l*=c}e[2*a]=s,e[2*a+1]=l})},e.prototype.updatePosition=function(t,e){var n=this,r=n.nodes,i=n.distanceThresholdMode,o=n.nodeMap;if(null===r||void 0===r?void 0:r.length){var a=0;"max"===i?n.judgingDistance=-1/0:"min"===i&&(n.judgingDistance=1/0);var l=1/0,u=-1/0;r.forEach(function(r,c){var h=o[r.id];if((0,s.isNumber)(r.fx)&&(0,s.isNumber)(r.fy))return r.x=r.fx,r.y=r.fy,h.x=r.x,void(h.y=r.y);var d=t[2*c]*e,f=t[2*c+1]*e;r.x+=d,r.y+=f,h.x=r.x,h.y=r.y,r.y<l&&(l=r.y),r.y>u&&(u=r.y);var p=Math.sqrt(d*d+f*f);switch(i){case"max":n.judgingDistance<p&&(n.judgingDistance=p);break;case"min":n.judgingDistance>p&&(n.judgingDistance=p);break;default:a+=p}}),this.currentMinY=l,this.currentMaxY=u,i&&"mean"!==i||(n.judgingDistance=a/r.length)}else this.judgingDistance=0},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){this.stop(),this.tick=null,this.nodes=null,this.edges=null,this.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,e=t.nodeClusterBy,n=t.nodes,r=t.edges,i=t.nodeMap,o=t.degreesMap;if(null===n||void 0===n?void 0:n.length){var a={};return n.forEach(function(t,n){1===o[t.id].all&&(a[t.id]=(0,s.getCoreNodeAndRelativeLeafNodes)("leaf",t,r,e,o,i))}),a}},e}(a.Base);e.Force2Layout=c},COaM:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanGPULayout=void 0;var s=n("w9t0"),l=n("ZE1E"),u=n("JKCU"),c=n("6hwo"),h=n("rcBw"),d=n("D9Z3"),f=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.gravity=10,n.speed=1,n.clustering=!1,n.clusterField="cluster",n.clusterGravity=10,n.workerEnabled=!1,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10}},e.prototype.execute=function(){return o(this,void 0,void 0,function(){var t,e,n,r,i,o=this;return a(this,function(a){switch(a.label){case 0:return(e=(t=this).nodes)&&0!==e.length?(t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]),n=t.center,1===e.length?(e[0].x=n[0],e[0].y=n[1],t.onLayoutEnd&&t.onLayoutEnd(),[2]):(r={},i={},e.forEach(function(t,e){(0,l.isNumber)(t.x)||(t.x=Math.random()*o.width),(0,l.isNumber)(t.y)||(t.y=Math.random()*o.height),r[t.id]=t,i[t.id]=e}),t.nodeMap=r,t.nodeIdxMap=i,[4,t.run()])):(t.onLayoutEnd&&t.onLayoutEnd(),[2]);case 1:return a.sent(),[2]}})})},e.prototype.executeWithWorker=function(t,e){return o(this,void 0,void 0,function(){var n,r,i,o,s,u=this;return a(this,function(a){switch(a.label){case 0:return r=(n=this).nodes,i=n.center,r&&0!==r.length?1===r.length?(r[0].x=i[0],r[0].y=i[1],[2]):(o={},s={},r.forEach(function(t,e){(0,l.isNumber)(t.x)||(t.x=Math.random()*u.width),(0,l.isNumber)(t.y)||(t.y=Math.random()*u.height),o[t.id]=t,s[t.id]=e}),n.nodeMap=o,n.nodeIdxMap=s,[4,n.run(t,e)]):[2];case 1:return a.sent(),[2]}})})},e.prototype.run=function(t,e){return o(this,void 0,void 0,function(){var n,r,i,s,f,p,g,v,m,y,b,_,x,w,S,C,k,O,M,E,T,A,I,D,P,L=this;return a(this,function(j){switch(j.label){case 0:for(r=(n=this).nodes,i=n.edges,s=n.maxIteration,f=n.center,p=n.height*n.width,g=Math.sqrt(p)/10,v=p/(r.length+1),m=Math.sqrt(v),y=n.speed,b=n.clustering,_=(0,c.attributesToTextureData)([n.clusterField],r),x=_.array,w=_.count,r.forEach(function(t,e){var n=0,r=0;(0,l.isNumber)(t.fx)&&(0,l.isNumber)(t.fy)&&(n=t.fx||.001,r=t.fy||.001),x[4*e+1]=n,x[4*e+2]=r}),S=r.length,C=(0,c.buildTextureData)(r,i),k=C.maxEdgePerVetex,O=C.array,M=n.workerEnabled,E=M?u.World.create({canvas:t,engineOptions:{supportCompute:!0}}):u.World.create({engineOptions:{supportCompute:!0}}),T=n.onLayoutEnd,A=[],I=0;I<w;I++)A.push(0,0,0,0);return D=E.createKernel(h.fruchtermanBundle).setDispatch([S,1,1]).setBinding({u_Data:O,u_K:m,u_K2:v,u_Gravity:n.gravity,u_ClusterGravity:n.clusterGravity||n.gravity||1,u_Speed:y,u_MaxDisplace:g,u_Clustering:b?1:0,u_Center:f,u_AttributeArray:x,u_ClusterCenters:A,MAX_EDGE_PER_VERTEX:k,VERTEX_COUNT:S}),b&&(P=E.createKernel(h.clusterBundle).setDispatch([w,1,1]).setBinding({u_Data:O,u_NodeAttributes:x,u_ClusterCenters:A,VERTEX_COUNT:S,CLUSTER_COUNT:w})),[4,function(){return o(L,void 0,void 0,function(){var n,i;return a(this,function(o){switch(o.label){case 0:n=0,o.label=1;case 1:return n<s?[4,D.execute()]:[3,6];case 2:return o.sent(),b?(P.setBinding({u_Data:D}),[4,P.execute()]):[3,4];case 3:o.sent(),D.setBinding({u_ClusterCenters:P}),o.label=4;case 4:D.setBinding({u_MaxDisplace:g*=.99}),o.label=5;case 5:return n++,[3,1];case 6:return[4,D.getOutput()];case 7:return i=o.sent(),t?e.postMessage({type:d.LAYOUT_MESSAGE.GPUEND,vertexEdgeData:i}):r.forEach(function(t,e){var n=i[4*e],r=i[4*e+1];t.x=n,t.y=r}),T&&T(),[2]}})})}()];case 1:return j.sent(),[2]}})})},e.prototype.getType=function(){return"fruchterman-gpu"},e}(s.Base);e.FruchtermanGPULayout=f},CXw9:function(t,e,n){"use strict";var r,i,o,a,s=n("O4g8"),l=n("7KvD"),u=n("+ZMJ"),c=n("RY/4"),h=n("kM2E"),d=n("EqjI"),f=n("lOnJ"),p=n("2KxR"),g=n("NWt+"),v=n("t8x9"),m=n("L42u").set,y=n("82Mu")(),b=n("qARP"),_=n("dNDb"),x=n("iUbK"),w=n("fJUb"),S=l.TypeError,C=l.process,k=C&&C.versions,O=k&&k.v8||"",M=l.Promise,E="process"==c(C),T=function(){},A=i=b.f,I=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(T,T)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==O.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(i||(2==t._h&&N(t),t._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===e.promise?u(S("Promise-chain cycle")):(o=D(n))?o.call(n,l,u):l(n)):u(r)}catch(t){c&&!a&&c.exit(),u(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){m.call(l,function(){var e,n,r,i=t._v,o=j(t);if(o&&(e=_(function(){E?C.emit("unhandledRejection",i,t):(n=l.onunhandledrejection)?n({promise:t,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=E||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(l,function(){var e;E?C.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=D(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,u(B,r,1),u(R,r,1))}catch(t){R.call(r,t)}}):(n._v=t,n._s=1,P(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};I||(M=function(t){p(this,M,"Promise","_h"),f(t),r.call(this);try{t(u(B,this,1),u(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(M.prototype,{then:function(t,e){var n=A(v(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=u(B,t,1),this.reject=u(R,t,1)},b.f=A=function(t){return t===M||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!I,{Promise:M}),n("e6n0")(M,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,h(h.S+h.F*!I,"Promise",{reject:function(t){var e=A(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!I),"Promise",{resolve:function(t){return w(s&&this===a?M:this,t)}}),h(h.S+h.F*!(I&&n("dY0y")(function(t){M.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=A(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,a=1;g(t,!1,function(t){var s=o++,l=!1;n.push(void 0),a++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=A(e),r=n.reject,i=_(function(){g(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},Cdx3:function(t,e,n){var r=n("sB3e"),i=n("lktj");n("uqUo")("keys",function(){return function(t){return i(r(t))}})},CoRl:function(t,e,n){"use strict";t.exports=function(t){var e={};t=t||{},e.src_Any=n("Mur9").source,e.src_Cc=n("DNGd").source,e.src_Z=n("gxby").source,e.src_P=n("TUzn").source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");return e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},CpEa:function(t,e){},"Cq/5":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreLayout=void 0;var a=o(n("Q9R3")),s=n("ZE1E"),l=n("w9t0"),u=n("3MGd"),c=function(t){function e(e){var n=t.call(this)||this;return n.rankdir="TB",n.nodesep=50,n.ranksep=50,n.controlPoints=!1,n.sortByCombo=!1,n.edgeLabelSpace=!0,n.radial=!1,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.layoutNode=function(t){var e=n.nodes.find(function(e){return e.id===t});return!e||!1!==e.layout},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1,radial:!1,focusNode:null}},e.prototype.execute=function(){var t,e,n,r,i=this,o=this,l=o.nodes,c=o.nodeSize,d=o.rankdir,f=o.combos,p=o.begin,g=o.radial,v=o.comboEdges,m=void 0===v?[]:v,y=o.vedges,b=void 0===y?[]:y;if(l){var _=o.edges||[],x=new u.Graph({multigraph:!0,compound:!0});o.nodeMap={};var w={};l.forEach(function(t){o.nodeMap[t.id]=t,t.comboId&&(w[t.comboId]=w[t.comboId]||[],w[t.comboId].push(t.id))});var S,C=[],k={};(null===(t=o.nodeOrder)||void 0===t?void 0:t.length)?(o.nodeOrder.forEach(function(t){k[t]=!0,C.push(o.nodeMap[t])}),l.forEach(function(t){k[t.id]||C.push(t)})):C=l,S=c?(0,s.isArray)(c)?function(){return c}:function(){return[c,c]}:function(t){return t.size?(0,s.isArray)(t.size)?t.size:(0,s.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40]};var O=(0,s.getFunc)(o.ranksep,50,o.ranksepFunc),M=(0,s.getFunc)(o.nodesep,50,o.nodesepFunc),E=M,T=O;"LR"!==d&&"RL"!==d||(E=O,T=M),x.setDefaultEdgeLabel(function(){return{}}),x.setGraph(o);var A={};this.sortByCombo&&f&&f.forEach(function(t){if(A[t.id]=t,t.collapsed){var e=S(t),n=T(t),r=E(t),i=e[0]+2*r,o=e[1]+2*n;x.setNode(t.id,{width:i,height:o})}t.parentId&&(A[t.parentId]||x.setNode(t.parentId,{}),x.setParent(t.id,t.parentId))}),C.filter(function(t){return!1!==t.layout}).forEach(function(t){var e=S(t),n=T(t),r=E(t),o=e[0]+2*r,a=e[1]+2*n,l=t.layer;(0,s.isNumber)(l)?x.setNode(t.id,{width:o,height:a,layer:l}):x.setNode(t.id,{width:o,height:a}),i.sortByCombo&&t.comboId&&(A[t.comboId]||(A[t.comboId]={id:t.comboId},x.setNode(t.comboId,{})),x.setParent(t.id,t.comboId))}),_.forEach(function(t){var e=(0,s.getEdgeTerminal)(t,"source"),n=(0,s.getEdgeTerminal)(t,"target");i.layoutNode(e)&&i.layoutNode(n)&&x.setEdge(e,n,{weight:t.weight||1})}),null===(e=null===m||void 0===m?void 0:m.concat(b||[]))||void 0===e||e.forEach(function(t){var e,n,r=t.source,i=t.target,o=(null===(e=A[r])||void 0===e?void 0:e.collapsed)?[r]:w[r]||[r],a=(null===(n=A[i])||void 0===n?void 0:n.collapsed)?[i]:w[i]||[i];o.forEach(function(e){a.forEach(function(n){x.setEdge(e,n,{weight:t.weight||1})})})});var I=void 0;(null===(n=o.preset)||void 0===n?void 0:n.nodes)&&(I=new u.Graph({multigraph:!0,compound:!0}),o.preset.nodes.forEach(function(t){null===I||void 0===I||I.setNode(t.id,t)})),a.default.layout(x,{prevGraph:I,edgeLabelSpace:o.edgeLabelSpace,keepNodeOrder:Boolean(!!o.nodeOrder),nodeOrder:o.nodeOrder});var D=[0,0];if(p){var P=1/0,L=1/0;x.nodes().forEach(function(t){var e=x.node(t);P>e.x&&(P=e.x),L>e.y&&(L=e.y)}),x.edges().forEach(function(t){var e;null===(e=x.edge(t).points)||void 0===e||e.forEach(function(t){P>t.x&&(P=t.x),L>t.y&&(L=t.y)})}),D[0]=p[0]-P,D[1]=p[1]-L}var j="LR"===d||"RL"===d;if(g){var N=this.focusNode,R=this.ranksep,B=this.getRadialPos,F=(0,s.isString)(N)?N:null===N||void 0===N?void 0:N.id,z=F?null===(r=x.node(F))||void 0===r?void 0:r._rank:0,V=[],$=j?"y":"x",G=j?"height":"width",H=1/0,W=-1/0;x.nodes().forEach(function(t){var e=x.node(t);if(o.nodeMap[t]){var n=M(o.nodeMap[t]);if(0===z)V[e._rank]||(V[e._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),V[e._rank].nodes.push(t),V[e._rank].totalWidth+=2*n+e[G],V[e._rank].maxSize<Math.max(e.width,e.height)&&(V[e._rank].maxSize=Math.max(e.width,e.height));else{var r=e._rank-z;if(0===r)V[r]||(V[r]={nodes:[],totalWidth:0,maxSize:-1/0}),V[r].nodes.push(t),V[r].totalWidth+=2*n+e[G],V[r].maxSize<Math.max(e.width,e.height)&&(V[r].maxSize=Math.max(e.width,e.height));else{var i=Math.abs(r);V[i]||(V[i]={left:[],right:[],totalWidth:0,maxSize:-1/0}),V[i].totalWidth+=2*n+e[G],V[i].maxSize<Math.max(e.width,e.height)&&(V[i].maxSize=Math.max(e.width,e.height)),r<0?V[i].left.push(t):V[i].right.push(t)}}var a=e[$]-e[G]/2-n,s=e[$]+e[G]/2+n;a<H&&(H=a),s>W&&(W=s)}});var U=R||50,Y={},X=(W-H)/.9,q=[.5*(H+W-X),.5*(H+W+X)],Z=function(t,e,n,r){void 0===n&&(n=-1/0),void 0===r&&(r=[0,1]);var i=n;return t.forEach(function(t){var n=x.node(t);Y[t]=e;var a=B(n[$],q,X,e,r),s=a.x,l=a.y;if(o.nodeMap[t]){o.nodeMap[t].x=s+D[0],o.nodeMap[t].y=l+D[1],o.nodeMap[t]._order=n._order;var u=O(o.nodeMap[t]);i<u&&(i=u)}}),i},K=!0;V.forEach(function(t){var e,n,r,i,a,s,l;if((null===(e=null===t||void 0===t?void 0:t.nodes)||void 0===e?void 0:e.length)||(null===(n=null===t||void 0===t?void 0:t.left)||void 0===n?void 0:n.length)||(null===(r=null===t||void 0===t?void 0:t.right)||void 0===r?void 0:r.length)){if(K&&1===t.nodes.length){var u=t.nodes[0];if(!o.nodeMap[u])return;return o.nodeMap[u].x=D[0],o.nodeMap[u].y=D[1],Y[t.nodes[0]]=0,U=O(o.nodeMap[u]),void(K=!1)}U=Math.max(U,t.totalWidth/(2*Math.PI));var c=-1/0;if(0===z||(null===(i=t.nodes)||void 0===i?void 0:i.length))c=Z(t.nodes,U,c,[0,1]);else{var h=(null===(a=t.left)||void 0===a?void 0:a.length)/((null===(s=t.left)||void 0===s?void 0:s.length)+(null===(l=t.right)||void 0===l?void 0:l.length));c=Z(t.left,U,c,[0,h]),c=Z(t.right,U,c,[h+.05,1])}U+=c,K=!1,t.maxSize}}),x.edges().forEach(function(t){var e,n,r,i=x.edge(t),a=_.findIndex(function(e){var n=(0,s.getEdgeTerminal)(e,"source"),r=(0,s.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w});if(!(a<=-1)&&o.edgeLabelSpace&&o.controlPoints&&"loop"!==_[a].type){var l="x"===$?"y":"x",u=null===(e=null===i||void 0===i?void 0:i.points)||void 0===e?void 0:e.slice(1,i.points.length-1),c=[],h=null===(n=x.node(t.v))||void 0===n?void 0:n[l],d=h-(null===(r=x.node(t.w))||void 0===r?void 0:r[l]),f=Y[t.v],p=f-Y[t.w];null===u||void 0===u||u.forEach(function(t){var e=(t[l]-h)/d*p+f,n=B(t[$],q,X,e);c.push({x:n.x+D[0],y:n.y+D[1]})}),_[a].controlPoints=c}})}else{var J=new Set,Q="BT"===d||"RL"===d?function(t,e){return e-t}:function(t,e){return t-e};x.nodes().forEach(function(t){var e=x.node(t);if(e){var n=i.nodeMap[t];n||(n=null===f||void 0===f?void 0:f.find(function(e){return e.id===t})),n&&(n.x=e.x+D[0],n.y=e.y+D[1],n._order=e._order,J.add(j?n.x:n.y))}});var tt=Array.from(J).sort(Q),et=j?function(t,e){return t.x!==e.x}:function(t,e){return t.y!==e.y},nt=j?function(t,e,n){var r=Math.max(e.y,n.y),i=Math.min(e.y,n.y);return t.filter(function(t){return t.y<=r&&t.y>=i})}:function(t,e,n){var r=Math.max(e.x,n.x),i=Math.min(e.x,n.x);return t.filter(function(t){return t.x<=r&&t.x>=i})};x.edges().forEach(function(t){var e,n=x.edge(t),r=_.findIndex(function(e){var n=(0,s.getEdgeTerminal)(e,"source"),r=(0,s.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w});if(!(r<=-1)&&o.edgeLabelSpace&&o.controlPoints&&"loop"!==_[r].type){null===(e=null===n||void 0===n?void 0:n.points)||void 0===e||e.forEach(function(t){t.x+=D[0],t.y+=D[1]});var i=o.nodeMap[t.v],a=o.nodeMap[t.w];_[r].controlPoints=h(null===n||void 0===n?void 0:n.points,i,a,tt,j,et,nt)}})}return o.onLayoutEnd&&o.onLayoutEnd(),{nodes:l,edges:_}}},e.prototype.getRadialPos=function(t,e,n,r,i){void 0===i&&(i=[0,1]);var o=(t-e[0])/n,a=2*(o=o*(i[1]-i[0])+i[0])*Math.PI;return{x:Math.cos(a)*r,y:Math.sin(a)*r}},e.prototype.getType=function(){return"dagre"},e}(l.Base);e.DagreLayout=c;var h=function(t,e,n,r,i,o,a){var s=(null===t||void 0===t?void 0:t.slice(1,t.length-1))||[];if(e&&n){var l=e.x,u=e.y,c=n.x,h=n.y;if(i&&(l=e.y,u=e.x,c=n.y,h=n.x),h!==u&&l!==c){var d=r.indexOf(u),f=r[d+1];if(f){var p=s[0],g=i?{x:(u+f)/2,y:(null===p||void 0===p?void 0:p.y)||c}:{x:(null===p||void 0===p?void 0:p.x)||c,y:(u+f)/2};p&&!o(p,g)||s.unshift(g)}var v=r.indexOf(h),m=Math.abs(v-d);if(1===m)(s=a(s,e,n)).length||s.push(i?{x:(u+h)/2,y:l}:{x:l,y:(u+h)/2});else if(m>1){var y=r[v-1];if(y){var b=s[s.length-1],_=i?{x:(h+y)/2,y:(null===b||void 0===b?void 0:b.y)||c}:{x:(null===b||void 0===b?void 0:b.x)||l,y:(h+y)/2};b&&!o(b,_)||s.push(_)}}}}return s}},CwSZ:function(t,e,n){"use strict";var r=n("Zoe1"),i=n("p8xL"),o=n("XgCd"),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,u=Array.prototype.push,c=function(t,e){u.apply(t,l(e)?e:[e])},h=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,s,u,h,d,p,g,v,m,y,b,_){var x,w=e;if(_.has(e))throw new RangeError("Cyclic object value");if("function"==typeof h?w=h(n,w):w instanceof Date?w=g(w):"comma"===o&&l(w)&&(w=i.maybeMap(w,function(t){return t instanceof Date?g(t):t})),null===w){if(a)return u&&!y?u(n,f.encoder,b,"key",v):n;w=""}if("string"==typeof(x=w)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||i.isBuffer(w))return u?[m(y?n:u(n,f.encoder,b,"key",v))+"="+m(u(w,f.encoder,b,"value",v))]:[m(n)+"="+m(String(w))];var S,C=[];if(void 0===w)return C;if("comma"===o&&l(w))S=[{value:w.length>0?w.join(",")||null:void 0}];else if(l(h))S=h;else{var k=Object.keys(w);S=d?k.sort(d):k}for(var O=0;O<S.length;++O){var M=S[O],E="object"==typeof M&&void 0!==M.value?M.value:w[M];if(!s||null!==E){var T=l(w)?"function"==typeof o?o(n,M):n:n+(p?"."+M:"["+M+"]");_.set(e,!0);var A=r();c(C,t(E,T,o,a,s,u,h,d,p,g,v,m,y,b,A))}}return C};t.exports=function(t,e){var n,i=t,u=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||l(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof u.filter?i=(0,u.filter)("",i):l(u.filter)&&(n=u.filter);var h,d=[];if("object"!=typeof i||null===i)return"";h=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=s[h];n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var v=r(),m=0;m<n.length;++m){var y=n[m];u.skipNulls&&null===i[y]||c(d,p(i[y],y,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,v))}var b=d.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},CzOf:function(t,e,n){"use strict";e.parseLinkLabel=n("tBlf"),e.parseLinkDestination=n("ujtc"),e.parseLinkTitle=n("3kQQ")},D2L2:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},D9Z3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORCE_LAYOUT_TYPE_MAP=e.LAYOUT_MESSAGE=void 0,e.LAYOUT_MESSAGE={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"},e.FORCE_LAYOUT_TYPE_MAP={gForce:!0,force2:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0}},DDCP:function(t,e,n){"use strict";var r=n("p8xL"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var h=0;n.depth>0&&null!==(s=a.exec(o))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(t,e,n,r){for(var i=r?e:l(e,n),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[u]=i:a={0:i}}i=a}return i}(c,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var n,u={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=c.split(e.delimiter,h),f=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var g,v,m=d[n],y=m.indexOf("]="),b=-1===y?m.indexOf("="):y+1;-1===b?(g=e.decoder(m,a.decoder,p,"key"),v=e.strictNullHandling?null:""):(g=e.decoder(m.slice(0,b),a.decoder,p,"key"),v=r.maybeMap(l(m.slice(b+1),e),function(t){return e.decoder(t,a.decoder,p,"value")})),v&&e.interpretNumericEntities&&"iso-8859-1"===p&&(v=s(v)),m.indexOf("[]=")>-1&&(v=o(v)?[v]:v),i.call(u,g)?u[g]=r.combine(u[g],v):u[g]=v}return u}(t,n):t,h=n.plainObjects?Object.create(null):{},d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],g=u(p,c[p],n,"string"==typeof t);h=r.merge(h,g,n)}return!0===n.allowSparse?h:r.compact(h)}},DNGd:function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},DQCr:function(t,e,n){"use strict";var r=n("cGG2");function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,function(t,e){null!==t&&void 0!==t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))}))}),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},DQJY:function(t,e,n){"use strict";e.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n("hyEB"),a=(r=o)&&r.__esModule?r:{default:r};var s,l=l||{};l.Dialog=function(t,e,n){var r=this;if(this.dialogNode=t,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof e?this.focusAfterClosed=document.getElementById(e):"object"===(void 0===e?"undefined":i(e))?this.focusAfterClosed=e:this.focusAfterClosed=null,"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===(void 0===n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(t){r.trapFocus(t)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var t=this;this.removeListeners(),this.focusAfterClosed&&setTimeout(function(){t.focusAfterClosed.focus()})},l.Dialog.prototype.trapFocus=function(t){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(t.target)?this.lastFocus=t.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},e.default=l.Dialog},DRaW:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parse=g,e.lift=function(t,e){var n=g(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return x(n,4===n.length?"rgba":"rgb")}},e.toHex=function(t){var e=g(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=m,n.d(e,"fastMapToColor",function(){return y}),e.lerp=b,n.d(e,"mapToColor",function(){return _}),e.modifyHSL=function(t,e,n,r){var i=g(t);if(t)return i=function(t){if(!t)return;var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];null!=t[3]&&f.push(t[3]);return f}(i),null!=e&&(i[0]=(o=e,(o=Math.round(o))<0?0:o>360?360:o)),null!=n&&(i[1]=s(n)),null!=r&&(i[2]=s(r)),x(v(i),"rgba");var o},e.modifyAlpha=function(t,e){var n=g(t);if(n&&null!=e)return n[3]=o(e),x(n,"rgba")},e.stringify=x,e.lum=function(t,e){var n=g(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0},e.random=function(){return x([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")};var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return t<0?0:t>1?1:t}function a(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?i(parseFloat(e)/100*255):i(parseInt(e,10))}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100):o(parseFloat(e))}function l(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function c(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new(n("zMj2").a)(20),f=null;function p(t,e){f&&h(f,e),f=d.put(t,f||e.slice())}function g(t,e){if(t){e=e||[];var n=d.get(t);if(n)return h(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in r)return h(e,r[i]),p(t,e),e;var o,l=i.length;if("#"===i.charAt(0))return 4===l||5===l?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(c(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===l?parseInt(i.slice(4),16)/15:1),p(t,e),e):void c(e,0,0,0,1):7===l||9===l?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(c(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===l?parseInt(i.slice(7),16)/255:1),p(t,e),e):void c(e,0,0,0,1):void 0;var u=i.indexOf("("),f=i.indexOf(")");if(-1!==u&&f+1===l){var g=i.substr(0,u),m=i.substr(u+1,f-(u+1)).split(","),y=1;switch(g){case"rgba":if(4!==m.length)return 3===m.length?c(e,+m[0],+m[1],+m[2],1):c(e,0,0,0,1);y=s(m.pop());case"rgb":return m.length>=3?(c(e,a(m[0]),a(m[1]),a(m[2]),3===m.length?y:s(m[3])),p(t,e),e):void c(e,0,0,0,1);case"hsla":return 4!==m.length?void c(e,0,0,0,1):(m[3]=s(m[3]),v(m,e),p(t,e),e);case"hsl":return 3!==m.length?void c(e,0,0,0,1):(v(m,e),p(t,e),e);default:return}}c(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=s(t[1]),o=s(t[2]),a=o<=.5?o*(r+1):o+r-o*r,u=2*o-a;return c(e=e||[],i(255*l(u,a,n+1/3)),i(255*l(u,a,n)),i(255*l(u,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),a=Math.floor(r),s=Math.ceil(r),l=e[a],c=e[s],h=r-a;return n[0]=i(u(l[0],c[0],h)),n[1]=i(u(l[1],c[1],h)),n[2]=i(u(l[2],c[2],h)),n[3]=o(u(l[3],c[3],h)),n}}var y=m;function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),a=Math.floor(r),s=Math.ceil(r),l=g(e[a]),c=g(e[s]),h=r-a,d=x([i(u(l[0],c[0],h)),i(u(l[1],c[1],h)),i(u(l[2],c[2],h)),o(u(l[3],c[3],h))],"rgba");return n?{color:d,leftIndex:a,rightIndex:s,value:r}:d}}var _=b;function x(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}},DUeU:function(t,e,n){"use strict";var r=n("cGG2");t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function u(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(t[i],e[i])}r.forEach(i,function(t){r.isUndefined(e[t])||(n[t]=l(void 0,e[t]))}),r.forEach(o,u),r.forEach(a,function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(void 0,e[i])}),r.forEach(s,function(r){r in e?n[r]=l(t[r],e[r]):r in t&&(n[r]=l(void 0,t[r]))});var c=i.concat(o).concat(a).concat(s),h=Object.keys(t).concat(Object.keys(e)).filter(function(t){return-1===c.indexOf(t)});return r.forEach(h,u),n}},Dc0G:function(t,e,n){(function(t){var r=n("blYT"),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(e,n("3IRH")(t))},Dd8w:function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("woOf"),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},Dgox:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("IgWN"),i=l(n("Jsh2")),o=l(n("ncSy")),a=n("NTMn"),s=n("6klO");function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s<i;s++)for(var l=t[s].clusterId,u=0;u<i;u++){if(l===t[u].clusterId)a+=(e[s][u]||0)-(n[s]||0)*(n[u]||0)/o}return a*=1/o},c=function(t,e){void 0===t&&(t=[]);for(var n=t.length,r=new o.default([]),i=0;i<n;i++)r=r.add(new o.default(e[i]));var a=r.avg(n);a.normalize();var s=0;for(i=0;i<n;i++){s+=(u=new o.default(e[i])).squareEuclideanDistance(a)}var l=[];t.forEach(function(){l.push([])});for(i=0;i<n;i++){var u=new o.default(e[i]);t[i].clusterInertial=0;for(var c=0;c<n;c++)if(i!==c){var h=new o.default(e[c]);l[i][c]=u.squareEuclideanDistance(h),t[i].clusterInertial+=l[i][c]}else l[i][c]=0}var d=0,f=2*n*s;for(i=0;i<n;i++){var p=t[i].clusterId;for(c=0;c<n;c++){var g=t[c].clusterId;if(i!==c&&p===g)d+=t[i].clusterInertial*t[c].clusterInertial/Math.pow(f,2)-l[i][c]/f}}return Number(d.toFixed(4))},h=function(t,e,n,o,l,h,d,f,p){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===o&&(o=1e-4),void 0===l&&(l=!1),void 0===h&&(h=void 0),void 0===d&&(d=[]),void 0===f&&(f=["id"]),void 0===p&&(p=1);var g=t.nodes,v=void 0===g?[]:g,m=t.edges,y=void 0===m?[]:m,b=[];if(l){v.forEach(function(t,e){t.properties=t.properties||{},t.originIndex=e});var _=[];v.every(function(t){return t.hasOwnProperty("nodeType")})&&(_=Array.from(new Set(v.map(function(t){return t.nodeType}))),v.forEach(function(t){t.properties.nodeType=_.findIndex(function(e){return e===t.nodeType})}));var x=(0,a.getAllProperties)(v,h);b=(0,s.oneHot)(x,d,f)}var w=1,S={},C={};v.forEach(function(t,e){var n=String(w++);t.clusterId=n,S[n]={id:n,nodes:[t]},C[t.id]={node:t,idx:e}});var k=(0,i.default)(t,e),O=[],M={},E=0;k.forEach(function(t,e){var n=0,r=v[e].id;M[r]={},t.forEach(function(t,e){if(t){n+=t;var i=v[e].id;M[r][i]=t,E+=t}}),O.push(n)}),E/=2;for(var T=1/0,A=1/0,I=0,D=[],P={};;){T=l&&v.every(function(t){return t.hasOwnProperty("properties")})?u(v,k,O,E)+c(v,b)*p:u(v,k,O,E),0===I&&(A=T,D=v,P=S);var L=T>0&&T>A&&T-A<o;if(T>A&&(D=v.map(function(t){return{node:t,clusterId:t.clusterId}}),P=(0,r.clone)(S),A=T),L||I>100)break;I++,Object.keys(S).forEach(function(t){var e=0;y.forEach(function(r){var i=r.source,o=r.target,a=C[i].node.clusterId,s=C[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)}),S[t].sumTot=e}),v.forEach(function(t,e){var r,i=S[t.clusterId],o=0,a=O[e]/(2*E),s=0,u=i.nodes;u.forEach(function(t){var n=C[t.id].idx;s+=k[e][n]||0});var h=s-i.sumTot*a,d=u.filter(function(e){return e.id!==t.id}),f=[];d.forEach(function(t,e){f[e]=b[t.originIndex]});var g=c(d,b)*p,v=M[t.id];if(Object.keys(v).forEach(function(n){var i=C[n].node.clusterId;if(i!==t.clusterId){var s=S[i],u=s.nodes;if(u&&u.length){var d=0;u.forEach(function(t){var n=C[t.id].idx;d+=k[e][n]||0});var f=d-s.sumTot*a,v=u.concat([t]),m=[];v.forEach(function(t,e){m[e]=b[t.originIndex]});var y=c(v,b)*p,_=f-h;l&&(_=f+y-(h+g)),_>o&&(o=_,r=s)}}}),o>0){r.nodes.push(t);var m=t.clusterId;t.clusterId=r.id;var _=i.nodes.indexOf(t);i.nodes.splice(_,1);var x=0,w=0;y.forEach(function(t){var e=t.source,i=t.target,o=C[e].node.clusterId,a=C[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(x+=t[n]||1),(o===m&&a!==m||a===m&&o!==m)&&(w+=t[n]||1)}),r.sumTot=x,i.sumTot=w}})}var j={},N=0;Object.keys(P).forEach(function(t){var e=P[t];if(e.nodes&&e.nodes.length){var n=String(N+1);n!==t&&(e.id=n,e.nodes=e.nodes.map(function(t){return{id:t.id,clusterId:n}}),P[n]=e,j[t]=n,delete P[t],N++)}else delete P[t]}),D.forEach(function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&j[e.clusterId]&&(e.clusterId=j[e.clusterId]))});var R=[],B={};y.forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=C[e].node.clusterId,a=C[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(B[s])B[s].weight+=i,B[s].count++;else{var l={source:o,target:a,weight:i,count:1};B[s]=l,R.push(l)}}});var F=[];return Object.keys(P).forEach(function(t){F.push(P[t])}),{clusters:F,clusterEdges:R}};e.default=h},Dia2:function(t,e,n){
- /**
- * @license
- * Video.js 6.13.0 <http://videojs.com/>
- * Copyright Brightcove, Inc. <https://www.brightcove.com/>
- * Available under Apache License Version 2.0
- * <https://github.com/videojs/video.js/blob/master/LICENSE>
- *
- * Includes vtt.js <https://github.com/mozilla/vtt.js>
- * Available under Apache License Version 2.0
- * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
- */
- function r(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i,o=r(n("awF4")),a=r(n("dwO+")),s=r(n("sN1u")),l=r(n("I/+Z")),u=r(n("1Xk4")),c=r(n("ciWi")),h="6.13.0",d=o.navigator&&o.navigator.userAgent||"",f=/AppleWebKit\/([\d.]+)/i.exec(d),p=f?parseFloat(f.pop()):null,g=/iPad/i.test(d),v=/iPhone/i.test(d)&&!g,m=/iPod/i.test(d),y=v||g||m,b=(i=d.match(/OS (\d+)_/i))&&i[1]?i[1]:null,_=/Android/i.test(d),x=function(){var t=d.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),w=_&&/webkit/i.test(d)&&x<2.3,S=_&&x<5&&p<537,C=/Firefox/i.test(d),k=/Edge/i.test(d),O=!k&&(/Chrome/i.test(d)||/CriOS/i.test(d)),M=function(){var t=d.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),E=/MSIE\s8\.0/.test(d),T=function(){var t=/MSIE\s(\d+)\.\d/.exec(d),e=t&&parseFloat(t[1]);return!e&&/Trident\/7.0/i.test(d)&&/rv:11.0/.test(d)&&(e=11),e}(),A=/Safari/i.test(d)&&!O&&!_&&!k,I=(A||y)&&!O,D=tt()&&("ontouchstart"in o||o.navigator.maxTouchPoints||o.DocumentTouch&&o.document instanceof o.DocumentTouch),P=tt()&&"backgroundSize"in o.document.createElement("video").style,L=(Object.freeze||Object)({IS_IPAD:g,IS_IPHONE:v,IS_IPOD:m,IS_IOS:y,IOS_VERSION:b,IS_ANDROID:_,ANDROID_VERSION:x,IS_OLD_ANDROID:w,IS_NATIVE_ANDROID:S,IS_FIREFOX:C,IS_EDGE:k,IS_CHROME:O,CHROME_VERSION:M,IS_IE8:E,IE_VERSION:T,IS_SAFARI:A,IS_ANY_SAFARI:I,TOUCH_ENABLED:D,BACKGROUND_SIZE_SUPPORTED:P}),j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},R=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},B=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},F=function(t,e){return t.raw=e,t},z=Object.prototype.toString,V=function(t){return H(t)?Object.keys(t):[]};function $(t,e){V(t).forEach(function(n){return e(t[n],n)})}function G(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[t].concat(n)):(n.forEach(function(e){e&&$(e,function(e,n){t[n]=e})}),t)}function H(t){return!!t&&"object"===(void 0===t?"undefined":j(t))}function W(t){return H(t)&&"[object Object]"===z.call(t)&&t.constructor===Object}var U=[],Y=function(t,e){return function(n,r,i,a){var s=e.levels[r],l=new RegExp("^("+s+")$");if("log"!==n&&i.unshift(n.toUpperCase()+":"),i.unshift(t+":"),U&&U.push([].concat(i)),o.console){var u=o.console[n];u||"debug"!==n||(u=o.console.info||o.console.log),u&&s&&l.test(n)&&(a&&(i=i.map(function(t){if(H(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(e){return String(t)}return String(t)}).join(" ")),u.apply?u[Array.isArray(i)?"apply":"call"](o.console,i):u(i))}}};var X=function t(e){var n="info",r=void 0,i=function t(){for(var e=t.stringify||T&&T<11,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];r("log",n,o,e)};return r=Y(e,i),i.createLogger=function(n){return t(e+": "+n)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},i.level=function(t){if("string"==typeof t){if(!i.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');n=t}return n},(i.history=function(){return U?[].concat(U):[]}).filter=function(t){return(U||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},i.history.clear=function(){U&&(U.length=0)},i.history.disable=function(){null!==U&&(U.length=0,U=null)},i.history.enable=function(){null===U&&(U=[])},i.error=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return r("error",n,e)},i.warn=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return r("warn",n,e)},i.debug=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return r("debug",n,e)},i}("VIDEOJS"),q=X.createLogger;function Z(t,e){if(!t||!e)return"";if("function"==typeof o.getComputedStyle){var n=o.getComputedStyle(t);return n?n[e]:""}return t.currentStyle[e]||""}var K=F(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function J(t){return"string"==typeof t&&/\S/.test(t)}function Q(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function tt(){return a===o.document&&void 0!==a.createElement}function et(t){return H(t)&&1===t.nodeType}function nt(){try{return o.parent!==o.self}catch(t){return!0}}function rt(t){return function(e,n){if(!J(e))return a[t](null);J(n)&&(n=a.querySelector(n));var r=et(n)?n:a;return r[t]&&r[t](e)}}function it(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i=a.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(X.warn(s(K,t,n)),i.setAttribute(t,n)):"textContent"===t?ot(i,n):i[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){i.setAttribute(t,n[t])}),r&&Ct(i,r),i}function ot(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function at(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function st(t,e){return Q(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function lt(t,e){return t.classList?t.classList.add(e):st(t,e)||(t.className=(t.className+" "+e).trim()),t}function ut(t,e){return t.classList?t.classList.remove(e):(Q(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function ct(t,e,n){var r=st(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!r),n!==r)return n?lt(t,e):ut(t,e),t}function ht(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var r=e[n];null===r||void 0===r||!1===r?t.removeAttribute(n):t.setAttribute(n,!0===r?"":r)})}function dt(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var r=t.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,a=r[i].value;"boolean"!=typeof t[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),e[o]=a}return e}function ft(t,e){return t.getAttribute(e)}function pt(t,e,n){t.setAttribute(e,n)}function gt(t,e){t.removeAttribute(e)}function vt(){a.body.focus(),a.onselectstart=function(){return!1}}function mt(){a.onselectstart=function(){return!0}}function yt(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n.height||(n.height=parseFloat(Z(t,"height"))),n.width||(n.width=parseFloat(Z(t,"width"))),n}}function bt(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=a.documentElement,r=a.body,i=n.clientLeft||r.clientLeft||0,s=o.pageXOffset||r.scrollLeft,l=e.left+s-i,u=n.clientTop||r.clientTop||0,c=o.pageYOffset||r.scrollTop,h=e.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function _t(t,e){var n={},r=bt(t),i=t.offsetWidth,o=t.offsetHeight,a=r.top,s=r.left,l=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-l+o)/o)),n.x=Math.max(0,Math.min(1,(u-s)/i)),n}function xt(t){return H(t)&&3===t.nodeType}function wt(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function St(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),et(t)||xt(t)?t:"string"==typeof t&&/\S/.test(t)?a.createTextNode(t):void 0}).filter(function(t){return t})}function Ct(t,e){return St(e).forEach(function(e){return t.appendChild(e)}),t}function kt(t,e){return Ct(wt(t),e)}function Ot(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||(9===T||0===t.button&&1===t.buttons))}var Mt=rt("querySelector"),Et=rt("querySelectorAll"),Tt=(Object.freeze||Object)({isReal:tt,isEl:et,isInFrame:nt,createEl:it,textContent:ot,prependTo:at,hasClass:st,addClass:lt,removeClass:ut,toggleClass:ct,setAttributes:ht,getAttributes:dt,getAttribute:ft,setAttribute:pt,removeAttribute:gt,blockTextSelection:vt,unblockTextSelection:mt,getBoundingClientRect:yt,findPosition:bt,getPointerPosition:_t,isTextNode:xt,emptyEl:wt,normalizeContent:St,appendContent:Ct,insertContent:kt,isSingleLeftClick:Ot,$:Mt,$$:Et}),At=1;function It(){return At++}var Dt={},Pt="vdata"+(new Date).getTime();function Lt(t){var e=t[Pt];return e||(e=t[Pt]=It()),Dt[e]||(Dt[e]={}),Dt[e]}function jt(t){var e=t[Pt];return!!e&&!!Object.getOwnPropertyNames(Dt[e]).length}function Nt(t){var e=t[Pt];if(e){delete Dt[e];try{delete t[Pt]}catch(e){t.removeAttribute?t.removeAttribute(Pt):t[Pt]=null}}}function Rt(t,e){var n=Lt(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Nt(t)}function Bt(t,e,n,r){n.forEach(function(n){t(e,n,r)})}function Ft(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var r=t||o.event;for(var i in t={},r)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&r.preventDefault||(t[i]=r[i]));if(t.target||(t.target=t.srcElement||a),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){r.preventDefault&&r.preventDefault(),t.returnValue=!1,r.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),t.cancelBubble=!0,r.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var s=a.documentElement,l=a.body;t.pageX=t.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var zt=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){zt=!0}});o.addEventListener("test",null,t),o.removeEventListener("test",null,t)}catch(t){}}();var Vt=["touchstart","touchmove"];function $t(t,e,n){if(Array.isArray(e))return Bt($t,t,e,n);var r=Lt(t);if(r.handlers||(r.handlers={}),r.handlers[e]||(r.handlers[e]=[]),n.guid||(n.guid=It()),r.handlers[e].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(e,n){if(!r.disabled){e=Ft(e);var i=r.handlers[e.type];if(i)for(var o=i.slice(0),a=0,s=o.length;a<s&&!e.isImmediatePropagationStopped();a++)try{o[a].call(t,e,n)}catch(t){X.error(t)}}}),1===r.handlers[e].length)if(t.addEventListener){var i=!1;zt&&Vt.indexOf(e)>-1&&(i={passive:!0}),t.addEventListener(e,r.dispatcher,i)}else t.attachEvent&&t.attachEvent("on"+e,r.dispatcher)}function Gt(t,e,n){if(jt(t)){var r=Lt(t);if(r.handlers){if(Array.isArray(e))return Bt(Gt,t,e,n);var i=function(t,e){r.handlers[e]=[],Rt(t,e)};if(void 0!==e){var o=r.handlers[e];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);Rt(t,e)}else i(t,e)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(t,s)}}}function Ht(t,e,n){var r=jt(t)?Lt(t):{},i=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Ft(e),r.dispatcher&&r.dispatcher.call(t,e,n),i&&!e.isPropagationStopped()&&!0===e.bubbles)Ht.call(null,i,e,n);else if(!i&&!e.defaultPrevented){var o=Lt(e.target);e.target[e.type]&&(o.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),o.disabled=!1)}return!e.defaultPrevented}function Wt(t,e,n){if(Array.isArray(e))return Bt(Wt,t,e,n);var r=function r(){Gt(t,e,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||It(),$t(t,e,r)}var Ut=(Object.freeze||Object)({fixEvent:Ft,on:$t,off:Gt,trigger:Ht,one:Wt}),Yt=!1,Xt=void 0,qt=function(){if(tt()&&!1!==Xt.options.autoSetup){var t=a.getElementsByTagName("video"),e=a.getElementsByTagName("audio"),n=a.getElementsByTagName("video-js"),r=[];if(t&&t.length>0)for(var i=0,o=t.length;i<o;i++)r.push(t[i]);if(e&&e.length>0)for(var s=0,l=e.length;s<l;s++)r.push(e[s]);if(n&&n.length>0)for(var u=0,c=n.length;u<c;u++)r.push(n[u]);if(r&&r.length>0)for(var h=0,d=r.length;h<d;h++){var f=r[h];if(!f||!f.getAttribute){Zt(1);break}void 0===f.player&&null!==f.getAttribute("data-setup")&&Xt(f)}else Yt||Zt(1)}};function Zt(t,e){e&&(Xt=e),o.setTimeout(qt,t)}tt()&&"complete"===a.readyState?Yt=!0:Wt(o,"load",function(){Yt=!0});var Kt=function(t){var e=a.createElement("style");return e.className=t,e},Jt=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},Qt=function(t,e,n){e.guid||(e.guid=It());var r=function(){return e.apply(t,arguments)};return r.guid=n?n+"_"+e.guid:e.guid,r},te=function(t,e){var n=Date.now();return function(){var r=Date.now();r-n>=e&&(t.apply(void 0,arguments),n=r)}},ee=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,i=void 0,a=function(){var o=this,a=arguments,s=function(){i=null,s=null,n||t.apply(o,a)};!i&&n&&t.apply(o,a),r.clearTimeout(i),i=r.setTimeout(s,e)};return a.cancel=function(){r.clearTimeout(i),i=null},a},ne=function(){};ne.prototype.allowedEvents_={},ne.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},$t(this,t,e),this.addEventListener=n},ne.prototype.addEventListener=ne.prototype.on,ne.prototype.off=function(t,e){Gt(this,t,e)},ne.prototype.removeEventListener=ne.prototype.off,ne.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Wt(this,t,e),this.addEventListener=n},ne.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=Ft(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Ht(this,t)},ne.prototype.dispatchEvent=ne.prototype.trigger;var re=function(t){return t instanceof ne||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},ie=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},oe=function(t){if(!t.nodeName&&!re(t))throw new Error("Invalid target; must be a DOM node or evented object.")},ae=function(t){if(!ie(t))throw new Error("Invalid event type; must be a non-empty string or array.")},se=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},le=function(t,e){var n=e.length<3||e[0]===t||e[0]===t.eventBusEl_,r=void 0,i=void 0,o=void 0;return n?(r=t.eventBusEl_,e.length>=3&&e.shift(),i=e[0],o=e[1]):(r=e[0],i=e[1],o=e[2]),oe(r),ae(i),se(o),{isTargetingSelf:n,target:r,type:i,listener:o=Qt(t,o)}},ue=function(t,e,n,r){oe(t),t.nodeName?Ut[e](t,n,r):t[e](n,r)},ce={on:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=le(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(ue(a,"on",s,l),!o){var u=function(){return t.off(a,s,l)};u.guid=l.guid;var c=function(){return t.off("dispose",u)};c.guid=l.guid,ue(this,"on","dispose",u),ue(a,"on","dispose",c)}},one:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=le(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(o)ue(a,"one",s,l);else{var u=function e(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.off(a,s,e),l.apply(null,r)};u.guid=l.guid,ue(a,"one",s,u)}},off:function(t,e,n){if(!t||ie(t))Gt(this.eventBusEl_,t,e);else{var r=t,i=e;oe(r),ae(i),se(n),n=Qt(this,n),this.off("dispose",n),r.nodeName?(Gt(r,i,n),Gt(r,"dispose",n)):re(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(t,e){return Ht(this.eventBusEl_,t,e)}};function he(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(e){if(!t[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');t.eventBusEl_=t[e]}else t.eventBusEl_=it("span",{className:"vjs-event-bus"});return G(t,ce),t.on("dispose",function(){t.off(),o.setTimeout(function(){t.eventBusEl_=null},0)}),t}var de={state:{},setState:function(t){var e=this;"function"==typeof t&&(t=t());var n=void 0;return $(t,function(t,r){e.state[r]!==t&&((n=n||{})[r]={from:e.state[r],to:t}),e.state[r]=t}),n&&re(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function fe(t,e){return G(t,de),t.state=G({},t.state,e),"function"==typeof t.handleStateChanged&&re(t)&&t.on("statechanged",t.handleStateChanged),t}function pe(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function ge(){for(var t={},e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(e){e&&$(e,function(e,n){W(e)?(W(t[n])||(t[n]={}),t[n]=ge(t[n],e)):t[n]=e})}),t}var ve=function(){function t(e,n,r){if(N(this,t),!e&&this.play?this.player_=e=this:this.player_=e,this.options_=ge({},this.options_),n=this.options_=ge(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+It()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&he(this,{eventBusKey:this.el_?"el_":null}),fe(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(r),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Nt(this.el_),this.el_=null),this.player_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return X.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=ge(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return it(t,e,n)},t.prototype.localize=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],a=r&&r.split("-")[0],s=i&&i[a],l=n;return o&&o[t]?l=o[t]:s&&s[t]&&(l=s[t]),e&&(l=l.replace(/\{(\d+)\}/g,function(t,n){var r=e[n-1],i=r;return void 0===r&&(i=t),i})),l},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){if(t)return t=pe(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,i=void 0,o=void 0;if("string"==typeof e){o=pe(e);var a=n.componentClass||o;n.name=o;var s=t.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=e;if(this.children_.splice(r,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&pe(i.name()))&&(this.childNameIndex_[o]=i),"function"==typeof i.el&&i.el()){var l=this.contentEl().children[r]||null;this.contentEl().insertBefore(i.el(),l)}return i},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var r=t.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,n=this.options_.children;if(n){var r=this.options_,i=void 0,o=t.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(t){return!i.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var r=void 0,i=void 0;return"string"==typeof t?i=n[r=t]||e.options_[r]||{}:(r=t.name,i=t),{name:r,opts:i}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||pe(e.name));return n&&!o.isTech(n)}).forEach(function(t){var n=t.name,i=t.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=e.options_.playerOptions;var o=e.addChild(n,i);o&&(e[n]=o)}})}},t.prototype.buildCSSClass=function(){return""},t.prototype.ready=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return Mt(t,e||this.contentEl())},t.prototype.$$=function(t,e){return Et(t,e||this.contentEl())},t.prototype.hasClass=function(t){return st(this.el_,t)},t.prototype.addClass=function(t){lt(this.el_,t)},t.prototype.removeClass=function(t){ut(this.el_,t)},t.prototype.toggleClass=function(t,e){ct(this.el_,t,e)},t.prototype.show=function(){this.removeClass("vjs-hidden")},t.prototype.hide=function(){this.addClass("vjs-hidden")},t.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},t.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.prototype.getAttribute=function(t){return ft(this.el_,t)},t.prototype.setAttribute=function(t,e){pt(this.el_,t,e)},t.prototype.removeAttribute=function(t){gt(this.el_,t)},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},t.prototype.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[t],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+pe(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof o.getComputedStyle){var n=o.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}if(0===(e=parseFloat(e))){var r="offset"+pe(t);e=this.el_[r]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(r){1===r.touches.length&&(e={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=(new Date).getTime(),n=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)n=!1;else if(e){var r=t.touches[0].pageX-e.pageX,i=t.touches[0].pageY-e.pageY;Math.sqrt(r*r+i*i)>10&&(n=!1)}});var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){(e=null,!0===n)&&((new Date).getTime()-t<200&&(r.preventDefault(),this.trigger("tap")))})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=Qt(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.prototype.setTimeout=function(t,e){var n,r,i=this;return t=Qt(this,t),n=o.setTimeout(function(){i.off("dispose",r),t()},e),(r=function(){return i.clearTimeout(n)}).guid="vjs-timeout-"+n,this.on("dispose",r),n},t.prototype.clearTimeout=function(t){o.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){var n=this;t=Qt(this,t);var r=o.setInterval(t,e),i=function(){return n.clearInterval(r)};return i.guid="vjs-interval-"+r,this.on("dispose",i),r},t.prototype.clearInterval=function(t){o.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.prototype.requestAnimationFrame=function(t){var e,n,r=this;return this.supportsRaf_?(t=Qt(this,t),e=o.requestAnimationFrame(function(){r.off("dispose",n),t()}),(n=function(){return r.cancelAnimationFrame(e)}).guid="vjs-raf-"+e,this.on("dispose",n),e):this.setTimeout(t,1e3/60)},t.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){o.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},t.registerComponent=function(e,n){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var r=t.getComponent("Tech"),i=r&&r.isTech(n),o=t===n||t.prototype.isPrototypeOf(n.prototype);if(i||!o){var a=void 0;throw a=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+a+".")}e=pe(e),t.components_||(t.components_={});var s=t.getComponent("Player");if("Player"===e&&s&&s.players){var l=s.players,u=Object.keys(l);if(l&&u.length>0&&u.map(function(t){return l[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,n},t.getComponent=function(e){if(e)return e=pe(e),t.components_&&t.components_[e]?t.components_[e]:void 0},t}();function me(t,e,n,r){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,r,n.length-1),n[r][e]}function ye(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:me.bind(null,"start",0,t),end:me.bind(null,"end",1,t)}}function be(t,e){return Array.isArray(t)?ye(t):void 0===t||void 0===e?ye():ye([[t,e]])}function _e(t,e){var n=0,r=void 0,i=void 0;if(!e)return 0;t&&t.length||(t=be(0,0));for(var o=0;o<t.length;o++)r=t.start(o),(i=t.end(o))>e&&(i=e),n+=i-r;return n/e}ve.prototype.supportsRaf_="function"==typeof o.requestAnimationFrame&&"function"==typeof o.cancelAnimationFrame,ve.registerComponent("Component",ve);for(var xe={},we=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Se=we[0],Ce=void 0,ke=0;ke<we.length;ke++)if(we[ke][1]in a){Ce=we[ke];break}if(Ce)for(var Oe=0;Oe<Ce.length;Oe++)xe[Se[Oe]]=Ce[Oe];function Me(t){if(t instanceof Me)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:H(t)&&("number"==typeof t.code&&(this.code=t.code),G(this,t)),this.message||(this.message=Me.defaultMessages[this.code]||"")}Me.prototype.code=0,Me.prototype.message="",Me.prototype.status=null,Me.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Me.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Ee=0;Ee<Me.errorTypes.length;Ee++)Me[Me.errorTypes[Ee]]=Ee,Me.prototype[Me.errorTypes[Ee]]=Ee;function Te(t){return void 0!==t&&null!==t&&"function"==typeof t.then}function Ae(t){Te(t)&&t.then(null,function(t){})}var Ie=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n,r){return t[n]&&(e[n]=t[n]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},De=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=Ie(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===n.indexOf(t)}).map(Ie))},Pe=function(t,e){return t.forEach(function(t){var n=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return n.addCue(t)})}),e.textTracks()},Le="vjs-modal-dialog",je=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=it("div",{className:Le+"-content"},{role:"document"}),i.descEl_=it("p",{className:Le+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),ot(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return Le+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",Qt(this,this.handleKeyPress)),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",Qt(this,this.handleKeyPress)),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},e.prototype.fill=function(){this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,r=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),kt(e,t),this.trigger("modalfill"),r?n.insertBefore(e,r):n.appendChild(e);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},e.prototype.empty=function(){this.trigger("beforemodalempty"),wt(this.contentEl()),this.trigger("modalempty")},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e.prototype.conditionalFocus_=function(){var t=a.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus(),this.on(a,"keydown",this.handleKeyDown))},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(a,"keydown",this.handleKeyDown)},e.prototype.handleKeyDown=function(t){if(9===t.which){for(var e=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=void 0,i=0;i<e.length;i++)if(n===e[i]){r=i;break}a.activeElement===this.el_&&(r=0),t.shiftKey&&0===r?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||r!==e.length-1||(e[0].focus(),t.preventDefault())}},e.prototype.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof o.HTMLAnchorElement||t instanceof o.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof o.HTMLInputElement||t instanceof o.HTMLSelectElement||t instanceof o.HTMLTextAreaElement||t instanceof o.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof o.HTMLIFrameElement||t instanceof o.HTMLObjectElement||t instanceof o.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},e}(ve);je.prototype.options_={pauseOnOpen:!0,temporary:!0},ve.registerComponent("ModalDialog",je);var Ne=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;N(this,e);var i=B(this,t.call(this));if(!r&&(r=i,E))for(var o in r=a.createElement("custom"),e.prototype)"constructor"!==o&&(r[o]=e.prototype[o]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var s=0;s<n.length;s++)r.addTrack(n[s]);return B(i,r)}return R(e,t),e.prototype.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack=function(t){for(var e=void 0,n=0,r=this.length;n<r;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===t){e=i;break}}return e},e}(ne);for(var Re in Ne.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Ne.prototype.allowedEvents_)Ne.prototype["on"+Re]=null;var Be=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].enabled=!1)},Fe=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,e);for(var i=void 0,o=r.length-1;o>=0;o--)if(r[o].enabled){Be(r,r[o]);break}if(E){for(var s in i=a.createElement("custom"),Ne.prototype)"constructor"!==s&&(i[s]=Ne.prototype[s]);for(var l in e.prototype)"constructor"!==l&&(i[l]=e.prototype[l])}return(i=n=B(this,t.call(this,r,i))).changing_=!1,B(n,i)}return R(e,t),e.prototype.addTrack=function(e){var n=this;e.enabled&&Be(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,Be(n,e),n.changing_=!1,n.trigger("change"))})},e}(Ne),ze=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].selected=!1)},Ve=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,e);for(var i=void 0,o=r.length-1;o>=0;o--)if(r[o].selected){ze(r,r[o]);break}if(E){for(var s in i=a.createElement("custom"),Ne.prototype)"constructor"!==s&&(i[s]=Ne.prototype[s]);for(var l in e.prototype)"constructor"!==l&&(i[l]=e.prototype[l])}return(i=n=B(this,t.call(this,r,i))).changing_=!1,Object.defineProperty(i,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),B(n,i)}return R(e,t),e.prototype.addTrack=function(e){var n=this;e.selected&&ze(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,ze(n,e),n.changing_=!1,n.trigger("change"))})},e}(Ne),$e=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,e);var i=void 0;if(E){for(var o in i=a.createElement("custom"),Ne.prototype)"constructor"!==o&&(i[o]=Ne.prototype[o]);for(var s in e.prototype)"constructor"!==s&&(i[s]=e.prototype[s])}return n=B(this,t.call(this,r,i)),B(n,i=n)}return R(e,t),e.prototype.addTrack=function(e){t.prototype.addTrack.call(this,e),e.addEventListener("modechange",Qt(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",Qt(this,function(){this.trigger("selectedlanguagechange")}))},e}(Ne),Ge=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,t);var n=this;if(E)for(var r in n=a.createElement("custom"),t.prototype)"constructor"!==r&&(n[r]=t.prototype[r]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var i=0,o=e.length;i<o;i++)n.addTrackElement_(e[i]);if(E)return n}return t.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,r=this.trackElements_.length;n<r;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}(),He=function(){function t(e){N(this,t);var n=this;if(E)for(var r in n=a.createElement("custom"),t.prototype)"constructor"!==r&&(n[r]=t.prototype[r]);if(t.prototype.setCues_.call(n,e),Object.defineProperty(n,"length",{get:function(){return this.length_}}),E)return n}return t.prototype.setCues_=function(t){var e=this.length||0,n=0,r=t.length;this.cues_=t,this.length_=t.length;var i=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<r)for(n=e;n<r;n++)i.call(this,n)},t.prototype.getCueById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===t){e=i;break}}return e},t}(),We={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ue={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ye={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Xe={disabled:"disabled",hidden:"hidden",showing:"showing"},qe=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var r=B(this,t.call(this)),i=r;if(E)for(var o in i=a.createElement("custom"),e.prototype)"constructor"!==o&&(i[o]=e.prototype[o]);var s={id:n.id||"vjs_track_"+It(),kind:n.kind||"",label:n.label||"",language:n.language||""},l=function(t){Object.defineProperty(i,t,{get:function(){return s[t]},set:function(){}})};for(var u in s)l(u);return B(r,i)}return R(e,t),e}(ne),Ze=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=a.createElement("a");n.href=t;var r=""===n.host&&"file:"!==n.protocol,i=void 0;r&&((i=a.createElement("div")).innerHTML='<a href="'+t+'"></a>',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),a.body.appendChild(i));for(var s={},l=0;l<e.length;l++)s[e[l]]=n[e[l]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=o.location.protocol),r&&a.body.removeChild(i),s},Ke=function(t){if(!t.match(/^https?:\/\//)){var e=a.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t},Je=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},Qe=function(t){var e=o.location,n=Ze(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},tn=(Object.freeze||Object)({parseUrl:Ze,getAbsoluteURL:Ke,getFileExtension:Je,isCrossOrigin:Qe}),en=function(t,e){var n=new o.WebVTT.Parser(o,o.vttjs,o.WebVTT.StringDecoder()),r=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){r.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),r.length>0&&(o.console&&o.console.groupCollapsed&&o.console.groupCollapsed("Text Track parsing errors for "+e.src),r.forEach(function(t){return X.error(t)}),o.console&&o.console.groupEnd&&o.console.groupEnd()),n.flush()},nn=function(t,e){var n={uri:t},r=Qe(t);r&&(n.cors=r),u(n,Qt(this,function(t,n,r){if(t)return X.error(t,n);if(e.loaded_=!0,"function"!=typeof o.WebVTT){if(e.tech_){var i=function(){return en(r,e)};e.tech_.on("vttjsloaded",i),e.tech_.on("vttjserror",function(){X.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",i)})}}else en(r,e)}))},rn=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(N(this,e),!r.tech)throw new Error("A tech was not provided.");var i=ge(r,{kind:Ye[r.kind]||"subtitles",language:r.language||r.srclang||""}),o=Xe[i.mode]||"disabled",a=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(o="hidden");var s=n=B(this,t.call(this,i));if(s.tech_=i.tech,E)for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);s.cues_=[],s.activeCues_=[];var u=new He(s.cues_),c=new He(s.activeCues_),h=!1,d=Qt(s,function(){this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1)});return"disabled"!==o&&s.tech_.ready(function(){s.tech_.on("timeupdate",d)},!0),Object.defineProperty(s,"default",{get:function(){return a},set:function(){}}),Object.defineProperty(s,"mode",{get:function(){return o},set:function(t){var e=this;Xe[t]&&("disabled"!==(o=t)?this.tech_.ready(function(){e.tech_.on("timeupdate",d)},!0):this.tech_.off("timeupdate",d),this.trigger("modechange"))}}),Object.defineProperty(s,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(s,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return c;for(var t=this.tech_.currentTime(),e=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];i.startTime<=t&&i.endTime>=t?e.push(i):i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t&&e.push(i)}if(h=!1,e.length!==this.activeCues_.length)h=!0;else for(var o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(h=!0);return this.activeCues_=e,c.setCues_(this.activeCues_),c},set:function(){}}),i.src?(s.src=i.src,nn(i.src,s)):s.loaded_=!0,B(n,s)}return R(e,t),e.prototype.addCue=function(t){var e=t;if(o.vttjs&&!(t instanceof o.vttjs.VTTCue)){for(var n in e=new o.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}for(var r=this.tech_.textTracks(),i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=this.cues_.length;e--;){var n=this.cues_[e];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(qe);rn.prototype.allowedEvents_={cuechange:"cuechange"};var on=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var i=ge(r,{kind:Ue[r.kind]||""}),o=n=B(this,t.call(this,i)),a=!1;if(E)for(var s in e.prototype)"constructor"!==s&&(o[s]=e.prototype[s]);return Object.defineProperty(o,"enabled",{get:function(){return a},set:function(t){"boolean"==typeof t&&t!==a&&(a=t,this.trigger("enabledchange"))}}),i.enabled&&(o.enabled=i.enabled),o.loaded_=!0,B(n,o)}return R(e,t),e}(qe),an=function(t){function e(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var i=ge(r,{kind:We[r.kind]||""}),o=n=B(this,t.call(this,i)),a=!1;if(E)for(var s in e.prototype)"constructor"!==s&&(o[s]=e.prototype[s]);return Object.defineProperty(o,"selected",{get:function(){return a},set:function(t){"boolean"==typeof t&&t!==a&&(a=t,this.trigger("selectedchange"))}}),i.selected&&(o.selected=i.selected),B(n,o)}return R(e,t),e}(qe),sn=0,ln=2,un=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var r=B(this,t.call(this)),i=void 0,o=r;if(E)for(var s in o=a.createElement("custom"),e.prototype)"constructor"!==s&&(o[s]=e.prototype[s]);var l=new rn(n);return o.kind=l.kind,o.src=l.src,o.srclang=l.language,o.label=l.label,o.default=l.default,Object.defineProperty(o,"readyState",{get:function(){return i}}),Object.defineProperty(o,"track",{get:function(){return l}}),i=sn,l.addEventListener("loadeddata",function(){i=ln,o.trigger({type:"load",target:o})}),E?B(r,o):r}return R(e,t),e}(ne);un.prototype.allowedEvents_={load:"load"},un.NONE=sn,un.LOADING=1,un.LOADED=ln,un.ERROR=3;var cn={audio:{ListClass:Fe,TrackClass:on,capitalName:"Audio"},video:{ListClass:Ve,TrackClass:an,capitalName:"Video"},text:{ListClass:$e,TrackClass:rn,capitalName:"Text"}};Object.keys(cn).forEach(function(t){cn[t].getterName=t+"Tracks",cn[t].privateName=t+"Tracks_"});var hn={remoteText:{ListClass:$e,TrackClass:rn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ge,TrackClass:un,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},dn=ge(cn,hn);hn.names=Object.keys(hn),cn.names=Object.keys(cn),dn.names=[].concat(hn.names).concat(cn.names);var fn=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};N(this,e),n.reportTouchActivity=!1;var i=B(this,t.call(this,null,n,r));return i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),dn.names.forEach(function(t){var e=dn[t];n&&n[e.getterName]&&(i[e.privateName]=n[e.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===n["native"+t+"Tracks"]&&(i["featuresNative"+t+"Tracks"]=!1)}),!1===n.nativeCaptions||!1===n.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new dn.text.ListClass,i.initTrackListeners(),n.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}return R(e,t),e.prototype.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",function(){return e.setTimeout(function(){return e.triggerSourceset(t)},1)}),this.trigger({src:t,type:"sourceset"})},e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Qt(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return be(0,0)},e.prototype.bufferedPercent=function(){return _e(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(cn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var n=e[t+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===t&&e.removeRemoteTextTrack(i),n.removeTrack(i)}})},e.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=new Me(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?be(0,0):be()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTrackListeners=function(){var t=this;cn.names.forEach(function(e){var n=cn[e],r=function(){t.trigger(e+"trackchange")},i=t[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),t.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)})})},e.prototype.addWebVttScript_=function(){var t=this;if(!o.WebVTT)if(a.body.contains(this.el())){if(!this.options_["vtt.js"]&&W(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var e=a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),o.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),r=function(t){return e.addTrack(t.track)},i=function(t){return e.removeTrack(t.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return t.trigger("texttrackchange")},a=function(){o();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(var t=0;t<e.length;t++){e[t].removeEventListener("cuechange",o)}})},e.prototype.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.textTracks();i.kind=e,n&&(i.label=n),r&&(i.language=r),i.tech=t;var a=new dn.text.TrackClass(i);return o.addTrack(a),a}(this,t,e,n)},e.prototype.createRemoteTextTrack=function(t){var e=ge(t,{tech:this});return new hn.remoteTextEl.TrackClass(e)},e.prototype.addRemoteTextTrack=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],r=this.createRemoteTextTrack(e);return!0!==n&&!1!==n&&(X.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==n&&this.ready(function(){return t.autoRemoteTextTracks_.addTrack(r.track)}),r},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},e.prototype.getVideoPlaybackQuality=function(){return{}},e.prototype.setPoster=function(){},e.prototype.playsinline=function(){},e.prototype.setPlaysinline=function(){},e.prototype.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,n){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=pe(t),e.techs_[t]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n},e.getTech=function(t){if(t)return t=pe(t),e.techs_&&e.techs_[t]?e.techs_[t]:o&&o.videojs&&o.videojs[t]?(X.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),o.videojs[t]):void 0},e}(ve);dn.names.forEach(function(t){var e=dn[t];fn.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),fn.prototype.featuresVolumeControl=!0,fn.prototype.featuresMuteControl=!0,fn.prototype.featuresFullscreenResize=!1,fn.prototype.featuresPlaybackRate=!1,fn.prototype.featuresProgressEvents=!1,fn.prototype.featuresSourceset=!1,fn.prototype.featuresTimeupdateEvents=!1,fn.prototype.featuresNativeTextTracks=!1,fn.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],r=void 0,i=0;i<n.length;i++)if(r=n[i].canPlayType(e))return r;return""},t.selectSourceHandler=function(e,n){for(var r=t.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(e,n))return r[i];return null},t.canPlaySource=function(e,n){var r=t.selectSourceHandler(e,n);return r?r.canHandleSource(e,n):""};["seekable","seeking","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e,this.options_);n||(t.nativeSourceHandler?n=t.nativeSourceHandler:X.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=n.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ve.registerComponent("Tech",fn),fn.registerTech("Tech",fn),fn.defaultTechOrder_=[];var pn={},gn={},vn={};function mn(t,e,n){t.setTimeout(function(){return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var r=arguments[2];var i=arguments[3];var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];var s=n[0],l=n.slice(1);if("string"==typeof s)t(e,pn[s],r,i,o,a);else if(s){var u=function(t,e){var n=gn[t.id()],r=null;if(void 0===n||null===n)return r=e(t),gn[t.id()]=[[e,r]],r;for(var i=0;i<n.length;i++){var o=n[i],a=o[0],s=o[1];a===e&&(r=s)}null===r&&(r=e(t),n.push([e,r]));return r}(i,s);if(!u.setSource)return o.push(u),t(e,l,r,i,o,a);u.setSource(G({},e),function(n,s){if(n)return t(e,l,r,i,o,a);o.push(u),t(s,e.type===s.type?l:pn[s.type],r,i,o,a)})}else l.length?t(e,l,r,i,o,a):a?r(e,o):t(e,pn["*"],r,i,o,!0)}(e,pn[e.type],n,t)},1)}function yn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="call"+pe(n),o=t.reduce(wn(i),r),a=o===vn,s=a?null:e[n](o);return function(t,e,n,r){for(var i=t.length-1;i>=0;i--){var o=t[i];o[e]&&o[e](r,n)}}(t,n,s,a),s}var bn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},_n={setCurrentTime:1},xn={play:1,pause:1};function wn(t){return function(e,n){return e===vn?vn:n[t]?n[t](e):e}}var Sn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Cn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=Je(t);return Sn[e.toLowerCase()]||""};function kn(t){var e=Cn(t.src);return!t.type&&e&&(t.type=e),t}var On=function(t){function e(n,r,i){N(this,e);var o=ge({createEl:!1},r),a=B(this,t.call(this,n,o,i));if(r.playerOptions.sources&&0!==r.playerOptions.sources.length)n.src(r.playerOptions.sources);else for(var s=0,l=r.playerOptions.techOrder;s<l.length;s++){var u=pe(l[s]),c=fn.getTech(u);if(u||(c=ve.getComponent(u)),c&&c.isSupported()){n.loadTech_(u);break}}return a}return R(e,t),e}(ve);ve.registerComponent("MediaLoader",On);var Mn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.emitTapEvents(),i.enable(),i}return R(e,t),e.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=G({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&X.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),r=G({role:"button"},r),this.tabIndex_=n.tabIndex;var i=t.prototype.createEl.call(this,e,n,r);return this.createControlTextEl(i),i},e.prototype.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=it("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,ot(this.controlTextEl_,n),this.nonIconControl||e.setAttribute("title",n)},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},e.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){$t(a,"keydown",Qt(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.trigger("click")):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(t){Gt(a,"keydown",Qt(this,this.handleKeyPress))},e}(ve);ve.registerComponent("ClickableComponent",Mn);var En=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.update(),n.on("posterchange",Qt(i,i.update)),i}return R(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=it("div",{className:"vjs-poster",tabIndex:-1});return P||(this.fallbackImg_=it("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(t){this.player_.controls()&&(this.player_.paused()?Ae(this.player_.play()):this.player_.pause())},e}(Mn);ve.registerComponent("PosterImage",En);var Tn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function An(t,e){var n=void 0;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function In(t,e,n){try{t.style[e]=n}catch(t){return}}var Dn=function(t){function e(n,r,i){N(this,e);var a=B(this,t.call(this,n,r,i)),s=Qt(a,a.updateDisplay);return n.on("loadstart",Qt(a,a.toggleDisplay)),n.on("texttrackchange",s),n.on("loadstart",Qt(a,a.preselectTrack)),n.ready(Qt(a,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",s),n.on("playerresize",s),o.addEventListener&&o.addEventListener("orientationchange",s),n.on("dispose",function(){return o.removeEventListener("orientationchange",s)});for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);this.preselectTrack()}})),a}return R(e,t),e.prototype.preselectTrack=function(){for(var t={captions:1,subtitles:1},e=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,r=void 0,i=void 0,o=void 0,a=0;a<e.length;a++){var s=e[a];n&&n.enabled&&n.language===s.language?s.kind===n.kind?o=s:o||(o=s):n&&!n.enabled?(o=null,r=null,i=null):s.default&&("descriptions"!==s.kind||r?s.kind in t&&!i&&(i=s):r=s)}o?o.mode="showing":i?i.mode="showing":r&&(r.mode="showing")},e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof o.WebVTT&&o.WebVTT.processCues(o,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();this.clearDisplay();for(var e=null,n=null,r=t.length;r--;){var i=t[r];"showing"===i.mode&&("descriptions"===i.kind?e=i:n=i)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):e&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(e))},e.prototype.updateForTrack=function(t){if("function"==typeof o.WebVTT&&t.activeCues){for(var e=[],n=0;n<t.activeCues.length;n++)e.push(t.activeCues[n]);if(o.WebVTT.processCues(o,e,this.el_),this.player_.textTrackSettings)for(var r=this.player_.textTrackSettings.getValues(),i=e.length;i--;){var a=e[i];if(a){var s=a.displayState;if(r.color&&(s.firstChild.style.color=r.color),r.textOpacity&&In(s.firstChild,"color",An(r.color||"#fff",r.textOpacity)),r.backgroundColor&&(s.firstChild.style.backgroundColor=r.backgroundColor),r.backgroundOpacity&&In(s.firstChild,"backgroundColor",An(r.backgroundColor||"#000",r.backgroundOpacity)),r.windowColor&&(r.windowOpacity?In(s,"backgroundColor",An(r.windowColor,r.windowOpacity)):s.style.backgroundColor=r.windowColor),r.edgeStyle&&("dropshadow"===r.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===r.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===r.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===r.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),r.fontPercent&&1!==r.fontPercent){var l=o.parseFloat(s.style.fontSize);s.style.fontSize=l*r.fontPercent+"px",s.style.height="auto",s.style.top="auto",s.style.bottom="2px"}r.fontFamily&&"default"!==r.fontFamily&&("small-caps"===r.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=Tn[r.fontFamily])}}}},e}(ve);ve.registerComponent("TextTrackDisplay",Dn);var Pn=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),r=it("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},e}(ve);ve.registerComponent("LoadingSpinner",Pn);var Ln=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=G({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),n=G({type:"button"},n);var r=ve.prototype.createEl.call(this,"button",e,n);return this.createControlTextEl(r),r},e.prototype.addChild=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return X.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),ve.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&&13!==e.which&&t.prototype.handleKeyPress.call(this,e)},e}(Mn);ve.registerComponent("Button",Ln);var jn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY)Ae(e);else{var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var i=function(){return r.focus()};Te(e)?e.then(i,function(){}):this.setTimeout(i,1)}else this.player_.focus()}},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}(Ln);jn.prototype.controlText_="Play Video",ve.registerComponent("BigPlayButton",jn);var Nn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.controlText(r&&r.controlText||i.localize("Close")),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},e}(Ln);ve.registerComponent("CloseButton",Nn);var Rn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.on(n,"play",i.handlePlay),i.on(n,"pause",i.handlePause),i.on(n,"ended",i.handleEnded),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},e.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(Ln);Rn.prototype.controlText_="Play",ve.registerComponent("PlayToggle",Rn);var Bn=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),i=Math.floor(t/3600),o=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(i=r=n="-"),(i=i>0||a>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},Fn=Bn;var zn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return Fn(t,e)},Vn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.throttledUpdateContent=te(Qt(i,i.updateContent),25),i.on(n,"timeupdate",i.throttledUpdateContent),i}return R(e,t),e.prototype.createEl=function(e){var n=this.buildCSSClass(),r=t.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=it("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),r.appendChild(this.contentEl_),r},e.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},e.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=a.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},e.prototype.formatTime_=function(t){return zn(t)},e.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},e.prototype.updateContent=function(t){},e}(ve);Vn.prototype.labelText_="Time",Vn.prototype.controlText_="Time",ve.registerComponent("TimeDisplay",Vn);var $n=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.on(n,"ended",i.handleEnded),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-current-time"},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},e.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},e}(Vn);$n.prototype.labelText_="Current Time",$n.prototype.controlText_="Current Time",ve.registerComponent("CurrentTimeDisplay",$n);var Gn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.on(n,"durationchange",i.updateContent),i.on(n,"loadedmetadata",i.throttledUpdateContent),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-duration"},e.prototype.updateContent=function(t){var e=this.player_.duration();e&&this.duration_!==e&&(this.duration_=e,this.updateFormattedTime_(e))},e}(Vn);Gn.prototype.labelText_="Duration",Gn.prototype.controlText_="Duration",ve.registerComponent("DurationDisplay",Gn);var Hn=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(ve);ve.registerComponent("TimeDivider",Hn);var Wn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.on(n,"durationchange",i.throttledUpdateContent),i.on(n,"ended",i.handleEnded),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-remaining-time"},e.prototype.formatTime_=function(e){return"-"+t.prototype.formatTime_.call(this,e)},e.prototype.updateContent=function(t){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},e.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(0)},e}(Vn);Wn.prototype.labelText_="Remaining Time",Wn.prototype.controlText_="Remaining Time",ve.registerComponent("RemainingTimeDisplay",Wn);var Un=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}return R(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=it("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(ve);ve.registerComponent("LiveDisplay",Un);var Yn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}return R(e,t),e.prototype.enabled=function(){return this.enabled_},e.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},e.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},e.prototype.createEl=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=G({tabIndex:0},n),r=G({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),t.prototype.createEl.call(this,e,n,r)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||O||t.preventDefault(),vt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;mt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%",r=e.el().style;return this.vertical()?r.height=n:r.width=n,t}}},e.prototype.calculateDistance=function(t){var e=_t(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(ve);ve.registerComponent("Slider",Yn);var Xn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.partEls_=[],i.on(n,"progress",i.update),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.dispose=function(){this.partEls_=null,t.prototype.dispose.call(this)},e.prototype.update=function(t){var e=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,o=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(r,n);for(var a=0;a<e.length;a++){var s=e.start(a),l=e.end(a),u=i[a];u||(u=this.el_.appendChild(it()),i[a]=u),u.style.left=o(s,r),u.style.width=o(l-s,r)}for(var c=i.length;c>e.length;c--)this.el_.removeChild(i[c-1]);i.length=e.length},e}(ve);ve.registerComponent("LoadProgressBar",Xn);var qn=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,n){var r=yt(this.el_),i=yt(this.player_.el()),o=t.width*e;if(i&&r){var a=t.left-i.left+o,s=t.width-o+(i.right-t.right),l=r.width/2;a<l?l+=l-a:s<l&&(l=s),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-"+l+"px",ot(this.el_,n)}},e}(ve);ve.registerComponent("TimeTooltip",qn);var Zn=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},e.prototype.update=function(t,e){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var r=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),i=zn(r,n.player_.duration()),o=n.getChild("timeTooltip");o&&o.update(t,e,i)})},e}(ve);Zn.prototype.options_={children:[]},T&&!(T>8)||y||_||Zn.prototype.options_.children.push("timeTooltip"),ve.registerComponent("PlayProgressBar",Zn);var Kn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.update=te(Qt(i,i.update),25),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.update=function(t,e){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var r=n.player_.duration(),i=zn(e*r,r);n.el_.style.left=t.width*e+"px",n.getChild("timeTooltip").update(t,e,i)})},e}(ve);Kn.prototype.options_={children:["timeTooltip"]},ve.registerComponent("MouseTimeDisplay",Kn);var Jn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.setEventHandlers_(),i}return R(e,t),e.prototype.setEventHandlers_=function(){var t=this;this.update=te(Qt(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval(function(){t.requestAnimationFrame(function(){t.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){t.clearInterval(t.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},e.prototype.update_=function(t,e){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[zn(t,n),zn(n,n)],"{1} of {2}")),this.bar.update(yt(this.el_),e)},e.prototype.update=function(e){var n=t.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},e.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},e.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},e.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){Ot(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},e.prototype.handleMouseMove=function(t){if(Ot(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)}},e.prototype.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},e.prototype.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Ae(this.player_.play())},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleAction(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e}(Yn);Jn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},T&&!(T>8)||y||_||Jn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Jn.prototype.playerEvent="timeupdate",ve.registerComponent("SeekBar",Jn);var Qn=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.handleMouseMove=te(Qt(i,i.handleMouseMove),25),i.throttledHandleMouseSeek=te(Qt(i,i.handleMouseSeek),25),i.enable(),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("mouseTimeDisplay"),r=e.el(),i=yt(r),o=_t(r,t).x;o>1?o=1:o<0&&(o=0),n&&n.update(i,o)}},e.prototype.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},e.prototype.enabled=function(){return this.enabled_},e.prototype.disable=function(){this.children().forEach(function(t){return t.disable&&t.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},e.prototype.enable=function(){this.children().forEach(function(t){return t.enable&&t.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(ve);Qn.prototype.options_={children:["seekBar"]},ve.registerComponent("ProgressControl",Qn);var tr=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.on(n,"fullscreenchange",i.handleFullscreenChange),!1===a[xe.fullscreenEnabled]&&i.disable(),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},e.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(Ln);tr.prototype.controlText_="Fullscreen",ve.registerComponent("FullscreenToggle",tr);var er=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},nr=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(ve);ve.registerComponent("VolumeLevel",nr);var rr=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.on("slideractive",i.updateLastVolume_),i.on(n,"volumechange",i.updateARIAAttributes),n.ready(function(){return i.updateARIAAttributes()}),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},e.prototype.handleMouseDown=function(e){Ot(e)&&t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){Ot(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},e.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},e.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&&t.player_.lastVolume_(e)})},e}(Yn);rr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},rr.prototype.playerEvent="volumechange",ve.registerComponent("VolumeBar",rr);var ir=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e),r.vertical=r.vertical||!1,(void 0===r.volumeBar||W(r.volumeBar))&&(r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=r.vertical);var i=B(this,t.call(this,n,r));return er(i,n),i.throttledHandleMouseMove=te(Qt(i,i.handleMouseMove),25),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}return R(e,t),e.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(ve);ir.prototype.options_={children:["volumeBar"]},ve.registerComponent("VolumeControl",ir);var or=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},ar=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return or(i,n),i.on(n,["loadstart","volumechange"],i.update),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},e.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},e.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;y&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)ut(this.el_,"vjs-vol-"+n);lt(this.el_,"vjs-vol-"+e)},e.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(Ln);ar.prototype.controlText_="Mute",ve.registerComponent("MuteToggle",ar);var sr=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e),void 0!==r.inline?r.inline=r.inline:r.inline=!0,(void 0===r.volumeControl||W(r.volumeControl))&&(r.volumeControl=r.volumeControl||{},r.volumeControl.vertical=!r.inline);var i=B(this,t.call(this,n,r));return i.on(n,["loadstart"],i.volumePanelState_),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}return R(e,t),e.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},e.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},e.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},e.prototype.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},e}(ve);sr.prototype.options_={children:["muteToggle","volumeControl"]},ve.registerComponent("VolumePanel",sr);var lr=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return r&&(i.menuButton_=r.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyPress),i}return R(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",Qt(this,function(e){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==t.name()&&this.menuButton_.focus())}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=it(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),$t(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(ve);ve.registerComponent("Menu",lr);var ur=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e);var i=B(this,t.call(this,n,r));i.menuButton_=new Ln(n,r),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var o=Ln.prototype.buildCSSClass();return i.menuButton_.el_.className=i.buildCSSClass()+" "+o,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,i.on(i.menuButton_,"tap",i.handleClick),i.on(i.menuButton_,"click",i.handleClick),i.on(i.menuButton_,"focus",i.handleFocus),i.on(i.menuButton_,"blur",i.handleBlur),i.on("keydown",i.handleSubmenuKeyPress),i}return R(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new lr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=it("li",{className:"vjs-menu-title",innerHTML:pe(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),at(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},e.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Ln.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e.prototype.controlText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},e.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",Qt(this,function(t){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.focus=function(){this.menuButton_.focus()},e.prototype.blur=function(){this.menuButton_.blur()},e.prototype.handleFocus=function(){$t(a,"keydown",Qt(this,this.handleKeyPress))},e.prototype.handleBlur=function(){Gt(a,"keydown",Qt(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&&40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus()))},e.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),y&&nt())return;this.menu.focus()}},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},e.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},e.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(ve);ve.registerComponent("MenuButton",ur);var cr=function(t){function e(n,r){N(this,e);var i=r.tracks,o=B(this,t.call(this,n,r));if(o.items.length<=1&&o.hide(),!i)return B(o);var a=Qt(o,o.update);return i.addEventListener("removetrack",a),i.addEventListener("addtrack",a),o.player_.on("ready",a),o.player_.on("dispose",function(){i.removeEventListener("removetrack",a),i.removeEventListener("addtrack",a)}),o}return R(e,t),e}(ur);ve.registerComponent("TrackButton",cr);var hr=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.selectable=r.selectable,i.isSelected_=r.selected||!1,i.multiSelectable=r.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}return R(e,t),e.prototype.createEl=function(e,n,r){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",G({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},e.prototype.handleClick=function(t){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(Mn);ve.registerComponent("MenuItem",hr);var dr=function(t){function e(n,r){N(this,e);var i=r.track,s=n.textTracks();r.label=i.label||i.language||"Unknown",r.selected="showing"===i.mode;var l=B(this,t.call(this,n,r));l.track=i;var u=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];l.handleTracksChange.apply(l,e)},c=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];l.handleSelectedLanguageChange.apply(l,e)};if(n.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",c),l.on("dispose",function(){n.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",c)}),void 0===s.onchange){var h=void 0;l.on(["tap","click"],function(){if("object"!==j(o.Event))try{h=new o.Event("change")}catch(t){}h||(h=a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(h)})}return l.handleTracksChange(),l}return R(e,t),e.prototype.handleClick=function(e){var n=this.track.kind,r=this.track.kinds,i=this.player_.textTracks();if(r||(r=[n]),t.prototype.handleClick.call(this,e),i)for(var o=0;o<i.length;o++){var a=i[o];a===this.track&&r.indexOf(a.kind)>-1?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled")}},e.prototype.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},e.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},e.prototype.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(hr);ve.registerComponent("TextTrackMenuItem",dr);var fr=function(t){function e(n,r){return N(this,e),r.track={player:n,kind:r.kind,kinds:r.kinds,default:!1,mode:"disabled"},r.kinds||(r.kinds=[r.kind]),r.label?r.track.label=r.label:r.track.label=r.kinds.join(" and ")+" off",r.selectable=!0,r.multiSelectable=!1,B(this,t.call(this,n,r))}return R(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,i=e.length;r<i;r++){var o=e[r];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},e.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,i=e.length;r<i;r++){var o=e[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(dr);ve.registerComponent("OffTextTrackMenuItem",fr);var pr=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(this,e),r.tracks=n.textTracks(),B(this,t.call(this,n,r))}return R(e,t),e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr,n=void 0;this.label_&&(n=this.label_+" off"),t.push(new fr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(this.kinds_.indexOf(o.kind)>-1){var a=new e(this.player_,{track:o,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),t.push(a)}}return t},e}(cr);ve.registerComponent("TextTrackButton",pr);var gr=function(t){function e(n,r){N(this,e);var i=r.track,o=r.cue,a=n.currentTime();r.selectable=!0,r.multiSelectable=!1,r.label=o.text,r.selected=o.startTime<=a&&a<o.endTime;var s=B(this,t.call(this,n,r));return s.track=i,s.cue=o,i.addEventListener("cuechange",Qt(s,s.update)),s}return R(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},e}(hr);ve.registerComponent("ChaptersTrackMenuItem",gr);var vr=function(t){function e(n,r,i){return N(this,e),B(this,t.call(this,n,r,i))}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},e.prototype.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},e.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var n=t[e];if(n.kind===this.kind_)return n}},e.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(pe(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;n<r;n++){var i=e[n],o=new gr(this.player_,{track:this.track_,cue:i});t.push(o)}return t},e}(pr);vr.prototype.kind_="chapters",vr.prototype.controlText_="Chapters",ve.registerComponent("ChaptersButton",vr);var mr=function(t){function e(n,r,i){N(this,e);var o=B(this,t.call(this,n,r,i)),a=n.textTracks(),s=Qt(o,o.handleTracksChange);return a.addEventListener("change",s),o.on("dispose",function(){a.removeEventListener("change",s)}),o}return R(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,r=0,i=e.length;r<i;r++){var o=e[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(pr);mr.prototype.kind_="descriptions",mr.prototype.controlText_="Descriptions",ve.registerComponent("DescriptionsButton",mr);var yr=function(t){function e(n,r,i){return N(this,e),B(this,t.call(this,n,r,i))}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(pr);yr.prototype.kind_="subtitles",yr.prototype.controlText_="Subtitles",ve.registerComponent("SubtitlesButton",yr);var br=function(t){function e(n,r){N(this,e),r.track={player:n,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1,r.name="CaptionSettingsMenuItem";var i=B(this,t.call(this,n,r));return i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+r.kind+" settings dialog"),i}return R(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(dr);ve.registerComponent("CaptionSettingsMenuItem",br);var _r=function(t){function e(n,r,i){return N(this,e),B(this,t.call(this,n,r,i))}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new br(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(pr);_r.prototype.kind_="captions",_r.prototype.controlText_="Captions",ve.registerComponent("CaptionsButton",_r);var xr=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(e,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),i+="</span>",t.prototype.createEl.call(this,e,G({innerHTML:i},n),r)},e}(dr);ve.registerComponent("SubsCapsMenuItem",xr);var wr=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e);var i=B(this,t.call(this,n,r));return i.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(pe(i.label_)),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new br(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,xr)},e}(pr);wr.prototype.kinds_=["captions","subtitles"],wr.prototype.controlText_="Subtitles",ve.registerComponent("SubsCapsButton",wr);var Sr=function(t){function e(n,r){N(this,e);var i=r.track,o=n.audioTracks();r.label=i.label||i.language||"Unknown",r.selected=i.enabled;var a=B(this,t.call(this,n,r));a.track=i,a.addClass("vjs-"+i.kind+"-menu-item");var s=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];a.handleTracksChange.apply(a,e)};return o.addEventListener("change",s),a.on("dispose",function(){o.removeEventListener("change",s)}),a}return R(e,t),e.prototype.createEl=function(e,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),i+="</span>",t.prototype.createEl.call(this,e,G({innerHTML:i},n),r)},e.prototype.handleClick=function(e){var n=this.player_.audioTracks();t.prototype.handleClick.call(this,e);for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},e.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(hr);ve.registerComponent("AudioTrackMenuItem",Sr);var Cr=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(this,e),r.tracks=n.audioTracks(),B(this,t.call(this,n,r))}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var e=this.player_.audioTracks(),n=0;n<e.length;n++){var r=e[n];t.push(new Sr(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return t},e}(cr);Cr.prototype.controlText_="Audio Track",ve.registerComponent("AudioTrackButton",Cr);var kr=function(t){function e(n,r){N(this,e);var i=r.rate,o=parseFloat(i,10);r.label=i,r.selected=1===o,r.selectable=!0,r.multiSelectable=!1;var a=B(this,t.call(this,n,r));return a.label=i,a.rate=o,a.on(n,"ratechange",a.update),a}return R(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(hr);kr.prototype.contentElType="button",ve.registerComponent("PlaybackRateMenuItem",kr);var Or=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.updateVisibility(),i.updateLabel(),i.on(n,"loadstart",i.updateVisibility),i.on(n,"ratechange",i.updateLabel),i}return R(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=it("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},e.prototype.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createMenu=function(){var t=new lr(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;n>=0;n--)t.addChild(new kr(this.player(),{rate:e[n]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>e){r=n[i];break}this.player().playbackRate(r)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(ur);Or.prototype.controlText_="Playback Rate",ve.registerComponent("PlaybackRateMenuButton",Or);var Mr=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(ve);ve.registerComponent("Spacer",Mr);var Er=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(Mr);ve.registerComponent("CustomControlSpacer",Er);var Tr=function(t){function e(){return N(this,e),B(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(ve);Tr.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},ve.registerComponent("ControlBar",Tr);var Ar=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r));return i.on(n,"error",i.open),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(je);Ar.prototype.options_=ge(je.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ve.registerComponent("ErrorDisplay",Ar);var Ir=["#000","Black"],Dr=["#00F","Blue"],Pr=["#0FF","Cyan"],Lr=["#0F0","Green"],jr=["#F0F","Magenta"],Nr=["#F00","Red"],Rr=["#FFF","White"],Br=["#FF0","Yellow"],Fr=["1","Opaque"],zr=["0.5","Semi-Transparent"],Vr=["0","Transparent"],$r={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Ir,Rr,Nr,Lr,Dr,Br,jr,Pr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Fr,zr,Vr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Rr,Ir,Nr,Lr,Dr,Br,jr,Pr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Fr,zr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Vr,zr,Fr]}};function Gr(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}$r.windowColor.options=$r.backgroundColor.options;var Hr=function(t){function e(n,r){N(this,e),r.temporary=!1;var i=B(this,t.call(this,n,r));return i.updateDisplay=Qt(i,i.updateDisplay),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=it("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===r.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),$($r,function(t){i.on(i.$(t.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}return R(e,t),e.prototype.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},e.prototype.createElSelect_=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",i=$r[t],o=i.id.replace("%s",this.id_),a=[n,o].join(" ").trim();return["<"+r+' id="'+o+'" class="'+("label"===r?"vjs-label":"")+'">',this.localize(i.label),"</"+r+">",'<select aria-labelledby="'+a+'">'].concat(i.options.map(function(t){var n=o+"-"+t[1].replace(/\W+/g,"");return['<option id="'+n+'" value="'+t[0]+'" ','aria-labelledby="'+a+" "+n+'">',e.localize(t[1]),"</option>"].join("")})).concat("</select>").join("")},e.prototype.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},e.prototype.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},e.prototype.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},e.prototype.createElColors_=function(){return it("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},e.prototype.createElFont_=function(){return it("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},e.prototype.createElControls_=function(){var t=this.localize("restore all settings to the default values");return it("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},e.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},e.prototype.label=function(){return this.localize("Caption Settings Dialog")},e.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},e.prototype.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},e.prototype.getValues=function(){var t=this;return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return V(t).reduce(function(n,r){return e(n,t[r],r)},n)}($r,function(e,n,r){var i,o,a=(i=t.$(n.selector),o=n.parser,Gr(i.options[i.options.selectedIndex].value,o));return void 0!==a&&(e[r]=a),e},{})},e.prototype.setValues=function(t){var e=this;$($r,function(n,r){!function(t,e,n){if(e)for(var r=0;r<t.options.length;r++)if(Gr(t.options[r].value,n)===e){t.selectedIndex=r;break}}(e.$(n.selector),t[r],n.parser)})},e.prototype.setDefaults=function(){var t=this;$($r,function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n})},e.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(o.localStorage.getItem("vjs-text-track-settings"))}catch(t){X.warn(t)}t&&this.setValues(t)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?o.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):o.localStorage.removeItem("vjs-text-track-settings")}catch(t){X.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(a,"keydown",this.handleKeyDown);var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},e}(je);ve.registerComponent("TextTrackSettings",Hr);var Wr=function(t){function e(n,r){N(this,e);var i=r.ResizeObserver||o.ResizeObserver;null===r.ResizeObserver&&(i=!1);var a=ge({createEl:!i},r),s=B(this,t.call(this,n,a));return s.ResizeObserver=r.ResizeObserver||o.ResizeObserver,s.loadListener_=null,s.resizeObserver_=null,s.debouncedHandler_=ee(function(){s.resizeHandler()},100,!1,s),i?(s.resizeObserver_=new s.ResizeObserver(s.debouncedHandler_),s.resizeObserver_.observe(n.el())):(s.loadListener_=function(){s.el_&&s.el_.contentWindow&&$t(s.el_.contentWindow,"resize",s.debouncedHandler_)},s.one("load",s.loadListener_)),s}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},e.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},e.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&Gt(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},e}(ve);ve.registerComponent("ResizeManager",Wr);var Ur=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var n=t.$$("source"),r=[],i="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(i=r[0]),t.triggerSourceset(i),!0)},Yr={};E||(Yr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=a.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var n=a.createDocumentFragment();e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",o.Element.prototype.appendChild.call(this,n),this.innerHTML}}));var Xr=function(t,e){for(var n={},r=0;r<t.length&&!((n=Object.getOwnPropertyDescriptor(t[r],e))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},qr=function(t){var e=t.el();if(!e.resetSourceWatch_){var n={},r=function(t){return Xr([t.el(),o.HTMLMediaElement.prototype,o.Element.prototype,Yr],"innerHTML")}(t),i=function(n){return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=n.apply(e,i);return Ur(t),a}};["append","appendChild","insertAdjacentHTML"].forEach(function(t){e[t]&&(n[t]=e[t],e[t]=i(n[t]))}),Object.defineProperty(e,"innerHTML",ge(r,{set:i(r.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(n).forEach(function(t){e[t]=n[t]}),Object.defineProperty(e,"innerHTML",r)},t.one("sourceset",e.resetSourceWatch_)}},Zr={};E||(Zr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Ke(o.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return o.Element.prototype.setAttribute.call(this,"src",t),t}}));var Kr=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var n=function(t){return Xr([t.el(),o.HTMLMediaElement.prototype,Zr],"src")}(t),r=e.setAttribute,i=e.load;Object.defineProperty(e,"src",ge(n,{set:function(r){var i=n.set.call(e,r);return t.triggerSourceset(e.src),i}})),e.setAttribute=function(n,i){var o=r.call(e,n,i);return/src/i.test(n)&&t.triggerSourceset(e.src),o},e.load=function(){var n=i.call(e);return Ur(t)||(t.triggerSourceset(""),qr(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):Ur(t)||qr(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=i,e.setAttribute=r,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}}}},Jr=F(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),Qr=function(t){function e(n,r){N(this,e);var i=B(this,t.call(this,n,r)),o=n.source,a=!1;if(o&&(i.el_.currentSrc!==o.src||n.tag&&3===n.tag.initNetworkState_)?i.setSource(o):i.handleLateInit_(i.el_),n.enableSourceset&&i.setupSourcesetHandling_(),i.el_.hasChildNodes()){for(var l=i.el_.childNodes,u=l.length,c=[];u--;){var h=l[u];"track"===h.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(h),i.remoteTextTracks().addTrack(h.track),i.textTracks().addTrack(h.track),a||i.el_.hasAttribute("crossorigin")||!Qe(h.src)||(a=!0)):c.push(h))}for(var d=0;d<c.length;d++)i.el_.removeChild(c[d])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&X.warn(s(Jr)),i.restoreMetadataTracksInIOSNativePlayer_(),(D||v||S)&&!0===n.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}return R(e,t),e.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},e.prototype.setupSourcesetHandling_=function(){Kr(this)},e.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var t=this.textTracks(),e=void 0,n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)})},e.prototype.proxyNativeTracks_=function(){var t=this;cn.names.forEach(function(e){var n=cn[e],r=t.el()[n.getterName],i=t[n.getterName]();if(t["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var o={change:function(t){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},addtrack:function(t){i.addTrack(t.track)},removetrack:function(t){i.removeTrack(t.track)}},a=function(){for(var t=[],e=0;e<i.length;e++){for(var n=!1,o=0;o<r.length;o++)if(r[o]===i[e]){n=!0;break}n||t.push(i[e])}for(;t.length;)i.removeTrack(t.shift())};Object.keys(o).forEach(function(e){var n=o[e];r.addEventListener(e,n),t.on("dispose",function(t){return r.removeEventListener(e,n)})}),t.on("loadstart",a),t.on("dispose",function(e){return t.off("loadstart",a)})}})},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=a.createElement("video");var r=ge({},this.options_.tag&&dt(this.options_.tag));D&&!0===this.options_.nativeControlsForTouch||delete r.controls,ht(t,G(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&pt(t,"preload",this.options_.preload);for(var i=["loop","muted","playsinline","autoplay"],o=0;o<i.length;o++){var s=i[o],l=this.options_[s];void 0!==l&&(l?pt(t,s,s):gt(t,s),t[s]=l)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var r=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),e||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),t.readyState>=2&&i.push("loadeddata"),t.readyState>=3&&i.push("canplay"),t.readyState>=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(t){this.trigger(t)},this)})}},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){X(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){var t=this;if(this.el_.duration===1/0&&_&&O&&0===this.el_.currentTime){return this.on("timeupdate",function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)})}},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=o.navigator&&o.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,r):t.prototype.addTextTrack.call(this,e,n,r)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=a.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},e.prototype.addRemoteTextTrack=function(e,n){var r=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)e!==n[r]&&e!==n[r].track||this.el().removeChild(n[r])},e.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),o.performance&&"function"==typeof o.performance.now?t.creationTime=o.performance.now():o.performance&&o.performance.timing&&"number"==typeof o.performance.timing.navigationStart&&(t.creationTime=o.Date.now()-o.performance.timing.navigationStart),t},e}(fn);if(tt()){Qr.TEST_VID=a.createElement("video");var ti=a.createElement("track");ti.kind="captions",ti.srclang="en",ti.label="English",Qr.TEST_VID.appendChild(ti)}Qr.isSupported=function(){try{Qr.TEST_VID.volume=.5}catch(t){return!1}return!(!Qr.TEST_VID||!Qr.TEST_VID.canPlayType)},Qr.canPlayType=function(t){return Qr.TEST_VID.canPlayType(t)},Qr.canPlaySource=function(t,e){return Qr.canPlayType(t.type)},Qr.canControlVolume=function(){try{var t=Qr.TEST_VID.volume;return Qr.TEST_VID.volume=t/2+.1,t!==Qr.TEST_VID.volume}catch(t){return!1}},Qr.canMuteVolume=function(){try{var t=Qr.TEST_VID.muted;return Qr.TEST_VID.muted=!t,Qr.TEST_VID.muted?pt(Qr.TEST_VID,"muted","muted"):gt(Qr.TEST_VID,"muted"),t!==Qr.TEST_VID.muted}catch(t){return!1}},Qr.canControlPlaybackRate=function(){if(_&&O&&M<58)return!1;try{var t=Qr.TEST_VID.playbackRate;return Qr.TEST_VID.playbackRate=t/2+.1,t!==Qr.TEST_VID.playbackRate}catch(t){return!1}},Qr.canOverrideAttributes=function(){if(E)return!1;try{var t=function(){};Object.defineProperty(a.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(a.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(a.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(a.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},Qr.supportsNativeTextTracks=function(){return I||y&&O},Qr.supportsNativeVideoTracks=function(){return!(!Qr.TEST_VID||!Qr.TEST_VID.videoTracks)},Qr.supportsNativeAudioTracks=function(){return!(!Qr.TEST_VID||!Qr.TEST_VID.audioTracks)},Qr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Qr.prototype.featuresVolumeControl=Qr.canControlVolume(),Qr.prototype.featuresMuteControl=Qr.canMuteVolume(),Qr.prototype.featuresPlaybackRate=Qr.canControlPlaybackRate(),Qr.prototype.featuresSourceset=Qr.canOverrideAttributes(),Qr.prototype.movingMediaElementInDOM=!y,Qr.prototype.featuresFullscreenResize=!0,Qr.prototype.featuresProgressEvents=!0,Qr.prototype.featuresTimeupdateEvents=!0,Qr.prototype.featuresNativeTextTracks=Qr.supportsNativeTextTracks(),Qr.prototype.featuresNativeVideoTracks=Qr.supportsNativeVideoTracks(),Qr.prototype.featuresNativeAudioTracks=Qr.supportsNativeAudioTracks();var ei=Qr.TEST_VID&&Qr.TEST_VID.constructor.prototype.canPlayType,ni=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,ri=/^video\/mp4/i;Qr.patchCanPlayType=function(){x>=4&&!C&&!O?Qr.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&ni.test(t)?"maybe":ei.call(this,t)}:w&&(Qr.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&ri.test(t)?"maybe":ei.call(this,t)})},Qr.unpatchCanPlayType=function(){var t=Qr.TEST_VID.constructor.prototype.canPlayType;return Qr.TEST_VID.constructor.prototype.canPlayType=ei,t},Qr.patchCanPlayType(),Qr.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Qr.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){Qr.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){Qr.prototype["set"+pe(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){Qr.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(t){Qr.prototype["set"+pe(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(t){Qr.prototype[t]=function(){return this.el_[t]()}}),fn.withSourceHandlers(Qr),Qr.nativeSourceHandler={},Qr.nativeSourceHandler.canPlayType=function(t){try{return Qr.TEST_VID.canPlayType(t)}catch(t){return""}},Qr.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Qr.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=Je(t.src);return Qr.nativeSourceHandler.canPlayType("video/"+n)}return""},Qr.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},Qr.nativeSourceHandler.dispose=function(){},Qr.registerSourceHandler(Qr.nativeSourceHandler),fn.registerTech("Html5",Qr);var ii=F(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),oi=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],ai={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},si=["tiny","xsmall","small","medium","large","xlarge","huge"],li={};si.forEach(function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;li[t]="vjs-layout-"+e});var ui={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ci=function(t){function e(n,r,i){if(N(this,e),n.id=n.id||r.id||"vjs_video_"+It(),(r=G(e.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(r.language=o.getAttribute("lang"))}else for(var a=n;a&&1===a.nodeType;){if(dt(a).hasOwnProperty("lang")){r.language=a.getAttribute("lang");break}a=a.parentNode}var s=B(this,t.call(this,null,r,i));if(s.log=q(s.id_),s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=n,s.tagAttributes=n&&dt(n),s.language(s.options_.language),r.languages){var l={};Object.getOwnPropertyNames(r.languages).forEach(function(t){l[t.toLowerCase()]=r.languages[t]}),s.languages_=l}else s.languages_=e.prototype.options_.languages;s.cache_={},s.poster_=r.poster||"",s.controls_=!!r.controls,s.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?s.options_.autoplay=!0:s.autoplay(s.options_.autoplay),s.scrubbing_=!1,s.el_=s.createEl(),s.cache_.lastPlaybackRate=s.defaultPlaybackRate(),he(s,{eventBusKey:"el_"});var u=ge(s.options_);if(r.plugins){var c=r.plugins;Object.keys(c).forEach(function(t){if("function"!=typeof this[t])throw new Error('plugin "'+t+'" does not exist');this[t](c[t])},s)}s.options_.playerOptions=u,s.middleware_=[],s.initChildren(),s.isAudio("audio"===n.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),y||s.addClass("vjs-workinghover"),e.players[s.id_]=s;var d=h.split(".")[0];return s.addClass("vjs-v"+d),s.userActive(!0),s.reportUserActivity(),s.one("play",s.listenForUserActivity_),s.on("fullscreenchange",s.handleFullscreenChange_),s.on("stageclick",s.handleStageClick_),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s.changingSrc_=!1,s.playWaitingForReady_=!1,s.playOnLoadstart_=null,s}return R(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),gn[this.id()]=null,t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.tag,n=void 0,r=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),i="video-js"===this.tag.tagName.toLowerCase();r?n=this.el_=e.parentNode:i||(n=this.el_=t.prototype.createEl.call(this,"div"));var s=dt(e);if(i){for(n=this.el_=e,e=this.tag=a.createElement("video");n.children.length;)e.appendChild(n.firstChild);st(n,"video-js")||lt(n,"video-js"),n.appendChild(e),r=this.playerElIngest_=n,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach(function(t){void 0!==n[t]&&(e[t]=n[t])})}if(e.setAttribute("tabindex","-1"),s.tabindex="-1",T&&(e.setAttribute("role","application"),s.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(t){"class"===t?(n.className+=" "+s[t],i&&(e.className+=" "+s[t])):(n.setAttribute(t,s[t]),i&&e.setAttribute(t,s[t]))}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=n.player=this,this.addClass("vjs-paused"),!0!==o.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Kt("vjs-styles-dimensions");var l=Mt(".vjs-styles-defaults"),u=Mt("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var c=e.getElementsByTagName("a"),h=0;h<c.length;h++){var d=c.item(h);lt(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!r&&e.parentNode.insertBefore(n,e),at(e,n),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=n,n},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(e);isNaN(r)?X.error('Improper value "'+e+'" supplied for for '+t):(this[n]=r,this.updateStyleEl_())},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.prototype.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0!==o.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,n=void 0,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),i=r[1]/r[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*i,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Jt(this.styleEl_,"\n ."+n+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*i+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(a>=0&&(l.width=a),s>=0&&(l.height=s))}},e.prototype.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_();var r=pe(t),i=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==r&&this.tag&&(fn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o={source:e,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};dn.names.forEach(function(t){var e=dn[t];o[e.getterName]=n[e.privateName]}),G(o,this.options_[r]),G(o,this.options_[i]),G(o,this.options_[t.toLowerCase()]),this.tag&&(o.tag=this.tag),e&&e.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var a=fn.getTech(t);if(!a)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new a(o),this.tech_.ready(Qt(this,this.handleTechReady_),!0),Pe(this.textTracksJson_||[],this.tech_),oi.forEach(function(t){n.on(n.tech_,t,n["handleTech"+pe(t)+"_"])}),Object.keys(ai).forEach(function(t){n.on(n.tech_,t,function(e){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+ai[t]+"_"].bind(n),event:e}):n["handleTech"+ai[t]+"_"](e)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||at(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){var t=this;dn.names.forEach(function(e){var n=dn[e];t[n.privateName]=t[n.getterName]()}),this.textTracksJson_=De(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.prototype.tech=function(t){return void 0===t&&X.warn(s(ii)),this.tech_},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(t){X("deleting tag.poster throws in some browsers",t)}},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},e.prototype.manualAutoplay_=function(t){var e=this;if(this.tech_&&"string"==typeof t){var n=function(){var t=e.muted();e.muted(!0);var n=e.play();if(n&&n.then&&n.catch)return n.catch(function(n){e.muted(t)})},r=void 0;if("any"===t?(r=this.play())&&r.then&&r.catch&&r.catch(function(){return n()}):r="muted"===t?n():this.play(),r&&r.then&&r.catch)return r.then(function(){e.trigger({type:"autoplay-success",autoplay:t})}).catch(function(n){e.trigger({type:"autoplay-failure",autoplay:t})})}},e.prototype.updateSourceCaches_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t,n="";"string"!=typeof e&&(e=t.src,n=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!n&&(n=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter(function(t){return t.src===e});if(n.length)return n[0].type;for(var r=t.$$("source"),i=0;i<r.length;i++){var o=r[i];if(o.type&&o.src&&o.src===e)return o.type}return Cn(e)}(this,e)),this.cache_.source=ge({},t,{src:e,type:n});for(var r=this.cache_.sources.filter(function(t){return t.src&&t.src===e}),i=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var l=dt(o[s]);i.push(l),l.src&&l.src===e&&a.push(l.src)}a.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},e.prototype.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var n=function(t){return e.updateSourceCaches_(t)},r=this.currentSource().src,i=t.src;if(r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),!t.src){this.tech_.one(["sourceset","loadstart"],function t(n){if("sourceset"!==n.type){var r=e.techGet("currentSrc");e.lastSource_.tech=r,e.updateSourceCaches_(r)}e.tech_.off(["sourceset","loadstart"],t)})}}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},e.prototype.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(t){return t.callback(t.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(X.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){Ot(t)&&this.controls_&&(this.paused()?Ae(this.play()):this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},e.prototype.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){this.ready(function(){if(t in _n)return function(t,e,n,r){return e[n](t.reduce(wn(n),r))}(this.middleware_,this.tech_,t,e);if(t in xn)return yn(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw X(t),t}},!0)},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in bn)return function(t,e,n){return t.reduceRight(wn(n),e[n]())}(this.middleware_,this.tech_,t);if(t in xn)return yn(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw X("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw X("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw X(e),e}}},e.prototype.play=function(){var t=this,e=this.options_.Promise||o.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.prototype.play_=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void e(this.techGet_("play"));this.playOnLoadstart_=function(){t.playOnLoadstart_=null,e(t.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){t.playWaitingForReady_=!1,e(t.play())})}},e.prototype.pause=function(){this.techCall_("pause")},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.played=function(){return this.techGet_("played")||be(0,0)},e.prototype.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.prototype.currentTime=function(t){return void 0!==t?(t<0&&(t=0),void this.techCall_("setCurrentTime",t)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.prototype.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=be(0,0)),t},e.prototype.bufferedPercent=function(){return _e(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},e.prototype.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},e.prototype.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){if(void 0===t)return!!this.isFullscreen_;this.isFullscreen_=!!t},e.prototype.requestFullscreen=function(){var t=xe;this.isFullscreen(!0),t.requestFullscreen?($t(a,t.fullscreenchange,Qt(this,function e(n){this.isFullscreen(a[t.fullscreenElement]),!1===this.isFullscreen()&&Gt(a,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},e.prototype.exitFullscreen=function(){var t=xe;this.isFullscreen(!1),t.requestFullscreen?a[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.documentElement.style.overflow,$t(a,"keydown",Qt(this,this.fullWindowOnEscKey)),a.documentElement.style.overflow="hidden",lt(a.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,Gt(a,"keydown",this.fullWindowOnEscKey),a.documentElement.style.overflow=this.docOrigOverflow,ut(a.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=fn.getTech(i);if(o||(o=ve.getComponent(i)),o){if(o.isSupported()&&(e=o.canPlayType(t)))return e}else X.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e,n=this,r=this.options_.techOrder.map(function(t){return[t,fn.getTech(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(X.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(t,e,n){var r=void 0;return t.some(function(t){return e.some(function(e){if(r=n(t,e))return!0})}),r},o=function(t,e){var r=t[0];if(t[1].canPlaySource(e,n.options_[r.toLowerCase()]))return{source:e,tech:r}};return(this.options_.sourceOrder?i(t,r,(e=o,function(t,n){return e(n,t)})):i(r,t,o))||!1},e.prototype.src=function(t){var e=this;if(void 0===t)return this.cache_.src||"";var n=function t(e){if(Array.isArray(e)){var n=[];e.forEach(function(e){e=t(e),Array.isArray(e)?n=n.concat(e):H(e)&&n.push(e)}),e=n}else e="string"==typeof e&&e.trim()?[kn({src:e})]:H(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[kn(e)]:[];return e}(t);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),mn(this,n[0],function(t,r){var i,o;if(e.middleware_=r,e.cache_.sources=n,e.updateSourceCaches_(t),e.src_(t))return n.length>1?e.src(n.slice(1)):(e.changingSrc_=!1,e.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void e.triggerReady());i=r,o=e.tech_,i.forEach(function(t){return t.setTech&&t.setTech(o)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.prototype.src_=function(t){var e,n,r=this,i=this.selectSource([t]);return!i||(e=i.tech,n=this.techName_,pe(e)!==pe(n)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready(function(){r.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1))},e.prototype.load=function(){this.techCall_("load")},e.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},e.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},e.prototype.currentSource=function(){return this.cache_.source||{}},e.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},e.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},e.prototype.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e=void 0;"string"==typeof t&&/(any|play|muted)/.test(t)?(this.options_.autoplay=t,this.manualAutoplay_(t),e=!1):this.options_.autoplay=!!t,e=e||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",e)},e.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},e.prototype.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},e.prototype.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.prototype.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Me(t),this.addClass("vjs-error"),X.error("(CODE:"+this.error_.code+" "+Me.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},e.prototype.reportUserActivity=function(t){this.userActivity_=!0},e.prototype.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,n=void 0,r=Qt(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(t),t=this.setInterval(r,250)}),this.on("mousemove",function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,r())}),this.on("mouseup",function(e){r(),this.clearInterval(t)}),this.on("keydown",r),this.on("keyup",r);var i=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var t=this.options_.inactivityTimeout;t<=0||(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},e.prototype.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.prototype.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},e.prototype.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},e.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},e.prototype.removeRemoteTextTrack=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).track,e=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(e)},e.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},e.prototype.languages=function(){return ge(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=ge(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var r=e[n];(r=ge(r)).player=void 0,t.tracks[n]=r}return t},e.prototype.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var r=new je(this,e);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open(),r},e.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),n=0;n<si.length;n++){var r=si[n];if(e<=this.breakpoints_[r]){if(t===r)return;t&&this.removeClass(li[t]),this.addClass(li[r]),this.breakpoint_=r;break}}},e.prototype.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},e.prototype.breakpoints=function(t){return void 0===t?G(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=G({},ui,t),this.updateCurrentBreakpoint_(),G(this.breakpoints_))},e.prototype.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?(this.responsive_=t,t?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},e.prototype.currentBreakpoint=function(){return this.breakpoint_},e.prototype.currentBreakpointClass=function(){return li[this.breakpoint_]||""},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=dt(t),r=n["data-setup"];if(st(t,"vjs-fill")&&(n.fill=!0),st(t,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=l(r||"{}"),o=i[0],a=i[1];o&&X.error(o),G(n,a)}if(G(e,n),t.hasChildNodes())for(var s=t.childNodes,u=0,c=s.length;u<c;u++){var h=s[u],d=h.nodeName.toLowerCase();"source"===d?e.sources.push(dt(h)):"track"===d&&e.tracks.push(dt(h))}return e},e.prototype.flexNotSupported_=function(){var t=a.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},e}(ve);dn.names.forEach(function(t){var e=dn[t];ci.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),ci.players={};var hi=o.navigator;ci.prototype.options_={techOrder:fn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:hi&&(hi.languages&&hi.languages[0]||hi.userLanguage||hi.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},E||ci.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach(function(t){ci.prototype[t]=function(){return this.techGet_(t)}}),oi.forEach(function(t){ci.prototype["handleTech"+pe(t)+"_"]=function(){return this.trigger(t)}}),ve.registerComponent("Player",ci);var di={},fi=function(t){return di.hasOwnProperty(t)},pi=function(t){return fi(t)?di[t]:void 0},gi=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},vi=function(t,e,n){var r=(n?"before":"")+"pluginsetup";t.trigger(r,e),t.trigger(r+":"+e.name,e)},mi=function(t,e){return e.prototype.name=t,function(){vi(this,{name:t,plugin:e,instance:null},!0);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=new(Function.prototype.bind.apply(e,[null].concat([this].concat(r))));return this[t]=function(){return o},vi(this,o.getEventHash()),o}},yi=function(){function t(e){if(N(this,t),this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,he(this),delete this.trigger,fe(this,this.constructor.defaultState),gi(e,this.name),this.dispose=Qt(this,this.dispose),e.on("dispose",this.dispose)}return t.prototype.version=function(){return this.constructor.VERSION},t.prototype.getEventHash=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},t.prototype.trigger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ht(this.eventBusEl_,t,this.getEventHash(e))},t.prototype.handleStateChanged=function(t){},t.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=mi(t,di[t])},t.isBasic=function(e){var n="string"==typeof e?pi(e):e;return"function"==typeof n&&!t.prototype.isPrototypeOf(n.prototype)},t.registerPlugin=function(e,n){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+(void 0===e?"undefined":j(e))+".");if(fi(e))X.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(ci.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+(void 0===n?"undefined":j(n))+".");return di[e]=n,"plugin"!==e&&(t.isBasic(n)?ci.prototype[e]=function(t,e){var n=function(){vi(this,{name:t,plugin:e,instance:null},!0);var n=e.apply(this,arguments);return gi(this,t),vi(this,{name:t,plugin:e,instance:n}),n};return Object.keys(e).forEach(function(t){n[t]=e[t]}),n}(e,n):ci.prototype[e]=mi(e,n)),n},t.deregisterPlugin=function(t){if("plugin"===t)throw new Error("Cannot de-register base plugin.");fi(t)&&(delete di[t],delete ci.prototype[t])},t.getPlugins=function(){var t=void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(di)).forEach(function(e){var n=pi(e);n&&((t=t||{})[e]=n)}),t},t.getPluginVersion=function(t){var e=pi(t);return e&&e.VERSION||""},t}();yi.getPlugin=pi,yi.BASE_PLUGIN_NAME="plugin",yi.registerPlugin("plugin",yi),ci.prototype.usingPlugin=function(t){return!!this.activePlugins_&&!0===this.activePlugins_[t]},ci.prototype.hasPlugin=function(t){return!!fi(t)};"undefined"==typeof HTMLVideoElement&&tt()&&(a.createElement("video"),a.createElement("audio"),a.createElement("track"),a.createElement("video-js"));var bi=function(t){return 0===t.indexOf("#")?t.slice(1):t};function _i(t,e,n){var r=_i.getPlayer(t);if(r)return e&&X.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof t?Mt("#"+bi(t)):t;if(!et(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");a.body.contains(i)||X.warn("The element supplied is not included in the DOM"),e=e||{},_i.hooks("beforesetup").forEach(function(t){var n=t(i,ge(e));H(n)&&!Array.isArray(n)?e=ge(e,n):X.error("please return an object in beforesetup hooks")});var o=ve.getComponent("Player");return r=new o(i,e,n),_i.hooks("setup").forEach(function(t){return t(r)}),r}if(_i.hooks_={},_i.hooks=function(t,e){return _i.hooks_[t]=_i.hooks_[t]||[],e&&(_i.hooks_[t]=_i.hooks_[t].concat(e)),_i.hooks_[t]},_i.hook=function(t,e){_i.hooks(t,e)},_i.hookOnce=function(t,e){_i.hooks(t,[].concat(e).map(function(e){return function n(){return _i.removeHook(t,n),e.apply(void 0,arguments)}}))},_i.removeHook=function(t,e){var n=_i.hooks(t).indexOf(e);return!(n<=-1)&&(_i.hooks_[t]=_i.hooks_[t].slice(),_i.hooks_[t].splice(n,1),!0)},!0!==o.VIDEOJS_NO_DYNAMIC_STYLE&&tt()){var xi=Mt(".vjs-styles-defaults");if(!xi){xi=Kt("vjs-styles-defaults");var wi=Mt("head");wi&&wi.insertBefore(xi,wi.firstChild),Jt(xi,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Zt(1,_i),_i.VERSION=h,_i.options=ci.prototype.options_,_i.getPlayers=function(){return ci.players},_i.getPlayer=function(t){var e=ci.players,n=void 0;if("string"==typeof t){var r=bi(t),i=e[r];if(i)return i;n=Mt("#"+r)}else n=t;if(et(n)){var o=n,a=o.player,s=o.playerId;if(a||e[s])return a||e[s]}},_i.getAllPlayers=function(){return Object.keys(ci.players).map(function(t){return ci.players[t]}).filter(Boolean)},_i.players=ci.players,_i.getComponent=ve.getComponent,_i.registerComponent=function(t,e){fn.isTech(e)&&X.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),ve.registerComponent.call(ve,t,e)},_i.getTech=fn.getTech,_i.registerTech=fn.registerTech,_i.use=function(t,e){pn[t]=pn[t]||[],pn[t].push(e)},!E&&Object.defineProperty?(Object.defineProperty(_i,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(_i.middleware,"TERMINATOR",{value:vn,writeable:!1,enumerable:!0})):_i.middleware={TERMINATOR:vn},_i.browser=L,_i.TOUCH_ENABLED=D,_i.extend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){t.apply(this,arguments)},r={};for(var i in"object"===(void 0===e?"undefined":j(e))?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),r=e):"function"==typeof e&&(n=e),function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":j(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)}(n,t),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},_i.mergeOptions=ge,_i.bind=Qt,_i.registerPlugin=yi.registerPlugin,_i.deregisterPlugin=yi.deregisterPlugin,_i.plugin=function(t,e){return X.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),yi.registerPlugin(t,e)},_i.getPlugins=yi.getPlugins,_i.getPlugin=yi.getPlugin,_i.getPluginVersion=yi.getPluginVersion,_i.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),_i.options.languages=ge(_i.options.languages,((n={})[t]=e,n)),_i.options.languages[t]},_i.log=X,_i.createLogger=q,_i.createTimeRange=_i.createTimeRanges=be,_i.formatTime=zn,_i.setFormatTime=function(t){Fn=t},_i.resetFormatTime=function(){Fn=Bn},_i.parseUrl=Ze,_i.isCrossOrigin=Qe,_i.EventTarget=ne,_i.on=$t,_i.one=Wt,_i.off=Gt,_i.trigger=Ht,_i.xhr=u,_i.TextTrack=rn,_i.AudioTrack=on,_i.VideoTrack=an,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){_i[t]=function(){return X.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Tt[t].apply(null,arguments)}}),_i.computedStyle=Z,_i.dom=Tt,_i.url=tn,t.exports=_i},DlMc:function(t,e,n){var r=n("gApy"),i=n("DtRx"),o=i;o.v1=r,o.v4=i,t.exports=o},DmAK:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.feasibleTreeWithLayer=e.feasibleTree=void 0;var r=n("FlGC"),i=n("+ZTV"),o=n("3MGd"),a=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],l=t.nodeCount();for(i.setNode(a,{});s(i,t)<l;)e=c(i,t),n=i.hasNode(e.v)?(0,r.slack)(t,e):-(0,r.slack)(t,e),h(i,t,n);return i};e.feasibleTree=a;var s=function(t,e){var n=function(i){e.nodeEdges(i).forEach(function(o){var a=o.v,s=i===a?o.w:a;t.hasNode(s)||(0,r.slack)(e,o)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))})};return t.nodes().forEach(n),t.nodeCount()},l=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],s=t.nodes().filter(function(e){return!!t.node(e)}).length;for(i.setNode(a,{});u(i,t)<s;)e=c(i,t),n=i.hasNode(e.v)?(0,r.slack)(t,e):-(0,r.slack)(t,e),h(i,t,n);return i};e.feasibleTreeWithLayer=l;var u=function(t,e){var n=function(i){var o;null===(o=e.nodeEdges(i))||void 0===o||o.forEach(function(o){var a=o.v,s=i===a?o.w:a;t.hasNode(s)||void 0===e.node(s).layer&&(0,r.slack)(e,o)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))})};return t.nodes().forEach(n),t.nodeCount()},c=function(t,e){return(0,i.minBy)(e.edges(),function(n){return t.hasNode(n.v)!==t.hasNode(n.w)?(0,r.slack)(e,n):1/0})},h=function(t,e,n){t.nodes().forEach(function(t){e.node(t).rank||(e.node(t).rank=0),e.node(t).rank+=n})};e.default={feasibleTree:a,feasibleTreeWithLayer:l}},DtRx:function(t,e,n){var r=n("i4uy"),i=n("MAlW");t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},DvOw:function(t,e){var n={"":!0,up:!0};function r(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,e=3,i=0,o=100,a=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");o=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=function(t){return"string"==typeof t&&!!n[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}},"E/in":function(t,e,n){"use strict";e.__esModule=!0,e.isDef=function(t){return void 0!==t&&null!==t},e.isKorean=function(t){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(t)}},E9gP:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("7N6o"))&&r.__esModule?r:{default:r},o=n("lSAc");var a=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,a=1,s=0,l=1e3,u=t.nodes,c=void 0===u?[]:u,h=t.edges,d=void 0===h?[]:h,f=c.length,p={},g={},v=0;v<f;++v)p[y=(S=c[v]).id]=1/f,g[y]=1/f;for(var m=(0,i.default)(t);l>0&&a>e;){for(s=0,v=0;v<f;++v){var y=(S=c[v]).id;if(r=0,0===m[S.id].inDegree)p[y]=0;else{for(var b=(0,o.getNeighbors)(y,d,"source"),_=0;_<b.length;++_){var x=b[_],w=m[x].outDegree;w>0&&(r+=g[x]/w)}p[y]=n*r,s+=p[y]}}for(s=(1-s)/f,a=0,v=0;v<f;++v){var S;r=p[y=(S=c[v]).id]+s,a+=Math.abs(r-g[y]),g[y]=r}l-=1}return g};e.default=a},EAZf:function(t,e,n){var r;r=function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(e,n){e.exports=t},function(t,e,n){"use strict";e.a=function t(){var e={};var n=!1;var r=0;var i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(n=arguments[0],r++);function o(r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n&&"[object Object]"===Object.prototype.toString.call(r[i])?e[i]=t(!0,e[i],r[i]):e[i]=r[i])}for(;r<i;r++){var a=arguments[r];o(a)}return e}},function(t,n){t.exports=e},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n(2),s=n.n(a);e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.images,r=void 0===e?[]:e,a=t.options,l=void 0===a?{}:a;l=n.i(o.a)(l,{inline:!1});var u=new(s.a.extend({render:function(t){return t("div",{style:{display:"none"},class:["__viewer-token"]},r.map(function(e){return t("img",{attrs:"string"==typeof e?{src:e}:e})}))}}));u.$mount(),document.body.appendChild(u.$el);var c=new i.a(u.$el,l),h=c.destroy.bind(c);return c.destroy=function(){return h(),u.$destroy(),document.body.removeChild(u.$el),c},c.show(),u.$el.addEventListener("hidden",function(){this.viewer===c&&c.destroy()}),c}},function(t,e,n){"use strict";(function(t){var r=n(0),i=n.n(r),o=n(7),a=(n.n(o),n(2)),s=n.n(a);e.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name,a=void 0===r?"viewer":r,l=e.debug,u=void 0!==l&&l;function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s.a.nextTick(function(){r&&!function(t){var e=t.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=e?e.join(""):void 0;return t.__viewerImageDiffCache===n?(f("Element change detected, but image(s) has not changed"),!1):(f("Image change detected"),t.__viewerImageDiffCache=n,!0)}(t)||(n||!t["$"+a]?(h(t),t["$"+a]=new i.a(t,e),f("Viewer created")):(t["$"+a].update(),f("Viewer updated")))})}function h(t){t["$"+a]&&(t["$"+a].destroy(),delete t["$"+a],f("Viewer destroyed"))}function d(t){t.__viewerMutationObserver&&(t.__viewerMutationObserver.disconnect(),delete t.__viewerMutationObserver,f("Observer destroyed"))}function f(){var t;u&&(t=console).log.apply(t,arguments)}var p={bind:function(e,r,i){f("Viewer bind");var a=n.i(o.debounce)(50,c);a(e,r.value),function(t,e,n,r){var i=e.expression;i&&/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(i)?(t.__viewerUnwatch=n.context.$watch(i,function(e,n){f("Change detected by watcher: ",i),r(t,e,!0)},{deep:!0}),f("Watcher created, expression: ",i)):f("Only simple dot-delimited paths can create watcher")}(e,r,i,a),r.modifiers.static||function(e,n,r,i){d(e);var o=t.MutationObserver||t.WebKitMutationObserver||t.MozMutationObserver;if(o){var a=new o(function(t){t.forEach(function(t){f("Viewer mutation:"+t.type),r(e,n,i,!0)})});a.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__viewerMutationObserver=a,f("Observer created")}else f("Observer not supported")}(e,r.value,a,r.modifiers.rebuild)},unbind:function(t,e){f("Viewer unbind"),d(t),function(t){t.__viewerUnwatch&&(t.__viewerUnwatch(),delete t.__viewerUnwatch,f("Watcher destroyed"))}(t),h(t)}};return p}}).call(e,n(9))},function(t,e,n){var r=n(10)(n(8),n(11),null,null);r.options.__file="/Volumes/public/Workspace/web/v-viewer/src/component.vue",r.esModule&&Object.keys(r.esModule).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),r.options.functional&&console.error("[vue-loader] component.vue: functional components are not supported with templates, they should use render functions."),t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n.n(i),a=n(5),s=n.n(a),l=n(4),u=n(3);n.d(e,"component",function(){return s.a}),n.d(e,"directive",function(){return l.a}),n.d(e,"api",function(){return u.a}),n.d(e,"Viewer",function(){return o.a}),e.default={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.name,a=void 0===i?"viewer":i,c=e.debug,h=void 0!==c&&c,d=e.defaultOptions;o.a.setDefaults(d),t.component(a,n.i(r.a)(s.a,{name:a})),t.directive(a,n.i(l.a)({name:a,debug:h})),t.prototype["$"+a+"Api"]=u.a},setDefaults:function(t){o.a.setDefaults(t)}}},function(t,e,n){var r,i,o,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a=function(t){"use strict";function e(t,e,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function l(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var h=this,d=Date.now()-a;function f(){a=Date.now(),n.apply(h,u)}o||(r&&!i&&f(),s(),void 0===r&&d>t?f():!0!==e&&(i=setTimeout(r?function(){i=void 0}:f,void 0===r?t-d:t)))}return"boolean"!=typeof e&&(r=n,n=e,e=void 0),l.cancel=function(){s(),o=!0},l}t.debounce=function(t,n,r){return void 0===r?e(t,n,!1):e(t,r,!1!==n)},t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})},"object"===s(e)&&void 0!==t?a(e):(i=[e],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n.n(r);e.default={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data:function(){return{}},computed:{},methods:{onChange:function(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer:function(){this.destroyViewer(),this.createViewer()},updateViewer:function(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer:function(){this.$viewer&&this.$viewer.destroy()},createViewer:function(){this.$viewer=new i.a(this.$el,this.options),this.$emit("inited",this.$viewer)}},watch:{images:function(){var t=this;this.$nextTick(function(){t.onChange()})},trigger:{handler:function(){var t=this;this.$nextTick(function(){t.onChange()})},deep:!0},options:{handler:function(){var t=this;this.$nextTick(function(){t.rebuildViewer()})},deep:!0}},mounted:function(){this.createViewer()},destroyed:function(){this.destroyViewer()}}},function(t,e){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach(function(t){var e=r[t];l[t]=function(){return e}}),s.computed=l}return{esModule:i,exports:o,options:s}}},function(t,e,n){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default",null,{images:this.images,options:this.options})],2)},staticRenderFns:[]},t.exports.render._withStripped=!0}])},t.exports=r(n("IinW"),n("7+uW"))},EGZi:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},EKTV:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=83)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},4:function(t,e){t.exports=n("fPll")},83:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};r._withStripped=!0;var i=n(4),o={name:"ElCheckbox",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick(function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var l=s.exports;l.install=function(t){t.component(l.name,l)};e.default=l}})},EKta:function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EL1N:function(t,e,n){"use strict";var r=n("+N5+").normalizeReference,i=n("+N5+").isSpace;t.exports=function(t,e){var n,o,a,s,l,u,c,h,d="",f="",p=t.pos,g=t.posMax,v=t.pos,m=!0;if(91!==t.src.charCodeAt(t.pos))return!1;if(l=t.pos+1,(s=t.md.helpers.parseLinkLabel(t,t.pos,!0))<0)return!1;if((u=s+1)<g&&40===t.src.charCodeAt(u)){for(m=!1,u++;u<g&&(o=t.src.charCodeAt(u),i(o)||10===o);u++);if(u>=g)return!1;if(v=u,(c=t.md.helpers.parseLinkDestination(t.src,u,t.posMax)).ok){for(d=t.md.normalizeLink(c.str),t.md.validateLink(d)?u=c.pos:d="",v=u;u<g&&(o=t.src.charCodeAt(u),i(o)||10===o);u++);if(c=t.md.helpers.parseLinkTitle(t.src,u,t.posMax),u<g&&v!==u&&c.ok)for(f=c.str,u=c.pos;u<g&&(o=t.src.charCodeAt(u),i(o)||10===o);u++);}(u>=g||41!==t.src.charCodeAt(u))&&(m=!0),u++}if(m){if(void 0===t.env.references)return!1;if(u<g&&91===t.src.charCodeAt(u)?(v=u+1,(u=t.md.helpers.parseLinkLabel(t,u))>=0?a=t.src.slice(v,u++):u=s+1):u=s+1,a||(a=t.src.slice(l,s)),!(h=t.env.references[r(a)]))return t.pos=p,!1;d=h.href,f=h.title}return e||(t.pos=l,t.posMax=s,t.push("link_open","a",1).attrs=n=[["href",d]],f&&n.push(["title",f]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)),t.pos=u,t.posMax=g,!0}},En79:function(t,e,n){var r=n("n8ER")();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},EqBC:function(t,e,n){"use strict";var r=n("kM2E"),i=n("FeBl"),o=n("7KvD"),a=n("t8x9"),s=n("fJUb");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},EqjI:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},EuP9:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var r=n("EKta"),i=n("ujcs"),o=n("sOR5");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=d(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=s(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(t,o+d)!==u(e,d)){h=!1;break}if(h)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,r){return $(z(e,t.length-n),t,n,r)}function _(t,e,n,r){return $(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return _(t,e,n,r)}function w(t,e,n,r){return $(V(e),t,n,r)}function S(t,e,n,r){return $(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=O));return n}(r)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return h(null,t)},l.allocUnsafeSlow=function(t){return h(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return M(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(u[h]!==c[h]){o=u[h],a=c[h];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function T(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=F(t[o]);return i}function A(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function j(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,o){return o||j(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function R(t,e,n,r,o){return o||j(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var i=e-t;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=l.isBuffer(t)?t:z(new l(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(e,n("DuR2"))},FCB1:function(t,e,n){"use strict";t.exports=function(t,e,n){var r,i,o,a,s,l,u=e+1,c=t.md.block.ruler.getRules("paragraph");for(l=t.parentType,t.parentType="paragraph";u<n&&!t.isEmpty(u);u++)if(!(t.sCount[u]-t.blkIndent>3||t.sCount[u]<0)){for(i=!1,o=0,a=c.length;o<a;o++)if(c[o](t,u,n,!0)){i=!0;break}if(i)break}return r=t.getLines(e,u,t.blkIndent,!1).trim(),t.line=u,(s=t.push("paragraph_open","p",1)).map=[e,t.line],(s=t.push("inline","",0)).content=r,s.map=[e,t.line],s.children=[],s=t.push("paragraph_close","p",-1),t.parentType=l,!0}},FeBl:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},Fg8h:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanLayout=void 0;var o=n("w9t0"),a=n("ZE1E"),s=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.workerEnabled=!1,n.gravity=10,n.speed=5,n.clustering=!1,n.clusterGravity=10,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.onLayoutEnd=function(){},n.tick=function(){},n.animate=!0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=this.nodes;if(void 0!==this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval),r&&0!==r.length){this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),this.center||(this.center=[this.width/2,this.height/2]);var i=this.center;if(1===r.length)return r[0].x=i[0],r[0].y=i[1],void(null===(e=this.onLayoutEnd)||void 0===e||e.call(this));var o={},s={};return r.forEach(function(t,e){(0,a.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,a.isNumber)(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,s[t.id]=e}),this.nodeMap=o,this.nodeIdxMap=s,this.run()}null===(t=this.onLayoutEnd)||void 0===t||t.call(this)},e.prototype.run=function(){var t,e=this,n=e.nodes;if(n){var r=e.edges,i=e.maxIteration,o=e.workerEnabled,a=e.clustering,s=e.animate,l={};if(a&&n.forEach(function(t){void 0===l[t.cluster]&&(l[t.cluster]={name:t.cluster,cx:0,cy:0,count:0})}),o||!s){for(var u=0;u<i;u++)e.runOneStep(l);null===(t=e.onLayoutEnd)||void 0===t||t.call(e)}else{if("undefined"==typeof window)return;var c=0;this.timeInterval=window.setInterval(function(){var t;e.runOneStep(l),++c>=i&&(null===(t=e.onLayoutEnd)||void 0===t||t.call(e),window.clearInterval(e.timeInterval))},0)}return{nodes:n,edges:r}}},e.prototype.runOneStep=function(t){var e,n=this.nodes;if(n){var r=this.edges,i=this.center,o=this.gravity,s=this.speed,l=this.clustering,u=this.height*this.width,c=Math.sqrt(u)/10,h=u/(n.length+1),d=Math.sqrt(h),f=[];if(n.forEach(function(t,e){f[e]={x:0,y:0}}),this.applyCalculate(n,r,f,d,h),l){for(var p in t)t[p].cx=0,t[p].cy=0,t[p].count=0;for(var p in n.forEach(function(e){var n=t[e.cluster];(0,a.isNumber)(e.x)&&(n.cx+=e.x),(0,a.isNumber)(e.y)&&(n.cy+=e.y),n.count++}),t)t[p].cx/=t[p].count,t[p].cy/=t[p].count;var g=this.clusterGravity||o;n.forEach(function(e,n){if((0,a.isNumber)(e.x)&&(0,a.isNumber)(e.y)){var r=t[e.cluster],i=Math.sqrt((e.x-r.cx)*(e.x-r.cx)+(e.y-r.cy)*(e.y-r.cy)),o=d*g;f[n].x-=o*(e.x-r.cx)/i,f[n].y-=o*(e.y-r.cy)/i}})}n.forEach(function(t,e){if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=.01*d*o;f[e].x-=n*(t.x-i[0]),f[e].y-=n*(t.y-i[1])}}),n.forEach(function(t,e){if((0,a.isNumber)(t.fx)&&(0,a.isNumber)(t.fy))return t.x=t.fx,void(t.y=t.fy);if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=Math.sqrt(f[e].x*f[e].x+f[e].y*f[e].y);if(n>0){var r=Math.min(c*(s/800),n);t.x+=f[e].x/n*r,t.y+=f[e].y/n*r}}}),null===(e=this.tick)||void 0===e||e.call(this)}},e.prototype.applyCalculate=function(t,e,n,r,i){this.calRepulsive(t,n,i),e&&this.calAttractive(e,n,r)},e.prototype.calRepulsive=function(t,e,n){t.forEach(function(r,i){e[i]={x:0,y:0},t.forEach(function(t,o){if(i!==o&&(0,a.isNumber)(r.x)&&(0,a.isNumber)(t.x)&&(0,a.isNumber)(r.y)&&(0,a.isNumber)(t.y)){var s=r.x-t.x,l=r.y-t.y,u=s*s+l*l;if(0===u){u=1;var c=i>o?1:-1;s=.01*c,l=.01*c}var h=n/u;e[i].x+=s*h,e[i].y+=l*h}})})},e.prototype.calAttractive=function(t,e,n){var r=this;t.forEach(function(t){var i=(0,a.getEdgeTerminal)(t,"source"),o=(0,a.getEdgeTerminal)(t,"target");if(i&&o){var s=r.nodeIdxMap[i],l=r.nodeIdxMap[o];if(s!==l){var u=r.nodeMap[i],c=r.nodeMap[o];if((0,a.isNumber)(c.x)&&(0,a.isNumber)(u.x)&&(0,a.isNumber)(c.y)&&(0,a.isNumber)(u.y)){var h=c.x-u.x,d=c.y-u.y,f=Math.sqrt(h*h+d*d),p=f*f/n;e[l].x-=h/f*p,e[l].y-=d/f*p,e[s].x+=h/f*p,e[s].y+=d/f*p}}}})},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){this.stop(),this.tick=null,this.nodes=null,this.edges=null,this.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(o.Base);e.FruchtermanLayout=s},FlGC:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.slack=e.longestPathWithLayer=e.longestPath=void 0;var r=function(t){var e,n={},r=function(e){var i,o,a=t.node(e);return a?n[e]?a.rank:(n[e]=!0,null===(i=t.outEdges(e))||void 0===i||i.forEach(function(e){var n=r(e.w)-t.edge(e).minlen;n&&(void 0===o||n<o)&&(o=n)}),o||(o=0),a.rank=o,o):0};null===(e=t.sources())||void 0===e||e.forEach(function(t){return r(t)})};e.longestPath=r;var i=function(t){var e,n,r={},i=function(e){var o,a,s=t.node(e);return s?r[e]?s.rank:(r[e]=!0,null===(o=t.outEdges(e))||void 0===o||o.forEach(function(e){var n=i(e.w)-t.edge(e).minlen;n&&(void 0===a||n<a)&&(a=n)}),a||(a=0),(void 0===n||a<n)&&(n=a),s.rank=a,a):0};null===(e=t.sources())||void 0===e||e.forEach(function(e){t.node(e)&&i(e)}),void 0===n&&(n=0);var o={},a=function(e,n){var r,i=t.node(e),s=isNaN(i.layer)?n:i.layer;(void 0===i.rank||i.rank<s)&&(i.rank=s),o[e]||(o[e]=!0,null===(r=t.outEdges(e))||void 0===r||r.map(function(e){a(e.w,s+t.edge(e).minlen)}))};t.nodes().forEach(function(e){var r=t.node(e);r&&(isNaN(r.layer)?r.rank-=n:a(e,r.layer))})};e.longestPathWithLayer=i;var o=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen};e.slack=o,e.default={longestPath:r,longestPathWithLayer:i,slack:o}},FtD3:function(t,e,n){"use strict";var r=n("t8qj");t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},GHBc:function(t,e,n){"use strict";var r=n("cGG2");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},GegP:function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=119)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},119:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:"#e5e9f2","stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px"}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])};r._withStripped=!0;var i={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"==typeof this.color?this.color(t):"string"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort(function(t,e){return t.percentage-e.percentage}),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map(function(t,n){return"string"==typeof t?{color:t,percentage:(n+1)*e}:t})}}},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/progress/src/progress.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},GmDp:function(t,e,n){"use strict";function r(t){var e,n,r,i,o,a,s,l,u={},c=t.length;if(c){var h=0,d=-2,f=[];for(e=0;e<c;e++)if(r=t[e],f.push(0),t[h].marker===r.marker&&d===r.token-1||(h=e),d=r.token,r.length=r.length||0,r.close){for(u.hasOwnProperty(r.marker)||(u[r.marker]=[-1,-1,-1,-1,-1,-1]),o=u[r.marker][(r.open?3:0)+r.length%3],a=n=h-f[h]-1;n>o;n-=f[n]+1)if((i=t[n]).marker===r.marker&&i.open&&i.end<0&&(s=!1,(i.close||r.open)&&(i.length+r.length)%3==0&&(i.length%3==0&&r.length%3==0||(s=!0)),!s)){l=n>0&&!t[n-1].open?f[n-1]+1:0,f[e]=e-n+l,f[n]=l,r.open=!1,i.end=e,i.close=!1,a=-1,d=-2;break}-1!==a&&(u[r.marker][(r.open?3:0)+(r.length||0)%3]=a)}}}t.exports=function(t){var e,n=t.tokens_meta,i=t.tokens_meta.length;for(r(t.delimiters),e=0;e<i;e++)n[e]&&n[e].delimiters&&r(n[e].delimiters)}},Gu7T:function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("c/Tr"),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},GybJ:function(t,e,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f=Boolean.prototype.valueOf,p=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,y=Object.getOwnPropertySymbols,b="function"==typeof Symbol?Symbol.prototype.toString:null,_=Object.prototype.propertyIsEnumerable,x=n(0).custom,w=x&&O(x)?x:null;function S(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function C(t){return String(t).replace(/"/g,""")}function k(t){return"[object Array]"===T(t)}function O(t){return"[object Symbol]"===T(t)}t.exports=function t(e,n,r,i){var s=n||{};if(E(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(E(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!E(s,"customInspect")||s.customInspect;if("boolean"!=typeof l)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(E(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,n){if(e.length>n.maxStringLength){var r=e.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return t(e.slice(0,n.maxStringLength),n)+i}var o=e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,I);return S(o,"single",n)}(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var p=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=p&&p>0&&"object"==typeof e)return k(e)?"[Array]":"[Object]";var y=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=Array(t.indent+1).join(" ")}return{base:n,prev:Array(e+1).join(n)}}(s,r);if(void 0===i)i=[];else if(A(i,e)>=0)return"[Circular]";function _(e,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:s.depth};return E(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,i)}return t(e,s,r+1,i)}if("function"==typeof e){var x=function(t){if(t.name)return t.name;var e=v.call(g.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),M=N(e,_);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(M.length>0?" { "+M.join(", ")+" }":"")}if(O(e)){var R=b.call(e);return"object"==typeof e?D(R):R}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var B="<"+String(e.nodeName).toLowerCase(),F=e.attributes||[],z=0;z<F.length;z++)B+=" "+F[z].name+"="+S(C(F[z].value),"double",s);return B+=">",e.childNodes&&e.childNodes.length&&(B+="..."),B+="</"+String(e.nodeName).toLowerCase()+">"}if(k(e)){if(0===e.length)return"[]";var V=N(e,_);return y&&!function(t){for(var e=0;e<t.length;e++)if(A(t[e],"\n")>=0)return!1;return!0}(V)?"["+j(V,y)+"]":"[ "+V.join(", ")+" ]"}if(function(t){return"[object Error]"===T(t)}(e)){var $=N(e,_);return 0===$.length?"["+String(e)+"]":"{ ["+String(e)+"] "+$.join(", ")+" }"}if("object"==typeof e&&l){if(w&&"function"==typeof e[w])return e[w]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var G=[];return a.call(e,function(t,n){G.push(_(n,e,!0)+" => "+_(t,e))}),L("Map",o.call(e),G,y)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var H=[];return c.call(e,function(t){H.push(_(t,e))}),L("Set",u.call(e),H,y)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return P("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return P("WeakSet");if(function(t){return"[object Number]"===T(t)}(e))return D(_(Number(e)));if(function(t){return"[object BigInt]"===T(t)}(e))return D(_(m.call(e)));if(function(t){return"[object Boolean]"===T(t)}(e))return D(f.call(e));if(function(t){return"[object String]"===T(t)}(e))return D(_(String(e)));if(!function(t){return"[object Date]"===T(t)}(e)&&!function(t){return"[object RegExp]"===T(t)}(e)){var W=N(e,_);return 0===W.length?"{}":y?"{"+j(W,y)+"}":"{ "+W.join(", ")+" }"}return String(e)};var M=Object.prototype.hasOwnProperty||function(t){return t in this};function E(t,e){return M.call(t,e)}function T(t){return p.call(t)}function A(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function I(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function D(t){return"Object("+t+")"}function P(t){return t+" { ? }"}function L(t,e,n,r){return t+" ("+e+") {"+(r?j(n,r):n.join(", "))+"}"}function j(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+t.join(","+n)+"\n"+e.prev}function N(t,e){var n=k(t),r=[];if(n){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=E(t,i)?e(t[i],t):""}for(var o in t)E(t,o)&&(n&&String(Number(o))===o&&o<t.length||(/[^\w$]/.test(o)?r.push(e(o,t)+": "+e(t[o],t)):r.push(o+": "+e(t[o],t))));if("function"==typeof y)for(var a=y(t),s=0;s<a.length;s++)_.call(t,a[s])&&r.push("["+e(a[s])+"]: "+e(t[a[s]],t));return r}},H7FV:function(t,e,n){"use strict";var r=n("TToO"),i=n("i6H2"),o=n("85Et"),a=n("qNZ/"),s=n("IpCj"),l=n("8ALn"),u=n("o2t7"),c=n("iaRc"),h=n("IgWN"),d=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,f=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,p=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){var e=t.match(p);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])}),Object(h.each)(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'}),n}var v=function(){function t(t){this.cfg={};var e,n,r,i,o,a,s,u=null,c=Object(h.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=d.exec(t),o=Object(h.mod)(Object(h.toRadian)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},r={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},r={x:0,y:0}):(n={x:0,y:1},r={x:1,y:0});var s=Math.tan(o),l=s*s,u=(r.x-n.x+s*(r.y-n.y))/(l+1)+n.x,c=s*(r.x-n.x+s*(r.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",u),e.setAttribute("y2",c),e.innerHTML=g(a)}(t,u=Object(l.b)("linearGradient")):(u=Object(l.b)("radialGradient"),e=t,n=u,r=f.exec(e),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),s=r[4],n.setAttribute("cx",i),n.setAttribute("cy",o),n.setAttribute("r",a),n.innerHTML=g(s)),u.setAttribute("id",c),this.el=u,this.id=c,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),m={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},y={x:"-40%",y:"-40%",width:"200%",height:"200%"},b=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(l.b)("filter");return Object(h.each)(y,function(t,n){e.setAttribute(n,t)}),this.el=e,this.id=Object(h.uniqueId)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return Object(h.each)(Object.keys(r),function(t){if(r[t]!==e[t])return n=!1,!1}),n},t.prototype.update=function(t,e){var n=this.cfg;return n[m[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}(),_=function(){function t(t,e){this.cfg={};var n=Object(l.b)("marker"),r=Object(h.uniqueId)("marker_");n.setAttribute("id",r);var i=Object(l.b)("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;Object(h.isArray)(r)&&(r=r.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),x=function(){function t(t){this.type="clip",this.cfg={};var e=Object(l.b)("clipPath");this.el=e,this.id=Object(h.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),w=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,S=function(){function t(t){this.cfg={};var e=Object(l.b)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(l.b)("image");e.appendChild(n);var r=Object(h.uniqueId)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=w.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),C=function(){function t(t){var e=Object(l.b)("defs"),n=Object(h.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new _(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new v(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new _(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new S(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new x(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),k=function(t){function e(e){return t.call(this,Object(r.__assign)(Object(r.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(r.__extends)(e,t),e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.a},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.a[r.tagName]){for(var i=r.parentNode;i&&!o.a[i.tagName];)i=i.parentNode;r=i}return this.find(function(t){return t.get("el")===r})},e.prototype.createDom=function(){var t=Object(l.b)("svg"),e=new C(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&Object(l.d)(this,function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0})}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?Object(s.c)(this):"clip"===t?Object(s.a)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Object(s.a)(this,t),e.length&&Object(a.a)(t,e)},e}(i.AbstractCanvas);e.a=k},H8dH:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout(function(){o()},n+100)}},HJMx:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=76)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},11:function(t,e){t.exports=n("aW5l")},21:function(t,e){t.exports=n("E/in")},4:function(t,e){t.exports=n("fPll")},76:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(11),s=n.n(a),l=void 0,u="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;l||(l=document.createElement("textarea"),document.body.appendChild(l));var r=function(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:c.map(function(t){return t+":"+e.getPropertyValue(t)}).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;l.setAttribute("style",s+";"+u),l.value=t.value||t.placeholder||"";var h=l.scrollHeight,d={};"border-box"===a?h+=o:"content-box"===a&&(h-=i),l.value="";var f=l.scrollHeight-i;if(null!==e){var p=f*e;"border-box"===a&&(p=p+i+o),h=Math.max(p,h),d.minHeight=p+"px"}if(null!==n){var g=f*n;"border-box"===a&&(g=g+i+o),h=Math.min(g,h)}return d.height=h+"px",l.parentNode&&l.parentNode.removeChild(l),l=null,d}var d=n(9),f=n.n(d),p=n(21),g={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return f()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick(function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=h(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:h(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(t){var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(p.isKorean)(n)},handleCompositionEnd:function(t){this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"}[t];this.$slots[i]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+i).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){this.passwordVisible=!this.passwordVisible,this.focus()},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},v=n(0),m=Object(v.a)(g,r,[],!1,null,null,null);m.options.__file="packages/input/src/input.vue";var y=m.exports;y.install=function(t){t.component(y.name,y)};e.default=y},9:function(t,e){t.exports=n("jmaC")}})},HVvo:function(t,e,n){"use strict";function r(t,e){var n,r,i,o,a,s=[],l=e.length;for(n=0;n<l;n++)126===(i=e[n]).marker&&-1!==i.end&&(o=e[i.end],(a=t.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=t.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===t.tokens[o.token-1].type&&"~"===t.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<t.tokens.length&&"s_close"===t.tokens[r].type;)r++;n!==--r&&(a=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=a)}}t.exports.tokenize=function(t,e){var n,r,i,o,a=t.pos,s=t.src.charCodeAt(a);if(e)return!1;if(126!==s)return!1;if(i=(r=t.scanDelims(t.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(t.push("text","",0).content=o,i--),n=0;n<i;n+=2)t.push("text","",0).content=o+o,t.delimiters.push({marker:s,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},t.exports.postProcess=function(t){var e,n=t.tokens_meta,i=t.tokens_meta.length;for(r(t,t.delimiters),e=0;e<i;e++)n[e]&&n[e].delimiters&&r(t,n[e].delimiters)}},HpRW:function(t,e,n){"use strict";var r=n("kM2E"),i=n("lOnJ"),o=n("+ZMJ"),a=n("NWt+");t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,s,l=arguments[1];return i(this),(e=void 0!==l)&&i(l),void 0==t?new this:(n=[],e?(r=0,s=o(l,arguments[2],2),a(t,!1,function(t){n.push(s(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},Hvbp:function(t,e,n){"use strict";function r(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}t.exports=function(t,e){for(var n=t.pos;n<t.posMax&&!r(t.src.charCodeAt(n));)n++;return n!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}},HxqY:function(t,e,n){"use strict";t.exports.encode=n("TilA"),t.exports.decode=n("zW4X"),t.exports.format=n("K8D5"),t.exports.parse=n("Jv26")},HzcN:function(t,e,n){var r=n("uY1a"),i=n("ON3O");t.exports={throttle:r,debounce:i}},"I/+Z":function(t,e){t.exports=function(t,e){var n,r=null;try{n=JSON.parse(t,e)}catch(t){r=t}return[r,n]}},IJ9V:function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DistanceType=void 0,e.DistanceType=r,function(t){t.EuclideanDistance="euclideanDistance"}(r||(e.DistanceType=r={}))},ISYW:function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("7+uW"),o=(r=i)&&r.__esModule?r:{default:r},a=n("2kvA");var s=[],l="@@clickoutsideContext",u=void 0,c=0;function h(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||t.contains(r.target)||t.contains(i.target)||t===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(e.expression&&t[l].methodName&&n.context[t[l].methodName]?n.context[t[l].methodName]():t[l].bindingFn&&t[l].bindingFn())}}!o.default.prototype.$isServer&&(0,a.on)(document,"mousedown",function(t){return u=t}),!o.default.prototype.$isServer&&(0,a.on)(document,"mouseup",function(t){s.forEach(function(e){return e[l].documentHandler(t,u)})}),e.default={bind:function(t,e,n){s.push(t);var r=c++;t[l]={id:r,documentHandler:h(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[l].documentHandler=h(t,e,n),t[l].methodName=e.expression,t[l].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n<e;n++)if(s[n][l].id===t[l].id){s.splice(n,1);break}delete t[l]}}},Ibhu:function(t,e,n){var r=n("D2L2"),i=n("TcQ7"),o=n("vFc/")(!1),a=n("ax3d")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},IgWN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n},a=function(t,e){return void 0===e&&(e=[]),o(t,function(t){return!i(e,t)})},s={}.toString,l=function(t,e){return s.call(t)==="[object "+e+"]"},u=function(t){return l(t,"Function")},c=function(t){return null===t||void 0===t},h=function(t){return Array.isArray?Array.isArray(t):l(t,"Array")},d=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};var f=function(t,e){if(t)if(h(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(d(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break},p=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return f(t,function(n,r){u(t)&&"prototype"===r||e.push(r)}),e};var g=function(t,e){var n=p(e),r=n.length;if(c(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0},v=function(t){return"object"==typeof t&&null!==t},m=function(t){if(!v(t)||!l(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};var y=function(t,e){if(!h(t))return null;var n;if(u(e)&&(n=e),m(e)&&(n=function(t){return g(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null};var b=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1},_=function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r][e];if(!c(i)){n=h(i)?i[0]:i;break}}return n},x=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},w=function(t,e){if(void 0===e&&(e=[]),h(t))for(var n=0;n<t.length;n+=1)w(t[n],e);else e.push(t);return e},S=w,C=function(t){if(h(t))return t.reduce(function(t,e){return Math.max(t,e)},t[0])},k=function(t){if(h(t))return t.reduce(function(t,e){return Math.min(t,e)},t[0])},O=function(t){var e=t.filter(function(t){return!isNaN(t)});if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=C(e);return{min:k(e),max:i}},M=Array.prototype,E=M.splice,T=M.indexOf,A=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var i=e[r],o=-1;(o=T.call(t,i))>-1;)E.call(t,o,1);return t},I=Array.prototype.splice,D=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,I.call(t,a,1))}return t},P=function(t,e,n){if(!h(t)&&!m(t))return t;var r=n;return f(t,function(t,n){r=e(r,t,n)}),r},L=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++i<a;){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return D(t,o),n},j=function(t){return l(t,"String")};var N=function(t,e){var n;if(u(e))n=function(t,n){return e(t)-e(n)};else{var r=[];j(e)?r.push(e):h(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t};function R(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var B=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return R([].concat.apply([],t))},F=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];if(!c(o)){h(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];r[s]||(n.push(s),r[s]=!0)}}}return n};function z(t){if(r(t))return t[0]}function V(t){if(r(t)){return t[t.length-1]}}var $=function(t,e){return!(!h(t)&&!j(t))&&t[0]===e};var G=function(t,e){return!(!h(t)&&!j(t))&&t[t.length-1]===e},H=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},W=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},U=Object.prototype.hasOwnProperty;var Y=function(t,e){if(!e||!h(t))return{};for(var n,r={},i=u(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),U.call(r,n)?r[n].push(a):r[n]=[a]}return r};function X(t,e){if(!e)return{0:t};if(!u(e)){var n=h(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return Y(t,e)}var q=function(t,e){if(!e)return[t];var n=X(t,e),r=[];for(var i in n)r.push(n[i]);return r};var Z=function(t,e){return t["_wrap_"+e]};var K=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},J={};var Q=function(t){var e=J[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,J[t]=e}return e};var tt=function(t){var e=0,n=0,r=0,i=0;return h(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}},et=function(t,e,n){return t<e?e:t>n?n:t},nt=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},rt=function(t){return l(t,"Number")},it=function(t){return rt(t)&&t%1!=0},ot=function(t){return rt(t)&&t%2==0},at=Number.isInteger?Number.isInteger:function(t){return rt(t)&&t%1==0},st=function(t){return rt(t)&&t<0},lt=1e-5;function ut(t,e,n){return void 0===n&&(n=lt),Math.abs(t-e)<n}var ct=function(t){return rt(t)&&t%2!=0},ht=function(t){return rt(t)&&t>0},dt=function(t,e){if(h(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=u(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},ft=function(t,e){if(h(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=u(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},pt=function(t,e){return(t%e+e)%e},gt=180/Math.PI,vt=function(t){return gt*t},mt=parseInt,yt=Math.PI/180,bt=function(t){return yt*t},_t=f,xt=function(t,e){return t.hasOwnProperty(e)},wt=xt,St=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return f(t,function(n,r){u(t)&&"prototype"===r||e.push(n)}),e},Ct=function(t,e){return i(St(t),e)},kt=function(t){return c(t)?"":t.toString()},Ot=function(t){return kt(t).toLowerCase()},Mt=function(t){var e=kt(t);return e.charAt(0).toLowerCase()+e.substring(1)};var Et=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t},Tt=function(t){return kt(t).toUpperCase()},At=function(t){var e=kt(t);return e.charAt(0).toUpperCase()+e.substring(1)},It={}.toString,Dt=function(t){return It.call(t).replace(/^\[object /,"").replace(/]$/,"")},Pt=function(t){return l(t,"Arguments")},Lt=function(t){return l(t,"Boolean")},jt=function(t){return l(t,"Date")},Nt=function(t){return l(t,"Error")},Rt=function(t){return rt(t)&&isFinite(t)},Bt=function(t){return null===t},Ft=Object.prototype,zt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ft)},Vt=function(t){return l(t,"RegExp")},$t=function(t){return void 0===t},Gt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Ht(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Wt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Ut(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Yt(t,e,n,r){return e&&Ut(t,e),n&&Ut(t,n),r&&Ut(t,r),t}var Xt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var i=t[r];u(i)&&(i=i.prototype),Yt(n.prototype,i)}},qt=function(t){if("object"!=typeof t||null===t)return t;var e;if(h(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=qt(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=qt(t[i]):e[i]=t[i];return e},Zt=qt;var Kt=function(t,e,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,o)},e),a&&t.apply(i,o)}},Jt=function(t,e){if(!u(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n},Qt=5;function te(t,e,n,r){for(var i in n=n||0,r=r||Qt,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&m(o)?(m(t[i])||(t[i]={}),n<r?te(t[i],o,n+1,r):t[i]=e[i]):h(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var ee=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)te(t,e[r]);return t},ne=function(t,e,n,r){u(e)||(n=e,e=t,t=function(){});var i=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},o=i(e.prototype,t);return t.prototype=Yt(o,t.prototype),t.superclass=i(e.prototype,e),Yt(o,n),Yt(t,r),t},re=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i},ie=Object.prototype.hasOwnProperty;var oe=function(t){if(c(t))return!0;if(r(t))return!t.length;var e=Dt(t);if("Map"===e||"Set"===e)return!t.size;if(zt(t))return!Object.keys(t).length;for(var n in t)if(ie.call(t,n))return!1;return!0},ae=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(j(t)||j(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length&&(n=ae(t[i],e[i]));i++);return n}if(v(t)||v(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,i=0;i<o.length&&(n=ae(t[o[i]],e[o[i]]));i++);return n}return!1},se=ae,le=function(t,e,n){return u(n)?!!n(t,e):se(t,e)},ue=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n},ce=function(t){return t},he=function(t,e){void 0===e&&(e=ce);var n={};return d(t)&&!c(t)&&Object.keys(t).forEach(function(r){n[r]=e(t[r],r)}),n},de=function(t,e,n){for(var r=0,i=j(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},fe=function(t,e,n){var r=t,i=j(e)?e.split("."):e;return i.forEach(function(t,e){e<i.length-1?(d(r[t])||(r[t]=rt(i[e+1])?[]:{}),r=r[t]):r[t]=n}),t},pe=Object.prototype.hasOwnProperty,ge=function(t,e){if(null===t||!m(t))return{};var n={};return f(e,function(e){pe.call(t,e)&&(n[e]=t[e])}),n},ve=function(t,e){return P(t,function(t,n,r){return e.includes(r)||(t[r]=n),t},{})},me=function(t,e,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u},ye=function(t){return r(t)?Array.prototype.slice.call(t):[]},be={},_e=function(t){return be[t=t||"g"]?be[t]+=1:be[t]=1,t+be[t]},xe=function(){},we=function(t){return t};function Se(t){return c(t)?0:r(t)?t.length:Object.keys(t).length}var Ce,ke=n("TToO"),Oe=Jt(function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Ce||(Ce=document.createElement("canvas").getContext("2d")),Ce.font=[o,a,i,n+"px",r].join(" "),Ce.measureText(j(t)?t:"").width},function(t,e){return void 0===e&&(e={}),Object(ke.__spreadArrays)([t],St(e)).join("")}),Me=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Oe(r,n),s=j(t)?t:kt(t),l=e,u=[];if(Oe(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Oe(i,n))+a>l&&o>l);)if(u.push(i),l-=o,!(s=s.substr(16)))return u.join("");for(;i=s.substr(0,1),!((o=Oe(i,n))+a>l);)if(u.push(i),l-=o,!(s=s.substr(1)))return u.join("");return""+u.join("")+r},Ee=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();n.d(e,"contains",function(){return i}),n.d(e,"includes",function(){return i}),n.d(e,"difference",function(){return a}),n.d(e,"find",function(){return y}),n.d(e,"findIndex",function(){return b}),n.d(e,"firstValue",function(){return _}),n.d(e,"flatten",function(){return x}),n.d(e,"flattenDeep",function(){return S}),n.d(e,"getRange",function(){return O}),n.d(e,"pull",function(){return A}),n.d(e,"pullAt",function(){return D}),n.d(e,"reduce",function(){return P}),n.d(e,"remove",function(){return L}),n.d(e,"sortBy",function(){return N}),n.d(e,"union",function(){return B}),n.d(e,"uniq",function(){return R}),n.d(e,"valuesOfKey",function(){return F}),n.d(e,"head",function(){return z}),n.d(e,"last",function(){return V}),n.d(e,"startsWith",function(){return $}),n.d(e,"endsWith",function(){return G}),n.d(e,"filter",function(){return o}),n.d(e,"every",function(){return H}),n.d(e,"some",function(){return W}),n.d(e,"group",function(){return q}),n.d(e,"groupBy",function(){return Y}),n.d(e,"groupToMap",function(){return X}),n.d(e,"getWrapBehavior",function(){return Z}),n.d(e,"wrapBehavior",function(){return K}),n.d(e,"number2color",function(){return Q}),n.d(e,"parseRadius",function(){return tt}),n.d(e,"clamp",function(){return et}),n.d(e,"fixedBase",function(){return nt}),n.d(e,"isDecimal",function(){return it}),n.d(e,"isEven",function(){return ot}),n.d(e,"isInteger",function(){return at}),n.d(e,"isNegative",function(){return st}),n.d(e,"isNumberEqual",function(){return ut}),n.d(e,"isOdd",function(){return ct}),n.d(e,"isPositive",function(){return ht}),n.d(e,"max",function(){return C}),n.d(e,"maxBy",function(){return dt}),n.d(e,"min",function(){return k}),n.d(e,"minBy",function(){return ft}),n.d(e,"mod",function(){return pt}),n.d(e,"toDegree",function(){return vt}),n.d(e,"toInteger",function(){return mt}),n.d(e,"toRadian",function(){return bt}),n.d(e,"forIn",function(){return _t}),n.d(e,"has",function(){return xt}),n.d(e,"hasKey",function(){return wt}),n.d(e,"hasValue",function(){return Ct}),n.d(e,"keys",function(){return p}),n.d(e,"isMatch",function(){return g}),n.d(e,"values",function(){return St}),n.d(e,"lowerCase",function(){return Ot}),n.d(e,"lowerFirst",function(){return Mt}),n.d(e,"substitute",function(){return Et}),n.d(e,"upperCase",function(){return Tt}),n.d(e,"upperFirst",function(){return At}),n.d(e,"getType",function(){return Dt}),n.d(e,"isArguments",function(){return Pt}),n.d(e,"isArray",function(){return h}),n.d(e,"isArrayLike",function(){return r}),n.d(e,"isBoolean",function(){return Lt}),n.d(e,"isDate",function(){return jt}),n.d(e,"isError",function(){return Nt}),n.d(e,"isFunction",function(){return u}),n.d(e,"isFinite",function(){return Rt}),n.d(e,"isNil",function(){return c}),n.d(e,"isNull",function(){return Bt}),n.d(e,"isNumber",function(){return rt}),n.d(e,"isObject",function(){return d}),n.d(e,"isObjectLike",function(){return v}),n.d(e,"isPlainObject",function(){return m}),n.d(e,"isPrototype",function(){return zt}),n.d(e,"isRegExp",function(){return Vt}),n.d(e,"isString",function(){return j}),n.d(e,"isType",function(){return l}),n.d(e,"isUndefined",function(){return $t}),n.d(e,"isElement",function(){return Gt}),n.d(e,"requestAnimationFrame",function(){return Ht}),n.d(e,"clearAnimationFrame",function(){return Wt}),n.d(e,"augment",function(){return Xt}),n.d(e,"clone",function(){return Zt}),n.d(e,"debounce",function(){return Kt}),n.d(e,"memoize",function(){return Jt}),n.d(e,"deepMix",function(){return ee}),n.d(e,"each",function(){return f}),n.d(e,"extend",function(){return ne}),n.d(e,"indexOf",function(){return re}),n.d(e,"isEmpty",function(){return oe}),n.d(e,"isEqual",function(){return se}),n.d(e,"isEqualWith",function(){return le}),n.d(e,"map",function(){return ue}),n.d(e,"mapValues",function(){return he}),n.d(e,"mix",function(){return Yt}),n.d(e,"assign",function(){return Yt}),n.d(e,"get",function(){return de}),n.d(e,"set",function(){return fe}),n.d(e,"pick",function(){return ge}),n.d(e,"omit",function(){return ve}),n.d(e,"throttle",function(){return me}),n.d(e,"toArray",function(){return ye}),n.d(e,"toString",function(){return kt}),n.d(e,"uniqueId",function(){return _e}),n.d(e,"noop",function(){return xe}),n.d(e,"identity",function(){return we}),n.d(e,"size",function(){return Se}),n.d(e,"measureTextWidth",function(){return Oe}),n.d(e,"getEllipsisText",function(){return Me}),n.d(e,"Cache",function(){return Ee})},IinW:function(t,e,n){
- /*!
- * Viewer.js v1.10.5
- * https://fengyuanchen.github.io/viewerjs
- *
- * Copyright 2015-present Chen Fengyuan
- * Released under the MIT license
- *
- * Date: 2022-04-05T08:21:02.491Z
- */
- var r;r=function(){"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},a="undefined"!=typeof window&&void 0!==window.document,s=a?window:{},l=!(!a||!s.document.documentElement)&&"ontouchstart"in s.document.documentElement,u=!!a&&"PointerEvent"in s,c="".concat("viewer","-active"),h="".concat("viewer","-close"),d="".concat("viewer","-fade"),f="".concat("viewer","-fixed"),p="".concat("viewer","-fullscreen"),g="".concat("viewer","-fullscreen-exit"),v="".concat("viewer","-hide"),m="".concat("viewer","-hide-md-down"),y="".concat("viewer","-hide-sm-down"),b="".concat("viewer","-hide-xs-down"),_="".concat("viewer","-in"),x="".concat("viewer","-invisible"),w="".concat("viewer","-loading"),S="".concat("viewer","-move"),C="".concat("viewer","-open"),k="".concat("viewer","-show"),O="".concat("viewer","-transition"),M=u?"pointerdown":l?"touchstart":"mousedown",E=u?"pointermove":l?"touchmove":"mousemove",T=u?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",A="".concat("viewer","Action"),I=/\s\s*/,D=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function P(t){return"string"==typeof t}var L=Number.isNaN||s.isNaN;function j(t){return"number"==typeof t&&!L(t)}function N(t){return void 0===t}function R(t){return"object"===n(t)&&null!==t}var B=Object.prototype.hasOwnProperty;function F(t){if(!R(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&B.call(n,"isPrototypeOf")}catch(t){return!1}}function z(t){return"function"==typeof t}function V(t,e){if(t&&z(e))if(Array.isArray(t)||j(t.length)){var n,r=t.length;for(n=0;n<r&&!1!==e.call(t,t[n],n,t);n+=1);}else R(t)&&Object.keys(t).forEach(function(n){e.call(t,t[n],n,t)});return t}var $=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return R(t)&&n.length>0&&n.forEach(function(e){R(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},G=/^(?:width|height|left|top|marginLeft|marginTop)$/;function H(t,e){var n=t.style;V(e,function(t,e){G.test(e)&&j(t)&&(t+="px"),n[e]=t})}function W(t,e){return!(!t||!e)&&(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)}function U(t,e){if(t&&e)if(j(t.length))V(t,function(t){U(t,e)});else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function Y(t,e){t&&e&&(j(t.length)?V(t,function(t){Y(t,e)}):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function X(t,e,n){e&&(j(t.length)?V(t,function(t){X(t,e,n)}):n?U(t,e):Y(t,e))}var q=/([a-z\d])([A-Z])/g;function Z(t){return t.replace(q,"$1-$2").toLowerCase()}function K(t,e){return R(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Z(e)))}function J(t,e,n){R(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Z(e)),n)}var Q=function(){var t=!1;if(a){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});s.addEventListener("test",n,r),s.removeEventListener("test",n,r)}return t}();function tt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(I).forEach(function(e){if(!Q){var o=t.listeners;o&&o[e]&&o[e][n]&&(i=o[e][n],delete o[e][n],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,i,r)})}function et(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(I).forEach(function(e){if(r.once&&!Q){var o=t.listeners,a=void 0===o?{}:o;i=function(){delete a[e][n],t.removeEventListener(e,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(t,s)},a[e]||(a[e]={}),a[e][n]&&t.removeEventListener(e,a[e][n],r),a[e][n]=i,t.listeners=a}t.addEventListener(e,i,r)})}function nt(t,n,r,i){var o;return z(Event)&&z(CustomEvent)?o=new CustomEvent(n,e({bubbles:!0,cancelable:!0,detail:r},i)):(o=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,r),t.dispatchEvent(o)}function rt(t){var e=t.rotate,n=t.scaleX,r=t.scaleY,i=t.translateX,o=t.translateY,a=[];j(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),j(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),j(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),j(n)&&1!==n&&a.push("scaleX(".concat(n,")")),j(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var it=s.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(s.navigator.userAgent);function ot(t,e,n){var r=document.createElement("img");if(t.naturalWidth&&!it)return n(t.naturalWidth,t.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),it||i.removeChild(r)},V(e.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&r.setAttribute(e,n)}),r.src=t.src,it||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(r)),r}function at(t){switch(t){case 2:return b;case 3:return y;case 4:return m;default:return""}}function st(t,n){var r=t.pageX,i=t.pageY,o={endX:r,endY:i};return n?o:e({timeStamp:Date.now(),startX:r,startY:i},o)}var lt,ut={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,e=t.body||t.documentElement;this.body=e,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=e.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(e).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t,e=this.options,n=this.parent;e.inline&&(t={width:Math.max(n.offsetWidth,e.minWidth),height:Math.max(n.offsetHeight,e.minHeight)},this.parentData=t),!this.fulled&&t||(t=this.containerData),this.viewerData=$({},t)},renderViewer:function(){this.options.inline&&!this.fulled&&H(this.viewer,this.viewerData)},initList:function(){var t=this,e=this.element,n=this.options,r=this.list,i=[];r.innerHTML="",V(this.images,function(e,o){var a=e.src,s=e.alt||function(t){return P(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(a),l=t.getImageURL(e);if(a||l){var u=document.createElement("li"),c=document.createElement("img");V(n.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&c.setAttribute(t,n)}),c.src=a||l,c.alt=s,c.setAttribute("data-original-url",l||a),u.setAttribute("data-index",o),u.setAttribute("data-viewer-action","view"),u.setAttribute("role","button"),n.keyboard&&u.setAttribute("tabindex",0),u.appendChild(c),r.appendChild(u),i.push(u)}}),this.items=i,V(i,function(e){var r,i,o=e.firstElementChild;J(o,"filled",!0),n.loading&&U(e,w),et(o,"load",r=function(r){tt(o,"error",i),n.loading&&Y(e,w),t.loadImage(r)},{once:!0}),et(o,"error",i=function(){tt(o,"load",r),n.loading&&Y(e,w)},{once:!0})}),n.transition&&et(e,"viewed",function(){U(r,O)},{once:!0})},renderList:function(){var t=this.index,e=this.items[t];if(e){var n=e.nextElementSibling,r=parseInt(window.getComputedStyle(n||e).marginLeft,10),i=e.offsetWidth,o=i+r;H(this.list,$({width:o*this.length-r},rt({translateX:(this.viewerData.width-i)/2-o*t})))}},resetList:function(){var t=this.list;t.innerHTML="",Y(t,O),H(t,rt({translateX:0}))},initImage:function(t){var e,n=this,r=this.options,i=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-a,a),u=this.imageData||{};this.imageInitializing={abort:function(){e.onload=null}},e=ot(i,r,function(e,i){var o=e/i,a=s,c=l;n.imageInitializing=!1,l*o>s?c=s/o:a=l*o,a=Math.min(.9*a,e),c=Math.min(.9*c,i);var h=(s-a)/2,d=(l-c)/2,f={left:h,top:d,x:h,y:d,width:a,height:c,oldRatio:1,ratio:a/e,aspectRatio:o,naturalWidth:e,naturalHeight:i},p=$({},f);r.rotatable&&(f.rotate=u.rotate||0,p.rotate=0),r.scalable&&(f.scaleX=u.scaleX||1,f.scaleY=u.scaleY||1,p.scaleX=1,p.scaleY=1),n.imageData=f,n.initialImageData=p,t&&t()})},renderImage:function(t){var e=this,n=this.image,r=this.imageData;if(H(n,$({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},rt(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&W(n,O)){var i=function(){e.imageRendering=!1,t()};this.imageRendering={abort:function(){tt(n,"transitionend",i)}},et(n,"transitionend",i,{once:!0})}else t()},resetImage:function(){if(this.viewing||this.viewed){var t=this.image;this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null}}},ct={bind:function(){var t=this.options,e=this.viewer,n=this.canvas,r=this.element.ownerDocument;et(e,"click",this.onClick=this.click.bind(this)),et(e,"dragstart",this.onDragStart=this.dragstart.bind(this)),et(n,M,this.onPointerDown=this.pointerdown.bind(this)),et(r,E,this.onPointerMove=this.pointermove.bind(this)),et(r,T,this.onPointerUp=this.pointerup.bind(this)),et(r,"keydown",this.onKeyDown=this.keydown.bind(this)),et(window,"resize",this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&et(e,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&et(n,"dblclick",this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,e=this.viewer,n=this.canvas,r=this.element.ownerDocument;tt(e,"click",this.onClick),tt(e,"dragstart",this.onDragStart),tt(n,M,this.onPointerDown),tt(r,E,this.onPointerMove),tt(r,T,this.onPointerUp),tt(r,"keydown",this.onKeyDown),tt(window,"resize",this.onResize),t.zoomable&&t.zoomOnWheel&&tt(e,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&tt(n,"dblclick",this.onDblclick)}},ht={click:function(t){var e=this.options,n=this.imageData,r=t.target,i=K(r,A);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(i=K(r=r.parentElement,A)),l&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():e.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(K(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(e.loop);break;case"play":this.play(e.fullscreen);break;case"next":this.next(e.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(l&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var e=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;Y(r,x),n.loading&&Y(this.canvas,w),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){X(r,S,n.movable),X(r,O,n.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,z(n.viewed)&&et(e,"viewed",n.viewed,{once:!0}),nt(e,"viewed",{originalImage:t.images[i],index:i,image:r},{cancelable:!1})})})},loadImage:function(t){var e=t.target,n=e.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!K(e,"filled");ot(e,this.options,function(t,n){var a=t/n,s=r,l=i;i*a>r?o?s=i*a:l=r/a:o?l=r/a:s=i*a,H(e,$({width:s,height:l},rt({translateX:(r-s)/2,translateY:(i-l)/2})))})},keydown:function(t){var e=this.options;if(e.keyboard){var n=t.keyCode||t.which||t.charCode;switch(n){case 13:this.viewer.contains(t.target)&&this.click(t)}if(this.fulled)switch(n){case 27:this.played?this.stop():e.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(e.loop);break;case 38:t.preventDefault(),this.zoom(e.zoomRatio,!0);break;case 39:this.next(e.loop);break;case 40:t.preventDefault(),this.zoom(-e.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle())}}},dragstart:function(t){"img"===t.target.localName&&t.preventDefault()},pointerdown:function(t){var e=this.options,n=this.pointers,r=t.buttons,i=t.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(j(r)&&1!==r||j(i)&&0!==i||t.ctrlKey))){t.preventDefault(),t.changedTouches?V(t.changedTouches,function(t){n[t.identifier]=st(t)}):n[t.pointerId||0]=st(t);var o=!!e.movable&&"move";e.zoomOnTouch&&e.zoomable&&Object.keys(n).length>1?o="zoom":e.slideOnTouch&&("touch"===t.pointerType||"touchstart"===t.type)&&this.isSwitchable()&&(o="switch"),!e.transition||"move"!==o&&"zoom"!==o||Y(this.image,O),this.action=o}},pointermove:function(t){var e=this.pointers,n=this.action;this.viewed&&n&&(t.preventDefault(),t.changedTouches?V(t.changedTouches,function(t){$(e[t.identifier]||{},st(t,!0))}):$(e[t.pointerId||0]||{},st(t,!0)),this.change(t))},pointerup:function(t){var e,n=this,r=this.options,i=this.action,o=this.pointers;t.changedTouches?V(t.changedTouches,function(t){e=o[t.identifier],delete o[t.identifier]}):(e=o[t.pointerId||0],delete o[t.pointerId||0]),i&&(t.preventDefault(),!r.transition||"move"!==i&&"zoom"!==i||U(this.image,O),this.action=!1,l&&"zoom"!==i&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){nt(n.image,"dblclick",{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){nt(n.canvas,"click",{originalEvent:t})},50)))))},resize:function(){var t=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();V(this.player.getElementsByTagName("img"),function(e){et(e,"load",t.loadImage.bind(t),{once:!0}),nt(e,"load")})}},wheel:function(t){var e=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,r=1;t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,!0,t)}}},dt={show:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(z(n.show)&&et(e,"show",n.show,{once:!0}),!1===nt(e,"show")||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(Y(r,v),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!t){var i=this.shown.bind(this);this.transitioning={abort:function(){tt(r,"transitionend",i),Y(r,_)}},U(r,O),r.initialOffsetWidth=r.offsetWidth,et(r,"transitionend",i,{once:!0}),U(r,_)}else U(r,_),this.shown();return this},hide:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;if(z(r.hide)&&et(n,"hide",r.hide,{once:!0}),!1===nt(n,"hide"))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,o=this.image,a=function(){Y(i,_),t.hidden()};if(r.transition&&!e){var s=function e(n){n&&n.target===i&&(tt(i,"transitionend",e),t.hidden())},l=function(){W(i,O)?(et(i,"transitionend",s),Y(i,_)):a()};this.transitioning={abort:function(){t.viewed&&W(o,O)?tt(o,"transitionend",l):W(i,O)&&tt(i,"transitionend",s)}},this.viewed&&W(o,O)?(et(o,"transitionend",l,{once:!0}),this.zoomTo(0,!1,null,!0)):l()}else a();return this},view:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(e=Number(e)||0,this.hiding||this.played||e<0||e>=this.length||this.viewed&&e===this.index)return this;if(!this.isShown)return this.index=e,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,o=this.canvas,a=this.items[e],s=a.querySelector("img"),l=K(s,"originalUrl"),u=s.getAttribute("alt"),h=document.createElement("img");if(V(r.inheritedAttributes,function(t){var e=s.getAttribute(t);null!==e&&h.setAttribute(t,e)}),h.src=l,h.alt=u,z(r.view)&&et(n,"view",r.view,{once:!0}),!1===nt(n,"view",{originalImage:this.images[e],index:e,image:h})||!this.isShown||this.hiding||this.played)return this;var d=this.items[this.index];d&&(Y(d,c),d.removeAttribute("aria-selected")),U(a,c),a.setAttribute("aria-selected",!0),r.focus&&a.focus(),this.image=h,this.viewed=!1,this.index=e,this.imageData={},U(h,x),r.loading&&U(o,w),o.innerHTML="",o.appendChild(h),this.renderList(),i.innerHTML="";var f,p,g=function(){var e,n=t.imageData,o=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=P(e=z(o)?o.call(t,h,n):"".concat(u," (").concat(n.naturalWidth," × ").concat(n.naturalHeight,")"))?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e};return et(n,"viewed",g,{once:!0}),this.viewing={abort:function(){tt(n,"viewed",g),h.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(h.src="",tt(h,"load",f),t.timeout&&clearTimeout(t.timeout))}},h.complete?this.load():(et(h,"load",f=function(){tt(h,"error",p),t.load()},{once:!0}),et(h,"error",p=function(){tt(h,"load",f),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),Y(h,x),r.loading&&Y(t.canvas,w)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){Y(h,x),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.index-1;return e<0&&(e=t?this.length-1:0),this.view(e),this},next:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.length-1,n=this.index+1;return n>e&&(n=t?0:e),this.view(n),this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData;return this.moveTo(N(t)?t:n.x+Number(t),N(e)?e:n.y+Number(e)),this},moveTo:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,l=a.y,u=!1;if(j(t)?u=!0:t=s,j(n)?u=!0:n=l,u){if(z(o.move)&&et(i,"move",o.move,{once:!0}),!1===nt(i,"move",{x:t,y:n,oldX:s,oldY:l,originalEvent:r}))return this;a.x=t,a.y=n,a.left=t,a.top=n,this.moving=!0,this.renderImage(function(){e.moving=!1,z(o.moved)&&et(i,"moved",o.moved,{once:!0}),nt(i,"moved",{x:t,y:n,oldX:s,oldY:l,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var e=this,n=this.element,r=this.options,i=this.imageData;if(j(t=Number(t))&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate;if(z(r.rotate)&&et(n,"rotate",r.rotate,{once:!0}),!1===nt(n,"rotate",{degree:t,oldDegree:o}))return this;i.rotate=t,this.rotating=!0,this.renderImage(function(){e.rotating=!1,z(r.rotated)&&et(n,"rotated",r.rotated,{once:!0}),nt(n,"rotated",{degree:t,oldDegree:o},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=this.element,i=this.options,o=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(j(t)?l=!0:t=a,j(n)?l=!0:n=s,l){if(z(i.scale)&&et(r,"scale",i.scale,{once:!0}),!1===nt(r,"scale",{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=t,o.scaleY=n,this.scaling=!0,this.renderImage(function(){e.scaling=!1,z(i.scaled)&&et(r,"scaled",i.scaled,{once:!0}),nt(r,"scaled",{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.imageData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(r.width*t/r.naturalWidth,e,n),this},zoomTo:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.element,a=this.options,s=this.pointers,l=this.imageData,u=l.x,c=l.y,h=l.width,d=l.height,f=l.naturalWidth,p=l.naturalHeight;if(j(t=Math.max(0,t))&&this.viewed&&!this.played&&(i||a.zoomable)){if(!i){var g=Math.max(.01,a.minZoomRatio),v=Math.min(100,a.maxZoomRatio);t=Math.min(Math.max(t,g),v)}if(r)switch(r.type){case"wheel":a.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1)}var m=f*t,y=p*t,b=m-h,_=y-d,x=l.ratio;if(z(a.zoom)&&et(o,"zoom",a.zoom,{once:!0}),!1===nt(o,"zoom",{ratio:t,oldRatio:x,originalEvent:r}))return this;if(this.zooming=!0,r){var w=function(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),S=s&&Object.keys(s).length>0?function(t){var e=0,n=0,r=0;return V(t,function(t){var i=t.startX,o=t.startY;e+=i,n+=o,r+=1}),{pageX:e/=r,pageY:n/=r}}(s):{pageX:r.pageX,pageY:r.pageY};l.x-=b*((S.pageX-w.left-u)/h),l.y-=_*((S.pageY-w.top-c)/d)}else l.x-=b/2,l.y-=_/2;l.left=l.x,l.top=l.y,l.width=m,l.height=y,l.oldRatio=x,l.ratio=t,this.renderImage(function(){e.zooming=!1,z(a.zoomed)&&et(o,"zoomed",a.zoomed,{once:!0}),nt(o,"zoomed",{ratio:t,oldRatio:x,originalEvent:r},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(z(r.play)&&et(n,"play",r.play,{once:!0}),!1===nt(n,"play"))return this;var i=this.player,o=this.loadImage.bind(this),a=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=o,e&&this.requestFullscreen(e),U(i,k),V(this.items,function(t,e){var n=t.querySelector("img"),u=document.createElement("img");u.src=K(n,"originalUrl"),u.alt=n.getAttribute("alt"),u.referrerPolicy=n.referrerPolicy,s+=1,U(u,d),X(u,O,r.transition),W(t,c)&&(U(u,_),l=e),a.push(u),et(u,"load",o,{once:!0}),i.appendChild(u)}),j(r.interval)&&r.interval>0){var u=function e(){t.playing=setTimeout(function(){Y(a[l],_),U(a[l=(l+=1)<s?l:0],_),e()},r.interval)};s>1&&u()}return this},stop:function(){var t=this;if(!this.played)return this;var e=this.element,n=this.options;if(z(n.stop)&&et(e,"stop",n.stop,{once:!0}),!1===nt(e,"stop"))return this;var r=this.player;return this.played=!1,clearTimeout(this.playing),V(r.getElementsByTagName("img"),function(e){tt(e,"load",t.onLoadWhenPlay)}),Y(r,k),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,e=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!e.inline?this:(this.fulled=!0,this.open(),U(this.button,g),e.transition&&(Y(i,O),this.viewed&&Y(r,O)),U(n,f),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),H(n,{zIndex:e.zIndex}),e.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=$({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){e.transition&&setTimeout(function(){U(r,O),U(i,O)},0)})}),this)},exit:function(){var t=this,e=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&e.inline?(this.fulled=!1,this.close(),Y(this.button,g),e.transition&&(Y(i,O),this.viewed&&Y(r,O)),e.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),Y(n,f),H(n,{zIndex:e.zIndexInline}),this.viewerData=$({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){e.transition&&setTimeout(function(){U(r,O),U(i,O)},0)})}),this):this},tooltip:function(){var t=this,e=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&e.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):e.transition?(this.fading&&nt(n,"transitionend"),U(n,k),U(n,d),U(n,O),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,U(n,_)):(U(n,k),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){e.transition?(et(n,"transitionend",function(){Y(n,k),Y(n,d),Y(n,O),n.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),Y(n,_),t.fading=!0):(Y(n,k),n.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this):this},toggle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,t):this.zoomTo(1,!0,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=$({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,e=this.element,n=this.options,r=this.isImg;if(r&&!e.parentNode)return this.destroy();var i=[];if(V(r?[e]:e.querySelectorAll("img"),function(e){z(n.filter)?n.filter.call(t,e)&&i.push(e):t.getImageURL(e)&&i.push(e)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var o=[];if(V(this.items,function(t,e){var n=t.querySelector("img"),r=i[e];r&&n&&r.src===n.src&&r.alt===n.alt||o.push(e)}),H(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];U(s,c),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,e=this.options;return t.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),e.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):e.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),e.inline||tt(t,"click",this.onStart),t.viewer=void 0,this):this}},ft={getImageURL:function(t){var e=this.options.url;return e=P(e)?t.getAttribute(e):z(e)?e.call(this,t):""},enforceFocus:function(){var t=this;this.clearEnforceFocus(),et(document,"focusin",this.onFocusin=function(e){var n=t.viewer,r=e.target;if(r!==document&&r!==n&&!n.contains(r)){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(tt(document,"focusin",this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;U(t,C),t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px")},close:function(){var t=this.body;Y(t,C),t.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var t=this.element,e=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,e.focus&&(n.focus(),this.enforceFocus()),z(e.shown)&&et(t,"shown",e.shown,{once:!0}),!1!==nt(t,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,e=this.options,n=this.viewer;e.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),U(n,v),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(z(e.hidden)&&et(t,"hidden",e.hidden,{once:!0}),nt(t,"hidden",null,{cancelable:!1}))},requestFullscreen:function(t){var e=this.element.ownerDocument;if(this.fulled&&!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)){var n=e.documentElement;n.requestFullscreen?F(t)?n.requestFullscreen(t):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var n=this.options,r=this.pointers,i=r[Object.keys(r)[0]];if(i){var o=i.endX-i.startX,a=i.endY-i.startY;switch(this.action){case"move":this.move(o,a,t);break;case"zoom":this.zoom(function(t){var n=e({},t),r=[];return V(t,function(t,e){delete n[e],V(n,function(e){var n=Math.abs(t.startX-e.startX),i=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),s=Math.sqrt(n*n+i*i),l=(Math.sqrt(o*o+a*a)-s)/s;r.push(l)})}),r.sort(function(t,e){return Math.abs(t)<Math.abs(e)}),r[0]}(r),!1,t);break;case"switch":this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop))}V(r,function(t){t.startX=t.endX,t.startY=t.endY})}},isSwitchable:function(){var t=this.imageData,e=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=e.width&&t.height<=e.height}},pt=s.Viewer,gt=(lt=-1,function(){return lt+=1}),vt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||1!==e.nodeType)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=$({},o,F(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.id=gt(),this.init()}var e,n,i;return e=t,i=[{key:"noConflict",value:function(){return window.Viewer=pt,t}},{key:"setDefaults",value:function(t){$(o,F(t)&&t)}}],(n=[{key:"init",value:function(){var t=this,e=this.element,n=this.options;if(!e.viewer){e.viewer=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===e.localName,i=[];if(V(r?[e]:e.querySelectorAll("img"),function(e){z(n.filter)?n.filter.call(t,e)&&i.push(e):t.getImageURL(e)&&i.push(e)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),N(document.createElement("viewer").style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var e;(o+=1)===t.length&&(t.initializing=!1,t.delaying={abort:function(){clearTimeout(e)}},e=setTimeout(function(){t.delaying=!1,t.build()},0))};this.initializing={abort:function(){V(i,function(t){t.complete||(tt(t,"load",a),tt(t,"error",a))})}},V(i,function(t){var e,n;t.complete?a():(et(t,"load",e=function(){tt(t,"error",n),a()},{once:!0}),et(t,"error",n=function(){tt(t,"load",e),a()},{once:!0}))})}else et(e,"click",this.onStart=function(e){var r=e.target;"img"!==r.localName||z(n.filter)&&!n.filter.call(t,r)||t.view(t.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,e=this.options,n=t.parentNode,r=document.createElement("div");r.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var i=r.querySelector(".".concat("viewer","-container")),o=i.querySelector(".".concat("viewer","-title")),a=i.querySelector(".".concat("viewer","-toolbar")),s=i.querySelector(".".concat("viewer","-navbar")),l=i.querySelector(".".concat("viewer","-button")),u=i.querySelector(".".concat("viewer","-canvas"));if(this.parent=n,this.viewer=i,this.title=o,this.toolbar=a,this.navbar=s,this.button=l,this.canvas=u,this.footer=i.querySelector(".".concat("viewer","-footer")),this.tooltipBox=i.querySelector(".".concat("viewer","-tooltip")),this.player=i.querySelector(".".concat("viewer","-player")),this.list=i.querySelector(".".concat("viewer","-list")),i.id="".concat("viewer").concat(this.id),o.id="".concat("viewer","Title").concat(this.id),U(o,e.title?at(Array.isArray(e.title)?e.title[0]:e.title):v),U(s,e.navbar?at(e.navbar):v),X(l,v,!e.button),e.keyboard&&l.setAttribute("tabindex",0),e.backdrop&&(U(i,"".concat("viewer","-backdrop")),e.inline||"static"===e.backdrop||J(u,A,"hide")),P(e.className)&&e.className&&e.className.split(I).forEach(function(t){U(i,t)}),e.toolbar){var c=document.createElement("ul"),g=F(e.toolbar),m=D.slice(0,3),y=D.slice(7,9),b=D.slice(9);g||U(a,at(e.toolbar)),V(g?e.toolbar:D,function(t,n){var r=g&&F(t),i=g?Z(n):t,o=r&&!N(t.show)?t.show:t;if(o&&(e.zoomable||-1===m.indexOf(i))&&(e.rotatable||-1===y.indexOf(i))&&(e.scalable||-1===b.indexOf(i))){var a=r&&!N(t.size)?t.size:t,s=r&&!N(t.click)?t.click:t,l=document.createElement("li");e.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),U(l,"".concat("viewer","-").concat(i)),z(s)||J(l,A,i),j(o)&&U(l,at(o)),-1!==["small","large"].indexOf(a)?U(l,"".concat("viewer","-").concat(a)):"play"===i&&U(l,"".concat("viewer","-large")),z(s)&&et(l,"click",s),c.appendChild(l)}}),a.appendChild(c)}else U(a,v);if(!e.rotatable){var _=a.querySelectorAll('li[class*="rotate"]');U(_,x),V(_,function(t){a.appendChild(t)})}if(e.inline)U(l,p),H(i,{zIndex:e.zIndexInline}),"static"===window.getComputedStyle(n).position&&H(n,{position:"relative"}),n.insertBefore(i,t.nextSibling);else{U(l,h),U(i,f),U(i,d),U(i,v),H(i,{zIndex:e.zIndex});var w=e.container;P(w)&&(w=t.ownerDocument.querySelector(w)),w||(w=this.body),w.appendChild(i)}e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,z(e.ready)&&et(t,"ready",e.ready,{once:!0}),!1!==nt(t,"ready")?this.ready&&e.inline&&this.view(this.index):this.ready=!1}}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();return $(vt.prototype,ut,ct,ht,dt,ft),vt},t.exports=r()},IjT6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},Iker:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=void 0;var a=n("w9t0"),s=o(n("17Ia")),l=function(t){function e(e){var n=t.call(this)||this;return n.width=300,n.height=300,n.nodeMinGap=50,n.onLayoutEnd=function(){},e&&n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges;return null===e||void 0===e||e.forEach(function(t){t.size||(t.size=[50,50])}),(0,s.default)({nodes:e,edges:n},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){t.onLayoutEnd&&t.onLayoutEnd()})},e.prototype.getType=function(){return"er"},e}(a.Base);e.ERLayout=l},Inmu:function(t,e,n){"use strict";function r(t,e){var n,r,i,o,a,s;for(n=e.length-1;n>=0;n--)95!==(r=e[n]).marker&&42!==r.marker||-1!==r.end&&(i=e[r.end],s=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=t.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=t.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}t.exports.tokenize=function(t,e){var n,r,i=t.pos,o=t.src.charCodeAt(i);if(e)return!1;if(95!==o&&42!==o)return!1;for(r=t.scanDelims(t.pos,42===o),n=0;n<r.length;n++)t.push("text","",0).content=String.fromCharCode(o),t.delimiters.push({marker:o,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0},t.exports.postProcess=function(t){var e,n=t.tokens_meta,i=t.tokens_meta.length;for(r(t,t.delimiters),e=0;e<i;e++)n[e]&&n[e].delimiters&&r(t,n[e].delimiters)}},IpCj:function(t,e,n){"use strict";e.b=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")},e.c=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.a=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){Object(r.a)(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")")}}else i.removeAttribute("clip-path")};var r=n("8ALn")},IzBs:function(t,e,n){"use strict";var r={};n.d(r,"leftTranslate",function(){return o}),n.d(r,"leftRotate",function(){return a}),n.d(r,"leftScale",function(){return s}),n.d(r,"transform",function(){return l}),n.d(r,"direction",function(){return u}),n.d(r,"angleTo",function(){return c}),n.d(r,"vertical",function(){return h});var i=n("lVvd");function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.mat3.fromTranslation(r,n),i.mat3.multiply(t,r,e)}function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.mat3.fromRotation(r,n),i.mat3.multiply(t,r,e)}function s(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.mat3.fromScaling(r,n),i.mat3.multiply(t,r,e)}function l(t,e){for(var n,r,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var d=e[c];switch(d[0]){case"t":o(u,u,[d[1],d[2]]);break;case"s":s(u,u,[d[1],d[2]]);break;case"r":a(u,u,d[1]);break;case"m":n=u,r=u,l=d[1],i.mat3.multiply(n,l,r)}}return u}function u(t,e){return t[0]*e[1]-e[0]*t[1]}function c(t,e,n){var r=i.vec2.angle(t,e),o=u(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function h(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}n.d(e,"b",function(){return i.mat3}),n.d(e,"c",function(){return i.vec2}),n.d(e,"d",function(){return i.vec3}),n.d(e,"a",function(){return r})},J009:function(t,e,n){var r=n("aCM0"),i=n("UnEC"),o="[object Number]";t.exports=function(t){return"number"==typeof t||i(t)&&r(t)==o}},JHWa:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n("LXZJ")),a=i(n("TEXG")),s=i(n("OiFs")),l=n("+ZTV"),u=i(n("+RLJ")),c=i(n("uX+9")),h=i(n("yO1k")),d=i(n("MicU")),f=i(n("yWcq")),p=i(n("kdcY")),g=i(n("v/lF")),v=n("3MGd"),m=function(t,e,n){e(" removeSelfEdges",function(){B(t)}),e(" acyclic",function(){o.default.run(t)}),e(" nestingGraph.run",function(){c.default.run(t)}),e(" rank",function(){(0,s.default)((0,l.asNonCompoundGraph)(t))}),e(" injectEdgeLabelProxies",function(){A(t)}),e(" removeEmptyRanks",function(){(0,l.removeEmptyRanks)(t)}),e(" nestingGraph.cleanup",function(){c.default.cleanup(t)}),e(" normalizeRanks",function(){(0,l.normalizeRanks)(t)}),e(" assignRankMinMax",function(){I(t)}),e(" removeEdgeLabelProxies",function(){D(t)}),e(" normalize.run",function(){a.default.run(t)}),e(" parentDummyChains",function(){(0,u.default)(t)}),e(" addBorderSegments",function(){(0,h.default)(t)}),n&&n.keepNodeOrder&&e(" initDataOrder",function(){(0,g.default)(t,n.nodeOrder)}),e(" order",function(){(0,f.default)(t,null===n||void 0===n?void 0:n.keepNodeOrder)}),e(" insertSelfEdges",function(){F(t)}),e(" adjustCoordinateSystem",function(){d.default.adjust(t)}),e(" position",function(){(0,p.default)(t)}),e(" positionSelfEdges",function(){z(t)}),e(" removeBorderNodes",function(){R(t)}),e(" normalize.undo",function(){a.default.undo(t)}),e(" fixupEdgeLabelCoords",function(){j(t)}),e(" undoCoordinateSystem",function(){d.default.undo(t)}),e(" translateGraph",function(){P(t)}),e(" assignNodeIntersects",function(){L(t)}),e(" reversePoints",function(){N(t)}),e(" acyclic.undo",function(){o.default.undo(t)})},y=function(t,e){t.nodes().forEach(function(n){var r=t.node(n),i=e.node(n);void 0!==i?(r.fixorder=i._order,delete i._order):delete r.fixorder})},b=function(t,e){t.nodes().forEach(function(n){var r,i=t.node(n);if(i){var o=e.node(n);i.x=o.x,i.y=o.y,i._order=o.order,i._rank=o.rank,(null===(r=e.children(n))||void 0===r?void 0:r.length)&&(i.width=o.width,i.height=o.height)}}),t.edges().forEach(function(n){var r=t.edge(n),i=e.edge(n);r.points=i?i.points:[],i&&i.hasOwnProperty("x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height},_=["nodesep","edgesep","ranksep","marginx","marginy"],x={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],S=["width","height","layer","fixorder"],C={width:0,height:0},k=["minlen","weight","width","height","labeloffset"],O={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"],E=function(t){var e=new v.Graph({multigraph:!0,compound:!0}),n=$(t.graph()),i={};return null===w||void 0===w||w.forEach(function(t){void 0!==n[t]&&(i[t]=n[t])}),e.setGraph(Object.assign({},x,V(n,_),i)),t.nodes().forEach(function(n){var i=$(t.node(n)),o=r(r({},C),i),a=V(o,S);e.setNode(n,a),e.setParent(n,t.parent(n))}),t.edges().forEach(function(n){var r=$(t.edge(n)),i={};null===M||void 0===M||M.forEach(function(t){void 0!==r[t]&&(i[t]=r[t])}),e.setEdgeObj(n,Object.assign({},O,V(r,k),i))}),e},T=function(t){var e=t.graph();e.ranksep||(e.ranksep=0),e.ranksep/=2,t.nodes().forEach(function(e){var n=t.node(e);isNaN(n.layer)||n.layer||(n.layer=0)}),t.edges().forEach(function(n){var r,i=t.edge(n);i.minlen*=2,"c"!==(null===(r=i.labelpos)||void 0===r?void 0:r.toLowerCase())&&("TB"===e.rankdir||"BT"===e.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)})},A=function(t){t.edges().forEach(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={e:e,rank:(t.node(e.w).rank-r.rank)/2+r.rank};(0,l.addDummyNode)(t,"edge-proxy",i,"_ep")}})},I=function(t){var e=0;t.nodes().forEach(function(n){var r,i,o=t.node(n);o.borderTop&&(o.minRank=null===(r=t.node(o.borderTop))||void 0===r?void 0:r.rank,o.maxRank=null===(i=t.node(o.borderBottom))||void 0===i?void 0:i.rank,e=Math.max(e,o.maxRank||-1/0))}),t.graph().maxRank=e},D=function(t){t.nodes().forEach(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})},P=function(t){var e,n,r=0,i=0,o=t.graph(),a=o.marginx||0,s=o.marginy||0,l=function(t){if(t){var o=t.x,a=t.y,s=t.width,l=t.height;isNaN(o)||isNaN(s)||(void 0===e&&(e=o-s/2),e=Math.min(e,o-s/2),r=Math.max(r,o+s/2)),isNaN(a)||isNaN(l)||(void 0===n&&(n=a-l/2),n=Math.min(n,a-l/2),i=Math.max(i,a+l/2))}};t.nodes().forEach(function(e){l(t.node(e))}),t.edges().forEach(function(e){var n=t.edge(e);(null===n||void 0===n?void 0:n.hasOwnProperty("x"))&&l(n)}),e-=a,n-=s,t.nodes().forEach(function(r){var i=t.node(r);i&&(i.x-=e,i.y-=n)}),t.edges().forEach(function(r){var i,o=t.edge(r);null===(i=o.points)||void 0===i||i.forEach(function(t){t.x-=e,t.y-=n}),o.hasOwnProperty("x")&&(o.x-=e),o.hasOwnProperty("y")&&(o.y-=n)}),o.width=r-e+a,o.height=i-n+s},L=function(t){t.edges().forEach(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift((0,l.intersectRect)(o,n)),i.points.push((0,l.intersectRect)(a,r))})},j=function(t){t.edges().forEach(function(e){var n=t.edge(e);if(null===n||void 0===n?void 0:n.hasOwnProperty("x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})},N=function(t){t.edges().forEach(function(e){var n,r=t.edge(e);r.reversed&&(null===(n=r.points)||void 0===n||n.reverse())})},R=function(t){t.nodes().forEach(function(e){var n,r,i;if(null===(n=t.children(e))||void 0===n?void 0:n.length){var o=t.node(e),a=t.node(o.borderTop),s=t.node(o.borderBottom),l=t.node(o.borderLeft[(null===(r=o.borderLeft)||void 0===r?void 0:r.length)-1]),u=t.node(o.borderRight[(null===(i=o.borderRight)||void 0===i?void 0:i.length)-1]);o.width=Math.abs((null===u||void 0===u?void 0:u.x)-(null===l||void 0===l?void 0:l.x))||10,o.height=Math.abs((null===s||void 0===s?void 0:s.y)-(null===a||void 0===a?void 0:a.y))||10,o.x=((null===l||void 0===l?void 0:l.x)||0)+o.width/2,o.y=((null===a||void 0===a?void 0:a.y)||0)+o.height/2}}),t.nodes().forEach(function(e){var n;"border"===(null===(n=t.node(e))||void 0===n?void 0:n.dummy)&&t.removeNode(e)})},B=function(t){t.edges().forEach(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdgeObj(e)}})},F=function(t){var e=(0,l.buildLayerMatrix)(t);null===e||void 0===e||e.forEach(function(e){var n=0;null===e||void 0===e||e.forEach(function(e,r){var i,o=t.node(e);o.order=r+n,null===(i=o.selfEdges)||void 0===i||i.forEach(function(e){(0,l.addDummyNode)(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:r+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})},z=function(t){t.nodes().forEach(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdgeObj(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{y:o,x:i+a},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})},V=function(t,e){var n={};return null===e||void 0===e||e.forEach(function(e){void 0!==t[e]&&(n[e]=+t[e])}),n},$=function(t){void 0===t&&(t={});var e={};return Object.keys(t).forEach(function(n){e[n.toLowerCase()]=t[n]}),e};e.default=function(t,e){var n=e&&e.debugTiming?l.time:l.notime;n("layout",function(){e&&!e.keepNodeOrder&&e.prevGraph&&n(" inheritOrder",function(){y(t,e.prevGraph)});var r=n(" buildLayoutGraph",function(){return E(t)});e&&!1===e.edgeLabelSpace||n(" makeSpaceForEdgeLabels",function(){T(r)});try{n(" runLayout",function(){m(r,n,e)})}catch(t){if("Not possible to find intersection inside of the rectangle"===t.message)return void console.error("The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:\n",t);throw t}n(" updateInputGraph",function(){b(t,r)})})}},JKCU:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("7hDC"),i=n.n(r),o=n("fKPv"),a=n.n(o),s=n("Z60a"),l=n.n(s),u=n("C9uT"),c=n.n(u),h=n("YsVG"),d=n.n(h),f=n("J009"),p=n.n(f),g=n("NGEn"),v=n.n(g),m=n("En79"),y=n.n(m),b=1;function _(){return b++}var x,w;(w=x||(x={}))[w.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",w[w.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",w[w.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",w[w.POINTS=0]="POINTS",w[w.LINES=1]="LINES",w[w.LINE_LOOP=2]="LINE_LOOP",w[w.LINE_STRIP=3]="LINE_STRIP",w[w.TRIANGLES=4]="TRIANGLES",w[w.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",w[w.TRIANGLE_FAN=6]="TRIANGLE_FAN",w[w.ZERO=0]="ZERO",w[w.ONE=1]="ONE",w[w.SRC_COLOR=768]="SRC_COLOR",w[w.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",w[w.SRC_ALPHA=770]="SRC_ALPHA",w[w.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",w[w.DST_ALPHA=772]="DST_ALPHA",w[w.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",w[w.DST_COLOR=774]="DST_COLOR",w[w.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",w[w.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",w[w.FUNC_ADD=32774]="FUNC_ADD",w[w.BLEND_EQUATION=32777]="BLEND_EQUATION",w[w.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",w[w.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",w[w.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",w[w.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",w[w.MAX_EXT=32776]="MAX_EXT",w[w.MIN_EXT=32775]="MIN_EXT",w[w.BLEND_DST_RGB=32968]="BLEND_DST_RGB",w[w.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",w[w.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",w[w.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",w[w.CONSTANT_COLOR=32769]="CONSTANT_COLOR",w[w.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",w[w.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",w[w.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",w[w.BLEND_COLOR=32773]="BLEND_COLOR",w[w.ARRAY_BUFFER=34962]="ARRAY_BUFFER",w[w.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",w[w.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",w[w.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",w[w.STREAM_DRAW=35040]="STREAM_DRAW",w[w.STATIC_DRAW=35044]="STATIC_DRAW",w[w.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",w[w.BUFFER_SIZE=34660]="BUFFER_SIZE",w[w.BUFFER_USAGE=34661]="BUFFER_USAGE",w[w.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",w[w.FRONT=1028]="FRONT",w[w.BACK=1029]="BACK",w[w.FRONT_AND_BACK=1032]="FRONT_AND_BACK",w[w.CULL_FACE=2884]="CULL_FACE",w[w.BLEND=3042]="BLEND",w[w.DITHER=3024]="DITHER",w[w.STENCIL_TEST=2960]="STENCIL_TEST",w[w.DEPTH_TEST=2929]="DEPTH_TEST",w[w.SCISSOR_TEST=3089]="SCISSOR_TEST",w[w.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",w[w.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",w[w.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",w[w.NO_ERROR=0]="NO_ERROR",w[w.INVALID_ENUM=1280]="INVALID_ENUM",w[w.INVALID_VALUE=1281]="INVALID_VALUE",w[w.INVALID_OPERATION=1282]="INVALID_OPERATION",w[w.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",w[w.CW=2304]="CW",w[w.CCW=2305]="CCW",w[w.LINE_WIDTH=2849]="LINE_WIDTH",w[w.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",w[w.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",w[w.CULL_FACE_MODE=2885]="CULL_FACE_MODE",w[w.FRONT_FACE=2886]="FRONT_FACE",w[w.DEPTH_RANGE=2928]="DEPTH_RANGE",w[w.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",w[w.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",w[w.DEPTH_FUNC=2932]="DEPTH_FUNC",w[w.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",w[w.STENCIL_FUNC=2962]="STENCIL_FUNC",w[w.STENCIL_FAIL=2964]="STENCIL_FAIL",w[w.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",w[w.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",w[w.STENCIL_REF=2967]="STENCIL_REF",w[w.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",w[w.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",w[w.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",w[w.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",w[w.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",w[w.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",w[w.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",w[w.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",w[w.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",w[w.VIEWPORT=2978]="VIEWPORT",w[w.SCISSOR_BOX=3088]="SCISSOR_BOX",w[w.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",w[w.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",w[w.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",w[w.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",w[w.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",w[w.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",w[w.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",w[w.RED_BITS=3410]="RED_BITS",w[w.GREEN_BITS=3411]="GREEN_BITS",w[w.BLUE_BITS=3412]="BLUE_BITS",w[w.ALPHA_BITS=3413]="ALPHA_BITS",w[w.DEPTH_BITS=3414]="DEPTH_BITS",w[w.STENCIL_BITS=3415]="STENCIL_BITS",w[w.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",w[w.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",w[w.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",w[w.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",w[w.SAMPLES=32937]="SAMPLES",w[w.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",w[w.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",w[w.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",w[w.DONT_CARE=4352]="DONT_CARE",w[w.FASTEST=4353]="FASTEST",w[w.NICEST=4354]="NICEST",w[w.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",w[w.BYTE=5120]="BYTE",w[w.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",w[w.SHORT=5122]="SHORT",w[w.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",w[w.INT=5124]="INT",w[w.UNSIGNED_INT=5125]="UNSIGNED_INT",w[w.FLOAT=5126]="FLOAT",w[w.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",w[w.ALPHA=6406]="ALPHA",w[w.RGB=6407]="RGB",w[w.RGBA=6408]="RGBA",w[w.LUMINANCE=6409]="LUMINANCE",w[w.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",w[w.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",w[w.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",w[w.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",w[w.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",w[w.VERTEX_SHADER=35633]="VERTEX_SHADER",w[w.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",w[w.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",w[w.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",w[w.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",w[w.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",w[w.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",w[w.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",w[w.SHADER_TYPE=35663]="SHADER_TYPE",w[w.DELETE_STATUS=35712]="DELETE_STATUS",w[w.LINK_STATUS=35714]="LINK_STATUS",w[w.VALIDATE_STATUS=35715]="VALIDATE_STATUS",w[w.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",w[w.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",w[w.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",w[w.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",w[w.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",w[w.NEVER=512]="NEVER",w[w.LESS=513]="LESS",w[w.EQUAL=514]="EQUAL",w[w.LEQUAL=515]="LEQUAL",w[w.GREATER=516]="GREATER",w[w.NOTEQUAL=517]="NOTEQUAL",w[w.GEQUAL=518]="GEQUAL",w[w.ALWAYS=519]="ALWAYS",w[w.KEEP=7680]="KEEP",w[w.REPLACE=7681]="REPLACE",w[w.INCR=7682]="INCR",w[w.DECR=7683]="DECR",w[w.INVERT=5386]="INVERT",w[w.INCR_WRAP=34055]="INCR_WRAP",w[w.DECR_WRAP=34056]="DECR_WRAP",w[w.VENDOR=7936]="VENDOR",w[w.RENDERER=7937]="RENDERER",w[w.VERSION=7938]="VERSION",w[w.NEAREST=9728]="NEAREST",w[w.LINEAR=9729]="LINEAR",w[w.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",w[w.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",w[w.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",w[w.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",w[w.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",w[w.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",w[w.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",w[w.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",w[w.TEXTURE_2D=3553]="TEXTURE_2D",w[w.TEXTURE=5890]="TEXTURE",w[w.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",w[w.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",w[w.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",w[w.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",w[w.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",w[w.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",w[w.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",w[w.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",w[w.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",w[w.TEXTURE0=33984]="TEXTURE0",w[w.TEXTURE1=33985]="TEXTURE1",w[w.TEXTURE2=33986]="TEXTURE2",w[w.TEXTURE3=33987]="TEXTURE3",w[w.TEXTURE4=33988]="TEXTURE4",w[w.TEXTURE5=33989]="TEXTURE5",w[w.TEXTURE6=33990]="TEXTURE6",w[w.TEXTURE7=33991]="TEXTURE7",w[w.TEXTURE8=33992]="TEXTURE8",w[w.TEXTURE9=33993]="TEXTURE9",w[w.TEXTURE10=33994]="TEXTURE10",w[w.TEXTURE11=33995]="TEXTURE11",w[w.TEXTURE12=33996]="TEXTURE12",w[w.TEXTURE13=33997]="TEXTURE13",w[w.TEXTURE14=33998]="TEXTURE14",w[w.TEXTURE15=33999]="TEXTURE15",w[w.TEXTURE16=34e3]="TEXTURE16",w[w.TEXTURE17=34001]="TEXTURE17",w[w.TEXTURE18=34002]="TEXTURE18",w[w.TEXTURE19=34003]="TEXTURE19",w[w.TEXTURE20=34004]="TEXTURE20",w[w.TEXTURE21=34005]="TEXTURE21",w[w.TEXTURE22=34006]="TEXTURE22",w[w.TEXTURE23=34007]="TEXTURE23",w[w.TEXTURE24=34008]="TEXTURE24",w[w.TEXTURE25=34009]="TEXTURE25",w[w.TEXTURE26=34010]="TEXTURE26",w[w.TEXTURE27=34011]="TEXTURE27",w[w.TEXTURE28=34012]="TEXTURE28",w[w.TEXTURE29=34013]="TEXTURE29",w[w.TEXTURE30=34014]="TEXTURE30",w[w.TEXTURE31=34015]="TEXTURE31",w[w.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",w[w.REPEAT=10497]="REPEAT",w[w.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",w[w.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",w[w.FLOAT_VEC2=35664]="FLOAT_VEC2",w[w.FLOAT_VEC3=35665]="FLOAT_VEC3",w[w.FLOAT_VEC4=35666]="FLOAT_VEC4",w[w.INT_VEC2=35667]="INT_VEC2",w[w.INT_VEC3=35668]="INT_VEC3",w[w.INT_VEC4=35669]="INT_VEC4",w[w.BOOL=35670]="BOOL",w[w.BOOL_VEC2=35671]="BOOL_VEC2",w[w.BOOL_VEC3=35672]="BOOL_VEC3",w[w.BOOL_VEC4=35673]="BOOL_VEC4",w[w.FLOAT_MAT2=35674]="FLOAT_MAT2",w[w.FLOAT_MAT3=35675]="FLOAT_MAT3",w[w.FLOAT_MAT4=35676]="FLOAT_MAT4",w[w.SAMPLER_2D=35678]="SAMPLER_2D",w[w.SAMPLER_CUBE=35680]="SAMPLER_CUBE",w[w.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",w[w.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",w[w.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",w[w.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",w[w.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",w[w.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",w[w.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",w[w.COMPILE_STATUS=35713]="COMPILE_STATUS",w[w.LOW_FLOAT=36336]="LOW_FLOAT",w[w.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",w[w.HIGH_FLOAT=36338]="HIGH_FLOAT",w[w.LOW_INT=36339]="LOW_INT",w[w.MEDIUM_INT=36340]="MEDIUM_INT",w[w.HIGH_INT=36341]="HIGH_INT",w[w.FRAMEBUFFER=36160]="FRAMEBUFFER",w[w.RENDERBUFFER=36161]="RENDERBUFFER",w[w.RGBA4=32854]="RGBA4",w[w.RGB5_A1=32855]="RGB5_A1",w[w.RGB565=36194]="RGB565",w[w.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",w[w.STENCIL_INDEX=6401]="STENCIL_INDEX",w[w.STENCIL_INDEX8=36168]="STENCIL_INDEX8",w[w.DEPTH_STENCIL=34041]="DEPTH_STENCIL",w[w.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",w[w.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",w[w.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",w[w.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",w[w.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",w[w.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",w[w.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",w[w.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",w[w.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",w[w.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",w[w.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",w[w.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",w[w.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",w[w.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",w[w.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",w[w.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",w[w.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",w[w.NONE=0]="NONE",w[w.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",w[w.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",w[w.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",w[w.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",w[w.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",w[w.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",w[w.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",w[w.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",w[w.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",w[w.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",w[w.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",w[w.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",w[w.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",w[w.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",w[w.COPY_SRC=1]="COPY_SRC",w[w.COPY_DST=2]="COPY_DST",w[w.SAMPLED=4]="SAMPLED",w[w.STORAGE=8]="STORAGE",w[w.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT";var S,C,k,O,M=function(){function t(){l()(this,t),this.config=void 0}return c()(t,[{key:"get",value:function(){return this.config}},{key:"set",value:function(t){this.config=t}}]),t}();"undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);!function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2<f32>",t.Vector3Float="vec3<f32>",t.Vector4Float="vec4<f32>",t.Vector2Boolean="vec2<bool>",t.Vector3Boolean="vec3<bool>",t.Vector4Boolean="vec4<bool>",t.Vector2Uint="vec2<u32>",t.Vector3Uint="vec3<u32>",t.Vector4Uint="vec4<u32>",t.Vector2Int="vec2<i32>",t.Vector3Int="vec3<i32>",t.Vector4Int="vec4<i32>",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3<f32>",t.Matrix4x4Float="mat4x4<i32>",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4<f32>[]"}(S||(S={})),function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"}(C||(C={})),function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"}(k||(k={})),function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"}(O||(O={}));function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach(function(e){a()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var A,I,D,P,L,j,N,R,B,F,z,V,$,G,H=function(){function t(e,n){l()(this,t),this.engine=e,this.configService=n,this.model=void 0,this.dirty=!0,this.compiledBundle=void 0,this.initPromise=void 0}return c()(t,[{key:"init",value:function(){var t=this.configService.get(),e=t.canvas,n=t.engineOptions;this.initPromise=this.engine.init(T({canvas:e||function(){if("undefined"!=typeof document)return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}(),antialiasing:!1},n))}},{key:"setBundle",value:function(t){this.compiledBundle=JSON.parse(JSON.stringify(t))}},{key:"setDispatch",value:function(t){return this.compiledBundle.context&&(this.compiledBundle.context.dispatch=t),this}},{key:"setMaxIteration",value:function(t){return this.compiledBundle.context&&(this.compiledBundle.context.maxIteration=t),this}},{key:"setBinding",value:function(t,e){var n=this;if("string"==typeof t){var r=p()(e)||d()(e)||v()(e);if(this.compiledBundle&&this.compiledBundle.context){var i=this.compiledBundle.context.defines.find(function(e){return e.name===t});if(i)return i.value=e,this;var o=this.compiledBundle.context.uniforms.find(function(e){return e.name===t});o&&(r?(o.data=e,o.isReferer=!1,o.storageClass===k.Uniform?this.model&&this.model.updateUniform(t,e):this.model&&this.model.updateBuffer(t,e)):(o.isReferer=!0,o.data=e))}}else Object.keys(t).forEach(function(e){n.setBinding(e,t[e])});return this}},{key:"execute",value:function(){var t=i()(y.a.mark(function t(){var e,n,r=this,i=arguments;return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:1,!this.dirty){t.next=6;break}return this.compiledBundle.context&&(e>1?this.compiledBundle.context.maxIteration=e:this.compiledBundle.context.maxIteration++),t.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(t){return t.isReferer}).forEach(function(t){var e=t.data,n=t.name;r.model.confirmInput(e.model,n)}),n=0;n<e;n++)this.model.run();return this.engine.endFrame(),t.abrupt("return",this);case 12:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"getOutput",value:function(){var t=i()(y.a.mark(function t(){return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.model.readData());case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"compile",value:function(){var t=i()(y.a.mark(function t(){var e,n,r;return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initPromise;case 2:return e=T({},this.compiledBundle.context),n=this.engine.supportWebGPU?this.engine.useWGSL?O.WGSL:O.GLSL450:O.GLSL100,r=this.compiledBundle.shaders[n],e.defines.filter(function(t){return t.runtime}).forEach(function(t){var e="".concat("__DefineValuePlaceholder__").concat(t.name);r=r.replace(e,"".concat(t.value))}),e.shader=r,e.uniforms.forEach(function(t){if(!t.data&&t.storageClass===k.StorageBuffer){var n=1;t.type===S.FloatArray?n=1:t.type===S.Vector4FloatArray&&(n=4),t.data=new Float32Array(e.output.length*n).fill(0)}}),this.compiledBundle.context=e,t.next=11,this.engine.createComputeModel(this.compiledBundle.context);case 11:this.model=t.sent;case 12:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}]),t}(),W=n("8a/n"),U=n.n(W),Y=function(){function t(e,n){l()(this,t),this.attribute=void 0,this.buffer=void 0;var r=n.buffer,i=n.offset,o=n.stride,a=n.normalized,s=n.size,u=n.divisor;this.buffer=r,this.attribute={buffer:r.get(),offset:i||0,stride:o||0,normalized:a||!1,divisor:u||0},s&&(this.attribute.size=s)}return c()(t,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),t}(),X=(A={},a()(A,x.POINTS,"points"),a()(A,x.LINES,"lines"),a()(A,x.LINE_LOOP,"line loop"),a()(A,x.LINE_STRIP,"line strip"),a()(A,x.TRIANGLES,"triangles"),a()(A,x.TRIANGLE_FAN,"triangle fan"),a()(A,x.TRIANGLE_STRIP,"triangle strip"),A),q=(I={},a()(I,x.STATIC_DRAW,"static"),a()(I,x.DYNAMIC_DRAW,"dynamic"),a()(I,x.STREAM_DRAW,"stream"),I),Z=(D={},a()(D,x.BYTE,"int8"),a()(D,x.UNSIGNED_INT,"int16"),a()(D,x.INT,"int32"),a()(D,x.UNSIGNED_BYTE,"uint8"),a()(D,x.UNSIGNED_SHORT,"uint16"),a()(D,x.UNSIGNED_INT,"uint32"),a()(D,x.FLOAT,"float"),D),K=(P={},a()(P,x.ALPHA,"alpha"),a()(P,x.LUMINANCE,"luminance"),a()(P,x.LUMINANCE_ALPHA,"luminance alpha"),a()(P,x.RGB,"rgb"),a()(P,x.RGBA,"rgba"),a()(P,x.RGBA4,"rgba4"),a()(P,x.RGB5_A1,"rgb5 a1"),a()(P,x.RGB565,"rgb565"),a()(P,x.DEPTH_COMPONENT,"depth"),a()(P,x.DEPTH_STENCIL,"depth stencil"),P),J=(L={},a()(L,x.DONT_CARE,"dont care"),a()(L,x.NICEST,"nice"),a()(L,x.FASTEST,"fast"),L),Q=(j={},a()(j,x.NEAREST,"nearest"),a()(j,x.LINEAR,"linear"),a()(j,x.LINEAR_MIPMAP_LINEAR,"mipmap"),a()(j,x.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),a()(j,x.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),a()(j,x.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),j),tt=(N={},a()(N,x.REPEAT,"repeat"),a()(N,x.CLAMP_TO_EDGE,"clamp"),a()(N,x.MIRRORED_REPEAT,"mirror"),N),et=(R={},a()(R,x.NONE,"none"),a()(R,x.BROWSER_DEFAULT_WEBGL,"browser"),R),nt=(B={},a()(B,x.NEVER,"never"),a()(B,x.ALWAYS,"always"),a()(B,x.LESS,"less"),a()(B,x.LEQUAL,"lequal"),a()(B,x.GREATER,"greater"),a()(B,x.GEQUAL,"gequal"),a()(B,x.EQUAL,"equal"),a()(B,x.NOTEQUAL,"notequal"),B),rt=(F={},a()(F,x.FUNC_ADD,"add"),a()(F,x.MIN_EXT,"min"),a()(F,x.MAX_EXT,"max"),a()(F,x.FUNC_SUBTRACT,"subtract"),a()(F,x.FUNC_REVERSE_SUBTRACT,"reverse subtract"),F),it=(z={},a()(z,x.ZERO,"zero"),a()(z,x.ONE,"one"),a()(z,x.SRC_COLOR,"src color"),a()(z,x.ONE_MINUS_SRC_COLOR,"one minus src color"),a()(z,x.SRC_ALPHA,"src alpha"),a()(z,x.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),a()(z,x.DST_COLOR,"dst color"),a()(z,x.ONE_MINUS_DST_COLOR,"one minus dst color"),a()(z,x.DST_ALPHA,"dst alpha"),a()(z,x.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),a()(z,x.CONSTANT_COLOR,"constant color"),a()(z,x.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),a()(z,x.CONSTANT_ALPHA,"constant alpha"),a()(z,x.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),a()(z,x.SRC_ALPHA_SATURATE,"src alpha saturate"),z),ot=(V={},a()(V,x.NEVER,"never"),a()(V,x.ALWAYS,"always"),a()(V,x.LESS,"less"),a()(V,x.LEQUAL,"lequal"),a()(V,x.GREATER,"greater"),a()(V,x.GEQUAL,"gequal"),a()(V,x.EQUAL,"equal"),a()(V,x.NOTEQUAL,"notequal"),V),at=($={},a()($,x.ZERO,"zero"),a()($,x.KEEP,"keep"),a()($,x.REPLACE,"replace"),a()($,x.INVERT,"invert"),a()($,x.INCR,"increment"),a()($,x.DECR,"decrement"),a()($,x.INCR_WRAP,"increment wrap"),a()($,x.DECR_WRAP,"decrement wrap"),$),st=(G={},a()(G,x.FRONT,"front"),a()(G,x.BACK,"back"),G),lt=function(){function t(e,n){l()(this,t),this.buffer=void 0;var r=n.data,i=n.usage,o=n.type;this.buffer=e.buffer({data:r,usage:q[i||x.STATIC_DRAW],type:Z[o||x.UNSIGNED_BYTE]})}return c()(t,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(t){var e=t.data,n=t.offset;this.buffer.subdata(e,n)}}]),t}(),ut=n("rzQm"),ct=n.n(ut);function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach(function(e){a()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ft="attribute vec3 a_Position;\nattribute vec2 a_TexCoord;\n\nvarying vec2 v_TexCoord;\n\nvoid main() {\n gl_Position = vec4(a_Position, 1.0);\n v_TexCoord = a_TexCoord;\n}",pt=0,gt=!1,vt=function(){function t(e,n){var r=this;l()(this,t),this.reGl=e,this.context=n,this.entity=_(),this.texFBO=void 0,this.computeCommand=void 0,this.textureCache={},this.outputTextureName=void 0,this.swapOutputTextureName=void 0,this.compiledPingpong=void 0,this.dynamicPingpong=void 0;var i={};this.context.uniforms.forEach(function(t){var e=t.name,n=t.type,o=t.data,a=t.isReferer,s=t.storageClass;if(s===k.StorageBuffer){if(a)r.textureCache[e]={data:void 0},i["".concat(e,"Size")]=function(){return o.compiledBundle.context.output.textureSize};else{r.textureCache[e]=r.calcDataTexture(e,n,o);var l=r.textureCache[e],u=l.textureWidth,c=l.isOutput;i["".concat(e,"Size")]=[u,u],c&&(r.outputTextureName=e,r.context.needPingpong&&(r.outputTextureName="".concat(e,"Output"),r.textureCache[r.outputTextureName]=r.calcDataTexture(e,n,o)))}i[e]=function(){return gt&&console.log("[".concat(r.entity,"]: ").concat(e," ").concat(r.textureCache[e].id)),r.textureCache[e].texture}}else if(s===k.Uniform){if(o&&(Array.isArray(o)||d()(o))&&o.length>16)throw new Error("invalid data type ".concat(n));i[e]=function(){return t.data}}});var o=this.getOuputDataTexture(),a=o.textureWidth,s=o.texelCount;i.u_OutputTextureSize=[a,a],i.u_OutputTexelCount=s,this.context.output.textureSize=[a,a];var u={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n#else\n precision mediump float;\n#endif\n".concat(this.context.shader),uniforms:i,vert:ft,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(u)}return c()(t,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){t.computeCommand()}),gt&&console.log("[".concat(this.entity,"]: output ").concat(this.getOuputDataTexture().id))}},{key:"readData",value:function(){var t=i()(y.a.mark(function t(){var e,n,r,i,o,a,s,l,u=this;return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){e=u.reGl.read()}),!e){t.next=6;break}if(n=this.getOuputDataTexture(),r=n.originalDataLength,i=n.elementsPerTexel,o=n.typedArrayConstructor,a=void 0===o?Float32Array:o,s=[],4!==i)for(l=0;l<e.length;l+=4)1===i?s.push(e[l]):2===i?s.push(e[l],e[l+1]):s.push(e[l],e[l+1],e[l+2]);else s=e;return t.abrupt("return",new a(s.slice(0,r)));case 6:return t.abrupt("return",new Float32Array);case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"confirmInput",value:function(t,e){var n;this.entity===t.entity?(this.dynamicPingpong=!0,n=this):n=t,this.textureCache[e].id=n.getOuputDataTexture().id,this.textureCache[e].texture=n.getOuputDataTexture().texture,gt&&console.log("[".concat(this.entity,"]: confirm input ").concat(e," from model ").concat(n.entity,", ").concat(n.getOuputDataTexture().id))}},{key:"updateUniform",value:function(){}},{key:"updateBuffer",value:function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=this.context.uniforms.find(function(e){return e.name===t});if(n){var r=this.calcDataTexture(t,n.type,e),i=r.texture,o=r.data;this.textureCache[t].data=o,this.textureCache[t].texture=i}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var t=this.context.output.name;this.textureCache[t].id=this.getOuputDataTexture().id,this.textureCache[t].texture=this.getOuputDataTexture().texture}var e=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=e,gt&&console.log("[".concat(this.entity,"]: after swap, output ").concat(this.getOuputDataTexture().id))}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName]}},{key:"createSwapOutputDataTexture",value:function(){var t=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=t}},{key:"cloneDataTexture",value:function(t){var e=t.data,n=t.textureWidth;return dt(dt({},t),{},{id:pt++,texture:this.reGl.texture({width:n,height:n,data:e,type:"float"})})}},{key:"calcDataTexture",value:function(t,e,n){var r=1;e===S.Vector4FloatArray&&(r=4);for(var i=[],o=0;o<n.length;o+=r)1===r?i.push(n[o],0,0,0):2===r?i.push(n[o],n[o+1],0,0):3===r?i.push(n[o],n[o+1],n[o+2],0):4===r&&i.push(n[o],n[o+1],n[o+2],n[o+3]);var a=n.length,s=Math.ceil(a/r),l=Math.ceil(Math.sqrt(s)),u=l*l;s<u&&i.push.apply(i,ct()(new Array(4*(u-s)).fill(0)));var c=this.reGl.texture({width:l,height:l,data:i,type:"float"});return{id:pt++,data:i,originalDataLength:a,typedArrayConstructor:d()(n)?n.constructor:void 0,textureWidth:l,texture:c,texelCount:s,elementsPerTexel:r,isOutput:t===this.context.output.name}}}]),t}(),mt=function(){function t(e,n){l()(this,t),this.elements=void 0;var r=n.data,i=n.usage,o=n.type,a=n.count;this.elements=e.elements({data:r,usage:q[i||x.STATIC_DRAW],type:Z[o||x.UNSIGNED_BYTE],count:a})}return c()(t,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(t){var e=t.data;this.elements.subdata(e)}},{key:"destroy",value:function(){this.elements.destroy()}}]),t}(),yt=function(){function t(e,n){l()(this,t),this.framebuffer=void 0;var r=n.width,i=n.height,o=n.color,a=n.colors,s=(n.depth,n.stencil,{width:r,height:i});Array.isArray(a)&&(s.colors=a.map(function(t){return t.get()})),o&&"boolean"!=typeof o&&(s.color=o.get()),this.framebuffer=e.framebuffer(s)}return c()(t,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(t){var e=t.width,n=t.height;this.framebuffer.resize(e,n)}}]),t}(),bt=n("Oy1H"),_t=n.n(bt),xt=n("9UkZ"),wt=n.n(xt);function St(t){var e={};return Object.keys(t).forEach(function(n){!function t(e,n,r,i){if(null===n||"number"==typeof n||"boolean"==typeof n||Array.isArray(n)&&"number"==typeof n[0]||d()(n)||""===n||void 0!==n.resize)return void(r["".concat(i&&i+".").concat(e)]=n);wt()(n)&&Object.keys(n).forEach(function(o){t(o,n[o],r,"".concat(i&&i+".").concat(e))});Array.isArray(n)&&n.forEach(function(n,o){Object.keys(n).forEach(function(a){t(a,n[a],r,"".concat(i&&i+".").concat(e,"[").concat(o,"]"))})})}(n,t[n],e,"")}),e}function Ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(n),!0).forEach(function(e){a()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ot=function(){function t(e,n){l()(this,t),this.reGl=void 0,this.drawCommand=void 0,this.uniforms={},this.reGl=e;var r=n.vs,i=n.fs,o=n.defines,a=n.attributes,s=n.uniforms,u=n.primitive,c=n.count,h=n.elements,d=n.depth,f=n.blend,p=n.stencil,g=n.cull,v=n.instances,m=n.scissor,y=n.viewport,b={};s&&(this.uniforms=St(s),Object.keys(s).forEach(function(t){b[t]=e.prop(t)}));var _={};Object.keys(a).forEach(function(t){_[t]=a[t].get()});var w=o&&this.generateDefines(o)||"",S={attributes:_,frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n#else\n precision mediump float;\n#endif\n".concat(w,"\n").concat(i),uniforms:b,vert:"\n".concat(w,"\n").concat(r),primitive:X[void 0===u?x.TRIANGLES:u]};v&&(S.instances=v),c&&(S.count=c),h&&(S.elements=h.get()),m&&(S.scissor=m),y&&(S.viewport=y),this.initDepthDrawParams({depth:d},S),this.initBlendDrawParams({blend:f},S),this.initStencilDrawParams({stencil:p},S),this.initCullDrawParams({cull:g},S),this.drawCommand=e(S)}return c()(t,[{key:"addUniforms",value:function(t){this.uniforms=kt(kt({},this.uniforms),St(t))}},{key:"draw",value:function(t){var e=kt(kt({},this.uniforms),St(t.uniforms||{})),n={};Object.keys(e).forEach(function(t){var r=_t()(e[t]);"boolean"===r||"number"===r||Array.isArray(e[t])||e[t].BYTES_PER_ELEMENT?n[t]=e[t]:"string"===r||(n[t]=e[t].get())}),this.drawCommand(n)}},{key:"destroy",value:function(){}},{key:"initDepthDrawParams",value:function(t,e){var n=t.depth;n&&(e.depth={enable:void 0===n.enable||!!n.enable,mask:void 0===n.mask||!!n.mask,func:nt[n.func||x.LESS],range:n.range||[0,1]})}},{key:"initBlendDrawParams",value:function(t,e){var n=t.blend;if(n){var r=n.enable,i=n.func,o=n.equation,a=n.color,s=void 0===a?[0,0,0,0]:a;e.blend={enable:!!r,func:{srcRGB:it[i&&i.srcRGB||x.SRC_ALPHA],srcAlpha:it[i&&i.srcAlpha||x.SRC_ALPHA],dstRGB:it[i&&i.dstRGB||x.ONE_MINUS_SRC_ALPHA],dstAlpha:it[i&&i.dstAlpha||x.ONE_MINUS_SRC_ALPHA]},equation:{rgb:rt[o&&o.rgb||x.FUNC_ADD],alpha:rt[o&&o.alpha||x.FUNC_ADD]},color:s}}}},{key:"initStencilDrawParams",value:function(t,e){var n=t.stencil;if(n){var r=n.enable,i=n.mask,o=void 0===i?-1:i,a=n.func,s=void 0===a?{cmp:x.ALWAYS,ref:0,mask:-1}:a,l=n.opFront,u=void 0===l?{fail:x.KEEP,zfail:x.KEEP,zpass:x.KEEP}:l,c=n.opBack,h=void 0===c?{fail:x.KEEP,zfail:x.KEEP,zpass:x.KEEP}:c;e.stencil={enable:!!r,mask:o,func:kt(kt({},s),{},{cmp:ot[s.cmp]}),opFront:{fail:at[u.fail],zfail:at[u.zfail],zpass:at[u.zpass]},opBack:{fail:at[h.fail],zfail:at[h.zfail],zpass:at[h.zpass]}}}}},{key:"initCullDrawParams",value:function(t,e){var n=t.cull;if(n){var r=n.enable,i=n.face,o=void 0===i?x.BACK:i;e.cull={enable:!!r,face:st[o]}}}},{key:"generateDefines",value:function(t){return Object.keys(t).map(function(e){return"#define ".concat(e," ").concat(Number(t[e]))}).join("\n")}}]),t}(),Mt=function(){function t(e,n){l()(this,t),this.texture=void 0,this.width=void 0,this.height=void 0;var r=n.data,i=n.type,o=void 0===i?x.UNSIGNED_BYTE:i,a=n.width,s=n.height,u=n.flipY,c=void 0!==u&&u,h=n.format,d=void 0===h?x.RGBA:h,f=n.mipmap,p=void 0!==f&&f,g=n.wrapS,v=void 0===g?x.CLAMP_TO_EDGE:g,m=n.wrapT,y=void 0===m?x.CLAMP_TO_EDGE:m,b=n.aniso,_=void 0===b?0:b,w=n.alignment,S=void 0===w?1:w,C=n.premultiplyAlpha,k=void 0!==C&&C,O=n.mag,M=void 0===O?x.NEAREST:O,E=n.min,T=void 0===E?x.NEAREST:E,A=n.colorSpace,I=void 0===A?x.BROWSER_DEFAULT_WEBGL:A;this.width=a,this.height=s;var D={width:a,height:s,type:Z[o],format:K[d],wrapS:tt[v],wrapT:tt[y],mag:Q[M],min:Q[T],alignment:S,flipY:c,colorSpace:et[I],premultiplyAlpha:k,aniso:_};r&&(D.data=r),"number"==typeof p?D.mipmap=J[p]:"boolean"==typeof p&&(D.mipmap=p),this.texture=e.texture(D)}return c()(t,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(t){var e=t.width,n=t.height;this.texture.resize(e,n),this.width=e,this.height=n}},{key:"destroy",value:function(){this.texture.destroy()}}]),t}(),Et=function(){function t(){var e=this;l()(this,t),this.supportWebGPU=!1,this.useWGSL=!1,this.$canvas=void 0,this.gl=void 0,this.inited=void 0,this.createModel=function(){var t=i()(y.a.mark(function t(n){return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.uniforms){t.next=3;break}return t.next=3,Promise.all(Object.keys(n.uniforms).map(function(){var t=i()(y.a.mark(function t(e){var r;return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.uniforms[e]||void 0===n.uniforms[e].load){t.next=5;break}return t.next=3,n.uniforms[e].load();case 3:r=t.sent,n.uniforms[e]=r;case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()));case 3:return t.abrupt("return",new Ot(e.gl,n));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),this.createAttribute=function(t){return new Y(e.gl,t)},this.createBuffer=function(t){return new lt(e.gl,t)},this.createElements=function(t){return new mt(e.gl,t)},this.createTexture2D=function(t){return new Mt(e.gl,t)},this.createFramebuffer=function(t){return new yt(e.gl,t)},this.useFramebuffer=function(t,n){e.gl({framebuffer:t?t.get():null})(n)},this.createComputeModel=function(){var t=i()(y.a.mark(function t(n){return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new vt(e.gl,n));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),this.clear=function(t){var n=t.color,r=t.depth,i=t.stencil,o=t.framebuffer,a=void 0===o?null:o,s={color:n,depth:r,stencil:i};s.framebuffer=null===a?a:a.get(),e.gl.clear(s)},this.setScissor=function(t){e.gl&&e.gl._gl&&(t.enable&&t.box?(e.gl._gl.enable(x.SCISSOR_TEST),e.gl._gl.scissor(t.box.x,t.box.y,t.box.width,t.box.height)):e.gl._gl.disable(x.SCISSOR_TEST),e.gl._refresh())},this.viewport=function(t){var n=t.x,r=t.y,i=t.width,o=t.height;e.gl&&e.gl._gl&&(e.gl._gl.viewport(n,r,i,o),e.gl._refresh())},this.readPixels=function(t){var n=t.framebuffer,r={x:t.x,y:t.y,width:t.width,height:t.height};return n&&(r.framebuffer=n.get()),e.gl.read(r)},this.getCanvas=function(){return e.$canvas},this.getGLContext=function(){return e.gl._gl},this.destroy=function(){e.gl&&(e.gl.destroy(),e.inited=!1)}}return c()(t,[{key:"init",value:function(){var t=i()(y.a.mark(function t(e){return y.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.inited){t.next=2;break}return t.abrupt("return");case 2:return this.$canvas=e.canvas,t.next=5,new Promise(function(t,n){U()({canvas:e.canvas,attributes:{alpha:!0,antialias:e.antialias,premultipliedAlpha:!0},pixelRatio:1,extensions:["OES_element_index_uint","OES_texture_float","OES_standard_derivatives","angle_instanced_arrays"],optionalExtensions:["EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture"],profile:!0,onDone:function(e,r){!e&&r||n(e),t(r)}})});case 5:this.gl=t.sent,this.inited=!0;case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"isFloatSupported",value:function(){return this.gl.limits.readFloat}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),t}(),Tt=function(){function t(){l()(this,t),this.engine=void 0,this.configService=new M}return c()(t,[{key:"setConfig",value:function(t){this.configService.set(t)}},{key:"setEngine",value:function(t){this.engine=t}},{key:"createEntity",value:function(){return _()}},{key:"createKernel",value:function(t){var e=new H(this.engine,this.configService);return"string"==typeof t?e.setBundle(JSON.parse(t)):e.setBundle(t),e.init(),e}},{key:"destroy",value:function(){this.engine.destroy()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new t;return n.setConfig(e),n.setEngine(new Et),n}}]),t}();n.d(e,"World",function(){return Tt}),n.d(e,"Kernel",function(){return H})},JL8M:function(t,e,n){"use strict";var r=n("TToO"),i=n("fzH7"),o=n("MdiT"),a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=Object(o.c)(e,[t.minX,t.minY]),l=Object(o.c)(e,[t.maxX,t.minY]),u=Object(o.c)(e,[t.minX,t.maxY]),c=Object(o.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,f=void 0===d?0:d,p=h.shadowOffsetX,g=void 0===p?0:p,v=h.shadowOffsetY,m=void 0===v?0:v,y=n-f+g,b=i+f+g,_=r-f+m,x=a+f+m;n=Math.min(n,y),i=Math.max(i,b),r=Math.min(r,_),a=Math.max(a,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.a);e.a=a},"JP+z":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"JUN/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t)}return t.prototype.insert=function(e){null!=this.body?this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e)):this.body=e},t.prototype._putBody=function(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))},t.prototype._isExternal=function(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE},t.prototype.updateForce=function(t){null!=this.body&&t!==this.body&&(this._isExternal()?t.addForce(this.body):(this.quad?this.quad.getLength():0)/this.body.distanceTo(t)<this.theta?t.addForce(this.body):(this.NW&&this.NW.updateForce(t),this.NE&&this.NE.updateForce(t),this.SW&&this.SW.updateForce(t),this.SE&&this.SE.updateForce(t)))},t}();e.default=r},Jsh2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(t,e){o[t.id]=e,i.push([])}),r&&r.forEach(function(t){var n=t.source,r=t.target,a=o[n],s=o[r];!a&&0!==a||!s&&0!==s||(i[a][s]=1,e||(i[s][a]=1))}),i};e.default=r},Jv26:function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(s),u=["%","/","?",";","#"].concat(l),c=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(t,e){var n,r,o,s,l,g=t;if(g=g.trim(),!e&&1===t.split("#").length){var v=a.exec(g);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var m=i.exec(g);if(m&&(o=(m=m[0]).toLowerCase(),this.protocol=m,g=g.substr(m.length)),(e||m||g.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(l="//"===g.substr(0,2))||m&&f[m]||(g=g.substr(2),this.slashes=!0)),!f[m]&&(l||m&&!p[m])){var y,b,_=-1;for(n=0;n<c.length;n++)-1!==(s=g.indexOf(c[n]))&&(-1===_||s<_)&&(_=s);for(-1!==(b=-1===_?g.lastIndexOf("@"):g.lastIndexOf("@",_))&&(y=g.slice(0,b),g=g.slice(b+1),this.auth=y),_=-1,n=0;n<u.length;n++)-1!==(s=g.indexOf(u[n]))&&(-1===_||s<_)&&(_=s);-1===_&&(_=g.length),":"===g[_-1]&&_--;var x=g.slice(0,_);g=g.slice(_),this.parseHost(x),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w){var S=this.hostname.split(/\./);for(n=0,r=S.length;n<r;n++){var C=S[n];if(C&&!C.match(h)){for(var k="",O=0,M=C.length;O<M;O++)C.charCodeAt(O)>127?k+="x":k+=C[O];if(!k.match(h)){var E=S.slice(0,n),T=S.slice(n+1),A=C.match(d);A&&(E.push(A[1]),T.unshift(A[2])),T.length&&(g=T.join(".")+g),this.hostname=E.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=g.indexOf("#");-1!==I&&(this.hash=g.substr(I),g=g.slice(0,I));var D=g.indexOf("?");return-1!==D&&(this.search=g.substr(D),g=g.slice(0,D)),g&&(this.pathname=g),p[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(t){var e=o.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},t.exports=function(t,e){if(t&&t instanceof r)return t;var n=new r;return n.parse(t,e),n}},"JwB+":function(t,e,n){"use strict";var r=n("TToO"),i=n("fzH7"),o=n("BuFP"),a={},s="_INDEX";var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return i.length>0?Object(o.a)(i,function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,l=o.minY,u=o.maxY;a<t&&(t=a),s>e&&(e=s),l<n&&(n=l),u>r&&(r=u)}):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return i.length>0?Object(o.a)(i,function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,l=o.minY,u=o.maxY;a<t&&(t=a),s>e&&(e=s),l<n&&(n=l),u>r&&(r=u)}):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,function(e){e.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];Object(o.f)(n)?r=n:r.type=n;var i=a[r.type];i||(i=Object(o.k)(r.type),a[r.type]=i);var s=new(this.getShapeBase()[i])(r);return this.add(s),s},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(Object(o.d)(r))n=new r(i||{parent:this});else{var a=r||{};n=new(this.getGroupBase())(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Object(o.b)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(e){t(e,n)})}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(e){t(e,n)})}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.a)(e,function(t,e){return t[s]=e,t}),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))}),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1}),e},e.prototype.findById=function(t){return this.find(function(e){return e.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(e){return e.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(e){return e.get("name")===t})},e}(i.a);e.a=l},K0Yi:function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="dist/",e(e.s=8)}([function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function r(t){for(var e=0;e<t.length;e++){var n=t[e],r=u[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var t=document.createElement("style");return t.type="text/css",c.appendChild(t),t}function o(t){var e,n,r=document.querySelector("style["+v+'~="'+t.id+'"]');if(r){if(f)return p;r.parentNode.removeChild(r)}if(m){var o=d++;r=h||(h=i()),e=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),e=function(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),g.ssrId&&t.setAttribute(v,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function a(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(12),u={},c=s&&(document.head||document.getElementsByTagName("head")[0]),h=null,d=0,f=!1,p=function(){},g=null,v="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,i){f=n,g=i||{};var o=l(t,e);return r(o),function(e){for(var n=[],i=0;i<o.length;i++){var a=o[i];(s=u[a.id]).refs--,n.push(s)}e?r(o=l(t,e)):o=[];for(i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete u[s.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e,n,r,i,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=r),u){var h=c.functional,d=h?c.render:c.beforeCreate;h?(c._injectStyles=u,c.render=function(t,e){return u.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:a,exports:s,options:c}}},function(t,e,n){"use strict";var r=n(4),i=n(5);n.n(i),e.a={name:"VueAudio",mixins:[r.a],props:["width"],data:function(){return{min:0,max:100,slider:null,thunk:null,per:0,rate:1,isMute:!0,curVolume:.5,totalWidth:500}},watch:{curProgress:function(t){document.onmouseup||(this.per=t)}},computed:{curProgress:function(){return(Math.round(1e4*this.progress)/100).toFixed(2)},scale:function(){return(this.per-this.min)/(this.max-this.min)},pWidth:function(){return this.slider?this.slider.offsetWidth*this.scale+"px":"0px"},left:function(){return this.slider?this.slider.offsetWidth*this.scale-this.thunk.offsetWidth/2+"px":"0px"}},methods:{handleModifyProgress:function(t){if("slider"===t.target.className||"process"===t.target.className){var e=t.offsetX/this.slider.offsetWidth;this.setProgress(e)}},handleSetRate:function(){1===this.rate?(this.rate=.9,this.setRate(this.rate)):.9===this.rate?(this.rate=1.2,this.setRate(this.rate)):(this.rate=1,this.setRate(this.rate))},handleToggleMute:function(){this.isMute?this.isMute=!1:this.isMute=!0,this.toggleMute()},handleSetVolume:function(t){t?this.curVolume+=.1:this.curVolume-=.1,this.curVolume>1?this.curVolume=1:this.curVolume<0&&(this.curVolume=0),this.setVolume(this.curVolume)},_sToMs:function(t){if("number"!=typeof t)return"00:00";t=parseInt(t);var e=void 0;return e=Math.floor(t/60),t%=60,t+="",(e=1==(e+="").length?"0"+e:e)+":"+(t=1==t.length?"0"+t:t)}},mounted:function(){var t=this;this.width&&"number"==typeof this.width&&(this.totalWidth=this.width+"px"),this.setVolume(this.curVolume),this.slider=this.$refs.slider,this.thunk=this.$refs.trunk,this.thunk.onmousedown=function(e){var n=parseInt(t.pWidth),r=e.clientX;return document.onmousemove=function(e){var i=(e.clientX-r+n)/t.slider.offsetWidth;t.per=Math.ceil((t.max-t.min)*i+t.min),t.per=Math.max(t.per,t.min),t.per=Math.min(t.per,t.max)},document.onmouseup=function(){document.onmousemove=document.onmouseup=null,t.setProgress(t.scale)},!1}}}},function(t,e,n){"use strict";var r=n(13),i=(n.n(r),n(15)),o=n.n(i),a=n(16),s=n.n(a),l=n(17),u=n.n(l),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a={props:{audioSource:{type:String,required:!0,validator:function(t){return"string"==typeof t&&t.length>0}},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:Boolean,default:!0},html5:{type:Boolean,default:!1},formats:{type:Array,default:function(){return[]}},xhrWithCredentials:{type:Boolean,default:!1}},data:function(){var t=this;return{_howl:null,playing:!1,muted:!1,volume:1,rate:1,seek:0,duration:0,_polls:{seek:{id:null,interval:250,hook:function(){t.seek=t.$data._howl.seek()}}},_howlEvents:[{name:"load",hook:function(){t.duration=t.$data._howl.duration()}},"loaderror","playerror",{name:"play",hook:function(){t.playing=!0}},{name:"end",hook:function(){t.playing=!1}},{name:"pause",hook:function(){t.playing=!1}},{name:"stop",hook:function(){t.playing=!1,null!=t.$data._howl&&(t.seek=t.$data._howl.seek())}},"mute",{name:"volume",hook:function(){t.volume=t.$data._howl.volume()}},{name:"rate",hook:function(){t.rate=t.$data._howl.rate()}},{name:"seek",hook:function(){t.playing||(t.seek=t.$data._howl.seek())}},"fade"]}},computed:{progress:function(){return 0===this.duration?0:this.seek/this.duration}},created:function(){this._initialize()},beforeDestroy:function(){this._cleanup()},watch:{playing:function(t){this.seek=this.$data._howl.seek(),t?this.$data._polls.seek.id=setInterval(this.$data._polls.seek.hook,this.$data._polls.seek.interval):clearInterval(this.$data._polls.seek.id)},audioSource:function(t){this._reinitialize()}},methods:{_reinitialize:function(){this._cleanup(!1),this._initialize()},_initialize:function(){var t=this;this.$data._howl=new r.Howl({src:this.audioSource,volume:this.volume,html5:this.html5,loop:this.loop,preload:this.preload,autoplay:this.autoplay,mute:this.muted,rate:this.rate,format:this.formats,xhrWithCredentials:this.xhrWithCredentials});var e=this.$data._howl.duration();this.duration=e,e>0&&this.$emit("load"),this.$data._howlEvents=this.$data._howlEvents.map(function(e){"string"==typeof e&&(e={name:e});var n=function(n,r){"function"==typeof e.hook&&e.hook(n,r),t.$emit(e.name,n,r)};return t.$data._howl.on(e.name,n),u()({},e,{handler:n})})},_cleanup:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$data._howl&&this.stop(),s()(this.$data._polls).forEach(function(t){null!=t.id&&clearInterval(t.id)}),this.$data._howlEvents.map(function(e){if(e.handler){t.$data._howl&&t.$data._howl.off(e.name,e.handler);var n=u()({},e);return delete n.handler,n}return e}),this.$data._howl=null,this.duration=0,e&&(this.muted=!1,this.volume=1,this.rate=1)},play:function(){this.playing||this.$data._howl.play()},pause:function(){this.playing&&this.$data._howl.pause()},togglePlayback:function(){this.playing?this.$data._howl.pause():this.$data._howl.play()},stop:function(){this.$data._howl.stop()},mute:function(){this.$data._howl.mute(!0),this.muted=!0},unmute:function(){this.$data._howl.mute(!1),this.muted=!1},toggleMute:function(){this.$data._howl.mute(!this.muted),this.muted=!this.muted},setVolume:function(t){if("number"!=typeof t)throw new Error("volume must be a number, got a "+(void 0===t?"undefined":c(t))+" instead");this.$data._howl.volume(o()(t,0,1))},setRate:function(t){if("number"!=typeof t)throw new Error("rate must be a number, got a "+(void 0===t?"undefined":c(t))+" instead");this.$data._howl.rate(o()(t,.5,4))},setSeek:function(t){if("number"!=typeof t)throw new Error("seek must be a number, got a "+(void 0===t?"undefined":c(t))+" instead");this.$data._howl.seek(o()(t,0,this.duration))},setProgress:function(t){if("number"!=typeof t)throw new Error("progress must be a number, got a "+(void 0===t?"undefined":c(t))+" instead");this.setSeek(o()(t,0,1)*this.duration)}}}},function(t,e,n){var r=n(18);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("53c61571",r,!0,{})},function(t,e,n){t.exports=n.p+"fonts_/iconfont.c27c4ff.eot"},function(t,e,n){"use strict";var r=n(4),i=n(5);n.n(i),e.a={name:"MiniAudio",mixins:[r.a],props:["width"],data:function(){return{min:0,max:100,slider:null,thunk:null,per:0,rate:1,isMute:!0,curVolume:.5,totalWidth:500}},watch:{curProgress:function(t){document.onmouseup||(this.per=t)}},computed:{curProgress:function(){return(Math.round(1e4*this.progress)/100).toFixed(2)},scale:function(){return(this.per-this.min)/(this.max-this.min)},pWidth:function(){return this.slider?this.slider.offsetWidth*this.scale+"px":"0px"},left:function(){return this.slider?this.slider.offsetWidth*this.scale-this.thunk.offsetWidth/2+"px":"0px"}},methods:{handleModifyProgress:function(t){if("slider"===t.target.className||"process"===t.target.className){var e=t.offsetX/this.slider.offsetWidth;this.setProgress(e)}},handleToggleMute:function(){this.isMute?this.isMute=!1:this.isMute=!0,this.toggleMute()},_sToMs:function(t){if("number"!=typeof t)return"00:00";t=parseInt(t);var e=void 0;return e=Math.floor(t/60),t%=60,t+="",(e=1==(e+="").length?"0"+e:e)+":"+(t=1==t.length?"0"+t:t)}},mounted:function(){var t=this;this.width&&"number"==typeof this.width&&(this.totalWidth=this.width+"px"),this.setVolume(this.curVolume),this.slider=this.$refs.slider,this.thunk=this.$refs.trunk,this.thunk.onmousedown=function(e){var n=parseInt(t.pWidth),r=e.clientX;return document.onmousemove=function(e){var i=(e.clientX-r+n)/t.slider.offsetWidth;t.per=Math.ceil((t.max-t.min)*i+t.min),t.per=Math.max(t.per,t.min),t.per=Math.min(t.per,t.max)},document.onmouseup=function(){document.onmousemove=document.onmouseup=null,t.setProgress(t.scale)},!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"VueAudioPlugin",function(){return a});var r=n(9),i=n(24);n.d(e,"VueAudio",function(){return r.a});var o={VueAudio:r.a,MiniAudio:i.a},a={install:function(t,e){Object.keys(o).forEach(function(e){t.component(o[e].name,o[e])})}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),e.default=a},function(t,e,n){"use strict";var r=n(3),i=n(23),o=function(t){n(10)},a=n(2)(r.a,i.a,!1,o,"data-v-14400722",null);e.a=a.exports},function(t,e,n){var r=n(11);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("26d24087",r,!0,{})},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".vueAudioBetter[data-v-14400722]{overflow:hidden;width:500px;margin:0 auto;background-color:#f3f2bd;border-radius:8px;box-shadow:5px 5px 10px -4px #63645e;background-image:linear-gradient(90deg,#9ca5f5,#7ff5ae)}.vueAudioBetter .total[data-v-14400722]{margin:20px auto;display:flex;align-items:center;justify-content:space-around;width:80%}.vueAudioBetter .operatorButton[data-v-14400722]{margin:0 auto;display:flex;align-items:center;justify-content:space-around;width:80%;height:38px}.operatorButton .rate[data-v-14400722]{font-size:32px}.operatorButton span[data-v-14400722]{font-size:24px;color:#0c0c0cb8;cursor:pointer}.operatorButton span[data-v-14400722]:first-child{color:#4a3535;font-size:28px}.operatorButton span[data-v-14400722]:hover{font-size:30px}.operatorButton span[data-v-14400722]:last-child:hover{font-size:36px}.vueAudioBetter .slider[data-v-14400722]{position:relative;margin:26px auto;width:80%;height:10px;background:#f8f7f7;border-radius:5px;cursor:pointer}.slider .process[data-v-14400722]{position:absolute;left:0;top:0;width:112px;height:10px;border-radius:5px;background:#409eff}.slider .thunk[data-v-14400722]{position:absolute;left:100px;top:-7px;width:20px;height:20px}.slider .block[data-v-14400722]{width:20px;height:20px;border-radius:50%;border:2px solid #409eff;background:#fff;transition:all .2s}.slider .block[data-v-14400722]:hover{transform:scale(1.1);opacity:.6}.slider .progressInfo[data-v-14400722]{position:absolute;top:-28px;color:#117eeb;font-weight:600}.operatorButton .iconfont[data-v-14400722]:active{position:relative;top:2px;left:2px}",""])},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}},function(t,e,n){(function(n){var r;
- /*!
- * howler.js v2.1.2
- * howlerjs.com
- *
- * (c) 2013-2019, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */!function(){"use strict";var i=function(){this.init()};i.prototype={init:function(){var t=this||o;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var e=this||o;if(t=parseFloat(t),e.ctx||f(),void 0!==t&&t>=0&&t<=1){if(e._volume=t,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t,o.ctx.currentTime);for(var n=0;n<e._howls.length;n++)if(!e._howls[n]._webAudio)for(var r=e._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=e._howls[n]._soundById(r[i]);a&&a._node&&(a._node.volume=a._volume*t)}return e}return e._volume},mute:function(t){var e=this||o;e.ctx||f(),e._muted=t,e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t?0:e._volume,o.ctx.currentTime);for(var n=0;n<e._howls.length;n++)if(!e._howls[n]._webAudio)for(var r=e._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=e._howls[n]._soundById(r[i]);a&&a._node&&(a._node.muted=!!t||a._muted)}return e},unload:function(){for(var t=this||o,e=t._howls.length-1;e>=0;e--)t._howls[e].unload();return t.usingWebAudio&&t.ctx&&void 0!==t.ctx.close&&(t.ctx.close(),t.ctx=null,f()),t},codecs:function(t){return(this||o)._codecs[t.replace(/^x-/,"")]},_setup:function(){var t=this||o;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(t._canPlayEvent="canplay")}catch(e){t.noAudio=!0}else t.noAudio=!0;try{(new Audio).muted&&(t.noAudio=!0)}catch(t){}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var t=this||o,e=null;try{e="undefined"!=typeof Audio?new Audio:null}catch(e){return t}if(!e||"function"!=typeof e.canPlayType)return t;var n=e.canPlayType("audio/mpeg;").replace(/^no$/,""),r=t._navigator&&t._navigator.userAgent.match(/OPR\/([0-6].)/g),i=r&&parseInt(r[0].split("/")[1],10)<33;return t._codecs={mp3:!(i||!n&&!e.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(e.canPlayType("audio/x-mp4;")||e.canPlayType("audio/mp4;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(e.canPlayType("audio/x-flac;")||e.canPlayType("audio/flac;")).replace(/^no$/,"")},t},_unlockAudio:function(){var t=this||o;if(!t._audioUnlocked&&t.ctx){t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050);var e=function(n){for(var r=0;r<t.html5PoolSize;r++)try{var i=new Audio;i._unlocked=!0,t._releaseHtml5Audio(i)}catch(n){t.noAudio=!0}for(r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var o=t._howls[r]._getSoundIds(),a=0;a<o.length;a++){var s=t._howls[r]._soundById(o[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}t._autoResume();var l=t.ctx.createBufferSource();l.buffer=t._scratchBuffer,l.connect(t.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof t.ctx.resume&&t.ctx.resume(),l.onended=function(){l.disconnect(0),t._audioUnlocked=!0,document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",e,!0),document.removeEventListener("click",e,!0);for(var n=0;n<t._howls.length;n++)t._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",e,!0),document.addEventListener("click",e,!0),t}},_obtainHtml5Audio:function(){var t=this||o;if(t._html5AudioPool.length)return t._html5AudioPool.pop();var e=(new Audio).play();return e&&"undefined"!=typeof Promise&&(e instanceof Promise||"function"==typeof e.then)&&e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(t){var e=this||o;return t._unlocked&&e._html5AudioPool.push(t),e},_autoSuspend:function(){var t=this;if(t.autoSuspend&&t.ctx&&void 0!==t.ctx.suspend&&o.usingWebAudio){for(var e=0;e<t._howls.length;e++)if(t._howls[e]._webAudio)for(var n=0;n<t._howls[e]._sounds.length;n++)if(!t._howls[e]._sounds[n]._paused)return t;return t._suspendTimer&&clearTimeout(t._suspendTimer),t._suspendTimer=setTimeout(function(){t.autoSuspend&&(t._suspendTimer=null,t.state="suspending",t.ctx.suspend().then(function(){t.state="suspended",t._resumeAfterSuspend&&(delete t._resumeAfterSuspend,t._autoResume())}))},3e4),t}},_autoResume:function(){var t=this;if(t.ctx&&void 0!==t.ctx.resume&&o.usingWebAudio)return"running"===t.state&&t._suspendTimer?(clearTimeout(t._suspendTimer),t._suspendTimer=null):"suspended"===t.state?(t.ctx.resume().then(function(){t.state="running";for(var e=0;e<t._howls.length;e++)t._howls[e]._emit("resume")}),t._suspendTimer&&(clearTimeout(t._suspendTimer),t._suspendTimer=null)):"suspending"===t.state&&(t._resumeAfterSuspend=!0),t}};var o=new i,a=function(t){t.src&&0!==t.src.length?this.init(t):console.error("An array of source files must be passed with any new Howl.")};a.prototype={init:function(t){var e=this;return o.ctx||f(),e._autoplay=t.autoplay||!1,e._format="string"!=typeof t.format?t.format:[t.format],e._html5=t.html5||!1,e._muted=t.mute||!1,e._loop=t.loop||!1,e._pool=t.pool||5,e._preload="boolean"!=typeof t.preload||t.preload,e._rate=t.rate||1,e._sprite=t.sprite||{},e._src="string"!=typeof t.src?t.src:[t.src],e._volume=void 0!==t.volume?t.volume:1,e._xhrWithCredentials=t.xhrWithCredentials||!1,e._duration=0,e._state="unloaded",e._sounds=[],e._endTimers={},e._queue=[],e._playLock=!1,e._onend=t.onend?[{fn:t.onend}]:[],e._onfade=t.onfade?[{fn:t.onfade}]:[],e._onload=t.onload?[{fn:t.onload}]:[],e._onloaderror=t.onloaderror?[{fn:t.onloaderror}]:[],e._onplayerror=t.onplayerror?[{fn:t.onplayerror}]:[],e._onpause=t.onpause?[{fn:t.onpause}]:[],e._onplay=t.onplay?[{fn:t.onplay}]:[],e._onstop=t.onstop?[{fn:t.onstop}]:[],e._onmute=t.onmute?[{fn:t.onmute}]:[],e._onvolume=t.onvolume?[{fn:t.onvolume}]:[],e._onrate=t.onrate?[{fn:t.onrate}]:[],e._onseek=t.onseek?[{fn:t.onseek}]:[],e._onunlock=t.onunlock?[{fn:t.onunlock}]:[],e._onresume=[],e._webAudio=o.usingWebAudio&&!e._html5,void 0!==o.ctx&&o.ctx&&o.autoUnlock&&o._unlockAudio(),o._howls.push(e),e._autoplay&&e._queue.push({event:"play",action:function(){e.play()}}),e._preload&&e.load(),e},load:function(){var t=this,e=null;if(!o.noAudio){"string"==typeof t._src&&(t._src=[t._src]);for(var n=0;n<t._src.length;n++){var r,i;if(t._format&&t._format[n])r=t._format[n];else{if("string"!=typeof(i=t._src[n])){t._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(r=/^data:audio\/([^;,]+);/i.exec(i))||(r=/\.([^.]+)$/.exec(i.split("?",1)[0])),r&&(r=r[1].toLowerCase())}if(r||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),r&&o.codecs(r)){e=t._src[n];break}}return e?(t._src=e,t._state="loading","https:"===window.location.protocol&&"http:"===e.slice(0,5)&&(t._html5=!0,t._webAudio=!1),new s(t),t._webAudio&&u(t),t):void t._emit("loaderror",null,"No codec support for selected audio sources.")}t._emit("loaderror",null,"No audio support.")},play:function(t,e){var n=this,r=null;if("number"==typeof t)r=t,t=null;else{if("string"==typeof t&&"loaded"===n._state&&!n._sprite[t])return null;if(void 0===t&&(t="__default",!n._playLock)){for(var i=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(i++,r=n._sounds[a]._id);1===i?t=null:r=null}}var s=r?n._soundById(r):n._inactiveSound();if(!s)return null;if(r&&!t&&(t=s._sprite||"__default"),"loaded"!==n._state){s._sprite=t,s._ended=!1;var l=s._id;return n._queue.push({event:"play",action:function(){n.play(l)}}),l}if(r&&!s._paused)return e||n._loadQueue("play"),s._id;n._webAudio&&o._autoResume();var u=Math.max(0,s._seek>0?s._seek:n._sprite[t][0]/1e3),c=Math.max(0,(n._sprite[t][0]+n._sprite[t][1])/1e3-u),h=1e3*c/Math.abs(s._rate),d=n._sprite[t][0]/1e3,f=(n._sprite[t][0]+n._sprite[t][1])/1e3,p=!(!s._loop&&!n._sprite[t][2]);s._sprite=t,s._ended=!1;var g=function(){s._paused=!1,s._seek=u,s._start=d,s._stop=f,s._loop=p};if(!(u>=f)){var v=s._node;if(n._webAudio){var m=function(){n._playLock=!1,g(),n._refreshBuffer(s);var t=s._muted||n._muted?0:s._volume;v.gain.setValueAtTime(t,o.ctx.currentTime),s._playStart=o.ctx.currentTime,void 0===v.bufferSource.start?s._loop?v.bufferSource.noteGrainOn(0,u,86400):v.bufferSource.noteGrainOn(0,u,c):s._loop?v.bufferSource.start(0,u,86400):v.bufferSource.start(0,u,c),h!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h)),e||setTimeout(function(){n._emit("play",s._id),n._loadQueue()},0)};"running"===o.state?m():(n._playLock=!0,n.once("resume",m),n._clearTimer(s._id))}else{var y=function(){v.currentTime=u,v.muted=s._muted||n._muted||o._muted||v.muted,v.volume=s._volume*o.volume(),v.playbackRate=s._rate;try{var r=v.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,g(),r.then(function(){n._playLock=!1,v._unlocked=!0,e||(n._emit("play",s._id),n._loadQueue())}).catch(function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):e||(n._playLock=!1,g(),n._emit("play",s._id),n._loadQueue()),v.playbackRate=s._rate,v.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==t||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h):(n._endTimers[s._id]=function(){n._ended(s),v.removeEventListener("ended",n._endTimers[s._id],!1)},v.addEventListener("ended",n._endTimers[s._id],!1))}catch(t){n._emit("playerror",s._id,t)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===v.src&&(v.src=n._src,v.load());var b=window&&window.ejecta||!v.readyState&&o._navigator.isCocoonJS;if(v.readyState>=3||b)y();else{n._playLock=!0;var _=function(){y(),v.removeEventListener(o._canPlayEvent,_,!1)};v.addEventListener(o._canPlayEvent,_,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(t){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(t)}}),e;for(var n=e._getSoundIds(t),r=0;r<n.length;r++){e._clearTimer(n[r]);var i=e._soundById(n[r]);if(i&&!i._paused&&(i._seek=e.seek(n[r]),i._rateSeek=0,i._paused=!0,e._stopFade(n[r]),i._node))if(e._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),e._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||e._emit("pause",i?i._id:null)}return e},stop:function(t,e){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(t)}}),n;for(var r=n._getSoundIds(t),i=0;i<r.length;i++){n._clearTimer(r[i]);var o=n._soundById(r[i]);o&&(o._seek=o._start||0,o._rateSeek=0,o._paused=!0,o._ended=!0,n._stopFade(r[i]),o._node&&(n._webAudio?o._node.bufferSource&&(void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),n._cleanBuffer(o._node)):isNaN(o._node.duration)&&o._node.duration!==1/0||(o._node.currentTime=o._start||0,o._node.pause(),o._node.duration===1/0&&n._clearSound(o._node))),e||n._emit("stop",o._id))}return n},mute:function(t,e){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(t,e)}}),n;if(void 0===e){if("boolean"!=typeof t)return n._muted;n._muted=t}for(var r=n._getSoundIds(e),i=0;i<r.length;i++){var a=n._soundById(r[i]);a&&(a._muted=t,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(t?0:a._volume,o.ctx.currentTime):a._node&&(a._node.muted=!!o._muted||t),n._emit("mute",a._id))}return n},volume:function(){var t,e,n,r=this,i=arguments;if(0===i.length)return r._volume;if(1===i.length||2===i.length&&void 0===i[1]?r._getSoundIds().indexOf(i[0])>=0?e=parseInt(i[0],10):t=parseFloat(i[0]):i.length>=2&&(t=parseFloat(i[0]),e=parseInt(i[1],10)),!(void 0!==t&&t>=0&&t<=1))return(n=e?r._soundById(e):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===e&&(r._volume=t),e=r._getSoundIds(e);for(var a=0;a<e.length;a++)(n=r._soundById(e[a]))&&(n._volume=t,i[2]||r._stopFade(e[a]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(t,o.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=t*o.volume()),r._emit("volume",n._id));return r},fade:function(t,e,n,r){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(t,e,n,r)}}),i;t=parseFloat(t),e=parseFloat(e),n=parseFloat(n),i.volume(t,r);for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var l=i._soundById(a[s]);if(l){if(r||i._stopFade(a[s]),i._webAudio&&!l._muted){var u=o.ctx.currentTime,c=u+n/1e3;l._volume=t,l._node.gain.setValueAtTime(t,u),l._node.gain.linearRampToValueAtTime(e,c)}i._startFadeInterval(l,t,e,n,a[s],void 0===r)}}return i},_startFadeInterval:function(t,e,n,r,i,o){var a=this,s=e,l=n-e,u=Math.abs(l/.01),c=Math.max(4,u>0?r/u:r),h=Date.now();t._fadeTo=n,t._interval=setInterval(function(){var i=(Date.now()-h)/r;h=Date.now(),s+=l*i,s=Math.max(0,s),s=Math.min(1,s),s=Math.round(100*s)/100,a._webAudio?t._volume=s:a.volume(s,t._id,!0),o&&(a._volume=s),(n<e&&s<=n||n>e&&s>=n)&&(clearInterval(t._interval),t._interval=null,t._fadeTo=null,a.volume(n,t._id),a._emit("fade",t._id))},c)},_stopFade:function(t){var e=this,n=e._soundById(t);return n&&n._interval&&(e._webAudio&&n._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(n._interval),n._interval=null,e.volume(n._fadeTo,t),n._fadeTo=null,e._emit("fade",t)),e},loop:function(){var t,e,n,r=this,i=arguments;if(0===i.length)return r._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=r._soundById(parseInt(i[0],10)))&&n._loop;t=i[0],r._loop=t}else 2===i.length&&(t=i[0],e=parseInt(i[1],10));for(var o=r._getSoundIds(e),a=0;a<o.length;a++)(n=r._soundById(o[a]))&&(n._loop=t,r._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=t,t&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop)));return r},rate:function(){var t,e,n,r=this,i=arguments;if(0===i.length)e=r._sounds[0]._id;else if(1===i.length){r._getSoundIds().indexOf(i[0])>=0?e=parseInt(i[0],10):t=parseFloat(i[0])}else 2===i.length&&(t=parseFloat(i[0]),e=parseInt(i[1],10));if("number"!=typeof t)return(n=r._soundById(e))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===e&&(r._rate=t),e=r._getSoundIds(e);for(var a=0;a<e.length;a++)if(n=r._soundById(e[a])){r.playing(e[a])&&(n._rateSeek=r.seek(e[a]),n._playStart=r._webAudio?o.ctx.currentTime:n._playStart),n._rate=t,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(t,o.ctx.currentTime):n._node&&(n._node.playbackRate=t);var s=r.seek(e[a]),l=1e3*((r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-s)/Math.abs(n._rate);!r._endTimers[e[a]]&&n._paused||(r._clearTimer(e[a]),r._endTimers[e[a]]=setTimeout(r._ended.bind(r,n),l)),r._emit("rate",n._id)}return r},seek:function(){var t,e,n=this,r=arguments;if(0===r.length)e=n._sounds[0]._id;else if(1===r.length){n._getSoundIds().indexOf(r[0])>=0?e=parseInt(r[0],10):n._sounds.length&&(e=n._sounds[0]._id,t=parseFloat(r[0]))}else 2===r.length&&(t=parseFloat(r[0]),e=parseInt(r[1],10));if(void 0===e)return n;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var i=n._soundById(e);if(i){if(!("number"==typeof t&&t>=0)){if(n._webAudio){var a=n.playing(e)?o.ctx.currentTime-i._playStart:0,s=i._rateSeek?i._rateSeek-i._seek:0;return i._seek+(s+a*Math.abs(i._rate))}return i._node.currentTime}var l=n.playing(e);l&&n.pause(e,!0),i._seek=t,i._ended=!1,n._clearTimer(e),n._webAudio||!i._node||isNaN(i._node.duration)||(i._node.currentTime=t);var u=function(){n._emit("seek",e),l&&n.play(e,!0)};if(l&&!n._webAudio){var c=function(){n._playLock?setTimeout(c,0):u()};setTimeout(c,0)}else u()}return n},playing:function(t){var e=this;if("number"==typeof t){var n=e._soundById(t);return!!n&&!n._paused}for(var r=0;r<e._sounds.length;r++)if(!e._sounds[r]._paused)return!0;return!1},duration:function(t){var e=this,n=e._duration,r=e._soundById(t);return r&&(n=e._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var t=this,e=t._sounds,n=0;n<e.length;n++)e[n]._paused||t.stop(e[n]._id),t._webAudio||(t._clearSound(e[n]._node),e[n]._node.removeEventListener("error",e[n]._errorFn,!1),e[n]._node.removeEventListener(o._canPlayEvent,e[n]._loadFn,!1),o._releaseHtml5Audio(e[n]._node)),delete e[n]._node,t._clearTimer(e[n]._id);var r=o._howls.indexOf(t);r>=0&&o._howls.splice(r,1);var i=!0;for(n=0;n<o._howls.length;n++)if(o._howls[n]._src===t._src||t._src.indexOf(o._howls[n]._src)>=0){i=!1;break}return l&&i&&delete l[t._src],o.noAudio=!1,t._state="unloaded",t._sounds=[],t=null,null},on:function(t,e,n,r){var i=this["_on"+t];return"function"==typeof e&&i.push(r?{id:n,fn:e,once:r}:{id:n,fn:e}),this},off:function(t,e,n){var r=this,i=r["_on"+t],o=0;if("number"==typeof e&&(n=e,e=null),e||n)for(o=0;o<i.length;o++){var a=n===i[o].id;if(e===i[o].fn&&a||!e&&a){i.splice(o,1);break}}else if(t)r["_on"+t]=[];else{var s=Object.keys(r);for(o=0;o<s.length;o++)0===s[o].indexOf("_on")&&Array.isArray(r[s[o]])&&(r[s[o]]=[])}return r},once:function(t,e,n){return this.on(t,e,n,1),this},_emit:function(t,e,n){for(var r=this,i=r["_on"+t],o=i.length-1;o>=0;o--)i[o].id&&i[o].id!==e&&"load"!==t||(setTimeout(function(t){t.call(this,e,n)}.bind(r,i[o].fn),0),i[o].once&&r.off(t,i[o].fn,i[o].id));return r._loadQueue(t),r},_loadQueue:function(t){var e=this;if(e._queue.length>0){var n=e._queue[0];n.event===t&&(e._queue.shift(),e._loadQueue()),t||n.action()}return e},_ended:function(t){var e=this,n=t._sprite;if(!e._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime<t._stop)return setTimeout(e._ended.bind(e,t),100),e;var r=!(!t._loop&&!e._sprite[n][2]);if(e._emit("end",t._id),!e._webAudio&&r&&e.stop(t._id,!0).play(t._id),e._webAudio&&r){e._emit("play",t._id),t._seek=t._start||0,t._rateSeek=0,t._playStart=o.ctx.currentTime;var i=1e3*(t._stop-t._start)/Math.abs(t._rate);e._endTimers[t._id]=setTimeout(e._ended.bind(e,t),i)}return e._webAudio&&!r&&(t._paused=!0,t._ended=!0,t._seek=t._start||0,t._rateSeek=0,e._clearTimer(t._id),e._cleanBuffer(t._node),o._autoSuspend()),e._webAudio||r||e.stop(t._id,!0),e},_clearTimer:function(t){var e=this;if(e._endTimers[t]){if("function"!=typeof e._endTimers[t])clearTimeout(e._endTimers[t]);else{var n=e._soundById(t);n&&n._node&&n._node.removeEventListener("ended",e._endTimers[t],!1)}delete e._endTimers[t]}return e},_soundById:function(t){for(var e=this,n=0;n<e._sounds.length;n++)if(t===e._sounds[n]._id)return e._sounds[n];return null},_inactiveSound:function(){var t=this;t._drain();for(var e=0;e<t._sounds.length;e++)if(t._sounds[e]._ended)return t._sounds[e].reset();return new s(t)},_drain:function(){var t=this,e=t._pool,n=0,r=0;if(!(t._sounds.length<e)){for(r=0;r<t._sounds.length;r++)t._sounds[r]._ended&&n++;for(r=t._sounds.length-1;r>=0;r--){if(n<=e)return;t._sounds[r]._ended&&(t._webAudio&&t._sounds[r]._node&&t._sounds[r]._node.disconnect(0),t._sounds.splice(r,1),n--)}}},_getSoundIds:function(t){if(void 0===t){for(var e=[],n=0;n<this._sounds.length;n++)e.push(this._sounds[n]._id);return e}return[t]},_refreshBuffer:function(t){return t._node.bufferSource=o.ctx.createBufferSource(),t._node.bufferSource.buffer=l[this._src],t._panner?t._node.bufferSource.connect(t._panner):t._node.bufferSource.connect(t._node),t._node.bufferSource.loop=t._loop,t._loop&&(t._node.bufferSource.loopStart=t._start||0,t._node.bufferSource.loopEnd=t._stop||0),t._node.bufferSource.playbackRate.setValueAtTime(t._rate,o.ctx.currentTime),this},_cleanBuffer:function(t){var e=o._navigator&&o._navigator.vendor.indexOf("Apple")>=0;if(o._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),e))try{t.bufferSource.buffer=o._scratchBuffer}catch(t){}return t.bufferSource=null,this},_clearSound:function(t){/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(t){this._parent=t,this.init()};s.prototype={init:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++o._counter,e._sounds.push(t),t.create(),t},create:function(){var t=this,e=t._parent,n=o._muted||t._muted||t._parent._muted?0:t._volume;return e._webAudio?(t._node=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),t._node.gain.setValueAtTime(n,o.ctx.currentTime),t._node.paused=!0,t._node.connect(o.masterGain)):(t._node=o._obtainHtml5Audio(),t._errorFn=t._errorListener.bind(t),t._node.addEventListener("error",t._errorFn,!1),t._loadFn=t._loadListener.bind(t),t._node.addEventListener(o._canPlayEvent,t._loadFn,!1),t._node.src=e._src,t._node.preload="auto",t._node.volume=n*o.volume(),t._node.load()),t},reset:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._rateSeek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++o._counter,t},_errorListener:function(){var t=this;t._parent._emit("loaderror",t._id,t._node.error?t._node.error.code:0),t._node.removeEventListener("error",t._errorFn,!1)},_loadListener:function(){var t=this,e=t._parent;e._duration=Math.ceil(10*t._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),t._node.removeEventListener(o._canPlayEvent,t._loadFn,!1)}};var l={},u=function(t){var e=t._src;if(l[e])return t._duration=l[e].duration,void d(t);if(/^data:[^;]+;base64,/.test(e)){for(var n=atob(e.split(",")[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);h(r.buffer,t)}else{var o=new XMLHttpRequest;o.open("GET",e,!0),o.withCredentials=t._xhrWithCredentials,o.responseType="arraybuffer",o.onload=function(){var e=(o.status+"")[0];"0"===e||"2"===e||"3"===e?h(o.response,t):t._emit("loaderror",null,"Failed loading audio file with status: "+o.status+".")},o.onerror=function(){t._webAudio&&(t._html5=!0,t._webAudio=!1,t._sounds=[],delete l[e],t.load())},c(o)}},c=function(t){try{t.send()}catch(e){t.onerror()}},h=function(t,e){var n=function(){e._emit("loaderror",null,"Decoding audio data failed.")},r=function(t){t&&e._sounds.length>0?(l[e._src]=t,d(e,t)):n()};"undefined"!=typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(t).then(r).catch(n):o.ctx.decodeAudioData(t,r,n)},d=function(t,e){e&&!t._duration&&(t._duration=e.duration),0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue())},f=function(){if(o.usingWebAudio){try{"undefined"!=typeof AudioContext?o.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(t){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),e=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=e?parseInt(e[1],10):null;if(t&&n&&n<9){var r=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());(o._navigator&&o._navigator.standalone&&!r||o._navigator&&!o._navigator.standalone&&!r)&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:1,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};void 0!==(r=function(){return{Howler:o,Howl:a}}.apply(e,[]))&&(t.exports=r),e.Howler=o,e.Howl=a,"undefined"!=typeof window?(window.HowlerGlobal=i,window.Howler=o,window.Howl=a,window.Sound=s):void 0!==n&&(n.HowlerGlobal=i,n.Howler=o,n.Howl=a,n.Sound=s)}(),
- /*!
- * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
- *
- * howler.js v2.1.2
- * howlerjs.com
- *
- * (c) 2013-2019, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */
- function(){"use strict";HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){var e=this;if(!e.ctx||!e.ctx.listener)return e;for(var n=e._howls.length-1;n>=0;n--)e._howls[n].stereo(t);return e},HowlerGlobal.prototype.pos=function(t,e,n){var r=this;return r.ctx&&r.ctx.listener?(e="number"!=typeof e?r._pos[1]:e,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof t?r._pos:(r._pos=[t,e,n],void 0!==r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(t,e,n,r,i,o){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return e="number"!=typeof e?s[1]:e,n="number"!=typeof n?s[2]:n,r="number"!=typeof r?s[3]:r,i="number"!=typeof i?s[4]:i,o="number"!=typeof o?s[5]:o,"number"!=typeof t?s:(a._orientation=[t,e,n,r,i,o],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(n,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(t,e,n,r,i,o),a)},Howl.prototype.init=function(t){return function(e){var n=this;return n._orientation=e.orientation||[1,0,0],n._stereo=e.stereo||null,n._pos=e.pos||null,n._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},n._onstereo=e.onstereo?[{fn:e.onstereo}]:[],n._onpos=e.onpos?[{fn:e.onpos}]:[],n._onorientation=e.onorientation?[{fn:e.onorientation}]:[],t.call(this,e)}}(Howl.prototype.init),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var o=r._getSoundIds(n),a=0;a<o.length;a++){var s=r._soundById(o[a]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,i),"spatial"===i?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),r._emit("stereo",s._id)}}return r},Howl.prototype.pos=function(e,n,r,i){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"pos",action:function(){o.pos(e,n,r,i)}}),o;if(n="number"!=typeof n?0:n,r="number"!=typeof r?-.5:r,void 0===i){if("number"!=typeof e)return o._pos;o._pos=[e,n,r]}for(var a=o._getSoundIds(i),s=0;s<a.length;s++){var l=o._soundById(a[s]);if(l){if("number"!=typeof e)return l._pos;l._pos=[e,n,r],l._node&&(l._panner&&!l._panner.pan||t(l,"spatial"),void 0!==l._panner.positionX?(l._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):l._panner.setPosition(e,n,r)),o._emit("pos",l._id)}}return o},Howl.prototype.orientation=function(e,n,r,i){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"orientation",action:function(){o.orientation(e,n,r,i)}}),o;if(n="number"!=typeof n?o._orientation[1]:n,r="number"!=typeof r?o._orientation[2]:r,void 0===i){if("number"!=typeof e)return o._orientation;o._orientation=[e,n,r]}for(var a=o._getSoundIds(i),s=0;s<a.length;s++){var l=o._soundById(a[s]);if(l){if("number"!=typeof e)return l._orientation;l._orientation=[e,n,r],l._node&&(l._panner||(l._pos||(l._pos=o._pos||[0,0,-.5]),t(l,"spatial")),void 0!==l._panner.orientationX?(l._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):l._panner.setOrientation(e,n,r)),o._emit("orientation",l._id)}}return o},Howl.prototype.pannerAttr=function(){var e,n,r,i=this,o=arguments;if(!i._webAudio)return i;if(0===o.length)return i._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return(r=i._soundById(parseInt(o[0],10)))?r._pannerAttr:i._pannerAttr;e=o[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),i._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:i._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:i._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:i._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:i._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:i._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:i._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:i._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:i._panningModel})}else 2===o.length&&(e=o[0],n=parseInt(o[1],10));for(var a=i._getSoundIds(n),s=0;s<a.length;s++)if(r=i._soundById(a[s])){var l=r._pannerAttr;l={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:l.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:l.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:l.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:l.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:l.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:l.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:l.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:l.panningModel};var u=r._panner;u?(u.coneInnerAngle=l.coneInnerAngle,u.coneOuterAngle=l.coneOuterAngle,u.coneOuterGain=l.coneOuterGain,u.distanceModel=l.distanceModel,u.maxDistance=l.maxDistance,u.refDistance=l.refDistance,u.rolloffFactor=l.rolloffFactor,u.panningModel=l.panningModel):(r._pos||(r._pos=i._pos||[0,0,-.5]),t(r,"spatial"))}return i},Sound.prototype.init=function(t){return function(){var e=this,n=e._parent;e._orientation=n._orientation,e._stereo=n._stereo,e._pos=n._pos,e._pannerAttr=n._pannerAttr,t.call(this),e._stereo?n.stereo(e._stereo):e._pos&&n.pos(e._pos[0],e._pos[1],e._pos[2],e._id)}}(Sound.prototype.init),Sound.prototype.reset=function(t){return function(){var e=this,n=e._parent;return e._orientation=n._orientation,e._stereo=n._stereo,e._pos=n._pos,e._pannerAttr=n._pannerAttr,e._stereo?n.stereo(e._stereo):e._pos?n.pos(e._pos[0],e._pos[1],e._pos[2],e._id):e._panner&&(e._panner.disconnect(0),e._panner=void 0,n._refreshBuffer(e)),t.call(this)}}(Sound.prototype.reset);var t=function(t,e){"spatial"===(e=e||"spatial")?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,void 0!==t._panner.positionX?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),void 0!==t._panner.orientationX?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}}()}).call(e,n(14))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";t.exports=function(t,e,n){if(e>n)throw new RangeError("`min` should be lower than `max`");return t<e?e:t>n?n:t}},function(t,e,n){"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},function(t,e,n){"use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */
- var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(t,e,n){var r=n(19);(t.exports=n(0)(!1)).push([t.i,"@font-face{font-family:iconfont;src:url("+r(n(6))+");src:url("+r(n(6))+'#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAhwAAsAAAAAFIAAAAgjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEbAqYbJNwATYCJANACyIABCAFhG0HgX0bFxFRlFBSF9lPTZ4Etp2Ms+EMcC7A4UYBAA8AAJgAFEgRD//t9799ZuaKP1n/N1SSRrx5IpFJLCKZKhYyidI8UrKX8O6dezMgjh2V5FcjUmiXtL30p5S8y316fk5PqfmxcBvCTbsQNtIEKPwaqJpEaiLh34HNgdY3r0yUidGpIi/uJPq5+f+/n6sTq1saTR/e1gqnU8L/82cc7jbkYWrNkniiUsU8QiMTadITkRSJnE4oCYO1lQNeNLRRhL0Vv/N2Ar2DDvTdvrh7ZKMKRgL1nupMstGaVwkYQxtbO04t4oNKm16mn4D39vPjP7gQCEmVsUMfPjlP2dGv3C7M7BiPtYJ9PoHXs8g4jynEJ2fKRznH5y3tXU2L55iNWXq39Ku1j8/f+fzvH36JMOVh3NE2/vl9E497dywtbLhx2TrdJv/mJVlRqbU6vcZgNJktRI3QEdofZDnPdhlF8OtNkAh7ByCD/QlQwP4CqMD+RhQ1v++D1rIHAB3YQ0TR8wcBDRgPYADjA4xgpiBCzB0EmAcw5GClTzmMuYmVNVZNGL9rRZZ4yaCzuSesNVzoZbMQhyiyEgutN4WFboxgs51MuVyBIGEu34TNfI4bvqoKuJhAYM7tkISXC1v5JY4Ly1fQIY2lUPUzW2jpeRhGX8VkKzbs+WVaKlLOiq3WDBK9p6dy7tAB3OKIjtRqvc13kdLVWfFzA63XFyrn1g7gT12V83eNPdNLtczA6Awyw6YSfTEKmGXpKgShyl+yhmGQv2wFAOytMMtVp59Yg4WnIRh5OUQhVq1BUGNP4SkDJNFTyoPL0/i6DjBab2qfk0QfqzxotuxxRAemzSlYsio6eNqdoJTSZQYfUMjWJE06UjG9X6SndmvDdymVKvFFgxMqnZ3DMNWqJqVEZVLJFHZswexCKcAADKoJeSHorfte8h9De9tyD7MrzqvJnh4e091tkgAGVUecD+lXRRoZuey+y5cvPhYlnkp+x1R0sQo/H4HvoRCt1riEDCfjU6Si0YUoa1pWuqh3t/1wsWRHj6iiwI/Y4IrGu0SixTIUYDTAIOo4BLP/4PE59stp5TW/cMcxVWlCARYH1pVpAA2hgNyKwGQzZmbnws+nKI6mRKTPvEMsl3s76kLkhD88ecgNPVB3NTpfgc5Xp0aZUnUAd7gUnJ6FgiUmUkL+9cZjej2llxJarTAzpE5nltEGQ4qE4D4FhHf3H12j/5wyfEHrPiO1n7ayMBiT3bSH49WH1KUeyvDwYWr6qjpdJcZCy2TvQlPisbjuratqqsuEkGAMZXEBb/lL8CAuz8qOOKMuYkhEg5BMUfEyyfYvfA003n63jr5yKHz0xJJjcp1d/MTG0fCql6S/7vYoAokg3qd4z/HD5e2Yv8kInvYyRHFJb4aPmCRIZjKKZqFGSNgkYxUEPbto3HvztPCfnEzac1oyXWornbPSaPhCayEffwW4GrctiXPdJHlbkfoSJGB2fmEi/JDMuP/Vq587jSbQ0XvCk2Ykge4zf4VszgqxrB0tL/6UHebQxBt76fxL7jutSG9e2kivhxn6qesjuqXljVdmzIPMZz64OmK9yRxUdYSXFiYPBocOFqZElv58tfBB7bNxH2I1Mn9PGrpnD5qDonQsMiOYQWITReUVkElTzopghTO5lUax7PbmqbQ2rpYpldadEd5OWypsO5GffKTTujJEJ9PDqk+3FH0ksyWaExTZ0dlRomY09tx4ZZvm+zRNyMMH6vKUj87Zhmw3ESpWxPnpzYsna7Mrb9RsiyZecQkdrP8SfpDCX+UTeXkmJaig4pPu1k/pF48sC6QI32ndVf1JG+ehXS07NEevdQUnY9zaP70lytkN/vtOPi53GhtPUo455Q6A3MUVWqyjFhaoqXyxlboo5++P3PndD+48wsqgY7e3o3eAII72kVNqoVwoc5bj8iPnn/CGVYkcx1+tetp9b1UnC777Tu5Qfcu3vcfqV0cOOvWvPhRVmk1l32g/holC8/+/OCP82y/dDbMsvgvxMNblx7fEcZs5s8hxZJbTjVhAfp8Z/yh5KtkcRDzzdcgfG8t3KHRUC8lIhVRNcixU0x4d8R+MPla2tJFx6i22vT37LQ729spVps5cYFgfgr0LxKz0bc3U+5X19HH4669h5T7+IsNVgrByvnEbpybt/bD+HZHlPTn14T564uIGznGG4xnmB6ZgUMX4CayBbazymjJW+QE4ACwCP2f1AYyakDo+QwNp6vZtzG5A3fbnnSrT6N8Q7P/OnLf+rM3Z7Y2MbkV+gVbCUoMtir3noPLjpL5V+RoYaZstaBWQTVFCzzPY0YyNvzX5Xm/7ZozvlShpHEBZ67iyaM+jyuASqrWuod45l2cPttCAKB3Oek1QWHlDyewzylbelUX7iyr7/lFtFTDqPYqFSw5ORsv4KYIkSHnc4zoxtRIJNJ7Vv4esVUqsOq3/M6DT+Tz0gmb5JdSAcxzh2llEpLhCU/GL5G5QloZbNDkk5DWJbMP3letILzEVG3cLAhLp8Cku1rPUEkZNTUzGWx9/D2RaShIGuv22fAaQo5fPhTxBD+UlrXt1uy9NnbZMhIhQuGyLjAp3QQQoeYnBWfdOOZAgnuaIIqvBJ8OpvtRbn1e3PHXz9ciedxWsyFGiijqaaKOLPoYYY4o5lliF0OwzQ1rpRJK+LtvqspxE06pTmaaVocuBHIOx7mo17CxAejhiePiyXTTV14oJZUIvEdvPWtlykGhMSjhsLJlxZGwa3ZayN3gietB4v0HjMY2HKl233KAtlYcx") format("woff2"),url('+r(n(20))+') format("woff"),url('+r(n(21))+') format("truetype"),url('+r(n(22))+'#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-notificationfill:before{content:"\\E66A"}.icon-roundaddfill:before{content:"\\E6D8"}.icon-notificationforbidfill:before{content:"\\E6DB"}.icon-speed-:before{content:"\\E6F8"}.icon-speed-1:before{content:"\\E6F9"}.icon-speed-2:before{content:"\\E6FA"}.icon-subtract_fill:before{content:"\\E808"}.icon-pausecircle-fill:before{content:"\\E7CB"}.icon-stopcircle-fill:before{content:"\\E7CC"}.icon-playcircle-fill:before{content:"\\E7CD"}.icon-pausecircle:before{content:"\\E80D"}.icon-stopcircle:before{content:"\\E80E"}.icon-playcircle:before{content:"\\E80F"}.icon-minus:before{content:"\\E828"}.icon-plus:before{content:"\\E829"}',""])},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e,n){t.exports=n.p+"fonts_/iconfont.4175e88.woff"},function(t,e,n){t.exports=n.p+"fonts_/iconfont.169d273.ttf"},function(t,e,n){t.exports=n.p+"iconfont.svg?9df776fc48542e6eefa4869722fb14a3"},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vueAudioBetter",style:{width:t.totalWidth}},[n("div",{staticClass:"total"},[n("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t._sToMs(t.seek))+" / "+t._s(t._sToMs(t.duration)))]),t._v(" "),n("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.curProgress)+"%")])]),t._v(" "),n("div",{staticClass:"operatorButton"},[t.playing?n("span",{staticClass:"iconfont icon-pausecircle-fill",on:{click:t.togglePlayback}}):n("span",{staticClass:"iconfont icon-playcircle-fill",on:{click:t.togglePlayback}}),t._v(" "),n("span",{staticClass:"iconfont icon-stopcircle-fill",on:{click:t.stop}}),t._v(" "),t.isMute?n("span",{staticClass:"iconfont icon-notificationfill",on:{click:t.handleToggleMute}}):n("span",{staticClass:"iconfont icon-notificationforbidfill",on:{click:t.handleToggleMute}}),t._v(" "),n("span",{staticClass:"iconfont icon-roundaddfill",on:{click:function(e){return t.handleSetVolume(!0)}}}),t._v(" "),n("span",{staticClass:"iconfont icon-subtract_fill",on:{click:function(e){return t.handleSetVolume(!1)}}}),t._v(" "),.9===t.rate?n("span",{staticClass:"iconfont icon-speed-2 rate",on:{click:t.handleSetRate}}):t._e(),t._v(" "),1===t.rate?n("span",{staticClass:"iconfont icon-speed-1 rate",on:{click:t.handleSetRate}}):t._e(),t._v(" "),1.2===t.rate?n("span",{staticClass:"iconfont icon-speed- rate",on:{click:t.handleSetRate}}):t._e()]),t._v(" "),n("div",{ref:"slider",staticClass:"slider",on:{click:t.handleModifyProgress}},[n("div",{staticClass:"progressInfo"}),t._v(" "),n("div",{staticClass:"process",style:{width:t.pWidth}}),t._v(" "),n("div",{ref:"trunk",staticClass:"thunk",style:{left:t.left}},[n("div",{staticClass:"block"})])])])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r=n(7),i=n(27),o=function(t){n(25)},a=n(2)(r.a,i.a,!1,o,"data-v-3a8dc9f9",null);e.a=a.exports},function(t,e,n){var r=n(26);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("5920a118",r,!0,{})},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".vueAudioBetter[data-v-3a8dc9f9]{display:flex;align-items:center;justify-content:space-between;overflow:hidden;width:300px;height:40px;line-height:40px;margin:14px;padding:0 14px;border-radius:20px;box-shadow:5px 5px 10px -4px #63645e;background-image:linear-gradient(90deg,#9ca5f5,#7ff5ae)}.vueAudioBetter span[data-v-3a8dc9f9]{font-size:16px;color:#1f0719c7;cursor:pointer}.operate span[data-v-3a8dc9f9]:last-child{position:relative;top:-1px;font-size:14px;color:#1f0719c7;cursor:default}.vueAudioBetter .iconfont[data-v-3a8dc9f9]:active{position:relative;top:2px;left:2px}.vueAudioBetter .slider[data-v-3a8dc9f9]{position:relative;width:40%;height:4px;background:#f8f7f7;border-radius:2px;cursor:pointer}.slider .process[data-v-3a8dc9f9]{position:absolute;left:0;top:0;width:112px;height:4px;border-radius:2px;background:#409eff}.slider .thunk[data-v-3a8dc9f9]{position:absolute;left:100px;top:-3px;width:8px;height:8px}.slider .block[data-v-3a8dc9f9]{width:8px;height:8px;border-radius:50%;border:1px solid #409eff;background:#fff;transition:all .2s}.slider .block[data-v-3a8dc9f9]:hover{transform:scale(1.1);opacity:.6}.slider .progressInfo[data-v-3a8dc9f9]{position:absolute;top:-28px;color:#117eeb;font-weight:600}",""])},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vueAudioBetter",style:{width:t.totalWidth}},[n("div",{staticClass:"operate"},[t.playing?n("span",{staticClass:"iconfont icon-pausecircle-fill",on:{click:t.togglePlayback}}):n("span",{staticClass:"iconfont icon-playcircle-fill",on:{click:t.togglePlayback}}),t._v(" "),n("span",{staticClass:"iconfont icon-stopcircle-fill",on:{click:t.stop}}),t._v(" "),n("span",{staticStyle:{color:"white","padding-left":"6px"}},[t._v(t._s(t._sToMs(t.seek))+" / "+t._s(t._sToMs(t.duration)))])]),t._v(" "),n("div",{ref:"slider",staticClass:"slider",on:{click:t.handleModifyProgress}},[n("div",{staticClass:"progressInfo"}),t._v(" "),n("div",{staticClass:"process",style:{width:t.pWidth}}),t._v(" "),n("div",{ref:"trunk",staticClass:"thunk",style:{left:t.left}},[n("div",{staticClass:"block"})])]),t._v(" "),t.isMute?n("span",{staticClass:"iconfont icon-notificationfill",on:{click:t.handleToggleMute}}):n("span",{staticClass:"iconfont icon-notificationforbidfill",on:{click:t.handleToggleMute}})])},staticRenderFns:[]};e.a=r}])},t.exports=r()},K8D5:function(t,e,n){"use strict";t.exports=function(t){var e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||""}},KCLY:function(t,e,n){"use strict";(function(e){var r=n("cGG2"),i=n("5VQ+"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n("7GwW"):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(s=n("7GwW")),s),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){l.headers[t]={}}),r.forEach(["post","put","patch"],function(t){l.headers[t]=r.merge(o)}),t.exports=l}).call(e,n("W2nU"))},KgSl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e<n.length;e++){var r=n[e];this.parent[r]=r}}return t.prototype.find=function(t){for(;this.parent[t]!==t;)t=this.parent[t];return t},t.prototype.union=function(t,e){var n=this.find(t),r=this.find(e);n!==r&&(n<r?(this.parent[e]!==e&&this.union(this.parent[e],t),this.parent[e]=this.parent[t]):(this.parent[t]!==t&&this.union(this.parent[t],e),this.parent[t]=this.parent[e]))},t.prototype.connected=function(t,e){return this.find(t)===this.find(e)},t}();e.default=r},Kh4W:function(t,e,n){e.f=n("dSzd")},L42u:function(t,e,n){var r,i,o,a=n("+ZMJ"),s=n("knuC"),l=n("RPLV"),u=n("ON07"),c=n("7KvD"),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,g=c.Dispatch,v=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},f=function(t){delete m[t]},"process"==n("R9M2")(h)?r=function(t){h.nextTick(a(y,t,1))}:g&&g.now?r=function(t){g.now(a(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(t){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:f}},LAoY:function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,l,u,c=t.pos;if(96!==t.src.charCodeAt(c))return!1;for(n=c,c++,r=t.posMax;c<r&&96===t.src.charCodeAt(c);)c++;if(l=(i=t.src.slice(n,c)).length,t.backticksScanned&&(t.backticks[l]||0)<=n)return e||(t.pending+=i),t.pos+=l,!0;for(s=c;-1!==(a=t.src.indexOf("`",s));){for(s=a+1;s<r&&96===t.src.charCodeAt(s);)s++;if((u=s-a)===l)return e||((o=t.push("code_inline","code",0)).markup=i,o.content=t.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=s,!0;t.backticks[u]=a}return t.backticksScanned=!0,e||(t.pending+=i),t.pos+=l,!0}},LI0X:function(t,e,n){"use strict";function r(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]}function i(t){var e=Math.round(t).toString(16);return 1===e.length?"0".concat(e):e}function o(t){return"#".concat(i(t[0])).concat(i(t[1])).concat(i(t[2]))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},s=function(t,e){return!!a(t)&&t.indexOf(e)>-1},l=function(t,e){if(!a(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n},u=function(t,e){return void 0===e&&(e=[]),l(t,function(t){return!s(e,t)})};function c(t){return"function"==typeof t}function h(t){return null===t||void 0===t}function d(t){return Array.isArray(t)}var f=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};var p=function(t,e){if(t)if(d(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(f(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break},g=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return p(t,function(n,r){c(t)&&"prototype"===r||e.push(r)}),e};var v=function(t,e){var n=g(e),r=n.length;if(h(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0},m=function(t){return"object"==typeof t&&null!==t},y={}.toString,b=function(t,e){return y.call(t)==="[object "+e+"]"},_=function(t){if(!m(t)||!b(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};var x=function(t,e){if(!d(t))return null;var n;if(c(e)&&(n=e),_(e)&&(n=function(t){return v(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null};var w=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1},S=function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r][e];if(!h(i)){n=d(i)?i[0]:i;break}}return n},C=function(t){if(!d(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},k=function(t,e){if(void 0===e&&(e=[]),d(t))for(var n=0;n<t.length;n+=1)k(t[n],e);else e.push(t);return e},O=k;function M(t){if(!Array.isArray(t))return-1/0;var e=t.length;if(!e)return-1/0;for(var n=t[0],r=1;r<e;r++)n=Math.max(n,t[r]);return n}var E=function(t){if(d(t))return t.reduce(function(t,e){return Math.min(t,e)},t[0])},T=function(t){var e=t.filter(function(t){return!isNaN(t)});if(!e.length)return{min:0,max:0};if(d(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=M(e);return{min:E(e),max:i}},A=Array.prototype,I=A.splice,D=A.indexOf,P=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var i=e[r],o=-1;(o=D.call(t,i))>-1;)I.call(t,o,1);return t},L=Array.prototype.splice,j=function(t,e){if(!a(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var i=void 0,o=e[n];n!==r&&o===i||(i=o,L.call(t,o,1))}return t},N=function(t,e,n){if(!d(t)&&!_(t))return t;var r=n;return p(t,function(t,n){r=e(r,t,n)}),r},R=function(t,e){var n=[];if(!a(t))return n;for(var r=-1,i=[],o=t.length;++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return j(t,i),n};function B(t){return"string"==typeof t}var F=function(t,e){var n;if(c(e))n=function(t,n){return e(t)-e(n)};else{var r=[];B(e)?r.push(e):d(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t};function z(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var V=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return z([].concat.apply([],t))},$=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];if(!h(o)){d(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];r[s]||(n.push(s),r[s]=!0)}}}return n};function G(t){if(a(t))return t[0]}function H(t){if(a(t)){return t[t.length-1]}}var W=function(t,e){return!(!d(t)&&!B(t))&&t[0]===e};var U=function(t,e){return!(!d(t)&&!B(t))&&t[t.length-1]===e},Y=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},X=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},q=Object.prototype.hasOwnProperty;var Z=function(t,e){if(!e||!d(t))return{};for(var n,r={},i=c(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),q.call(r,n)?r[n].push(a):r[n]=[a]}return r};function K(t,e){if(!e)return{0:t};if(!c(e)){var n=d(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return Z(t,e)}var J=function(t,e){if(!e)return[t];var n=K(t,e),r=[];for(var i in n)r.push(n[i]);return r};var Q=function(t,e){return t["_wrap_"+e]};var tt=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},et={};var nt=function(t){var e=et[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,et[t]=e}return e};var rt=function(t){var e=0,n=0,r=0,i=0;return d(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}},it=function(t,e,n){return t<e?e:t>n?n:t},ot=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};function at(t){return"number"==typeof t}function st(t){return at(t)&&t%1!=0}function lt(t){return at(t)&&t%2==0}function ut(t){return at(t)&&t%1==0}function ct(t){return at(t)&&t<0}var ht=1e-5;function dt(t,e,n){return void 0===n&&(n=ht),t===e||Math.abs(t-e)<n}function ft(t){return at(t)&&t%2!=0}var pt=function(t){return at(t)&&t>0},gt=function(t,e){if(d(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=c(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},vt=function(t,e){if(d(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=c(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},mt=function(t,e){return(t%e+e)%e},yt=180/Math.PI,bt=function(t){return yt*t},_t=parseInt,xt=Math.PI/180,wt=function(t){return xt*t},St=p,Ct=function(t,e){return t.hasOwnProperty(e)},kt=Ct,Ot=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return p(t,function(n,r){c(t)&&"prototype"===r||e.push(n)}),e},Mt=function(t,e){return s(Ot(t),e)},Et=function(t){return h(t)?"":t.toString()},Tt=function(t){return Et(t).toLowerCase()},At=function(t){var e=Et(t);return e.charAt(0).toLowerCase()+e.substring(1)};var It=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t},Dt=function(t){return Et(t).toUpperCase()},Pt=function(t){var e=Et(t);return e.charAt(0).toUpperCase()+e.substring(1)},Lt={}.toString,jt=function(t){return Lt.call(t).replace(/^\[object /,"").replace(/]$/,"")},Nt=function(t){return b(t,"Arguments")},Rt=function(t){return b(t,"Boolean")};function Bt(t){return t instanceof Date}var Ft=function(t){return b(t,"Error")},zt=function(t){return at(t)&&isFinite(t)};function Vt(t){return null===t}var $t=Object.prototype,Gt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||$t)},Ht=function(t){return b(t,"RegExp")},Wt=function(t){return void 0===t};function Ut(t){return t instanceof Element||t instanceof Document}function Yt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Xt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function qt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Zt(t,e,n,r){return e&&qt(t,e),n&&qt(t,n),r&&qt(t,r),t}var Kt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var i=t[r];c(i)&&(i=i.prototype),Zt(n.prototype,i)}},Jt=function(t){if("object"!=typeof t||null===t)return t;var e;if(d(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=Jt(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=Jt(t[i]):e[i]=t[i];return e},Qt=Jt;var te=function(t,e,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,o)},e),a&&t.apply(i,o)}};var ee=new Map;function ne(t,e,n){void 0===n&&(n=128);return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0];ee.has(t)||ee.set(t,function(t){var e,n,r,i=t||1;function o(t,o){++e>i&&(r=n,a(1),++e),n[t]=o}function a(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return a(),{clear:a,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(o(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:o(t,e)}}}(n));var a=ee.get(t);if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s}}var re=5;function ie(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function oe(t,e,n,r){for(var i in n=n||0,r=r||re,e)if(ie(e,i)){var o=e[i];null!==o&&_(o)?(_(t[i])||(t[i]={}),n<r?oe(t[i],o,n+1,r):t[i]=e[i]):d(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var ae=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)oe(t,e[r]);return t},se=function(t,e,n,r){c(e)||(n=e,e=t,t=function(){});var i=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},o=i(e.prototype,t);return t.prototype=Zt(o,t.prototype),t.superclass=i(e.prototype,e),Zt(o,n),Zt(t,r),t},le=function(t,e){if(!a(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,i=0;i<t.length;i++)if(t[i]===e){r=i;break}return r},ue=Object.prototype.hasOwnProperty;var ce=function(t){if(h(t))return!0;if(a(t))return!t.length;var e=jt(t);if("Map"===e||"Set"===e)return!t.size;if(Gt(t))return!Object.keys(t).length;for(var n in t)if(ue.call(t,n))return!1;return!0},he=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(B(t)||B(e))return!1;if(a(t)||a(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=he(t[r],e[r]));r++);return n}if(m(t)||m(e)){var i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(n=!0,r=0;r<i.length&&(n=he(t[i[r]],e[i[r]]));r++);return n}return!1},de=he,fe=function(t,e,n){return c(n)?!!n(t,e):de(t,e)},pe=function(t,e){if(!a(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];n.push(e(i,r))}return n},ge=function(t){return t},ve=function(t,e){void 0===e&&(e=ge);var n={};return f(t)&&!h(t)&&Object.keys(t).forEach(function(r){n[r]=e(t[r],r)}),n},me=function(t,e,n){for(var r=0,i=B(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},ye=function(t,e,n){var r=t,i=B(e)?e.split("."):e;return i.forEach(function(t,e){e<i.length-1?(f(r[t])||(r[t]=at(i[e+1])?[]:{}),r=r[t]):r[t]=n}),t},be=Object.prototype.hasOwnProperty,_e=function(t,e){if(null===t||!_(t))return{};var n={};return p(e,function(e){be.call(t,e)&&(n[e]=t[e])}),n},xe=function(t,e){return N(t,function(t,n,r){return e.includes(r)||(t[r]=n),t},{})},we=function(t,e,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u},Se=function(t){return a(t)?Array.prototype.slice.call(t):[]},Ce={},ke=function(t){return Ce[t=t||"g"]?Ce[t]+=1:Ce[t]=1,t+Ce[t]},Oe=function(){},Me=function(t){return t};function Ee(t){return h(t)?0:a(t)?t.length:Object.keys(t).length}var Te=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),Ae=/rgba?\(([\s.,0-9]+)\)/;var Ie=ne(function(t){if("#"===t[0]&&7===t.length)return t;var e,n=(e=document.getElementById("antv-web-colour-picker"))||((e=document.createElement("i")).id="antv-web-colour-picker",e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e);n.style.color=t;var r=document.defaultView.getComputedStyle(n,"").getPropertyValue("color");return r=o(Ae.exec(r)[1].split(/\s*,\s*/).map(function(t){return Number(t)}))},function(t){return t},256);function De(t,e,n,r){return t[r]+(e[r]-t[r])*n}function Pe(t){var e=("string"==typeof t?t.split("-"):t).map(function(t){return r(-1===t.indexOf("#")?Ie(t):t)});return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,s=t[i],l=i===r?s:t[i+1];return o([De(s,l,a,0),De(s,l,a,1),De(s,l,a,2)])}(e,t)}}var Le=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,je=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Ne=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Re(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var r=+(i=Le.exec(t))[1]+90;n=i[2],e="linear-gradient(".concat(r,"deg, ")}else if("r"===t[0]){var i;e="radial-gradient(",n=(i=je.exec(t))[4]}var o=n.match(Ne);return o.forEach(function(t,n){var r=t.split(":");e+="".concat(r[1]," ").concat(100*Number(r[0]),"%"),n!==o.length-1&&(e+=", ")}),e+=")"}return t}var Be=n("lVvd");function Fe(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return Be.mat3.fromRotation(r,n),Be.mat3.multiply(t,r,e)}function ze(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return Be.mat3.fromScaling(r,n),Be.mat3.multiply(t,r,e)}function Ve(t,e,n){return Be.mat3.multiply(t,n,e)}function $e(t,e){for(var n,r,i,o,a=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,l=e.length;s<l;s++){var u=e[s];switch(u[0]){case"t":n=a,r=a,i=[u[1],u[2]],void 0,o=[0,0,0,0,0,0,0,0,0],Be.mat3.fromTranslation(o,i),Be.mat3.multiply(n,o,r);break;case"s":ze(a,a,[u[1],u[2]]);break;case"r":Fe(a,a,u[1]);break;case"m":Ve(a,a,u[1])}}return a}function Ge(t,e){return t[0]*e[1]-e[0]*t[1]}function He(t,e,n){var r=Be.vec2.angle(t,e),i=Ge(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function We(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function Ue(t,e){return void 0===e&&(e="off"),function(t,e){if("off"===e)return[].concat(t);var n="number"==typeof e&&e>=1?Math.pow(10,e):1;return t.map(function(t){var r=t.slice(1).map(Number).map(function(t){return e?Math.round(t*n)/n:Math.round(t)});return[t[0]].concat(r)})}(t,e).map(function(t){return t[0]+t.slice(1).join(" ")}).join("")}var Ye=function(){return(Ye=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.create;function Xe(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var qe={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function Ze(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Ke={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function Je(t){return Array.isArray(t)&&t.every(function(t){var e=t[0].toLowerCase();return Ke[e]===t.length-1&&"achlmqstvz".includes(e)})}function Qe(t){return Je(t)&&t.every(function(t){var e=t[0];return e===e.toUpperCase()})}function tn(t){return Qe(t)&&t.every(function(t){var e=t[0];return"ACLMQZ".includes(e)})}function en(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Ke[n]&&("m"===n&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(r.splice(0,Ke[n]))),Ke[n]););}function nn(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);return 48===r?(t.param=0,void(t.index+=1)):49===r?(t.param=1,void(t.index+=1)):void(t.err='[path-util]: invalid Arc flag "'.concat(n[e],'", expecting 0 or 1 at index ').concat(e))}function rn(t){return t>=48&&t<=57||43===t||45===t||46===t}function on(t){return t>=48&&t<=57}function an(t){var e,n=t.max,r=t.pathValue,i=t.index,o=i,a=!1,s=!1,l=!1,u=!1;if(o>=n)t.err="[path-util]: Invalid path value at index ".concat(o,', "pathValue" is missing param');else if(43!==(e=r.charCodeAt(o))&&45!==e||(o+=1,e=r.charCodeAt(o)),on(e)||46===e){if(46!==e){if(a=48===e,o+=1,e=r.charCodeAt(o),a&&o<n&&e&&on(e))return void(t.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(r[i],'" illegal number'));for(;o<n&&on(r.charCodeAt(o));)o+=1,s=!0;e=r.charCodeAt(o)}if(46===e){for(u=!0,o+=1;on(r.charCodeAt(o));)o+=1,l=!0;e=r.charCodeAt(o)}if(101===e||69===e){if(u&&!s&&!l)return void(t.err="[path-util]: Invalid path value at index ".concat(o,', "').concat(r[o],'" invalid float exponent'));if(o+=1,43!==(e=r.charCodeAt(o))&&45!==e||(o+=1),!(o<n&&on(r.charCodeAt(o))))return void(t.err="[path-util]: Invalid path value at index ".concat(o,', "').concat(r[o],'" invalid integer exponent'));for(;o<n&&on(r.charCodeAt(o));)o+=1}t.index=o,t.param=+t.pathValue.slice(i,o)}else t.err="[path-util]: Invalid path value at index ".concat(o,', "').concat(r[o],'" is not a number')}function sn(t){for(var e,n=t.pathValue,r=t.max;t.index<r&&(10===(e=n.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e));)t.index+=1}function ln(t){var e=t.max,n=t.pathValue,r=t.index,i=n.charCodeAt(r),o=Ke[n[r].toLowerCase()];if(t.segmentStart=r,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}(i))if(t.index+=1,sn(t),t.data=[],o){for(;;){for(var a=o;a>0;a-=1){if(97!=(32|i)||3!==a&&4!==a?an(t):nn(t),t.err.length)return;t.data.push(t.param),sn(t),t.index<e&&44===n.charCodeAt(t.index)&&(t.index+=1,sn(t))}if(t.index>=t.max)break;if(!rn(n.charCodeAt(t.index)))break}en(t)}else en(t);else t.err='[path-util]: Invalid path value "'.concat(n[r],'" is not a path command')}var un=function(){return function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}}();function cn(t){if(Je(t))return[].concat(t);var e=new un(t);for(sn(e);e.index<e.max&&!e.err.length;)ln(e);return e.err?e.err:e.segments}function hn(t){if(Qe(t))return[].concat(t);var e=0,n=0,r=0,i=0;return cn(t).map(function(t){var o,a=t.slice(1).map(Number),s=t[0],l=s.toUpperCase();if("M"===s)return e=a[0],n=a[1],r=e,i=n,["M",e,n];if(s!==l)switch(l){case"A":o=[l,a[0],a[1],a[2],a[3],a[4],a[5]+e,a[6]+n];break;case"V":o=[l,a[0]+n];break;case"H":o=[l,a[0]+e];break;default:var u=a.map(function(t,r){return t+(r%2?n:e)});o=[l].concat(u)}else o=[l].concat(a);var c=o.length;switch(l){case"Z":e=r,n=i;break;case"H":e=o[1];break;case"V":n=o[1];break;default:e=o[c-2],n=o[c-1],"M"===l&&(r=e,i=n)}return o})}function dn(t,e){var n=t[0],r=e.x1,i=e.y1,o=e.x2,a=e.y2,s=t.slice(1).map(Number),l=t;if("TQ".includes(n)||(e.qx=null,e.qy=null),"H"===n)l=["L",t[1],i];else if("V"===n)l=["L",r,t[1]];else if("S"===n){var u=2*r-o,c=2*i-a;e.x1=u,e.y1=c,l=["C",u,c].concat(s)}else if("T"===n){var h=2*r-e.qx,d=2*i-e.qy;e.qx=h,e.qy=d,l=["Q",h,d].concat(s)}else if("Q"===n){var f=s[0],p=s[1];e.qx=f,e.qy=p}return l}function fn(t){if(tn(t))return[].concat(t);for(var e=hn(t),n=Ye({},qe),r=0;r<e.length;r+=1){e[r]=dn(e[r],n);var i=e[r],o=i.length;n.x1=+i[o-2],n.y1=+i[o-1],n.x2=+i[o-4]||n.x1,n.y2=+i[o-3]||n.y1}return e}function pn(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function gn(t,e,n,r,i,o,a,s,l,u){var c,h,d,f,p,g=t,v=e,m=n,y=r,b=s,_=l,x=120*Math.PI/180,w=Math.PI/180*(+i||0),S=[];if(u)h=u[0],d=u[1],f=u[2],p=u[3];else{g=(c=pn(g,v,-w)).x,v=c.y;var C=(g-(b=(c=pn(b,_,-w)).x))/2,k=(v-(_=c.y))/2,O=C*C/(m*m)+k*k/(y*y);O>1&&(m*=O=Math.sqrt(O),y*=O);var M=m*m,E=y*y,T=(o===a?-1:1)*Math.sqrt(Math.abs((M*E-M*k*k-E*C*C)/(M*k*k+E*C*C)));f=T*m*k/y+(g+b)/2,p=T*-y*C/m+(v+_)/2,h=Math.asin(((v-p)/y*Math.pow(10,9)>>0)/Math.pow(10,9)),d=Math.asin(((_-p)/y*Math.pow(10,9)>>0)/Math.pow(10,9)),h=g<f?Math.PI-h:h,d=b<f?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&h>d&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var A=d-h;if(Math.abs(A)>x){var I=d,D=b,P=_;d=h+x*(a&&d>h?1:-1),S=gn(b=f+m*Math.cos(d),_=p+y*Math.sin(d),m,y,i,0,a,D,P,[d,I,f,p])}A=d-h;var L=Math.cos(h),j=Math.sin(h),N=Math.cos(d),R=Math.sin(d),B=Math.tan(A/4),F=4/3*m*B,z=4/3*y*B,V=[g,v],$=[g+F*j,v-z*L],G=[b+F*R,_-z*N],H=[b,_];if($[0]=2*V[0]-$[0],$[1]=2*V[1]-$[1],u)return $.concat(G,H,S);for(var W=[],U=0,Y=(S=$.concat(G,H,S)).length;U<Y;U+=1)W[U]=U%2?pn(S[U-1],S[U],w).y:pn(S[U],S[U+1],w).x;return W}function vn(t,e,n){var r=t[0],i=t[1];return[r+(e[0]-r)*n,i+(e[1]-i)*n]}var mn=function(t,e,n,r){return Xe(Xe([],vn([t,e],[n,r],.5),!0),[n,r,n,r],!1)};function yn(t,e){var n,r,i,o,a,s,l,u=t[0],c=t.slice(1).map(Number),h=c[0],d=c[1],f=e.x1,p=e.y1,g=e.x,v=e.y;switch("TQ".includes(u)||(e.qx=null,e.qy=null),u){case"M":return e.x=h,e.y=d,t;case"A":return n=[f,p].concat(c),["C"].concat(gn(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9]));case"Q":return e.qx=h,e.qy=d,n=[f,p].concat(c),["C"].concat((r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],[1/3*r+2/3*o,1/3*i+2/3*a,1/3*s+2/3*o,1/3*l+2/3*a,s,l]));case"L":return["C"].concat(mn(f,p,h,d));case"Z":return f===g&&p===v?["C",f,p,g,v,g,v]:["C"].concat(mn(f,p,g,v))}return t}function bn(t,e){if(void 0===e&&(e=!1),function(t){return tn(t)&&t.every(function(t){var e=t[0];return"MC".includes(e)})}(t)){var n=[].concat(t);return e?[n,[]]:n}for(var r,i,o=fn(t),a=Ye({},qe),s=[],l="",u=o.length,c=[],h=0;h<u;h+=1){o[h]&&(l=o[h][0]),s[h]=l;var d=yn(o[h],a);o[h]=d,Ze(o,s,h),u=o.length,"Z"===l&&c.push(h),i=(r=o[h]).length,a.x1=+r[i-2],a.y1=+r[i-1],a.x2=+r[i-4]||a.x1,a.y2=+r[i-3]||a.y1}return e?[o,c]:o}function _n(t){return cn(t)}function xn(t){return t.map(function(t){return Array.isArray(t)?[].concat(t):t})}function wn(t){var e=t.slice(1).map(function(e,n,r){return n?r[n-1].slice(-2).concat(e.slice(1)):t[0].slice(1).concat(e.slice(1))}).map(function(t){return t.map(function(e,n){return t[t.length-n-2*(1-n%2)]})}).reverse();return[["M"].concat(e[0].slice(0,2))].concat(e.map(function(t){return["C"].concat(t.slice(2))}))}function Sn(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function Cn(t,e,n,r,i){var o=Sn([t,e],[n,r]),a={x:0,y:0};if("number"==typeof i)if(i<=0)a={x:t,y:e};else if(i>=o)a={x:n,y:r};else{var s=vn([t,e],[n,r],i/o);a={x:s[0],y:s[1]}}return{length:o,point:a,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function kn(t,e){var n=t.x,r=t.y,i=e.x,o=e.y,a=n*i+r*o,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(o,2)));return(n*o-r*i<0?-1:1)*Math.acos(a/s)}function On(t,e,n,r,i,o,a,s,l,u){var c=Math.abs,h=Math.sin,d=Math.cos,f=Math.sqrt,p=Math.PI,g=c(n),v=c(r),m=(i%360+360)%360*(p/180);if(t===s&&e===l)return{x:t,y:e};if(0===g||0===v)return Cn(t,e,s,l,u).point;var y=(t-s)/2,b=(e-l)/2,_={x:d(m)*y+h(m)*b,y:-h(m)*y+d(m)*b},x=Math.pow(_.x,2)/Math.pow(g,2)+Math.pow(_.y,2)/Math.pow(v,2);x>1&&(g*=f(x),v*=f(x));var w=(Math.pow(g,2)*Math.pow(v,2)-Math.pow(g,2)*Math.pow(_.y,2)-Math.pow(v,2)*Math.pow(_.x,2))/(Math.pow(g,2)*Math.pow(_.y,2)+Math.pow(v,2)*Math.pow(_.x,2));w=w<0?0:w;var S=(o!==a?1:-1)*f(w),C=S*(g*_.y/v),k=S*(-v*_.x/g),O=d(m)*C-h(m)*k+(t+s)/2,M=h(m)*C+d(m)*k+(e+l)/2,E={x:(_.x-C)/g,y:(_.y-k)/v},T=kn({x:1,y:0},E),A=kn(E,{x:(-_.x-C)/g,y:(-_.y-k)/v});!a&&A>0?A-=2*p:a&&A<0&&(A+=2*p);var I=T+(A%=2*p)*u,D=g*d(I),P=v*h(I);return{x:d(m)*D-h(m)*P+O,y:h(m)*D+d(m)*P+M}}function Mn(t,e,n,r,i,o,a,s,l,u,c){var h,d=c.bbox,f=void 0===d||d,p=c.length,g=void 0===p||p,v=c.sampleSize,m=void 0===v?30:v,y="number"==typeof u,b=t,_=e,x=0,w=[b,_,x],S=[b,_],C={x:0,y:0},k=[{x:b,y:_}];y&&u<=0&&(C={x:b,y:_});for(var O=0;O<=m;O+=1){if(b=(h=On(t,e,n,r,i,o,a,s,l,O/m)).x,_=h.y,f&&k.push({x:b,y:_}),g&&(x+=Sn(S,[b,_])),S=[b,_],y&&x>=u&&u>w[2]){var M=(x-u)/(x-w[2]);C={x:S[0]*(1-M)+w[0]*M,y:S[1]*(1-M)+w[1]*M}}w=[b,_,x]}return y&&u>=x&&(C={x:s,y:l}),{length:x,point:C,min:{x:Math.min.apply(null,k.map(function(t){return t.x})),y:Math.min.apply(null,k.map(function(t){return t.y}))},max:{x:Math.max.apply(null,k.map(function(t){return t.x})),y:Math.max.apply(null,k.map(function(t){return t.y}))}}}function En(t,e,n,r,i,o,a,s,l){var u=1-l;return{x:Math.pow(u,3)*t+3*Math.pow(u,2)*l*n+3*u*Math.pow(l,2)*i+Math.pow(l,3)*a,y:Math.pow(u,3)*e+3*Math.pow(u,2)*l*r+3*u*Math.pow(l,2)*o+Math.pow(l,3)*s}}function Tn(t,e,n,r,i,o,a,s,l,u){var c,h=u.bbox,d=void 0===h||h,f=u.length,p=void 0===f||f,g=u.sampleSize,v=void 0===g?10:g,m="number"==typeof l,y=t,b=e,_=0,x=[y,b,_],w=[y,b],S={x:0,y:0},C=[{x:y,y:b}];m&&l<=0&&(S={x:y,y:b});for(var k=0;k<=v;k+=1){if(y=(c=En(t,e,n,r,i,o,a,s,k/v)).x,b=c.y,d&&C.push({x:y,y:b}),p&&(_+=Sn(w,[y,b])),w=[y,b],m&&_>=l&&l>x[2]){var O=(_-l)/(_-x[2]);S={x:w[0]*(1-O)+x[0]*O,y:w[1]*(1-O)+x[1]*O}}x=[y,b,_]}return m&&l>=_&&(S={x:a,y:s}),{length:_,point:S,min:{x:Math.min.apply(null,C.map(function(t){return t.x})),y:Math.min.apply(null,C.map(function(t){return t.y}))},max:{x:Math.max.apply(null,C.map(function(t){return t.x})),y:Math.max.apply(null,C.map(function(t){return t.y}))}}}function An(t,e,n,r,i,o,a){var s=1-a;return{x:Math.pow(s,2)*t+2*s*a*n+Math.pow(a,2)*i,y:Math.pow(s,2)*e+2*s*a*r+Math.pow(a,2)*o}}function In(t,e,n,r,i,o,a,s){var l,u=s.bbox,c=void 0===u||u,h=s.length,d=void 0===h||h,f=s.sampleSize,p=void 0===f?10:f,g="number"==typeof a,v=t,m=e,y=0,b=[v,m,y],_=[v,m],x={x:0,y:0},w=[{x:v,y:m}];g&&a<=0&&(x={x:v,y:m});for(var S=0;S<=p;S+=1){if(v=(l=An(t,e,n,r,i,o,S/p)).x,m=l.y,c&&w.push({x:v,y:m}),d&&(y+=Sn(_,[v,m])),_=[v,m],g&&y>=a&&a>b[2]){var C=(y-a)/(y-b[2]);x={x:_[0]*(1-C)+b[0]*C,y:_[1]*(1-C)+b[1]*C}}b=[v,m,y]}return g&&a>=y&&(x={x:i,y:o}),{length:y,point:x,min:{x:Math.min.apply(null,w.map(function(t){return t.x})),y:Math.min.apply(null,w.map(function(t){return t.y}))},max:{x:Math.max.apply(null,w.map(function(t){return t.x})),y:Math.max.apply(null,w.map(function(t){return t.y}))}}}function Dn(t,e,n){for(var r,i,o,a,s,l,u,c,h,d=fn(t),f="number"==typeof e,p=[],g=0,v=0,m=0,y=0,b=[],_=[],x=0,w={x:0,y:0},S=w,C=w,k=w,O=0,M=0,E=d.length;M<E;M+=1)p=(u="M"===(c=(h=d[M])[0]))?p:[g,v].concat(h.slice(1)),u?(S=w={x:m=h[1],y:y=h[2]},x=0,f&&e<.001&&(k=w)):"L"===c?(x=(r=Cn(p[0],p[1],p[2],p[3],(e||0)-O)).length,w=r.min,S=r.max,C=r.point):"A"===c?(x=(i=Mn(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],(e||0)-O,n||{})).length,w=i.min,S=i.max,C=i.point):"C"===c?(x=(o=Tn(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],(e||0)-O,n||{})).length,w=o.min,S=o.max,C=o.point):"Q"===c?(x=(a=In(p[0],p[1],p[2],p[3],p[4],p[5],(e||0)-O,n||{})).length,w=a.min,S=a.max,C=a.point):"Z"===c&&(x=(s=Cn((p=[g,v,m,y])[0],p[1],p[2],p[3],(e||0)-O)).length,w=s.min,S=s.max,C=s.point),f&&O<e&&O+x>=e&&(k=C),_.push(S),b.push(w),O+=x,g=(l="Z"!==c?h.slice(-2):[m,y])[0],v=l[1];return f&&e>=O&&(k={x:g,y:v}),{length:O,point:k,min:{x:Math.min.apply(null,b.map(function(t){return t.x})),y:Math.min.apply(null,b.map(function(t){return t.y}))},max:{x:Math.max.apply(null,_.map(function(t){return t.x})),y:Math.max.apply(null,_.map(function(t){return t.y}))}}}function Pn(t,e){if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=Dn(t,void 0,Ye(Ye({},e),{length:!1})),r=n.min,i=r.x,o=r.y,a=n.max,s=a.x,l=a.y,u=s-i,c=l-o;return{width:u,height:c,x:i,y:o,x2:s,y2:l,cx:i+u/2,cy:o+c/2,cz:Math.max(u,c)+Math.min(u,c)/2}}function Ln(t,e){return Dn(t,void 0,Ye(Ye({},e),{bbox:!1,length:!0})).length}function jn(t,e){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=Dn(t,void 0,Ye(Ye({},e),{bbox:!0,length:!0})),r=n.length,i=n.min,o=i.x,a=i.y,s=n.max,l=s.x,u=s.y,c=l-o,h=u-a;return{length:r,width:c,height:h,x:o,y:a,x2:l,y2:u,cx:o+c/2,cy:a+h/2,cz:Math.max(c,h)+Math.min(c,h)/2}}function Nn(t,e){var n=t.length-1,r=[],i=0,o=function(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(r,o){var a,s=i+o;return 0===o||t[s]&&"M"===t[s][0]?(a=t[s],["M"].concat(a.slice(-2))):(s>=e&&(s-=n),t[s])})})}(t);return o.forEach(function(o,a){t.slice(1).forEach(function(r,o){i+=Sn(t[(a+o)%n].slice(-2),e[o%n].slice(-2))}),r[a]=i,i=0}),o[r.indexOf(Math.min.apply(null,r))]}function Rn(t){var e=0,n=0,r=0;return bn(t).map(function(t){var i;switch(t[0]){case"M":return e=t[1],n=t[2],0;default:var o=t.slice(1),a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],h=o[5];return r=function(t,e,n,r,i,o,a,s){return 3*((s-e)*(n+i)-(a-t)*(r+o)+r*(t-i)-n*(e-o)+s*(i+t/3)-a*(o+e/3))/20}(e,n,a,s,l,u,c,h),i=t.slice(-2),e=i[0],n=i[1],r}}).reduce(function(t,e){return t+e},0)}function Bn(t){return Rn(t)>=0}function Fn(t,e,n){return Dn(t,e,Ye(Ye({},n),{bbox:!1,length:!0})).point}function zn(t,e){for(var n,r,i,o,a=cn(t),s=fn(a),l=Ln(a),u=function(t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},c=8,h=0,d=0,f=1/0,p=0;p<=l;p+=c)(h=u(n=Fn(s,p)))<f&&(r=n,d=p,f=h);c/=2;for(var g=0,v=0,m=0,y=0;c>.5;)m=u(i=Fn(s,g=d-c)),y=u(o=Fn(s,v=d+c)),g>=0&&m<f?(r=i,d=g,f=m):v<=l&&y<f?(r=o,d=v,f=y):c/=2;var b=function(t,e){var n=cn(t);if("string"==typeof n)throw TypeError(n);var r=n.slice(),i=Ln(r),o=r.length-1,a=0,s=0,l=n[0],u=l.slice(-2),c={x:u[0],y:u[1]};if(o<=0||!e||!Number.isFinite(e))return{segment:l,index:0,length:s,point:c,lengthAtSegment:a};if(e>=i)return s=i-(a=Ln(r=n.slice(0,-1))),{segment:n[o],index:o,length:s,lengthAtSegment:a};for(var h=[];o>0;)l=r[o],s=i-(a=Ln(r=r.slice(0,-1))),i=a,h.push({segment:l,index:o,length:s,lengthAtSegment:a}),o-=1;return h.find(function(t){return t.lengthAtSegment<=e})}(a,d);return{closest:r,distance:Math.sqrt(f),segment:b}}function Vn(t,e){var n=zn(t,e).distance;return Math.abs(n)<.001}var $n=50;function Gn(t){return t.map(function(t,e,n){var r=e&&n[e-1].slice(-2).concat(t.slice(1)),i=e?Tn(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],{bbox:!1}).length:0;return{s:t,ss:e?i?function(t,e){void 0===e&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),o=t.slice(6,8),a=vn(n,r,e),s=vn(r,i,e),l=vn(i,o,e),u=vn(a,s,e),c=vn(s,l,e),h=vn(u,c,e);return[["C"].concat(a,u,h),["C"].concat(c,l,o)]}(r):[t,t]:[t],l:i}})}function Hn(t,e,n,r){if(void 0===r&&(r=0),r>$n)return console.warn("Maximum recursion depth reached in equalizeSegments"),[t,e];var i=Gn(t),o=Gn(e),a=i.length,s=o.length,l=i.filter(function(t){return t.l}).length,u=o.filter(function(t){return t.l}).length,c=i.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/l||0,h=o.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/u||0,d=n||Math.max(a,s),f=[c,h],p=[d-a,d-s],g=0,v=[i,o].map(function(t,e){return t.l===d?t.map(function(t){return t.s}):t.map(function(t,n){return g=n&&p[e]&&t.l>=f[e],p[e]-=g?1:0,g?t.ss:[t.s]}).flat()});return v[0].length===v[1].length?v:Hn(v[0],v[1],d,r+1)}var Wn=1e-6;function Un(t){return Math.abs(t)<Wn?0:t<0?-1:1}function Yn(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Xn(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(Yn(a,s,[e,n]))return!0;Un(a[1]-n)>0!=Un(s[1]-n)>0&&Un(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var qn=function(t,e,n){return t>=e&&t<=n};function Zn(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function Kn(t,e){var n=!1;return t.forEach(function(t){if(function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,l=r.x-n.x,u=r.y-n.y,c=a*u-s*l,h=null;if(c*c>.001*(a*a+s*s)*(l*l+u*u)){var d=(i*u-o*l)/c,f=(i*s-o*a)/c;qn(d,0,1)&&qn(f,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1}),n}function Jn(t){var e=t.map(function(t){return t[0]}),n=t.map(function(t){return t[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function Qn(t,e){if(t.length<2||e.length<2)return!1;var n,r,i=Jn(t),o=Jn(e);if(n=i,(r=o).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var a=!1;if(e.forEach(function(e){if(Xn(t,e[0],e[1]))return a=!0,!1}),a)return!0;if(t.forEach(function(t){if(Xn(e,t[0],t[1]))return a=!0,!1}),a)return!0;var s=Zn(t),l=!1;return Zn(e).forEach(function(t){if(Kn(s,t))return l=!0,!1}),l}function tr(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function er(t,e){if(t)return Object.keys(e).forEach(function(n){t.style[n]=e[n]}),t}n.d(e,"rgb2arr",function(){return r}),n.d(e,"gradient",function(){return Pe}),n.d(e,"toRGB",function(){return Ie}),n.d(e,"toCSSGradient",function(){return Re}),n.d(e,"transform",function(){return $e}),n.d(e,"angleTo",function(){return He}),n.d(e,"direction",function(){return Ge}),n.d(e,"vertical",function(){return We}),n.d(e,"path2String",function(){return Ue}),n.d(e,"path2Curve",function(){return bn}),n.d(e,"path2Absolute",function(){return hn}),n.d(e,"path2Array",function(){return _n}),n.d(e,"clonePath",function(){return xn}),n.d(e,"normalizePath",function(){return fn}),n.d(e,"reverseCurve",function(){return wn}),n.d(e,"arcToCubic",function(){return gn}),n.d(e,"getPathBBox",function(){return Pn}),n.d(e,"getTotalLength",function(){return Ln}),n.d(e,"getPathBBoxTotalLength",function(){return jn}),n.d(e,"getRotatedCurve",function(){return Nn}),n.d(e,"getPathArea",function(){return Rn}),n.d(e,"getDrawDirection",function(){return Bn}),n.d(e,"getPointAtLength",function(){return Fn}),n.d(e,"isPointInStroke",function(){return Vn}),n.d(e,"distanceSquareRoot",function(){return Sn}),n.d(e,"equalizeSegments",function(){return Hn}),n.d(e,"contains",function(){return s}),n.d(e,"includes",function(){return s}),n.d(e,"difference",function(){return u}),n.d(e,"find",function(){return x}),n.d(e,"findIndex",function(){return w}),n.d(e,"firstValue",function(){return S}),n.d(e,"flatten",function(){return C}),n.d(e,"flattenDeep",function(){return O}),n.d(e,"getRange",function(){return T}),n.d(e,"pull",function(){return P}),n.d(e,"pullAt",function(){return j}),n.d(e,"reduce",function(){return N}),n.d(e,"remove",function(){return R}),n.d(e,"sortBy",function(){return F}),n.d(e,"union",function(){return V}),n.d(e,"uniq",function(){return z}),n.d(e,"valuesOfKey",function(){return $}),n.d(e,"head",function(){return G}),n.d(e,"last",function(){return H}),n.d(e,"startsWith",function(){return W}),n.d(e,"endsWith",function(){return U}),n.d(e,"filter",function(){return l}),n.d(e,"every",function(){return Y}),n.d(e,"some",function(){return X}),n.d(e,"group",function(){return J}),n.d(e,"groupBy",function(){return Z}),n.d(e,"groupToMap",function(){return K}),n.d(e,"getWrapBehavior",function(){return Q}),n.d(e,"wrapBehavior",function(){return tt}),n.d(e,"number2color",function(){return nt}),n.d(e,"parseRadius",function(){return rt}),n.d(e,"clamp",function(){return it}),n.d(e,"fixedBase",function(){return ot}),n.d(e,"isDecimal",function(){return st}),n.d(e,"isEven",function(){return lt}),n.d(e,"isInteger",function(){return ut}),n.d(e,"isNegative",function(){return ct}),n.d(e,"isNumberEqual",function(){return dt}),n.d(e,"isOdd",function(){return ft}),n.d(e,"isPositive",function(){return pt}),n.d(e,"max",function(){return M}),n.d(e,"maxBy",function(){return gt}),n.d(e,"min",function(){return E}),n.d(e,"minBy",function(){return vt}),n.d(e,"mod",function(){return mt}),n.d(e,"toDegree",function(){return bt}),n.d(e,"toInteger",function(){return _t}),n.d(e,"toRadian",function(){return wt}),n.d(e,"forIn",function(){return St}),n.d(e,"has",function(){return Ct}),n.d(e,"hasKey",function(){return kt}),n.d(e,"hasValue",function(){return Mt}),n.d(e,"keys",function(){return g}),n.d(e,"isMatch",function(){return v}),n.d(e,"values",function(){return Ot}),n.d(e,"lowerCase",function(){return Tt}),n.d(e,"lowerFirst",function(){return At}),n.d(e,"substitute",function(){return It}),n.d(e,"upperCase",function(){return Dt}),n.d(e,"upperFirst",function(){return Pt}),n.d(e,"getType",function(){return jt}),n.d(e,"isArguments",function(){return Nt}),n.d(e,"isArray",function(){return d}),n.d(e,"isArrayLike",function(){return a}),n.d(e,"isBoolean",function(){return Rt}),n.d(e,"isDate",function(){return Bt}),n.d(e,"isError",function(){return Ft}),n.d(e,"isFunction",function(){return c}),n.d(e,"isFinite",function(){return zt}),n.d(e,"isNil",function(){return h}),n.d(e,"isNull",function(){return Vt}),n.d(e,"isNumber",function(){return at}),n.d(e,"isObject",function(){return f}),n.d(e,"isObjectLike",function(){return m}),n.d(e,"isPlainObject",function(){return _}),n.d(e,"isPrototype",function(){return Gt}),n.d(e,"isRegExp",function(){return Ht}),n.d(e,"isString",function(){return B}),n.d(e,"isType",function(){return b}),n.d(e,"isUndefined",function(){return Wt}),n.d(e,"isElement",function(){return Ut}),n.d(e,"requestAnimationFrame",function(){return Yt}),n.d(e,"clearAnimationFrame",function(){return Xt}),n.d(e,"augment",function(){return Kt}),n.d(e,"clone",function(){return Qt}),n.d(e,"debounce",function(){return te}),n.d(e,"memoize",function(){return ne}),n.d(e,"deepMix",function(){return ae}),n.d(e,"each",function(){return p}),n.d(e,"extend",function(){return se}),n.d(e,"indexOf",function(){return le}),n.d(e,"isEmpty",function(){return ce}),n.d(e,"isEqual",function(){return de}),n.d(e,"isEqualWith",function(){return fe}),n.d(e,"map",function(){return pe}),n.d(e,"mapValues",function(){return ve}),n.d(e,"mix",function(){return Zt}),n.d(e,"assign",function(){return Zt}),n.d(e,"get",function(){return me}),n.d(e,"set",function(){return ye}),n.d(e,"pick",function(){return _e}),n.d(e,"omit",function(){return xe}),n.d(e,"throttle",function(){return we}),n.d(e,"toArray",function(){return Se}),n.d(e,"toString",function(){return Et}),n.d(e,"uniqueId",function(){return ke}),n.d(e,"noop",function(){return Oe}),n.d(e,"identity",function(){return Me}),n.d(e,"size",function(){return Ee}),n.d(e,"Cache",function(){return Te}),n.d(e,"isPointInPolygon",function(){return Xn}),n.d(e,"isPolygonsIntersect",function(){return Qn}),n.d(e,"createDOM",function(){return tr}),n.d(e,"modifyCSS",function(){return er})},LIJb:function(t,e,n){var r=n("EqjI");t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},LKZe:function(t,e,n){var r=n("NpIQ"),i=n("X8DO"),o=n("TcQ7"),a=n("MmMw"),s=n("D2L2"),l=n("SfB7"),u=Object.getOwnPropertyDescriptor;e.f=n("+E39")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},LSQh:function(t,e,n){"use strict";t.exports=function(t){var e,n,r,i,o,a,s=t.tokens;for(e=0,n=s.length;e<n;e++)if("inline"===s[e].type){for(o=(r=s[e].children).length,i=0;i<o;i++)"text_special"===r[i].type&&(r[i].type="text");for(i=a=0;i<o;i++)"text"===r[i].type&&i+1<o&&"text"===r[i+1].type?r[i+1].content=r[i].content+r[i+1].content:(i!==a&&(r[a]=r[i]),a++);i!==a&&(r.length=a)}}},LXZJ:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("mFJn")),o=function(t){var e=[],n={},r={},i=function(o){var a;r[o]||(r[o]=!0,n[o]=!0,null===(a=t.outEdges(o))||void 0===a||a.forEach(function(t){n[t.w]?e.push(t):i(t.w)}),delete n[o])};return t.nodes().forEach(i),e};e.default={run:function(t){var e="greedy"===t.graph().acyclicer?(0,i.default)(t,function(t){return function(e){var n;return(null===(n=t.edge(e))||void 0===n?void 0:n.weight)||1}}(t)):o(t);null===e||void 0===e||e.forEach(function(e){var n=t.edge(e);t.removeEdgeObj(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,"rev-".concat(Math.random()))})},undo:function(t){t.edges().forEach(function(e){var n=t.edge(e);if(n.reversed){t.removeEdgeObj(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}}},LsnM:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE=e.ALGORITHM=void 0;e.ALGORITHM={pageRank:"pageRank",breadthFirstSearch:"breadthFirstSearch",connectedComponent:"connectedComponent",depthFirstSearch:"depthFirstSearch",detectCycle:"detectCycle",detectDirectedCycle:"detectDirectedCycle",detectAllCycles:"detectAllCycles",detectAllDirectedCycle:"detectAllDirectedCycle",detectAllUndirectedCycle:"detectAllUndirectedCycle",dijkstra:"dijkstra",findAllPath:"findAllPath",findShortestPath:"findShortestPath",floydWarshall:"floydWarshall",getAdjMatrix:"getAdjMatrix",getDegree:"getDegree",getInDegree:"getInDegree",getNeighbors:"getNeighbors",getOutDegree:"getOutDegree",labelPropagation:"labelPropagation",louvain:"louvain",GADDI:"GADDI",minimumSpanningTree:"minimumSpanningTree",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};e.MESSAGE={SUCCESS:"SUCCESS",FAILURE:"FAILURE"}},Lw6n:function(module,exports,__webpack_require__){(function(global){var n;this||self,n=function(){return function(){var __webpack_modules__={4264:function(t,e,n){t.exports=n(7588)},5036:function(t,e,n){n(1719),n(5677),n(6394),n(5334),n(6969),n(2021),n(8328),n(2129);var r=n(1287);t.exports=r.Promise},2582:function(t,e,n){n(1646),n(6394),n(2004),n(462),n(8407),n(2429),n(1172),n(8288),n(1274),n(8201),n(6626),n(3211),n(9952),n(15),n(9831),n(7521),n(2972),n(6956),n(5222),n(2257);var r=n(1287);t.exports=r.Symbol},8257:function(t,e,n){var r=n(7583),i=n(9212),o=n(5637),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a function")}},1186:function(t,e,n){var r=n(7583),i=n(2097),o=n(5637),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a constructor")}},9882:function(t,e,n){var r=n(7583),i=n(9212),o=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},6288:function(t,e,n){var r=n(3649),i=n(3590),o=n(4615),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},4761:function(t,e,n){var r=n(7583),i=n(2447),o=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},2569:function(t,e,n){var r=n(7583),i=n(794),o=r.String,a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not an object")}},5766:function(t,e,n){var r=n(2977),i=n(6782),o=n(1825),a=function(t){return function(e,n,a){var s,l=r(e),u=o(l),c=i(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4805:function(t,e,n){var r=n(2938),i=n(7386),o=n(5044),a=n(1324),s=n(1825),l=n(4822),u=i([].push),c=function(t){var e=1==t,n=2==t,i=3==t,c=4==t,h=6==t,d=7==t,f=5==t||h;return function(p,g,v,m){for(var y,b,_=a(p),x=o(_),w=r(g,v),S=s(x),C=0,k=m||l,O=e?k(p,S):n||d?k(p,0):void 0;S>C;C++)if((f||C in x)&&(b=w(y=x[C],C,_),t))if(e)O[C]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return C;case 2:u(O,y)}else switch(t){case 4:return!1;case 7:u(O,y)}return h?-1:i||c?c:O}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},9269:function(t,e,n){var r=n(6544),i=n(3649),o=n(4061),a=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},4546:function(t,e,n){var r=n(7583),i=n(6782),o=n(1825),a=n(5999),s=r.Array,l=Math.max;t.exports=function(t,e,n){for(var r=o(t),u=i(e,r),c=i(void 0===n?r:n,r),h=s(l(c-u,0)),d=0;u<c;u++,d++)a(h,d,t[u]);return h.length=d,h}},6917:function(t,e,n){var r=n(7386);t.exports=r([].slice)},5289:function(t,e,n){var r=n(7583),i=n(4521),o=n(2097),a=n(794),s=n(3649)("species"),l=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===l||i(e.prototype))||a(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?l:e}},4822:function(t,e,n){var r=n(5289);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3616:function(t,e,n){var r=n(3649)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},9624:function(t,e,n){var r=n(7386),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},3058:function(t,e,n){var r=n(7583),i=n(8191),o=n(9212),a=n(9624),s=n(3649)("toStringTag"),l=r.Object,u="Arguments"==a(function(){return arguments}());t.exports=i?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=l(t),s))?n:u?a(e):"Object"==(r=a(e))&&o(e.callee)?"Arguments":r}},1509:function(t,e,n){var r=n(7386)("".replace),i=String(Error("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,a=o.test(i);t.exports=function(t,e){if(a&&"string"==typeof t)for(;e--;)t=r(t,o,"");return t}},3478:function(t,e,n){var r=n(2870),i=n(929),o=n(6683),a=n(4615);t.exports=function(t,e,n){for(var s=i(e),l=a.f,u=o.f,c=0;c<s.length;c++){var h=s[c];r(t,h)||n&&r(n,h)||l(t,h,u(e,h))}}},926:function(t,e,n){var r=n(6544);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},4683:function(t,e,n){"use strict";var r=n(2365).IteratorPrototype,i=n(3590),o=n(4677),a=n(8821),s=n(339),l=function(){return this};t.exports=function(t,e,n,u){var c=e+" Iterator";return t.prototype=i(r,{next:o(+!u,n)}),a(t,c,!1,!0),s[c]=l,t}},57:function(t,e,n){var r=n(8494),i=n(4615),o=n(4677);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},4677:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5999:function(t,e,n){"use strict";var r=n(8734),i=n(4615),o=n(4677);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},9012:function(t,e,n){"use strict";var r=n(7263),i=n(8262),o=n(6268),a=n(4340),s=n(9212),l=n(4683),u=n(729),c=n(7496),h=n(8821),d=n(57),f=n(1270),p=n(3649),g=n(339),v=n(2365),m=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,x=p("iterator"),w="keys",S="values",C="entries",k=function(){return this};t.exports=function(t,e,n,a,p,v,O){l(n,e,a);var M,E,T,A=function(t){if(t===p&&j)return j;if(!_&&t in P)return P[t];switch(t){case w:case S:case C:return function(){return new n(this,t)}}return function(){return new n(this)}},I=e+" Iterator",D=!1,P=t.prototype,L=P[x]||P["@@iterator"]||p&&P[p],j=!_&&L||A(p),N="Array"==e&&P.entries||L;if(N&&(M=u(N.call(new t)))!==Object.prototype&&M.next&&(o||u(M)===b||(c?c(M,b):s(M[x])||f(M,x,k)),h(M,I,!0,!0),o&&(g[I]=k)),m&&p==S&&L&&L.name!==S&&(!o&&y?d(P,"name",S):(D=!0,j=function(){return i(L,this)})),p)if(E={values:A(S),keys:v?j:A(w),entries:A(C)},O)for(T in E)(_||D||!(T in P))&&f(P,T,E[T]);else r({target:e,proto:!0,forced:_||D},E);return o&&!O||P[x]===j||f(P,x,j,{name:p}),g[e]=j,E}},2219:function(t,e,n){var r=n(1287),i=n(2870),o=n(491),a=n(4615).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},8494:function(t,e,n){var r=n(6544);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},6668:function(t,e,n){var r=n(7583),i=n(794),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},6778:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9307:function(t,e,n){var r=n(6668)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},2274:function(t){t.exports="object"==typeof window},3256:function(t,e,n){var r=n(6918),i=n(7583);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},7020:function(t,e,n){var r=n(6918);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5354:function(t,e,n){var r=n(9624),i=n(7583);t.exports="process"==r(i.process)},6846:function(t,e,n){var r=n(6918);t.exports=/web0s(?!.*chrome)/i.test(r)},6918:function(t,e,n){var r=n(5897);t.exports=r("navigator","userAgent")||""},4061:function(t,e,n){var r,i,o=n(7583),a=n(6918),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},5690:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1178:function(t,e,n){var r=n(6544),i=n(4677);t.exports=!r(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)})},7263:function(t,e,n){var r=n(7583),i=n(6683).f,o=n(57),a=n(1270),s=n(460),l=n(3478),u=n(4451);t.exports=function(t,e){var n,c,h,d,f,p=t.target,g=t.global,v=t.stat;if(n=g?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in e){if(d=e[c],h=t.noTargetGet?(f=i(n,c))&&f.value:n[c],!u(g?c:p+(v?".":"#")+c,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(n,c,d,t)}}},6544:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1611:function(t,e,n){var r=n(8987),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},2938:function(t,e,n){var r=n(7386),i=n(8257),o=n(8987),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},8987:function(t,e,n){var r=n(6544);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},8262:function(t,e,n){var r=n(8987),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},4340:function(t,e,n){var r=n(8494),i=n(2870),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},7386:function(t,e,n){var r=n(8987),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5897:function(t,e,n){var r=n(7583),i=n(9212);t.exports=function(t,e){return arguments.length<2?function(t){return i(t)?t:void 0}(r[t]):r[t]&&r[t][e]}},8272:function(t,e,n){var r=n(3058),i=n(911),o=n(339),a=n(3649)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},6307:function(t,e,n){var r=n(7583),i=n(8262),o=n(8257),a=n(2569),s=n(5637),l=n(8272),u=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?l(t):e;if(o(n))return a(i(n,t));throw u(s(t)+" is not iterable")}},911:function(t,e,n){var r=n(8257);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},7583:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2870:function(t,e,n){var r=n(7386),i=n(1324),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},4639:function(t){t.exports={}},2716:function(t,e,n){var r=n(7583);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},482:function(t,e,n){var r=n(5897);t.exports=r("document","documentElement")},275:function(t,e,n){var r=n(8494),i=n(6544),o=n(6668);t.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},5044:function(t,e,n){var r=n(7583),i=n(7386),o=n(6544),a=n(9624),s=r.Object,l=i("".split);t.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"==a(t)?l(t,""):s(t)}:s},9734:function(t,e,n){var r=n(7386),i=n(9212),o=n(1314),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},4402:function(t,e,n){var r=n(794),i=n(57);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},2743:function(t,e,n){var r,i,o,a=n(9491),s=n(7583),l=n(7386),u=n(794),c=n(57),h=n(2870),d=n(1314),f=n(9137),p=n(4639),g="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m),b=l(y.get),_=l(y.has),x=l(y.set);r=function(t,e){if(_(y,t))throw new v(g);return e.facade=t,x(y,t,e),e},i=function(t){return b(y,t)||{}},o=function(t){return _(y,t)}}else{var w=f("state");p[w]=!0,r=function(t,e){if(h(t,w))throw new v(g);return e.facade=t,c(t,w,e),e},i=function(t){return h(t,w)?t[w]:{}},o=function(t){return h(t,w)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},114:function(t,e,n){var r=n(3649),i=n(339),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},4521:function(t,e,n){var r=n(9624);t.exports=Array.isArray||function(t){return"Array"==r(t)}},9212:function(t){t.exports=function(t){return"function"==typeof t}},2097:function(t,e,n){var r=n(7386),i=n(6544),o=n(9212),a=n(3058),s=n(5897),l=n(9734),u=function(){},c=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),p=!d.exec(u),g=function(t){if(!o(t))return!1;try{return h(u,c,t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(t))}catch(t){return!0}};v.sham=!0,t.exports=!h||i(function(){var t;return g(g.call)||!g(Object)||!g(function(){t=!0})||t})?v:g},4451:function(t,e,n){var r=n(6544),i=n(9212),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n==c||n!=u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},794:function(t,e,n){var r=n(9212);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6268:function(t){t.exports=!1},5871:function(t,e,n){var r=n(7583),i=n(5897),o=n(9212),a=n(2447),s=n(7786),l=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&a(e.prototype,l(t))}},4026:function(t,e,n){var r=n(7583),i=n(2938),o=n(8262),a=n(2569),s=n(5637),l=n(114),u=n(1825),c=n(2447),h=n(6307),d=n(8272),f=n(7093),p=r.TypeError,g=function(t,e){this.stopped=t,this.result=e},v=g.prototype;t.exports=function(t,e,n){var r,m,y,b,_,x,w,S=n&&n.that,C=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),M=i(e,S),E=function(t){return r&&f(r,"normal",t),new g(!0,t)},T=function(t){return C?(a(t),O?M(t[0],t[1],E):M(t[0],t[1])):O?M(t,E):M(t)};if(k)r=t;else{if(!(m=d(t)))throw p(s(t)+" is not iterable");if(l(m)){for(y=0,b=u(t);b>y;y++)if((_=T(t[y]))&&c(v,_))return _;return new g(!1)}r=h(t,m)}for(x=r.next;!(w=o(x,r)).done;){try{_=T(w.value)}catch(t){f(r,"throw",t)}if("object"==typeof _&&_&&c(v,_))return _}return new g(!1)}},7093:function(t,e,n){var r=n(8262),i=n(2569),o=n(911);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},2365:function(t,e,n){"use strict";var r,i,o,a=n(6544),s=n(9212),l=n(3590),u=n(729),c=n(1270),h=n(3649),d=n(6268),f=h("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):p=!0),null==r||a(function(){var t={};return r[f].call(t)!==t})?r={}:d&&(r=l(r)),s(r[f])||c(r,f,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},339:function(t){t.exports={}},1825:function(t,e,n){var r=n(97);t.exports=function(t){return r(t.length)}},2095:function(t,e,n){var r,i,o,a,s,l,u,c,h=n(7583),d=n(2938),f=n(6683).f,p=n(8117).set,g=n(7020),v=n(3256),m=n(6846),y=n(5354),b=h.MutationObserver||h.WebKitMutationObserver,_=h.document,x=h.process,w=h.Promise,S=f(h,"queueMicrotask"),C=S&&S.value;C||(r=function(){var t,e;for(y&&(t=x.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},g||y||m||!b||!_?!v&&w&&w.resolve?((u=w.resolve(void 0)).constructor=w,c=d(u.then,u),a=function(){c(r)}):y?a=function(){x.nextTick(r)}:(p=d(p,h),a=function(){p(r)}):(s=!0,l=_.createTextNode(""),new b(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),t.exports=C||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},783:function(t,e,n){var r=n(7583);t.exports=r.Promise},8640:function(t,e,n){var r=n(4061),i=n(6544);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},9491:function(t,e,n){var r=n(7583),i=n(9212),o=n(9734),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},5084:function(t,e,n){"use strict";var r=n(8257);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},2764:function(t,e,n){var r=n(8320);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},3590:function(t,e,n){var r,i=n(2569),o=n(8728),a=n(5690),s=n(4639),l=n(482),u=n(6668),c=n(9137)("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"<\/script>"},f=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?f(r):((e=u("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):f(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[c]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[c]=t):n=p(),void 0===e?n:o.f(n,e)}},8728:function(t,e,n){var r=n(8494),i=n(7670),o=n(4615),a=n(2569),s=n(2977),l=n(5432);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=l(e),u=i.length,c=0;u>c;)o.f(t,n=i[c++],r[n]);return t}},4615:function(t,e,n){var r=n(7583),i=n(8494),o=n(275),a=n(7670),s=n(2569),l=n(8734),u=r.TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor;e.f=i?a?function(t,e,n){if(s(t),e=l(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=h(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=l(e),s(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},6683:function(t,e,n){var r=n(8494),i=n(8262),o=n(112),a=n(4677),s=n(2977),l=n(8734),u=n(2870),c=n(275),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=l(e),c)try{return h(t,e)}catch(t){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},3130:function(t,e,n){var r=n(9624),i=n(2977),o=n(9275).f,a=n(4546),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},9275:function(t,e,n){var r=n(8356),i=n(5690).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},4012:function(t,e){e.f=Object.getOwnPropertySymbols},729:function(t,e,n){var r=n(7583),i=n(2870),o=n(9212),a=n(1324),s=n(9137),l=n(926),u=s("IE_PROTO"),c=r.Object,h=c.prototype;t.exports=l?c.getPrototypeOf:function(t){var e=a(t);if(i(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?h:null}},2447:function(t,e,n){var r=n(7386);t.exports=r({}.isPrototypeOf)},8356:function(t,e,n){var r=n(7386),i=n(2870),o=n(2977),a=n(5766).indexOf,s=n(4639),l=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;e.length>u;)i(r,n=e[u++])&&(~a(c,n)||l(c,n));return c}},5432:function(t,e,n){var r=n(8356),i=n(5690);t.exports=Object.keys||function(t){return r(t,i)}},112:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7496:function(t,e,n){var r=n(7386),i=n(2569),o=n(9882);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},3060:function(t,e,n){"use strict";var r=n(8191),i=n(3058);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},6252:function(t,e,n){var r=n(7583),i=n(8262),o=n(9212),a=n(794),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},929:function(t,e,n){var r=n(5897),i=n(7386),o=n(9275),a=n(4012),s=n(2569),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},1287:function(t,e,n){var r=n(7583);t.exports=r},544:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},5732:function(t,e,n){var r=n(2569),i=n(794),o=n(5084);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},2723:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},6893:function(t,e,n){var r=n(1270);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},1270:function(t,e,n){var r=n(7583),i=n(9212),o=n(2870),a=n(57),s=n(460),l=n(9734),u=n(2743),c=n(4340).CONFIGURABLE,h=u.get,d=u.enforce,f=String(String).split("String");(t.exports=function(t,e,n,l){var u,h=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:e;i(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||c&&n.name!==v)&&a(n,"name",v),(u=d(n)).source||(u.source=f.join("string"==typeof v?v:""))),t!==r?(h?!g&&t[e]&&(p=!0):delete t[e],p?t[e]=n:a(t,e,n)):p?t[e]=n:s(e,n)})(Function.prototype,"toString",function(){return i(this)&&h(this).source||l(this)})},3955:function(t,e,n){var r=n(7583).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},460:function(t,e,n){var r=n(7583),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},7730:function(t,e,n){"use strict";var r=n(5897),i=n(4615),o=n(3649),a=n(8494),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8821:function(t,e,n){var r=n(4615).f,i=n(2870),o=n(3649)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},9137:function(t,e,n){var r=n(7836),i=n(8284),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},1314:function(t,e,n){var r=n(7583),i=n(460),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},7836:function(t,e,n){var r=n(6268),i=n(1314);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},564:function(t,e,n){var r=n(2569),i=n(1186),o=n(3649)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},6389:function(t,e,n){var r=n(7386),i=n(7486),o=n(8320),a=n(3955),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(t){return function(e,n){var r,c,h=o(a(e)),d=i(n),f=h.length;return d<0||d>=f?t?"":void 0:(r=l(h,d))<55296||r>56319||d+1===f||(c=l(h,d+1))<56320||c>57343?t?s(h,d):r:t?u(h,d,d+2):c-56320+(r-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},8117:function(t,e,n){var r,i,o,a,s=n(7583),l=n(1611),u=n(2938),c=n(9212),h=n(2870),d=n(6544),f=n(482),p=n(6917),g=n(6668),v=n(7520),m=n(7020),y=n(5354),b=s.setImmediate,_=s.clearImmediate,x=s.process,w=s.Dispatch,S=s.Function,C=s.MessageChannel,k=s.String,O=0,M={};try{r=s.location}catch(t){}var E=function(t){if(h(M,t)){var e=M[t];delete M[t],e()}},T=function(t){return function(){E(t)}},A=function(t){E(t.data)},I=function(t){s.postMessage(k(t),r.protocol+"//"+r.host)};b&&_||(b=function(t){v(arguments.length,1);var e=c(t)?t:S(t),n=p(arguments,1);return M[++O]=function(){l(e,void 0,n)},i(O),O},_=function(t){delete M[t]},y?i=function(t){x.nextTick(T(t))}:w&&w.now?i=function(t){w.now(T(t))}:C&&!m?(a=(o=new C).port2,o.port1.onmessage=A,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(I)?(i=I,s.addEventListener("message",A,!1)):i="onreadystatechange"in g("script")?function(t){f.appendChild(g("script")).onreadystatechange=function(){f.removeChild(this),E(t)}}:function(t){setTimeout(T(t),0)}),t.exports={set:b,clear:_}},6782:function(t,e,n){var r=n(7486),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},2977:function(t,e,n){var r=n(5044),i=n(3955);t.exports=function(t){return r(i(t))}},7486:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},97:function(t,e,n){var r=n(7486),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},1324:function(t,e,n){var r=n(7583),i=n(3955),o=r.Object;t.exports=function(t){return o(i(t))}},2670:function(t,e,n){var r=n(7583),i=n(8262),o=n(794),a=n(5871),s=n(911),l=n(6252),u=n(3649),c=r.TypeError,h=u("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,h);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},8734:function(t,e,n){var r=n(2670),i=n(5871);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},8191:function(t,e,n){var r={};r[n(3649)("toStringTag")]="z",t.exports="[object z]"===String(r)},8320:function(t,e,n){var r=n(7583),i=n(3058),o=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},5637:function(t,e,n){var r=n(7583).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},8284:function(t,e,n){var r=n(7386),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},7786:function(t,e,n){var r=n(8640);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7670:function(t,e,n){var r=n(8494),i=n(6544);t.exports=r&&i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},7520:function(t,e,n){var r=n(7583).TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},491:function(t,e,n){var r=n(3649);e.f=r},3649:function(t,e,n){var r=n(7583),i=n(7836),o=n(2870),a=n(8284),s=n(8640),l=n(7786),u=i("wks"),c=r.Symbol,h=c&&c.for,d=l?c:c&&c.withoutSetter||a;t.exports=function(t){if(!o(u,t)||!s&&"string"!=typeof u[t]){var e="Symbol."+t;s&&o(c,t)?u[t]=c[t]:u[t]=l&&h?h(e):d(e)}return u[t]}},1719:function(t,e,n){"use strict";var r=n(7263),i=n(7583),o=n(2447),a=n(729),s=n(7496),l=n(3478),u=n(3590),c=n(57),h=n(4677),d=n(1509),f=n(4402),p=n(4026),g=n(2764),v=n(3649),m=n(1178),y=v("toStringTag"),b=i.Error,_=[].push,x=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=o(w,this);s?n=s(new b,i?a(this):w):(n=i?this:u(w),c(n,y,"Error")),void 0!==e&&c(n,"message",g(e)),m&&c(n,"stack",d(n.stack,1)),f(n,r);var l=[];return p(t,_,{that:l}),c(n,"errors",l),n};s?s(x,b):l(x,b,{name:!0});var w=x.prototype=u(b.prototype,{constructor:h(1,x),message:h(1,""),name:h(1,"AggregateError")});r({global:!0},{AggregateError:x})},1646:function(t,e,n){"use strict";var r=n(7263),i=n(7583),o=n(6544),a=n(4521),s=n(794),l=n(1324),u=n(1825),c=n(5999),h=n(4822),d=n(9269),f=n(3649),p=n(4061),g=f("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",y=i.TypeError,b=p>=51||!o(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),_=d("concat"),x=function(t){if(!s(t))return!1;var e=t[g];return void 0!==e?!!e:a(t)};r({target:"Array",proto:!0,forced:!b||!_},{concat:function(t){var e,n,r,i,o,a=l(this),s=h(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(x(o=-1===e?a:arguments[e])){if(d+(i=u(o))>v)throw y(m);for(n=0;n<i;n++,d++)n in o&&c(s,d,o[n])}else{if(d>=v)throw y(m);c(s,d++,o)}return s.length=d,s}})},5677:function(t,e,n){"use strict";var r=n(2977),i=n(6288),o=n(339),a=n(2743),s=n(4615).f,l=n(9012),u=n(6268),c=n(8494),h="Array Iterator",d=a.set,f=a.getterFor(h);t.exports=l(Array,"Array",function(t,e){d(this,{type:h,target:r(t),index:0,kind:e})},function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&c&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},6956:function(t,e,n){var r=n(7583);n(8821)(r.JSON,"JSON",!0)},5222:function(t,e,n){n(8821)(Math,"Math",!0)},6394:function(t,e,n){var r=n(8191),i=n(1270),o=n(3060);r||i(Object.prototype,"toString",o,{unsafe:!0})},6969:function(t,e,n){"use strict";var r=n(7263),i=n(8262),o=n(8257),a=n(5084),s=n(544),l=n(4026);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,c=s(function(){var n=o(e.resolve),a=[],s=0,u=1;l(t,function(t){var o=s++,l=!1;u++,i(n,e,t).then(function(t){l||(l=!0,a[o]={status:"fulfilled",value:t},--u||r(a))},function(t){l||(l=!0,a[o]={status:"rejected",reason:t},--u||r(a))})}),--u||r(a)});return c.error&&u(c.value),n.promise}})},2021:function(t,e,n){"use strict";var r=n(7263),i=n(8257),o=n(5897),a=n(8262),s=n(5084),l=n(544),u=n(4026),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=o("AggregateError"),r=s.f(e),h=r.resolve,d=r.reject,f=l(function(){var r=i(e.resolve),o=[],s=0,l=1,f=!1;u(t,function(t){var i=s++,u=!1;l++,a(r,e,t).then(function(t){u||f||(f=!0,h(t))},function(t){u||f||(u=!0,o[i]=t,--l||d(new n(o,c)))})}),--l||d(new n(o,c))});return f.error&&d(f.value),r.promise}})},8328:function(t,e,n){"use strict";var r=n(7263),i=n(6268),o=n(783),a=n(6544),s=n(5897),l=n(9212),u=n(564),c=n(5732),h=n(1270);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=u(this,s("Promise")),n=l(t);return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}}),!i&&l(o)){var d=s("Promise").prototype.finally;o.prototype.finally!==d&&h(o.prototype,"finally",d,{unsafe:!0})}},5334:function(t,e,n){"use strict";var r,i,o,a,s=n(7263),l=n(6268),u=n(7583),c=n(5897),h=n(8262),d=n(783),f=n(1270),p=n(6893),g=n(7496),v=n(8821),m=n(7730),y=n(8257),b=n(9212),_=n(794),x=n(4761),w=n(9734),S=n(4026),C=n(3616),k=n(564),O=n(8117).set,M=n(2095),E=n(5732),T=n(2716),A=n(5084),I=n(544),D=n(2723),P=n(2743),L=n(4451),j=n(3649),N=n(2274),R=n(5354),B=n(4061),F=j("species"),z="Promise",V=P.getterFor(z),$=P.set,G=P.getterFor(z),H=d&&d.prototype,W=d,U=H,Y=u.TypeError,X=u.document,q=u.process,Z=A.f,K=Z,J=!!(X&&X.createEvent&&u.dispatchEvent),Q=b(u.PromiseRejectionEvent),tt="unhandledrejection",et=!1,nt=L(z,function(){var t=w(W),e=t!==String(W);if(!e&&66===B)return!0;if(l&&!U.finally)return!0;if(B>=51&&/native code/.test(t))return!1;var n=new W(function(t){t(1)}),r=function(t){t(function(){},function(){})};return(n.constructor={})[F]=r,!(et=n.then(function(){})instanceof r)||!e&&N&&!Q}),rt=nt||!C(function(t){W.all(t).catch(function(){})}),it=function(t){var e;return!(!_(t)||!b(e=t.then))&&e},ot=function(t,e){var n,r,i,o=e.value,a=1==e.state,s=a?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(a||(2===e.rejection&&ct(e),e.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===t.promise?u(Y("Promise-chain cycle")):(r=it(n))?h(r,n,l,u):l(n)):u(o)}catch(t){c&&!i&&c.exit(),u(t)}},at=function(t,e){t.notified||(t.notified=!0,M(function(){for(var n,r=t.reactions;n=r.get();)ot(n,t);t.notified=!1,e&&!t.rejection&<(t)}))},st=function(t,e,n){var r,i;J?((r=X.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!Q&&(i=u["on"+t])?i(r):t===tt&&T("Unhandled promise rejection",n)},lt=function(t){h(O,u,function(){var e,n=t.facade,r=t.value;if(ut(t)&&(e=I(function(){R?q.emit("unhandledRejection",r,n):st(tt,n,r)}),t.rejection=R||ut(t)?2:1,e.error))throw e.value})},ut=function(t){return 1!==t.rejection&&!t.parent},ct=function(t){h(O,u,function(){var e=t.facade;R?q.emit("rejectionHandled",e):st("rejectionhandled",e,t.value)})},ht=function(t,e,n){return function(r){t(e,r,n)}},dt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,at(t,!0))},ft=function t(e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===n)throw Y("Promise can't be resolved itself");var i=it(n);i?M(function(){var r={done:!1};try{h(i,n,ht(t,r,e),ht(dt,r,e))}catch(t){dt(r,t,e)}}):(e.value=n,e.state=1,at(e,!1))}catch(t){dt({done:!1},t,e)}}};if(nt&&(U=(W=function(t){x(this,U),y(t),h(r,this);var e=V(this);try{t(ht(ft,e),ht(dt,e))}catch(t){dt(e,t)}}).prototype,(r=function(t){$(this,{type:z,done:!1,notified:!1,parent:!1,reactions:new D,rejection:!1,state:0,value:void 0})}).prototype=p(U,{then:function(t,e){var n=G(this),r=Z(k(this,W));return n.parent=!0,r.ok=!b(t)||t,r.fail=b(e)&&e,r.domain=R?q.domain:void 0,0==n.state?n.reactions.add(r):M(function(){ot(r,n)}),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=V(t);this.promise=t,this.resolve=ht(ft,e),this.reject=ht(dt,e)},A.f=Z=function(t){return t===W||t===o?new i(t):K(t)},!l&&b(d)&&H!==Object.prototype)){a=H.then,et||(f(H,"then",function(t,e){var n=this;return new W(function(t,e){h(a,n,t,e)}).then(t,e)},{unsafe:!0}),f(H,"catch",U.catch,{unsafe:!0}));try{delete H.constructor}catch(t){}g&&g(H,U)}s({global:!0,wrap:!0,forced:nt},{Promise:W}),v(W,z,!1,!0),m(z),o=c(z),s({target:z,stat:!0,forced:nt},{reject:function(t){var e=Z(this);return h(e.reject,void 0,t),e.promise}}),s({target:z,stat:!0,forced:l||nt},{resolve:function(t){return E(l&&this===o?W:this,t)}}),s({target:z,stat:!0,forced:rt},{all:function(t){var e=this,n=Z(e),r=n.resolve,i=n.reject,o=I(function(){var n=y(e.resolve),o=[],a=0,s=1;S(t,function(t){var l=a++,u=!1;s++,h(n,e,t).then(function(t){u||(u=!0,o[l]=t,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=Z(e),r=n.reject,i=I(function(){var i=y(e.resolve);S(t,function(t){h(i,e,t).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},2257:function(t,e,n){var r=n(7263),i=n(7583),o=n(8821);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},2129:function(t,e,n){"use strict";var r=n(6389).charAt,i=n(8320),o=n(2743),a=n(9012),s="String Iterator",l=o.set,u=o.getterFor(s);a(String,"String",function(t){l(this,{type:s,string:i(t),index:0})},function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})})},462:function(t,e,n){n(2219)("asyncIterator")},8407:function(t,e,n){"use strict";var r=n(7263),i=n(8494),o=n(7583),a=n(7386),s=n(2870),l=n(9212),u=n(2447),c=n(8320),h=n(4615).f,d=n(3478),f=o.Symbol,p=f&&f.prototype;if(i&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),e=u(p,this)?new f(t):void 0===t?f():f(t);return""===t&&(g[e]=!0),e};d(v,f),v.prototype=p,p.constructor=v;var m="Symbol(test)"==String(f("test")),y=a(p.toString),b=a(p.valueOf),_=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),w=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=b(this),e=y(t);if(s(g,t))return"";var n=m?w(e,7,-1):x(e,_,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},2429:function(t,e,n){n(2219)("hasInstance")},1172:function(t,e,n){n(2219)("isConcatSpreadable")},8288:function(t,e,n){n(2219)("iterator")},2004:function(t,e,n){"use strict";var r=n(7263),i=n(7583),o=n(5897),a=n(1611),s=n(8262),l=n(7386),u=n(6268),c=n(8494),h=n(8640),d=n(6544),f=n(2870),p=n(4521),g=n(9212),v=n(794),m=n(2447),y=n(5871),b=n(2569),_=n(1324),x=n(2977),w=n(8734),S=n(8320),C=n(4677),k=n(3590),O=n(5432),M=n(9275),E=n(3130),T=n(4012),A=n(6683),I=n(4615),D=n(8728),P=n(112),L=n(6917),j=n(1270),N=n(7836),R=n(9137),B=n(4639),F=n(8284),z=n(3649),V=n(491),$=n(2219),G=n(8821),H=n(2743),W=n(4805).forEach,U=R("hidden"),Y="Symbol",X=z("toPrimitive"),q=H.set,Z=H.getterFor(Y),K=Object.prototype,J=i.Symbol,Q=J&&J.prototype,tt=i.TypeError,et=i.QObject,nt=o("JSON","stringify"),rt=A.f,it=I.f,ot=E.f,at=P.f,st=l([].push),lt=N("symbols"),ut=N("op-symbols"),ct=N("string-to-symbol-registry"),ht=N("symbol-to-string-registry"),dt=N("wks"),ft=!et||!et.prototype||!et.prototype.findChild,pt=c&&d(function(){return 7!=k(it({},"a",{get:function(){return it(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=rt(K,e);r&&delete K[e],it(t,e,n),r&&t!==K&&it(K,e,r)}:it,gt=function(t,e){var n=lt[t]=k(Q);return q(n,{type:Y,tag:t,description:e}),c||(n.description=e),n},vt=function(t,e,n){t===K&&vt(ut,e,n),b(t);var r=w(e);return b(n),f(lt,r)?(n.enumerable?(f(t,U)&&t[U][r]&&(t[U][r]=!1),n=k(n,{enumerable:C(0,!1)})):(f(t,U)||it(t,U,C(1,{})),t[U][r]=!0),pt(t,r,n)):it(t,r,n)},mt=function(t,e){b(t);var n=x(e),r=O(n).concat(xt(n));return W(r,function(e){c&&!s(yt,n,e)||vt(t,e,n[e])}),t},yt=function(t){var e=w(t),n=s(at,this,e);return!(this===K&&f(lt,e)&&!f(ut,e))&&(!(n||!f(this,e)||!f(lt,e)||f(this,U)&&this[U][e])||n)},bt=function(t,e){var n=x(t),r=w(e);if(n!==K||!f(lt,r)||f(ut,r)){var i=rt(n,r);return!i||!f(lt,r)||f(n,U)&&n[U][r]||(i.enumerable=!0),i}},_t=function(t){var e=ot(x(t)),n=[];return W(e,function(t){f(lt,t)||f(B,t)||st(n,t)}),n},xt=function(t){var e=t===K,n=ot(e?ut:x(t)),r=[];return W(n,function(t){!f(lt,t)||e&&!f(K,t)||st(r,lt[t])}),r};if(h||(j(Q=(J=function(){if(m(Q,this))throw tt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,e=F(t);return c&&ft&&pt(K,e,{configurable:!0,set:function t(n){this===K&&s(t,ut,n),f(this,U)&&f(this[U],e)&&(this[U][e]=!1),pt(this,e,C(1,n))}}),gt(e,t)}).prototype,"toString",function(){return Z(this).tag}),j(J,"withoutSetter",function(t){return gt(F(t),t)}),P.f=yt,I.f=vt,D.f=mt,A.f=bt,M.f=E.f=_t,T.f=xt,V.f=function(t){return gt(z(t),t)},c&&(it(Q,"description",{configurable:!0,get:function(){return Z(this).description}}),u||j(K,"propertyIsEnumerable",yt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:J}),W(O(dt),function(t){$(t)}),r({target:Y,stat:!0,forced:!h},{for:function(t){var e=S(t);if(f(ct,e))return ct[e];var n=J(e);return ct[e]=n,ht[n]=e,n},keyFor:function(t){if(!y(t))throw tt(t+" is not a symbol");if(f(ht,t))return ht[t]},useSetter:function(){ft=!0},useSimple:function(){ft=!1}}),r({target:"Object",stat:!0,forced:!h,sham:!c},{create:function(t,e){return void 0===e?k(t):mt(k(t),e)},defineProperty:vt,defineProperties:mt,getOwnPropertyDescriptor:bt}),r({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:_t,getOwnPropertySymbols:xt}),r({target:"Object",stat:!0,forced:d(function(){T.f(1)})},{getOwnPropertySymbols:function(t){return T.f(_(t))}}),nt&&r({target:"JSON",stat:!0,forced:!h||d(function(){var t=J();return"[null]"!=nt([t])||"{}"!=nt({a:t})||"{}"!=nt(Object(t))})},{stringify:function(t,e,n){var r=L(arguments),i=e;if((v(e)||void 0!==t)&&!y(t))return p(e)||(e=function(t,e){if(g(i)&&(e=s(i,this,t,e)),!y(e))return e}),r[1]=e,a(nt,null,r)}}),!Q[X]){var wt=Q.valueOf;j(Q,X,function(t){return s(wt,this)})}G(J,Y),B[U]=!0},8201:function(t,e,n){n(2219)("matchAll")},1274:function(t,e,n){n(2219)("match")},6626:function(t,e,n){n(2219)("replace")},3211:function(t,e,n){n(2219)("search")},9952:function(t,e,n){n(2219)("species")},15:function(t,e,n){n(2219)("split")},9831:function(t,e,n){n(2219)("toPrimitive")},7521:function(t,e,n){n(2219)("toStringTag")},2972:function(t,e,n){n(2219)("unscopables")},4655:function(t,e,n){var r=n(7583),i=n(6778),o=n(9307),a=n(5677),s=n(57),l=n(3649),u=l("iterator"),c=l("toStringTag"),h=a.values,d=function(t,e){if(t){if(t[u]!==h)try{s(t,u,h)}catch(e){t[u]=h}if(t[c]||s(t,c,e),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var f in i)d(r[f]&&r[f].prototype,f);d(o,"DOMTokenList")},8765:function(t,e,n){var r=n(5036);n(4655),t.exports=r},5441:function(t,e,n){var r=n(2582);n(4655),t.exports=r},7705:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<t.length;u++){var c=[].concat(t[u]);r&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),e.push(c))}},e}},6738:function(t){"use strict";t.exports=function(t){return t[1]}},8679:function(t){var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,n=window.WeakMap;if(void 0===n){var r=Object.defineProperty,i=Date.now()%1e9;(n=function(){this.name="__st"+(1e9*Math.random()>>>0)+i+++"__"}).prototype={set:function(t,e){var n=t[this.name];return n&&n[0]===t?n[1]=e:r(t,this.name,{value:[t,e],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];if(!e)return!1;var n=e[0]===t;return e[0]=e[1]=void 0,n},has:function(t){var e=t[this.name];return!!e&&e[0]===t}}}var o=new n,a=window.msSetImmediate;if(!a){var s=[],l=String(Math.random());window.addEventListener("message",function(t){if(t.data===l){var e=s;s=[],e.forEach(function(t){t()})}}),a=function(t){s.push(t),window.postMessage(l,"*")}}var u=!1,c=[];function h(){u=!1;var t=c;c=[],t.sort(function(t,e){return t.uid_-e.uid_});var e=!1;t.forEach(function(t){var n=t.takeRecords();!function(t){t.nodes_.forEach(function(e){var n=o.get(e);n&&n.forEach(function(e){e.observer===t&&e.removeTransientObservers()})})}(t),n.length&&(t.callback_(n,t),e=!0)}),e&&h()}function d(t,e){for(var n=t;n;n=n.parentNode){var r=o.get(n);if(r)for(var i=0;i<r.length;i++){var a=r[i],s=a.options;if(n===t||s.subtree){var l=e(s);l&&a.enqueue(l)}}}}var f,p,g=0;function v(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++g}function m(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function y(t,e){return f=new m(t,e)}function b(t){return p||((n=new m((e=f).type,e.target)).addedNodes=e.addedNodes.slice(),n.removedNodes=e.removedNodes.slice(),n.previousSibling=e.previousSibling,n.nextSibling=e.nextSibling,n.attributeName=e.attributeName,n.attributeNamespace=e.attributeNamespace,n.oldValue=e.oldValue,(p=n).oldValue=t,p);var e,n}function _(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}v.prototype={observe:function(t,e){var n;if(n=t,t=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(n)||n,!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var r,i=o.get(t);i||o.set(t,i=[]);for(var a=0;a<i.length;a++)if(i[a].observer===this){(r=i[a]).removeListeners(),r.options=e;break}r||(r=new _(this,t,e),i.push(r),this.nodes_.push(t)),r.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=o.get(t),n=0;n<e.length;n++){var r=e[n];if(r.observer===this){r.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},_.prototype={enqueue:function(t){var e,n=this.observer.records_,r=n.length;if(n.length>0){var i=function(t,e){return t===e?t:!p||(n=t)!==p&&n!==f?null:p;var n}(n[r-1],t);if(i)return void(n[r-1]=i)}else e=this.observer,c.push(e),u||(u=!0,a(h));n[r]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=o.get(t);e||o.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=o.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,r=t.target;(o=new y("attributes",r)).attributeName=e,o.attributeNamespace=n;var i=null;"undefined"!=typeof MutationEvent&&t.attrChange===MutationEvent.ADDITION||(i=t.prevValue),d(r,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(n)))return t.attributeOldValue?b(i):o});break;case"DOMCharacterDataModified":var o=y("characterData",r=t.target);i=t.prevValue,d(r,function(t){if(t.characterData)return t.characterDataOldValue?b(i):o});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":r=t.relatedNode;var a,s,l=t.target;"DOMNodeInserted"===t.type?(a=[l],s=[]):(a=[],s=[l]);var u=l.previousSibling,c=l.nextSibling;(o=y("childList",r)).addedNodes=a,o.removedNodes=s,o.previousSibling=u,o.nextSibling=c,d(r,function(t){if(t.childList)return o})}f=p=void 0}},e||(e=v),t.exports=e},7588:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(t,e,n){var r=h;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=c(t,e,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function v(){}function m(){}function y(){}var b={};l(b,o,function(){return this});var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==n&&r.call(x,o)&&(b=x);var w=y.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function C(t,e){function n(i,o,a,s){var l=c(t[i],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,a,s)},function(t){n("throw",t,a,s)}):e.resolve(h).then(function(t){u.value=t,a(u)},function(t){return n("throw",t,a,s)})}s(l.arg)}var i;this._invoke=function(t,r){function o(){return new e(function(e,i){n(t,r,e,i)})}return i=i?i.then(o,o):o()}}function k(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=c(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:e,done:!0}}return m.prototype=y,l(w,"constructor",y),l(y,"constructor",m),m.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,a,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},S(w),l(w,s,"Generator"),l(w,o,function(){return this}),l(w,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8702:function(t,e,n){"use strict";n.d(e,{Z:function(){return j}});var r=n(4296),i=n(6464),o=n(6881),a=n(2942),s=n(7003),l=n(3379),u=n.n(l),c=n(7795),h=n.n(c),d=n(569),f=n.n(d),p=n(3565),g=n.n(p),v=n(9216),m=n.n(v),y=n(4589),b=n.n(y),_=n(5313),x={};_.Z&&_.Z.locals&&(x.locals=_.Z.locals);var w,S=0,C={};C.styleTagTransform=b(),C.setAttributes=g(),C.insert=f().bind(null,"head"),C.domAPI=h(),C.insertStyleElement=m(),x.use=function(t){return C.options=t||{},S++||(w=u()(_.Z,C)),x},x.unuse=function(){S>0&&!--S&&(w(),w=null)};var k=x;function O(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M599.99999 832.000004h47.999999a24 24 0 0 0 23.999999-24V376.000013a24 24 0 0 0-23.999999-24h-47.999999a24 24 0 0 0-24 24v431.999991a24 24 0 0 0 24 24zM927.999983 160.000017h-164.819997l-67.999998-113.399998A95.999998 95.999998 0 0 0 612.819989 0.00002H411.179993a95.999998 95.999998 0 0 0-82.319998 46.599999L260.819996 160.000017H95.999999A31.999999 31.999999 0 0 0 64 192.000016v32a31.999999 31.999999 0 0 0 31.999999 31.999999h32v671.999987a95.999998 95.999998 0 0 0 95.999998 95.999998h575.999989a95.999998 95.999998 0 0 0 95.999998-95.999998V256.000015h31.999999a31.999999 31.999999 0 0 0 32-31.999999V192.000016a31.999999 31.999999 0 0 0-32-31.999999zM407.679993 101.820018A12 12 0 0 1 417.999993 96.000018h187.999996a12 12 0 0 1 10.3 5.82L651.219989 160.000017H372.779994zM799.999986 928.000002H223.999997V256.000015h575.999989z m-423.999992-95.999998h47.999999a24 24 0 0 0 24-24V376.000013a24 24 0 0 0-24-24h-47.999999a24 24 0 0 0-24 24v431.999991a24 24 0 0 0 24 24z"),(0,a.Ljt)(e,"class","vc-icon-delete"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function M(t){var e,n,r;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),r=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M874.154197 150.116875A511.970373 511.970373 0 1 0 1023.993986 511.991687a511.927744 511.927744 0 0 0-149.839789-361.874812z m-75.324866 648.382129A405.398688 405.398688 0 1 1 917.422301 511.991687a405.313431 405.313431 0 0 1-118.59297 286.507317z"),(0,a.Ljt)(r,"d","M725.039096 299.274605a54.351559 54.351559 0 0 0-76.731613 0l-135.431297 135.431297L377.274375 299.274605a54.436817 54.436817 0 0 0-76.944756 76.987385l135.388668 135.431297-135.388668 135.473925a54.436817 54.436817 0 0 0 76.944756 76.987385l135.388668-135.431297 135.431297 135.473926a54.436817 54.436817 0 0 0 76.731613-76.987385l-135.388668-135.473926 135.388668-135.431296a54.479445 54.479445 0 0 0 0.213143-77.030014z"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n),(0,a.R3I)(e,r)},d:function(t){t&&(0,a.ogt)(e)}}}function E(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"fill-rule","evenodd"),(0,a.Ljt)(n,"d","M5.75 1a.75.75 0 00-.75.75v3c0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75v-3a.75.75 0 00-.75-.75h-4.5zm.75 3V2.5h3V4h-3zm-2.874-.467a.75.75 0 00-.752-1.298A1.75 1.75 0 002 3.75v9.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 13.25v-9.5a1.75 1.75 0 00-.874-1.515.75.75 0 10-.752 1.298.25.25 0 01.126.217v9.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-9.5a.25.25 0 01.126-.217z"),(0,a.Ljt)(e,"class","vc-icon-copy"),(0,a.Ljt)(e,"viewBox","0 0 16 16")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function T(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"fill-rule","evenodd"),(0,a.Ljt)(n,"d","M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"),(0,a.Ljt)(e,"class","vc-icon-suc"),(0,a.Ljt)(e,"viewBox","0 0 16 16")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function A(t){var e,n,r;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),r=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M776.533333 1024 162.133333 1024C72.533333 1024 0 951.466667 0 861.866667L0 247.466667C0 157.866667 72.533333 85.333333 162.133333 85.333333L469.333333 85.333333c25.6 0 42.666667 17.066667 42.666667 42.666667s-17.066667 42.666667-42.666667 42.666667L162.133333 170.666667C119.466667 170.666667 85.333333 204.8 85.333333 247.466667l0 610.133333c0 42.666667 34.133333 76.8 76.8 76.8l610.133333 0c42.666667 0 76.8-34.133333 76.8-76.8L849.066667 554.666667c0-25.6 17.066667-42.666667 42.666667-42.666667s42.666667 17.066667 42.666667 42.666667l0 307.2C938.666667 951.466667 866.133333 1024 776.533333 1024z"),(0,a.Ljt)(r,"d","M256 810.666667c-12.8 0-21.333333-4.266667-29.866667-12.8C217.6 789.333333 213.333333 772.266667 213.333333 759.466667l42.666667-213.333333c0-8.533333 4.266667-17.066667 12.8-21.333333l512-512c17.066667-17.066667 42.666667-17.066667 59.733333 0l170.666667 170.666667c17.066667 17.066667 17.066667 42.666667 0 59.733333l-512 512c-4.266667 4.266667-12.8 8.533333-21.333333 12.8l-213.333333 42.666667C260.266667 810.666667 260.266667 810.666667 256 810.666667zM337.066667 576l-25.6 136.533333 136.533333-25.6L921.6 213.333333 810.666667 102.4 337.066667 576z"),(0,a.Ljt)(e,"class","vc-icon-edit"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n),(0,a.R3I)(e,r)},d:function(t){t&&(0,a.ogt)(e)}}}function I(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M581.338005 987.646578c-2.867097 4.095853-4.573702 8.669555-8.191705 12.287558a83.214071 83.214071 0 0 1-60.959939 24.029001 83.214071 83.214071 0 0 1-61.028203-24.029001c-3.618003-3.618003-5.324608-8.191705-8.123441-12.15103L24.370323 569.050448a83.418864 83.418864 0 0 1 117.892289-117.89229l369.923749 369.92375L1308.829682 24.438587A83.418864 83.418864 0 0 1 1426.721971 142.194348L581.338005 987.646578z"),(0,a.Ljt)(e,"class","vc-icon-don"),(0,a.Ljt)(e,"viewBox","0 0 1501 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function D(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M894.976 574.464q0 78.848-29.696 148.48t-81.408 123.392-121.856 88.064-151.04 41.472q-5.12 1.024-9.216 1.536t-9.216 0.512l-177.152 0q-17.408 0-34.304-6.144t-30.208-16.896-22.016-25.088-8.704-29.696 8.192-29.696 21.504-24.576 29.696-16.384 33.792-6.144l158.72 1.024q54.272 0 102.4-19.968t83.968-53.76 56.32-79.36 20.48-97.792q0-49.152-18.432-92.16t-50.688-76.8-75.264-54.784-93.184-26.112q-2.048 0-2.56 0.512t-2.56 0.512l-162.816 0 0 80.896q0 17.408-13.824 25.6t-44.544-10.24q-8.192-5.12-26.112-17.92t-41.984-30.208-50.688-36.864l-51.2-38.912q-15.36-12.288-26.624-22.016t-11.264-24.064q0-12.288 12.8-25.6t29.184-26.624q18.432-15.36 44.032-35.84t50.688-39.936 45.056-35.328 28.16-22.016q24.576-17.408 39.936-7.168t16.384 30.72l0 81.92 162.816 0q5.12 0 10.752 1.024t10.752 2.048q79.872 8.192 149.504 41.984t121.344 87.552 80.896 123.392 29.184 147.456z"),(0,a.Ljt)(e,"class","vc-icon-cancel"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function P(t){var e,n,r,i,o,s,l,u,c,h="delete"===t[0]&&O(),d="clear"===t[0]&&M(),f="copy"===t[0]&&E(),p="success"===t[0]&&T(),g="edit"===t[0]&&A(),v="done"===t[0]&&I(),m="cancel"===t[0]&&D();return{c:function(){e=(0,a.bGB)("i"),h&&h.c(),n=(0,a.DhX)(),d&&d.c(),r=(0,a.DhX)(),f&&f.c(),i=(0,a.DhX)(),p&&p.c(),o=(0,a.DhX)(),g&&g.c(),s=(0,a.DhX)(),v&&v.c(),l=(0,a.DhX)(),m&&m.c(),(0,a.Ljt)(e,"class","vc-icon")},m:function(y,b){(0,a.$Tr)(y,e,b),h&&h.m(e,null),(0,a.R3I)(e,n),d&&d.m(e,null),(0,a.R3I)(e,r),f&&f.m(e,null),(0,a.R3I)(e,i),p&&p.m(e,null),(0,a.R3I)(e,o),g&&g.m(e,null),(0,a.R3I)(e,s),v&&v.m(e,null),(0,a.R3I)(e,l),m&&m.m(e,null),u||(c=(0,a.oLt)(e,"click",t[1]),u=!0)},p:function(t,a){a[0],"delete"===t[0]?h||((h=O()).c(),h.m(e,n)):h&&(h.d(1),h=null),"clear"===t[0]?d||((d=M()).c(),d.m(e,r)):d&&(d.d(1),d=null),"copy"===t[0]?f||((f=E()).c(),f.m(e,i)):f&&(f.d(1),f=null),"success"===t[0]?p||((p=T()).c(),p.m(e,o)):p&&(p.d(1),p=null),"edit"===t[0]?g||((g=A()).c(),g.m(e,s)):g&&(g.d(1),g=null),"done"===t[0]?v||((v=I()).c(),v.m(e,l)):v&&(v.d(1),v=null),"cancel"===t[0]?m||((m=D()).c(),m.m(e,null)):m&&(m.d(1),m=null)},i:a.ZTd,o:a.ZTd,d:function(t){t&&(0,a.ogt)(e),h&&h.d(),d&&d.d(),f&&f.d(),p&&p.d(),g&&g.d(),v&&v.d(),m&&m.d(),u=!1,c()}}}function L(t,e,n){var r=e.name;return(0,s.H3)(function(){k.use()}),(0,s.ev)(function(){k.unuse()}),t.$$set=function(t){"name"in t&&n(0,r=t.name)},[r,function(e){a.cKT.call(this,t,e)}]}var j=function(t){function e(e){var n;return n=t.call(this)||this,(0,a.S1n)((0,i.Z)(n),e,L,P,a.N8,{name:0}),n}return(0,o.Z)(e,t),(0,r.Z)(e,[{key:"name",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({name:t}),(0,a.yl1)()}}]),e}(a.f_C)},3903:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6464),_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6881),svelte_internal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2942),svelte__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7003),_component_icon_icon_svelte__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8702),_logTool__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8665),_log_model__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5629),_logCommand_less__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3411);function get_each_context(t,e,n){var r=t.slice();return r[28]=e[n],r}function create_if_block_2(t){var e,n,r;return{c:function(){(e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("li")).textContent="Close",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd-prompted-hide")},m:function(i,o){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(i,e,o),n||(r=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",t[5]),n=!0)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),n=!1,r()}}}function create_else_block(t){var e;return{c:function(){(e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("li")).textContent="No Prompted"},m:function(t,n){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(t,e,n)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e)}}}function create_each_block(t){var e,n,r,i,o=t[28].text+"";function a(){return t[14](t[28])}return{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("li"),n=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.fLW)(o)},m:function(t,o){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(t,e,o),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,n),r||(i=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",a),r=!0)},p:function(e,r){t=e,8&r&&o!==(o=t[28].text+"")&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.rTO)(n,o)},d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),r=!1,i()}}}function create_if_block_1(t){var e,n,r,i,o;return n=new _component_icon_icon_svelte__WEBPACK_IMPORTED_MODULE_2__.Z({props:{name:"clear"}}),{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.YCL)(n.$$.fragment),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd-clear-btn")},m:function(a,s){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(a,e,s),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.yef)(n,e,null),r=!0,i||(o=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[17])),i=!0)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,i:function(t){r||((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(n.$$.fragment,t),r=!0)},o:function(t){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(n.$$.fragment,t),r=!1},d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.vpE)(n),i=!1,o()}}}function create_if_block(t){var e,n,r,i,o;return n=new _component_icon_icon_svelte__WEBPACK_IMPORTED_MODULE_2__.Z({props:{name:"clear"}}),{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.YCL)(n.$$.fragment),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd-clear-btn")},m:function(a,s){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(a,e,s),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.yef)(n,e,null),r=!0,i||(o=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[19])),i=!0)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,i:function(t){r||((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(n.$$.fragment,t),r=!0)},o:function(t){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(n.$$.fragment,t),r=!1},d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.vpE)(n),i=!1,o()}}}function create_fragment(t){for(var e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w=t[3].length>0&&create_if_block_2(t),S=t[3],C=[],k=0;k<S.length;k+=1)C[k]=create_each_block(get_each_context(t,S,k));var O=null;S.length||(O=create_else_block(t));var M=t[1].length>0&&create_if_block_1(t),E=t[4].length>0&&create_if_block(t);return{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("form"),n=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("ul"),w&&w.c(),r=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)();for(var b=0;b<C.length;b+=1)C[b].c();O&&O.c(),i=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),o=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),a=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("textarea"),s=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),M&&M.c(),l=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),(u=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("button")).textContent="OK",c=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),h=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("form"),d=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("ul"),f=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),p=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),g=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("textarea"),v=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),E&&E.c(),m=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),(y=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("button")).textContent="Filter",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(n,"class","vc-cmd-prompted"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(n,"style",t[2]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(a,"class","vc-cmd-input"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(a,"placeholder","command..."),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(o,"class","vc-cmd-input-wrap"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(u,"class","vc-cmd-btn"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(u,"type","submit"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(d,"class","vc-cmd-prompted"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(g,"class","vc-cmd-input"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(g,"placeholder","filter..."),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(p,"class","vc-cmd-input-wrap"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(y,"class","vc-cmd-btn"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(y,"type","submit"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(h,"class","vc-cmd vc-filter")},m:function(S,k){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(S,e,k),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,n),w&&w.m(n,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(n,r);for(var T=0;T<C.length;T+=1)C[T].m(n,null);O&&O.m(n,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,i),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,o),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(o,a),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(a,t[1]),t[16](a),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(o,s),M&&M.m(o,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,l),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,u),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(S,c,k),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(S,h,k),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,d),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,f),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,p),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(p,g),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(g,t[4]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(p,v),E&&E.m(p,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,m),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,y),b=!0,_||(x=[(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"input",t[15]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"keydown",t[10]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"keyup",t[11]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"focus",t[8]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"blur",t[9]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"submit",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[12])),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(g,"input",t[18]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(h,"submit",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[13]))],_=!0)},p:function(t,e){var i=e[0];if(t[3].length>0?w?w.p(t,i):((w=create_if_block_2(t)).c(),w.m(n,r)):w&&(w.d(1),w=null),136&i){var s;for(S=t[3],s=0;s<S.length;s+=1){var l=get_each_context(t,S,s);C[s]?C[s].p(l,i):(C[s]=create_each_block(l),C[s].c(),C[s].m(n,null))}for(;s<C.length;s+=1)C[s].d(1);C.length=S.length,!S.length&&O?O.p(t,i):S.length?O&&(O.d(1),O=null):((O=create_else_block(t)).c(),O.m(n,null))}(!b||4&i)&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(n,"style",t[2]),2&i&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(a,t[1]),t[1].length>0?M?(M.p(t,i),2&i&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(M,1)):((M=create_if_block_1(t)).c(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(M,1),M.m(o,null)):M&&((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.dvw)(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(M,1,1,function(){M=null}),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.gbL)()),16&i&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(g,t[4]),t[4].length>0?E?(E.p(t,i),16&i&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(E,1)):((E=create_if_block(t)).c(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(E,1),E.m(p,null)):E&&((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.dvw)(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(E,1,1,function(){E=null}),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.gbL)())},i:function(t){b||((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(M),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(E),b=!0)},o:function(t){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(M),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(E),b=!1},d:function(n){n&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),w&&w.d(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.RMB)(C,n),O&&O.d(),t[16](null),M&&M.d(),n&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(c),n&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(h),E&&E.d(),_=!1,(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.j7q)(x)}}}function instance($$self,$$props,$$invalidate){var module=_log_model__WEBPACK_IMPORTED_MODULE_3__.W.getSingleton(_log_model__WEBPACK_IMPORTED_MODULE_3__.W,"VConsoleLogModel"),cachedObjKeys={},dispatch=(0,svelte__WEBPACK_IMPORTED_MODULE_1__.x)(),cmdElement,cmdValue="",promptedStyle="",promptedList=[],filterValue="";(0,svelte__WEBPACK_IMPORTED_MODULE_1__.H3)(function(){_logCommand_less__WEBPACK_IMPORTED_MODULE_4__.Z.use()}),(0,svelte__WEBPACK_IMPORTED_MODULE_1__.ev)(function(){_logCommand_less__WEBPACK_IMPORTED_MODULE_4__.Z.unuse()});var evalCommand=function(t){module.evalCommand(t)},moveCursorToPos=function(t,e){t.setSelectionRange&&setTimeout(function(){t.setSelectionRange(e,e)},1)},clearPromptedList=function(){$$invalidate(2,promptedStyle="display: none;"),$$invalidate(3,promptedList=[])},updatePromptedList=function updatePromptedList(identifier){if(""!==cmdValue){identifier||(identifier=(0,_logTool__WEBPACK_IMPORTED_MODULE_5__.oj)(cmdValue));var objName="window",keyName=cmdValue;if("."!==identifier.front.text&&"["!==identifier.front.text||(objName=identifier.front.before,keyName=""!==identifier.back.text?identifier.back.before:identifier.front.after),keyName=keyName.replace(/(^['"]+)|(['"']+$)/g,""),!cachedObjKeys[objName])try{cachedObjKeys[objName]=Object.getOwnPropertyNames(eval("("+objName+")")).sort()}catch(t){}try{if(cachedObjKeys[objName])for(var i=0;i<cachedObjKeys[objName].length&&!(promptedList.length>=100);i++){var key=String(cachedObjKeys[objName][i]),keyPattern=new RegExp("^"+keyName,"i");if(keyPattern.test(key)){var completeCmd=objName;"."===identifier.front.text||""===identifier.front.text?completeCmd+="."+key:"["===identifier.front.text&&(completeCmd+="['"+key+"']"),promptedList.push({text:key,value:completeCmd})}}}catch(t){}if(promptedList.length>0){var m=Math.min(200,31*(promptedList.length+1));$$invalidate(2,promptedStyle="display: block; height: "+m+"px; margin-top: "+(-m-2)+"px;"),$$invalidate(3,promptedList)}else clearPromptedList()}else clearPromptedList()},autoCompleteBrackets=function(t,e){if(8!==e&&46!==e&&""===t.front.after)switch(t.front.text){case"[":return $$invalidate(1,cmdValue+="]"),void moveCursorToPos(cmdElement,cmdValue.length-1);case"(":return $$invalidate(1,cmdValue+=")"),void moveCursorToPos(cmdElement,cmdValue.length-1);case"{":return $$invalidate(1,cmdValue+="}"),void moveCursorToPos(cmdElement,cmdValue.length-1)}},dispatchFilterEvent=function(){dispatch("filterText",{filterText:filterValue})},onTapClearText=function(t){"cmd"===t?($$invalidate(1,cmdValue=""),clearPromptedList()):"filter"===t&&($$invalidate(4,filterValue=""),dispatchFilterEvent())},onTapPromptedItem=function onTapPromptedItem(item){var type="";try{type=eval("typeof "+item.value)}catch(t){}$$invalidate(1,cmdValue=item.value+("function"===type?"()":"")),clearPromptedList()},onCmdFocus=function(){updatePromptedList()},onCmdBlur=function(){},onCmdKeyDown=function(t){13===t.keyCode&&(t.preventDefault(),onCmdSubmit())},onCmdKeyUp=function(t){$$invalidate(3,promptedList=[]);var e=(0,_logTool__WEBPACK_IMPORTED_MODULE_5__.oj)(t.target.value);autoCompleteBrackets(e,t.keyCode),updatePromptedList(e)},onCmdSubmit=function(){""!==cmdValue&&evalCommand(cmdValue),clearPromptedList()},onFilterSubmit=function(t){dispatchFilterEvent()},click_handler=function(t){return onTapPromptedItem(t)};function textarea0_input_handler(){cmdValue=this.value,$$invalidate(1,cmdValue)}function textarea0_binding(t){svelte_internal__WEBPACK_IMPORTED_MODULE_0__.VnY[t?"unshift":"push"](function(){$$invalidate(0,cmdElement=t)})}var click_handler_1=function(){return onTapClearText("cmd")};function textarea1_input_handler(){filterValue=this.value,$$invalidate(4,filterValue)}var click_handler_2=function(){return onTapClearText("filter")};return[cmdElement,cmdValue,promptedStyle,promptedList,filterValue,clearPromptedList,onTapClearText,onTapPromptedItem,onCmdFocus,onCmdBlur,onCmdKeyDown,onCmdKeyUp,onCmdSubmit,onFilterSubmit,click_handler,textarea0_input_handler,textarea0_binding,click_handler_1,textarea1_input_handler,click_handler_2]}var LogCommand=function(t){function e(e){var n;return n=t.call(this)||this,(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.S1n)((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__.Z)(n),e,instance,create_fragment,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.N8,{}),n}return(0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_6__.Z)(e,t),e}(svelte_internal__WEBPACK_IMPORTED_MODULE_0__.f_C);__webpack_exports__.Z=LogCommand},4687:function(t,e,n){"use strict";n.d(e,{x:function(){return i}});var r=n(3313),i=function(){var t=(0,r.fZ)({updateTime:0}),e=t.subscribe,n=t.set,i=t.update;return{subscribe:e,set:n,update:i,updateTime:function(){i(function(t){return t.updateTime=Date.now(),t})}}}()},643:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});var r=function(){function t(){this._onDataUpdateCallbacks=[]}return t.getSingleton=function(e,n){return n||(n=e.toString()),t.singleton[n]||(t.singleton[n]=new e),t.singleton[n]},t}();r.singleton={}},5103:function(t,e,n){"use strict";function r(t){var e=t>0?new Date(t):new Date,n=e.getDate()<10?"0"+e.getDate():e.getDate(),r=e.getMonth()<9?"0"+(e.getMonth()+1):e.getMonth()+1,i=e.getFullYear(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),a=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),l=e.getMilliseconds()<10?"0"+e.getMilliseconds():e.getMilliseconds();return l<100&&(l="0"+l),{time:+e,year:i,month:r,day:n,hour:o,minute:a,second:s,millisecond:l}}function i(t){return"[object Number]"===Object.prototype.toString.call(t)}function o(t){return"bigint"==typeof t}function a(t){return"string"==typeof t}function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function l(t){return"boolean"==typeof t}function u(t){return void 0===t}function c(t){return null===t}function h(t){return"symbol"==typeof t}function d(t){return!("[object Object]"!==Object.prototype.toString.call(t)&&(i(t)||o(t)||a(t)||l(t)||s(t)||c(t)||f(t)||u(t)||h(t)))}function f(t){return"function"==typeof t}function p(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}function g(t){var e=Object.prototype.toString.call(t);return"[object Window]"===e||"[object DOMWindow]"===e||"[object global]"===e}function v(t){return null!=t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t&&"function"!=typeof t&&"symbol"!=typeof t&&"bigint"!=typeof t&&"undefined"!=typeof Symbol&&"function"==typeof t[Symbol.iterator]}function m(t){return Object.prototype.toString.call(t).replace(/\[object (.*)\]/,"$1")}n.d(e,{C4:function(){return o},DV:function(){return b},FJ:function(){return g},Ft:function(){return c},HD:function(){return a},H_:function(){return R},KL:function(){return M},Kn:function(){return d},MH:function(){return I},PO:function(){return _},QI:function(){return N},QK:function(){return D},TW:function(){return v},_3:function(){return r},_D:function(){return P},cF:function(){return j},hZ:function(){return O},hj:function(){return i},id:function(){return E},jn:function(){return l},kJ:function(){return s},kK:function(){return p},mf:function(){return f},o8:function(){return u},po:function(){return L},qr:function(){return A},qt:function(){return B},rE:function(){return S},yk:function(){return h},zl:function(){return m}});var y=/(function|class) ([^ \{\()}]{1,})[\(| ]/;function b(t){var e;if(null==t)return"";var n=y.exec((null==t||null==(e=t.constructor)?void 0:e.toString())||"");return n&&n.length>1?n[2]:""}function _(t){var e,n=Object.prototype.hasOwnProperty;if(!t||"object"!=typeof t||t.nodeType||g(t))return!1;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||n.call(t,e)}var x=/[\n\t]/g,w=function(t){return{"\n":"\\n","\t":"\\t"}[t]};function S(t){return"string"!=typeof t?t:String(t).replace(x,w)}var C=function(t,e){void 0===e&&(e=0);var n="";return a(t)?(e>0&&(t=E(t,e)),n+='"'+S(t)+'"'):h(t)?n+=String(t).replace(/^Symbol\((.*)\)$/i,'Symbol("$1")'):f(t)?n+=(t.name||"function")+"()":o(t)?n+=String(t)+"n":n+=String(t),n},k=function t(e,n,r){if(void 0===r&&(r=0),d(e)||s(e))if(n.circularFinder(e)){var i="";if(s(e))i="(Circular Array)";else if(d(e)){var o;i="(Circular "+((null==(o=e.constructor)?void 0:o.name)||"Object")+")"}n.ret+=n.standardJSON?'"'+i+'"':i}else{var l="",u="";if(n.pretty){for(var c=0;c<=r;c++)l+=" ";u="\n"}var f="{",p="}";s(e)&&(f="[",p="]"),n.ret+=f+u;for(var g=I(e),v=0;v<g.length;v++){var m=g[v];n.ret+=l;try{s(e)||(d(m)||s(m)||h(m)?n.ret+=Object.prototype.toString.call(m):a(m)&&n.standardJSON?n.ret+='"'+m+'"':n.ret+=m,n.ret+=": ")}catch(t){continue}try{var y=e[m];if(s(y))n.maxDepth>-1&&r>=n.maxDepth?n.ret+="Array("+y.length+")":t(y,n,r+1);else if(d(y)){var b;n.maxDepth>-1&&r>=n.maxDepth?n.ret+=((null==(b=y.constructor)?void 0:b.name)||"Object")+" {}":t(y,n,r+1)}else n.ret+=C(y,n.keyMaxLen)}catch(t){n.ret+=n.standardJSON?'"(PARSE_ERROR)"':"(PARSE_ERROR)"}if(n.keyMaxLen>0&&n.ret.length>=10*n.keyMaxLen){n.ret+=", (...)";break}v<g.length-1&&(n.ret+=", "),n.ret+=u}n.ret+=l.substring(0,l.length-2)+p}else n.ret+=C(e,n.keyMaxLen)};function O(t,e){void 0===e&&(e={maxDepth:-1,keyMaxLen:-1,pretty:!1,standardJSON:!1});var n,r=Object.assign({ret:"",maxDepth:-1,keyMaxLen:-1,pretty:!1,standardJSON:!1,circularFinder:(n=new WeakSet,function(t){if("object"==typeof t&&null!==t){if(n.has(t))return!0;n.add(t)}return!1})},e);return k(t,r),r.ret}function M(t){return t<=0?"":t>=1e6?(t/1e3/1e3).toFixed(1)+" MB":t>=1e3?(t/1e3).toFixed(1)+" KB":t+" B"}function E(t,e){return t.length>e&&(t=t.substring(0,e)+"...("+M(function(t){try{return encodeURI(t).split(/%(?:u[0-9A-F]{2})?[0-9A-F]{2}|./).length-1}catch(t){return 0}}(t))+")"),t}var T=function(t,e){return String(t).localeCompare(String(e),void 0,{numeric:!0,sensitivity:"base"})};function A(t){return t.sort(T)}function I(t){return d(t)||s(t)?Object.keys(t):[]}function D(t){var e=I(t);return function(t){return d(t)||s(t)?Object.getOwnPropertyNames(t):[]}(t).filter(function(t){return-1===e.indexOf(t)})}function P(t){return d(t)||s(t)?Object.getOwnPropertySymbols(t):[]}function L(t,e){window.localStorage&&(t="vConsole_"+t,localStorage.setItem(t,e))}function j(t){if(window.localStorage)return t="vConsole_"+t,localStorage.getItem(t)}function N(t){return void 0===t&&(t=""),"__vc_"+t+Math.random().toString(36).substring(2,8)}function R(){return"undefined"!=typeof window&&!!window.__wxConfig&&!!window.wx&&!!window.__virtualDOM__}function B(t){if(R()&&"function"==typeof window.wx[t])try{for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(e=window.wx[t]).call.apply(e,[window.wx].concat(r))}catch(e){return void console.debug("[vConsole] Fail to call wx."+t+"():",e)}}},5629:function(t,e,n){"use strict";n.d(e,{W:function(){return p}});var r=n(8270),i=n(6881),o=n(5103),a=n(643),s=n(4687),l=n(8665),u=n(9923);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var p=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).LOG_METHODS=["log","info","warn","debug","error"],e.ADDED_LOG_PLUGIN_ID=[],e.maxLogNumber=1e3,e.logCounter=0,e.groupLevel=0,e.groupLabelCollapsedStack=[],e.pluginPattern=void 0,e.logQueue=[],e.flushLogScheduled=!1,e.origConsole={},e}(0,i.Z)(e,t);var n=e.prototype;return n.bindPlugin=function(t){return!(this.ADDED_LOG_PLUGIN_ID.indexOf(t)>-1||(0===this.ADDED_LOG_PLUGIN_ID.length&&this.mockConsole(),u.O.create(t),this.ADDED_LOG_PLUGIN_ID.push(t),this.pluginPattern=new RegExp("^\\[("+this.ADDED_LOG_PLUGIN_ID.join("|")+")\\]$","i"),0))},n.unbindPlugin=function(t){var e=this.ADDED_LOG_PLUGIN_ID.indexOf(t);return-1!==e&&(this.ADDED_LOG_PLUGIN_ID.splice(e,1),u.O.delete(t),0===this.ADDED_LOG_PLUGIN_ID.length&&this.unmockConsole(),!0)},n.mockConsole=function(){var t=this;"function"!=typeof this.origConsole.log&&(window.console?(this.LOG_METHODS.map(function(e){t.origConsole[e]=window.console[e]}),this.origConsole.time=window.console.time,this.origConsole.timeEnd=window.console.timeEnd,this.origConsole.clear=window.console.clear,this.origConsole.group=window.console.group,this.origConsole.groupCollapsed=window.console.groupCollapsed,this.origConsole.groupEnd=window.console.groupEnd):window.console={},this._mockConsoleLog(),this._mockConsoleTime(),this._mockConsoleGroup(),this._mockConsoleClear(),window._vcOrigConsole=this.origConsole)},n._mockConsoleLog=function(){var t=this;this.LOG_METHODS.map(function(e){window.console[e]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.addLog({type:e,origData:r||[]})}.bind(window.console)})},n._mockConsoleTime=function(){var t=this,e={};window.console.time=function(t){void 0===t&&(t=""),e[t]=Date.now()}.bind(window.console),window.console.timeEnd=function(n){void 0===n&&(n="");var r=e[n],i=0;r&&(i=Date.now()-r,delete e[n]),t.addLog({type:"log",origData:[n+": "+i+"ms"]})}.bind(window.console)},n._mockConsoleGroup=function(){var t=this,e=function(e){return function(n){void 0===n&&(n="console.group");var r=Symbol(n);t.groupLabelCollapsedStack.push({label:r,collapsed:e}),t.addLog({type:"log",origData:[n],isGroupHeader:e?2:1,isGroupCollapsed:!1},{noOrig:!0}),t.groupLevel++,e?t.origConsole.groupCollapsed(n):t.origConsole.group(n)}.bind(window.console)};window.console.group=e(!1),window.console.groupCollapsed=e(!0),window.console.groupEnd=function(){t.groupLabelCollapsedStack.pop(),t.groupLevel=Math.max(0,t.groupLevel-1),t.origConsole.groupEnd()}.bind(window.console)},n._mockConsoleClear=function(){var t=this;window.console.clear=function(){t.resetGroup(),t.clearLog();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.callOriginalConsole.apply(t,["clear"].concat(n))}.bind(window.console)},n.unmockConsole=function(){for(var t in this.origConsole)window.console[t]=this.origConsole[t],delete this.origConsole[t];window._vcOrigConsole&&delete window._vcOrigConsole},n.callOriginalConsole=function(t){if("function"==typeof this.origConsole[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.origConsole[t].apply(window.console,n)}},n.resetGroup=function(){for(;this.groupLevel>0;)console.groupEnd()},n.clearLog=function(){var t=u.O.getAll();for(var e in t)this.clearPluginLog(e)},n.clearPluginLog=function(t){var e=this.logQueue;this.logQueue=[];for(var n,r=d(e);!(n=r()).done;){var i=n.value;this._extractPluginIdByLog(i)!==t&&this.logQueue.push(i)}u.O.get(t).update(function(t){return t.logList.length=0,t}),s.x.updateTime()},n.addLog=function(t,e){void 0===t&&(t={type:"log",origData:[],isGroupHeader:0,isGroupCollapsed:!1});var n=this.groupLabelCollapsedStack[this.groupLabelCollapsedStack.length-2],r=this.groupLabelCollapsedStack[this.groupLabelCollapsedStack.length-1],i={_id:o.QI(),type:t.type,cmdType:null==e?void 0:e.cmdType,toggle:{},date:Date.now(),data:(0,l.b1)(t.origData||[]),repeated:0,groupLabel:null==r?void 0:r.label,groupLevel:this.groupLevel,groupHeader:t.isGroupHeader,groupCollapsed:t.isGroupHeader?!(null==n||!n.collapsed):!(null==r||!r.collapsed)};this._signalLog(i),null!=e&&e.noOrig||this.callOriginalConsole.apply(this,[t.type].concat(t.origData))},n.evalCommand=function(t){this.addLog({type:"log",origData:[t]},{cmdType:"input"});var e=void 0;try{e=eval.call(window,"("+t+")")}catch(n){try{e=eval.call(window,t)}catch(t){}}this.addLog({type:"log",origData:[e]},{cmdType:"output"})},n._signalLog=function(t){var e=this;this.flushLogScheduled||(this.flushLogScheduled=!0,window.requestAnimationFrame(function(){e.flushLogScheduled=!1,e._flushLogs()})),this.logQueue.push(t)},n._flushLogs=function(){var t=this,e=this.logQueue;this.logQueue=[];for(var n,r={},i=d(e);!(n=i()).done;){var o=n.value,a=this._extractPluginIdByLog(o);(r[a]=r[a]||[]).push(o)}for(var l=function(e){var n=r[e];u.O.get(e).update(function(e){for(var r,i=[].concat(e.logList),o=d(n);!(r=o()).done;){var a=r.value;t._isRepeatedLog(i,a)?t._updateLastLogRepeated(i):i.push(a)}return{logList:i=t._limitLogListLength(i)}})},c=0,h=Object.keys(r);c<h.length;c++)l(h[c]);s.x.updateTime()},n._extractPluginIdByLog=function(t){var e,n="default",r=null==(e=t.data[0])?void 0:e.origData;if(o.HD(r)){var i=r.match(this.pluginPattern);if(null!==i&&i.length>1){var a=i[1].toLowerCase();this.ADDED_LOG_PLUGIN_ID.indexOf(a)>-1&&(n=a,t.data.shift())}}return n},n._isRepeatedLog=function(t,e){var n=t[t.length-1];if(!n)return!1;var r=!1;if(e.type===n.type&&e.cmdType===n.cmdType&&e.data.length===n.data.length){r=!0;for(var i=0;i<e.data.length;i++)if(e.data[i].origData!==n.data[i].origData){r=!1;break}}return r},n._updateLastLogRepeated=function(t){var e=t[t.length-1],n=e.repeated?e.repeated+1:2;return t[t.length-1]=h(h({},e),{},{repeated:n}),t},n._limitLogListLength=function(t){var e=t.length,n=this.maxLogNumber;return e>n?t.slice(e-n,e):t},e}(a.N)},9923:function(t,e,n){"use strict";n.d(e,{O:function(){return i}});var r=n(3313),i=function(){function t(){}return t.create=function(t){return this.storeMap[t]||(this.storeMap[t]=(0,r.fZ)({logList:[]})),this.storeMap[t]},t.delete=function(t){this.storeMap[t]&&delete this.storeMap[t]},t.get=function(t){return this.storeMap[t]},t.getRaw=function(t){return(0,r.U2)(this.storeMap[t])},t.getAll=function(){return this.storeMap},t}();i.storeMap={}},8665:function(t,e,n){"use strict";n.d(e,{HX:function(){return c},LH:function(){return o},Tg:function(){return f},b1:function(){return d},oj:function(){return u}});var r=n(5103),i=function(t){var e=r.hZ(t,{maxDepth:0}),n=e.substring(0,36),i=r.DV(t);return e.length>36&&(n+="..."),r.rE(i+" "+n)},o=function(t,e){void 0===e&&(e=!0);var n="undefined",o=t;return t instanceof f?(n="uninvocatable",o="(...)"):r.kJ(t)?(n="array",o=i(t)):r.Kn(t)?(n="object",o=i(t)):r.HD(t)?(n="string",o=r.rE(t),e&&(o='"'+o+'"')):r.hj(t)?(n="number",o=String(t)):r.C4(t)?(n="bigint",o=String(t)+"n"):r.jn(t)?(n="boolean",o=String(t)):r.Ft(t)?(n="null",o="null"):r.o8(t)?(n="undefined",o="undefined"):r.mf(t)?(n="function",o=(t.name||"function")+"()"):r.yk(t)&&(n="symbol",o=String(t)),{text:o,valueType:n}},a=[".","[","(","{","}"],s=["]",")","}"],l=function(t,e,n){void 0===n&&(n=0);for(var r={text:"",pos:-1,before:"",after:""},i=t.length-1;i>=n;i--){var o=e.indexOf(t[i]);if(o>-1){r.text=e[o],r.pos=i,r.before=t.substring(n,i),r.after=t.substring(i+1,t.length);break}}return r},u=function(t){var e=l(t,a,0);return{front:e,back:l(t,s,e.pos+1)}},c=function(t,e){if(""===e)return!0;for(var n=0;n<t.data.length;n++)if("string"==typeof t.data[n].origData&&t.data[n].origData.indexOf(e)>-1)return!0;return!1},h=/(\%[csdo] )|( \%[csdo])/g,d=function(t){if(h.lastIndex=0,r.HD(t[0])&&h.test(t[0])){for(var e,n=[].concat(t),i=n.shift().split(h).filter(function(t){return void 0!==t&&""!==t}),o=n,a=[],s=!1,l="";i.length>0;){var u=i.shift();if(/ ?\%c ?/.test(u)?o.length>0?"string"!=typeof(l=o.shift())&&(l=""):(e=u,l="",s=!0):/ ?\%[sd] ?/.test(u)?(e=o.length>0?r.Kn(o[0])?r.DV(o.shift()):String(o.shift()):u,s=!0):/ ?\%o ?/.test(u)?(e=o.length>0?o.shift():u,s=!0):(e=u,s=!0),s){var c={origData:e};l&&(c.style=l),a.push(c),s=!1,e=void 0,l=""}}for(var d=0;d<o.length;d++)a.push({origData:o[d]});return a}for(var f=[],p=0;p<t.length;p++)f.push({origData:t[p]});return f},f=function(){}},5313:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,".vc-icon {\n word-break: normal;\n white-space: normal;\n overflow: visible;\n}\n.vc-icon svg {\n fill: var(--VC-FG-2);\n height: 1em;\n width: 1em;\n vertical-align: -0.11em;\n}\n.vc-icon .vc-icon-delete {\n vertical-align: -0.11em;\n}\n.vc-icon .vc-icon-copy {\n height: 1.1em;\n width: 1.1em;\n vertical-align: -0.16em;\n}\n.vc-icon .vc-icon-suc {\n fill: var(--VC-TEXTGREEN);\n height: 1.1em;\n width: 1.1em;\n vertical-align: -0.16em;\n}\n",""]),e.Z=a},1142:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,".vc-scroller-viewport {\n position: relative;\n overflow: hidden;\n height: 100%;\n}\n.vc-scroller-contents {\n min-height: 100%;\n will-change: transform;\n}\n.vc-scroller-items {\n will-change: height;\n position: relative;\n}\n.vc-scroller-item {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n}\n.vc-scroller-viewport.static .vc-scroller-item {\n display: block;\n position: static;\n}\n.vc-scroller-scrollbar-track {\n width: 4px;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n padding: 1px;\n}\n.vc-scroller-scrollbar-thumb {\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n border-radius: 999px;\n}\n",""]),e.Z=a},3283:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,'#__vconsole {\n --VC-BG-0: #ededed;\n --VC-BG-1: #f7f7f7;\n --VC-BG-2: #fff;\n --VC-BG-3: #f7f7f7;\n --VC-BG-4: #4c4c4c;\n --VC-BG-5: #fff;\n --VC-BG-6: rgba(0, 0, 0, 0.1);\n --VC-FG-0: rgba(0, 0, 0, 0.9);\n --VC-FG-HALF: rgba(0, 0, 0, 0.9);\n --VC-FG-1: rgba(0, 0, 0, 0.5);\n --VC-FG-2: rgba(0, 0, 0, 0.3);\n --VC-FG-3: rgba(0, 0, 0, 0.1);\n --VC-RED: #fa5151;\n --VC-ORANGE: #fa9d3b;\n --VC-YELLOW: #ffc300;\n --VC-GREEN: #91d300;\n --VC-LIGHTGREEN: #95ec69;\n --VC-BRAND: #07c160;\n --VC-BLUE: #10aeff;\n --VC-INDIGO: #1485ee;\n --VC-PURPLE: #6467f0;\n --VC-LINK: #576b95;\n --VC-TEXTGREEN: #06ae56;\n --VC-FG: black;\n --VC-BG: white;\n --VC-BG-COLOR-ACTIVE: #ececec;\n --VC-WARN-BG: #fff3cc;\n --VC-WARN-BORDER: #ffe799;\n --VC-ERROR-BG: #fedcdc;\n --VC-ERROR-BORDER: #fdb9b9;\n --VC-DOM-TAG-NAME-COLOR: #881280;\n --VC-DOM-ATTRIBUTE-NAME-COLOR: #994500;\n --VC-DOM-ATTRIBUTE-VALUE-COLOR: #1a1aa6;\n --VC-CODE-KEY-FG: #881391;\n --VC-CODE-PRIVATE-KEY-FG: #cfa1d3;\n --VC-CODE-FUNC-FG: #0d22aa;\n --VC-CODE-NUMBER-FG: #1c00cf;\n --VC-CODE-STR-FG: #c41a16;\n --VC-CODE-NULL-FG: #808080;\n color: var(--VC-FG-0);\n font-size: 13px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n -webkit-user-select: auto;\n /* global */\n}\n#__vconsole .vc-max-height {\n max-height: 19.23076923em;\n}\n#__vconsole .vc-max-height-line {\n max-height: 6.30769231em;\n}\n#__vconsole .vc-min-height {\n min-height: 3.07692308em;\n}\n#__vconsole dd,\n#__vconsole dl,\n#__vconsole pre {\n margin: 0;\n}\n#__vconsole pre {\n white-space: pre-wrap;\n}\n#__vconsole i {\n font-style: normal;\n}\n.vc-table {\n height: 100%;\n}\n.vc-table .vc-table-row {\n line-height: 1.5;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n -moz-box-orient: horizontal;\n -moz-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n overflow: hidden;\n border-bottom: 1px solid var(--VC-FG-3);\n}\n.vc-table .vc-table-row.vc-left-border {\n border-left: 1px solid var(--VC-FG-3);\n}\n.vc-table .vc-table-row-icon {\n margin-left: 4px;\n}\n.vc-table .vc-table-col {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -moz-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n padding: 0.23076923em 0.30769231em;\n border-left: 1px solid var(--VC-FG-3);\n overflow: auto;\n}\n.vc-table .vc-table-col:first-child {\n border: none;\n}\n.vc-table .vc-table-col-value {\n white-space: pre-wrap;\n word-break: break-word;\n /*white-space: nowrap;\n text-overflow: ellipsis;*/\n -webkit-overflow-scrolling: touch;\n}\n.vc-table .vc-small .vc-table-col {\n padding: 0 0.30769231em;\n font-size: 0.92307692em;\n}\n.vc-table .vc-table-col-2 {\n -webkit-box-flex: 2;\n -webkit-flex: 2;\n -moz-box-flex: 2;\n -ms-flex: 2;\n flex: 2;\n}\n.vc-table .vc-table-col-3 {\n -webkit-box-flex: 3;\n -webkit-flex: 3;\n -moz-box-flex: 3;\n -ms-flex: 3;\n flex: 3;\n}\n.vc-table .vc-table-col-4 {\n -webkit-box-flex: 4;\n -webkit-flex: 4;\n -moz-box-flex: 4;\n -ms-flex: 4;\n flex: 4;\n}\n.vc-table .vc-table-col-5 {\n -webkit-box-flex: 5;\n -webkit-flex: 5;\n -moz-box-flex: 5;\n -ms-flex: 5;\n flex: 5;\n}\n.vc-table .vc-table-col-6 {\n -webkit-box-flex: 6;\n -webkit-flex: 6;\n -moz-box-flex: 6;\n -ms-flex: 6;\n flex: 6;\n}\n.vc-table .vc-table-row-error {\n border-color: var(--VC-ERROR-BORDER);\n background-color: var(--VC-ERROR-BG);\n}\n.vc-table .vc-table-row-error .vc-table-col {\n color: var(--VC-RED);\n border-color: var(--VC-ERROR-BORDER);\n}\n.vc-table .vc-table-col-title {\n font-weight: bold;\n}\n.vc-table .vc-table-action {\n display: flex;\n justify-content: space-evenly;\n}\n.vc-table .vc-table-action .vc-icon {\n flex: 1;\n text-align: center;\n display: block;\n}\n.vc-table .vc-table-action .vc-icon:hover {\n background: var(--VC-BG-3);\n}\n.vc-table .vc-table-action .vc-icon:active {\n background: var(--VC-BG-1);\n}\n.vc-table .vc-table-input {\n width: 100%;\n border: none;\n color: var(--VC-FG-0);\n background-color: var(--VC-BG-6);\n height: 3.53846154em;\n}\n.vc-table .vc-table-input:focus {\n background-color: var(--VC-FG-2);\n}\n@media (prefers-color-scheme: dark) {\n #__vconsole:not([data-theme="light"]) {\n --VC-BG-0: #191919;\n --VC-BG-1: #1f1f1f;\n --VC-BG-2: #232323;\n --VC-BG-3: #2f2f2f;\n --VC-BG-4: #606060;\n --VC-BG-5: #2c2c2c;\n --VC-BG-6: rgba(255, 255, 255, 0.2);\n --VC-FG-0: rgba(255, 255, 255, 0.8);\n --VC-FG-HALF: rgba(255, 255, 255, 0.6);\n --VC-FG-1: rgba(255, 255, 255, 0.5);\n --VC-FG-2: rgba(255, 255, 255, 0.3);\n --VC-FG-3: rgba(255, 255, 255, 0.05);\n --VC-RED: #fa5151;\n --VC-ORANGE: #c87d2f;\n --VC-YELLOW: #cc9c00;\n --VC-GREEN: #74a800;\n --VC-LIGHTGREEN: #28b561;\n --VC-BRAND: #07c160;\n --VC-BLUE: #10aeff;\n --VC-INDIGO: #1196ff;\n --VC-PURPLE: #8183ff;\n --VC-LINK: #7d90a9;\n --VC-TEXTGREEN: #259c5c;\n --VC-FG: white;\n --VC-BG: black;\n --VC-BG-COLOR-ACTIVE: #282828;\n --VC-WARN-BG: #332700;\n --VC-WARN-BORDER: #664e00;\n --VC-ERROR-BG: #321010;\n --VC-ERROR-BORDER: #642020;\n --VC-DOM-TAG-NAME-COLOR: #5DB0D7;\n --VC-DOM-ATTRIBUTE-NAME-COLOR: #9BBBDC;\n --VC-DOM-ATTRIBUTE-VALUE-COLOR: #f29766;\n --VC-CODE-KEY-FG: #e36eec;\n --VC-CODE-PRIVATE-KEY-FG: #f4c5f7;\n --VC-CODE-FUNC-FG: #556af2;\n --VC-CODE-NUMBER-FG: #9980ff;\n --VC-CODE-STR-FG: #e93f3b;\n --VC-CODE-NULL-FG: #808080;\n }\n}\n#__vconsole[data-theme="dark"] {\n --VC-BG-0: #191919;\n --VC-BG-1: #1f1f1f;\n --VC-BG-2: #232323;\n --VC-BG-3: #2f2f2f;\n --VC-BG-4: #606060;\n --VC-BG-5: #2c2c2c;\n --VC-BG-6: rgba(255, 255, 255, 0.2);\n --VC-FG-0: rgba(255, 255, 255, 0.8);\n --VC-FG-HALF: rgba(255, 255, 255, 0.6);\n --VC-FG-1: rgba(255, 255, 255, 0.5);\n --VC-FG-2: rgba(255, 255, 255, 0.3);\n --VC-FG-3: rgba(255, 255, 255, 0.05);\n --VC-RED: #fa5151;\n --VC-ORANGE: #c87d2f;\n --VC-YELLOW: #cc9c00;\n --VC-GREEN: #74a800;\n --VC-LIGHTGREEN: #28b561;\n --VC-BRAND: #07c160;\n --VC-BLUE: #10aeff;\n --VC-INDIGO: #1196ff;\n --VC-PURPLE: #8183ff;\n --VC-LINK: #7d90a9;\n --VC-TEXTGREEN: #259c5c;\n --VC-FG: white;\n --VC-BG: black;\n --VC-BG-COLOR-ACTIVE: #282828;\n --VC-WARN-BG: #332700;\n --VC-WARN-BORDER: #664e00;\n --VC-ERROR-BG: #321010;\n --VC-ERROR-BORDER: #642020;\n --VC-DOM-TAG-NAME-COLOR: #5DB0D7;\n --VC-DOM-ATTRIBUTE-NAME-COLOR: #9BBBDC;\n --VC-DOM-ATTRIBUTE-VALUE-COLOR: #f29766;\n --VC-CODE-KEY-FG: #e36eec;\n --VC-CODE-PRIVATE-KEY-FG: #f4c5f7;\n --VC-CODE-FUNC-FG: #556af2;\n --VC-CODE-NUMBER-FG: #9980ff;\n --VC-CODE-STR-FG: #e93f3b;\n --VC-CODE-NULL-FG: #808080;\n}\n.vc-tabbar {\n border-bottom: 1px solid var(--VC-FG-3);\n overflow-x: auto;\n height: 3em;\n width: auto;\n white-space: nowrap;\n}\n.vc-tabbar .vc-tab {\n display: inline-block;\n line-height: 3em;\n padding: 0 1.15384615em;\n border-right: 1px solid var(--VC-FG-3);\n text-decoration: none;\n color: var(--VC-FG-0);\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n.vc-tabbar .vc-tab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vc-tabbar .vc-tab.vc-actived {\n background-color: var(--VC-BG-1);\n}\n.vc-toolbar {\n border-top: 1px solid var(--VC-FG-3);\n line-height: 3em;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n -moz-box-orient: horizontal;\n -moz-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.vc-toolbar .vc-tool {\n display: none;\n font-style: normal;\n text-decoration: none;\n color: var(--VC-FG-0);\n width: 50%;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -moz-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n text-align: center;\n position: relative;\n -webkit-touch-callout: none;\n}\n.vc-toolbar .vc-tool.vc-toggle,\n.vc-toolbar .vc-tool.vc-global-tool {\n display: block;\n}\n.vc-toolbar .vc-tool:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vc-toolbar .vc-tool:after {\n content: " ";\n position: absolute;\n top: 0.53846154em;\n bottom: 0.53846154em;\n right: 0;\n border-left: 1px solid var(--VC-FG-3);\n}\n.vc-toolbar .vc-tool-last:after {\n border: none;\n}\n.vc-topbar {\n background-color: var(--VC-BG-1);\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n -moz-box-orient: horizontal;\n -moz-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n width: 100%;\n}\n.vc-topbar .vc-toptab {\n display: none;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -moz-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n line-height: 2.30769231em;\n padding: 0 1.15384615em;\n border-bottom: 1px solid var(--VC-FG-3);\n text-decoration: none;\n text-align: center;\n color: var(--VC-FG-0);\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n.vc-topbar .vc-toptab.vc-toggle {\n display: block;\n}\n.vc-topbar .vc-toptab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vc-topbar .vc-toptab.vc-actived {\n border-bottom: 1px solid var(--VC-INDIGO);\n}\n.vc-mask {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0);\n z-index: 10001;\n -webkit-transition: background 0.3s;\n transition: background 0.3s;\n -webkit-tap-highlight-color: transparent;\n overflow-y: scroll;\n}\n.vc-panel {\n display: none;\n position: fixed;\n min-height: 85%;\n left: 0;\n right: 0;\n bottom: -100%;\n z-index: 10002;\n background-color: var(--VC-BG-0);\n transition: bottom 0.3s;\n}\n.vc-toggle .vc-switch {\n display: none;\n}\n.vc-toggle .vc-mask {\n background: rgba(0, 0, 0, 0.6);\n display: block;\n}\n.vc-toggle .vc-panel {\n bottom: 0;\n}\n.vc-content {\n background-color: var(--VC-BG-2);\n overflow-x: hidden;\n overflow-y: auto;\n position: absolute;\n top: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 3.07692308em;\n -webkit-overflow-scrolling: touch;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n}\n.vc-content.vc-has-topbar {\n top: 5.46153846em;\n}\n.vc-plugin-box {\n display: none;\n position: relative;\n min-height: 100%;\n}\n.vc-plugin-box.vc-fixed-height {\n height: 100%;\n}\n.vc-plugin-box.vc-actived {\n display: block;\n}\n.vc-plugin-content {\n display: flex;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n flex-direction: column;\n -webkit-tap-highlight-color: transparent;\n}\n.vc-plugin-content:empty:before {\n content: "Empty";\n color: var(--VC-FG-1);\n position: absolute;\n top: 45%;\n left: 0;\n right: 0;\n bottom: 0;\n font-size: 1.15384615em;\n text-align: center;\n}\n.vc-plugin-empty {\n color: var(--VC-FG-1);\n font-size: 1.15384615em;\n height: 100%;\n width: 100%;\n padding: 1.15384615em 0;\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {\n .vc-toolbar,\n .vc-switch {\n bottom: constant(safe-area-inset-bottom);\n bottom: env(safe-area-inset-bottom);\n }\n}\n',""]),e.Z=a},7558:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,".vc-switch {\n display: block;\n position: fixed;\n right: 0.76923077em;\n bottom: 0.76923077em;\n color: #FFF;\n background-color: var(--VC-BRAND);\n line-height: 1;\n font-size: 1.07692308em;\n padding: 0.61538462em 1.23076923em;\n z-index: 10000;\n border-radius: 0.30769231em;\n box-shadow: 0 0 0.61538462em rgba(0, 0, 0, 0.4);\n}\n",""]),e.Z=a},5670:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,'/* color */\n.vcelm-node {\n color: var(--VC-DOM-TAG-NAME-COLOR);\n}\n.vcelm-k {\n color: var(--VC-DOM-ATTRIBUTE-NAME-COLOR);\n}\n.vcelm-v {\n color: var(--VC-DOM-ATTRIBUTE-VALUE-COLOR);\n}\n.vcelm-l.vc-actived > .vcelm-node {\n background-color: var(--VC-FG-3);\n}\n/* layout */\n.vcelm-l {\n padding-left: 8px;\n position: relative;\n word-wrap: break-word;\n line-height: 1.2;\n}\n/*.vcelm-l.vcelm-noc {\n padding-left: 0;\n}*/\n.vcelm-l .vcelm-node:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vcelm-l.vcelm-noc .vcelm-node:active {\n background-color: transparent;\n}\n.vcelm-t {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n/* level */\n/* arrow */\n.vcelm-l:before {\n content: "";\n display: block;\n position: absolute;\n top: 6px;\n left: 3px;\n width: 0;\n height: 0;\n border: transparent solid 3px;\n border-left-color: var(--VC-FG-1);\n}\n.vcelm-l.vc-toggle:before {\n display: block;\n top: 6px;\n left: 0;\n border-top-color: var(--VC-FG-1);\n border-left-color: transparent;\n}\n.vcelm-l.vcelm-noc:before {\n display: none;\n}\n',""]),e.Z=a},3327:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,"",""]),e.Z=a},1130:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,".vc-cmd {\n height: 3.07692308em;\n border-top: 1px solid var(--VC-FG-3);\n display: flex;\n flex-direction: row;\n}\n.vc-cmd.vc-filter {\n bottom: 0;\n}\n.vc-cmd-input-wrap {\n display: flex;\n align-items: center;\n flex: 1;\n position: relative;\n height: 2.15384615em;\n padding: 0.46153846em 0.61538462em;\n}\n.vc-cmd-input {\n width: 100%;\n border: none;\n resize: none;\n outline: none;\n padding: 0;\n font-size: 0.92307692em;\n background-color: transparent;\n color: var(--VC-FG-0);\n}\n.vc-cmd-input::-webkit-input-placeholder {\n line-height: 2.15384615em;\n}\n.vc-cmd-btn {\n width: 3.07692308em;\n border: none;\n background-color: var(--VC-BG-0);\n color: var(--VC-FG-0);\n outline: none;\n -webkit-touch-callout: none;\n font-size: 1em;\n}\n.vc-cmd-clear-btn {\n flex: 1 3.07692308em;\n text-align: center;\n line-height: 3.07692308em;\n}\n.vc-cmd-btn:active,\n.vc-cmd-clear-btn:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-cmd-prompted {\n position: absolute;\n left: 0.46153846em;\n right: 0.46153846em;\n background-color: var(--VC-BG-3);\n border: 1px solid var(--VC-FG-3);\n overflow-x: scroll;\n display: none;\n}\n.vc-cmd-prompted li {\n list-style: none;\n line-height: 30px;\n padding: 0 0.46153846em;\n border-bottom: 1px solid var(--VC-FG-3);\n}\n.vc-cmd-prompted li:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-cmd-prompted-hide {\n text-align: center;\n}\n",""]),e.Z=a},7147:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,'.vc-log-row {\n margin: 0;\n padding: 0.46153846em 0.61538462em;\n overflow: hidden;\n line-height: 1.3;\n border-bottom: 1px solid var(--VC-FG-3);\n word-break: break-word;\n position: relative;\n display: flex;\n}\n.vc-log-info {\n color: var(--VC-PURPLE);\n}\n.vc-log-debug {\n color: var(--VC-YELLOW);\n}\n.vc-log-warn {\n color: var(--VC-ORANGE);\n border-color: var(--VC-WARN-BORDER);\n background-color: var(--VC-WARN-BG);\n}\n.vc-log-error {\n color: var(--VC-RED);\n border-color: var(--VC-ERROR-BORDER);\n background-color: var(--VC-ERROR-BG);\n}\n.vc-logrow-icon {\n margin-left: auto;\n}\n.vc-log-padding {\n width: 1.53846154em;\n border-left: 1px solid var(--VC-FG-3);\n}\n.vc-log-group .vc-log-content {\n font-weight: bold;\n}\n.vc-log-group-toggle {\n padding-left: 0.76923077em;\n}\n.vc-log-group-toggle {\n display: block;\n font-style: italic;\n padding-left: 0.76923077em;\n position: relative;\n}\n.vc-log-group-toggle:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-log-group > .vc-log-group-toggle::before {\n content: "";\n position: absolute;\n top: 0.30769231em;\n left: 0.15384615em;\n width: 0;\n height: 0;\n border: transparent solid 0.30769231em;\n border-left-color: var(--VC-FG-1);\n}\n.vc-log-group.vc-toggle > .vc-log-group-toggle::before {\n top: 0.46153846em;\n left: 0;\n border-top-color: var(--VC-FG-1);\n border-left-color: transparent;\n}\n.vc-log-time {\n width: 6.15384615em;\n color: #777;\n}\n.vc-log-repeat i {\n margin-right: 0.30769231em;\n padding: 0 6.5px;\n color: #D7E0EF;\n background-color: #42597F;\n border-radius: 8.66666667px;\n}\n.vc-log-error .vc-log-repeat i {\n color: #901818;\n background-color: var(--VC-RED);\n}\n.vc-log-warn .vc-log-repeat i {\n color: #987D20;\n background-color: #F4BD02;\n}\n.vc-log-content {\n flex: 1;\n}\n.vc-log-input,\n.vc-log-output {\n padding-left: 0.92307692em;\n}\n.vc-log-input:before,\n.vc-log-output:before {\n content: "›";\n position: absolute;\n top: 0.15384615em;\n left: 0;\n font-size: 1.23076923em;\n color: #6A5ACD;\n}\n.vc-log-output:before {\n content: "‹";\n}\n',""]),e.Z=a},1237:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,'.vc-log-tree {\n display: block;\n overflow: auto;\n position: relative;\n -webkit-overflow-scrolling: touch;\n}\n.vc-log-tree-node {\n display: block;\n font-style: italic;\n padding-left: 0.76923077em;\n position: relative;\n}\n.vc-log-tree.vc-is-tree > .vc-log-tree-node:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-log-tree.vc-is-tree > .vc-log-tree-node::before {\n content: "";\n position: absolute;\n top: 0.30769231em;\n left: 0.15384615em;\n width: 0;\n height: 0;\n border: transparent solid 0.30769231em;\n border-left-color: var(--VC-FG-1);\n}\n.vc-log-tree.vc-is-tree.vc-toggle > .vc-log-tree-node::before {\n top: 0.46153846em;\n left: 0;\n border-top-color: var(--VC-FG-1);\n border-left-color: transparent;\n}\n.vc-log-tree-child {\n margin-left: 0.76923077em;\n}\n.vc-log-tree-loadmore {\n text-decoration: underline;\n padding-left: 1.84615385em;\n position: relative;\n color: var(--VC-CODE-FUNC-FG);\n}\n.vc-log-tree-loadmore::before {\n content: "››";\n position: absolute;\n top: -0.15384615em;\n left: 0.76923077em;\n font-size: 1.23076923em;\n color: var(--VC-CODE-FUNC-FG);\n}\n.vc-log-tree-loadmore:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n',""]),e.Z=a},845:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,".vc-log-key {\n color: var(--VC-CODE-KEY-FG);\n}\n.vc-log-key-private {\n color: var(--VC-CODE-PRIVATE-KEY-FG);\n}\n.vc-log-val {\n white-space: pre-line;\n}\n.vc-log-val-function {\n color: var(--VC-CODE-FUNC-FG);\n font-style: italic !important;\n}\n.vc-log-val-bigint {\n color: var(--VC-CODE-FUNC-FG);\n}\n.vc-log-val-number,\n.vc-log-val-boolean {\n color: var(--VC-CODE-NUMBER-FG);\n}\n.vc-log-val-string {\n white-space: pre-wrap;\n}\n.vc-log-val-string.vc-log-val-haskey {\n color: var(--VC-CODE-STR-FG);\n white-space: normal;\n}\n.vc-log-val-null,\n.vc-log-val-undefined,\n.vc-log-val-uninvocatable {\n color: var(--VC-CODE-NULL-FG);\n}\n.vc-log-val-symbol {\n color: var(--VC-CODE-STR-FG);\n}\n",""]),e.Z=a},8747:function(t,e,n){"use strict";var r=n(6738),i=n.n(r),o=n(7705),a=n.n(o)()(i());a.push([t.id,".vc-group .vc-group-preview {\n -webkit-touch-callout: none;\n}\n.vc-group .vc-group-preview:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-group .vc-group-detail {\n display: none;\n padding: 0 0 0.76923077em 1.53846154em;\n border-bottom: 1px solid var(--VC-FG-3);\n}\n.vc-group.vc-actived .vc-group-detail {\n display: block;\n background-color: var(--VC-BG-1);\n}\n.vc-group.vc-actived .vc-table-row {\n background-color: var(--VC-BG-2);\n}\n.vc-group.vc-actived .vc-group-preview {\n background-color: var(--VC-BG-1);\n}\n",""]),e.Z=a},3411:function(t,e,n){"use strict";var r=n(3379),i=n.n(r),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),u=n(3565),c=n.n(u),h=n(9216),d=n.n(h),f=n(4589),p=n.n(f),g=n(1130),v={};g.Z&&g.Z.locals&&(v.locals=g.Z.locals);var m,y=0,b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=a(),b.insertStyleElement=d(),v.use=function(t){return b.options=t||{},y++||(m=i()(g.Z,b)),v},v.unuse=function(){y>0&&!--y&&(m(),m=null)},e.Z=v},3379:function(t){"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],u=r.base?l[0]+r.base:l[0],c=o[u]||0,h="".concat(u," ").concat(c);o[u]=c+1;var d=n(h),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=i(f,r);r.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var o=r(t=t||[],i=i||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=r(t,i),u=0;u<o.length;u++){var c=n(o[u]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},569:function(t){"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:function(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:function(t){"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},6464:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:function(){return r}})},4296:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.d(e,{Z:function(){return i}})},8270:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},6881:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(2717);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,r.Z)(t,e)}},2717:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,{Z:function(){return r}})},7003:function(t,e,n){"use strict";n.d(e,{H3:function(){return r.H3E},ev:function(){return r.evW},x:function(){return r.xa3}});var r=n(2942)},2942:function(t,e,n){"use strict";n.d(e,{f_C:function(){return mt},hjT:function(){return K},R3I:function(){return x},Ljt:function(){return P},akz:function(){return ht},VnY:function(){return W},cKT:function(){return G},gbL:function(){return ot},FIv:function(){return f},XGm:function(){return b},xa3:function(){return $},YCL:function(){return dt},nuO:function(){return p},vpE:function(){return pt},RMB:function(){return C},ogt:function(){return S},bGB:function(){return k},cSb:function(){return T},yl1:function(){return tt},VOJ:function(){return y},u2N:function(){return v},$XI:function(){return d},lig:function(){return lt},dvw:function(){return it},S1n:function(){return vt},$Tr:function(){return w},sBU:function(){return l},oLt:function(){return A},yef:function(){return ft},ZTd:function(){return i},AqN:function(){return c},evW:function(){return V},H3E:function(){return z},cly:function(){return ut},AT7:function(){return I},j7q:function(){return s},N8:function(){return u},rTO:function(){return L},BmG:function(){return j},fxP:function(){return _},czc:function(){return N},DhX:function(){return E},XET:function(){return D},LdU:function(){return h},bi5:function(){return O},fLW:function(){return M},VHj:function(){return R},Ui:function(){return at},etI:function(){return st},GQg:function(){return ct},kmG:function(){return m}});n(2717);var r;n(6881);function i(){}function o(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(o)}function l(t){return"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e}function h(t){if(null==t)return i;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}function d(t){var e;return h(t,function(t){return e=t})(),e}function f(t,e,n){t.$$.on_destroy.push(h(e,n))}function p(t,e,n,r){if(t){var i=g(t,e,n,r);return t[0](i)}}function g(t,e,n,r){return t[1]&&r?function(t,e){for(var n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function v(t,e,n,r){if(t[2]&&r){var i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){for(var o=[],a=Math.max(e.dirty.length,i.length),s=0;s<a;s+=1)o[s]=e.dirty[s]|i[s];return o}return e.dirty|i}return e.dirty}function m(t,e,n,r,i,o){if(i){var a=g(e,n,r,o);t.p(a,i)}}function y(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,r=0;r<n;r++)e[r]=-1;return e}return-1}function b(t){var e={};for(var n in t)e[n]=!0;return e}function _(t,e,n){return t.set(n),e}function x(t,e){t.appendChild(e)}function w(t,e,n){t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function C(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function k(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function M(t){return document.createTextNode(t)}function E(){return M(" ")}function T(){return M("")}function A(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function I(t){return function(e){return e.preventDefault(),t.call(this,e)}}function D(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function P(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function L(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e){t.value=null==e?"":e}function N(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function R(t,e,n){t.classList[n?"add":"remove"](e)}function B(t){r=t}function F(){if(!r)throw new Error("Function called outside component initialization");return r}function z(t){F().$$.on_mount.push(t)}function V(t){F().$$.on_destroy.push(t)}function $(){var t=F();return function(e,n){var r=t.$$.callbacks[e];if(r){var i=function(t,e,n){void 0===n&&(n=!1);var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}(e,n);r.slice().forEach(function(e){e.call(t,i)})}}}function G(t,e){var n=this,r=t.$$.callbacks[e.type];r&&r.slice().forEach(function(t){return t.call(n,e)})}new Set,new Map;var H=[],W=[],U=[],Y=[],X=Promise.resolve(),q=!1;function Z(t){U.push(t)}function K(t){Y.push(t)}var J=new Set,Q=0;function tt(){var t=r;do{for(;Q<H.length;){var e=H[Q];Q++,B(e),et(e.$$)}for(B(null),H.length=0,Q=0;W.length;)W.pop()();for(var n=0;n<U.length;n+=1){var i=U[n];J.has(i)||(J.add(i),i())}U.length=0}while(H.length);for(;Y.length;)Y.pop()();q=!1,J.clear(),B(t)}function et(t){if(null!==t.fragment){t.update(),s(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Z)}}var nt,rt=new Set;function it(){nt={r:0,c:[],p:nt}}function ot(){nt.r||s(nt.c),nt=nt.p}function at(t,e){t&&t.i&&(rt.delete(t),t.i(e))}function st(t,e,n,r){if(t&&t.o){if(rt.has(t))return;rt.add(t),nt.c.push(function(){rt.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}}var lt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ut(t,e){st(t,1,1,function(){e.delete(t.key)})}function ct(t,e,n,r,i,o,a,s,l,u,c,h){for(var d=t.length,f=o.length,p=d,g={};p--;)g[t[p].key]=p;var v=[],m=new Map,y=new Map;for(p=f;p--;){var b=h(i,o,p),_=n(b),x=a.get(_);x?r&&x.p(b,e):(x=u(_,b)).c(),m.set(_,v[p]=x),_ in g&&y.set(_,Math.abs(p-g[_]))}var w=new Set,S=new Set;function C(t){at(t,1),t.m(s,c),a.set(t.key,t),c=t.first,f--}for(;d&&f;){var k=v[f-1],O=t[d-1],M=k.key,E=O.key;k===O?(c=k.first,d--,f--):m.has(E)?!a.has(M)||w.has(M)?C(k):S.has(E)?d--:y.get(M)>y.get(E)?(S.add(M),C(k)):(w.add(E),d--):(l(O,a),d--)}for(;d--;){var T=t[d];m.has(T.key)||l(T,a)}for(;f;)C(v[f-1]);return v}function ht(t,e,n){var r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function dt(t){t&&t.c()}function ft(t,e,n,r){var i=t.$$,a=i.fragment,u=i.on_mount,c=i.on_destroy,h=i.after_update;a&&a.m(e,n),r||Z(function(){var e=u.map(o).filter(l);c?c.push.apply(c,e):s(e),t.$$.on_mount=[]}),h.forEach(Z)}function pt(t,e){var n=t.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function gt(t,e){-1===t.$$.dirty[0]&&(H.push(t),q||(q=!0,X.then(tt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function vt(t,e,n,o,l,u,c,h){void 0===h&&(h=[-1]);var d=r;B(t);var f=t.$$={fragment:null,ctx:null,props:u,update:i,not_equal:l,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:h,skip_bound:!1,root:e.target||d.$$.root};c&&c(f.root);var p,g=!1;if(f.ctx=n?n(t,e.props||{},function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&l(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),g&>(t,e)),n}):[],f.update(),g=!0,s(f.before_update),f.fragment=!!o&&o(f.ctx),e.target){if(e.hydrate){var v=(p=e.target,Array.from(p.childNodes));f.fragment&&f.fragment.l(v),v.forEach(S)}else f.fragment&&f.fragment.c();e.intro&&at(t.$$.fragment),ft(t,e.target,e.anchor,e.customElement),tt()}B(d)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&HTMLElement;var mt=function(){function t(){}var e=t.prototype;return e.$destroy=function(){pt(this,1),this.$destroy=i},e.$on=function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.$set=function(t){this.$$set&&!function(t){return 0===Object.keys(t).length}(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)},t}()},3313:function(t,e,n){"use strict";n.d(e,{U2:function(){return r.$XI},fZ:function(){return s}});var r=n(2942);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=[];function s(t,e){var n;void 0===e&&(e=r.ZTd);var o=new Set;function s(e){if((0,r.N8)(t,e)&&(t=e,n)){for(var s,l=!a.length,u=i(o);!(s=u()).done;){var c=s.value;c[1](),a.push(c,t)}if(l){for(var h=0;h<a.length;h+=2)a[h][0](a[h+1]);a.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(i,a){void 0===a&&(a=r.ZTd);var l=[i,a];return o.add(l),1===o.size&&(n=e(s)||r.ZTd),i(t),function(){o.delete(l),0===o.size&&(n(),n=null)}}}}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var __webpack_exports__={};return function(){"use strict";__webpack_require__.d(__webpack_exports__,{default:function(){return xi}}),__webpack_require__(5441),__webpack_require__(8765);var t=__webpack_require__(4296),e=__webpack_require__(5103),n={one:function(t,e){void 0===e&&(e=document);try{return e.querySelector(t)||void 0}catch(t){return}},all:function(t,e){void 0===e&&(e=document);try{var n=e.querySelectorAll(t);return[].slice.call(n)}catch(t){return[]}},addClass:function(t,n){if(t)for(var r=(0,e.kJ)(t)?t:[t],i=0;i<r.length;i++){var o=(r[i].className||"").split(" ");o.indexOf(n)>-1||(o.push(n),r[i].className=o.join(" "))}},removeClass:function(t,n){if(t)for(var r=(0,e.kJ)(t)?t:[t],i=0;i<r.length;i++){for(var o=r[i].className.split(" "),a=0;a<o.length;a++)o[a]==n&&(o[a]="");r[i].className=o.join(" ").trim()}},hasClass:function(t,e){return!(!t||!t.classList)&&t.classList.contains(e)},bind:function(t,n,r,i){void 0===i&&(i=!1),t&&((0,e.kJ)(t)?t:[t]).forEach(function(t){t.addEventListener(n,r,!!i)})},delegate:function(t,e,r,i){t&&t.addEventListener(e,function(e){var o=n.all(r,t);if(o)t:for(var a=0;a<o.length;a++)for(var s=e.target;s;){if(s==o[a]){i.call(s,e,s);break t}if((s=s.parentNode)==t)break}},!1)},removeChildren:function(t){for(;t.firstChild;)t.removeChild(t.lastChild);return t}},r=n,i=__webpack_require__(6464),o=__webpack_require__(6881),a=__webpack_require__(2942),s=__webpack_require__(7003),l=__webpack_require__(3379),u=__webpack_require__.n(l),c=__webpack_require__(7795),h=__webpack_require__.n(c),d=__webpack_require__(569),f=__webpack_require__.n(d),p=__webpack_require__(3565),g=__webpack_require__.n(p),v=__webpack_require__(9216),m=__webpack_require__.n(v),y=__webpack_require__(4589),b=__webpack_require__.n(y),_=__webpack_require__(7558),x={};_.Z&&_.Z.locals&&(x.locals=_.Z.locals);var w,S=0,C={};C.styleTagTransform=b(),C.setAttributes=g(),C.insert=f().bind(null,"head"),C.domAPI=h(),C.insertStyleElement=m(),x.use=function(t){return C.options=t||{},S++||(w=u()(_.Z,C)),x},x.unuse=function(){S>0&&!--S&&(w(),w=null)};var k=x;function O(t){var e,n,r,i;return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)("vConsole"),(0,a.Ljt)(e,"class","vc-switch"),(0,a.czc)(e,"right",t[2].x+"px"),(0,a.czc)(e,"bottom",t[2].y+"px"),(0,a.czc)(e,"display",t[0]?"block":"none")},m:function(o,s){(0,a.$Tr)(o,e,s),(0,a.R3I)(e,n),t[8](e),r||(i=[(0,a.oLt)(e,"touchstart",t[3],{passive:!1}),(0,a.oLt)(e,"touchend",t[4],{passive:!1}),(0,a.oLt)(e,"touchmove",t[5],{passive:!1}),(0,a.oLt)(e,"click",t[7])],r=!0)},p:function(t,n){var r=n[0];4&r&&(0,a.czc)(e,"right",t[2].x+"px"),4&r&&(0,a.czc)(e,"bottom",t[2].y+"px"),1&r&&(0,a.czc)(e,"display",t[0]?"block":"none")},i:a.ZTd,o:a.ZTd,d:function(n){n&&(0,a.ogt)(e),t[8](null),r=!1,(0,a.j7q)(i)}}}function M(t,n,r){var i,o=n.show,l=void 0===o||o,u=n.position,c=void 0===u?{x:0,y:0}:u,h={hasMoved:!1,x:0,y:0,startX:0,startY:0,endX:0,endY:0},d={x:0,y:0};(0,s.H3)(function(){k.use()}),(0,s.ev)(function(){k.unuse()});var f=function(t,n){var i=p(t,n);t=i[0],n=i[1],h.x=t,h.y=n,r(2,d.x=t,d),r(2,d.y=n,d),e.po("switch_x",t+""),e.po("switch_y",n+"")},p=function(t,e){var n=Math.max(document.documentElement.offsetWidth,window.innerWidth),r=Math.max(document.documentElement.offsetHeight,window.innerHeight);return t+i.offsetWidth>n&&(t=n-i.offsetWidth),e+i.offsetHeight>r&&(e=r-i.offsetHeight),t<0&&(t=0),e<20&&(e=20),[t,e]};return t.$$set=function(t){"show"in t&&r(0,l=t.show),"position"in t&&r(6,c=t.position)},t.$$.update=function(){66&t.$$.dirty&&i&&f(c.x,c.y)},[l,i,d,function(t){h.startX=t.touches[0].pageX,h.startY=t.touches[0].pageY,h.hasMoved=!1},function(t){h.hasMoved&&(h.startX=0,h.startY=0,h.hasMoved=!1,f(h.endX,h.endY))},function(t){if(!(t.touches.length<=0)){var e=t.touches[0].pageX-h.startX,n=t.touches[0].pageY-h.startY,i=Math.floor(h.x-e),o=Math.floor(h.y-n),a=p(i,o);i=a[0],o=a[1],r(2,d.x=i,d),r(2,d.y=o,d),h.endX=i,h.endY=o,h.hasMoved=!0,t.preventDefault()}},c,function(e){a.cKT.call(this,t,e)},function(t){a.VnY[t?"unshift":"push"](function(){r(1,i=t)})}]}var E=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,M,O,a.N8,{show:0,position:6}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"show",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({show:t}),(0,a.yl1)()}},{key:"position",get:function(){return this.$$.ctx[6]},set:function(t){this.$$set({position:t}),(0,a.yl1)()}}]),n}(a.f_C);function T(t){var e,n;return{c:function(){e=(0,a.bGB)("div"),(0,a.Ljt)(e,"id",n="__vc_plug_"+t[0]),(0,a.Ljt)(e,"class","vc-plugin-box"),(0,a.VHj)(e,"vc-fixed-height",t[1]),(0,a.VHj)(e,"vc-actived",t[2])},m:function(n,r){(0,a.$Tr)(n,e,r),t[6](e)},p:function(t,r){var i=r[0];1&i&&n!==(n="__vc_plug_"+t[0])&&(0,a.Ljt)(e,"id",n),2&i&&(0,a.VHj)(e,"vc-fixed-height",t[1]),4&i&&(0,a.VHj)(e,"vc-actived",t[2])},i:a.ZTd,o:a.ZTd,d:function(n){n&&(0,a.ogt)(e),t[6](null)}}}function A(t,n,r){var i=n.pluginId,o=void 0===i?"":i,s=n.fixedHeight,l=void 0!==s&&s,u=n.actived,c=void 0!==u&&u,h=n.content,d=void 0===h?void 0:h,f=void 0,p=void 0;return t.$$set=function(t){"pluginId"in t&&r(0,o=t.pluginId),"fixedHeight"in t&&r(1,l=t.fixedHeight),"actived"in t&&r(2,c=t.actived),"content"in t&&r(4,d=t.content)},t.$$.update=function(){57&t.$$.dirty&&p!==o&&d&&f&&(r(5,p=o),r(3,f.innerHTML="",f),(0,e.HD)(d)?r(3,f.innerHTML=d,f):(0,e.kK)(d)&&f.appendChild(d))},[o,l,c,f,d,p,function(t){a.VnY[t?"unshift":"push"](function(){r(3,f=t),r(5,p),r(0,o),r(4,d)})}]}var I=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,A,T,a.N8,{pluginId:0,fixedHeight:1,actived:2,content:4}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"pluginId",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({pluginId:t}),(0,a.yl1)()}},{key:"fixedHeight",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({fixedHeight:t}),(0,a.yl1)()}},{key:"actived",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({actived:t}),(0,a.yl1)()}},{key:"content",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({content:t}),(0,a.yl1)()}}]),n}(a.f_C),D=__webpack_require__(4687),P=__webpack_require__(3283),L={};P.Z&&P.Z.locals&&(L.locals=P.Z.locals);var j,N=0,R={};R.styleTagTransform=b(),R.setAttributes=g(),R.insert=f().bind(null,"head"),R.domAPI=h(),R.insertStyleElement=m(),L.use=function(t){return R.options=t||{},N++||(j=u()(P.Z,R)),L},L.unuse=function(){N>0&&!--N&&(j(),j=null)};var B=L;function F(t,e,n){var r=t.slice();return r[39]=e[n][0],r[40]=e[n][1],r}function z(t,e,n){var r=t.slice();return r[43]=e[n],r[45]=n,r}function V(t,e,n){var r=t.slice();return r[39]=e[n][0],r[40]=e[n][1],r}function $(t,e,n){var r=t.slice();return r[39]=e[n][0],r[40]=e[n][1],r}function G(t,e,n){var r=t.slice();return r[43]=e[n],r[45]=n,r}function H(t,e,n){var r=t.slice();return r[39]=e[n][0],r[40]=e[n][1],r}function W(t){var e,n,r,i,o,s=t[40].name+"";function l(){return t[25](t[40])}return{c:function(){e=(0,a.bGB)("a"),n=(0,a.fLW)(s),(0,a.Ljt)(e,"class","vc-tab"),(0,a.Ljt)(e,"id",r="__vc_tab_"+t[40].id),(0,a.VHj)(e,"vc-actived",t[40].id===t[2])},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n),i||(o=(0,a.oLt)(e,"click",l),i=!0)},p:function(i,o){t=i,8&o[0]&&s!==(s=t[40].name+"")&&(0,a.rTO)(n,s),8&o[0]&&r!==(r="__vc_tab_"+t[40].id)&&(0,a.Ljt)(e,"id",r),12&o[0]&&(0,a.VHj)(e,"vc-actived",t[40].id===t[2])},d:function(t){t&&(0,a.ogt)(e),i=!1,o()}}}function U(t){var e,n=t[40].hasTabPanel&&W(t);return{c:function(){n&&n.c(),e=(0,a.cSb)()},m:function(t,r){n&&n.m(t,r),(0,a.$Tr)(t,e,r)},p:function(t,r){t[40].hasTabPanel?n?n.p(t,r):((n=W(t)).c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d:function(t){n&&n.d(t),t&&(0,a.ogt)(e)}}}function Y(t){var e,n,r,i,o,s=t[43].name+"";function l(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t)[26].apply(e,[t[40],t[45]].concat(r))}return{c:function(){e=(0,a.bGB)("i"),n=(0,a.fLW)(s),(0,a.Ljt)(e,"class",r="vc-toptab vc-topbar-"+t[40].id+" "+t[43].className),(0,a.VHj)(e,"vc-toggle",t[40].id===t[2]),(0,a.VHj)(e,"vc-actived",t[43].actived)},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n),i||(o=(0,a.oLt)(e,"click",l),i=!0)},p:function(i,o){t=i,8&o[0]&&s!==(s=t[43].name+"")&&(0,a.rTO)(n,s),8&o[0]&&r!==(r="vc-toptab vc-topbar-"+t[40].id+" "+t[43].className)&&(0,a.Ljt)(e,"class",r),12&o[0]&&(0,a.VHj)(e,"vc-toggle",t[40].id===t[2]),8&o[0]&&(0,a.VHj)(e,"vc-actived",t[43].actived)},d:function(t){t&&(0,a.ogt)(e),i=!1,o()}}}function X(t){for(var e,n=t[40].topbarList,r=[],i=0;i<n.length;i+=1)r[i]=Y(G(t,n,i));return{c:function(){for(var t=0;t<r.length;t+=1)r[t].c();e=(0,a.cSb)()},m:function(t,n){for(var i=0;i<r.length;i+=1)r[i].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,i){if(8204&i[0]){var o;for(n=t[40].topbarList,o=0;o<n.length;o+=1){var a=G(t,n,o);r[o]?r[o].p(a,i):(r[o]=Y(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d:function(t){(0,a.RMB)(r,t),t&&(0,a.ogt)(e)}}}function q(t){var e,n,r,i=I;function o(t){var e;return{props:{pluginId:t[40].id,fixedHeight:null==(e=t[40].tabOptions)?void 0:e.fixedHeight,actived:t[40].id===t[2],content:t[40].content}}}return i&&(e=new i(o(t))),{c:function(){e&&(0,a.YCL)(e.$$.fragment),n=(0,a.cSb)()},m:function(t,i){e&&(0,a.yef)(e,t,i),(0,a.$Tr)(t,n,i),r=!0},p:function(t,r){var s,l={};if(8&r[0]&&(l.pluginId=t[40].id),8&r[0]&&(l.fixedHeight=null==(s=t[40].tabOptions)?void 0:s.fixedHeight),12&r[0]&&(l.actived=t[40].id===t[2]),8&r[0]&&(l.content=t[40].content),i!==(i=I)){if(e){(0,a.dvw)();var u=e;(0,a.etI)(u.$$.fragment,1,0,function(){(0,a.vpE)(u,1)}),(0,a.gbL)()}i?(e=new i(o(t)),(0,a.YCL)(e.$$.fragment),(0,a.Ui)(e.$$.fragment,1),(0,a.yef)(e,n.parentNode,n)):e=null}else i&&e.$set(l)},i:function(t){r||(e&&(0,a.Ui)(e.$$.fragment,t),r=!0)},o:function(t){e&&(0,a.etI)(e.$$.fragment,t),r=!1},d:function(t){t&&(0,a.ogt)(n),e&&(0,a.vpE)(e,t)}}}function Z(t){var e,n,r,i,o,s=t[43].name+"";function l(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t)[28].apply(e,[t[40],t[45]].concat(r))}return{c:function(){e=(0,a.bGB)("i"),n=(0,a.fLW)(s),(0,a.Ljt)(e,"class",r="vc-tool vc-tool-"+t[40].id),(0,a.VHj)(e,"vc-global-tool",t[43].global),(0,a.VHj)(e,"vc-toggle",t[40].id===t[2])},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n),i||(o=(0,a.oLt)(e,"click",l),i=!0)},p:function(i,o){t=i,8&o[0]&&s!==(s=t[43].name+"")&&(0,a.rTO)(n,s),8&o[0]&&r!==(r="vc-tool vc-tool-"+t[40].id)&&(0,a.Ljt)(e,"class",r),8&o[0]&&(0,a.VHj)(e,"vc-global-tool",t[43].global),12&o[0]&&(0,a.VHj)(e,"vc-toggle",t[40].id===t[2])},d:function(t){t&&(0,a.ogt)(e),i=!1,o()}}}function K(t){for(var e,n=t[40].toolbarList,r=[],i=0;i<n.length;i+=1)r[i]=Z(z(t,n,i));return{c:function(){for(var t=0;t<r.length;t+=1)r[t].c();e=(0,a.cSb)()},m:function(t,n){for(var i=0;i<r.length;i+=1)r[i].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,i){if(16396&i[0]){var o;for(n=t[40].toolbarList,o=0;o<n.length;o+=1){var a=z(t,n,o);r[o]?r[o].p(a,i):(r[o]=Z(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d:function(t){(0,a.RMB)(r,t),t&&(0,a.ogt)(e)}}}function J(t){var e,n,r,i,o,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w;function S(e){t[23](e)}function C(e){t[24](e)}var k={};void 0!==t[0]&&(k.show=t[0]),void 0!==t[1]&&(k.position=t[1]),n=new E({props:k}),a.VnY.push(function(){return(0,a.akz)(n,"show",S)}),a.VnY.push(function(){return(0,a.akz)(n,"position",C)}),n.$on("click",t[10]);for(var O=Object.entries(t[3]),M=[],T=0;T<O.length;T+=1)M[T]=U(H(t,O,T));for(var A=Object.entries(t[3]),I=[],D=0;D<A.length;D+=1)I[D]=X($(t,A,D));for(var P=Object.entries(t[3]),L=[],j=0;j<P.length;j+=1)L[j]=q(V(t,P,j));for(var N=function(t){return(0,a.etI)(L[t],1,1,function(){L[t]=null})},R=Object.entries(t[3]),B=[],z=0;z<R.length;z+=1)B[z]=K(F(t,R,z));return{c:function(){var r,i;e=(0,a.bGB)("div"),(0,a.YCL)(n.$$.fragment),o=(0,a.DhX)(),s=(0,a.bGB)("div"),l=(0,a.DhX)(),u=(0,a.bGB)("div"),c=(0,a.bGB)("div");for(var _=0;_<M.length;_+=1)M[_].c();h=(0,a.DhX)(),d=(0,a.bGB)("div");for(var x=0;x<I.length;x+=1)I[x].c();f=(0,a.DhX)(),p=(0,a.bGB)("div");for(var w=0;w<L.length;w+=1)L[w].c();g=(0,a.DhX)(),v=(0,a.bGB)("div");for(var S=0;S<B.length;S+=1)B[S].c();m=(0,a.DhX)(),(y=(0,a.bGB)("i")).textContent="Hide",(0,a.Ljt)(s,"class","vc-mask"),(0,a.czc)(s,"display",t[8]?"block":"none"),(0,a.Ljt)(c,"class","vc-tabbar"),(0,a.Ljt)(d,"class","vc-topbar"),(0,a.Ljt)(p,"class","vc-content"),(0,a.VHj)(p,"vc-has-topbar",(null==(r=t[3][t[2]])||null==(i=r.topbarList)?void 0:i.length)>0),(0,a.Ljt)(y,"class","vc-tool vc-global-tool vc-tool-last vc-hide"),(0,a.Ljt)(v,"class","vc-toolbar"),(0,a.Ljt)(u,"class","vc-panel"),(0,a.czc)(u,"display",t[7]?"block":"none"),(0,a.Ljt)(e,"id","__vconsole"),(0,a.Ljt)(e,"style",b=t[5]?"font-size:"+t[5]+";":""),(0,a.Ljt)(e,"data-theme",t[4]),(0,a.VHj)(e,"vc-toggle",t[6])},m:function(r,i){(0,a.$Tr)(r,e,i),(0,a.yef)(n,e,null),(0,a.R3I)(e,o),(0,a.R3I)(e,s),(0,a.R3I)(e,l),(0,a.R3I)(e,u),(0,a.R3I)(u,c);for(var b=0;b<M.length;b+=1)M[b].m(c,null);(0,a.R3I)(u,h),(0,a.R3I)(u,d);for(var S=0;S<I.length;S+=1)I[S].m(d,null);(0,a.R3I)(u,f),(0,a.R3I)(u,p);for(var C=0;C<L.length;C+=1)L[C].m(p,null);t[27](p),(0,a.R3I)(u,g),(0,a.R3I)(u,v);for(var k=0;k<B.length;k+=1)B[k].m(v,null);(0,a.R3I)(v,m),(0,a.R3I)(v,y),_=!0,x||(w=[(0,a.oLt)(s,"click",t[11]),(0,a.oLt)(p,"touchstart",t[15]),(0,a.oLt)(p,"touchmove",t[16]),(0,a.oLt)(p,"touchend",t[17]),(0,a.oLt)(p,"scroll",t[18]),(0,a.oLt)(y,"click",t[11]),(0,a.oLt)(e,"touchstart",t[19].touchStart,{passive:!1,capture:!0}),(0,a.oLt)(e,"touchmove",t[19].touchMove,{passive:!1,capture:!0}),(0,a.oLt)(e,"touchend",t[19].touchEnd,{passive:!1,capture:!0})],x=!0)},p:function(t,o){var l,h,f={};if(!r&&1&o[0]&&(r=!0,f.show=t[0],(0,a.hjT)(function(){return r=!1})),!i&&2&o[0]&&(i=!0,f.position=t[1],(0,a.hjT)(function(){return i=!1})),n.$set(f),(!_||256&o[0])&&(0,a.czc)(s,"display",t[8]?"block":"none"),4108&o[0]){var g;for(O=Object.entries(t[3]),g=0;g<O.length;g+=1){var y=H(t,O,g);M[g]?M[g].p(y,o):(M[g]=U(y),M[g].c(),M[g].m(c,null))}for(;g<M.length;g+=1)M[g].d(1);M.length=O.length}if(8204&o[0]){var x;for(A=Object.entries(t[3]),x=0;x<A.length;x+=1){var w=$(t,A,x);I[x]?I[x].p(w,o):(I[x]=X(w),I[x].c(),I[x].m(d,null))}for(;x<I.length;x+=1)I[x].d(1);I.length=A.length}if(12&o[0]){var S;for(P=Object.entries(t[3]),S=0;S<P.length;S+=1){var C=V(t,P,S);L[S]?(L[S].p(C,o),(0,a.Ui)(L[S],1)):(L[S]=q(C),L[S].c(),(0,a.Ui)(L[S],1),L[S].m(p,null))}for((0,a.dvw)(),S=P.length;S<L.length;S+=1)N(S);(0,a.gbL)()}if(12&o[0]&&(0,a.VHj)(p,"vc-has-topbar",(null==(l=t[3][t[2]])||null==(h=l.topbarList)?void 0:h.length)>0),16396&o[0]){var k;for(R=Object.entries(t[3]),k=0;k<R.length;k+=1){var E=F(t,R,k);B[k]?B[k].p(E,o):(B[k]=K(E),B[k].c(),B[k].m(v,m))}for(;k<B.length;k+=1)B[k].d(1);B.length=R.length}(!_||128&o[0])&&(0,a.czc)(u,"display",t[7]?"block":"none"),(!_||32&o[0]&&b!==(b=t[5]?"font-size:"+t[5]+";":""))&&(0,a.Ljt)(e,"style",b),(!_||16&o[0])&&(0,a.Ljt)(e,"data-theme",t[4]),64&o[0]&&(0,a.VHj)(e,"vc-toggle",t[6])},i:function(t){if(!_){(0,a.Ui)(n.$$.fragment,t);for(var e=0;e<P.length;e+=1)(0,a.Ui)(L[e]);_=!0}},o:function(t){(0,a.etI)(n.$$.fragment,t),L=L.filter(Boolean);for(var e=0;e<L.length;e+=1)(0,a.etI)(L[e]);_=!1},d:function(r){r&&(0,a.ogt)(e),(0,a.vpE)(n),(0,a.RMB)(M,r),(0,a.RMB)(I,r),(0,a.RMB)(L,r),t[27](null),(0,a.RMB)(B,r),x=!1,(0,a.j7q)(w)}}}function Q(t,n,r){var i,o,l=n.theme,u=void 0===l?"":l,c=n.disableScrolling,h=void 0!==c&&c,d=n.show,f=void 0!==d&&d,p=n.showSwitchButton,g=void 0===p||p,v=n.switchButtonPosition,m=void 0===v?{x:0,y:0}:v,y=n.activedPluginId,b=void 0===y?"":y,_=n.pluginList,x=void 0===_?{}:_,w=(0,s.x)(),S=!1,C="",k=!1,O=!1,M=!1,E=!0,T=0,A=null,I={};(0,s.H3)(function(){var t=document.querySelectorAll('[name="viewport"]');if(t&&t[0]){var e=(t[t.length-1].getAttribute("content")||"").match(/initial\-scale\=\d+(\.\d+)?/),n=e?parseFloat(e[0].split("=")[1]):1;1!==n&&r(5,C=Math.floor(1/n*13)+"px")}B.use&&B.use(),i=D.x.subscribe(function(t){f&&T!==t.updateTime&&(T=t.updateTime,P())})}),(0,s.ev)(function(){B.unuse&&B.unuse(),i&&i()});var P=function(){!h&&E&&o&&r(9,o.scrollTop=o.scrollHeight-o.offsetHeight,o)},L=function(t){t!==b&&(r(2,b=t),w("changePanel",{pluginId:t}),setTimeout(function(){o&&r(9,o.scrollTop=I[b]||0,o)},0))},j=function(t,n,i){var o=x[n].topbarList[i],a=!0;if(e.mf(o.onClick)&&(a=o.onClick.call(t.target,t,o.data)),!1===a);else{for(var s=0;s<x[n].topbarList.length;s++)r(3,x[n].topbarList[s].actived=i===s,x);r(3,x)}},N=function(t,n,r){var i=x[n].toolbarList[r];e.mf(i.onClick)&&i.onClick.call(t.target,t,i.data)},R={tapTime:700,tapBoundary:10,lastTouchStartTime:0,touchstartX:0,touchstartY:0,touchHasMoved:!1,targetElem:null},F={touchStart:function(t){if(0===R.lastTouchStartTime){var e=t.targetTouches[0];R.touchstartX=e.pageX,R.touchstartY=e.pageY,R.lastTouchStartTime=t.timeStamp,R.targetElem=t.target.nodeType===Node.TEXT_NODE?t.target.parentNode:t.target}},touchMove:function(t){var e=t.changedTouches[0];(Math.abs(e.pageX-R.touchstartX)>R.tapBoundary||Math.abs(e.pageY-R.touchstartY)>R.tapBoundary)&&(R.touchHasMoved=!0)},touchEnd:function(t){if(!1===R.touchHasMoved&&t.timeStamp-R.lastTouchStartTime<R.tapTime&&null!=R.targetElem){var e=!1;switch(R.targetElem.tagName.toLowerCase()){case"textarea":e=!0;break;case"select":e=!R.targetElem.disabled&&!R.targetElem.readOnly;break;case"input":switch(R.targetElem.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":e=!1;break;default:e=!R.targetElem.disabled&&!R.targetElem.readOnly}}e?R.targetElem.focus():t.preventDefault();var n=t.changedTouches[0],r=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY});R.targetElem.dispatchEvent(r)}R.lastTouchStartTime=0,R.touchHasMoved=!1,R.targetElem=null}};return t.$$set=function(t){"theme"in t&&r(4,u=t.theme),"disableScrolling"in t&&r(20,h=t.disableScrolling),"show"in t&&r(21,f=t.show),"showSwitchButton"in t&&r(0,g=t.showSwitchButton),"switchButtonPosition"in t&&r(1,m=t.switchButtonPosition),"activedPluginId"in t&&r(2,b=t.activedPluginId),"pluginList"in t&&r(3,x=t.pluginList)},t.$$.update=function(){6291456&t.$$.dirty[0]&&(!0===f?(r(7,O=!0),r(8,M=!0),A&&clearTimeout(A),r(22,A=setTimeout(function(){r(6,k=!0),P()},10))):(r(6,k=!1),A&&clearTimeout(A),r(22,A=setTimeout(function(){r(7,O=!1),r(8,M=!1)},330))))},[g,m,b,x,u,C,k,O,M,o,function(t){w("show",{show:!0})},function(t){w("show",{show:!1})},L,j,N,function(t){if("INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName){var e=!1;if("function"==typeof window.getComputedStyle){var n=window.getComputedStyle(t.target);"auto"!==n.overflow&&"initial"!==n.overflow&&"scroll"!==n.overflow||(e=!0)}if(!e){var i=o.scrollTop,a=o.scrollHeight,s=i+o.offsetHeight;0===i?(r(9,o.scrollTop=1,o),0===o.scrollTop&&(S=!0)):s===a&&(r(9,o.scrollTop=i-1,o),o.scrollTop===i&&(S=!0))}}},function(t){S&&t.preventDefault()},function(t){S=!1},function(t){f&&(E=o.scrollTop+o.offsetHeight>=o.scrollHeight-50,I[b]=o.scrollTop)},F,h,f,A,function(t){r(0,g=t)},function(t){r(1,m=t)},function(t){return L(t.id)},function(t,e,n){return j(n,t.id,e)},function(t){a.VnY[t?"unshift":"push"](function(){r(9,o=t)})},function(t,e,n){return N(n,t.id,e)}]}var tt=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,Q,J,a.N8,{theme:4,disableScrolling:20,show:21,showSwitchButton:0,switchButtonPosition:1,activedPluginId:2,pluginList:3},null,[-1,-1]),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"theme",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({theme:t}),(0,a.yl1)()}},{key:"disableScrolling",get:function(){return this.$$.ctx[20]},set:function(t){this.$$set({disableScrolling:t}),(0,a.yl1)()}},{key:"show",get:function(){return this.$$.ctx[21]},set:function(t){this.$$set({show:t}),(0,a.yl1)()}},{key:"showSwitchButton",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({showSwitchButton:t}),(0,a.yl1)()}},{key:"switchButtonPosition",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({switchButtonPosition:t}),(0,a.yl1)()}},{key:"activedPluginId",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({activedPluginId:t}),(0,a.yl1)()}},{key:"pluginList",get:function(){return this.$$.ctx[3]},set:function(t){this.$$set({pluginList:t}),(0,a.yl1)()}}]),n}(a.f_C),et=function(){function n(t,e){void 0===e&&(e="newPlugin"),this.isReady=!1,this.eventMap=new Map,this.exporter=void 0,this._id=void 0,this._name=void 0,this._vConsole=void 0,this.id=t,this.name=e,this.isReady=!1}var r=n.prototype;return r.on=function(t,e){return this.eventMap.set(t,e),this},r.onRemove=function(){this.unbindExporter()},r.trigger=function(t,e){var n=this.eventMap.get(t);if("function"==typeof n)n.call(this,e);else{var r="on"+t.charAt(0).toUpperCase()+t.slice(1);"function"==typeof this[r]&&this[r].call(this,e)}return this},r.bindExporter=function(){if(this._vConsole&&this.exporter){var t="default"===this.id?"log":this.id;this._vConsole[t]=this.exporter}},r.unbindExporter=function(){var t="default"===this.id?"log":this.id;this._vConsole&&this._vConsole[t]&&(this._vConsole[t]=void 0)},r.getUniqueID=function(t){return void 0===t&&(t=""),(0,e.QI)(t)},(0,t.Z)(n,[{key:"id",get:function(){return this._id},set:function(t){if("string"!=typeof t)throw"[vConsole] Plugin ID must be a string.";if(!t)throw"[vConsole] Plugin ID cannot be empty.";this._id=t.toLowerCase()}},{key:"name",get:function(){return this._name},set:function(t){if("string"!=typeof t)throw"[vConsole] Plugin name must be a string.";if(!t)throw"[vConsole] Plugin name cannot be empty.";this._name=t}},{key:"vConsole",get:function(){return this._vConsole||void 0},set:function(t){if(!t)throw"[vConsole] vConsole cannot be empty";this._vConsole=t,this.bindExporter()}}]),n}(),nt=function(t){function e(e,n,r,i){var o;return(o=t.call(this,e,n)||this).CompClass=void 0,o.compInstance=void 0,o.initialProps=void 0,o.CompClass=r,o.initialProps=i,o}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){this.isReady=!0},n.onRenderTab=function(t){var e=document.createElement("div"),n=this.compInstance=new this.CompClass({target:e,props:this.initialProps});t(e.firstElementChild,n.options)},n.onRemove=function(){t.prototype.onRemove&&t.prototype.onRemove.call(this),this.compInstance&&this.compInstance.$destroy()},e}(et),rt=__webpack_require__(8665),it=__webpack_require__(9923),ot=__webpack_require__(8702);function at(t){var e,n;return(e=new ot.Z({props:{name:t[0]?"success":"copy"}})).$on("click",t[1]),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:function(t,n){var r={};1&n[0]&&(r.name=t[0]?"success":"copy"),e.$set(r)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function st(t,n,r){var i=n.content,o=void 0===i?"":i,a=n.handler,s=void 0===a?void 0:a,l={target:document.documentElement},u=!1;return t.$$set=function(t){"content"in t&&r(2,o=t.content),"handler"in t&&r(3,s=t.handler)},[u,function(t){(function(t,e){var n=(void 0===e?{}:e).target,r=void 0===n?document.body:n,i=document.createElement("textarea"),o=document.activeElement;i.value=t,i.setAttribute("readonly",""),i.style.contain="strict",i.style.position="absolute",i.style.left="-9999px",i.style.fontSize="12pt";var a=document.getSelection(),s=!1;a.rangeCount>0&&(s=a.getRangeAt(0)),r.append(i),i.select(),i.selectionStart=0,i.selectionEnd=t.length;try{document.execCommand("copy")}catch(t){}i.remove(),s&&(a.removeAllRanges(),a.addRange(s)),o&&o.focus()})(e.mf(s)?s(o)||"":e.Kn(o)||e.kJ(o)?e.hZ(o,{maxDepth:10,keyMaxLen:1e4,pretty:!1,standardJSON:!0}):o,l),r(0,u=!0),setTimeout(function(){r(0,u=!1)},600)},o,s]}var lt=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,st,at,a.N8,{content:2,handler:3}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"content",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({content:t}),(0,a.yl1)()}},{key:"handler",get:function(){return this.$$.ctx[3]},set:function(t){this.$$set({handler:t}),(0,a.yl1)()}}]),n}(a.f_C),ut=__webpack_require__(845),ct={};ut.Z&&ut.Z.locals&&(ct.locals=ut.Z.locals);var ht,dt=0,ft={};ft.styleTagTransform=b(),ft.setAttributes=g(),ft.insert=f().bind(null,"head"),ft.domAPI=h(),ft.insertStyleElement=m(),ct.use=function(t){return ft.options=t||{},dt++||(ht=u()(ut.Z,ft)),ct},ct.unuse=function(){dt>0&&!--dt&&(ht(),ht=null)};var pt=ct;function gt(t){var n,r,i,o=e.rE(t[1])+"";return{c:function(){n=(0,a.bGB)("i"),r=(0,a.fLW)(o),i=(0,a.fLW)(":"),(0,a.Ljt)(n,"class","vc-log-key"),(0,a.VHj)(n,"vc-log-key-symbol","symbol"===t[2]),(0,a.VHj)(n,"vc-log-key-private","private"===t[2])},m:function(t,e){(0,a.$Tr)(t,n,e),(0,a.R3I)(n,r),(0,a.$Tr)(t,i,e)},p:function(t,i){2&i&&o!==(o=e.rE(t[1])+"")&&(0,a.rTO)(r,o),4&i&&(0,a.VHj)(n,"vc-log-key-symbol","symbol"===t[2]),4&i&&(0,a.VHj)(n,"vc-log-key-private","private"===t[2])},d:function(t){t&&(0,a.ogt)(n),t&&(0,a.ogt)(i)}}}function vt(t){var e,n,r,i,o=void 0!==t[1]&>(t);return{c:function(){o&&o.c(),e=(0,a.DhX)(),n=(0,a.bGB)("i"),r=(0,a.fLW)(t[3]),(0,a.Ljt)(n,"class",i="vc-log-val vc-log-val-"+t[4]),(0,a.Ljt)(n,"style",t[0]),(0,a.VHj)(n,"vc-log-val-haskey",void 0!==t[1])},m:function(t,i){o&&o.m(t,i),(0,a.$Tr)(t,e,i),(0,a.$Tr)(t,n,i),(0,a.R3I)(n,r)},p:function(t,s){var l=s[0];void 0!==t[1]?o?o.p(t,l):((o=gt(t)).c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),8&l&&(0,a.rTO)(r,t[3]),16&l&&i!==(i="vc-log-val vc-log-val-"+t[4])&&(0,a.Ljt)(n,"class",i),1&l&&(0,a.Ljt)(n,"style",t[0]),18&l&&(0,a.VHj)(n,"vc-log-val-haskey",void 0!==t[1])},i:a.ZTd,o:a.ZTd,d:function(t){o&&o.d(t),t&&(0,a.ogt)(e),t&&(0,a.ogt)(n)}}}function mt(t,e,n){var r=e.origData,i=e.style,o=void 0===i?"":i,a=e.dataKey,l=void 0===a?void 0:a,u=e.keyType,c=void 0===u?"":u,h="",d="",f=!1;return(0,s.H3)(function(){pt.use()}),(0,s.ev)(function(){pt.unuse()}),t.$$set=function(t){"origData"in t&&n(5,r=t.origData),"style"in t&&n(0,o=t.style),"dataKey"in t&&n(1,l=t.dataKey),"keyType"in t&&n(2,c=t.keyType)},t.$$.update=function(){if(122&t.$$.dirty){n(6,f=void 0!==l);var e=(0,rt.LH)(r,f);n(4,d=e.valueType),n(3,h=e.text),f||"string"!==d||n(3,h=h.replace(/\\n/g,"\n").replace(/\\t/g," "))}},[o,l,c,h,d,r,f]}var yt=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,mt,vt,a.AqN,{origData:5,style:0,dataKey:1,keyType:2}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"origData",get:function(){return this.$$.ctx[5]},set:function(t){this.$$set({origData:t}),(0,a.yl1)()}},{key:"style",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({style:t}),(0,a.yl1)()}},{key:"dataKey",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({dataKey:t}),(0,a.yl1)()}},{key:"keyType",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({keyType:t}),(0,a.yl1)()}}]),n}(a.f_C),bt=__webpack_require__(1237),_t={};bt.Z&&bt.Z.locals&&(_t.locals=bt.Z.locals);var xt,wt=0,St={};St.styleTagTransform=b(),St.setAttributes=g(),St.insert=f().bind(null,"head"),St.domAPI=h(),St.insertStyleElement=m(),_t.use=function(t){return St.options=t||{},wt++||(xt=u()(bt.Z,St)),_t},_t.unuse=function(){wt>0&&!--wt&&(xt(),xt=null)};var Ct=_t;function kt(t,e,n){var r=t.slice();return r[19]=e[n],r[21]=n,r}function Ot(t,e,n){var r=t.slice();return r[19]=e[n],r}function Mt(t,e,n){var r=t.slice();return r[19]=e[n],r[21]=n,r}function Et(t){for(var e,n,r,i,o,s,l,u=[],c=new Map,h=[],d=new Map,f=[],p=new Map,g=t[7],v=function(t){return t[19]},m=0;m<g.length;m+=1){var y=Mt(t,g,m),b=v(y);c.set(b,u[m]=At(b,y))}for(var _=t[11]<t[7].length&&It(t),x=t[9],w=function(t){return t[19]},S=0;S<x.length;S+=1){var C=Ot(t,x,S),k=w(C);d.set(k,h[S]=Dt(k,C))}for(var O=t[8],M=function(t){return t[19]},E=0;E<O.length;E+=1){var T=kt(t,O,E),A=M(T);p.set(A,f[E]=Lt(A,T))}var I=t[12]<t[8].length&&jt(t),D=t[10]&&Nt(t);return{c:function(){e=(0,a.bGB)("div");for(var t=0;t<u.length;t+=1)u[t].c();n=(0,a.DhX)(),_&&_.c(),r=(0,a.DhX)();for(var l=0;l<h.length;l+=1)h[l].c();i=(0,a.DhX)();for(var c=0;c<f.length;c+=1)f[c].c();o=(0,a.DhX)(),I&&I.c(),s=(0,a.DhX)(),D&&D.c(),(0,a.Ljt)(e,"class","vc-log-tree-child")},m:function(t,c){(0,a.$Tr)(t,e,c);for(var d=0;d<u.length;d+=1)u[d].m(e,null);(0,a.R3I)(e,n),_&&_.m(e,null),(0,a.R3I)(e,r);for(var p=0;p<h.length;p+=1)h[p].m(e,null);(0,a.R3I)(e,i);for(var g=0;g<f.length;g+=1)f[g].m(e,null);(0,a.R3I)(e,o),I&&I.m(e,null),(0,a.R3I)(e,s),D&&D.m(e,null),l=!0},p:function(t,l){67721&l&&(g=t[7],(0,a.dvw)(),u=(0,a.GQg)(u,l,v,1,t,g,c,e,a.cly,At,n,Mt),(0,a.gbL)()),t[11]<t[7].length?_?_.p(t,l):((_=It(t)).c(),_.m(e,r)):_&&(_.d(1),_=null),66057&l&&(x=t[9],(0,a.dvw)(),h=(0,a.GQg)(h,l,w,1,t,x,d,e,a.cly,Dt,i,Ot),(0,a.gbL)()),69897&l&&(O=t[8],(0,a.dvw)(),f=(0,a.GQg)(f,l,M,1,t,O,p,e,a.cly,Lt,o,kt),(0,a.gbL)()),t[12]<t[8].length?I?I.p(t,l):((I=jt(t)).c(),I.m(e,s)):I&&(I.d(1),I=null),t[10]?D?(D.p(t,l),1024&l&&(0,a.Ui)(D,1)):((D=Nt(t)).c(),(0,a.Ui)(D,1),D.m(e,null)):D&&((0,a.dvw)(),(0,a.etI)(D,1,1,function(){D=null}),(0,a.gbL)())},i:function(t){if(!l){for(var e=0;e<g.length;e+=1)(0,a.Ui)(u[e]);for(var n=0;n<x.length;n+=1)(0,a.Ui)(h[n]);for(var r=0;r<O.length;r+=1)(0,a.Ui)(f[r]);(0,a.Ui)(D),l=!0}},o:function(t){for(var e=0;e<u.length;e+=1)(0,a.etI)(u[e]);for(var n=0;n<h.length;n+=1)(0,a.etI)(h[n]);for(var r=0;r<f.length;r+=1)(0,a.etI)(f[r]);(0,a.etI)(D),l=!1},d:function(t){t&&(0,a.ogt)(e);for(var n=0;n<u.length;n+=1)u[n].d();_&&_.d();for(var r=0;r<h.length;r+=1)h[r].d();for(var i=0;i<f.length;i+=1)f[i].d();I&&I.d(),D&&D.d()}}}function Tt(t){var e,n;return e=new Ft({props:{origData:t[16](t[19]),dataKey:t[19],keyPath:t[3]+"."+t[19],toggle:t[0]}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:function(t,n){var r={};128&n&&(r.origData=t[16](t[19])),128&n&&(r.dataKey=t[19]),136&n&&(r.keyPath=t[3]+"."+t[19]),1&n&&(r.toggle=t[0]),e.$set(r)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function At(t,e){var n,r,i,o=e[21]<e[11]&&Tt(e);return{key:t,first:null,c:function(){n=(0,a.cSb)(),o&&o.c(),r=(0,a.cSb)(),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),o&&o.m(t,e),(0,a.$Tr)(t,r,e),i=!0},p:function(t,n){(e=t)[21]<e[11]?o?(o.p(e,n),2176&n&&(0,a.Ui)(o,1)):((o=Tt(e)).c(),(0,a.Ui)(o,1),o.m(r.parentNode,r)):o&&((0,a.dvw)(),(0,a.etI)(o,1,1,function(){o=null}),(0,a.gbL)())},i:function(t){i||((0,a.Ui)(o),i=!0)},o:function(t){(0,a.etI)(o),i=!1},d:function(t){t&&(0,a.ogt)(n),o&&o.d(t),t&&(0,a.ogt)(r)}}}function It(t){var e,n,r,i,o=t[14](t[7].length-t[11])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(o),(0,a.Ljt)(e,"class","vc-log-tree-loadmore")},m:function(o,s){(0,a.$Tr)(o,e,s),(0,a.R3I)(e,n),r||(i=(0,a.oLt)(e,"click",t[17]),r=!0)},p:function(t,e){2176&e&&o!==(o=t[14](t[7].length-t[11])+"")&&(0,a.rTO)(n,o)},d:function(t){t&&(0,a.ogt)(e),r=!1,i()}}}function Dt(t,e){var n,r,i;return r=new Ft({props:{origData:e[16](e[19]),dataKey:String(e[19]),keyType:"symbol",keyPath:e[3]+"["+String(e[19])+"]",toggle:e[0]}}),{key:t,first:null,c:function(){n=(0,a.cSb)(),(0,a.YCL)(r.$$.fragment),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),(0,a.yef)(r,t,e),i=!0},p:function(t,n){e=t;var i={};512&n&&(i.origData=e[16](e[19])),512&n&&(i.dataKey=String(e[19])),520&n&&(i.keyPath=e[3]+"["+String(e[19])+"]"),1&n&&(i.toggle=e[0]),r.$set(i)},i:function(t){i||((0,a.Ui)(r.$$.fragment,t),i=!0)},o:function(t){(0,a.etI)(r.$$.fragment,t),i=!1},d:function(t){t&&(0,a.ogt)(n),(0,a.vpE)(r,t)}}}function Pt(t){var e,n;return e=new Ft({props:{origData:t[16](t[19]),dataKey:t[19],keyType:"private",keyPath:t[3]+"."+t[19],toggle:t[0]}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:function(t,n){var r={};256&n&&(r.origData=t[16](t[19])),256&n&&(r.dataKey=t[19]),264&n&&(r.keyPath=t[3]+"."+t[19]),1&n&&(r.toggle=t[0]),e.$set(r)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function Lt(t,e){var n,r,i,o=e[21]<e[12]&&Pt(e);return{key:t,first:null,c:function(){n=(0,a.cSb)(),o&&o.c(),r=(0,a.cSb)(),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),o&&o.m(t,e),(0,a.$Tr)(t,r,e),i=!0},p:function(t,n){(e=t)[21]<e[12]?o?(o.p(e,n),4352&n&&(0,a.Ui)(o,1)):((o=Pt(e)).c(),(0,a.Ui)(o,1),o.m(r.parentNode,r)):o&&((0,a.dvw)(),(0,a.etI)(o,1,1,function(){o=null}),(0,a.gbL)())},i:function(t){i||((0,a.Ui)(o),i=!0)},o:function(t){(0,a.etI)(o),i=!1},d:function(t){t&&(0,a.ogt)(n),o&&o.d(t),t&&(0,a.ogt)(r)}}}function jt(t){var e,n,r,i,o=t[14](t[8].length-t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(o),(0,a.Ljt)(e,"class","vc-log-tree-loadmore")},m:function(o,s){(0,a.$Tr)(o,e,s),(0,a.R3I)(e,n),r||(i=(0,a.oLt)(e,"click",t[18]),r=!0)},p:function(t,e){4352&e&&o!==(o=t[14](t[8].length-t[12])+"")&&(0,a.rTO)(n,o)},d:function(t){t&&(0,a.ogt)(e),r=!1,i()}}}function Nt(t){var e,n;return e=new Ft({props:{origData:t[16]("__proto__"),dataKey:"__proto__",keyType:"private",keyPath:t[3]+".__proto__",toggle:t[0]}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:function(t,n){var r={};8&n&&(r.keyPath=t[3]+".__proto__"),1&n&&(r.toggle=t[0]),e.$set(r)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function Rt(t){var e,n,r,i,o,s,l;r=new yt({props:{origData:t[1],dataKey:t[2],keyType:t[4]}});var u=t[6]&&t[5]&&Et(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),(0,a.YCL)(r.$$.fragment),i=(0,a.DhX)(),u&&u.c(),(0,a.Ljt)(n,"class","vc-log-tree-node"),(0,a.Ljt)(e,"class","vc-log-tree"),(0,a.Ljt)(e,"data-keypath",t[3]),(0,a.VHj)(e,"vc-toggle",t[5]),(0,a.VHj)(e,"vc-is-tree",t[6])},m:function(c,h){(0,a.$Tr)(c,e,h),(0,a.R3I)(e,n),(0,a.yef)(r,n,null),(0,a.R3I)(e,i),u&&u.m(e,null),o=!0,s||(l=(0,a.oLt)(n,"click",(0,a.XET)(t[15])),s=!0)},p:function(t,n){var i=n[0],s={};2&i&&(s.origData=t[1]),4&i&&(s.dataKey=t[2]),16&i&&(s.keyType=t[4]),r.$set(s),t[6]&&t[5]?u?(u.p(t,i),96&i&&(0,a.Ui)(u,1)):((u=Et(t)).c(),(0,a.Ui)(u,1),u.m(e,null)):u&&((0,a.dvw)(),(0,a.etI)(u,1,1,function(){u=null}),(0,a.gbL)()),(!o||8&i)&&(0,a.Ljt)(e,"data-keypath",t[3]),32&i&&(0,a.VHj)(e,"vc-toggle",t[5]),64&i&&(0,a.VHj)(e,"vc-is-tree",t[6])},i:function(t){o||((0,a.Ui)(r.$$.fragment,t),(0,a.Ui)(u),o=!0)},o:function(t){(0,a.etI)(r.$$.fragment,t),(0,a.etI)(u),o=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(r),u&&u.d(),s=!1,l()}}}function Bt(t,n,r){var i,o,a,l=n.origData,u=n.dataKey,c=void 0===u?void 0:u,h=n.keyPath,d=void 0===h?"":h,f=n.keyType,p=void 0===f?"":f,g=n.toggle,v=void 0===g?{}:g,m=!1,y=!1,b=!1,_=50,x=50;(0,s.H3)(function(){Ct.use()}),(0,s.ev)(function(){Ct.unuse()});var w=function(t){"enum"===t?r(11,_+=50):"nonEnum"===t&&r(12,x+=50)};return t.$$set=function(t){"origData"in t&&r(1,l=t.origData),"dataKey"in t&&r(2,c=t.dataKey),"keyPath"in t&&r(3,d=t.keyPath),"keyType"in t&&r(4,p=t.keyType),"toggle"in t&&r(0,v=t.toggle)},t.$$.update=function(){1003&t.$$.dirty&&(r(5,m=v[d]||!1),r(6,y=!(l instanceof rt.Tg)&&(e.kJ(l)||e.Kn(l))),y&&m&&(r(7,i=i||e.qr(e.MH(l))),r(8,o=o||e.qr(e.QK(l))),r(9,a=a||e._D(l)),r(10,b=e.Kn(l)&&-1===o.indexOf("__proto__"))))},[v,l,c,d,p,m,y,i,o,a,b,_,x,w,function(t){return"(..."+t+" Key"+(t>1?"s":"")+" Left)"},function(){r(5,m=!m),r(0,v[d]=m,v)},function(t){try{return l[t]}catch(t){return new rt.Tg}},function(){return w("enum")},function(){return w("nonEnum")}]}var Ft=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,Bt,Rt,a.AqN,{origData:1,dataKey:2,keyPath:3,keyType:4,toggle:0}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"origData",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({origData:t}),(0,a.yl1)()}},{key:"dataKey",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({dataKey:t}),(0,a.yl1)()}},{key:"keyPath",get:function(){return this.$$.ctx[3]},set:function(t){this.$$set({keyPath:t}),(0,a.yl1)()}},{key:"keyType",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({keyType:t}),(0,a.yl1)()}},{key:"toggle",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({toggle:t}),(0,a.yl1)()}}]),n}(a.f_C),zt=Ft,Vt=__webpack_require__(7147),$t={};Vt.Z&&Vt.Z.locals&&($t.locals=Vt.Z.locals);var Gt,Ht=0,Wt={};Wt.styleTagTransform=b(),Wt.setAttributes=g(),Wt.insert=f().bind(null,"head"),Wt.domAPI=h(),Wt.insertStyleElement=m(),$t.use=function(t){return Wt.options=t||{},Ht++||(Gt=u()(Vt.Z,Wt)),$t},$t.unuse=function(){Ht>0&&!--Ht&&(Gt(),Gt=null)};var Ut=$t;function Yt(t,e,n){var r=t.slice();return r[9]=e[n],r[11]=n,r}function Xt(t,e,n){var r=t.slice();return r[12]=e[n],r}function qt(t){for(var e,n,r,i,o,s,l,u,c,h,d,f,p,g=[],v=new Map,m=t[0].groupLevel&&Zt(t),y=t[2]>0&&Jt(t),b=t[1]&&Qt(t),_=t[0].repeated&&te(t),x=t[0].data,w=function(t){return t[11]},S=0;S<x.length;S+=1){var C=Yt(t,x,S),k=w(C);v.set(k,g[S]=re(k,C))}return c=new lt({props:{handler:t[6]}}),{c:function(){e=(0,a.bGB)("div"),m&&m.c(),n=(0,a.DhX)(),y&&y.c(),r=(0,a.DhX)(),b&&b.c(),i=(0,a.DhX)(),_&&_.c(),o=(0,a.DhX)(),s=(0,a.bGB)("div");for(var d=0;d<g.length;d+=1)g[d].c();l=(0,a.DhX)(),u=(0,a.bGB)("div"),(0,a.YCL)(c.$$.fragment),(0,a.Ljt)(s,"class","vc-log-content"),(0,a.Ljt)(u,"class","vc-logrow-icon"),(0,a.Ljt)(e,"class",h="vc-log-row vc-log-"+t[0].type),(0,a.VHj)(e,"vc-log-input","input"===t[0].cmdType),(0,a.VHj)(e,"vc-log-output","output"===t[0].cmdType),(0,a.VHj)(e,"vc-log-group",t[2]>0),(0,a.VHj)(e,"vc-toggle",1===t[2])},m:function(h,v){(0,a.$Tr)(h,e,v),m&&m.m(e,null),(0,a.R3I)(e,n),y&&y.m(e,null),(0,a.R3I)(e,r),b&&b.m(e,null),(0,a.R3I)(e,i),_&&_.m(e,null),(0,a.R3I)(e,o),(0,a.R3I)(e,s);for(var x=0;x<g.length;x+=1)g[x].m(s,null);(0,a.R3I)(e,l),(0,a.R3I)(e,u),(0,a.yef)(c,u,null),d=!0,f||(p=(0,a.oLt)(e,"click",t[5]),f=!0)},p:function(t,l){t[0].groupLevel?m?m.p(t,l):((m=Zt(t)).c(),m.m(e,n)):m&&(m.d(1),m=null),t[2]>0?y||((y=Jt(t)).c(),y.m(e,r)):y&&(y.d(1),y=null),t[1]?b?b.p(t,l):((b=Qt(t)).c(),b.m(e,i)):b&&(b.d(1),b=null),t[0].repeated?_?_.p(t,l):((_=te(t)).c(),_.m(e,o)):_&&(_.d(1),_=null),17&l&&(x=t[0].data,(0,a.dvw)(),g=(0,a.GQg)(g,l,w,1,t,x,v,s,a.cly,re,null,Yt),(0,a.gbL)()),(!d||1&l&&h!==(h="vc-log-row vc-log-"+t[0].type))&&(0,a.Ljt)(e,"class",h),1&l&&(0,a.VHj)(e,"vc-log-input","input"===t[0].cmdType),1&l&&(0,a.VHj)(e,"vc-log-output","output"===t[0].cmdType),5&l&&(0,a.VHj)(e,"vc-log-group",t[2]>0),5&l&&(0,a.VHj)(e,"vc-toggle",1===t[2])},i:function(t){if(!d){for(var e=0;e<x.length;e+=1)(0,a.Ui)(g[e]);(0,a.Ui)(c.$$.fragment,t),d=!0}},o:function(t){for(var e=0;e<g.length;e+=1)(0,a.etI)(g[e]);(0,a.etI)(c.$$.fragment,t),d=!1},d:function(t){t&&(0,a.ogt)(e),m&&m.d(),y&&y.d(),b&&b.d(),_&&_.d();for(var n=0;n<g.length;n+=1)g[n].d();(0,a.vpE)(c),f=!1,p()}}}function Zt(t){for(var e,n=new Array(t[0].groupLevel),r=[],i=0;i<n.length;i+=1)r[i]=Kt(Xt(t,n,i));return{c:function(){for(var t=0;t<r.length;t+=1)r[t].c();e=(0,a.cSb)()},m:function(t,n){for(var i=0;i<r.length;i+=1)r[i].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,i){if(1&i){var o;for(n=new Array(t[0].groupLevel),o=0;o<n.length;o+=1){var a=Xt(t,n,o);r[o]?r[o].p(a,i):(r[o]=Kt(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d:function(t){(0,a.RMB)(r,t),t&&(0,a.ogt)(e)}}}function Kt(t){var e;return{c:function(){e=(0,a.bGB)("i"),(0,a.Ljt)(e,"class","vc-log-padding")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function Jt(t){var e;return{c:function(){e=(0,a.bGB)("div"),(0,a.Ljt)(e,"class","vc-log-group-toggle")},m:function(t,n){(0,a.$Tr)(t,e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function Qt(t){var e,n;return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(t[3]),(0,a.Ljt)(e,"class","vc-log-time")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},p:function(t,e){8&e&&(0,a.rTO)(n,t[3])},d:function(t){t&&(0,a.ogt)(e)}}}function te(t){var e,n,r,i=t[0].repeated+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("i"),r=(0,a.fLW)(i),(0,a.Ljt)(e,"class","vc-log-repeat")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n),(0,a.R3I)(n,r)},p:function(t,e){1&e&&i!==(i=t[0].repeated+"")&&(0,a.rTO)(r,i)},d:function(t){t&&(0,a.ogt)(e)}}}function ee(t){var e,n;return e=new yt({props:{origData:t[9].origData,style:t[9].style}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.origData=t[9].origData),1&n&&(r.style=t[9].style),e.$set(r)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function ne(t){var e,n;return e=new zt({props:{origData:t[9].origData,keyPath:String(t[11]),toggle:t[0].toggle}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.origData=t[9].origData),1&n&&(r.keyPath=String(t[11])),1&n&&(r.toggle=t[0].toggle),e.$set(r)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function re(t,e){var n,r,i,o,s,l,u=[ne,ee],c=[];function h(t,e){return 1&e&&(r=null),null==r&&(r=!!t[4](t[9].origData)),r?0:1}return i=h(e,-1),o=c[i]=u[i](e),{key:t,first:null,c:function(){n=(0,a.cSb)(),o.c(),s=(0,a.cSb)(),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),c[i].m(t,e),(0,a.$Tr)(t,s,e),l=!0},p:function(t,n){var r=i;(i=h(e=t,n))===r?c[i].p(e,n):((0,a.dvw)(),(0,a.etI)(c[r],1,1,function(){c[r]=null}),(0,a.gbL)(),(o=c[i])?o.p(e,n):(o=c[i]=u[i](e)).c(),(0,a.Ui)(o,1),o.m(s.parentNode,s))},i:function(t){l||((0,a.Ui)(o),l=!0)},o:function(t){(0,a.etI)(o),l=!1},d:function(t){t&&(0,a.ogt)(n),c[i].d(t),t&&(0,a.ogt)(s)}}}function ie(t){var e,n,r=t[0]&&qt(t);return{c:function(){r&&r.c(),e=(0,a.cSb)()},m:function(t,i){r&&r.m(t,i),(0,a.$Tr)(t,e,i),n=!0},p:function(t,n){var i=n[0];t[0]?r?(r.p(t,i),1&i&&(0,a.Ui)(r,1)):((r=qt(t)).c(),(0,a.Ui)(r,1),r.m(e.parentNode,e)):r&&((0,a.dvw)(),(0,a.etI)(r,1,1,function(){r=null}),(0,a.gbL)())},i:function(t){n||((0,a.Ui)(r),n=!0)},o:function(t){(0,a.etI)(r),n=!1},d:function(t){r&&r.d(t),t&&(0,a.ogt)(e)}}}function oe(t,n,r){var i=n.log,o=n.showTimestamps,a=void 0!==o&&o,l=n.groupHeader,u=void 0===l?0:l,c=(0,s.x)(),h="",d=function(t,e){var n="000"+t;return n.substring(n.length-e)};return(0,s.H3)(function(){Ut.use()}),(0,s.ev)(function(){Ut.unuse()}),t.$$set=function(t){"log"in t&&r(0,i=t.log),"showTimestamps"in t&&r(1,a=t.showTimestamps),"groupHeader"in t&&r(2,u=t.groupHeader)},t.$$.update=function(){if(3&t.$$.dirty&&a){var e=new Date(i.date);r(3,h=d(e.getHours(),2)+":"+d(e.getMinutes(),2)+":"+d(e.getSeconds(),2)+":"+d(e.getMilliseconds(),3))}},[i,a,u,h,function(t){return!(t instanceof rt.Tg)&&(e.kJ(t)||e.Kn(t))},function(){u>0&&c("groupCollapsed",{groupLabel:i.groupLabel,groupHeader:1===u?2:1,isGroupCollapsed:1===u})},function(){var t=[];try{for(var n=0;n<i.data.length;n++)e.HD(i.data[n].origData)||e.hj(i.data[n].origData)?t.push(i.data[n].origData):t.push(e.hZ(i.data[n].origData,{maxDepth:10,keyMaxLen:1e4,pretty:!1,standardJSON:!0}))}catch(t){}return t.join(" ")}]}var ae=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,oe,ie,a.AqN,{log:0,showTimestamps:1,groupHeader:2}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"log",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({log:t}),(0,a.yl1)()}},{key:"showTimestamps",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({showTimestamps:t}),(0,a.yl1)()}},{key:"groupHeader",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({groupHeader:t}),(0,a.yl1)()}}]),n}(a.f_C),se=__webpack_require__(3903),le=__webpack_require__(3327),ue={};le.Z&&le.Z.locals&&(ue.locals=le.Z.locals);var ce,he=0,de={};de.styleTagTransform=b(),de.setAttributes=g(),de.insert=f().bind(null,"head"),de.domAPI=h(),de.insertStyleElement=m(),ue.use=function(t){return de.options=t||{},he++||(ce=u()(le.Z,de)),ue},ue.unuse=function(){he>0&&!--he&&(ce(),ce=null)};var fe=ue,pe=__webpack_require__(4264),ge=__webpack_require__.n(pe),ve=function(){function t(t){console.debug("[vConsole] `ResizeObserver` is not supported in the browser, vConsole cannot render correctly."),t([{contentRect:{height:30}}],this)}var e=t.prototype;return e.disconnect=function(){},e.observe=function(t,e){},e.unobserve=function(t){},t}(),me=function(){return"function"==typeof window.ResizeObserver},ye=function(){return window.ResizeObserver||ve};function be(t){var e,n,r=t[6].default,i=(0,a.nuO)(r,t,t[5],null);return{c:function(){e=(0,a.bGB)("div"),i&&i.c(),(0,a.Ljt)(e,"class","vc-scroller-item"),(0,a.czc)(e,"display",t[0]?"block":"none",!1),(0,a.czc)(e,"top",t[3]?t[1]+"px":"auto",!1)},m:function(r,o){(0,a.$Tr)(r,e,o),i&&i.m(e,null),t[7](e),n=!0},p:function(t,o){var s=o[0];i&&i.p&&(!n||32&s)&&(0,a.kmG)(i,r,t,t[5],n?(0,a.u2N)(r,t[5],s,null):(0,a.VOJ)(t[5]),null),1&s&&(0,a.czc)(e,"display",t[0]?"block":"none",!1),2&s&&(0,a.czc)(e,"top",t[3]?t[1]+"px":"auto",!1)},i:function(t){n||((0,a.Ui)(i,t),n=!0)},o:function(t){(0,a.etI)(i,t),n=!1},d:function(n){n&&(0,a.ogt)(e),i&&i.d(n),t[7](null)}}}function _e(t,e,n){var r,i=e.$$slots,o=void 0===i?{}:i,l=e.$$scope,u=e.show,c=void 0===u?!me():u,h=e.top,d=e.onResize,f=void 0===d?function(){}:d,p=null,g=me();return(0,s.H3)(function(){if(c&&f(r.getBoundingClientRect().height),g){var t=ye();(p=new t(function(t){var e=t[0];c&&f(e.contentRect.height)})).observe(r)}}),(0,s.ev)(function(){g&&p.disconnect()}),t.$$set=function(t){"show"in t&&n(0,c=t.show),"top"in t&&n(1,h=t.top),"onResize"in t&&n(4,f=t.onResize),"$$scope"in t&&n(5,l=t.$$scope)},[c,h,r,g,f,l,o,function(t){a.VnY[t?"unshift":"push"](function(){n(2,r=t)})}]}var xe=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,_e,be,a.N8,{show:0,top:1,onResize:4}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"show",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({show:t}),(0,a.yl1)()}},{key:"top",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({top:t}),(0,a.yl1)()}},{key:"onResize",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({onResize:t}),(0,a.yl1)()}}]),n}(a.f_C),we=function(){function t(){this._x=0,this._endX=0,this._v=0,this._startTime=0,this._endTime=0}var e=t.prototype;return e.set=function(t,e,n,r){this._x=t,this._endX=e,this._v=(e-t)/n,this._startTime=r||Date.now(),this._endTime=this._startTime+n},e.x=function(t){if(this.done(t))return this._endX;var e=t-this._startTime;return this._x+this._v*e},e.dx=function(t){return this.done(t)?0:this._v},e.done=function(t){return t>=this._endTime},t}(),Se=function(){function t(t){this._drag=void 0,this._dragLog=void 0,this._x=0,this._v=0,this._startTime=0,this._drag=t,this._dragLog=Math.log(t)}var e=t.prototype;return e.set=function(t,e,n){this._x=t,this._v=e,this._startTime=n||Date.now()},e.x=function(t){var e=(t-this._startTime)/1e3;return this._x+this._v*Math.pow(this._drag,e)/this._dragLog-this._v/this._dragLog},e.dx=function(t){var e=(t-this._startTime)/1e3;return this._v*Math.pow(this._drag,e)},e.done=function(t){return Math.abs(this.dx(t))<3},t}(),Ce=function(t,e){return t>e-.1&&t<e+.1},ke=function(t){return Ce(t,0)},Oe=function(){function t(t,e,n){this._solver=void 0,this._solution=void 0,this._endPosition=void 0,this._startTime=void 0,this._solver=function(t,e,n){var r=n,i=t,o=e,a=r*r-4*i*o;if(0==a){var s=-r/(2*i);return function(t,e){var n=t,r=e/(s*t);return{x:function(t){return(n+r*t)*Math.pow(Math.E,s*t)},dx:function(t){return(s*(n+r*t)+r)*Math.pow(Math.E,s*t)}}}}if(a>0){var l=(-r-Math.sqrt(a))/(2*i),u=(-r+Math.sqrt(a))/(2*i);return function(t,e){var n=(e-l*t)/(u-l),r=t-n;return{x:function(t){return r*Math.pow(Math.E,l*t)+n*Math.pow(Math.E,u*t)},dx:function(t){return r*l*Math.pow(Math.E,l*t)+n*u*Math.pow(Math.E,u*t)}}}}var c=Math.sqrt(4*i*o-r*r)/(2*i),h=-r/2*i;return function(t,e){var n=t,r=(e-h*t)/c;return{x:function(t){return Math.pow(Math.E,h*t)*(n*Math.cos(c*t)+r*Math.sin(c*t))},dx:function(t){var e=Math.pow(Math.E,h*t),i=Math.cos(c*t),o=Math.sin(c*t);return e*(r*c*i-n*c*o)+h*e*(r*o+n*i)}}}}(t,e,n),this._solution=null,this._endPosition=0,this._startTime=0}var e=t.prototype;return e.x=function(t){if(!this._solution)return 0;var e=(t-this._startTime)/1e3;return this._endPosition+this._solution.x(e)},e.dx=function(t){if(!this._solution)return 0;var e=(t-this._startTime)/1e3;return this._solution.dx(e)},e.set=function(t,e,n,r){r||(r=Date.now()),this._endPosition=t,e==t&&ke(n)||(this._solution=this._solver(e-t,n),this._startTime=r)},e.done=function(t){return t||(t=Date.now()),Ce(this.x(t),this._endPosition)&&ke(this.dx(t))},t}(),Me=function(){function t(t,e){this._enableSpring=e,this._getExtend=void 0,this._friction=new Se(.05),this._spring=new Oe(1,90,20),this._toEdge=!1,this._getExtend=t}var e=t.prototype;return e.set=function(t,e,n){if(void 0===n&&(n=Date.now()),this._friction.set(t,e,n),t>0&&e>=0)this._toEdge=!0,this._enableSpring&&this._spring.set(0,t,e,n);else{var r=this._getExtend();t<-r&&e<=0?(this._toEdge=!0,this._enableSpring&&this._spring.set(-r,t,e,n)):this._toEdge=!1}},e.x=function(t){if(this._enableSpring&&this._toEdge)return this._spring.x(t);var e=this._friction.x(t),n=this._friction.dx(t);if(e>0&&n>=0){if(this._toEdge=!0,!this._enableSpring)return 0;this._spring.set(0,e,n,t)}else{var r=this._getExtend();if(e<-r&&n<=0){if(this._toEdge=!0,!this._enableSpring)return-r;this._spring.set(-r,e,n,t)}}return e},e.dx=function(t){return this._toEdge?this._enableSpring?this._spring.dx(t):0:this._friction.dx(t)},e.done=function(t){return this._toEdge?!this._enableSpring||this._spring.done(t):this._friction.done(t)},t}();function Ee(t,e){var n,r;return function i(){if(!r){var o=Date.now();e(o),t.done(o)||(n=requestAnimationFrame(i))}}(),{cancel:function(){cancelAnimationFrame(n),r=!0}}}var Te=function(){function t(t,e){this._updatePosition=e,this._scrollModel=void 0,this._linearModel=void 0,this._startPosition=0,this._position=0,this._animate=null,this._getExtent=void 0,this._getExtent=t,this._scrollModel=new Me(t,!1),this._linearModel=new we}var e=t.prototype;return e.onTouchStart=function(){var t=this._position;if(t>0)t*=0;else{var e=this._getExtent();t<-e&&(t=0*(t+e)-e)}this._startPosition=this._position=t,this._animate&&(this._animate.cancel(),this._animate=null),this._updatePosition(-t)},e.onTouchMove=function(t,e){var n=e+this._startPosition;if(n>0)n*=0;else{var r=this._getExtent();n<-r&&(n=0*(n+r)-r)}this._position=n,this._updatePosition(-n)},e.onTouchEnd=function(t,e,n,r){var i=this,o=e+this._startPosition;if(o>0)o*=0;else{var a=this._getExtent();o<-a&&(o=0*(o+a)-a)}if(this._position=o,this._updatePosition(-o),!(Math.abs(e)<=.1&&Math.abs(r)<=.1)){var s=this._scrollModel;s.set(o,r),this._animate=Ee(s,function(t){var e=i._position=s.x(t);i._updatePosition(-e)})}},e.onTouchCancel=function(){var t=this,e=this._position;if(e>0)e*=0;else{var n=this._getExtent();e<-n&&(e=0*(e+n)-n)}this._position=e;var r=this._scrollModel;r.set(e,0),this._animate=Ee(r,function(e){var n=t._position=r.x(e);t._updatePosition(-n)})},e.onWheel=function(t,e){var n=this._position-e;if(this._animate&&(this._animate.cancel(),this._animate=null),n>0)n=0;else{var r=this._getExtent();n<-r&&(n=-r)}this._position=n,this._updatePosition(-n)},e.getPosition=function(){return-this._position},e.updatePosition=function(t){var e=-t-this._position;this._startPosition+=e,this._position+=e;var n=this._position;this._updatePosition(-n);var r=this._scrollModel,i=Date.now();if(!r.done(i)){var o=r.dx(i);r.set(n,o,i)}},e.scrollTo=function(t,e){var n=this;if(this._animate&&(this._animate.cancel(),this._animate=null),e>0){var r=this._linearModel;r.set(this._position,-t,e),this._animate=Ee(this._linearModel,function(t){var e=n._position=r.x(t);n._updatePosition(-e)})}else this._updatePosition(t)},t}();function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ie=function(t){var e=null,n=!1;return{trigger:function(){null===e?function r(){n=!1,t(),e=requestAnimationFrame(function(){e=null,n&&r()})}():n=!0},cancel:function(){e&&(cancelAnimationFrame(e),n=!1,e=null)}}},De=function(){function t(t){var e=this;this._handler=t,this._touchId=null,this._startX=0,this._startY=0,this._historyX=[],this._historyY=[],this._historyTime=[],this._wheelDeltaX=0,this._wheelDeltaY=0,this._onTouchMove=function(){var t=e._historyX[e._historyX.length-1],n=e._historyY[e._historyY.length-1];e._handler.onTouchMove(t,n)},this._onWheel=Ie(function(){var t=e._wheelDeltaX,n=e._wheelDeltaY;e._wheelDeltaX=0,e._wheelDeltaY=0,e._handler.onWheel(t,n)}),this.handleTouchStart=function(t){var n;if("1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)){t.preventDefault();var r=t.touches[0];e._touchId=r.identifier,e._startX=r.pageX,e._startY=r.pageY,e._historyX=[0],e._historyY=[0],e._historyTime=[Date.now()],e._handler.onTouchStart()}},this.handleTouchMove=function(t){var n;if("1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)){t.preventDefault();var r=e._getTouchDelta(t);null!==r&&(e._historyX.push(r.x),e._historyY.push(r.y),e._historyTime.push(Date.now()),e._onTouchMove())}},this.handleTouchEnd=function(t){var n;if("1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)){t.preventDefault();var r=e._getTouchDelta(t);if(null!==r){for(var i=0,o=0,a=Date.now(),s=r.y,l=r.x,u=e._historyTime,c=u.length-1;c>0;c-=1){var h=a-u[c];if(h>30){i=1e3*(l-e._historyX[c])/h,o=1e3*(s-e._historyY[c])/h;break}}e._touchId=null,e._handler.onTouchEnd(r.x,r.y,i,o)}}},this.handleTouchCancel=function(t){var n;"1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)&&(t.preventDefault(),null!==e._getTouchDelta(t)&&(e._touchId=null,e._handler.onTouchCancel()))},this.handleWheel=function(t){var n;"1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)&&(t.preventDefault(),e._wheelDeltaX+=t.deltaX,e._wheelDeltaY+=t.deltaY,e._onWheel.trigger())}}return t.prototype._getTouchDelta=function(t){if(null===this._touchId)return null;for(var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.changedTouches);!(e=n()).done;){var r=e.value;if(r.identifier===this._touchId)return{x:r.pageX-this._startX,y:r.pageY-this._startY}}return null},t}(),Pe=__webpack_require__(1142),Le={};Pe.Z&&Pe.Z.locals&&(Le.locals=Pe.Z.locals);var je,Ne=0,Re={};Re.styleTagTransform=b(),Re.setAttributes=g(),Re.insert=f().bind(null,"head"),Re.domAPI=h(),Re.insertStyleElement=m(),Le.use=function(t){return Re.options=t||{},Ne++||(je=u()(Pe.Z,Re)),Le},Le.unuse=function(){Ne>0&&!--Ne&&(je(),je=null)};var Be=Le,Fe=function(){var t=[],e=[],n=0,r=0,i=0,o=0,a=0;return function(s,l,u){if(i===s&&o===l&&a===u)return t;var c=e.length,h=l<=r?Math.max(0,Math.min(l,Math.max(n,Math.min(r-1,u-c)))):l,d=n<=u?Math.max(u,Math.min(s,Math.max(n+1,Math.min(r,h+c)))):u;if(0===c||d-h<c){for(var f=t.length=e.length=u-l,p=0;p<f;p+=1)e[p]=p,t[p]={key:p,index:p+l,show:!0};return n=l,r=u,i=s,o=l,a=u,t}var g=0,v=0,m=0,y=0;r<h||d<n?(m=h,y=h+c):n<h?(v=h-n,m=h,y=h+c):d<r?(v=c-(r-d),m=d-c,y=d):h<=n&&r<=d&&(m=n,y=r);for(var b=h;b<l;b+=1,g+=1){var _=e[(v+g)%c],x=t[b-h];x.key=_,x.index=b,x.show=!1}for(var w=l,S=0;w<u;w+=1){var C=void 0;m<=w&&w<y?(C=e[(v+g)%c],g+=1):(C=c+S,S+=1);var k=w-h;if(k<t.length){var O=t[k];O.key=C,O.index=w,O.show=!0}else t.push({key:C,index:w,show:!0})}for(var M=u;M<d;M+=1,g+=1){var E=e[(v+g)%c],T=t[M-h];T.key=E,T.index=M,T.show=!1}for(var A=0;A<t.length;A+=1)e[A]=t[A].key;return t.sort(function(t,e){return t.key-e.key}),n=h,r=d,i=s,o=l,a=u,t}},ze=a.lig.Map,Ve=function(t){return{}},$e=function(t){return{}},Ge=function(t){return{}},He=function(t){return{}};function We(t,e,n){var r=t.slice();return r[53]=e[n],r[55]=n,r}var Ue=function(t){return{item:1025&t[0]}},Ye=function(t){return{item:t[0][t[53].index]}},Xe=function(t){return{}},qe=function(t){return{}};function Ze(t){var e,n,r=t[24].header,i=(0,a.nuO)(r,t,t[31],qe);return{c:function(){e=(0,a.bGB)("div"),i&&i.c(),(0,a.Ljt)(e,"class","vc-scroller-header")},m:function(r,o){(0,a.$Tr)(r,e,o),i&&i.m(e,null),t[25](e),n=!0},p:function(t,e){i&&i.p&&(!n||1&e[1])&&(0,a.kmG)(i,r,t,t[31],n?(0,a.u2N)(r,t[31],e,Xe):(0,a.VOJ)(t[31]),qe)},i:function(t){n||((0,a.Ui)(i,t),n=!0)},o:function(t){(0,a.etI)(i,t),n=!1},d:function(n){n&&(0,a.ogt)(e),i&&i.d(n),t[25](null)}}}function Ke(t){var e,n=t[24].empty,r=(0,a.nuO)(n,t,t[31],He);return{c:function(){r&&r.c()},m:function(t,n){r&&r.m(t,n),e=!0},p:function(t,i){r&&r.p&&(!e||1&i[1])&&(0,a.kmG)(r,n,t,t[31],e?(0,a.u2N)(n,t[31],i,Ge):(0,a.VOJ)(t[31]),He)},i:function(t){e||((0,a.Ui)(r,t),e=!0)},o:function(t){(0,a.etI)(r,t),e=!1},d:function(t){r&&r.d(t)}}}function Je(t){for(var e,n,r=[],i=new ze,o=t[10],s=function(t){return t[53].key},l=0;l<o.length;l+=1){var u=We(t,o,l),c=s(u);i.set(c,r[l]=tn(c,u))}return{c:function(){for(var t=0;t<r.length;t+=1)r[t].c();e=(0,a.cSb)()},m:function(t,i){for(var o=0;o<r.length;o+=1)r[o].m(t,i);(0,a.$Tr)(t,e,i),n=!0},p:function(t,n){17921&n[0]|1&n[1]&&(o=t[10],(0,a.dvw)(),r=(0,a.GQg)(r,n,s,1,t,o,i,e.parentNode,a.cly,tn,e,We),(0,a.gbL)())},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)(0,a.Ui)(r[e]);n=!0}},o:function(t){for(var e=0;e<r.length;e+=1)(0,a.etI)(r[e]);n=!1},d:function(t){for(var n=0;n<r.length;n+=1)r[n].d(t);t&&(0,a.ogt)(e)}}}function Qe(t){var e,n,r=t[24].item,i=(0,a.nuO)(r,t,t[31],Ye),o=i||function(t){var e;return{c:function(){e=(0,a.fLW)("Missing template")},m:function(t,n){(0,a.$Tr)(t,e,n)},d:function(t){t&&(0,a.ogt)(e)}}}();return{c:function(){o&&o.c(),e=(0,a.DhX)()},m:function(t,r){o&&o.m(t,r),(0,a.$Tr)(t,e,r),n=!0},p:function(t,e){i&&i.p&&(!n||1025&e[0]|1&e[1])&&(0,a.kmG)(i,r,t,t[31],n?(0,a.u2N)(r,t[31],e,Ue):(0,a.VOJ)(t[31]),Ye)},i:function(t){n||((0,a.Ui)(o,t),n=!0)},o:function(t){(0,a.etI)(o,t),n=!1},d:function(t){o&&o.d(t),t&&(0,a.ogt)(e)}}}function tn(t,e){var n,r,i;function o(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e)[26].apply(t,[e[53]].concat(r))}return r=new xe({props:{show:e[53].show,top:e[9][e[53].index],onResize:o,$$slots:{default:[Qe]},$$scope:{ctx:e}}}),{key:t,first:null,c:function(){n=(0,a.cSb)(),(0,a.YCL)(r.$$.fragment),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),(0,a.yef)(r,t,e),i=!0},p:function(t,n){e=t;var i={};1024&n[0]&&(i.show=e[53].show),1536&n[0]&&(i.top=e[9][e[53].index]),1024&n[0]&&(i.onResize=o),1025&n[0]|1&n[1]&&(i.$$scope={dirty:n,ctx:e}),r.$set(i)},i:function(t){i||((0,a.Ui)(r.$$.fragment,t),i=!0)},o:function(t){(0,a.etI)(r.$$.fragment,t),i=!1},d:function(t){t&&(0,a.ogt)(n),(0,a.vpE)(r,t)}}}function en(t){var e,n,r=t[24].footer,i=(0,a.nuO)(r,t,t[31],$e);return{c:function(){e=(0,a.bGB)("div"),i&&i.c(),(0,a.Ljt)(e,"class","vc-scroller-footer")},m:function(r,o){(0,a.$Tr)(r,e,o),i&&i.m(e,null),t[28](e),n=!0},p:function(t,e){i&&i.p&&(!n||1&e[1])&&(0,a.kmG)(i,r,t,t[31],n?(0,a.u2N)(r,t[31],e,Ve):(0,a.VOJ)(t[31]),$e)},i:function(t){n||((0,a.Ui)(i,t),n=!0)},o:function(t){(0,a.etI)(i,t),n=!1},d:function(n){n&&(0,a.ogt)(e),i&&i.d(n),t[28](null)}}}function nn(t){var e,n,r=t[7]+"%",i=t[8]+"%";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),(0,a.Ljt)(n,"class","vc-scroller-scrollbar-thumb"),(0,a.czc)(n,"height",r,!1),(0,a.czc)(n,"top",i,!1),(0,a.Ljt)(e,"class","vc-scroller-scrollbar-track"),(0,a.czc)(e,"display",t[7]<100?"block":"none",!1)},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},p:function(t,o){128&o[0]&&r!==(r=t[7]+"%")&&(0,a.czc)(n,"height",r,!1),256&o[0]&&i!==(i=t[8]+"%")&&(0,a.czc)(n,"top",i,!1),128&o[0]&&(0,a.czc)(e,"display",t[7]<100?"block":"none",!1)},d:function(t){t&&(0,a.ogt)(e)}}}function rn(t){var e,n,r,i,o,s,l,u,c,h,d,f=t[15].header&&Ze(t),p=[Je,Ke],g=[];function v(t,e){return t[0].length?0:1}o=v(t),s=g[o]=p[o](t);var m=t[15].footer&&en(t),y=t[1]&&nn(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),f&&f.c(),r=(0,a.DhX)(),i=(0,a.bGB)("div"),s.c(),l=(0,a.DhX)(),m&&m.c(),u=(0,a.DhX)(),y&&y.c(),(0,a.Ljt)(i,"class","vc-scroller-items"),(0,a.Ljt)(n,"class","vc-scroller-contents"),(0,a.Ljt)(e,"class","vc-scroller-viewport"),(0,a.VHj)(e,"static",!t[13])},m:function(s,p){(0,a.$Tr)(s,e,p),(0,a.R3I)(e,n),f&&f.m(n,null),(0,a.R3I)(n,r),(0,a.R3I)(n,i),g[o].m(i,null),t[27](i),(0,a.R3I)(n,l),m&&m.m(n,null),t[29](n),(0,a.R3I)(e,u),y&&y.m(e,null),t[30](e),c=!0,h||(d=[(0,a.oLt)(e,"touchstart",function(){(0,a.sBU)(t[13]?t[11].handleTouchStart:t[12])&&(t[13]?t[11].handleTouchStart:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"touchmove",function(){(0,a.sBU)(t[13]?t[11].handleTouchMove:t[12])&&(t[13]?t[11].handleTouchMove:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"touchend",function(){(0,a.sBU)(t[13]?t[11].handleTouchEnd:t[12])&&(t[13]?t[11].handleTouchEnd:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"touchcancel",function(){(0,a.sBU)(t[13]?t[11].handleTouchCancel:t[12])&&(t[13]?t[11].handleTouchCancel:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"wheel",function(){(0,a.sBU)(t[13]?t[11].handleWheel:t[12])&&(t[13]?t[11].handleWheel:t[12]).apply(this,arguments)})],h=!0)},p:function(l,u){(t=l)[15].header?f?(f.p(t,u),32768&u[0]&&(0,a.Ui)(f,1)):((f=Ze(t)).c(),(0,a.Ui)(f,1),f.m(n,r)):f&&((0,a.dvw)(),(0,a.etI)(f,1,1,function(){f=null}),(0,a.gbL)());var c=o;(o=v(t))===c?g[o].p(t,u):((0,a.dvw)(),(0,a.etI)(g[c],1,1,function(){g[c]=null}),(0,a.gbL)(),(s=g[o])?s.p(t,u):(s=g[o]=p[o](t)).c(),(0,a.Ui)(s,1),s.m(i,null)),t[15].footer?m?(m.p(t,u),32768&u[0]&&(0,a.Ui)(m,1)):((m=en(t)).c(),(0,a.Ui)(m,1),m.m(n,null)):m&&((0,a.dvw)(),(0,a.etI)(m,1,1,function(){m=null}),(0,a.gbL)()),t[1]?y?y.p(t,u):((y=nn(t)).c(),y.m(e,null)):y&&(y.d(1),y=null)},i:function(t){c||((0,a.Ui)(f),(0,a.Ui)(s),(0,a.Ui)(m),c=!0)},o:function(t){(0,a.etI)(f),(0,a.etI)(s),(0,a.etI)(m),c=!1},d:function(n){n&&(0,a.ogt)(e),f&&f.d(),g[o].d(),t[27](null),m&&m.d(),t[29](null),y&&y.d(),t[30](null),h=!1,(0,a.j7q)(d)}}}function on(t,e,n){var r,i,o,l,u,c,h,d=e.$$slots,f=void 0===d?{}:d,p=e.$$scope,g=(0,a.XGm)(f),v=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},m=e.items,y=e.itemKey,b=void 0===y?void 0:y,_=e.itemHeight,x=void 0===_?void 0:_,w=e.buffer,S=void 0===w?200:w,C=e.stickToBottom,k=void 0!==C&&C,O=e.scrollbar,M=void 0!==O&&O,E=e.start,T=void 0===E?0:E,A=e.end,I=void 0===A?0:A,D=0,P=0,L=0,j=0,N=100,R=0,B=[],F=[],z=[],V=Fe(),$=function(){return Math.max(0,j+D+P-L)},G=!0,H=!1,W=[],U=!1,Y=!1,X=me(),q=function(t,e){var n;(0,s.H3)(function(){var r=t();if(r){e(r.getBoundingClientRect().height),n&&n.disconnect();var i=ye();(n=new i(function(t){var n=t[0];e(n.contentRect.height)})).observe(r)}else e(0),n&&(n.disconnect(),n=null)}),(0,s.ev)(function(){n&&(n.disconnect(),n=null)})},Z=function(){var t=c.getPosition(),e=100/(j+D+P);n(8,R=t*e),n(7,N=L*e)},K=function(t){var e=$();(t||c.getPosition()>e)&&c.updatePosition(e)},J=function(t){!function(t,e,r){for(var i=new Map,o=0;o<W.length;o+=1){var a=W[o],s=void 0===b?a:a[b];i.set(s,B[o])}n(9,F.length=B.length=t.length,F);for(var l=0,h=0;h<t.length;h+=1){var d=t[h],f=void 0===b?d:d[b];i.has(f)?B[h]=i.get(f):B[h]=r,n(9,F[h]=l,F),l+=B[h]}j=Math.max(l,e-D-P),W=t,X?(Q(t,c.getPosition(),e),n(6,u.style.height=j+"px",u),K(G&&k),Z()):Q(t,0,9e6)}(t,L,x)};function Q(t,e,r){for(var i=0,o=0;i<t.length&&o+B[i]<e-S;)o+=B[i],i+=1;for(n(16,T=i);i<t.length&&r&&o<e+r+S;)o+=B[i],i+=1;n(17,I=i),n(10,z=V(t.length,T,I))}var tt=function(t,e){return v(void 0,void 0,void 0,ge().mark(function r(){var i,o,a,s;return ge().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(B[t]!==e&&0!==L){r.next=2;break}return r.abrupt("return");case 2:for(i=B[t],B[t]=e,o=m.length,a=t;a<o-1;a+=1)n(9,F[a+1]=F[a]+B[a],F);return j=Math.max(F[o-1]+B[o-1],L-D-P),s=c.getPosition(),H=!0,F[t]+i<s?c.updatePosition(s+e-i):K(G&&k),r.next=12,new Promise(function(t){return setTimeout(t,0)});case 12:Q(m,c.getPosition(),L),n(6,u.style.height=j+"px",u),Z();case 15:case"end":return r.stop()}},r)}))};(0,s.H3)(function(){n(23,U=!0),Be.use()}),(0,s.ev)(function(){Be.unuse()}),X&&(X&&(c=c||new Te($,function(t){return v(void 0,void 0,void 0,ge().mark(function e(){var r;return ge().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=$(),G=Math.abs(t-r)<=1,n(5,l.style.transform="translateY("+-t+"px) translateZ(0)",l),Z(),!H){e.next=8;break}H=!1,e.next=11;break;case 8:return e.next=10,new Promise(function(t){return setTimeout(t,0)});case 10:Q(m,t,L);case 11:case"end":return e.stop()}},e)}))}),n(11,h=h||new De(c))),!Y&&X&&(q(function(){return o},function(t){return v(void 0,void 0,void 0,ge().mark(function e(){var r,i;return ge().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(L!==t){e.next=2;break}return e.abrupt("return");case 2:for(L=t,r=0,i=0;i<m.length;i+=1)r+=B[i];return j=Math.max(r,L-P),n(6,u.style.height=j+"px",u),e.next=9,new Promise(function(t){return setTimeout(t,0)});case 9:J(m),Q(m,c.getPosition(),L),0!==L&&K(G&&k),Z();case 13:case"end":return e.stop()}},e)}))}),q(function(){return i},function(t){if(P!==t){P=t;for(var e=0,r=0;r<m.length;r+=1)e+=B[r];j=Math.max(e,L-D-P),n(6,u.style.height=j+"px",u),0!==L&&K(G&&k),Z()}}),q(function(){return r},function(t){D!==t&&(D=t,J(m),Z())})));var et={scrollTo:function(t){if(X){var e=F[Math.max(0,Math.min(m.length-1,t))],n=Math.min($(),e),r=Math.min(Math.floor(500*Math.abs(c.getPosition()-n)/2e3),500);c.scrollTo(n,r)}}};return t.$$set=function(t){"items"in t&&n(0,m=t.items),"itemKey"in t&&n(18,b=t.itemKey),"itemHeight"in t&&n(19,x=t.itemHeight),"buffer"in t&&n(20,S=t.buffer),"stickToBottom"in t&&n(21,k=t.stickToBottom),"scrollbar"in t&&n(1,M=t.scrollbar),"start"in t&&n(16,T=t.start),"end"in t&&n(17,I=t.end),"$$scope"in t&&n(31,p=t.$$scope)},t.$$.update=function(){8388609&t.$$.dirty[0]&&U&&(X||n(4,o.parentElement.style.height="auto",o),J(m),Y=!0)},[m,M,r,i,o,l,u,N,R,F,z,h,function(){},X,tt,g,T,I,b,x,S,k,et,U,f,function(t){a.VnY[t?"unshift":"push"](function(){n(2,r=t)})},function(t,e){return tt(t.index,e)},function(t){a.VnY[t?"unshift":"push"](function(){n(6,u=t)})},function(t){a.VnY[t?"unshift":"push"](function(){n(3,i=t)})},function(t){a.VnY[t?"unshift":"push"](function(){n(5,l=t)})},function(t){a.VnY[t?"unshift":"push"](function(){n(4,o=t),n(23,U),n(13,X),n(0,m)})},p]}var an=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,on,rn,a.N8,{items:0,itemKey:18,itemHeight:19,buffer:20,stickToBottom:21,scrollbar:1,start:16,end:17,handler:22},null,[-1,-1]),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"items",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({items:t}),(0,a.yl1)()}},{key:"itemKey",get:function(){return this.$$.ctx[18]},set:function(t){this.$$set({itemKey:t}),(0,a.yl1)()}},{key:"itemHeight",get:function(){return this.$$.ctx[19]},set:function(t){this.$$set({itemHeight:t}),(0,a.yl1)()}},{key:"buffer",get:function(){return this.$$.ctx[20]},set:function(t){this.$$set({buffer:t}),(0,a.yl1)()}},{key:"stickToBottom",get:function(){return this.$$.ctx[21]},set:function(t){this.$$set({stickToBottom:t}),(0,a.yl1)()}},{key:"scrollbar",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({scrollbar:t}),(0,a.yl1)()}},{key:"start",get:function(){return this.$$.ctx[16]},set:function(t){this.$$set({start:t}),(0,a.yl1)()}},{key:"end",get:function(){return this.$$.ctx[17]},set:function(t){this.$$set({end:t}),(0,a.yl1)()}},{key:"handler",get:function(){return this.$$.ctx[22]}}]),n}(a.f_C);function sn(t){var e;return{c:function(){(e=(0,a.bGB)("div")).textContent="Empty",(0,a.Ljt)(e,"slot","empty"),(0,a.Ljt)(e,"class","vc-plugin-empty")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function ln(t){var e,n;return(e=new ae({props:{slot:"item",log:t[16],showTimestamps:t[1],groupHeader:t[16].groupHeader}})).$on("groupCollapsed",t[6]),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:function(t,n){var r={};65536&n&&(r.log=t[16]),2&n&&(r.showTimestamps=t[1]),65536&n&&(r.groupHeader=t[16].groupHeader),e.$set(r)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function un(t){var e,n;return(e=new se.Z({})).$on("filterText",t[5]),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,r){(0,a.yef)(e,t,r),n=!0},p:a.ZTd,i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function cn(t){var e,n,r=t[0]&&un(t);return{c:function(){r&&r.c(),e=(0,a.cSb)()},m:function(t,i){r&&r.m(t,i),(0,a.$Tr)(t,e,i),n=!0},p:function(t,n){t[0]?r?(r.p(t,n),1&n&&(0,a.Ui)(r,1)):((r=un(t)).c(),(0,a.Ui)(r,1),r.m(e.parentNode,e)):r&&((0,a.dvw)(),(0,a.etI)(r,1,1,function(){r=null}),(0,a.gbL)())},i:function(t){n||((0,a.Ui)(r),n=!0)},o:function(t){(0,a.etI)(r),n=!1},d:function(t){r&&r.d(t),t&&(0,a.ogt)(e)}}}function hn(t){var e,n,r,i;function o(e){t[15](e)}var s={items:t[4],itemKey:"_id",itemHeight:30,buffer:100,stickToBottom:!0,scrollbar:!0,$$slots:{footer:[cn],item:[ln,function(t){return{16:t.item}},function(t){return t.item?65536:0}],empty:[sn]},$$scope:{ctx:t}};return void 0!==t[3]&&(s.handler=t[3]),n=new an({props:s}),a.VnY.push(function(){return(0,a.akz)(n,"handler",o)}),{c:function(){e=(0,a.bGB)("div"),(0,a.YCL)(n.$$.fragment),(0,a.Ljt)(e,"class","vc-plugin-content"),(0,a.VHj)(e,"vc-logs-has-cmd",t[0])},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.yef)(n,e,null),i=!0},p:function(t,i){var o=i[0],s={};16&o&&(s.items=t[4]),196611&o&&(s.$$scope={dirty:o,ctx:t}),!r&&8&o&&(r=!0,s.handler=t[3],(0,a.hjT)(function(){return r=!1})),n.$set(s),1&o&&(0,a.VHj)(e,"vc-logs-has-cmd",t[0])},i:function(t){i||((0,a.Ui)(n.$$.fragment,t),i=!0)},o:function(t){(0,a.etI)(n.$$.fragment,t),i=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(n)}}}function dn(t,e,n){var r,i=a.ZTd;t.$$.on_destroy.push(function(){return i()});var o,l,u=e.pluginId,c=void 0===u?"default":u,h=e.showCmd,d=void 0!==h&&h,f=e.filterType,p=void 0===f?"all":f,g=e.showTimestamps,v=void 0!==g&&g,m=!1,y="",b=[];return(0,s.H3)(function(){fe.use()}),(0,s.ev)(function(){fe.unuse()}),t.$$set=function(t){"pluginId"in t&&n(7,c=t.pluginId),"showCmd"in t&&n(0,d=t.showCmd),"filterType"in t&&n(8,p=t.filterType),"showTimestamps"in t&&n(1,v=t.showTimestamps)},t.$$.update=function(){29056&t.$$.dirty&&(m||(n(2,o=it.O.get(c)),i(),i=(0,a.LdU)(o,function(t){return n(14,r=t)}),n(12,m=!0)),n(4,b=r.logList.filter(function(t){return("all"===p||p===t.type)&&(""===y||(0,rt.HX)(t,y))&&!t.groupCollapsed})))},[d,v,o,l,b,function(t){n(13,y=t.detail.filterText||"")},function(t){var e=t.detail.groupLabel,n=t.detail.groupHeader,r=t.detail.isGroupCollapsed;o.update(function(t){return t.logList.forEach(function(t){t.groupLabel===e&&(t.groupHeader>0?t.groupHeader=n:t.groupCollapsed=r)}),t})},c,p,function(){l.scrollTo(0)},function(){l.scrollTo(b.length-1)},{fixedHeight:!0},m,y,r,function(t){n(3,l=t)}]}var fn=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,dn,hn,a.N8,{pluginId:7,showCmd:0,filterType:8,showTimestamps:1,scrollToTop:9,scrollToBottom:10,options:11}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"pluginId",get:function(){return this.$$.ctx[7]},set:function(t){this.$$set({pluginId:t}),(0,a.yl1)()}},{key:"showCmd",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({showCmd:t}),(0,a.yl1)()}},{key:"filterType",get:function(){return this.$$.ctx[8]},set:function(t){this.$$set({filterType:t}),(0,a.yl1)()}},{key:"showTimestamps",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({showTimestamps:t}),(0,a.yl1)()}},{key:"scrollToTop",get:function(){return this.$$.ctx[9]}},{key:"scrollToBottom",get:function(){return this.$$.ctx[10]}},{key:"options",get:function(){return this.$$.ctx[11]}}]),n}(a.f_C),pn=__webpack_require__(5629),gn=function(){function t(t){this.model=void 0,this.pluginId=void 0,this.pluginId=t}return t.prototype.destroy=function(){this.model=void 0},t}(),vn=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).model=pn.W.getSingleton(pn.W,"VConsoleLogModel"),e}(0,o.Z)(e,t);var n=e.prototype;return n.log=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["log"].concat(e))},n.info=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["info"].concat(e))},n.debug=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["debug"].concat(e))},n.warn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["warn"].concat(e))},n.error=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["error"].concat(e))},n.clear=function(){this.model&&this.model.clearPluginLog(this.pluginId)},n.addLog=function(t){if(this.model){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];n.unshift("["+this.pluginId+"]"),this.model.addLog({type:t,origData:n},{noOrig:!0})}},e}(gn),mn=function(t){function e(e,n){var r;return(r=t.call(this,e,n,fn,{pluginId:e,filterType:"all"})||this).model=pn.W.getSingleton(pn.W,"VConsoleLogModel"),r.isReady=!1,r.isShow=!1,r.isInBottom=!0,r.model.bindPlugin(e),r.exporter=new vn(e),r}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){var e,n;t.prototype.onReady.call(this),this.model.maxLogNumber=Number(null==(e=this.vConsole.option.log)?void 0:e.maxLogNumber)||1e3,this.compInstance.showTimestamps=!(null==(n=this.vConsole.option.log)||!n.showTimestamps)},n.onRemove=function(){t.prototype.onRemove.call(this),this.model.unbindPlugin(this.id)},n.onAddTopBar=function(t){for(var e=this,n=["All","Log","Info","Warn","Error"],r=[],i=0;i<n.length;i++)r.push({name:n[i],data:{type:n[i].toLowerCase()},actived:0===i,className:"",onClick:function(t,n){if(n.type===e.compInstance.filterType)return!1;e.compInstance.filterType=n.type}});r[0].className="vc-actived",t(r)},n.onAddTool=function(t){var e=this;t([{name:"Clear",global:!1,onClick:function(t){e.model.clearPluginLog(e.id),e.vConsole.triggerEvent("clearLog")}},{name:"Top",global:!1,onClick:function(t){e.compInstance.scrollToTop()}},{name:"Bottom",global:!1,onClick:function(t){e.compInstance.scrollToBottom()}}])},n.onUpdateOption=function(){var t,e,n,r;(null==(t=this.vConsole.option.log)?void 0:t.maxLogNumber)!==this.model.maxLogNumber&&(this.model.maxLogNumber=Number(null==(n=this.vConsole.option.log)?void 0:n.maxLogNumber)||1e3),!(null==(e=this.vConsole.option.log)||!e.showTimestamps)!==this.compInstance.showTimestamps&&(this.compInstance.showTimestamps=!(null==(r=this.vConsole.option.log)||!r.showTimestamps))},e}(nt),yn=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).onErrorHandler=void 0,e.resourceErrorHandler=void 0,e.rejectionHandler=void 0,e}(0,o.Z)(n,t);var r=n.prototype;return r.onReady=function(){t.prototype.onReady.call(this),this.bindErrors(),this.compInstance.showCmd=!0},r.onRemove=function(){t.prototype.onRemove.call(this),this.unbindErrors()},r.bindErrors=function(){e.FJ(window)&&e.mf(window.addEventListener)&&(this.catchWindowOnError(),this.catchResourceError(),this.catchUnhandledRejection())},r.unbindErrors=function(){e.FJ(window)&&e.mf(window.addEventListener)&&(window.removeEventListener("error",this.onErrorHandler),window.removeEventListener("error",this.resourceErrorHandler),window.removeEventListener("unhandledrejection",this.rejectionHandler))},r.catchWindowOnError=function(){var t=this;this.onErrorHandler=this.onErrorHandler?this.onErrorHandler:function(e){var n=e.message;e.filename&&(n+="\\n\\t"+e.filename.replace(location.origin,""),(e.lineno||e.colno)&&(n+=":"+e.lineno+":"+e.colno)),n+="\\n"+(!!e.error&&!!e.error.stack&&e.error.stack.toString()||""),t.model.addLog({type:"error",origData:[n]},{noOrig:!0})},window.removeEventListener("error",this.onErrorHandler),window.addEventListener("error",this.onErrorHandler)},r.catchResourceError=function(){var t=this;this.resourceErrorHandler=this.resourceErrorHandler?this.resourceErrorHandler:function(e){var n=e.target;if(["link","video","script","img","audio"].indexOf(n.localName)>-1){var r=n.href||n.src||n.currentSrc;t.model.addLog({type:"error",origData:["GET <"+n.localName+"> error: "+r]},{noOrig:!0})}},window.removeEventListener("error",this.resourceErrorHandler),window.addEventListener("error",this.resourceErrorHandler,!0)},r.catchUnhandledRejection=function(){var t=this;this.rejectionHandler=this.rejectionHandler?this.rejectionHandler:function(e){var n=e&&e.reason,r="Uncaught (in promise) ",i=[r,n];n instanceof Error&&(i=[r,{name:n.name,message:n.message,stack:n.stack}]),t.model.addLog({type:"error",origData:i},{noOrig:!0})},window.removeEventListener("unhandledrejection",this.rejectionHandler),window.addEventListener("unhandledrejection",this.rejectionHandler)},n}(mn),bn=function(t){function e(){return t.apply(this,arguments)||this}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){t.prototype.onReady.call(this),this.printSystemInfo()},n.printSystemInfo=function(){var t=navigator.userAgent,e=[],n=t.match(/MicroMessenger\/([\d\.]+)/i),r=n&&n[1]?n[1]:null;"servicewechat.com"===location.host||console.info("[system]","Location:",location.href);var i=t.match(/(ipod).*\s([\d_]+)/i),o=t.match(/(ipad).*\s([\d_]+)/i),a=t.match(/(iphone)\sos\s([\d_]+)/i),s=t.match(/(android)\s([\d\.]+)/i),l=t.match(/(Mac OS X)\s([\d_]+)/i);e=[],s?e.push("Android "+s[2]):a?e.push("iPhone, iOS "+a[2].replace(/_/g,".")):o?e.push("iPad, iOS "+o[2].replace(/_/g,".")):i?e.push("iPod, iOS "+i[2].replace(/_/g,".")):l&&e.push("Mac, MacOS "+l[2].replace(/_/g,".")),r&&e.push("WeChat "+r),console.info("[system]","Client:",e.length?e.join(", "):"Unknown");var u=t.toLowerCase().match(/ nettype\/([^ ]+)/g);u&&u[0]&&(e=[(u=u[0].split("/"))[1]],console.info("[system]","Network:",e.length?e.join(", "):"Unknown")),console.info("[system]","UA:",t),setTimeout(function(){var t=window.performance||window.msPerformance||window.webkitPerformance;if(t&&t.timing){var e=t.timing;e.navigationStart&&console.info("[system]","navigationStart:",e.navigationStart),e.navigationStart&&e.domainLookupStart&&console.info("[system]","navigation:",e.domainLookupStart-e.navigationStart+"ms"),e.domainLookupEnd&&e.domainLookupStart&&console.info("[system]","dns:",e.domainLookupEnd-e.domainLookupStart+"ms"),e.connectEnd&&e.connectStart&&(e.connectEnd&&e.secureConnectionStart?console.info("[system]","tcp (ssl):",e.connectEnd-e.connectStart+"ms ("+(e.connectEnd-e.secureConnectionStart)+"ms)"):console.info("[system]","tcp:",e.connectEnd-e.connectStart+"ms")),e.responseStart&&e.requestStart&&console.info("[system]","request:",e.responseStart-e.requestStart+"ms"),e.responseEnd&&e.responseStart&&console.info("[system]","response:",e.responseEnd-e.responseStart+"ms"),e.domComplete&&e.domLoading&&(e.domContentLoadedEventStart&&e.domLoading?console.info("[system]","domComplete (domLoaded):",e.domComplete-e.domLoading+"ms ("+(e.domContentLoadedEventStart-e.domLoading)+"ms)"):console.info("[system]","domComplete:",e.domComplete-e.domLoading+"ms")),e.loadEventEnd&&e.loadEventStart&&console.info("[system]","loadEvent:",e.loadEventEnd-e.loadEventStart+"ms"),e.navigationStart&&e.loadEventEnd&&console.info("[system]","total (DOM):",e.loadEventEnd-e.navigationStart+"ms ("+(e.domComplete-e.navigationStart)+"ms)")}},0)},e}(mn),_n=__webpack_require__(3313),xn=__webpack_require__(643);function wn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Cn=function(t,n){void 0===n&&(n={}),e.Kn(n)||(n={});var r=t?t.split("?"):[];if(r.shift(),r.length>0)for(var i,o=wn(r=r.join("?").split("&"));!(i=o()).done;){var a=i.value.split("=");try{n[a[0]]=decodeURIComponent(a[1])}catch(t){n[a[0]]=a[1]}}return n},kn=function(t,n){var r="";switch(t){case"":case"text":case"json":if(e.HD(n))try{r=JSON.parse(n),r=e.hZ(r,{maxDepth:10,keyMaxLen:1e4,pretty:!0,standardJSON:!0})}catch(t){r=e.id(String(n),1e4)}else e.Kn(n)||e.kJ(n)?r=e.hZ(n,{maxDepth:10,keyMaxLen:1e4,pretty:!0,standardJSON:!0}):void 0!==n&&(r=Object.prototype.toString.call(n));break;default:void 0!==n&&(r=Object.prototype.toString.call(n))}return r},On=function(t){if(!t)return null;var n=null;if("string"==typeof t)try{n=JSON.parse(t)}catch(e){var r=t.split("&");if(1===r.length)n=t;else{n={};for(var i,o=wn(r);!(i=o()).done;){var a=i.value.split("=");n[a[0]]=void 0===a[1]?"undefined":a[1]}}}else if(e.TW(t)){n={};for(var s,l=wn(t);!(s=l()).done;){var u=s.value,c=u[0],h=u[1];n[c]="string"==typeof h?h:"[object Object]"}}else n=e.PO(t)?t:"[object "+e.zl(t)+"]";return n},Mn=function(t){return void 0===t&&(t=""),t.startsWith("//")&&(t=""+new URL(window.location.href).protocol+t),t.startsWith("http")?new URL(t):new URL(t,window.location.href)},En=function(){this.id="",this.name="",this.method="",this.url="",this.status=0,this.statusText="",this.cancelState=0,this.readyState=0,this.header=null,this.responseType="",this.requestType=void 0,this.requestHeader=null,this.response=void 0,this.responseSize=0,this.responseSizeText="",this.startTime=0,this.startTimeText="",this.endTime=0,this.costTime=0,this.getData=null,this.postData=null,this.actived=!1,this.noVConsole=!1,this.id=(0,e.QI)()},Tn=function(t){function e(n){var r;return(r=t.call(this)||this)._response=void 0,new Proxy(n,e.Handler)||(0,i.Z)(r)}return(0,o.Z)(e,t),e}(En);Tn.Handler={get:function(t,e){return"response"===e?t._response:Reflect.get(t,e)},set:function(t,e,n){var r;switch(e){case"response":return t._response=kn(t.responseType,n),!0;case"url":var i=(null==(r=n=String(n))?void 0:r.replace(new RegExp("[/]*$"),"").split("/").pop())||"Unknown";Reflect.set(t,"name",i);var o=Cn(n,t.getData);Reflect.set(t,"getData",o);break;case"status":var a=String(n)||"Unknown";Reflect.set(t,"statusText",a);break;case"startTime":if(n&&t.endTime){var s=t.endTime-n;Reflect.set(t,"costTime",s)}break;case"endTime":if(n&&t.startTime){var l=n-t.startTime;Reflect.set(t,"costTime",l)}}return Reflect.set(t,e,n)}};var An=function(){function t(t,e){var n=this;this.XMLReq=void 0,this.item=void 0,this.onUpdateCallback=void 0,this.XMLReq=t,this.XMLReq.onreadystatechange=function(){n.onReadyStateChange()},this.XMLReq.onabort=function(){n.onAbort()},this.XMLReq.ontimeout=function(){n.onTimeout()},this.item=new En,this.item.requestType="xhr",this.onUpdateCallback=e}var n=t.prototype;return n.get=function(t,e){switch(e){case"_noVConsole":return this.item.noVConsole;case"open":return this.getOpen(t);case"send":return this.getSend(t);case"setRequestHeader":return this.getSetRequestHeader(t);default:var n=Reflect.get(t,e);return"function"==typeof n?n.bind(t):n}},n.set=function(t,e,n){switch(e){case"_noVConsole":return void(this.item.noVConsole=!!n);case"onreadystatechange":return this.setOnReadyStateChange(t,e,n);case"onabort":return this.setOnAbort(t,e,n);case"ontimeout":return this.setOnTimeout(t,e,n)}return Reflect.set(t,e,n)},n.onReadyStateChange=function(){this.item.readyState=this.XMLReq.readyState,this.item.responseType=this.XMLReq.responseType,this.item.endTime=Date.now(),this.item.costTime=this.item.endTime-this.item.startTime,this.updateItemByReadyState(),this.item.response=kn(this.item.responseType,this.item.response),this.triggerUpdate()},n.onAbort=function(){this.item.cancelState=1,this.item.statusText="Abort",this.triggerUpdate()},n.onTimeout=function(){this.item.cancelState=3,this.item.statusText="Timeout",this.triggerUpdate()},n.triggerUpdate=function(){this.item.noVConsole||this.onUpdateCallback(this.item)},n.getOpen=function(t){var e=this,n=Reflect.get(t,"open");return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0],s=i[1];return e.item.method=a?a.toUpperCase():"GET",e.item.url=s||"",e.item.name=e.item.url.replace(new RegExp("[/]*$"),"").split("/").pop()||"",e.item.getData=Cn(e.item.url,{}),e.triggerUpdate(),n.apply(t,i)}},n.getSend=function(t){var e=this,n=Reflect.get(t,"send");return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0];return e.item.postData=On(a),e.triggerUpdate(),n.apply(t,i)}},n.getSetRequestHeader=function(t){var e=this,n=Reflect.get(t,"setRequestHeader");return function(){e.item.requestHeader||(e.item.requestHeader={});for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.item.requestHeader[i[0]]=i[1],e.triggerUpdate(),n.apply(t,i)}},n.setOnReadyStateChange=function(t,e,n){var r=this;return Reflect.set(t,e,function(){r.onReadyStateChange();for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];n.apply(t,i)})},n.setOnAbort=function(t,e,n){var r=this;return Reflect.set(t,e,function(){r.onAbort();for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];n.apply(t,i)})},n.setOnTimeout=function(t,e,n){var r=this;return Reflect.set(t,e,function(){r.onTimeout();for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];n.apply(t,i)})},n.updateItemByReadyState=function(){switch(this.XMLReq.readyState){case 0:case 1:if(this.item.status=0,this.item.statusText="Pending",!this.item.startTime){this.item.startTime=Date.now();var t=(0,e._3)(this.item.startTime);this.item.startTimeText=t.year+"-"+t.month+"-"+t.day+" "+t.hour+":"+t.minute+":"+t.second+"."+t.millisecond}break;case 2:this.item.status=this.XMLReq.status,this.item.statusText="Loading",this.item.header={};for(var n=(this.XMLReq.getAllResponseHeaders()||"").split("\n"),r=0;r<n.length;r++){var i=n[r];if(i){var o=i.split(": "),a=o[0],s=o.slice(1).join(": ");this.item.header[a]=s}}break;case 3:this.item.status=this.XMLReq.status,this.item.statusText="Loading",this.XMLReq.response&&this.XMLReq.response.length&&(this.item.responseSize=this.XMLReq.response.length,this.item.responseSizeText=(0,e.KL)(this.item.responseSize));break;case 4:this.item.status=this.XMLReq.status||this.item.status||0,this.item.statusText=String(this.item.status),this.item.endTime=Date.now(),this.item.costTime=this.item.endTime-(this.item.startTime||this.item.endTime),this.item.response=this.XMLReq.response,this.XMLReq.response&&this.XMLReq.response.length&&(this.item.responseSize=this.XMLReq.response.length,this.item.responseSizeText=(0,e.KL)(this.item.responseSize));break;default:this.item.status=this.XMLReq.status,this.item.statusText="Unknown"}},t}(),In=function(){function t(){}return t.create=function(t){return new Proxy(XMLHttpRequest,{construct:function(e){var n=new e;return new Proxy(n,new An(n,t))}})},t}();function Dn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Pn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}In.origXMLHttpRequest=XMLHttpRequest;var Ln=function(){function t(t,e,n){this.resp=void 0,this.item=void 0,this.onUpdateCallback=void 0,this.resp=t,this.item=e,this.onUpdateCallback=n,this.mockReader()}var n=t.prototype;return n.set=function(t,e,n){return Reflect.set(t,e,n)},n.get=function(t,e){var n=this,r=Reflect.get(t,e);switch(e){case"arrayBuffer":case"blob":case"formData":case"json":case"text":return function(){return n.item.responseType=e.toLowerCase(),r.apply(t).then(function(t){return n.item.response=kn(n.item.responseType,t),n.onUpdateCallback(n.item),t})}}return"function"==typeof r?r.bind(t):r},n.mockReader=function(){var t,n=this;if(this.resp.body&&"function"==typeof this.resp.body.getReader){var r=this.resp.body.getReader;this.resp.body.getReader=function(){var i=r.apply(n.resp.body);if(4===n.item.readyState)return i;var o=i.read,a=i.cancel;return n.item.responseType="arraybuffer",i.read=function(){return o.apply(i).then(function(r){if(t){var i=new Uint8Array(t.length+r.value.length);i.set(t),i.set(r.value,t.length),t=i}else t=new Uint8Array(r.value);return n.item.endTime=Date.now(),n.item.costTime=n.item.endTime-(n.item.startTime||n.item.endTime),n.item.readyState=r.done?4:3,n.item.statusText=r.done?String(n.item.status):"Loading",n.item.responseSize=t.length,n.item.responseSizeText=e.KL(n.item.responseSize),r.done&&(n.item.response=kn(n.item.responseType,t)),n.onUpdateCallback(n.item),r})},i.cancel=function(){n.item.cancelState=2,n.item.statusText="Cancel",n.item.endTime=Date.now(),n.item.costTime=n.item.endTime-(n.item.startTime||n.item.endTime),n.item.response=kn(n.item.responseType,t),n.onUpdateCallback(n.item);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return a.apply(i,r)},i}}},t}(),jn=function(){function t(t){this.onUpdateCallback=void 0,this.onUpdateCallback=t}var n=t.prototype;return n.apply=function(t,e,n){var r=this,i=n[0],o=n[1],a=new En;return this.beforeFetch(a,i,o),t.apply(window,n).then(this.afterFetch(a)).catch(function(t){throw a.endTime=Date.now(),a.costTime=a.endTime-(a.startTime||a.endTime),r.onUpdateCallback(a),t})},n.beforeFetch=function(t,n,r){var i,o="GET",a=null;if(e.HD(n)?(o=(null==r?void 0:r.method)||"GET",i=Mn(n),a=(null==r?void 0:r.headers)||null):(o=n.method||"GET",i=Mn(n.url),a=n.headers),t.method=o,t.requestType="fetch",t.requestHeader=a,t.url=i.toString(),t.name=(i.pathname.split("/").pop()||"")+i.search,t.status=0,t.statusText="Pending",t.readyState=1,!t.startTime){t.startTime=Date.now();var s=e._3(t.startTime);t.startTimeText=s.year+"-"+s.month+"-"+s.day+" "+s.hour+":"+s.minute+":"+s.second+"."+s.millisecond}if("[object Headers]"===Object.prototype.toString.call(a)){t.requestHeader={};for(var l,u=Dn(a);!(l=u()).done;){var c=l.value,h=c[0],d=c[1];t.requestHeader[h]=d}}else t.requestHeader=a;if(i.search&&i.searchParams){t.getData={};for(var f,p=Dn(i.searchParams);!(f=p()).done;){var g=f.value,v=g[0],m=g[1];t.getData[v]=m}}null!=r&&r.body&&(t.postData=On(r.body)),this.onUpdateCallback(t)},n.afterFetch=function(t){var n=this;return function(r){t.endTime=Date.now(),t.costTime=t.endTime-(t.startTime||t.endTime),t.status=r.status,t.statusText=String(r.status);var i=!1;t.header={};for(var o,a=Dn(r.headers);!(o=a()).done;){var s=o.value,l=s[0],u=s[1];t.header[l]=u,i=u.toLowerCase().indexOf("chunked")>-1||i}return i?t.readyState=3:(t.readyState=4,n.handleResponseBody(r.clone(),t).then(function(r){t.responseSize="string"==typeof r?r.length:r.byteLength,t.responseSizeText=e.KL(t.responseSize),t.response=kn(t.responseType,r),n.onUpdateCallback(t)})),n.onUpdateCallback(t),new Proxy(r,new Ln(r,t,n.onUpdateCallback))}},n.handleResponseBody=function(t,e){var n=t.headers.get("content-type");return n&&n.includes("application/json")?(e.responseType="json",t.text()):n&&(n.includes("text/html")||n.includes("text/plain"))?(e.responseType="text",t.text()):(e.responseType="arraybuffer",t.arrayBuffer())},t}(),Nn=function(){function t(){}return t.create=function(t){return new Proxy(fetch,new jn(t))},t}();function Rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Nn.origFetch=fetch;var Bn=function(){function t(t){this.onUpdateCallback=void 0,this.onUpdateCallback=t}return t.prototype.apply=function(t,e,n){var r=n[0],i=n[1],o=new En,a=Mn(r);if(o.method="POST",o.url=r,o.name=(a.pathname.split("/").pop()||"")+a.search,o.requestType="ping",o.requestHeader={"Content-Type":function(t){return t instanceof Blob?t.type:t instanceof FormData?"multipart/form-data":t instanceof URLSearchParams?"application/x-www-form-urlencoded;charset=UTF-8":"text/plain;charset=UTF-8"}(i)},o.status=0,o.statusText="Pending",a.search&&a.searchParams){o.getData={};for(var s,l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Rn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a.searchParams);!(s=l()).done;){var u=s.value,c=u[0],h=u[1];o.getData[c]=h}}o.postData=On(i),o.startTime||(o.startTime=Date.now()),this.onUpdateCallback(o);var d=t.apply(e,n);return d?(o.endTime=Date.now(),o.costTime=o.endTime-(o.startTime||o.endTime),o.status=0,o.statusText="Sent",o.readyState=4):(o.status=500,o.statusText="Unknown"),this.onUpdateCallback(o),d},t}(),Fn=function(){function t(){}return t.create=function(t){return new Proxy(navigator.sendBeacon,new Bn(t))},t}();Fn.origSendBeacon=navigator.sendBeacon;var zn=(0,_n.fZ)({}),Vn=function(t){function e(){var e;return(e=t.call(this)||this).maxNetworkNumber=1e3,e.ignoreUrlRegExp=void 0,e.itemCounter=0,e.mockXHR(),e.mockFetch(),e.mockSendBeacon(),e}(0,o.Z)(e,t);var n=e.prototype;return n.unMock=function(){window.hasOwnProperty("XMLHttpRequest")&&(window.XMLHttpRequest=In.origXMLHttpRequest),window.hasOwnProperty("fetch")&&(window.fetch=Nn.origFetch),window.navigator.sendBeacon&&(window.navigator.sendBeacon=Fn.origSendBeacon)},n.clearLog=function(){zn.set({})},n.updateRequest=function(t,e){var n,r=e.url;if(!r||null==(n=this.ignoreUrlRegExp)||!n.test(r)){var i=(0,_n.U2)(zn),o=!!i[t];if(o){var a=i[t];for(var s in e)a[s]=e[s];e=a}zn.update(function(n){return n[t]=e,n}),o||(D.x.updateTime(),this.limitListLength())}},n.mockXHR=function(){var t=this;window.hasOwnProperty("XMLHttpRequest")&&(window.XMLHttpRequest=In.create(function(e){t.updateRequest(e.id,e)}))},n.mockFetch=function(){var t=this;window.hasOwnProperty("fetch")&&(window.fetch=Nn.create(function(e){t.updateRequest(e.id,e)}))},n.mockSendBeacon=function(){var t,e,n=this;null!=(t=window)&&null!=(e=t.navigator)&&e.sendBeacon&&(window.navigator.sendBeacon=Fn.create(function(t){n.updateRequest(t.id,t)}))},n.limitListLength=function(){var t=this;if(this.itemCounter++,this.itemCounter%10==0){this.itemCounter=0;var e=(0,_n.U2)(zn),n=Object.keys(e);n.length>this.maxNetworkNumber-10&&zn.update(function(e){for(var r=n.splice(0,n.length-t.maxNetworkNumber+10),i=0;i<r.length;i++)e[r[i]]=void 0,delete e[r[i]];return e})}},e}(xn.N),$n=__webpack_require__(8747),Gn={};$n.Z&&$n.Z.locals&&(Gn.locals=$n.Z.locals);var Hn,Wn=0,Un={};Un.styleTagTransform=b(),Un.setAttributes=g(),Un.insert=f().bind(null,"head"),Un.domAPI=h(),Un.insertStyleElement=m(),Gn.use=function(t){return Un.options=t||{},Wn++||(Hn=u()($n.Z,Un)),Gn},Gn.unuse=function(){Wn>0&&!--Wn&&(Hn(),Hn=null)};var Yn=Gn;function Xn(t,e,n){var r=t.slice();return r[11]=e[n][0],r[12]=e[n][1],r}function qn(t,e,n){var r=t.slice();return r[11]=e[n][0],r[12]=e[n][1],r}function Zn(t,e,n){var r=t.slice();return r[11]=e[n][0],r[12]=e[n][1],r}function Kn(t,e,n){var r=t.slice();return r[11]=e[n][0],r[12]=e[n][1],r}function Jn(t){var e,n,r;return{c:function(){e=(0,a.fLW)("("),n=(0,a.fLW)(t[0]),r=(0,a.fLW)(")")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.$Tr)(t,n,i),(0,a.$Tr)(t,r,i)},p:function(t,e){1&e&&(0,a.rTO)(n,t[0])},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(n),t&&(0,a.ogt)(r)}}}function Qn(t){var e,n,r,i,o,s,l=t[0]>0&&Jn(t);return{c:function(){e=(0,a.bGB)("dl"),n=(0,a.bGB)("dd"),r=(0,a.fLW)("Name "),l&&l.c(),(i=(0,a.bGB)("dd")).textContent="Method",(o=(0,a.bGB)("dd")).textContent="Status",(s=(0,a.bGB)("dd")).textContent="Time",(0,a.Ljt)(n,"class","vc-table-col vc-table-col-4"),(0,a.Ljt)(i,"class","vc-table-col"),(0,a.Ljt)(o,"class","vc-table-col"),(0,a.Ljt)(s,"class","vc-table-col"),(0,a.Ljt)(e,"class","vc-table-row")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,r),l&&l.m(n,null),(0,a.R3I)(e,i),(0,a.R3I)(e,o),(0,a.R3I)(e,s)},p:function(t,e){t[0]>0?l?l.p(t,e):((l=Jn(t)).c(),l.m(n,null)):l&&(l.d(1),l=null)},d:function(t){t&&(0,a.ogt)(e),l&&l.d()}}}function tr(t){var e;return{c:function(){(e=(0,a.bGB)("div")).textContent="Empty",(0,a.Ljt)(e,"slot","empty"),(0,a.Ljt)(e,"class","vc-plugin-empty")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function er(t){var e,n,r,i,o,s,l,u;s=new lt({props:{content:t[10].requestHeader}});for(var c=Object.entries(t[10].requestHeader),h=[],d=0;d<c.length;d+=1)h[d]=nr(Kn(t,c,d));return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),r=(0,a.bGB)("dt"),i=(0,a.fLW)("Request Headers\n "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),l=(0,a.DhX)();for(var t=0;t<h.length;t+=1)h[t].c();(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,c){(0,a.$Tr)(t,e,c),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(r,i),(0,a.R3I)(r,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,l);for(var d=0;d<h.length;d+=1)h[d].m(e,null);u=!0},p:function(t,n){var r={};if(1024&n&&(r.content=t[10].requestHeader),s.$set(r),1040&n){var i;for(c=Object.entries(t[10].requestHeader),i=0;i<c.length;i+=1){var o=Kn(t,c,i);h[i]?h[i].p(o,n):(h[i]=nr(o),h[i].c(),h[i].m(e,null))}for(;i<h.length;i+=1)h[i].d(1);h.length=c.length}},i:function(t){u||((0,a.Ui)(s.$$.fragment,t),u=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),u=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),(0,a.RMB)(h,t)}}}function nr(t){var e,n,r,i,o,s,l,u=t[11]+"",c=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),r=(0,a.fLW)(u),i=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(c),l=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(e,i),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,l)},p:function(t,e){1024&e&&u!==(u=t[11]+"")&&(0,a.rTO)(r,u),1024&e&&c!==(c=t[4](t[12])+"")&&(0,a.rTO)(s,c)},d:function(t){t&&(0,a.ogt)(e)}}}function rr(t){var e,n,r,i,o,s,l,u;s=new lt({props:{content:t[10].getData}});for(var c=Object.entries(t[10].getData),h=[],d=0;d<c.length;d+=1)h[d]=ir(Zn(t,c,d));return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),r=(0,a.bGB)("dt"),i=(0,a.fLW)("Query String Parameters\n "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),l=(0,a.DhX)();for(var t=0;t<h.length;t+=1)h[t].c();(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,c){(0,a.$Tr)(t,e,c),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(r,i),(0,a.R3I)(r,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,l);for(var d=0;d<h.length;d+=1)h[d].m(e,null);u=!0},p:function(t,n){var r={};if(1024&n&&(r.content=t[10].getData),s.$set(r),1040&n){var i;for(c=Object.entries(t[10].getData),i=0;i<c.length;i+=1){var o=Zn(t,c,i);h[i]?h[i].p(o,n):(h[i]=ir(o),h[i].c(),h[i].m(e,null))}for(;i<h.length;i+=1)h[i].d(1);h.length=c.length}},i:function(t){u||((0,a.Ui)(s.$$.fragment,t),u=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),u=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),(0,a.RMB)(h,t)}}}function ir(t){var e,n,r,i,o,s,l,u=t[11]+"",c=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),r=(0,a.fLW)(u),i=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(c),l=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(e,i),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,l)},p:function(t,e){1024&e&&u!==(u=t[11]+"")&&(0,a.rTO)(r,u),1024&e&&c!==(c=t[4](t[12])+"")&&(0,a.rTO)(s,c)},d:function(t){t&&(0,a.ogt)(e)}}}function or(t){var e,n,r,i,o,s,l,u;function c(t,e){return"string"==typeof t[10].postData?sr:ar}s=new lt({props:{content:t[10].postData}});var h=c(t),d=h(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),r=(0,a.bGB)("dt"),i=(0,a.fLW)("Request Payload\n "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),l=(0,a.DhX)(),d.c(),(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,c){(0,a.$Tr)(t,e,c),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(r,i),(0,a.R3I)(r,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,l),d.m(e,null),u=!0},p:function(t,n){var r={};1024&n&&(r.content=t[10].postData),s.$set(r),h===(h=c(t))&&d?d.p(t,n):(d.d(1),(d=h(t))&&(d.c(),d.m(e,null)))},i:function(t){u||((0,a.Ui)(s.$$.fragment,t),u=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),u=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),d.d()}}}function ar(t){for(var e,n=Object.entries(t[10].postData),r=[],i=0;i<n.length;i+=1)r[i]=lr(qn(t,n,i));return{c:function(){for(var t=0;t<r.length;t+=1)r[t].c();e=(0,a.cSb)()},m:function(t,n){for(var i=0;i<r.length;i+=1)r[i].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,i){if(1040&i){var o;for(n=Object.entries(t[10].postData),o=0;o<n.length;o+=1){var a=qn(t,n,o);r[o]?r[o].p(a,i):(r[o]=lr(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d:function(t){(0,a.RMB)(r,t),t&&(0,a.ogt)(e)}}}function sr(t){var e,n,r,i=t[10].postData+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("pre"),r=(0,a.fLW)(i),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-value vc-max-height-line"),(0,a.Ljt)(n,"data-scrollable","1"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n),(0,a.R3I)(n,r)},p:function(t,e){1024&e&&i!==(i=t[10].postData+"")&&(0,a.rTO)(r,i)},d:function(t){t&&(0,a.ogt)(e)}}}function lr(t){var e,n,r,i,o,s,l,u=t[11]+"",c=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),r=(0,a.fLW)(u),i=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(c),l=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(o,"data-scrollable","1"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(e,i),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,l)},p:function(t,e){1024&e&&u!==(u=t[11]+"")&&(0,a.rTO)(r,u),1024&e&&c!==(c=t[4](t[12])+"")&&(0,a.rTO)(s,c)},d:function(t){t&&(0,a.ogt)(e)}}}function ur(t){var e,n,r,i,o,s,l,u;s=new lt({props:{content:t[10].header}});for(var c=Object.entries(t[10].header),h=[],d=0;d<c.length;d+=1)h[d]=cr(Xn(t,c,d));return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),r=(0,a.bGB)("dt"),i=(0,a.fLW)("Response Headers\n "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),l=(0,a.DhX)();for(var t=0;t<h.length;t+=1)h[t].c();(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,c){(0,a.$Tr)(t,e,c),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(r,i),(0,a.R3I)(r,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,l);for(var d=0;d<h.length;d+=1)h[d].m(e,null);u=!0},p:function(t,n){var r={};if(1024&n&&(r.content=t[10].header),s.$set(r),1040&n){var i;for(c=Object.entries(t[10].header),i=0;i<c.length;i+=1){var o=Xn(t,c,i);h[i]?h[i].p(o,n):(h[i]=cr(o),h[i].c(),h[i].m(e,null))}for(;i<h.length;i+=1)h[i].d(1);h.length=c.length}},i:function(t){u||((0,a.Ui)(s.$$.fragment,t),u=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),u=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),(0,a.RMB)(h,t)}}}function cr(t){var e,n,r,i,o,s,l,u=t[11]+"",c=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),r=(0,a.fLW)(u),i=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(c),l=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(e,i),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,l)},p:function(t,e){1024&e&&u!==(u=t[11]+"")&&(0,a.rTO)(r,u),1024&e&&c!==(c=t[4](t[12])+"")&&(0,a.rTO)(s,c)},d:function(t){t&&(0,a.ogt)(e)}}}function hr(t){var e,n,r,i,o,s=t[10].responseSizeText+"";return{c:function(){e=(0,a.bGB)("div"),(n=(0,a.bGB)("div")).textContent="Size",r=(0,a.DhX)(),i=(0,a.bGB)("div"),o=(0,a.fLW)(s),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,s){(0,a.$Tr)(t,e,s),(0,a.R3I)(e,n),(0,a.R3I)(e,r),(0,a.R3I)(e,i),(0,a.R3I)(i,o)},p:function(t,e){1024&e&&s!==(s=t[10].responseSizeText+"")&&(0,a.rTO)(o,s)},d:function(t){t&&(0,a.ogt)(e)}}}function dr(t){var e,n,r,i,o,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C,k,O,M,E,T,A,I,D,P,L,j,N,R,B,F,z,V,$,G,H,W,U,Y,X,q,Z,K,J,Q,tt,et,nt,rt,it,ot,at,st,ut,ct,ht,dt,ft,pt,gt,vt,mt=t[10].name+"",yt=t[10].method+"",bt=t[10].statusText+"",_t=t[10].costTime+"",xt=t[10].url+"",wt=t[10].method+"",St=t[10].requestType+"",Ct=t[10].status+"",kt=t[10].startTimeText+"",Ot=(t[10].response||"")+"";function Mt(){return t[7](t[10])}b=new lt({props:{handler:t[3],content:t[10]}});var Et=null!==t[10].requestHeader&&er(t),Tt=null!==t[10].getData&&rr(t),At=null!==t[10].postData&&or(t),It=null!==t[10].header&&ur(t);at=new lt({props:{content:t[10].response}});var Dt=t[10].responseSize>0&&hr(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),r=(0,a.bGB)("dd"),i=(0,a.fLW)(mt),o=(0,a.bGB)("dd"),s=(0,a.fLW)(yt),l=(0,a.bGB)("dd"),u=(0,a.fLW)(bt),c=(0,a.bGB)("dd"),h=(0,a.fLW)(_t),d=(0,a.DhX)(),f=(0,a.bGB)("div"),p=(0,a.bGB)("div"),g=(0,a.bGB)("dl"),v=(0,a.bGB)("dt"),m=(0,a.fLW)("General\n "),y=(0,a.bGB)("i"),(0,a.YCL)(b.$$.fragment),_=(0,a.DhX)(),x=(0,a.bGB)("div"),(w=(0,a.bGB)("div")).textContent="URL",S=(0,a.DhX)(),C=(0,a.bGB)("div"),k=(0,a.fLW)(xt),O=(0,a.DhX)(),M=(0,a.bGB)("div"),(E=(0,a.bGB)("div")).textContent="Method",T=(0,a.DhX)(),A=(0,a.bGB)("div"),I=(0,a.fLW)(wt),D=(0,a.DhX)(),P=(0,a.bGB)("div"),(L=(0,a.bGB)("div")).textContent="Request Type",j=(0,a.DhX)(),N=(0,a.bGB)("div"),R=(0,a.fLW)(St),B=(0,a.DhX)(),F=(0,a.bGB)("div"),(z=(0,a.bGB)("div")).textContent="HTTP Status",V=(0,a.DhX)(),$=(0,a.bGB)("div"),G=(0,a.fLW)(Ct),H=(0,a.DhX)(),W=(0,a.bGB)("div"),(U=(0,a.bGB)("div")).textContent="Start Time",Y=(0,a.DhX)(),X=(0,a.bGB)("div"),q=(0,a.fLW)(kt),Z=(0,a.DhX)(),Et&&Et.c(),K=(0,a.DhX)(),Tt&&Tt.c(),J=(0,a.DhX)(),At&&At.c(),Q=(0,a.DhX)(),It&&It.c(),tt=(0,a.DhX)(),et=(0,a.bGB)("div"),nt=(0,a.bGB)("dl"),rt=(0,a.bGB)("dt"),it=(0,a.fLW)("Response\n "),ot=(0,a.bGB)("i"),(0,a.YCL)(at.$$.fragment),st=(0,a.DhX)(),Dt&&Dt.c(),ut=(0,a.DhX)(),ct=(0,a.bGB)("div"),ht=(0,a.bGB)("pre"),dt=(0,a.fLW)(Ot),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-4"),(0,a.Ljt)(o,"class","vc-table-col"),(0,a.Ljt)(l,"class","vc-table-col"),(0,a.Ljt)(c,"class","vc-table-col"),(0,a.Ljt)(n,"class","vc-table-row vc-group-preview"),(0,a.VHj)(n,"vc-table-row-error",t[10].status>=400),(0,a.Ljt)(y,"class","vc-table-row-icon"),(0,a.Ljt)(v,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(g,"class","vc-table-row vc-left-border"),(0,a.Ljt)(w,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(C,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(x,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(E,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(A,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(M,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(L,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(N,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(P,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(z,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)($,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(F,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(U,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(X,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(W,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(ot,"class","vc-table-row-icon"),(0,a.Ljt)(rt,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(nt,"class","vc-table-row vc-left-border"),(0,a.Ljt)(ht,"class","vc-table-col vc-max-height vc-min-height"),(0,a.Ljt)(ht,"data-scrollable","1"),(0,a.Ljt)(ct,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(f,"class","vc-group-detail"),(0,a.Ljt)(e,"slot","item"),(0,a.Ljt)(e,"class","vc-group"),(0,a.Ljt)(e,"id",ft=t[10].id),(0,a.VHj)(e,"vc-actived",t[10].actived)},m:function(t,lt){(0,a.$Tr)(t,e,lt),(0,a.R3I)(e,n),(0,a.R3I)(n,r),(0,a.R3I)(r,i),(0,a.R3I)(n,o),(0,a.R3I)(o,s),(0,a.R3I)(n,l),(0,a.R3I)(l,u),(0,a.R3I)(n,c),(0,a.R3I)(c,h),(0,a.R3I)(e,d),(0,a.R3I)(e,f),(0,a.R3I)(f,p),(0,a.R3I)(p,g),(0,a.R3I)(g,v),(0,a.R3I)(v,m),(0,a.R3I)(v,y),(0,a.yef)(b,y,null),(0,a.R3I)(p,_),(0,a.R3I)(p,x),(0,a.R3I)(x,w),(0,a.R3I)(x,S),(0,a.R3I)(x,C),(0,a.R3I)(C,k),(0,a.R3I)(p,O),(0,a.R3I)(p,M),(0,a.R3I)(M,E),(0,a.R3I)(M,T),(0,a.R3I)(M,A),(0,a.R3I)(A,I),(0,a.R3I)(p,D),(0,a.R3I)(p,P),(0,a.R3I)(P,L),(0,a.R3I)(P,j),(0,a.R3I)(P,N),(0,a.R3I)(N,R),(0,a.R3I)(p,B),(0,a.R3I)(p,F),(0,a.R3I)(F,z),(0,a.R3I)(F,V),(0,a.R3I)(F,$),(0,a.R3I)($,G),(0,a.R3I)(p,H),(0,a.R3I)(p,W),(0,a.R3I)(W,U),(0,a.R3I)(W,Y),(0,a.R3I)(W,X),(0,a.R3I)(X,q),(0,a.R3I)(f,Z),Et&&Et.m(f,null),(0,a.R3I)(f,K),Tt&&Tt.m(f,null),(0,a.R3I)(f,J),At&&At.m(f,null),(0,a.R3I)(f,Q),It&&It.m(f,null),(0,a.R3I)(f,tt),(0,a.R3I)(f,et),(0,a.R3I)(et,nt),(0,a.R3I)(nt,rt),(0,a.R3I)(rt,it),(0,a.R3I)(rt,ot),(0,a.yef)(at,ot,null),(0,a.R3I)(et,st),Dt&&Dt.m(et,null),(0,a.R3I)(et,ut),(0,a.R3I)(et,ct),(0,a.R3I)(ct,ht),(0,a.R3I)(ht,dt),pt=!0,gt||(vt=(0,a.oLt)(n,"click",Mt),gt=!0)},p:function(r,o){t=r,(!pt||1024&o)&&mt!==(mt=t[10].name+"")&&(0,a.rTO)(i,mt),(!pt||1024&o)&&yt!==(yt=t[10].method+"")&&(0,a.rTO)(s,yt),(!pt||1024&o)&&bt!==(bt=t[10].statusText+"")&&(0,a.rTO)(u,bt),(!pt||1024&o)&&_t!==(_t=t[10].costTime+"")&&(0,a.rTO)(h,_t),1024&o&&(0,a.VHj)(n,"vc-table-row-error",t[10].status>=400);var l={};1024&o&&(l.content=t[10]),b.$set(l),(!pt||1024&o)&&xt!==(xt=t[10].url+"")&&(0,a.rTO)(k,xt),(!pt||1024&o)&&wt!==(wt=t[10].method+"")&&(0,a.rTO)(I,wt),(!pt||1024&o)&&St!==(St=t[10].requestType+"")&&(0,a.rTO)(R,St),(!pt||1024&o)&&Ct!==(Ct=t[10].status+"")&&(0,a.rTO)(G,Ct),(!pt||1024&o)&&kt!==(kt=t[10].startTimeText+"")&&(0,a.rTO)(q,kt),null!==t[10].requestHeader?Et?(Et.p(t,o),1024&o&&(0,a.Ui)(Et,1)):((Et=er(t)).c(),(0,a.Ui)(Et,1),Et.m(f,K)):Et&&((0,a.dvw)(),(0,a.etI)(Et,1,1,function(){Et=null}),(0,a.gbL)()),null!==t[10].getData?Tt?(Tt.p(t,o),1024&o&&(0,a.Ui)(Tt,1)):((Tt=rr(t)).c(),(0,a.Ui)(Tt,1),Tt.m(f,J)):Tt&&((0,a.dvw)(),(0,a.etI)(Tt,1,1,function(){Tt=null}),(0,a.gbL)()),null!==t[10].postData?At?(At.p(t,o),1024&o&&(0,a.Ui)(At,1)):((At=or(t)).c(),(0,a.Ui)(At,1),At.m(f,Q)):At&&((0,a.dvw)(),(0,a.etI)(At,1,1,function(){At=null}),(0,a.gbL)()),null!==t[10].header?It?(It.p(t,o),1024&o&&(0,a.Ui)(It,1)):((It=ur(t)).c(),(0,a.Ui)(It,1),It.m(f,tt)):It&&((0,a.dvw)(),(0,a.etI)(It,1,1,function(){It=null}),(0,a.gbL)());var c={};1024&o&&(c.content=t[10].response),at.$set(c),t[10].responseSize>0?Dt?Dt.p(t,o):((Dt=hr(t)).c(),Dt.m(et,ut)):Dt&&(Dt.d(1),Dt=null),(!pt||1024&o)&&Ot!==(Ot=(t[10].response||"")+"")&&(0,a.rTO)(dt,Ot),(!pt||1024&o&&ft!==(ft=t[10].id))&&(0,a.Ljt)(e,"id",ft),1024&o&&(0,a.VHj)(e,"vc-actived",t[10].actived)},i:function(t){pt||((0,a.Ui)(b.$$.fragment,t),(0,a.Ui)(Et),(0,a.Ui)(Tt),(0,a.Ui)(At),(0,a.Ui)(It),(0,a.Ui)(at.$$.fragment,t),pt=!0)},o:function(t){(0,a.etI)(b.$$.fragment,t),(0,a.etI)(Et),(0,a.etI)(Tt),(0,a.etI)(At),(0,a.etI)(It),(0,a.etI)(at.$$.fragment,t),pt=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(b),Et&&Et.d(),Tt&&Tt.d(),At&&At.d(),It&&It.d(),(0,a.vpE)(at),Dt&&Dt.d(),gt=!1,vt()}}}function fr(t){var e,n,r,i;return r=new an({props:{items:t[1],itemKey:"id",itemHeight:30,buffer:100,stickToBottom:!0,scrollbar:!0,$$slots:{item:[dr,function(t){return{10:t.item}},function(t){return t.item?1024:0}],empty:[tr],header:[Qn]},$$scope:{ctx:t}}}),{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),(0,a.YCL)(r.$$.fragment),(0,a.Ljt)(n,"class","vc-plugin-content"),(0,a.Ljt)(e,"class","vc-table")},m:function(t,o){(0,a.$Tr)(t,e,o),(0,a.R3I)(e,n),(0,a.yef)(r,n,null),i=!0},p:function(t,e){var n=e[0],i={};2&n&&(i.items=t[1]),2098177&n&&(i.$$scope={dirty:n,ctx:t}),r.$set(i)},i:function(t){i||((0,a.Ui)(r.$$.fragment,t),i=!0)},o:function(t){(0,a.etI)(r.$$.fragment,t),i=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(r)}}}function pr(t,n,r){var i;(0,a.FIv)(t,zn,function(t){return r(6,i=t)});var o=0,l=function(t){r(0,o=Object.keys(t).length)},u=zn.subscribe(l);l(i);var c=[],h=function(t){(0,a.fxP)(zn,i[t].actived=!i[t].actived,i)};return(0,s.H3)(function(){Yn.use()}),(0,s.ev)(function(){u(),Yn.unuse()}),t.$$.update=function(){64&t.$$.dirty&&r(1,c=Object.values(i))},[o,c,h,function(t){var n="curl -X "+t.method;return"string"==typeof t.postData?n+=" -d '"+t.postData+"'":"object"==typeof t.postData&&null!==t.postData&&(n+=" -d '"+e.hZ(t.postData)+"'"),n+" '"+t.url+"'"},function(t){return e.Kn(t)||e.kJ(t)?e.hZ(t,{maxDepth:10,keyMaxLen:1e4,pretty:!0}):t},{fixedHeight:!0},i,function(t){return h(t.id)}]}var gr=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,pr,fr,a.N8,{options:5}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"options",get:function(){return this.$$.ctx[5]}}]),n}(a.f_C),vr=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).model=Vn.getSingleton(Vn,"VConsoleNetworkModel"),e}(0,o.Z)(e,t);var n=e.prototype;return n.add=function(t){var e=new Tn(new En);for(var n in t)e[n]=t[n];return e.startTime=e.startTime||Date.now(),e.requestType=e.requestType||"custom",this.model.updateRequest(e.id,e),e},n.update=function(t,e){this.model.updateRequest(t,e)},n.clear=function(){this.model.clearLog()},e}(gn),mr=function(t){function e(e,n,r){var i;return void 0===r&&(r={}),(i=t.call(this,e,n,gr,r)||this).model=Vn.getSingleton(Vn,"VConsoleNetworkModel"),i.exporter=void 0,i.exporter=new vr(e),i}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){t.prototype.onReady.call(this),this.onUpdateOption()},n.onAddTool=function(t){var e=this;t([{name:"Clear",global:!1,onClick:function(t){e.model.clearLog()}}])},n.onRemove=function(){t.prototype.onRemove.call(this),this.model&&this.model.unMock()},n.onUpdateOption=function(){var t,e,n;(null==(t=this.vConsole.option.network)?void 0:t.maxNetworkNumber)!==this.model.maxNetworkNumber&&(this.model.maxNetworkNumber=Number(null==(n=this.vConsole.option.network)?void 0:n.maxNetworkNumber)||1e3),null!=(e=this.vConsole.option.network)&&e.ignoreUrlRegExp&&(this.model.ignoreUrlRegExp=this.vConsole.option.network.ignoreUrlRegExp)},e}(nt),yr=__webpack_require__(8679),br=__webpack_require__.n(yr),_r=(0,_n.fZ)(),xr=(0,_n.fZ)(),wr=__webpack_require__(5670),Sr={};wr.Z&&wr.Z.locals&&(Sr.locals=wr.Z.locals);var Cr,kr=0,Or={};Or.styleTagTransform=b(),Or.setAttributes=g(),Or.insert=f().bind(null,"head"),Or.domAPI=h(),Or.insertStyleElement=m(),Sr.use=function(t){return Or.options=t||{},kr++||(Cr=u()(wr.Z,Or)),Sr},Sr.unuse=function(){kr>0&&!--kr&&(Cr(),Cr=null)};var Mr=Sr;function Er(t,e,n){var r=t.slice();return r[8]=e[n],r}function Tr(t,e,n){var r=t.slice();return r[11]=e[n],r}function Ar(t){var e,n,r,i=t[0].nodeType===Node.ELEMENT_NODE&&Ir(t),o=t[0].nodeType===Node.TEXT_NODE&&$r(t);return{c:function(){e=(0,a.bGB)("div"),i&&i.c(),n=(0,a.DhX)(),o&&o.c(),(0,a.Ljt)(e,"class","vcelm-l"),(0,a.VHj)(e,"vc-actived",t[0]._isActived),(0,a.VHj)(e,"vc-toggle",t[0]._isExpand),(0,a.VHj)(e,"vcelm-noc",t[0]._isSingleLine)},m:function(t,s){(0,a.$Tr)(t,e,s),i&&i.m(e,null),(0,a.R3I)(e,n),o&&o.m(e,null),r=!0},p:function(t,r){t[0].nodeType===Node.ELEMENT_NODE?i?(i.p(t,r),1&r&&(0,a.Ui)(i,1)):((i=Ir(t)).c(),(0,a.Ui)(i,1),i.m(e,n)):i&&((0,a.dvw)(),(0,a.etI)(i,1,1,function(){i=null}),(0,a.gbL)()),t[0].nodeType===Node.TEXT_NODE?o?o.p(t,r):((o=$r(t)).c(),o.m(e,null)):o&&(o.d(1),o=null),1&r&&(0,a.VHj)(e,"vc-actived",t[0]._isActived),1&r&&(0,a.VHj)(e,"vc-toggle",t[0]._isExpand),1&r&&(0,a.VHj)(e,"vcelm-noc",t[0]._isSingleLine)},i:function(t){r||((0,a.Ui)(i),r=!0)},o:function(t){(0,a.etI)(i),r=!1},d:function(t){t&&(0,a.ogt)(e),i&&i.d(),o&&o.d()}}}function Ir(t){var e,n,r,i,o,s,l,u,c,h,d=t[0].nodeName+"",f=(t[0].className||t[0].attributes.length)&&Dr(t),p=t[0]._isNullEndTag&&Nr(t),g=t[0].childNodes.length>0&&Rr(t),v=!t[0]._isNullEndTag&&Vr(t);return{c:function(){e=(0,a.bGB)("span"),n=(0,a.fLW)("<"),r=(0,a.fLW)(d),f&&f.c(),i=(0,a.cSb)(),p&&p.c(),o=(0,a.fLW)(">"),g&&g.c(),s=(0,a.cSb)(),v&&v.c(),l=(0,a.cSb)(),(0,a.Ljt)(e,"class","vcelm-node")},m:function(d,m){(0,a.$Tr)(d,e,m),(0,a.R3I)(e,n),(0,a.R3I)(e,r),f&&f.m(e,null),(0,a.R3I)(e,i),p&&p.m(e,null),(0,a.R3I)(e,o),g&&g.m(d,m),(0,a.$Tr)(d,s,m),v&&v.m(d,m),(0,a.$Tr)(d,l,m),u=!0,c||(h=(0,a.oLt)(e,"click",t[2]),c=!0)},p:function(t,n){(!u||1&n)&&d!==(d=t[0].nodeName+"")&&(0,a.rTO)(r,d),t[0].className||t[0].attributes.length?f?f.p(t,n):((f=Dr(t)).c(),f.m(e,i)):f&&(f.d(1),f=null),t[0]._isNullEndTag?p||((p=Nr(t)).c(),p.m(e,o)):p&&(p.d(1),p=null),t[0].childNodes.length>0?g?(g.p(t,n),1&n&&(0,a.Ui)(g,1)):((g=Rr(t)).c(),(0,a.Ui)(g,1),g.m(s.parentNode,s)):g&&((0,a.dvw)(),(0,a.etI)(g,1,1,function(){g=null}),(0,a.gbL)()),t[0]._isNullEndTag?v&&(v.d(1),v=null):v?v.p(t,n):((v=Vr(t)).c(),v.m(l.parentNode,l))},i:function(t){u||((0,a.Ui)(g),u=!0)},o:function(t){(0,a.etI)(g),u=!1},d:function(t){t&&(0,a.ogt)(e),f&&f.d(),p&&p.d(),g&&g.d(t),t&&(0,a.ogt)(s),v&&v.d(t),t&&(0,a.ogt)(l),c=!1,h()}}}function Dr(t){for(var e,n=t[0].attributes,r=[],i=0;i<n.length;i+=1)r[i]=jr(Tr(t,n,i));return{c:function(){e=(0,a.bGB)("i");for(var t=0;t<r.length;t+=1)r[t].c();(0,a.Ljt)(e,"class","vcelm-k")},m:function(t,n){(0,a.$Tr)(t,e,n);for(var i=0;i<r.length;i+=1)r[i].m(e,null)},p:function(t,i){if(1&i){var o;for(n=t[0].attributes,o=0;o<n.length;o+=1){var a=Tr(t,n,o);r[o]?r[o].p(a,i):(r[o]=jr(a),r[o].c(),r[o].m(e,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d:function(t){t&&(0,a.ogt)(e),(0,a.RMB)(r,t)}}}function Pr(t){var e,n=t[11].name+"";return{c:function(){e=(0,a.fLW)(n)},m:function(t,n){(0,a.$Tr)(t,e,n)},p:function(t,r){1&r&&n!==(n=t[11].name+"")&&(0,a.rTO)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function Lr(t){var e,n,r,i,o,s=t[11].name+"",l=t[11].value+"";return{c:function(){e=(0,a.fLW)(s),n=(0,a.fLW)('="'),r=(0,a.bGB)("i"),i=(0,a.fLW)(l),o=(0,a.fLW)('"'),(0,a.Ljt)(r,"class","vcelm-v")},m:function(t,s){(0,a.$Tr)(t,e,s),(0,a.$Tr)(t,n,s),(0,a.$Tr)(t,r,s),(0,a.R3I)(r,i),(0,a.$Tr)(t,o,s)},p:function(t,n){1&n&&s!==(s=t[11].name+"")&&(0,a.rTO)(e,s),1&n&&l!==(l=t[11].value+"")&&(0,a.rTO)(i,l)},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(n),t&&(0,a.ogt)(r),t&&(0,a.ogt)(o)}}}function jr(t){var e,n;function r(t,e){return""!==t[11].value?Lr:Pr}var i=r(t),o=i(t);return{c:function(){e=(0,a.fLW)(" \n "),o.c(),n=(0,a.cSb)()},m:function(t,r){(0,a.$Tr)(t,e,r),o.m(t,r),(0,a.$Tr)(t,n,r)},p:function(t,e){i===(i=r(t))&&o?o.p(t,e):(o.d(1),(o=i(t))&&(o.c(),o.m(n.parentNode,n)))},d:function(t){t&&(0,a.ogt)(e),o.d(t),t&&(0,a.ogt)(n)}}}function Nr(t){var e;return{c:function(){e=(0,a.fLW)("/")},m:function(t,n){(0,a.$Tr)(t,e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function Rr(t){var e,n,r,i,o=[Fr,Br],s=[];function l(t,e){return t[0]._isExpand?1:0}return e=l(t),n=s[e]=o[e](t),{c:function(){n.c(),r=(0,a.cSb)()},m:function(t,n){s[e].m(t,n),(0,a.$Tr)(t,r,n),i=!0},p:function(t,i){var u=e;(e=l(t))===u?s[e].p(t,i):((0,a.dvw)(),(0,a.etI)(s[u],1,1,function(){s[u]=null}),(0,a.gbL)(),(n=s[e])?n.p(t,i):(n=s[e]=o[e](t)).c(),(0,a.Ui)(n,1),n.m(r.parentNode,r))},i:function(t){i||((0,a.Ui)(n),i=!0)},o:function(t){(0,a.etI)(n),i=!1},d:function(t){s[e].d(t),t&&(0,a.ogt)(r)}}}function Br(t){for(var e,n,r=t[0].childNodes,i=[],o=0;o<r.length;o+=1)i[o]=zr(Er(t,r,o));var s=function(t){return(0,a.etI)(i[t],1,1,function(){i[t]=null})};return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=(0,a.cSb)()},m:function(t,r){for(var o=0;o<i.length;o+=1)i[o].m(t,r);(0,a.$Tr)(t,e,r),n=!0},p:function(t,n){if(1&n){var o;for(r=t[0].childNodes,o=0;o<r.length;o+=1){var l=Er(t,r,o);i[o]?(i[o].p(l,n),(0,a.Ui)(i[o],1)):(i[o]=zr(l),i[o].c(),(0,a.Ui)(i[o],1),i[o].m(e.parentNode,e))}for((0,a.dvw)(),o=r.length;o<i.length;o+=1)s(o);(0,a.gbL)()}},i:function(t){if(!n){for(var e=0;e<r.length;e+=1)(0,a.Ui)(i[e]);n=!0}},o:function(t){i=i.filter(Boolean);for(var e=0;e<i.length;e+=1)(0,a.etI)(i[e]);n=!1},d:function(t){(0,a.RMB)(i,t),t&&(0,a.ogt)(e)}}}function Fr(t){var e;return{c:function(){e=(0,a.fLW)("...")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,i:a.ZTd,o:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function zr(t){var e,n,r;return(e=new Wr({props:{node:t[8]}})).$on("toggleNode",t[4]),{c:function(){(0,a.YCL)(e.$$.fragment),n=(0,a.DhX)()},m:function(t,i){(0,a.yef)(e,t,i),(0,a.$Tr)(t,n,i),r=!0},p:function(t,n){var r={};1&n&&(r.node=t[8]),e.$set(r)},i:function(t){r||((0,a.Ui)(e.$$.fragment,t),r=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),r=!1},d:function(t){(0,a.vpE)(e,t),t&&(0,a.ogt)(n)}}}function Vr(t){var e,n,r,i,o=t[0].nodeName+"";return{c:function(){e=(0,a.bGB)("span"),n=(0,a.fLW)("</"),r=(0,a.fLW)(o),i=(0,a.fLW)(">"),(0,a.Ljt)(e,"class","vcelm-node")},m:function(t,o){(0,a.$Tr)(t,e,o),(0,a.R3I)(e,n),(0,a.R3I)(e,r),(0,a.R3I)(e,i)},p:function(t,e){1&e&&o!==(o=t[0].nodeName+"")&&(0,a.rTO)(r,o)},d:function(t){t&&(0,a.ogt)(e)}}}function $r(t){var e,n,r=t[1](t[0].textContent)+"";return{c:function(){e=(0,a.bGB)("span"),n=(0,a.fLW)(r),(0,a.Ljt)(e,"class","vcelm-t vcelm-noc")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n)},p:function(t,e){1&e&&r!==(r=t[1](t[0].textContent)+"")&&(0,a.rTO)(n,r)},d:function(t){t&&(0,a.ogt)(e)}}}function Gr(t){var e,n,r=t[0]&&Ar(t);return{c:function(){r&&r.c(),e=(0,a.cSb)()},m:function(t,i){r&&r.m(t,i),(0,a.$Tr)(t,e,i),n=!0},p:function(t,n){var i=n[0];t[0]?r?(r.p(t,i),1&i&&(0,a.Ui)(r,1)):((r=Ar(t)).c(),(0,a.Ui)(r,1),r.m(e.parentNode,e)):r&&((0,a.dvw)(),(0,a.etI)(r,1,1,function(){r=null}),(0,a.gbL)())},i:function(t){n||((0,a.Ui)(r),n=!0)},o:function(t){(0,a.etI)(r),n=!1},d:function(t){r&&r.d(t),t&&(0,a.ogt)(e)}}}function Hr(t,e,n){var r;(0,a.FIv)(t,xr,function(t){return n(3,r=t)});var i=e.node,o=(0,s.x)(),l=["br","hr","img","input","link","meta"];return(0,s.H3)(function(){Mr.use()}),(0,s.ev)(function(){Mr.unuse()}),t.$$set=function(t){"node"in t&&n(0,i=t.node)},t.$$.update=function(){9&t.$$.dirty&&i&&(n(0,i._isActived=i===r,i),n(0,i._isNullEndTag=function(t){return l.indexOf(t.nodeName)>-1}(i),i),n(0,i._isSingleLine=0===i.childNodes.length||i._isNullEndTag,i))},[i,function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},function(){i._isNullEndTag||(n(0,i._isExpand=!i._isExpand,i),o("toggleNode",{node:i}))},r,function(e){a.cKT.call(this,t,e)}]}var Wr=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,i.Z)(n),t,Hr,Gr,a.N8,{node:0}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"node",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({node:t}),(0,a.yl1)()}}]),n}(a.f_C),Ur=Wr;function Yr(t){var e,n,r;return(n=new Ur({props:{node:t[0]}})).$on("toggleNode",t[1]),{c:function(){e=(0,a.bGB)("div"),(0,a.YCL)(n.$$.fragment),(0,a.Ljt)(e,"class","vc-plugin-content")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.yef)(n,e,null),r=!0},p:function(t,e){var r={};1&e[0]&&(r.node=t[0]),n.$set(r)},i:function(t){r||((0,a.Ui)(n.$$.fragment,t),r=!0)},o:function(t){(0,a.etI)(n.$$.fragment,t),r=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(n)}}}function Xr(t,e,n){var r;return(0,a.FIv)(t,_r,function(t){return n(0,r=t)}),[r,function(e){a.cKT.call(this,t,e)}]}var qr=function(t){function e(e){var n;return n=t.call(this)||this,(0,a.S1n)((0,i.Z)(n),e,Xr,Yr,a.N8,{}),n}return(0,o.Z)(e,t),e}(a.f_C),Zr=function(t){function e(e,n,r){var i;return void 0===r&&(r={}),(i=t.call(this,e,n,qr,r)||this).isInited=!1,i.observer=void 0,i.nodeMap=void 0,i}(0,o.Z)(e,t);var n=e.prototype;return n.onShow=function(){this.isInited||this._init()},n.onRemove=function(){t.prototype.onRemove.call(this),this.isInited&&(this.observer.disconnect(),this.isInited=!1,this.nodeMap=void 0,_r.set(void 0))},n.onAddTool=function(t){var e=this;t([{name:"Expand",global:!1,onClick:function(t){e._expandActivedNode()}},{name:"Collapse",global:!1,onClick:function(t){e._collapseActivedNode()}}])},n._init=function(){var t=this;this.isInited=!0,this.nodeMap=new WeakMap;var e=this._generateVNode(document.documentElement);e._isExpand=!0,xr.set(e),_r.set(e),this.compInstance.$on("toggleNode",function(t){xr.set(t.detail.node)}),this.observer=new(br())(function(e){for(var n=0;n<e.length;n++){var r=e[n];t._isInVConsole(r.target)||t._handleMutation(r)}}),this.observer.observe(document.documentElement,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},n._handleMutation=function(t){switch(t.type){case"childList":t.removedNodes.length>0&&this._onChildRemove(t),t.addedNodes.length>0&&this._onChildAdd(t);break;case"attributes":this._onAttributesChange(t);break;case"characterData":this._onCharacterDataChange(t)}},n._onChildRemove=function(t){var e=this.nodeMap.get(t.target);if(e){for(var n=0;n<t.removedNodes.length;n++){var r=this.nodeMap.get(t.removedNodes[n]);if(r){for(var i=0;i<e.childNodes.length;i++)if(e.childNodes[i]===r){e.childNodes.splice(i,1);break}this.nodeMap.delete(t.removedNodes[n])}}this._refreshStore()}},n._onChildAdd=function(t){var e=this.nodeMap.get(t.target);if(e){for(var n=0;n<t.addedNodes.length;n++){var r=t.addedNodes[n],i=this._generateVNode(r);if(i){var o=void 0,a=r;do{if(null===a.nextSibling)break;a.nodeType===Node.ELEMENT_NODE&&(o=this.nodeMap.get(a.nextSibling)||void 0),a=a.nextSibling}while(void 0===o);if(void 0===o)e.childNodes.push(i);else for(var s=0;s<e.childNodes.length;s++)if(e.childNodes[s]===o){e.childNodes.splice(s,0,i);break}}}this._refreshStore()}},n._onAttributesChange=function(t){this._updateVNodeAttributes(t.target),this._refreshStore()},n._onCharacterDataChange=function(t){var e=this.nodeMap.get(t.target);e&&(e.textContent=t.target.textContent,this._refreshStore())},n._generateVNode=function(t){if(!this._isIgnoredNode(t)){var e={nodeType:t.nodeType,nodeName:t.nodeName.toLowerCase(),textContent:"",id:"",className:"",attributes:[],childNodes:[]};if(this.nodeMap.set(t,e),e.nodeType!=t.TEXT_NODE&&e.nodeType!=t.DOCUMENT_TYPE_NODE||(e.textContent=t.textContent),t.childNodes.length>0){e.childNodes=[];for(var n=0;n<t.childNodes.length;n++){var r=this._generateVNode(t.childNodes[n]);r&&e.childNodes.push(r)}}return this._updateVNodeAttributes(t),e}},n._updateVNodeAttributes=function(t){var e=this.nodeMap.get(t);if(e&&t instanceof Element&&(e.id=t.id||"",e.className=t.className||"",t.hasAttributes&&t.hasAttributes())){e.attributes=[];for(var n=0;n<t.attributes.length;n++)e.attributes.push({name:t.attributes[n].name,value:t.attributes[n].value||""})}},n._expandActivedNode=function(){var t=(0,_n.U2)(xr);if(t._isExpand)for(var e=0;e<t.childNodes.length;e++)t.childNodes[e]._isExpand=!0;else t._isExpand=!0;this._refreshStore()},n._collapseActivedNode=function(){var t=(0,_n.U2)(xr);if(t._isExpand){for(var e=!1,n=0;n<t.childNodes.length;n++)t.childNodes[n]._isExpand&&(e=!0,t.childNodes[n]._isExpand=!1);e||(t._isExpand=!1),this._refreshStore()}},n._isIgnoredNode=function(t){if(t.nodeType===t.TEXT_NODE){if(""===t.textContent.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$|\n+/g,""))return!0}else if(t.nodeType===t.COMMENT_NODE)return!0;return!1},n._isInVConsole=function(t){for(var e=t;void 0!==e;){if("__vconsole"==e.id)return!0;e=e.parentElement||void 0}return!1},n._refreshStore=function(){_r.update(function(t){return t})},e}(nt);function Kr(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Jr(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){Kr(o,r,i,a,s,"next",t)}function s(t){Kr(o,r,i,a,s,"throw",t)}a(void 0)})}}var Qr=__webpack_require__(8270);function ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ei(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(n),!0).forEach(function(e){(0,Qr.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ni=function(t){if(!t||0===t.length)return{};for(var e={},n=t.split(";"),r=0;r<n.length;r++){var i=n[r].indexOf("=");if(!(i<0)){var o=n[r].substring(0,i).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),a=n[r].substring(i+1,n[r].length);try{o=decodeURIComponent(o)}catch(t){}try{a=decodeURIComponent(a)}catch(t){}e[o]=a}}return e},ri=function(t,e,n){"undefined"!=typeof document&&void 0!==document.cookie&&(document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+function(t){void 0===t&&(t={});var e=t,n=e.path,r=e.domain,i=e.expires,o=e.secure,a=e.sameSite,s=["none","lax","strict"].indexOf((a||"").toLowerCase())>-1?a:null;return[null==n?"":";path="+n,null==r?"":";domain="+r,null==i?"":";expires="+i.toUTCString(),void 0===o||!1===o?"":";secure",null===s?"":";SameSite="+s].join("")}(n))},ii=function(){return"undefined"==typeof document||void 0===document.cookie?"":document.cookie},oi=function(){function e(){}var n=e.prototype;return n.key=function(t){return t<this.keys.length?this.keys[t]:null},n.setItem=function(t,e,n){ri(t,e,n)},n.getItem=function(t){var e=ni(ii());return Object.prototype.hasOwnProperty.call(e,t)?e[t]:null},n.removeItem=function(t,e){for(var n,r,i=["","/"],o=(null==(n=location)||null==(r=n.hostname)?void 0:r.split("."))||[];o.length>1;)i.push(o.join(".")),o.shift();for(var a=0;a<i.length;a++)for(var s,l,u=(null==(s=location)||null==(l=s.pathname)?void 0:l.split("/"))||[],c="";u.length>0;){c+=("/"===c?"":"/")+u.shift();var h=ei(ei({},e),{},{path:c,domain:i[a],expires:new Date(0)});ri(t,"",h)}},n.clear=function(){for(var t=[].concat(this.keys),e=0;e<t.length;e++)this.removeItem(t[e])},(0,t.Z)(e,[{key:"length",get:function(){return this.keys.length}},{key:"keys",get:function(){var t=ni(ii());return Object.keys(t).sort()}}]),e}(),ai=function(){function n(){this.keys=[],this.currentSize=0,this.limitSize=0}var r=n.prototype;return r.key=function(t){return t<this.keys.length?this.keys[t]:null},r.prepare=function(){var t=Jr(ge().mark(function t(){var n=this;return ge().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,r){(0,e.qt)("getStorageInfo",{success:function(e){n.keys=e?e.keys.sort():[],n.currentSize=e?e.currentSize:0,n.limitSize=e?e.limitSize:0,t(!0)},fail:function(){r(!1)}})}));case 1:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),r.getItem=function(t){return new Promise(function(n,r){(0,e.qt)("getStorage",{key:t,success:function(t){var e=t.data;if("object"==typeof t.data)try{e=JSON.stringify(t.data)}catch(t){}n(e)},fail:function(t){r(t)}})})},r.setItem=function(t,n){return new Promise(function(r,i){(0,e.qt)("setStorage",{key:t,data:n,success:function(t){r(t)},fail:function(t){i(t)}})})},r.removeItem=function(t){return new Promise(function(n,r){(0,e.qt)("removeStorage",{key:t,success:function(t){n(t)},fail:function(t){r(t)}})})},r.clear=function(){return new Promise(function(t,n){(0,e.qt)("clearStorage",{success:function(e){t(e)},fail:function(t){n(t)}})})},(0,t.Z)(n,[{key:"length",get:function(){return this.keys.length}}]),n}(),si={updateTime:(0,_n.fZ)(0),activedName:(0,_n.fZ)(null),defaultStorages:(0,_n.fZ)(["cookies","localStorage","sessionStorage"])},li=function(n){function r(){var t;return(t=n.call(this)||this).storage=new Map,si.activedName.subscribe(function(t){var e=(0,_n.U2)(si.defaultStorages);e.length>0&&-1===e.indexOf(t)&&si.activedName.set(e[0])}),si.defaultStorages.subscribe(function(e){-1===e.indexOf((0,_n.U2)(si.activedName))&&si.activedName.set(e[0]),t.updateEnabledStorages()}),t}(0,o.Z)(r,n);var i=r.prototype;return i.getItem=function(){var t=Jr(ge().mark(function t(e){return ge().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return","");case 2:return t.next=4,this.promisify(this.activedStorage.getItem(e));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),i.setItem=function(){var t=Jr(ge().mark(function t(e,n){var r;return ge().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.promisify(this.activedStorage.setItem(e,n));case 4:return r=t.sent,this.refresh(),t.abrupt("return",r);case 7:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}(),i.removeItem=function(){var t=Jr(ge().mark(function t(e){var n;return ge().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.promisify(this.activedStorage.removeItem(e));case 4:return n=t.sent,this.refresh(),t.abrupt("return",n);case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),i.clear=function(){var t=Jr(ge().mark(function t(){var e;return ge().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.promisify(this.activedStorage.clear());case 4:return e=t.sent,this.refresh(),t.abrupt("return",e);case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.refresh=function(){si.updateTime.set(Date.now())},i.getEntries=function(){var t=Jr(ge().mark(function t(){var e,n,r,i,o;return ge().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.activedStorage){t.next=3;break}return t.abrupt("return",[]);case 3:if("function"!=typeof e.prepare){t.next=6;break}return t.next=6,e.prepare();case 6:n=[],r=0;case 8:if(!(r<e.length)){t.next=17;break}return i=e.key(r),t.next=12,this.getItem(i);case 12:o=t.sent,n.push([i,o]);case 14:r++,t.next=8;break;case 17:return t.abrupt("return",n);case 18:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.updateEnabledStorages=function(){var t=(0,_n.U2)(si.defaultStorages);t.indexOf("cookies")>-1?void 0!==document.cookie&&this.storage.set("cookies",new oi):this.deleteStorage("cookies"),t.indexOf("localStorage")>-1?window.localStorage&&this.storage.set("localStorage",window.localStorage):this.deleteStorage("localStorage"),t.indexOf("sessionStorage")>-1?window.sessionStorage&&this.storage.set("sessionStorage",window.sessionStorage):this.deleteStorage("sessionStorage"),t.indexOf("wxStorage")>-1?(0,e.H_)()&&this.storage.set("wxStorage",new ai):this.deleteStorage("wxStorage")},i.promisify=function(t){return"string"==typeof t||null==t?Promise.resolve(t):t},i.deleteStorage=function(t){this.storage.has(t)&&this.storage.delete(t)},(0,t.Z)(r,[{key:"activedStorage",get:function(){return this.storage.get((0,_n.U2)(si.activedName))}}]),r}(xn.N);function ui(t,e,n){var r=t.slice();return r[20]=e[n][0],r[21]=e[n][1],r[23]=n,r}function ci(t){var e;return{c:function(){(e=(0,a.bGB)("div")).textContent="Empty",(0,a.Ljt)(e,"class","vc-plugin-empty")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function hi(t){var e,n,r,i,o,s=t[20]+"",l=t[5](t[21])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(s),r=(0,a.DhX)(),i=(0,a.bGB)("div"),o=(0,a.fLW)(l),(0,a.Ljt)(e,"class","vc-table-col"),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-2")},m:function(t,s){(0,a.$Tr)(t,e,s),(0,a.R3I)(e,n),(0,a.$Tr)(t,r,s),(0,a.$Tr)(t,i,s),(0,a.R3I)(i,o)},p:function(t,e){1&e&&s!==(s=t[20]+"")&&(0,a.rTO)(n,s),1&e&&l!==(l=t[5](t[21])+"")&&(0,a.rTO)(o,l)},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(r),t&&(0,a.ogt)(i)}}}function di(t){var e,n,r,i,o,s,l;return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("textarea"),r=(0,a.DhX)(),i=(0,a.bGB)("div"),o=(0,a.bGB)("textarea"),(0,a.Ljt)(n,"class","vc-table-input"),(0,a.Ljt)(e,"class","vc-table-col"),(0,a.Ljt)(o,"class","vc-table-input"),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-2")},m:function(u,c){(0,a.$Tr)(u,e,c),(0,a.R3I)(e,n),(0,a.BmG)(n,t[2]),(0,a.$Tr)(u,r,c),(0,a.$Tr)(u,i,c),(0,a.R3I)(i,o),(0,a.BmG)(o,t[3]),s||(l=[(0,a.oLt)(n,"input",t[11]),(0,a.oLt)(o,"input",t[12])],s=!0)},p:function(t,e){4&e&&(0,a.BmG)(n,t[2]),8&e&&(0,a.BmG)(o,t[3])},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(r),t&&(0,a.ogt)(i),s=!1,(0,a.j7q)(l)}}}function fi(t){var e,n,r,i,o,s;return(e=new ot.Z({props:{name:"delete"}})).$on("click",function(){return t[14](t[20])}),r=new lt({props:{content:[t[20],t[21]].join("=")}}),(o=new ot.Z({props:{name:"edit"}})).$on("click",function(){return t[15](t[20],t[21],t[23])}),{c:function(){(0,a.YCL)(e.$$.fragment),n=(0,a.DhX)(),(0,a.YCL)(r.$$.fragment),i=(0,a.DhX)(),(0,a.YCL)(o.$$.fragment)},m:function(t,l){(0,a.yef)(e,t,l),(0,a.$Tr)(t,n,l),(0,a.yef)(r,t,l),(0,a.$Tr)(t,i,l),(0,a.yef)(o,t,l),s=!0},p:function(e,n){t=e;var i={};1&n&&(i.content=[t[20],t[21]].join("=")),r.$set(i)},i:function(t){s||((0,a.Ui)(e.$$.fragment,t),(0,a.Ui)(r.$$.fragment,t),(0,a.Ui)(o.$$.fragment,t),s=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),(0,a.etI)(r.$$.fragment,t),(0,a.etI)(o.$$.fragment,t),s=!1},d:function(t){(0,a.vpE)(e,t),t&&(0,a.ogt)(n),(0,a.vpE)(r,t),t&&(0,a.ogt)(i),(0,a.vpE)(o,t)}}}function pi(t){var e,n,r,i;return(e=new ot.Z({props:{name:"cancel"}})).$on("click",t[9]),(r=new ot.Z({props:{name:"done"}})).$on("click",function(){return t[13](t[20])}),{c:function(){(0,a.YCL)(e.$$.fragment),n=(0,a.DhX)(),(0,a.YCL)(r.$$.fragment)},m:function(t,o){(0,a.yef)(e,t,o),(0,a.$Tr)(t,n,o),(0,a.yef)(r,t,o),i=!0},p:function(e,n){t=e},i:function(t){i||((0,a.Ui)(e.$$.fragment,t),(0,a.Ui)(r.$$.fragment,t),i=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),(0,a.etI)(r.$$.fragment,t),i=!1},d:function(t){(0,a.vpE)(e,t),t&&(0,a.ogt)(n),(0,a.vpE)(r,t)}}}function gi(t){var e,n,r,i,o,s,l;function u(t,e){return t[1]===t[23]?di:hi}var c=u(t),h=c(t),d=[pi,fi],f=[];function p(t,e){return t[1]===t[23]?0:1}return i=p(t),o=f[i]=d[i](t),{c:function(){e=(0,a.bGB)("div"),h.c(),n=(0,a.DhX)(),r=(0,a.bGB)("div"),o.c(),s=(0,a.DhX)(),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-1 vc-table-action"),(0,a.Ljt)(e,"class","vc-table-row")},m:function(t,o){(0,a.$Tr)(t,e,o),h.m(e,null),(0,a.R3I)(e,n),(0,a.R3I)(e,r),f[i].m(r,null),(0,a.R3I)(e,s),l=!0},p:function(t,s){c===(c=u(t))&&h?h.p(t,s):(h.d(1),(h=c(t))&&(h.c(),h.m(e,n)));var l=i;(i=p(t))===l?f[i].p(t,s):((0,a.dvw)(),(0,a.etI)(f[l],1,1,function(){f[l]=null}),(0,a.gbL)(),(o=f[i])?o.p(t,s):(o=f[i]=d[i](t)).c(),(0,a.Ui)(o,1),o.m(r,null))},i:function(t){l||((0,a.Ui)(o),l=!0)},o:function(t){(0,a.etI)(o),l=!1},d:function(t){t&&(0,a.ogt)(e),h.d(),f[i].d()}}}function vi(t){for(var e,n,r,i,o=t[0],s=[],l=0;l<o.length;l+=1)s[l]=gi(ui(t,o,l));var u=function(t){return(0,a.etI)(s[t],1,1,function(){s[t]=null})},c=null;return o.length||(c=ci()),{c:function(){e=(0,a.bGB)("div"),(n=(0,a.bGB)("div")).innerHTML='<div class="vc-table-col">Key</div> \n <div class="vc-table-col vc-table-col-2">Value</div> \n <div class="vc-table-col vc-table-col-1 vc-table-action"></div>',r=(0,a.DhX)();for(var t=0;t<s.length;t+=1)s[t].c();c&&c.c(),(0,a.Ljt)(n,"class","vc-table-row"),(0,a.Ljt)(e,"class","vc-table")},m:function(t,o){(0,a.$Tr)(t,e,o),(0,a.R3I)(e,n),(0,a.R3I)(e,r);for(var l=0;l<s.length;l+=1)s[l].m(e,null);c&&c.m(e,null),i=!0},p:function(t,n){var r=n[0];if(1007&r){var i;for(o=t[0],i=0;i<o.length;i+=1){var l=ui(t,o,i);s[i]?(s[i].p(l,r),(0,a.Ui)(s[i],1)):(s[i]=gi(l),s[i].c(),(0,a.Ui)(s[i],1),s[i].m(e,null))}for((0,a.dvw)(),i=o.length;i<s.length;i+=1)u(i);(0,a.gbL)(),!o.length&&c?c.p(t,r):o.length?c&&(c.d(1),c=null):((c=ci()).c(),c.m(e,null))}},i:function(t){if(!i){for(var e=0;e<o.length;e+=1)(0,a.Ui)(s[e]);i=!0}},o:function(t){s=s.filter(Boolean);for(var e=0;e<s.length;e+=1)(0,a.etI)(s[e]);i=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.RMB)(s,t),c&&c.d()}}}function mi(t,n,r){var i,o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},s=li.getSingleton(li,"VConsoleStorageModel"),l=si.updateTime;(0,a.FIv)(t,l,function(t){return r(10,i=t)});var u=[],c=-1,h="",d="",f=function(){r(1,c=-1),r(2,h=""),r(3,d="")},p=function(t){return o(void 0,void 0,void 0,ge().mark(function e(){return ge().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.removeItem(t);case 2:case"end":return e.stop()}},e)}))},g=function(t){return o(void 0,void 0,void 0,ge().mark(function e(){return ge().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h===t){e.next=3;break}return e.next=3,s.removeItem(t);case 3:s.setItem(h,d),f();case 5:case"end":return e.stop()}},e)}))},v=function(t,e,n){return o(void 0,void 0,void 0,ge().mark(function i(){return ge().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:r(2,h=t),r(3,d=e),r(1,c=n);case 3:case"end":return i.stop()}},i)}))};return t.$$.update=function(){1024&t.$$.dirty&&i&&o(void 0,void 0,void 0,ge().mark(function t(){return ge().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return f(),t.t0=r,t.next=4,s.getEntries();case 4:t.t1=u=t.sent,(0,t.t0)(0,t.t1);case 6:case"end":return t.stop()}},t)}))},[u,c,h,d,l,function(t){return(0,e.id)(t,1024)},p,g,v,function(){f()},i,function(){h=this.value,r(2,h)},function(){d=this.value,r(3,d)},function(t){return g(t)},function(t){return p(t)},function(t,e,n){return v(t,e,n)}]}var yi=function(t){function e(e){var n;return n=t.call(this)||this,(0,a.S1n)((0,i.Z)(n),e,mi,vi,a.N8,{}),n}return(0,o.Z)(e,t),e}(a.f_C),bi=function(t){function n(e,n,r){var i;return void 0===r&&(r={}),(i=t.call(this,e,n,yi,r)||this).model=li.getSingleton(li,"VConsoleStorageModel"),i.onAddTopBarCallback=void 0,i}(0,o.Z)(n,t);var r=n.prototype;return r.onReady=function(){t.prototype.onReady.call(this),this.onUpdateOption()},r.onShow=function(){this.model.refresh()},r.onAddTopBar=function(t){this.onAddTopBarCallback=t,this.updateTopBar()},r.onAddTool=function(t){var e=this;t([{name:"Add",global:!1,onClick:function(){e.model.setItem("new_"+Date.now(),"new_value")}},{name:"Refresh",global:!1,onClick:function(){e.model.refresh()}},{name:"Clear",global:!1,onClick:function(){e.model.clear()}}])},r.onUpdateOption=function(){var t,n=null==(t=this.vConsole.option.storage)?void 0:t.defaultStorages;(0,e.kJ)(n)&&(n=n.length>0?n:["cookies"])!==(0,_n.U2)(si.defaultStorages)&&(si.defaultStorages.set(n),si.activedName.set(n[0]),this.updateTopBar())},r.updateTopBar=function(){var t=this;if("function"==typeof this.onAddTopBarCallback){for(var e=(0,_n.U2)(si.defaultStorages),n=[],r=0;r<e.length;r++){var i=e[r];n.push({name:i[0].toUpperCase()+i.substring(1),data:{name:i},actived:i===(0,_n.U2)(si.activedName),onClick:function(e,n){var r=(0,_n.U2)(si.activedName);if(n.name===r)return!1;si.activedName.set(n.name),t.model.refresh()}})}this.onAddTopBarCallback(n)}},n}(nt),_i=function(){function n(t){var i=this;if(this.version="3.15.1",this.isInited=!1,this.option={},this.compInstance=void 0,this.pluginList={},this.log=void 0,this.system=void 0,this.network=void 0,n.instance&&n.instance instanceof n)return console.debug("[vConsole] vConsole is already exists."),n.instance;if(n.instance=this,this.isInited=!1,this.option={defaultPlugins:["system","network","element","storage"],log:{},network:{},storage:{}},e.Kn(t))for(var o in t)this.option[o]=t[o];void 0!==this.option.maxLogNumber&&(this.option.log.maxLogNumber=this.option.maxLogNumber,console.debug("[vConsole] Deprecated option: `maxLogNumber`, use `log.maxLogNumber` instead.")),void 0!==this.option.onClearLog&&console.debug("[vConsole] Deprecated option: `onClearLog`."),void 0!==this.option.maxNetworkNumber&&(this.option.network.maxNetworkNumber=this.option.maxNetworkNumber,console.debug("[vConsole] Deprecated option: `maxNetworkNumber`, use `network.maxNetworkNumber` instead.")),this._addBuiltInPlugins();var a,s=function(){i.isInited||(i._initComponent(),i._autoRun())};void 0!==document?"loading"===document.readyState?r.bind(window,"DOMContentLoaded",s):s():a=setTimeout(function t(){document&&"complete"==document.readyState?(a&&clearTimeout(a),s()):a=setTimeout(t,1)},1)}var i=n.prototype;return i._addBuiltInPlugins=function(){this.addPlugin(new yn("default","Log"));var t=this.option.defaultPlugins,n={system:{proto:bn,name:"System"}};if(n.network={proto:mr,name:"Network"},n.element={proto:Zr,name:"Element"},n.storage={proto:bi,name:"Storage"},t&&e.kJ(t))for(var r=0;r<t.length;r++){var i=n[t[r]];i?this.addPlugin(new i.proto(t[r],i.name)):console.debug("[vConsole] Unrecognized default plugin ID:",t[r])}},i._initComponent=function(){var t=this;if(!r.one("#__vconsole")){var n,i=1*e.cF("switch_x"),o=1*e.cF("switch_y");"string"==typeof this.option.target?n=document.querySelector(this.option.target):this.option.target instanceof HTMLElement&&(n=this.option.target),n instanceof HTMLElement||(n=document.documentElement),this.compInstance=new tt({target:n,props:{switchButtonPosition:{x:i,y:o}}}),this.compInstance.$on("show",function(e){e.detail.show?t.show():t.hide()}),this.compInstance.$on("changePanel",function(e){var n=e.detail.pluginId;t.showPlugin(n)})}this._updateComponentByOptions()},i._updateComponentByOptions=function(){if(this.compInstance){if(this.compInstance.theme!==this.option.theme){var t=this.option.theme;t="light"!==t&&"dark"!==t?"":t,this.compInstance.theme=t}this.compInstance.disableScrolling!==this.option.disableLogScrolling&&(this.compInstance.disableScrolling=!!this.option.disableLogScrolling)}},i.setSwitchPosition=function(t,e){this.compInstance.switchButtonPosition={x:t,y:e}},i._autoRun=function(){for(var t in this.isInited=!0,this.pluginList)this._initPlugin(this.pluginList[t]);this._showFirstPluginWhenEmpty(),this.triggerEvent("ready")},i._showFirstPluginWhenEmpty=function(){var t=Object.keys(this.pluginList);""===this.compInstance.activedPluginId&&t.length>0&&this.showPlugin(t[0])},i.triggerEvent=function(t,n){var r=this;t="on"+t.charAt(0).toUpperCase()+t.slice(1),e.mf(this.option[t])&&setTimeout(function(){r.option[t].apply(r,n)},0)},i._initPlugin=function(t){var e=this;t.vConsole=this,this.compInstance.pluginList[t.id]={id:t.id,name:t.name,hasTabPanel:!1,tabOptions:void 0,topbarList:[],toolbarList:[],content:void 0,contentContainer:void 0},this.compInstance.pluginList=this._reorderPluginList(this.compInstance.pluginList),t.trigger("init"),t.trigger("renderTab",function(n,r){void 0===r&&(r={});var i=e.compInstance.pluginList[t.id];i.hasTabPanel=!0,i.tabOptions=r,n&&(e.compInstance.pluginList[t.id].content=n),e.compInstance.pluginList=e.compInstance.pluginList}),t.trigger("addTopBar",function(n){if(n){for(var r=[],i=0;i<n.length;i++){var o=n[i];r.push({name:o.name||"Undefined",className:o.className||"",actived:!!o.actived,data:o.data,onClick:o.onClick})}e.compInstance.pluginList[t.id].topbarList=r,e.compInstance.pluginList=e.compInstance.pluginList}}),t.trigger("addTool",function(n){if(n){for(var r=[],i=0;i<n.length;i++){var o=n[i];r.push({name:o.name||"Undefined",global:!!o.global,data:o.data,onClick:o.onClick})}e.compInstance.pluginList[t.id].toolbarList=r,e.compInstance.pluginList=e.compInstance.pluginList}}),t.isReady=!0,t.trigger("ready")},i._triggerPluginsEvent=function(t){for(var e in this.pluginList)this.pluginList[e].isReady&&this.pluginList[e].trigger(t)},i._triggerPluginEvent=function(t,e){var n=this.pluginList[t];n&&n.isReady&&n.trigger(e)},i._reorderPluginList=function(t){var n=this;if(!e.kJ(this.option.pluginOrder))return t;for(var r=Object.keys(t).sort(function(t,e){var r=n.option.pluginOrder.indexOf(t),i=n.option.pluginOrder.indexOf(e);return r===i?0:-1===r?1:-1===i?-1:r-i}),i={},o=0;o<r.length;o++)i[r[o]]=t[r[o]];return i},i.addPlugin=function(t){return void 0!==this.pluginList[t.id]?(console.debug("[vConsole] Plugin `"+t.id+"` has already been added."),!1):(this.pluginList[t.id]=t,this.isInited&&(this._initPlugin(t),this._showFirstPluginWhenEmpty()),!0)},i.removePlugin=function(t){t=(t+"").toLowerCase();var e=this.pluginList[t];if(void 0===e)return console.debug("[vConsole] Plugin `"+t+"` does not exist."),!1;e.trigger("remove");try{delete this.pluginList[t],delete this.compInstance.pluginList[t]}catch(e){this.pluginList[t]=void 0,this.compInstance.pluginList[t]=void 0}return this.compInstance.pluginList=this.compInstance.pluginList,this.compInstance.activedPluginId==t&&(this.compInstance.activedPluginId="",this._showFirstPluginWhenEmpty()),!0},i.show=function(){this.isInited&&(this.compInstance.show=!0,this._triggerPluginsEvent("showConsole"))},i.hide=function(){this.isInited&&(this.compInstance.show=!1,this._triggerPluginsEvent("hideConsole"))},i.showSwitch=function(){this.isInited&&(this.compInstance.showSwitchButton=!0)},i.hideSwitch=function(){this.isInited&&(this.compInstance.showSwitchButton=!1)},i.showPlugin=function(t){this.isInited&&(this.pluginList[t]||console.debug("[vConsole] Plugin `"+t+"` does not exist."),this.compInstance.activedPluginId&&this._triggerPluginEvent(this.compInstance.activedPluginId,"hide"),this.compInstance.activedPluginId=t,this._triggerPluginEvent(this.compInstance.activedPluginId,"show"))},i.setOption=function(t,n){if("string"==typeof t){for(var r=t.split("."),i=this.option,o=0;o<r.length;o++){if("__proto__"===r[o]||"constructor"===r[o]||"prototype"===r[o])return void console.debug("[vConsole] Cannot set `"+r[o]+"` in `vConsole.setOption()`.");void 0===i[r[o]]&&(i[r[o]]={}),o===r.length-1&&(i[r[o]]=n),i=i[r[o]]}this._triggerPluginsEvent("updateOption"),this._updateComponentByOptions()}else if(e.Kn(t)){for(var a in t)"__proto__"!==a&&"constructor"!==a&&"prototype"!==a?this.option[a]=t[a]:console.debug("[vConsole] Cannot set `"+a+"` in `vConsole.setOption()`.");this._triggerPluginsEvent("updateOption"),this._updateComponentByOptions()}else console.debug("[vConsole] The first parameter of `vConsole.setOption()` must be a string or an object.")},i.destroy=function(){if(this.isInited){this.isInited=!1,n.instance=void 0;for(var t=Object.keys(this.pluginList),e=t.length-1;e>=0;e--)this.removePlugin(t[e]);this.compInstance.$destroy()}},(0,t.Z)(n,null,[{key:"instance",get:function(){return window.__VCONSOLE_INSTANCE},set:function(t){void 0===t||t instanceof n?window.__VCONSOLE_INSTANCE=t:console.debug("[vConsole] Cannot set `VConsole.instance` because the value is not the instance of VConsole.")}}]),n}();_i.VConsolePlugin=void 0,_i.VConsoleLogPlugin=void 0,_i.VConsoleDefaultPlugin=void 0,_i.VConsoleSystemPlugin=void 0,_i.VConsoleNetworkPlugin=void 0,_i.VConsoleElementPlugin=void 0,_i.VConsoleStoragePlugin=void 0,_i.VConsolePlugin=et,_i.VConsoleLogPlugin=mn,_i.VConsoleDefaultPlugin=yn,_i.VConsoleSystemPlugin=bn,_i.VConsoleNetworkPlugin=mr,_i.VConsoleElementPlugin=Zr,_i.VConsoleStoragePlugin=bi;var xi=_i}(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__}()},module.exports=n()}).call(exports,__webpack_require__("DuR2"))},"M+GW":function(t,e,n){"use strict";var r=n("+N5+").isSpace;t.exports=function(t,e,n,i){var o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C,k=t.lineMax,O=t.bMarks[e]+t.tShift[e],M=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt(O))return!1;if(i)return!0;for(p=[],g=[],y=[],b=[],w=t.md.block.ruler.getRules("blockquote"),m=t.parentType,t.parentType="blockquote",d=e;d<n&&(C=t.sCount[d]<t.blkIndent,!((O=t.bMarks[d]+t.tShift[d])>=(M=t.eMarks[d])));d++)if(62!==t.src.charCodeAt(O++)||C){if(c)break;for(x=!1,s=0,u=w.length;s<u;s++)if(w[s](t,d,n,!0)){x=!0;break}if(x){t.lineMax=d,0!==t.blkIndent&&(p.push(t.bMarks[d]),g.push(t.bsCount[d]),b.push(t.tShift[d]),y.push(t.sCount[d]),t.sCount[d]-=t.blkIndent);break}p.push(t.bMarks[d]),g.push(t.bsCount[d]),b.push(t.tShift[d]),y.push(t.sCount[d]),t.sCount[d]=-1}else{for(l=t.sCount[d]+1,32===t.src.charCodeAt(O)?(O++,l++,o=!1,_=!0):9===t.src.charCodeAt(O)?(_=!0,(t.bsCount[d]+l)%4==3?(O++,l++,o=!1):o=!0):_=!1,f=l,p.push(t.bMarks[d]),t.bMarks[d]=O;O<M&&(a=t.src.charCodeAt(O),r(a));)9===a?f+=4-(f+t.bsCount[d]+(o?1:0))%4:f++,O++;c=O>=M,g.push(t.bsCount[d]),t.bsCount[d]=t.sCount[d]+1+(_?1:0),y.push(t.sCount[d]),t.sCount[d]=f-l,b.push(t.tShift[d]),t.tShift[d]=O-t.bMarks[d]}for(v=t.blkIndent,t.blkIndent=0,(S=t.push("blockquote_open","blockquote",1)).markup=">",S.map=h=[e,0],t.md.block.tokenize(t,e,d),(S=t.push("blockquote_close","blockquote",-1)).markup=">",t.lineMax=k,t.parentType=m,h[1]=t.line,s=0;s<b.length;s++)t.bMarks[s+e]=p[s],t.tShift[s+e]=b[s],t.sCount[s+e]=y[s],t.bsCount[s+e]=g[s];return t.blkIndent=v,!0}},M6a0:function(t,e){},MAlW:function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,i=n;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}},MHwQ:function(t,e,n){"use strict";var r=n("BldQ"),i=[["normalize",n("N/bT")],["block",n("q/Lo")],["inline",n("uiO5")],["linkify",n("6nDL")],["replacements",n("ai7u")],["smartquotes",n("S/pY")],["text_join",n("LSQh")]];function o(){this.ruler=new r;for(var t=0;t<i.length;t++)this.ruler.push(i[t][0],i[t][1])}o.prototype.process=function(t){var e,n,r;for(e=0,n=(r=this.ruler.getRules("")).length;e<n;e++)r[e](t)},o.prototype.State=n("8PNL"),t.exports=o},MTK1:function(t,e,n){"use strict";var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}var a=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},s=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}},l=n("6zlC");function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function c(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=u(e,n.getCanvasBBox())),r&&(e=u(e,r.getCanvasBBox())),e}var h=n("Tb0P"),d=n("wHEO"),f=n("IgWN");function p(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!l||0===Math.sin(l)||Object(f.isNumberEqual)(l,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),c=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return u=u>Math.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c,{xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(c-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}n.d(e,"a",function(){return o}),n.d(e,!1,function(){return i}),i("rect",a),i("image",a),i("circle",s),i("marker",s),i("polyline",function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}var a=l.f.getBBoxByArray(n,r),s=a.x,u=a.y,h={minX:s,minY:u,maxX:s+a.width,maxY:u+a.height};return{x:(h=c(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}),i("polygon",function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}return l.f.getBBoxByArray(n,r)}),i("text",function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=Object(h.a)(e));var l,u=Object(h.c)(i,s);if(u){var c=e.textAlign,d=e.textBaseline,f=Object(h.b)(i,o,a),p={x:n,y:r-f};c&&("end"===c||"right"===c?p.x-=u:"center"===c&&(p.x-=u/2)),d&&("top"===d?p.y+=f:"middle"===d&&(p.y+=f/2)),l={x:p.x,y:p.y,width:u,height:f}}else l={x:n,y:r,width:0,height:0};return l}),i("path",function(t){var e=t.attr(),n=e.path,r=e.stroke?e.lineWidth:0,i=function(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a=(y=t[o]).currentPoint,s=y.params,u=y.prePoint,c=void 0;switch(y.command){case"Q":c=l.e.box(u[0],u[1],s[1],s[2],s[3],s[4]);break;case"C":c=l.b.box(u[0],u[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var h=y.arcParams;c=l.a.box(h.cx,h.cy,h.rx,h.ry,h.xRotation,h.startAngle,h.endAngle);break;default:n.push(a[0]),r.push(a[1])}c&&(y.box=c,n.push(c.x,c.x+c.width),r.push(c.y,c.y+c.height)),e&&("L"===y.command||"M"===y.command)&&y.prePoint&&y.nextPoint&&i.push(y)}n=n.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}),r=r.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0});var d=Object(f.min)(n),g=Object(f.min)(r),v=Object(f.max)(n),m=Object(f.max)(r);if(0===i.length)return{x:d,y:g,width:v-d,height:m-g};for(o=0;o<i.length;o++){var y;(a=(y=i[o]).currentPoint)[0]===d?d-=p(y,e).xExtra:a[0]===v&&(v+=p(y,e).xExtra),a[1]===g?g-=p(y,e).yExtra:a[1]===m&&(m+=p(y,e).yExtra)}return{x:d,y:g,width:v-d,height:m-g}}(t.get("segments")||Object(d.d)(n),r),o=i.x,a=i.y,s={minX:o,minY:a,maxX:o+i.width,maxY:a+i.height};return{x:(s=c(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}),i("line",function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(a=c(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}}),i("ellipse",function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}})},MU5D:function(t,e,n){var r=n("R9M2");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},MdiT:function(t,e,n){"use strict";e.b=function(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],f=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],_=e[8];return n[0]=d*r+f*a+p*u,n[1]=d*i+f*s+p*c,n[2]=d*o+f*l+p*h,n[3]=g*r+v*a+m*u,n[4]=g*i+v*s+m*c,n[5]=g*o+v*l+m*h,n[6]=y*r+b*a+_*u,n[7]=y*i+b*s+_*c,n[8]=y*o+b*l+_*h,n},e.c=function(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n},e.a=function(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=c*a-s*u,d=-c*o+s*l,f=u*o-a*l,p=n*h+r*d+i*f;if(!p)return null;return p=1/p,e[0]=h*p,e[1]=(-c*r+i*u)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(c*n-i*l)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-u*n+r*l)*p,e[8]=(a*n-r*o)*p,e}},Mhyx:function(t,e,n){var r=n("/bQp"),i=n("dSzd")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},MicU:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){t.nodes().forEach(function(e){i(t.node(e))}),t.edges().forEach(function(e){i(t.edge(e))})},i=function(t){var e=t.width;t.width=t.height,t.height=e},o=function(t){t.nodes().forEach(function(e){a(t.node(e))}),t.edges().forEach(function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach(function(t){return a(t)}),r.hasOwnProperty("y")&&a(r)})},a=function(t){(null===t||void 0===t?void 0:t.y)&&(t.y=-t.y)},s=function(t){t.nodes().forEach(function(e){l(t.node(e))}),t.edges().forEach(function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach(function(t){return l(t)}),r.hasOwnProperty("x")&&l(r)})},l=function(t){var e=t.x;t.x=t.y,t.y=e};e.default={adjust:function(t){var e,n=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"lr"!==n&&"rl"!==n||r(t)},undo:function(t){var e,n=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"bt"!==n&&"rl"!==n||o(t),"lr"!==n&&"rl"!==n||(s(t),r(t))}}},Mkwl:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.width=e.sep=e.positionX=e.balance=e.alignCoordinates=e.findSmallestWidthAlignment=e.buildBlockGraph=e.horizontalCompaction=e.verticalAlignment=e.hasConflict=e.addConflict=e.findOtherInnerSegmentNode=e.findType2Conflicts=e.findType1Conflicts=void 0;var o=n("1we+"),a=n("LI0X"),s=n("+ZTV"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(o.Graph);e.findType1Conflicts=function(t,n){var r={};return(null===n||void 0===n?void 0:n.length)&&n.reduce(function(n,i){var o=0,a=0,s=n.length,l=null===i||void 0===i?void 0:i[(null===i||void 0===i?void 0:i.length)-1];return null===i||void 0===i||i.forEach(function(n,u){var c,h=(0,e.findOtherInnerSegmentNode)(t,n),d=h?t.node(h).order:s;(h||n===l)&&(null===(c=i.slice(a,u+1))||void 0===c||c.forEach(function(n){var i;null===(i=t.predecessors(n))||void 0===i||i.forEach(function(i){var a,s=t.node(i),l=s.order;!(l<o||d<l)||s.dummy&&(null===(a=t.node(n))||void 0===a?void 0:a.dummy)||(0,e.addConflict)(r,i,n)})}),a=u+1,o=d)}),i}),r};e.findType2Conflicts=function(t,n){var r={};function i(n,i){var o=function(t){return JSON.stringify(t.slice(1))}(n);i.get(o)||(function(n,i,o,a,s){for(var l,u,c,h=i;h<o;h++)c=n[h],(null===(l=t.node(c))||void 0===l?void 0:l.dummy)&&(null===(u=t.predecessors(c))||void 0===u||u.forEach(function(n){var i=t.node(n);i.dummy&&(i.order<a||i.order>s)&&(0,e.addConflict)(r,n,c)}))}.apply(void 0,n),i.set(o,!0))}return(null===n||void 0===n?void 0:n.length)&&n.reduce(function(e,n){var r,o=-1,a=0,s=new Map;return null===n||void 0===n||n.forEach(function(l,u){var c;if("border"===(null===(c=t.node(l))||void 0===c?void 0:c.dummy)){var h=t.predecessors(l)||[];h.length&&(r=t.node(h[0]).order,i([n,a,u,o,r],s),a=u,o=r)}i([n,a,n.length,r,e.length],s)}),n}),r};e.findOtherInnerSegmentNode=function(t,e){var n,r;if(null===(n=t.node(e))||void 0===n?void 0:n.dummy)return null===(r=t.predecessors(e))||void 0===r?void 0:r.find(function(e){return t.node(e).dummy})};e.addConflict=function(t,e,n){var r=e,i=n;if(r>i){var o=r;r=i,i=o}var a=t[r];a||(t[r]=a={}),a[i]=!0};e.hasConflict=function(t,e,n){var r=e;r>n&&(r=n);return!!t[r]};e.verticalAlignment=function(t,n,r,i){var o={},a={},s={};return null===n||void 0===n||n.forEach(function(t){null===t||void 0===t||t.forEach(function(t,e){o[t]=t,a[t]=t,s[t]=e})}),null===n||void 0===n||n.forEach(function(t){var n=-1;null===t||void 0===t||t.forEach(function(t){var l=i(t);if(l.length)for(var u=((l=l.sort(function(t,e){return s[t]-s[e]})).length-1)/2,c=Math.floor(u),h=Math.ceil(u);c<=h;++c){var d=l[c];a[t]===t&&n<s[d]&&!(0,e.hasConflict)(r,t,d)&&(a[d]=t,a[t]=o[t]=o[d],n=s[d])}})}),{root:o,align:a}};e.horizontalCompaction=function(t,n,r,i,o){var a,s={},l=(0,e.buildBlockGraph)(t,n,r,o),u=o?"borderLeft":"borderRight",c=function(t,e){for(var n=l.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()};return c(function(t){s[t]=(l.inEdges(t)||[]).reduce(function(t,e){return Math.max(t,(s[e.v]||0)+l.edge(e))},0)},l.predecessors.bind(l)),c(function(e){var n=(l.outEdges(e)||[]).reduce(function(t,e){return Math.min(t,(s[e.w]||0)-l.edge(e))},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(s[e]=Math.max(s[e],n))},l.successors.bind(l)),null===(a=Object.values(i))||void 0===a||a.forEach(function(t){s[t]=s[r[t]]}),s};e.buildBlockGraph=function(t,n,r,i){var o=new l,a=t.graph(),s=(0,e.sep)(a.nodesep,a.edgesep,i);return null===n||void 0===n||n.forEach(function(e){var n;null===e||void 0===e||e.forEach(function(e){var i=r[e];if(o.setNode(i),n){var a=r[n],l=o.edgeFromArgs(a,i);o.setEdge(a,i,Math.max(s(t,e,n),l||0))}n=e})}),o};function u(t,e){var n=Object.values(e),r=(0,a.min)(n),i=(0,a.max)(n);["u","d"].forEach(function(n){["l","r"].forEach(function(o){var s,l=n+o,u=t[l];if(u!==e){var c=Object.values(u);(s="l"===o?r-(0,a.min)(c):i-(0,a.max)(c))&&(t[l]={},Object.keys(u).forEach(function(e){t[l][e]=u[e]+s}))}})})}e.findSmallestWidthAlignment=function(t,n){return(0,s.minBy)(Object.values(n),function(n){var r,i=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return null===(r=Object.keys(n))||void 0===r||r.forEach(function(r){var a=n[r],s=(0,e.width)(t,r)/2;i=Math.max(a+s,i),o=Math.min(a-s,o)}),i-o})},e.alignCoordinates=u;e.balance=function(t,e){var n={};return Object.keys(t.ul).forEach(function(r){if(e)n[r]=t[e.toLowerCase()][r];else{var i=Object.values(t).map(function(t){return t[r]});n[r]=(i[0]+i[1])/2}}),n};e.positionX=function(t){var n,r=(0,s.buildLayerMatrix)(t),i=Object.assign((0,e.findType1Conflicts)(t,r),(0,e.findType2Conflicts)(t,r)),o={};["u","d"].forEach(function(a){n="u"===a?r:Object.values(r).reverse(),["l","r"].forEach(function(r){"r"===r&&(n=n.map(function(t){return Object.values(t).reverse()}));var s=("u"===a?t.predecessors:t.successors).bind(t),l=(0,e.verticalAlignment)(t,n,i,s),u=(0,e.horizontalCompaction)(t,n,l.root,l.align,"r"===r);"r"===r&&Object.keys(u).forEach(function(t){u[t]=-u[t]}),o[a+r]=u})});var a=(0,e.findSmallestWidthAlignment)(t,o);return u(o,a),(0,e.balance)(o,t.graph().align)};e.sep=function(t,e,n){return function(r,i,o){var a,s=r.node(i),l=r.node(o),u=0;if(u+=s.width/2,s.hasOwnProperty("labelpos"))switch((s.labelpos||"").toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2}if(a&&(u+=n?a:-a),a=0,u+=(s.dummy?e:t)/2,u+=(l.dummy?e:t)/2,u+=l.width/2,l.labelpos)switch((l.labelpos||"").toLowerCase()){case"l":a=l.width/2;break;case"r":a=-l.width/2}return a&&(u+=n?a:-a),a=0,u}};e.width=function(t,e){return t.node(e).width||0}},MmMw:function(t,e,n){var r=n("EqjI");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},Mur9:function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},Mv3v:function(t,e,n){var r;r=function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e=/^\s+/,n=/\s+$/;function r(i,o){if(i=i||"",o=o||{},i instanceof r)return i;if(!(this instanceof r))return new r(i,o);var a=function(r){var i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;"string"==typeof r&&(r=function(t){t=t.replace(e,"").replace(n,"").toLowerCase();var r,i=!1;if(_[t])t=_[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(r=P.rgb.exec(t))return{r:r[1],g:r[2],b:r[3]};if(r=P.rgba.exec(t))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=P.hsl.exec(t))return{h:r[1],s:r[2],l:r[3]};if(r=P.hsla.exec(t))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=P.hsv.exec(t))return{h:r[1],s:r[2],v:r[3]};if(r=P.hsva.exec(t))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=P.hex8.exec(t))return{r:k(r[1]),g:k(r[2]),b:k(r[3]),a:T(r[4]),format:i?"name":"hex8"};if(r=P.hex6.exec(t))return{r:k(r[1]),g:k(r[2]),b:k(r[3]),format:i?"name":"hex"};if(r=P.hex4.exec(t))return{r:k(r[1]+""+r[1]),g:k(r[2]+""+r[2]),b:k(r[3]+""+r[3]),a:T(r[4]+""+r[4]),format:i?"name":"hex8"};if(r=P.hex3.exec(t))return{r:k(r[1]+""+r[1]),g:k(r[2]+""+r[2]),b:k(r[3]+""+r[3]),format:i?"name":"hex"};return!1}(r));"object"==t(r)&&(L(r.r)&&L(r.g)&&L(r.b)?(h=r.r,d=r.g,f=r.b,i={r:255*S(h,255),g:255*S(d,255),b:255*S(f,255)},u=!0,c="%"===String(r.r).substr(-1)?"prgb":"rgb"):L(r.h)&&L(r.s)&&L(r.v)?(a=M(r.s),s=M(r.v),i=function(t,e,n){t=6*S(t,360),e=S(e,100),n=S(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(r.h,a,s),u=!0,c="hsv"):L(r.h)&&L(r.s)&&L(r.l)&&(a=M(r.s),l=M(r.l),i=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=S(t,360),e=S(e,100),n=S(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),i=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(r.h,a,l),u=!0,c="hsl"),r.hasOwnProperty("a")&&(o=r.a));var h,d,f;return o=w(o),{ok:u,format:r.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}(i);this._originalInput=i,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||a.format,this._gradientType=o.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function i(t,e,n){t=S(t,255),e=S(e,255),n=S(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,l:s}}function o(t,e,n){t=S(t,255),e=S(e,255),n=S(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,v:s}}function a(t,e,n,r){var i=[O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function s(t,e,n,r){return[O(E(r)),O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16))].join("")}function l(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s-=e/100,n.s=C(n.s),r(n)}function u(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.s+=e/100,n.s=C(n.s),r(n)}function c(t){return r(t).desaturate(100)}function h(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l+=e/100,n.l=C(n.l),r(n)}function d(t,e){e=0===e?0:e||10;var n=r(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),r(n)}function f(t,e){e=0===e?0:e||10;var n=r(t).toHsl();return n.l-=e/100,n.l=C(n.l),r(n)}function p(t,e){var n=r(t).toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,r(n)}function g(t){var e=r(t).toHsl();return e.h=(e.h+180)%360,r(e)}function v(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(t).toHsl(),i=[r(t)],o=360/e,a=1;a<e;a++)i.push(r({h:(n.h+a*o)%360,s:n.s,l:n.l}));return i}function m(t){var e=r(t).toHsl(),n=e.h;return[r(t),r({h:(n+72)%360,s:e.s,l:e.l}),r({h:(n+216)%360,s:e.s,l:e.l})]}function y(t,e,n){e=e||6,n=n||30;var i=r(t).toHsl(),o=360/n,a=[r(t)];for(i.h=(i.h-(o*e>>1)+720)%360;--e;)i.h=(i.h+o)%360,a.push(r(i));return a}function b(t,e){e=e||6;for(var n=r(t).toHsv(),i=n.h,o=n.s,a=n.v,s=[],l=1/e;e--;)s.push(r({h:i,s:o,v:a})),a=(a+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=w(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return a(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16)),O(E(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*S(this._r,255))+"%",g:Math.round(100*S(this._g,255))+"%",b:Math.round(100*S(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*S(this._r,255))+"%, "+Math.round(100*S(this._g,255))+"%, "+Math.round(100*S(this._b,255))+"%)":"rgba("+Math.round(100*S(this._r,255))+"%, "+Math.round(100*S(this._g,255))+"%, "+Math.round(100*S(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+s(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=r(t);n="#"+s(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(f,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(u,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(v,[3])},tetrad:function(){return this._applyCombination(v,[4])}},r.fromRatio=function(e,n){if("object"==t(e)){var i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]="a"===o?e[o]:M(e[o]));e=i}return r(e,n)},r.equals=function(t,e){return!(!t||!e)&&r(t).toRgbString()==r(e).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(t,e,n){n=0===n?0:n||50;var i=r(t).toRgb(),o=r(e).toRgb(),a=n/100;return r({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},r.readability=function(t,e){var n=r(t),i=r(e);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},r.isReadable=function(t,e,n){var i,o,a=r.readability(t,e);switch(o=!1,(i=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},r.mostReadable=function(t,e,n){var i,o,a,s,l=null,u=0;o=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var c=0;c<e.length;c++)(i=r.readability(t,e[c]))>u&&(u=i,l=r(e[c]));return r.isReadable(t,l,{level:a,size:s})||!o?l:(n.includeFallbackColors=!1,r.mostReadable(t,["#fff","#000"],n))};var _=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=r.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(_);function w(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function S(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function C(t){return Math.min(1,Math.max(0,t))}function k(t){return parseInt(t,16)}function O(t){return 1==t.length?"0"+t:""+t}function M(t){return t<=1&&(t=100*t+"%"),t}function E(t){return Math.round(255*parseFloat(t)).toString(16)}function T(t){return k(t)/255}var A,I,D,P=(I="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",D="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function L(t){return!!P.CSS_UNIT.exec(t)}return r},t.exports=r()},"N/bT":function(t,e,n){"use strict";var r=/\r\n?|\n/g,i=/\0/g;t.exports=function(t){var e;e=(e=t.src.replace(r,"\n")).replace(i,"�"),t.src=e}},N8pi:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFuncByUnknownType=e.getFunc=e.isFunction=void 0;var r=n("ZE1E"),i=n("yKiC");e.isFunction=function(t){return"function"==typeof t};e.getFunc=function(t,e,n){return n||((0,i.isNumber)(t)?function(){return t}:function(){return e})};e.getFuncByUnknownType=function(t,n,o){return void 0===o&&(o=!0),n||0===n?(0,e.isFunction)(n)?n:(0,i.isNumber)(n)?function(){return n}:(0,r.isArray)(n)?function(){if(o){var e=Math.max.apply(Math,n);return isNaN(e)?t:e}return n}:(0,r.isObject)(n)?function(){if(o){var e=Math.max(n.width,n.height);return isNaN(e)?t:e}return[n.width,n.height]}:function(){return t}:function(e){return e.size?(0,r.isArray)(e.size)?e.size[0]>e.size[1]?e.size[0]:e.size[1]:(0,r.isObject)(e.size)?e.size.width>e.size.height?e.size.width:e.size.height:e.size:t}}},NGEn:function(t,e){var n=Array.isArray;t.exports=n},NMof:function(t,e,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator;void 0===(i="function"==typeof(r=function(){var t=window,e={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(t,n,r){this._reference=t.jquery?t[0]:t,this.state={};var i=void 0===n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},e,r),this._options.modifiers=this._options.modifiers.map(function(t){if(-1===this._options.modifiersIgnored.indexOf(t))return"applyStyle"===t&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[t]||t}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),c(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(e){var n=e.style.display,r=e.style.visibility;e.style.display="block",e.style.visibility="hidden";e.offsetWidth;var i=t.getComputedStyle(e),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:e.offsetWidth+a,height:e.offsetHeight+o};return e.style.display=n,e.style.visibility=r,s}function i(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function o(t){var e=Object.assign({},t);return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function a(t,e){var n,r=0;for(n in t){if(t[n]===e)return r;r++}return null}function s(e,n){return t.getComputedStyle(e,null)[n]}function l(e){var n=e.offsetParent;return n!==t.document.body&&n?n:t.document.documentElement}function u(e){var n=e.parentNode;return n?n===t.document?t.document.body.scrollTop||t.document.body.scrollLeft?t.document.body:t.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:u(e.parentNode):e}function c(t,e){Object.keys(e).forEach(function(n){var r,i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&(""!==(r=e[n])&&!isNaN(parseFloat(r))&&isFinite(r))&&(i="px"),t.style[n]=e[n]+i})}function h(t){var e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function d(t){var e=t.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===t.tagName?-t.scrollTop:e.top;return{left:e.left,top:n,right:e.right,bottom:e.bottom,width:e.right-e.left,height:e.bottom-n}}function f(e){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+e.charAt(0).toUpperCase()+e.slice(1):e;if(void 0!==t.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[f("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var t={instance:this,styles:{}};t.placement=this._options.placement,t._originalPlacement=this._options.placement,t.offsets=this._getOffsets(this._popper,this._reference,t.placement),t.boundaries=this._getBoundaries(t,this._options.boundariesPadding,this._options.boundariesElement),t=this.runModifiers(t,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(t)},n.prototype.onCreate=function(t){return t(this),this},n.prototype.onUpdate=function(t){return this.state.updateCallback=t,this},n.prototype.parse=function(e){var n={tagName:"div",classNames:["popper"],attributes:[],parent:t.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};e=Object.assign({},n,e);var r=t.document,i=r.createElement(e.tagName);if(s(i,e.classNames),l(i,e.attributes),"node"===e.contentType?i.appendChild(e.content.jquery?e.content[0]:e.content):"html"===e.contentType?i.innerHTML=e.content:i.textContent=e.content,e.arrowTagName){var o=r.createElement(e.arrowTagName);s(o,e.arrowClassNames),l(o,e.arrowAttributes),i.appendChild(o)}var a=e.parent.jquery?e.parent[0]:e.parent;if("string"==typeof a){if((a=r.querySelectorAll(e.parent)).length>1&&console.warn("WARNING: the given `parent` query("+e.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element==!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(t,e){e.forEach(function(e){t.classList.add(e)})}function l(t,e){e.forEach(function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")})}},n.prototype._getPosition=function(e,n){l(n);return this._options.forceAbsolute?"absolute":function e(n){if(n===t.document.body)return!1;if("fixed"===s(n,"position"))return!0;return n.parentNode?e(n.parentNode):n}(n)?"fixed":"absolute"},n.prototype._getOffsets=function(t,e,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=function(t,e,n){var r=d(t),i=d(e);if(n){var o=u(e);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}return{top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height}}(e,l(t),o),s=r(t);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),t.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=u(this._reference);e!==t.document.body&&e!==t.document.documentElement||(e=t),e.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=e}},n.prototype._removeEventListeners=function(){t.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(e,n,r){var i,o,a={};if("window"===r){var s=t.document.body,c=t.document.documentElement;i=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight),a={top:0,right:Math.max(s.scrollWidth,s.offsetWidth,c.clientWidth,c.scrollWidth,c.offsetWidth),bottom:i,left:0}}else if("viewport"===r){var d=l(this._popper),f=u(this._popper),p=h(d),g="fixed"===e.offsets.popper.position?0:(o=f)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):o.scrollTop,v="fixed"===e.offsets.popper.position?0:function(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft}(f);a={top:0-(p.top-g),right:t.document.documentElement.clientWidth-(p.left-v),bottom:t.document.documentElement.clientHeight-(p.top-g),left:0-(p.left-v)}}else a=l(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:h(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(t,e,n){var r=e.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(e){var n;(n=e)&&"[object Function]"==={}.toString.call(n)&&(t=e.call(this,t))}.bind(this)),t},n.prototype.isModifierRequired=function(t,e){var n=a(this._options.modifiers,t);return!!this._options.modifiers.slice(0,n).filter(function(t){return t===e}).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(t){var e,n={position:t.offsets.popper.position},r=Math.round(t.offsets.popper.left),i=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=f("transform"))?(n[e]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,t.styles),c(this._popper,n),this._popper.setAttribute("x-placement",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&c(t.arrowElement,t.offsets.arrow),t},n.prototype.modifiers.shift=function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets.reference,a=o(t.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";t.offsets.popper=Object.assign(a,s[l][r])}return t},n.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,n=o(t.offsets.popper),r={left:function(){var e=n.left;return n.left<t.boundaries.left&&(e=Math.max(n.left,t.boundaries.left)),{left:e}},right:function(){var e=n.left;return n.right>t.boundaries.right&&(e=Math.min(n.left,t.boundaries.right-n.width)),{left:e}},top:function(){var e=n.top;return n.top<t.boundaries.top&&(e=Math.max(n.top,t.boundaries.top)),{top:e}},bottom:function(){var e=n.top;return n.bottom>t.boundaries.bottom&&(e=Math.min(n.top,t.boundaries.bottom-n.height)),{top:e}}};return e.forEach(function(e){t.offsets.popper=Object.assign(n,r[e]())}),t},n.prototype.modifiers.keepTogether=function(t){var e=o(t.offsets.popper),n=t.offsets.reference,r=Math.floor;return e.right<r(n.left)&&(t.offsets.popper.left=r(n.left)-e.width),e.left>r(n.right)&&(t.offsets.popper.left=r(n.right)),e.bottom<r(n.top)&&(t.offsets.popper.top=r(n.top)-e.height),e.top>r(n.bottom)&&(t.offsets.popper.top=r(n.bottom)),t},n.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split("-")[0],n=i(e),r=t.placement.split("-")[1]||"",a=[];return(a="flip"===this._options.flipBehavior?[e,n]:this._options.flipBehavior).forEach(function(s,l){if(e===s&&a.length!==l+1){e=t.placement.split("-")[0],n=i(e);var u=o(t.offsets.popper),c=-1!==["right","bottom"].indexOf(e);(c&&Math.floor(t.offsets.reference[e])>Math.floor(u[n])||!c&&Math.floor(t.offsets.reference[e])<Math.floor(u[n]))&&(t.flipped=!0,t.placement=a[l+1],r&&(t.placement+="-"+r),t.offsets.popper=this._getOffsets(this._popper,this._reference,t.placement).popper,t=this.runModifiers(t,this._options.modifiers,this._flip))}}.bind(this)),t},n.prototype.modifiers.offset=function(t){var e=this._options.offset,n=t.offsets.popper;return-1!==t.placement.indexOf("left")?n.top-=e:-1!==t.placement.indexOf("right")?n.top+=e:-1!==t.placement.indexOf("top")?n.left-=e:-1!==t.placement.indexOf("bottom")&&(n.left+=e),t},n.prototype.modifiers.arrow=function(t){var e=this._options.arrowElement,n=this._options.arrowOffset;if("string"==typeof e&&(e=this._popper.querySelector(e)),!e)return t;if(!this._popper.contains(e))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),t;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),t;var i={},a=t.placement.split("-")[0],s=o(t.offsets.popper),l=t.offsets.reference,u=-1!==["left","right"].indexOf(a),c=u?"height":"width",h=u?"top":"left",d=u?"left":"top",f=u?"bottom":"right",p=r(e)[c];l[f]-p<s[h]&&(t.offsets.popper[h]-=s[h]-(l[f]-p)),l[h]+p>s[f]&&(t.offsets.popper[h]+=l[h]+p-s[f]);var g=l[h]+(n||l[c]/2-p/2)-s[h];return g=Math.max(Math.min(s[c]-p-8,g),8),i[h]=g,i[d]="",t.offsets.arrow=i,t.arrowElement=e,t},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(e[s]=r[s])}}}return e}}),n})?r.call(e,n,e,t):r)||(t.exports=i)},NPXF:function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},NTMn:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertyWeight=e.getAllSortProperties=e.getAllProperties=e.default=void 0;var r=n("wRLm"),i=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=100);var n={};t.forEach(function(t){t.properties&&Object.keys(t.properties).forEach(function(e){"id"===e||!"".concat(t.properties[e]).match(r.secondReg)&&!"".concat(t.properties[e]).match(r.dateReg)&&isNaN(Number(t.properties[e]))?n.hasOwnProperty(e)&&delete n[e]:n.hasOwnProperty(e)?n[e]+=1:n[e]=1})});var i=Object.keys(n).sort(function(t,e){return n[e]-n[t]});return i.length<e?i:i.slice(0,e)};e.getAllSortProperties=i;var o=function(t,e){return e.map(function(e){return t.hasOwnProperty(e)?t[e]:0})},a=function(t){for(var e=i(t),n=[],r=0;r<t.length;r++)n[r]=o(t[r].properties,e);return n};e.getPropertyWeight=a;var s=function(t,e){void 0===e&&(e=void 0);var n=[];return t.forEach(function(t){void 0===e&&n.push(t),void 0!==t[e]&&n.push(t[e])}),n};e.getAllProperties=s;var l={getAllSortProperties:i,getPropertyWeight:a,getAllProperties:s};e.default=l},NVY2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"EPSILON",function(){return r}),n.d(e,"ARRAY_TYPE",function(){return i}),n.d(e,"RANDOM",function(){return o}),e.setMatrixArrayType=function(t){i=t},e.toRadian=function(t){return t*a},e.equals=function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))};var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;var a=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},"NWt+":function(t,e,n){var r=n("+ZMJ"),i=n("msXi"),o=n("Mhyx"),a=n("77Pl"),s=n("QRG4"),l=n("3fs2"),u={},c={};(e=t.exports=function(t,e,n,h,d){var f,p,g,v,m=d?function(){return t}:l(t),y=r(n,h,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(f=s(t.length);f>b;b++)if((v=e?y(a(p=t[b])[0],p[1]):y(t[b]))===u||v===c)return v}else for(g=m.call(t);!(p=g.next()).done;)if((v=i(g,y,p.value,e))===u||v===c)return v}).BREAK=u,e.RETURN=c},NYxO:function(t,e,n){"use strict";(function(t){var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,i=(n=function(e){return e.original===t},e.filter(n)[0]);if(i)return i.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach(function(n){o[n]=r(t[n],e)}),o}function i(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function o(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){i(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,s);var l=function(t){this.register([],t,!1)};l.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},l.prototype.update=function(t){!function t(e,n,r){0;n.update(r);if(r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},l.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new a(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&i(e.modules,function(e,i){r.register(t.concat(i),e,n)})},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},l.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var u;var c=function(t){var e=this;void 0===t&&(t={}),!u&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var i=t.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(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=i;var c=this._modules.root.state;g(this,c,[],this._modules.root),p(this,c),r.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:u.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){n.emit("vuex:mutation",t,e)},{prepend:!0}),t.subscribeAction(function(t,e){n.emit("vuex:action",t,e)},{prepend:!0}))}(this)},h={state:{configurable:!0}};function d(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function f(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),p(t,n,e)}function p(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o={};i(t._wrappedGetters,function(e,n){o[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var a=u.config.silent;u.config.silent=!0,t._vm=new u({data:{$$state:e},computed:o}),u.config.silent=a,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),u.nextTick(function(){return r.$destroy()}))}function g(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=v(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){u.set(s,l,r.state)})}var c=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return v(t.state,n)}}}),i}(t,a,n);r.forEachMutation(function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}(t,a+n,e,c)}),r.forEachAction(function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e){var i,o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}(t,r,i,c)}),r.forEachGetter(function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,c)}),r.forEachChild(function(r,o){g(t,e,n.concat(o),r,i)})}function v(t,e){return e.reduce(function(t,e){return t[e]},t)}function m(t,e,n){return o(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){u&&t===u||
- /*!
- * vuex v3.6.2
- * (c) 2021 Evan You
- * @license MIT
- */
- function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(t){0},c.prototype.commit=function(t,e,n){var r=this,i=m(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(t){t(a)})}),this._subscribers.slice().forEach(function(t){return t(s,r.state)}))},c.prototype.dispatch=function(t,e){var n=this,r=m(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(t){return t.before}).forEach(function(t){return t.before(a,n.state)})}catch(t){0}var l=s.length>1?Promise.all(s.map(function(t){return t(o)})):s[0](o);return new Promise(function(t,e){l.then(function(e){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(a,n.state)})}catch(t){0}t(e)},function(t){try{n._actionSubscribers.filter(function(t){return t.error}).forEach(function(e){return e.error(a,n.state,t)})}catch(t){0}e(t)})})}},c.prototype.subscribe=function(t,e){return d(t,this._subscribers,e)},c.prototype.subscribeAction=function(t,e){return d("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},c.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},c.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},c.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),n.preserveState),p(this,this.state)},c.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=v(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])}),f(this)},c.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},c.prototype.hotUpdate=function(t){this._modules.update(t),f(this,!0)},c.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(c.prototype,h);var b=C(function(t,e){var n={};return S(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=k(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),_=C(function(t,e){var n={};return S(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=k(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),x=C(function(t,e){var n={};return S(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||k(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),w=C(function(t,e){var n={};return S(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=k(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n});function S(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function C(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function k(t,e,n){return t._modulesNamespaceMap[n]}function O(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function M(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function E(){var t=new Date;return" @ "+T(t.getHours(),2)+":"+T(t.getMinutes(),2)+":"+T(t.getSeconds(),2)+"."+T(t.getMilliseconds(),3)}function T(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var A={Store:c,install:y,version:"3.6.2",mapState:b,mapMutations:_,mapGetters:x,mapActions:w,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:x.bind(null,t),mapMutations:_.bind(null,t),mapActions:w.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=r(t.state);void 0!==c&&(l&&t.subscribe(function(t,a){var s=r(a);if(n(t,h,s)){var l=E(),u=o(t),d="mutation "+t.type+l;O(c,d,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),M(c)}h=s}),u&&t.subscribeAction(function(t,n){if(a(t,n)){var r=E(),i=s(t),o="action "+t.type+r;O(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),M(c)}}))}}};e.a=A}).call(e,n("DuR2"))},NkRn:function(t,e,n){var r=n("TQ3y").Symbol;t.exports=r},NpIQ:function(t,e){e.f={}.propertyIsEnumerable},Ns9M:function(t,e,n){"use strict";var r={};n.d(r,"getAdjMatrix",function(){return L}),n.d(r,"breadthFirstSearch",function(){return $}),n.d(r,"connectedComponent",function(){return W}),n.d(r,"getDegree",function(){return Y}),n.d(r,"getInDegree",function(){return X}),n.d(r,"getOutDegree",function(){return q}),n.d(r,"detectCycle",function(){return tt}),n.d(r,"detectDirectedCycle",function(){return Qt}),n.d(r,"detectAllCycles",function(){return Q}),n.d(r,"detectAllDirectedCycle",function(){return J}),n.d(r,"detectAllUndirectedCycle",function(){return K}),n.d(r,"depthFirstSearch",function(){return Z}),n.d(r,"dijkstra",function(){return nt}),n.d(r,"findAllPath",function(){return at}),n.d(r,"findShortestPath",function(){return ot}),n.d(r,"floydWarshall",function(){return st}),n.d(r,"labelPropagation",function(){return lt}),n.d(r,"louvain",function(){return vt}),n.d(r,"iLouvain",function(){return mt}),n.d(r,"kCore",function(){return yt}),n.d(r,"kMeans",function(){return _t}),n.d(r,"cosineSimilarity",function(){return xt}),n.d(r,"nodesCosineSimilarity",function(){return wt}),n.d(r,"minimumSpanningTree",function(){return Et}),n.d(r,"pageRank",function(){return Tt}),n.d(r,"getNeighbors",function(){return F}),n.d(r,"Stack",function(){return Jt}),n.d(r,"GADDI",function(){return Kt}),n.d(r,"default",function(){return te});var i={};n.d(i,"compare",function(){return ne}),n.d(i,"getLineIntersect",function(){return ie}),n.d(i,"getRectIntersectByPoint",function(){return oe}),n.d(i,"getCircleIntersectByPoint",function(){return ae}),n.d(i,"getEllipseIntersectByPoint",function(){return se}),n.d(i,"applyMatrix",function(){return le}),n.d(i,"invertMatrix",function(){return ue}),n.d(i,"getCircleCenterByPoints",function(){return ce}),n.d(i,"distance",function(){return he}),n.d(i,"scaleMatrix",function(){return de}),n.d(i,"floydWarshall",function(){return fe}),n.d(i,"getAdjMatrix",function(){return pe}),n.d(i,"translate",function(){return ge}),n.d(i,"move",function(){return ve}),n.d(i,"scale",function(){return me}),n.d(i,"rotate",function(){return ye}),n.d(i,"getDegree",function(){return be}),n.d(i,"isPointInPolygon",function(){return xe}),n.d(i,"intersectBBox",function(){return we}),n.d(i,"isPolygonsIntersect",function(){return Se}),n.d(i,"Line",function(){return Ce}),n.d(i,"getBBoxBoundLine",function(){return ke}),n.d(i,"itemIntersectByLine",function(){return Me}),n.d(i,"fractionToLine",function(){return Ee}),n.d(i,"getPointsCenter",function(){return Te}),n.d(i,"squareDist",function(){return Ae}),n.d(i,"pointLineSquareDist",function(){return Ie}),n.d(i,"isPointsOverlap",function(){return De}),n.d(i,"pointRectSquareDist",function(){return Pe}),n.d(i,"pointLineDistance",function(){return Le}),n.d(i,"lerp",function(){return je}),n.d(i,"lerpArray",function(){return Ne});var o={};n.d(o,"getBBox",function(){return Qe}),n.d(o,"getLoopCfgs",function(){return tn}),n.d(o,"getLabelPosition",function(){return en}),n.d(o,"traverseTree",function(){return nn}),n.d(o,"traverseTreeUp",function(){return rn}),n.d(o,"getLetterWidth",function(){return on}),n.d(o,"getTextSize",function(){return an}),n.d(o,"truncateLabelByLength",function(){return sn}),n.d(o,"plainCombosToTrees",function(){return ln}),n.d(o,"reconstructTree",function(){return un}),n.d(o,"getComboBBox",function(){return cn}),n.d(o,"shouldRefreshEdge",function(){return hn}),n.d(o,"cloneBesidesImg",function(){return dn}),n.d(o,"getAnimateCfgWithCallback",function(){return fn});var a={};n.d(a,"uniqueId",function(){return mn}),n.d(a,"formatPadding",function(){return yn}),n.d(a,"cloneEvent",function(){return bn}),n.d(a,"isViewportChanged",function(){return _n}),n.d(a,"isNaN",function(){return xn}),n.d(a,"calculationItemsBBox",function(){return wn}),n.d(a,"processParallelEdges",function(){return Sn});var s={};n.d(s,"getSpline",function(){return Yn}),n.d(s,"getControlPoint",function(){return Xn}),n.d(s,"pointsToPolygon",function(){return qn}),n.d(s,"pathToPoints",function(){return Zn}),n.d(s,"getClosedSpline",function(){return Kn}),n.d(s,"roundedHull",function(){return er}),n.d(s,"paddedHull",function(){return nr}),n.d(s,"getStarPath",function(){return rr});var l={};n.d(l,"defaultSubjectColors",function(){return Nr});var u={};n.d(u,"isForce",function(){return Rr});var c={};n.d(c,"mixColor",function(){return yi}),n.d(c,"getColorsWithSubjectColor",function(){return bi}),n.d(c,"getColorSetsBySubjectColors",function(){return _i});var h={};n.d(h,"proccessToFunc",function(){return Ii}),n.d(h,"buildTextureData",function(){return Di}),n.d(h,"buildTextureDataWithOneEdgeAttr",function(){return Pi}),n.d(h,"buildTextureDataWithTwoEdgeAttr",function(){return Li}),n.d(h,"attributesToTextureData",function(){return ji}),n.d(h,"arrayToTextureData",function(){return Ni}),n.d(h,"radialLayout",function(){return Ri});var d={};n.d(d,"gpuDetector",function(){return Bi});var f={};n.d(f,"getBrowserName",function(){return Fi});var p={};n.d(p,"default",function(){return Na}),n.d(p,"assign",function(){return va}),n.d(p,"format",function(){return La}),n.d(p,"parse",function(){return ja}),n.d(p,"defaultI18n",function(){return _a}),n.d(p,"setGlobalDateI18n",function(){return wa}),n.d(p,"setGlobalDateMasks",function(){return Pa});var g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var m=function(){return(m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function y(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function b(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})}function _(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var x=n("IgWN"),w={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(t){return Object.assign(this,t),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,n=this.events;this.graph=t,"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!0),Object(x.each)(n,function(e,n){t.on(n,e)}),document.addEventListener("visibilitychange",function(){e.keydown=!1})},unbind:function(t){var e=this.events,n=t.get("canvas").get("draggable");"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!1),Object(x.each)(e,function(e,n){t.off(n,e)}),t.get("canvas").set("draggable",n)},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}},S=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw new Error("please specify handler for this behavior: ".concat(e));var r=Object(x.clone)(w);Object.assign(r,n);var i=function(t){var e=this;Object.assign(this,this.getDefaultCfg(),t);var n=this.getEvents();this.events=null;var r={};n&&(Object(x.each)(n,function(t,n){r[n]=Object(x.wrapBehavior)(e,t)}),this.events=r)};i.prototype=r,t.types[e]=i},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}(),C=S,k=function(t,e){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var M=function(){return(M=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function E(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function T(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})}function A(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function I(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var D=n("oEtn"),P=n("IzBs"),L=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(t,e){o[t.id]=e,i.push([])}),r&&r.forEach(function(t){var n=t.source,r=t.target,a=o[n],s=o[r];!a&&0!==a||!s&&0!==s||(i[a][s]=1,e||(i[s][a]=1))}),i},j=function(t,e){return t===e},N=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e}return t.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},t}(),R=function(){function t(t){void 0===t&&(t=j),this.head=null,this.tail=null,this.compare=t}return t.prototype.prepend=function(t){var e=new N(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new N(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare(this.tail.value,t)&&(this.tail=n),e},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;for(var o=this.head;o;){if(i&&i(o.value))return o;if(void 0!==n&&this.compare(o.value,n))return o;o=o.next}return null},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},t.prototype.fromArray=function(t){var e=this;return t.forEach(function(t){return e.append(t)}),this},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map(function(e){return e.toString(t)}).toString()},t}(),B=function(){function t(){this.linkedList=new R}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(t){this.linkedList.append(t)},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toString=function(t){return this.linkedList.toString(t)},t}(),F=function(t,e,n){void 0===e&&(e=[]);var r=e.filter(function(e){return e.source===t||e.target===t});if("target"===n){return r.filter(function(e){return e.source===t}).map(function(t){return t.target})}if("source"===n){return r.filter(function(e){return e.target===t}).map(function(t){return t.source})}return r.map(function(e){return e.source===t?e.target:e.source})},z=function(t,e){return e.filter(function(e){return e.source===t||e.target===t})},V=function(t){void 0===t&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),n="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(n)};var $=function(t,e,n,r){void 0===r&&(r=!0);var i=function(t){void 0===t&&(t={});var e,n=t,r=function(){},i=(e={},function(t){var n=t.next;return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||i,n.enter=t.enter||r,n.leave=t.leave||r,n}(n),o=new B,a=t.edges,s=void 0===a?[]:a;o.enqueue(e);for(var l="",u=function(){var t=o.dequeue();i.enter({current:t,previous:l}),F(t,s,r?"target":void 0).forEach(function(e){i.allowTraversal({previous:l,current:t,next:e})&&o.enqueue(e)}),i.leave({current:t,previous:l}),l=t};!o.isEmpty();)u()},G=function(t){for(var e=t.nodes,n=void 0===e?[]:e,r=t.edges,i=void 0===r?[]:r,o=[],a={},s=[],l=function t(e){s.push(e),a[e.id]=!0;for(var r=F(e.id,i),o=function(e){var i=r[e];if(!a[i]){var o=n.filter(function(t){return t.id===i});o.length>0&&t(o[0])}},l=0;l<r.length;++l)o(l)},u=0;u<n.length;u++){var c=n[u];if(!a[c.id]){l(c);for(var h=[];s.length>0;)h.push(s.pop());o.push(h)}}return o},H=function(t){for(var e=t.nodes,n=void 0===e?[]:e,r=t.edges,i=void 0===r?[]:r,o=[],a={},s={},l={},u=[],c=0,h=function t(e){s[e.id]=c,l[e.id]=c,c+=1,o.push(e),a[e.id]=!0;for(var r=F(e.id,i,"target").filter(function(t){return n.map(function(t){return t.id}).indexOf(t)>-1}),h=function(i){var o=r[i];if(s[o]||0===s[o])a[o]&&(l[e.id]=Math.min(l[e.id],s[o]));else{var u=n.filter(function(t){return t.id===o});u.length>0&&t(u[0]),l[e.id]=Math.min(l[e.id],l[o])}},d=0;d<r.length;d++)h(d);if(l[e.id]===s[e.id]){for(var f=[];o.length>0;){var p=o.pop();if(a[p.id]=!1,f.push(p),p===e)break}f.length>0&&u.push(f)}},d=0,f=n;d<f.length;d++){var p=f[d];s[p.id]||0===s[p.id]||h(p)}return u};function W(t,e){return e?H(t):G(t)}var U=function(t){var e={},n=t.nodes,r=void 0===n?[]:n,i=t.edges,o=void 0===i?[]:i;return r.forEach(function(t){e[t.id]={degree:0,inDegree:0,outDegree:0}}),o.forEach(function(t){e[t.source].degree++,e[t.source].outDegree++,e[t.target].degree++,e[t.target].inDegree++}),e},Y=U,X=function(t,e){return U(t)[e]?U(t)[e].inDegree:0},q=function(t,e){return U(t)[e]?U(t)[e].outDegree:0};function Z(t,e,n,r){void 0===r&&(r=!0),function t(e,n,r,i,o){void 0===o&&(o=!0),i.enter({current:n,previous:r});var a=e.edges;F(n,void 0===a?[]:a,o?"target":void 0).forEach(function(a){i.allowTraversal({previous:r,current:n,next:a})&&t(e,a,n,i,o)}),i.leave({current:n,previous:r})}(t,e,"",function(t){void 0===t&&(t={});var e,n=t,r=function(){},i=(e={},function(t){var n=t.next;return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||i,n.enter=t.enter||r,n.leave=t.leave||r,n}(n),r)}var K=function(t,e,n){var r,i;void 0===n&&(n=!0);for(var o=[],a=0,s=W(t,!1);a<s.length;a++){var l=s[a];if(l.length)for(var u=l[0],c=u.id,h=[u],d=((r={})[c]=u,r),f=((i={})[c]=new Set,i);h.length>0;)for(var p=h.pop(),g=p.id,v=F(g,t.edges),m=function(r){var i,a=v[r],s=t.nodes.find(function(t){return t.id===a});if(a===g)o.push(((i={})[a]=p,i));else if(a in f){if(!f[g].has(s)){for(var l=!0,u=[s,p],c=d[g];f[a].size&&!f[a].has(c)&&(u.push(c),c!==d[c.id]);)c=d[c.id];if(u.push(c),e&&n?(l=!1,u.findIndex(function(t){return e.indexOf(t.id)>-1})>-1&&(l=!0)):e&&!n&&u.findIndex(function(t){return e.indexOf(t.id)>-1})>-1&&(l=!1),l){for(var m={},y=1;y<u.length;y+=1)m[u[y-1].id]=u[y];u.length&&(m[u[u.length-1].id]=u[0]),o.push(m)}f[a].add(p)}}else d[a]=p,h.push(s),f[a]=new Set([p])},y=0;y<v.length;y+=1)m(y)}return o},J=function(t,e,n){void 0===n&&(n=!0);for(var r=[],i=new Set,o=[],a=[],s={},l={},u=function t(l,u,c){var h=!1;if(e&&!1===n&&e.indexOf(l.id)>-1)return h;r.push(l),i.add(l);for(var d=c[l.id],f=0;f<d.length;f+=1){if((v=s[d[f]])===u){for(var p={},g=1;g<r.length;g+=1)p[r[g-1].id]=r[g];r.length&&(p[r[r.length-1].id]=r[0]),a.push(p),h=!0}else i.has(v)||t(v,u,c)&&(h=!0)}if(h)!function(t){for(var e=[t];e.length>0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach(function(t){e.push(t)}),o[n.id].clear())}}(l);else for(f=0;f<d.length;f+=1){var v=s[d[f]];o[v.id].has(l)||o[v.id].add(l)}return r.pop(),h},c=t.nodes,h=void 0===c?[]:c,d=0;d<h.length;d+=1){var f=h[d],p=f.id;l[p]=d,s[d]=f}if(e&&n){var g=function(t){var n=e[t];l[h[t].id]=l[n],l[n]=0,s[0]=h.find(function(t){return t.id===n}),s[l[h[t].id]]=h[t]};for(d=0;d<e.length;d++)g(d)}for(var v=function(r){for(var i,o,s=1/0,u=0;u<r.length;u+=1)for(var c=r[u],h=0;h<c.length;h++){var d=l[c[h].id];d<s&&(s=d,o=u)}var f=r[o],p=[];for(u=0;u<f.length;u+=1){var g=f[u];p[g.id]=[];for(var v=0,m=F(g.id,t.edges,"target").filter(function(t){return f.map(function(t){return t.id}).indexOf(t)>-1});v<m.length;v++){var y=m[v];y!==g.id||!1===n&&e.indexOf(g.id)>-1?p[g.id].push(l[y]):a.push(((i={})[g.id]=g,i))}}return{component:f,adjList:p,minIdx:s}},m=0;m<h.length;){var y=h.filter(function(t){return l[t.id]>=m}),b=H({nodes:y,edges:t.edges}).filter(function(t){return t.length>1});if(0===b.length)break;var _=v(b),x=_.minIdx,w=_.adjList,S=_.component;if(!(S.length>1))break;S.forEach(function(t){o[t.id]=new Set});var C=s[x];if(e&&n&&-1===e.indexOf(C.id))return a;u(C,C,w),m=x+1}return a},Q=function(t,e,n,r){return void 0===r&&(r=!0),e?J(t,n,r):K(t,n,r)},tt=function(t){var e=null,n=t.nodes,r={},i={},o={},a={};(void 0===n?[]:n).forEach(function(t){i[t.id]=t});for(var s={enter:function(t){var n=t.current,a=t.previous;if(o[n]){e={};for(var s=n,l=a;l!==n;)e[s]=l,s=l,l=r[l];e[s]=l}else o[n]=n,delete i[n],r[n]=a},leave:function(t){var e=t.current;a[e]=e,delete o[e]},allowTraversal:function(t){var n=t.next;return!e&&!a[n]}};Object.keys(i).length;)Z(t,Object.keys(i)[0],s);return e},et=n("TToO"),nt=function(t,e,n,r){var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,l=[],u={},c={},h={};o.forEach(function(t,n){var r=t.id;l.push(r),c[r]=1/0,r===e&&(c[r]=0)});for(var d=o.length,f=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;o<e.length;o++){var a=e[o].id;!n[a]&&t[a]<=i&&(i=t[a],r=e[o])}return r}(c,o,u),i=e.id;if(u[i]=!0,c[i]===1/0)return"continue";(n?function(t,e){return e.filter(function(e){return e.source===t})}(i,s):z(i,s)).forEach(function(t){var n=t.target,o=t.source,a=n===i?o:n,s=r&&t[r]?t[r]:1;c[a]>c[e.id]+s?(c[a]=c[e.id]+s,h[a]=[e.id]):c[a]===c[e.id]+s&&h[a].push(e.id)})},p=0;p<d;p++)f();h[e]=[e];var g={};for(var v in c)c[v]!==1/0&&rt(e,v,h,g);var m={};for(var v in g)m[v]=g[v][0];return{length:c,path:m,allPath:g}};function rt(t,e,n,r){if(t===e)return[t];if(r[e])return r[e];for(var i=[],o=0,a=n[e];o<a.length;o++){var s=rt(t,a[o],n,r);if(!s)return;for(var l=0,u=s;l<u.length;l++){var c=u[l];Object(x.isArray)(c)?i.push(Object(et.__spreadArray)(Object(et.__spreadArray)([],c,!0),[e],!1)):i.push([c,e])}}return r[e]=i,r[e]}var it,ot=function(t,e,n,r,i){var o=nt(t,e,r,i),a=o.length,s=o.path,l=o.allPath;return{length:a[n],path:s[n],allPath:l[n]}},at=function(t,e,n,r){var i;if(e===n)return[[e]];var o=t.edges,a=void 0===o?[]:o,s=[e],l=((i={})[e]=!0,i),u=[],c=[],h=r?F(e,a,"target"):F(e,a);for(u.push(h);s.length>0&&u.length>0;){var d=u[u.length-1];if(d.length){var f=d.shift();if(f&&(s.push(f),l[f]=!0,h=r?F(f,a,"target"):F(f,a),u.push(h.filter(function(t){return!l[t]}))),s[s.length-1]===n){var p=s.map(function(t){return t});c.push(p);g=s.pop();l[g]=!1,u.pop()}}else{var g=s.pop();l[g]=!1,u.pop()}}return c},st=function(t,e){for(var n=L(t,e),r=[],i=n.length,o=0;o<i;o+=1){r[o]=[];for(var a=0;a<i;a+=1)o===a?r[o][a]=0:0!==n[o][a]&&n[o][a]?r[o][a]=n[o][a]:r[o][a]=1/0}for(var s=0;s<i;s+=1)for(o=0;o<i;o+=1)for(a=0;a<i;a+=1)r[o][a]>r[o][s]+r[s][a]&&(r[o][a]=r[o][s]+r[s][a]);return r},lt=function(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e3);var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,l={},u={};o.forEach(function(t,e){var n=V();t.clusterId=n,l[n]={id:n,nodes:[t]},u[t.id]={node:t,idx:e}});var c=[],h={};L(t,e).forEach(function(t,e){var n=0,r=o[e].id;h[r]={},t.forEach(function(t,e){if(t){n+=t;var i=o[e].id;h[r][i]=t}}),c.push(n)});for(var d=0,f=function(){var t=!1;if(o.forEach(function(e){var n={};Object.keys(h[e.id]).forEach(function(t){var r=h[e.id][t],i=u[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r});var r=-1/0,i=[];if(Object.keys(n).forEach(function(t){r<n[t]?(r=n[t],i=[t]):r===n[t]&&i.push(t)}),1!==i.length||i[0]!==e.clusterId){var o=i.indexOf(e.clusterId);if(o>=0&&i.splice(o,1),i&&i.length){t=!0;var a=l[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var c=Math.floor(Math.random()*i.length),d=l[i[c]];d.nodes.push(e),e.clusterId=d.id}}}),!t)return"break";d++};d<r&&"break"!==f(););Object.keys(l).forEach(function(t){var e=l[t];e.nodes&&e.nodes.length||delete l[t]});var p=[],g={};s.forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=u[e].node.clusterId,a=u[r].node.clusterId,s="".concat(o,"---").concat(a);if(g[s])g[s].weight+=i,g[s].count++;else{var l={source:o,target:a,weight:i,count:1};g[s]=l,p.push(l)}});var v=[];return Object.keys(l).forEach(function(t){v.push(l[t])}),{clusters:v,clusterEdges:p}},ut=function(){function t(t){this.arr=t}return t.prototype.getArr=function(){return this.arr||[]},t.prototype.add=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null===r||void 0===r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]+r[o];return new t(i)}},t.prototype.subtract=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null===r||void 0===r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]-r[o];return new t(i)}},t.prototype.avg=function(e){var n=[];if(0!==e)for(var r in this.arr)n[r]=this.arr[r]/e;return new t(n)},t.prototype.negate=function(){var e=[];for(var n in this.arr)e[n]=-this.arr[n];return new t(e)},t.prototype.squareEuclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null===n||void 0===n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return r}},t.prototype.euclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null===n||void 0===n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return Math.sqrt(r)}console.error("The two vectors are unequal in length.")},t.prototype.normalize=function(){var e=[],n=Object(x.clone)(this.arr);n.sort(function(t,e){return t-e});var r=n[n.length-1],i=n[0];for(var o in this.arr)e[o]=(this.arr[o]-i)/(r-i);return new t(e)},t.prototype.norm2=function(){var t;if(!(null===(t=this.arr)||void 0===t?void 0:t.length))return 0;var e=0;for(var n in this.arr)e+=Math.pow(this.arr[n],2);return Math.sqrt(e)},t.prototype.dot=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null===n||void 0===n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=this.arr[i]*t.arr[i];return r}console.error("The two vectors are unequal in length.")},t.prototype.equal=function(t){var e,n=t.arr;if((null===(e=this.arr)||void 0===e?void 0:e.length)!==(null===n||void 0===n?void 0:n.length))return!1;for(var r in this.arr)if(this.arr[r]!==n[r])return!1;return!0},t}(),ct=function(t,e){void 0===e&&(e=void 0);var n=[];return t.forEach(function(t){void 0===e&&n.push(t),void 0!==t[e]&&n.push(t[e])}),n};!function(t){t.EuclideanDistance="euclideanDistance"}(it||(it={}));var ht=function(t,e,n){var r=[];(null===e||void 0===e?void 0:e.length)?r=e:(t.forEach(function(t){r=r.concat(Object.keys(t))}),r=Object(x.uniq)(r));var i={};return r.forEach(function(e){var r=[];t.forEach(function(t){void 0!==t[e]&&""!==t[e]&&r.push(t[e])}),r.length&&!(null===n||void 0===n?void 0:n.includes(e))&&(i[e]=Object(x.uniq)(r))}),i},dt=function(t,e,n){var r=ht(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r).every(function(t){return t.every(function(t){return"number"==typeof t})});return t.forEach(function(t,e){var n=[];Object.keys(r).forEach(function(e){var i=t[e],a=r[e],s=a.findIndex(function(t){return i===t}),l=[];if(o)l.push(i);else for(var u=0;u<a.length;u++)u===s?l.push(1):l.push(0);n=n.concat(l)}),i[e]=n}),i},ft=function(t,e,n,r){void 0===n&&(n=it.EuclideanDistance);var i=0;switch(n){case it.EuclideanDistance:i=new ut(t).euclideanDistance(new ut(e))}return i},pt=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s<i;s++)for(var l=t[s].clusterId,u=0;u<i;u++){if(l===t[u].clusterId)a+=(e[s][u]||0)-(n[s]||0)*(n[u]||0)/o}return a*=1/o},gt=function(t,e){void 0===t&&(t=[]);for(var n=t.length,r=new ut([]),i=0;i<n;i++)r=r.add(new ut(e[i]));var o=r.avg(n);o.normalize();var a=0;for(i=0;i<n;i++){a+=(l=new ut(e[i])).squareEuclideanDistance(o)}var s=[];t.forEach(function(){s.push([])});for(i=0;i<n;i++){var l=new ut(e[i]);t[i].clusterInertial=0;for(var u=0;u<n;u++)if(i!==u){var c=new ut(e[u]);s[i][u]=l.squareEuclideanDistance(c),t[i].clusterInertial+=s[i][u]}else s[i][u]=0}var h=0,d=2*n*a;for(i=0;i<n;i++){var f=t[i].clusterId;for(u=0;u<n;u++){var p=t[u].clusterId;if(i!==u&&f===p)h+=t[i].clusterInertial*t[u].clusterInertial/Math.pow(d,2)-s[i][u]/d}}return Number(h.toFixed(4))},vt=function(t,e,n,r,i,o,a,s,l){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e-4),void 0===i&&(i=!1),void 0===o&&(o=void 0),void 0===a&&(a=[]),void 0===s&&(s=["id"]),void 0===l&&(l=1);var u=t.nodes,c=void 0===u?[]:u,h=t.edges,d=void 0===h?[]:h,f=[];if(i){c.forEach(function(t,e){t.properties=t.properties||{},t.originIndex=e});var p=[];c.every(function(t){return t.hasOwnProperty("nodeType")})&&(p=Array.from(new Set(c.map(function(t){return t.nodeType}))),c.forEach(function(t){t.properties.nodeType=p.findIndex(function(e){return e===t.nodeType})}));var g=ct(c,o);f=dt(g,a,s)}var v=1,m={},y={};c.forEach(function(t,e){var n=String(v++);t.clusterId=n,m[n]={id:n,nodes:[t]},y[t.id]={node:t,idx:e}});var b=L(t,e),_=[],w={},S=0;b.forEach(function(t,e){var n=0,r=c[e].id;w[r]={},t.forEach(function(t,e){if(t){n+=t;var i=c[e].id;w[r][i]=t,S+=t}}),_.push(n)}),S/=2;for(var C=1/0,k=1/0,O=0,M=[],E={};;){C=i&&c.every(function(t){return t.hasOwnProperty("properties")})?pt(c,b,_,S)+gt(c,f)*l:pt(c,b,_,S),0===O&&(k=C,M=c,E=m);var T=C>0&&C>k&&C-k<r;if(C>k&&(M=c.map(function(t){return{node:t,clusterId:t.clusterId}}),E=Object(x.clone)(m),k=C),T||O>100)break;O++,Object.keys(m).forEach(function(t){var e=0;d.forEach(function(r){var i=r.source,o=r.target,a=y[i].node.clusterId,s=y[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)}),m[t].sumTot=e}),c.forEach(function(t,e){var r,o=m[t.clusterId],a=0,s=_[e]/(2*S),u=0,c=o.nodes;c.forEach(function(t){var n=y[t.id].idx;u+=b[e][n]||0});var h=u-o.sumTot*s,p=c.filter(function(e){return e.id!==t.id}),g=[];p.forEach(function(t,e){g[e]=f[t.originIndex]});var v=gt(p,f)*l,x=w[t.id];if(Object.keys(x).forEach(function(n){var o=y[n].node.clusterId;if(o!==t.clusterId){var u=m[o],c=u.nodes;if(c&&c.length){var d=0;c.forEach(function(t){var n=y[t.id].idx;d+=b[e][n]||0});var p=d-u.sumTot*s,g=c.concat([t]),_=[];g.forEach(function(t,e){_[e]=f[t.originIndex]});var x=gt(g,f)*l,w=p-h;i&&(w=p+x-(h+v)),w>a&&(a=w,r=u)}}}),a>0){r.nodes.push(t);var C=t.clusterId;t.clusterId=r.id;var k=o.nodes.indexOf(t);o.nodes.splice(k,1);var O=0,M=0;d.forEach(function(t){var e=t.source,i=t.target,o=y[e].node.clusterId,a=y[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(O+=t[n]||1),(o===C&&a!==C||a===C&&o!==C)&&(M+=t[n]||1)}),r.sumTot=O,o.sumTot=M}})}var A={},I=0;Object.keys(E).forEach(function(t){var e=E[t];if(e.nodes&&e.nodes.length){var n=String(I+1);n!==t&&(e.id=n,e.nodes=e.nodes.map(function(t){return{id:t.id,clusterId:n}}),E[n]=e,A[t]=n,delete E[t],I++)}else delete E[t]}),M.forEach(function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&A[e.clusterId]&&(e.clusterId=A[e.clusterId]))});var D=[],P={};d.forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=y[e].node.clusterId,a=y[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(P[s])P[s].weight+=i,P[s].count++;else{var l={source:o,target:a,weight:i,count:1};P[s]=l,D.push(l)}}});var j=[];return Object.keys(E).forEach(function(t){j.push(E[t])}),{clusters:j,clusterEdges:D}},mt=function(t,e,n,r,i,o,a,s){return void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e-4),void 0===i&&(i=void 0),void 0===o&&(o=[]),void 0===a&&(a=["id"]),void 0===s&&(s=1),vt(t,e,n,r,!0,i,o,a,s)},yt=function(t,e){var n;void 0===e&&(e=1);for(var r=Object(x.clone)(t),i=r.nodes,o=void 0===i?[]:i,a=r.edges,s=void 0===a?[]:a,l=function(){var t=Y({nodes:o,edges:s}),r=Object.keys(t);r.sort(function(e,n){var r,i;return(null===(r=t[e])||void 0===r?void 0:r.degree)-(null===(i=t[n])||void 0===i?void 0:i.degree)});var i=r[0];if(!o.length||(null===(n=t[i])||void 0===n?void 0:n.degree)>=e)return"break";var a=o.findIndex(function(t){return t.id===i});o.splice(a,1),s=s.filter(function(t){return!(t.source===i||t.target===i)})};"break"!==l(););return{nodes:o,edges:s}},bt=function(t,e,n){var r=[];switch(t){case it.EuclideanDistance:r=e[n];break;default:r=[]}return r},_t=function(t,e,n,r,i,o){void 0===e&&(e=3),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===i&&(i=["id"]),void 0===o&&(o=it.EuclideanDistance);var a=t.nodes,s=void 0===a?[]:a,l=t.edges,u=void 0===l?[]:l,c={clusters:[{id:"0",nodes:s}],clusterEdges:[]};if(o===it.EuclideanDistance&&!s.every(function(t){return t.hasOwnProperty(n)}))return c;var h=[],d=[];if(o===it.EuclideanDistance&&(h=ct(s,n),d=dt(h,r,i)),!d.length)return c;for(var f=Object(x.uniq)(d.map(function(t){return t.join("")})),p=Math.min(e,s.length,f.length),g=0;g<s.length;g++)s[g].originIndex=g;var v=[],m=[],y=[];for(g=0;g<p;g++)if(0===g){var b=Math.floor(Math.random()*s.length);switch(o){case it.EuclideanDistance:v[g]=d[b];break;default:v[g]=[]}m.push(b),y[g]=[s[b]],s[b].clusterId=String(g)}else{for(var _=-1/0,w=0,S=function(t){if(!m.includes(t)){for(var e=0,n=0;n<v.length;n++){var r=0;switch(o){case it.EuclideanDistance:r=ft(d[s[t].originIndex],v[n],o)}e+=r}var i=e/v.length;i>_&&!v.find(function(e){return Object(x.isEqual)(e,bt(o,d,s[t].originIndex))})&&(_=i,w=t)}},C=0;C<s.length;C++)S(C);v[g]=bt(o,d,w),m.push(w),y[g]=[s[w]],s[w].clusterId=String(g)}for(var k=0;;){for(g=0;g<s.length;g++){var O=0,M=1/0;if(0!==k||!m.includes(g)){for(var E=0;E<v.length;E++){var T=0;switch(o){case it.EuclideanDistance:T=ft(d[g],v[E],o)}T<M&&(M=T,O=E)}if(void 0!==s[g].clusterId)for(var A=y[Number(s[g].clusterId)].length-1;A>=0;A--)y[Number(s[g].clusterId)][A].id===s[g].id&&y[Number(s[g].clusterId)].splice(A,1);s[g].clusterId=String(O),y[O].push(s[g])}}var I=!1;for(g=0;g<y.length;g++){var D=y[g],P=new ut([]);for(E=0;E<D.length;E++)P=P.add(new ut(d[D[E].originIndex]));var L=P.avg(D.length);L.equal(new ut(v[g]))||(I=!0,v[g]=L.getArr())}if(k++,s.every(function(t){return void 0!==t.clusterId})&&I||k>=1e3)break}var j=[],N={};return u.forEach(function(t){var e,n,r=t.source,i=t.target,o=null===(e=s.find(function(t){return t.id===r}))||void 0===e?void 0:e.clusterId,a=null===(n=s.find(function(t){return t.id===i}))||void 0===n?void 0:n.clusterId,l="".concat(o,"---").concat(a);if(N[l])N[l].count++;else{var u={source:o,target:a,count:1};N[l]=u,j.push(u)}}),{clusters:y,clusterEdges:j}},xt=function(t,e){var n=new ut(e),r=n.norm2(),i=new ut(t),o=i.norm2(),a=n.dot(i),s=r*o,l=s?a/s:0;return l},wt=function(t,e,n,r,i){void 0===t&&(t=[]),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===i&&(i=[]);var o=Object(x.clone)(t.filter(function(t){return t.id!==e.id})),a=t.findIndex(function(t){return t.id===e.id}),s=ct(t,n),l=dt(s,r,i),u=l[a],c=[];return o.forEach(function(t,n){if(t.id!==e.id){var r=l[n],i=xt(r,u);c.push(i),t.cosineSimilarity=i}}),o.sort(function(t,e){return e.cosineSimilarity-t.cosineSimilarity}),{allCosineSimilarity:c,similarNodes:o}},St=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e<n.length;e++){var r=n[e];this.parent[r]=r}}return t.prototype.find=function(t){for(;this.parent[t]!==t;)t=this.parent[t];return t},t.prototype.union=function(t,e){var n=this.find(t),r=this.find(e);n!==r&&(n<r?(this.parent[e]!==e&&this.union(this.parent[e],t),this.parent[e]=this.parent[t]):(this.parent[t]!==t&&this.union(this.parent[t],e),this.parent[t]=this.parent[e]))},t.prototype.connected=function(t,e){return this.find(t)===this.find(e)},t}(),Ct=function(t,e){return t-e},kt=function(){function t(t){void 0===t&&(t=Ct),this.compareFn=t,this.list=[]}return t.prototype.getLeft=function(t){return 2*t+1},t.prototype.getRight=function(t){return 2*t+2},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r<o&&this.compareFn(this.list[n],this.list[r])>0?n=r:null!==i&&i<o&&this.compareFn(this.list[n],this.list[i])>0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}(),Ot=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=i[0],l=new Set;l.add(s);var u=new kt(function(t,n){return e?t.weight-n.weight:0});for(z(s.id,a).forEach(function(t){u.insert(t)});!u.isEmpty();){var c=u.delMin(),h=c.source,d=c.target;l.has(h)&&l.has(d)||(n.push(c),l.has(h)||(l.add(h),z(h,a).forEach(function(t){u.insert(t)})),l.has(d)||(l.add(d),z(d,a).forEach(function(t){u.insert(t)})))}return n},Mt=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=a.map(function(t){return t});e&&s.sort(function(t,e){return t.weight-e.weight});for(var l=new St(i.map(function(t){return t.id}));s.length>0;){var u=s.shift(),c=u.source,h=u.target;l.connected(c,h)||(n.push(u),l.union(c,h))}return n},Et=function(t,e,n){return n?{prim:Ot,kruskal:Mt}[n](t,e):Mt(t,e)},Tt=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,i=1,o=0,a=1e3,s=t.nodes,l=void 0===s?[]:s,u=t.edges,c=void 0===u?[]:u,h=l.length,d={},f={},p=0;p<h;++p)d[v=(x=l[p]).id]=1/h,f[v]=1/h;for(var g=Y(t);a>0&&i>e;){for(o=0,p=0;p<h;++p){var v=(x=l[p]).id;if(r=0,0===g[x.id].inDegree)d[v]=0;else{for(var m=F(v,c,"source"),y=0;y<m.length;++y){var b=m[y],_=g[b].outDegree;_>0&&(r+=f[b]/_)}d[v]=n*r,o+=d[v]}}for(o=(1-o)/h,i=0,p=0;p<h;++p){var x;r=d[v=(x=l[p]).id]+o,i+=Math.abs(r-f[v]),f[v]=r}a-=1}return f},At=-1,It=-1,Dt="-1",Pt="-1",Lt=function(){return function(t,e,n,r){void 0===t&&(t=At),void 0===e&&(e=It),void 0===n&&(n=It),void 0===r&&(r=Dt),this.id=t,this.from=e,this.to=n,this.label=r}}(),jt=function(){function t(t,e){void 0===t&&(t=It),void 0===e&&(e=Pt),this.id=t,this.label=e,this.edges=[],this.edgeMap={}}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t},t}(),Nt=function(){function t(t,e,n){void 0===t&&(t=It),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n}return t.prototype.getNodeNum=function(){return this.nodes.length},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new jt(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t)}},t.prototype.addEdge=function(t,e,n,r){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!(this.nodeMap[e]&&this.nodeMap[n]&&this.nodeMap[n].edgeMap[t])){var i=new Lt(t,e,n,r);if(this.edges.push(i),this.edgeMap[t]=i,this.nodeMap[e].addEdge(i),this.edgeLabelMap[r]||(this.edgeLabelMap[r]=[]),this.edgeLabelMap[r].push(i),!this.directed){var o=new Lt(t,n,e,r);this.nodeMap[n].addEdge(o),this.edgeLabelMap[r].push(o)}}},t}(),Rt=function(){function t(t,e,n,r,i){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||Pt,edgeLabel:r||Dt,nodeLabel2:i||Pt}}return t.prototype.equalTo=function(t){return this.fromNode===t.formNode&&this.toNode===t.toNode&&this.nodeEdgeNodeLabel===t.nodeEdgeNodeLabel},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t}(),Bt=function(){function t(){this.rmpath=[],this.dfsEdgeList=[]}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(this.dfsEdgeList[n]!==t[n])return!1;return!0},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t.prototype.pushBack=function(t,e,n,r,i){return this.dfsEdgeList.push(new Rt(t,e,n,r,i)),this.dfsEdgeList},t.prototype.toGraph=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=!1);var n=new Nt(t,!0,e);return this.dfsEdgeList.forEach(function(t){var e=t.fromNode,r=t.toNode,i=t.nodeEdgeNodeLabel,o=i.nodeLabel1,a=i.edgeLabel,s=i.nodeLabel2;o!==Pt&&n.addNode(e,o),s!==Pt&&n.addNode(r,s),o!==Pt&&s!==o&&n.addEdge(void 0,e,r,a)}),n},t.prototype.buildRmpath=function(){this.rmpath=[];for(var t=void 0,e=this.dfsEdgeList.length-1;e>=0;e--){var n=this.dfsEdgeList[e],r=n.fromNode,i=n.toNode;r<i&&(void 0===t||i===t)&&(this.rmpath.push(e),t=r)}return this.rmpath},t.prototype.getNodeNum=function(){var t={};return this.dfsEdgeList.forEach(function(e){t[e.fromNode]||(t[e.fromNode]=!0),t[e.toNode]||(t[e.toNode]=!0)}),Object.keys(t).length},t}(),Ft=function(){function t(t){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],t){for(;t;){var e=t.edge;this.edges.push(e),this.nodesUsed[e.from]=1,this.nodesUsed[e.to]=1,this.edgesUsed[e.id]=1,t=t.preNode}this.edges=this.edges.reverse()}}return t.prototype.hasNode=function(t){return 1===this.nodesUsed[t.id]},t.prototype.hasEdge=function(t){return 1===this.edgesUsed[t.id]},t}(),zt=function(){function t(t){var e=t.graphs,n=t.minSupport,r=void 0===n?2:n,i=t.minNodeNum,o=void 0===i?1:i,a=t.maxNodeNum,s=void 0===a?4:a,l=t.top,u=void 0===l?10:l,c=t.directed,h=void 0!==c&&c,d=t.verbose,f=void 0!==d&&d;this.graphs=e,this.dfsCode=new Bt,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=r,this.top=u,this.directed=h,this.counter=0,this.maxNodeNum=s,this.minNodeNum=o,this.verbose=f,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[]}return t.prototype.findForwardRootEdges=function(t,e){var n=this,r=[],i=t.nodeMap;return e.edges.forEach(function(t){(n.directed||e.label<=i[t.to].label)&&r.push(t)}),r},t.prototype.findBackwardEdge=function(t,e,n,r){if(!this.directed&&e===n)return null;for(var i=t.nodeMap,o=i[n.to].edges,a=o.length,s=0;s<a;s++){var l=o[s];if(!r.hasEdge(l)&&l.to===e.from)if(this.directed){if(i[e.from].label<i[n.to].label||i[e.from].label===i[n.to].label&&e.label<=l.label)return l}else if(e.label<l.label||e.label===l.label&&i[e.to].label<=i[n.to].label)return l}return null},t.prototype.findForwardPureEdges=function(t,e,n,r){for(var i=[],o=e.to,a=t.nodeMap[o].edges,s=a.length,l=0;l<s;l++){var u=a[l],c=t.nodeMap[u.to];n<=c.label&&!r.hasNode(c)&&i.push(u)}return i},t.prototype.findForwardRmpathEdges=function(t,e,n,r){for(var i=[],o=t.nodeMap,a=o[e.to].label,s=o[e.from].edges,l=s.length,u=0;u<l;u++){var c=s[u],h=o[c.to].label;e.to===c.to||n>h||r.hasNode(o[c.to])||(e.label<c.label||e.label===c.label&&a<=h)&&i.push(c)}return i},t.prototype.getSupport=function(t){var e={};return t.forEach(function(t){e[t.graphId]||(e[t.graphId]=!0)}),Object.keys(e).length},t.prototype.findMinLabel=function(t){var e=void 0;return Object.keys(t).forEach(function(n){var r=t[n],i=r.nodeLabel1,o=r.edgeLabel,a=r.nodeLabel2;e?(i<e.nodeLabel1||i===e.nodeLabel1&&o<e.edgeLabel||i===e.nodeLabel1&&o===e.edgeLabel&&a<e.nodeLabel2)&&(e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a}):e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a}}),e},t.prototype.isMin=function(){var t=this,e=this.dfsCode;if(this.verbose&&console.log("isMin checking",e),1===e.dfsEdgeList.length)return!0;var n=this.directed,r=e.toGraph(-1,n),i=r.nodeMap,o=new Bt,a={};r.nodes.forEach(function(e){t.findForwardRootEdges(r,e).forEach(function(t){var n=i[t.to],o="".concat(e.label,"-").concat(t.label,"-").concat(n.label);a[o]||(a[o]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:n.label});var s={graphId:r.id,edge:t,preNode:null};a[o].projected.push(s)})});var s=this.findMinLabel(a);if(s){o.dfsEdgeList.push(new Rt(0,1,s.nodeLabel1,s.edgeLabel,s.nodeLabel2));var l="".concat(s.nodeLabel1,"-").concat(s.edgeLabel,"-").concat(s.nodeLabel2);return function a(s){for(var l=o.buildRmpath(),u=o.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,c=o.dfsEdgeList[l[0]].toNode,h={},d=!1,f=0,p=n?-1:0,g=function(e){if(d)return"break";s.forEach(function(n){var i=new Ft(n),a=t.findBackwardEdge(r,i.edges[l[e]],i.edges[l[0]],i);a&&(h[a.label]||(h[a.label]={projected:[],edgeLabel:a.label}),h[a.label].projected.push({graphId:r.id,edge:h,preNode:n}),f=o.dfsEdgeList[l[e]].fromNode,d=!0)})},v=l.length-1;v>p&&"break"!==g(v);v--);if(d){var m=t.findMinLabel(h);o.dfsEdgeList.push(new Rt(c,f,Pt,m.edgeLabel,Pt));var y=o.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[y]===o.dfsEdgeList[y]&&a(h[m.edgeLabel].projected)}var b={};d=!1;var _=0;s.forEach(function(e){var n=new Ft(e),o=t.findForwardPureEdges(r,n.edges[l[0]],u,n);o.length>0&&(d=!0,_=c,o.forEach(function(t){var n="".concat(t.label,"-").concat(i[t.to].label);b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})}))});var x=l.length,w=function(e){if(d)return"break";var n=l[e];s.forEach(function(e){var a=new Ft(e),s=t.findForwardRmpathEdges(r,a.edges[n],u,a);s.length>0&&(d=!0,_=o.dfsEdgeList[n].fromNode,s.forEach(function(t){var n="".concat(t.label,"-").concat(i[t.to].label);b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})}))})};for(v=0;v<x&&"break"!==w(v);v++);if(!d)return!0;var S=t.findMinLabel(b);o.dfsEdgeList.push(new Rt(_,c+1,Pt,S.edgeLabel,S.nodeLabel2));var C=o.dfsEdgeList.length-1;return e.dfsEdgeList[C]===o.dfsEdgeList[C]&&a(b["".concat(S.edgeLabel,"-").concat(S.nodeLabel2)].projected)}(a[l].projected)}},t.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var t=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push(Object(x.clone)(t))}},t.prototype.subGraphMining=function(t){var e=this;if(!(this.getSupport(t)<this.minSupport)&&this.isMin()){this.report();var n=this.dfsCode.getNodeNum(),r=this.dfsCode.buildRmpath(),i=this.dfsCode.dfsEdgeList[r[0]].toNode,o=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,a={},s={};t.forEach(function(t){for(var l=e.graphs[t.graphId],u=l.nodeMap,c=new Ft(t),h=r.length-1;h>=0;h--){var d=e.findBackwardEdge(l,c.edges[r[h]],c.edges[r[0]],c);if(d){var f="".concat(e.dfsCode.dfsEdgeList[r[h]].fromNode,"-").concat(d.label);s[f]||(s[f]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[h]].fromNode,edgeLabel:d.label}),s[f].projected.push({graphId:t.graphId,edge:d,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(l,c.edges[r[0]],o,c).forEach(function(e){var n="".concat(i,"-").concat(e.label,"-").concat(u[e.to].label);a[n]||(a[n]={projected:[],fromNodeId:i,edgeLabel:e.label,nodeLabel2:u[e.to].label}),a[n].projected.push({graphId:t.graphId,edge:e,preNode:t})});var p=function(n){e.findForwardRmpathEdges(l,c.edges[r[n]],o,c).forEach(function(i){var o="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(u[i.to].label);a[o]||(a[o]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:u[i.to].label}),a[o].projected.push({graphId:t.graphId,edge:i,preNode:t})})};for(h=0;h<r.length;h++)p(h)}}),Object.keys(s).forEach(function(t){var n=s[t],r=n.toNodeId,o=n.edgeLabel;e.dfsCode.dfsEdgeList.push(new Rt(i,r,"-1",o,"-1")),e.subGraphMining(s[t].projected),e.dfsCode.dfsEdgeList.pop()}),Object.keys(a).forEach(function(t){var n=a[t],r=n.fromNodeId,o=n.edgeLabel,s=n.nodeLabel2;e.dfsCode.dfsEdgeList.push(new Rt(r,i+1,Pt,o,s)),e.subGraphMining(a[t].projected),e.dfsCode.dfsEdgeList.pop()})}},t.prototype.generate1EdgeFrequentSubGraphs=function(){var t=this.graphs,e=this.directed,n=this.minSupport,r=this.frequentSize1Subgraphs,i={},o={},a={},s={};return Object.keys(t).forEach(function(n){var r=t[n],l=r.nodeMap;r.nodes.forEach(function(t,r){var u=t.label,c="".concat(n,"-").concat(u);if(!a[c]){var h=i[u]||0;h++,i[u]=h}a[c]={graphKey:n,label:u},t.edges.forEach(function(t){var r=u,i=l[t.to].label;if(!e&&r>i){var a=i;i=r,r=a}var c=t.label,h="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),d="".concat(r,"-").concat(c,"-").concat(i);if(!o[d]){var f=o[d]||0;f++,o[d]=f}s[h]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}})})}),Object.keys(i).forEach(function(t){if(!(i[t]<n)){var e={nodes:[],edges:[]};e.nodes.push({id:"0",label:t}),r.push(e)}}),r},t.prototype.run=function(){var t=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var e=this.graphs,n=(this.directed,{});Object.keys(e).forEach(function(r){var i=e[r],o=i.nodeMap;i.nodes.forEach(function(e){t.findForwardRootEdges(i,e).forEach(function(t){var i=o[t.to],a="".concat(e.label,"-").concat(t.label,"-").concat(i.label);n[a]||(n[a]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:i.label});var s={graphId:r,edge:t,preNode:null};n[a].projected.push(s)})})}),Object.keys(n).forEach(function(e){var r=n[e],i=r.projected,o=r.nodeLabel1,a=r.edgeLabel,s=r.nodeLabel2;t.dfsCode.dfsEdgeList.push(new Rt(0,1,o,a,s)),t.subGraphMining(i),t.dfsCode.dfsEdgeList.pop()})}},t}(),Vt=function(t){var e=t.graphs,n=t.directed,r=void 0!==n&&n,i=t.nodeLabelProp,o=void 0===i?"cluster":i,a=t.edgeLabelProp,s=void 0===a?"cluster":a,l=function(t,e,n,r){var i={};return Object.keys(t).forEach(function(o,a){var s=t[o],l=new Nt(a,!0,e),u={};s.nodes.forEach(function(t,e){l.addNode(e,t[n]),u[t.id]=e}),s.edges.forEach(function(t,e){var n=u[t.source],i=u[t.target];l.addEdge(-1,n,i,t[r])}),l&&l.getNodeNum()&&(i[l.id]=l)}),i}(e,r,o,s),u=t.minSupport,c=t.maxNodeNum,h=t.minNodeNum,d=t.verbose,f=t.top,p=new zt({graphs:l,minSupport:u,maxNodeNum:c,minNodeNum:h,top:f,verbose:d,directed:r});return p.run(),function(t,e,n){var r=[];return t.forEach(function(t){var i={nodes:[],edges:[]};t.nodes.forEach(function(t){var n;i.nodes.push(((n={id:"".concat(t.id)})[e]=t.label,n))}),t.edges.forEach(function(t){var e;i.edges.push(((e={source:"".concat(t.from),target:"".concat(t.to)})[n]=t.label,e))}),r.push(i)}),r}(p.frequentSubgraphs,o,s)},$t=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach(function(t,e){i.push(Gt(o,t,e,n,r))}),i},Gt=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach(function(e,l){if(e<=i&&n!==l){o.push(l),a.push(t[l]);var u=t[l][r];s[u]?(s[u].count++,s[u].dists.push(e)):s[u]={count:1,dists:[e]}}}),Object.keys(s).forEach(function(t){s[t].dists=s[t].dists.sort(function(t,e){return t-e})}),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s}},Ht=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach(function(o){var a,s;if(!r||!r[o]){r[o]={nodes:[],edges:[]};var l=t[o],u=null===(a=e[l.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[l.end])||void 0===s?void 0:s.nodeIdxs;if(u&&c){var h=new Set(c),d=u.filter(function(t){return h.has(t)});if(d&&d.length){for(var f={},p=d.length,g=0;g<p;g++){var v=i[d[g]];r[o].nodes.push(v),f[v.id]=!0}n.edges.forEach(function(t){f[t.source]&&f[t.target]&&r[o].edges.push(t)})}}}}),r},Wt=function(t,e,n,r){var i,o,a={};t.nodes.forEach(function(t){a[t.id]=t});var s=0;return!(null===(i=null===e||void 0===e?void 0:e.edges)||void 0===i?void 0:i.length)||(null===(o=null===e||void 0===e?void 0:e.nodes)||void 0===o?void 0:o.length)<2?0:(t.edges.forEach(function(t){var i=a[t.source][n],o=a[t.target][n],l=null===e||void 0===e?void 0:e.nodes[0][n],u=null===e||void 0===e?void 0:e.nodes[1][n],c=null===e||void 0===e?void 0:e.edges[0][r];t[r]===c&&(i===l&&o===u||i===u&&o===l)&&s++}),s)},Ut=function(t,e){var n={},r={};return t.forEach(function(t,i){n[t.id]={idx:i,node:t,degree:0,inDegree:0,outDegree:0};var o=t[e];r[o]||(r[o]=[]),r[o].push(t)}),{nodeMap:n,nodeLabelMap:r}},Yt=function(t,e,n){var r={},i={};return t.forEach(function(t,o){r["".concat(V)]={idx:o,edge:t};var a=t[e];i[a]||(i[a]=[]),i[a].push(t);var s=n[t.source];s&&(s.degree++,s.outDegree++);var l=n[t.target];l&&(l.degree++,l.inDegree++)}),{edgeMap:r,edgeLabelMap:i}},Xt=function(t,e,n){var r=e.length,i={};return e.forEach(function(e,o){for(var a=n?0:o+1,s=t[o].id,l=a;l<r;l++)if(o!==l){var u=t[l].id,c=e[l];i["".concat(s,"-").concat(u)]=c,n||(i["".concat(u,"-").concat(s)]=c)}}),i},qt=function(t,e,n,r,i,o,a,s,l,u,c){var h,d="".concat(e.id,"-").concat(n.id);if(u&&u[d])return u[d];var f=c?c[d]:void 0;if(!f){var p=((h={})[d]={start:r[e.id].idx,end:r[n.id].idx,distance:i},h);f=(c=Ht(p,o,t,c))[d]}return Wt(f,a,s,l)},Zt=function(t,e,n,r){var i,o,a,s=null===(i=t[e])||void 0===i?void 0:i.degree,l=null===(o=t[e])||void 0===o?void 0:o.inDegree,u=null===(a=t[e])||void 0===a?void 0:a.outDegree;return void 0===t[e]&&(s=1/0,l=1/0,u=1/0,r[e].forEach(function(t){var e=n[t.id].degree;s>e&&(s=e);var r=n[t.id].inDegree;l>r&&(l=r);var i=n[t.id].outDegree;u>i&&(u=i)}),t[e]={degree:s,inDegree:l,outDegree:u}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:l,minPatternNodeLabelOutDegree:u}},Kt=function(t,e,n,r,i,o,a){var s;if(void 0===n&&(n=!1),void 0===o&&(o="cluster"),void 0===a&&(a="cluster"),t&&t.nodes){var l=t.nodes.length;if(l){var u=st(t,n),c=st(e,n),h=Xt(t.nodes,u,n),d=Xt(e.nodes,c,n),f=Ut(t.nodes,o),p=f.nodeMap,g=f.nodeLabelMap,v=Ut(e.nodes,o),m=v.nodeMap,y=v.nodeLabelMap;Yt(t.edges,a,p);var b=Yt(e.edges,a,m).edgeLabelMap,_=[];null===c||void 0===c||c.forEach(function(t){_=_.concat(t)}),i||(i=Math.max.apply(Math,Object(et.__spreadArray)(Object(et.__spreadArray)([],_,!1),[2],!1))),r||(r=i);var x=$t(t,u,o,r),w=$t(e,c,o,r),S=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach(function(t,r){for(var l=0,u=0,c=t.nodeIdxs,h=t.neighborNum-1;l<o;){for(var d=c[1+Math.floor(Math.random()*h)],f=0;(a["".concat(r,"-").concat(d)]||a["".concat(d,"-").concat(r)])&&(d=Math.floor(Math.random()*e),!(++f>2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},l++,++s>=n))return a;if(++u>2*e)break}l<o&&(o=(o+(o-l))/(e-r-1))}),a}(0,l,Math.min(100,l*(l-1)/2),x,u),C=Ht(S,x,t),k=Vt({graphs:C,nodeLabelProp:o,edgeLabelProp:a,minSupport:1,minNodeNum:1,maxNodeNum:4,directed:n}).slice(0,10),O=k.length,M=[];k.forEach(function(t,e){M[e]={},Object.keys(C).forEach(function(n){var r=C[n],i=Wt(r,t,o,a);M[e][n]=i})});var E=function(t,e,n){for(var r=1/0,i=0,o=function(e){var n=t[e],o=[];Object.keys(n).sort(function(t,e){return n[t]-n[e]}).forEach(function(t,e){o[e%10]||(o[e%10]={graphs:[],totalCount:0,aveCount:0}),o[e%10].graphs.push(t),o[e%10].totalCount+=n[t]});var a=0,s=[];o.forEach(function(t){var e=t.totalCount/t.graphs.length;t.aveCount=e,s.push(e);var r=0,i=t.length;t.graphs.forEach(function(e,i){var o=n[e];t.graphs.forEach(function(t,e){i!==e&&(r+=Math.abs(o-n[t]))})}),a+=r/=i*(i-1)/2}),a/=o.length;var l=0;s.forEach(function(t,e){s.forEach(function(n,r){e!==r&&(l+=Math.abs(t-n))}),l/=s.length*(s.length-1)/2});var u=l-a;r<u&&(r=u,i=e)},a=0;a<e;a++)o(a);return{structure:n[i],structureCountMap:t[i]}}(M,O,k),T=E.structure,A=E.structureCountMap,I=e.nodes[0],D=[],P=null===(s=e.nodes[0])||void 0===s?void 0:s[o],L=-1/0;e.nodes.forEach(function(t){var e=t[o],n=g[e];(null===n||void 0===n?void 0:n.length)>L&&(L=n.length,D=n,P=e,I=t)});var j={},N={},R={},B={},F={},z={};Object.keys(y).forEach(function(r,i){F[r]=[],n&&(z[r]=[]);var s=-1/0,l={};y[r].forEach(function(t){var e=d["".concat(I.id,"-").concat(t.id)];if(e&&F[r].push(e),s<e&&(s=e),l["".concat(I.id,"-").concat(t.id)]={start:0,end:m[t.id].idx,distance:e},n){var i=d["".concat(t.id,"-").concat(I.id)];i&&z[r].push(i)}}),F[r]=F[r].sort(function(t,e){return t-e}),n&&(z[r]=z[r].sort(function(t,e){return t-e})),N=Ht(l,w,e,N);var u=[];if(Object.keys(l).forEach(function(t){if(R[t])u.push(R[t]);else{var e=N[t];R[t]=Wt(e,T,o,a),u.push(R[t])}}),u=u.sort(function(t,e){return e-t}),B["".concat(I.id,"-").concat(r)]=u,r!==P)for(var c=function(e){var n=D[e],i=x[p[n.id].idx],s=i.nodeLabelCountMap[r],l=y[r].length;if(!s||s.count<l)return D.splice(e,1),"continue";for(var c=!1,d=0;d<l;d++)if(s.dists[d]>F[r][d]){c=!0;break}if(c)return D.splice(e,1),"continue";var f={};i.neighbors.forEach(function(t){var e=h["".concat(n.id,"-").concat(t.id)];f["".concat(n.id,"-").concat(t.id)]={start:p[n.id].idx,end:p[t.id].idx,distance:e}}),C=Ht(f,x,t,C);var g=[];Object.keys(f).forEach(function(t){if(A[t])g.push(A[t]);else{var e=C[t];A[t]=Wt(e,T,o,a),g.push(A[t])}}),g=g.sort(function(t,e){return e-t});var v=!1;for(d=0;d<l;d++)if(g[d]<u[d]){v=!0;break}return v?(D.splice(e,1),"continue"):void 0},f=((null===D||void 0===D?void 0:D.length)||0)-1;f>=0;f--)c(f)});var V=[];null===D||void 0===D||D.forEach(function(r){for(var s=p[r.id].idx,l=Gt(t.nodes,u[s],s,o,i).neighbors,c=!1,d=l.length-1;d>=0;d--){if(l.length+1<e.nodes.length)return void(c=!0);var f=l[d],g=f[o];if(y[g]&&y[g].length)if(F[g]&&F[g].length){var v="".concat(r.id,"-").concat(f.id),b=h[v],_=F[g].length-1;if(b>F[g][_])l.splice(d,1);else{if(n){var w="".concat(f.id,"-").concat(r.id),S=h[w];if(_=z[g].length-1,S>z[g][_]){l.splice(d,1);continue}}var k=A[v]?A[v]:qt(t,r,f,p,b,x,T,o,a,A,C),O="".concat(I.id,"-").concat(g);if(k<B[O][B[O].length-1])l.splice(d,1);else{var M=Zt(j,g,m,y),E=M.minPatternNodeLabelDegree;M.minPatternNodeLabelInDegree,M.minPatternNodeLabelOutDegree,p[f.id].degree<E&&l.splice(d,1)}}}else l.splice(d,1);else l.splice(d,1)}c||V.push({nodes:[r].concat(l)})});var $=nt(e,I.id,!1).length,G={};n?(Object.keys($).forEach(function(t){var e=m[t].node[o];G[e]?G[e].push($[t]):G[e]=[$[t]]}),Object.keys(G).forEach(function(t){G[t].sort(function(t,e){return t-e})})):G=F;for(var H=function(r){var i=V[r],s=i.nodes[0],l={},u={};i.nodes.forEach(function(t,e){u[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[o];l[n]?l[n]++:l[n]=1});var c=[],h={};t.edges.forEach(function(t){u[t.source]&&u[t.target]&&(c.push(t),h[t[a]]?h[t[a]]++:h[t[a]]=1,u[t.source].degree++,u[t.target].degree++,u[t.source].outDegree++,u[t.target].inDegree++)});for(var d=Object.keys(b).length,f=!1,g=0;g<d;g++){var v=Object.keys(b)[g];if(!h[v]||h[v]<b[v].length){f=!0;break}}if(f)return V.splice(r,1),"continue";var _=c.length;if(_<e.edges.length)return V.splice(r,1),"break";var x=!1,w=function(t){var e=c[t],r=e[a],i=b[r];if(!i||!i.length)return h[r]--,i&&h[r]<i.length?(x=!0,"break"):(c.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue");var s=u[e.source].node[o],l=u[e.target].node[o],d=!1;return i.forEach(function(t){var e=m[t.source].node,r=m[t.target].node;e[o]===s&&r[o]===l&&(d=!0),n||e[o]!==l||r[o]!==s||(d=!0)}),d?void 0:(h[r]--,i&&h[r]<i.length?(x=!0,"break"):(c.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue"))};for(g=_-1;g>=0&&"break"!==w(g);g--);if(x)return V.splice(r,1),"continue";i.edges=c;var S=nt(i,i.nodes[0].id,!1).length;if(Object.keys(S).reverse().forEach(function(t){if(t!==i.nodes[0].id&&!x){if(S[t]===1/0){var e=u[t].node[o];if(l[e]--,l[e]<y[e].length)return void(x=!0);var n=i.nodes.indexOf(u[t].node);return i.nodes.splice(n,1),void(u[t]=void 0)}var r=p[t].node[o];if(!G[r]||!G[r].length||S[t]>G[r][G[r].length-1]){if(e=u[t].node[o],l[e]--,l[e]<y[e].length)return void(x=!0);n=i.nodes.indexOf(u[t].node),i.nodes.splice(n,1),u[t]=void 0}}}),x)return V.splice(r,1),"continue";for(var C=!0,k=0;C&&!x;){if(C=!1,n?u[s.id].degree<m[I.id].degree||u[s.id].inDegree<m[I.id].inDegree||u[s.id].outDegree<m[I.id].outDegree:u[s.id].degree<m[I.id].degree){x=!0;break}if(l[s[o]]<y[s[o]].length){x=!0;break}for(var O=i.nodes.length-1;O>=0;O--){var M=i.nodes[O],E=u[M.id].degree,T=u[M.id].inDegree,A=u[M.id].outDegree,D=M[o],P=Zt(j,D,m,y),L=P.minPatternNodeLabelDegree,N=P.minPatternNodeLabelInDegree,R=P.minPatternNodeLabelOutDegree;if(n?E<L||T<N||A<R:E<L){if(l[M[o]]--,l[M[o]]<y[M[o]].length){x=!0;break}i.nodes.splice(O,1),u[M.id]=void 0,C=!0}}if(x||!C&&0!==k)break;for(var B=(_=c.length)-1;B>=0;B--){var F=c[B];if(!u[F.source]||!u[F.target]){c.splice(B,1);var z=F[a];if(h[z]--,u[F.source]&&(u[F.source].degree--,u[F.source].outDegree--),u[F.target]&&(u[F.target].degree--,u[F.target].inDegree--),b[z]&&h[z]<b[z].length){x=!0;break}C=!0}}k++}return x?(V.splice(r,1),"continue"):x||i.nodes.length<e.nodes.length||c.length<e.edges.length?(V.splice(r,1),"continue"):void 0},W=V.length-1;W>=0&&"break"!==H(W);W--);var U=V.length,Y=function(t){var e={};V[t].edges.forEach(function(t){var n="".concat(t.source,"-").concat(t.target,"-").concat(t.label);e[n]?e[n]++:e[n]=1});for(var n=function(t){var n={};V[t].edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1});var r=!0;Object.keys(n).length!==Object.keys(e).length?r=!1:Object.keys(e).forEach(function(t){n[t]!==e[t]&&(r=!1)}),r&&V.splice(t,1)},r=U-1;r>t;r--)n(r);U=V.length};for(W=0;W<=U-1;W++)Y(W);return V}}},Jt=function(){function t(t){void 0===t&&(t=10),this.linkedList=new R,this.maxStep=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value})},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}(),Qt=tt,te={getAdjMatrix:L,breadthFirstSearch:$,connectedComponent:W,getDegree:Y,getInDegree:X,getOutDegree:q,detectCycle:tt,detectDirectedCycle:Qt,detectAllCycles:Q,detectAllDirectedCycle:J,detectAllUndirectedCycle:K,depthFirstSearch:Z,dijkstra:nt,findAllPath:at,findShortestPath:ot,floydWarshall:st,labelPropagation:lt,louvain:vt,iLouvain:mt,kCore:yt,kMeans:_t,cosineSimilarity:xt,nodesCosineSimilarity:wt,minimumSpanningTree:Et,pageRank:Tt,getNeighbors:F,Stack:Jt,GADDI:Kt},ee=P.a.transform,ne=function(t){return function(e,n){return e[t]-n[t]}},re=function(t,e,n){return t>=e&&t<=n},ie=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,l=r.x-n.x,u=r.y-n.y,c=a*u-s*l,h=1/c;if(c*c>1e-4*(a*a+s*s)*(l*l+u*u)){var d=(i*u-o*l)*h,f=(i*s-o*a)*h;return re(d,0,1)&&re(f,0,1)?{x:t.x+d*a,y:t.y+d*s}:null}return null},oe=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=[],s={x:n+i/2,y:r+o/2};a.push({x:n,y:r}),a.push({x:n+i,y:r}),a.push({x:n+i,y:r+o}),a.push({x:n,y:r+o}),a.push({x:n,y:r});for(var l=null,u=1;u<a.length&&!(l=ie(a[u-1],a[u],s,e));u++);return l},ae=function(t,e){var n=t.x,r=t.y,i=t.r,o=e.x-n,a=e.y-r;if(o*o+a*a<i*i)return null;var s=Math.atan(a/o);return{x:n+Math.abs(i*Math.cos(s))*Math.sign(o),y:r+Math.abs(i*Math.sin(s))*Math.sign(a)}},se=function(t,e){var n=t.rx,r=t.ry,i=t.x,o=t.y,a=e.x-i,s=e.y-o,l=Math.atan2(s/r,a/n);return l<0&&(l+=2*Math.PI),{x:i+n*Math.cos(l),y:o+r*Math.sin(l)}},le=function(t,e,n){void 0===n&&(n=1);var r=[t.x,t.y,n];return e&&!isNaN(e[0])||(e=[1,0,0,0,1,0,0,0,1]),P.d.transformMat3(r,r,e),{x:r[0],y:r[1]}},ue=function(t,e,n){void 0===n&&(n=1),e&&!isNaN(e[0])||(e=[1,0,0,0,1,0,0,0,1]);var r=P.b.invert([1,0,0,0,1,0,0,0,1],e);r||(r=[1,0,0,0,1,0,0,0,1]);var i=[t.x,t.y,n];return P.d.transformMat3(i,i,r),{x:i[0],y:i[1]}},ce=function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=t.x-n.x,a=t.y-n.y,s=(t.x*t.x-e.x*e.x-e.y*e.y+t.y*t.y)/2,l=(t.x*t.x-n.x*n.x-n.y*n.y+t.y*t.y)/2,u=i*o-r*a;return{x:-(a*s-i*l)/u,y:-(r*l-o*s)/u}},he=function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)},de=function(t,e){var n=[];return t.forEach(function(t){var r=[];t.forEach(function(t){r.push(t*e)}),n.push(r)}),n},fe=function(t){for(var e=[],n=t.length,r=0;r<n;r+=1){e[r]=[];for(var i=0;i<n;i+=1)r===i?e[r][i]=0:0!==t[r][i]&&t[r][i]?e[r][i]=t[r][i]:e[r][i]=1/0}for(var o=0;o<n;o+=1)for(r=0;r<n;r+=1)for(i=0;i<n;i+=1)e[r][i]>e[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e},pe=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(t,e){o[t.id]=e;i.push([])}),r&&r.forEach(function(t){var n=t.source,r=t.target,a=o[n],s=o[r];i[a][s]=1,e||(i[s][a]=1)}),i},ge=function(t,e){t.translate(e.x,e.y)},ve=function(t,e,n,r){void 0===r&&(r={duration:500});var i=t.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=t.getCanvasBBox(),a=e.x-o.minX,s=e.y-o.minY;if(n){var l=a*i[0],u=s*i[4],c=0,h=0,d=0,f=0;t.animate(function(t){return i=ee(i,[["t",(d=l*t)-c,(f=u*t)-h]]),c=d,h=f,{matrix:i}},r)}else{var p=ee(i,[["t",a,s]]);t.setMatrix(p)}},me=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e;Object(x.isArray)(e)||(r=[e,e]),Object(x.isArray)(e)&&1===e.length&&(r=[e[0],e[0]]),n=ee(n,[["s",r[0],r[1]]]),t.setMatrix(n)},ye=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=ee(n,[["r",e]]),t.setMatrix(n)},be=function(t,e,n){for(var r=[],i=0;i<t;i++)r[i]=0;return n.forEach(function(t){t.source&&(r[e[t.source]]+=1),t.target&&(r[e[t.target]]+=1)}),r};function _e(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}var xe=function(t,e,n){var r=!1,i=t.length,o=1e-6;function a(t){return Math.abs(t)<o?0:t<0?-1:1}if(i<=2)return!1;for(var s=0;s<i;s++){var l=t[s],u=t[(s+1)%i];if(_e(l,u,[e,n]))return!0;a(l[1]-n)>0!=a(u[1]-n)>0&&a(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(r=!r)}return r},we=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},Se=function(t,e){var n=function(t){var e=t.map(function(t){return t[0]}),n=t.map(function(t){return t[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}},r=function(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e};if(t.length<2||e.length<2)return!1;var i=n(t),o=n(e);if(!we(i,o))return!1;var a=!1;if(Object(x.each)(e,function(e){if(xe(t,e[0],e[1]))return a=!0,!1}),a)return!0;if(Object(x.each)(t,function(t){if(xe(e,t[0],t[1]))return a=!0,!1}),a)return!0;var s=r(t),l=r(e),u=!1;return Object(x.each)(l,function(t){if(function(t,e){var n=!1;return Object(x.each)(t,function(t){if(ie(t.from,t.to,e.from,e.to))return n=!0,!1}),n}(s,t))return u=!0,!1}),u},Ce=function(){function t(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}return t.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:t,y:e,minX:t,minY:e,maxX:n,maxY:r,width:n-t,height:r-e}},t}(),ke=function(t,e){return{top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]}[e]},Oe=function(t,e){var n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),r=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),i=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(i){var o=n/i,a=r/i;if(o>=0&&o<=1&&a>=0&&a<=1)return o}return Number.POSITIVE_INFINITY},Me=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=0,o=[],a=0;a<4;a++){var s=ke(r,n[a]),l=s[0],u=s[1],c=s[2],h=s[3];o[a]=ie({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:l,y:u},{x:c,y:h}),o[a]&&(i+=1)}return[o,i]},Ee=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=Number.POSITIVE_INFINITY,o=0,a=0;a<4;a++){var s=ke(r,n[a]),l=s[0],u=s[1],c=s[2],h=s[3],d=Oe(e,new Ce(l,u,c,h));(d=Math.abs(d-.5))>=0&&d<=1&&(o+=1,i=d<i?d:i)}return 0===o?-1:i},Te=function(t){var e=0,n=0;if(t.length>0){for(var r=0,i=t;r<i.length;r++){var o=i[r];e+=o.x,n+=o.y}e/=t.length,n/=t.length}return{x:e,y:n}},Ae=function(t,e){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)},Ie=function(t,e){var n,r=e.x1,i=e.y1,o=e.x2-r,a=e.y2-i,s=t.x-r,l=t.y-i,u=s*o+l*a;n=u<=0?0:(u=(s=o-s)*o+(l=a-l)*a)<=0?0:u*u/(o*o+a*a);var c=s*s+l*l-n;return c<0&&(c=0),c},De=function(t,e,n){return void 0===n&&(n=.001),Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<Math.pow(n,2)},Pe=function(t,e){var n=t.x<e.x,r=t.x>e.x+e.width,i=t.y>e.y+e.height,o=t.y<e.y;if(!(n||r||i||o))return 0;if(i&&!n&&!r)return Math.pow(e.y+e.height-t.y,2);if(o&&!n&&!r)return Math.pow(t.y-e.y,2);if(n&&!i&&!o)return Math.pow(e.x-t.x,2);if(r&&!i&&!o)return Math.pow(e.x+e.width-t.x,2);var a=Math.min(Math.abs(e.x-t.x),Math.abs(e.x+e.width-t.x)),s=Math.min(Math.abs(e.y-t.y),Math.abs(e.y+e.height-t.y));return a*a+s*s},Le=function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=e.x,s=e.y,l=[i-n,o-r];if(P.c.exactEquals(l,[0,0]))return NaN;var u=[-l[1],l[0]];P.c.normalize(u,u);var c=[a-n,s-r];return Math.abs(P.c.dot(c,u))},je=function(t,e,n){return t+(e-t)*n},Ne=function(t,e,n){for(var r=Math.min(t.length,e.length),i=new Array(r),o=0;o<r;o++)i[o]=je(t[o],e[o],n);return i},Re="rgb(253, 253, 253)",Be="rgb(95, 149, 255)",Fe="rgb(95, 149, 255)",ze="rgb(247, 250, 255)",Ve="rgb(95, 149, 255)",$e="rgb(224, 224, 224)",Ge="rgb(95, 149, 255)",He="rgb(224, 224, 224)",We="rgb(95, 149, 255)",Ue={version:"0.8.23",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:Be,fill:"rgb(239, 244, 255)"},size:20,color:Be,linkPoints:{size:8,lineWidth:1,fill:ze,stroke:Fe}},nodeStateStyles:{active:{fill:ze,stroke:Fe,lineWidth:2,shadowColor:Be,shadowBlur:10},selected:{fill:"rgb(255, 255, 255)",stroke:Ve,lineWidth:4,shadowColor:Ve,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:"rgb(223, 234, 255)",stroke:"#4572d9",lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:"rgb(247, 250, 255)",stroke:"rgb(191, 213, 255)",lineWidth:1},disable:{fill:"rgb(250, 250, 250)",stroke:"rgb(224, 224, 224)",lineWidth:1}},edgeLabel:{style:{fill:"rgb(0, 0, 0)",textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:$e,lineAppendWidth:2},color:$e},edgeStateStyles:{active:{stroke:"rgb(95, 149, 255)",lineWidth:1},selected:{stroke:Ge,lineWidth:2,shadowColor:Ge,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:"rgb(95, 149, 255)",lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:"rgb(234, 234, 234)",lineWidth:1},disable:{stroke:"rgb(245, 245, 245)",lineWidth:1}},comboLabel:{style:{fill:"rgb(0, 0, 0)",textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:Re,lineWidth:1,stroke:He,r:5,width:20,height:10},size:[20,5],color:He,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:"rgb(95, 149, 255)",lineWidth:1,fill:"rgb(247, 250, 255)"},selected:{stroke:We,lineWidth:2,fill:Re,shadowColor:We,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:"#4572d9",lineWidth:2,fill:Re,"text-shape":{fontWeight:500}},inactive:{stroke:"rgb(224, 224, 224)",fill:Re,lineWidth:1},disable:{stroke:"rgb(234, 234, 234)",fill:"rgb(250, 250, 250)",lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},windowFontFamily:"undefined"!=typeof window&&window.getComputedStyle&&document.body&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"},Ye={" ":.3329986572265625,a:.5589996337890625,A:.6569992065429687,b:.58599853515625,B:.6769989013671875,c:.5469985961914062,C:.7279998779296875,d:.58599853515625,D:.705999755859375,e:.554998779296875,E:.63699951171875,f:.37299957275390627,F:.5769989013671875,g:.5909988403320312,G:.7479995727539063,h:.555999755859375,H:.7199996948242188,i:.255999755859375,I:.23699951171875,j:.26699981689453123,J:.5169998168945312,k:.5289993286132812,K:.6899993896484375,l:.23499908447265624,L:.5879989624023437,m:.854998779296875,M:.8819992065429687,n:.5589996337890625,N:.7189987182617188,o:.58599853515625,O:.7669998168945312,p:.58599853515625,P:.6419998168945312,q:.58599853515625,Q:.7669998168945312,r:.3649993896484375,R:.6759994506835938,s:.504998779296875,S:.6319992065429687,t:.354998779296875,T:.6189987182617187,u:.5599990844726562,U:.7139999389648437,v:.48199920654296874,V:.6389999389648438,w:.754998779296875,W:.929998779296875,x:.5089996337890625,X:.63699951171875,y:.4959991455078125,Y:.66199951171875,z:.48699951171875,Z:.6239990234375,0:.6,1:.40099945068359377,2:.6,3:.6,4:.6,5:.6,6:.6,7:.5469985961914062,8:.6,9:.6,"[":.3329986572265625,"]":.3329986572265625,",":.26399993896484375,".":.26399993896484375,";":.26399993896484375,":":.26399993896484375,"{":.3329986572265625,"}":.3329986572265625,"\\":.5,"|":.19499969482421875,"=":.604998779296875,"+":.604998779296875,"-":.604998779296875,_:.5,"`":.3329986572265625," ~":.8329986572265625,"!":.3329986572265625,"@":.8579986572265625,"#":.6,$:.6,"%":.9699996948242188,"^":.517999267578125,"&":.7259994506835937,"*":.505999755859375,"(":.3329986572265625,")":.3329986572265625,"<":.604998779296875,">":.604998779296875,"/":.5,"?":.53699951171875},Xe=Math.PI,qe=Math.sin,Ze=Math.cos,Ke=qe(Xe/8),Je=Ze(Xe/8),Qe=function(t,e){var n=t.getBBox(),r={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(e){var o=e.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),r=le(r,o),i=le(i,o)}var a=r.x,s=r.y,l=i.x,u=i.y;return{x:a,y:s,minX:a,minY:s,maxX:l,maxY:u,width:l-a,height:u-s}},tn=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e.getKeyShape(),i=r.getBBox(),o=t.loopCfg||{},a=o.dist||2*Math.max(i.width,i.height),s=o.position||Ue.defaultLoopPosition,l=[(i.minX+i.maxX)/2+n[6],(i.minY+i.maxY)/2+n[7]],u=[t.startPoint.x,t.startPoint.y],c=[t.endPoint.x,t.endPoint.y],h=i.height/2,d=i.width/2,f=h,p=h,g=f*Ke,v=f*Je,m=p*Ke,y=p*Je,b=r.get("type"),_=Math.min(h/2,d/2),x=Math.min(h,d),w=(null===o||void 0===o?void 0:o.pointPadding)?Math.min(x,null===o||void 0===o?void 0:o.pointPadding):_;if(u[0]===c[0]&&u[1]===c[1]){switch(s){case"top":"circle"===b?(u=[l[0]-g,l[1]-v],c=[l[0]+m,l[1]-y]):(u=[l[0]-w,l[1]-h],c=[l[0]+w,l[1]-h]);break;case"top-right":f=h,p=d,"circle"===b?(u=[l[0]+(g=f*Ke),l[1]-(v=f*Je)],c=[l[0]+(y=p*Je),l[1]-(m=p*Ke)]):(u=[l[0]+d-w,l[1]-h],c=[l[0]+d,l[1]-h+w]);break;case"right":f=d,p=d,"circle"===b?(u=[l[0]+(v=f*Je),l[1]-(g=f*Ke)],c=[l[0]+(y=p*Je),l[1]+(m=p*Ke)]):(u=[l[0]+d,l[1]-w],c=[l[0]+d,l[1]+w]);break;case"bottom-right":f=d,p=h,"circle"===b?(u=[l[0]+(v=f*Je),l[1]+(g=f*Ke)],c=[l[0]+(m=p*Ke),l[1]+(y=p*Je)]):(u=[l[0]+d,l[1]+h-w],c=[l[0]+d-w,l[1]+h]);break;case"bottom":f=h,p=h,"circle"===b?(u=[l[0]+(g=f*Ke),l[1]+(v=f*Je)],c=[l[0]-(m=p*Ke),l[1]+(y=p*Je)]):(u=[l[0]-w,l[1]+h],c=[l[0]+w,l[1]+h]);break;case"bottom-left":f=h,p=d,"circle"===b?(u=[l[0]-(g=f*Ke),l[1]+(v=f*Je)],c=[l[0]-(y=p*Je),l[1]+(m=p*Ke)]):(u=[l[0]-d,l[1]+h-w],c=[l[0]-d+w,l[1]+h]);break;case"left":f=d,p=d,"circle"===b?(u=[l[0]-(v=f*Je),l[1]+(g=f*Ke)],c=[l[0]-(y=p*Je),l[1]-(m=p*Ke)]):(u=[l[0]-d,l[1]-w],c=[l[0]-d,l[1]+w]);break;case"top-left":f=d,p=h,"circle"===b?(u=[l[0]-(v=f*Je),l[1]-(g=f*Ke)],c=[l[0]-(m=p*Ke),l[1]-(y=p*Je)]):(u=[l[0]-d+w,l[1]-h],c=[l[0]-d,l[1]-h+w]);break;default:u=[l[0]-(g=(f=d)*Ke),l[1]-(v=f*Je)],c=[l[0]+(m=(p=d)*Ke),l[1]-(y=p*Je)]}if(!1===o.clockwise){var S=[u[0],u[1]];u=[c[0],c[1]],c=[S[0],S[1]]}}var C=[u[0]-l[0],u[1]-l[1]],k=(f+a)/f,O=(p+a)/p;!1===o.clockwise&&(k=(p+a)/p,O=(f+a)/f);var M=P.c.scale([0,0],C,k),E=[l[0]+M[0],l[1]+M[1]],T=[c[0]-l[0],c[1]-l[1]],A=P.c.scale([0,0],T,O),I=[l[0]+A[0],l[1]+A[1]];return t.startPoint={x:u[0],y:u[1]},t.endPoint={x:c[0],y:c[1]},t.controlPoints=[{x:E[0],y:E[1]},{x:I[0],y:I[1]}],t},en=function(t,e,n,r,i){var o=[],a=null===t||void 0===t?void 0:t.getPoint(e);if(!a)return{x:0,y:0,angle:0};if(e<1e-4)o=t.getStartTangent().reverse();else if(e>.9999)o=t.getEndTangent();else{var s=null===t||void 0===t?void 0:t.getPoint(e+1e-4);o.push([a.x,a.y]),o.push([s.x,s.y])}var l=Math.atan2(o[1][1]-o[0][1],o[1][0]-o[0][0]);if(l<0&&(l+=2*Xe),n&&(a.x+=Ze(l)*n,a.y+=qe(l)*n),r){var u=l-Xe/2;l>.5*Xe&&l<1.5*Xe&&(u-=Xe),a.x+=Ze(u)*r,a.y+=qe(u)*r}var c={x:a.x,y:a.y,angle:l};return i?(l>.5*Xe&&l<1.5*Xe&&(l-=Xe),M({rotate:l},c)):c},nn=function(t,e){"function"==typeof e&&function t(e,n,r,i){if(!1===i(e,n,r))return!1;if(e&&e.children)for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return!1;return!0}(t,null,-1,e)},rn=function(t,e){"function"==typeof e&&function t(e,n,r,i){if(e&&e.children)for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return;return!1!==i(e,n,r)}(t,null,-1,e)},on=function(t,e){return e*(Ye[t]||1)},an=function(t,e){var n=0,r=new RegExp("[一-龥]+");return t.split("").forEach(function(t){r.test(t)?n+=e:n+=on(t,e)}),[n,e]},sn=function(t,e){return"number"!=typeof e||e<=0||e>=t.length?t:t.substring(0,e)+"..."},ln=function(t,e){var n=[],r={},i={};t.forEach(function(t){i[t.id]=t}),t.forEach(function(t,e){var o=Object(x.clone)(t);o.itemType="combo",o.children=void 0,o.parentId===o.id?(console.warn("The parentId for combo ".concat(o.id," can not be the same as the combo's id")),delete o.parentId):o.parentId&&!i[o.parentId]&&(console.warn("The parent combo for combo ".concat(o.id," does not exist!")),delete o.parentId);var a=r[o.id];if(a){if(o.children=a.children,r[o.id]=o,!(a=o).parentId)return void n.push(a);var s=r[a.parentId];if(s)s.children?s.children.push(o):s.children=[o];else{var l={id:a.parentId,children:[a]};r[a.parentId]=l,r[o.id]=o}}else if(Object(x.isString)(t.parentId)){var u=r[t.parentId];if(u)u.children?u.children.push(o):u.children=[o],r[o.id]=o;else{var c={id:t.parentId,children:[o]};r[c.id]=c,r[o.id]=o}}else n.push(o),r[o.id]=o});var o={};(e||[]).forEach(function(t){o[t.id]=t;var e=r[t.comboId];if(e){var n={id:t.id,comboId:t.comboId};e.children?e.children.push(n):e.children=[n],n.itemType="node",r[t.id]=n}});var a=0;return n.forEach(function(t){t.depth=a+10,nn(t,function(t){var e,n=r[t.id].itemType;e="node"===n?r[t.comboId]:r[t.parentId],t.depth=e&&"node"===n?a+1:a+10,a<t.depth&&(a=t.depth);var i=o[t.id];return i&&(i.depth=t.depth),!0})}),n},un=function(t,e,n){var r,i,o=t,a={root:{children:t}},s=!1,l="root";(t||[]).forEach(function(t){if(!s)return t.id===e?(i=t,"combo"===t.itemType?i.parentId=n:i.comboId=n,void(s=!0)):void nn(t,function(t){var r;return a[t.id]={children:(null===t||void 0===t?void 0:t.children)||[]},o=null===(r=a[t.parentId||t.comboId||"root"])||void 0===r?void 0:r.children,!t||!t.removed&&e!==t.id||!o||(l=t.parentId||t.comboId||"root",i=t,"combo"===t.itemType?i.parentId=n:i.comboId=n,s=!0,!1)})});var u=(o=null===(r=a[l])||void 0===r?void 0:r.children)?o.indexOf(i):-1;if(u>-1&&o.splice(u,1),s||(i={id:e,itemType:"node",comboId:n},a[e]={children:void 0}),e){var c=!1;if(n){var h=0;(t||[]).forEach(function(t){c||nn(t,function(t){return n!==t.id||(c=!0,t.children?t.children.push(i):t.children=[i],h=t.depth,"node"===i.itemType?i.depth=h+2:i.depth=h+1,!1)})})}else n&&c||"node"===i.itemType||t.push(i);var d=i.depth;nn(i,function(t){return"node"===t.itemType?d+=2:d+=1,t.depth=d,!0})}return t},cn=function(t,e,n){var r={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||0===t.length){var i=(null===n||void 0===n?void 0:n.getModel())||{},o=i.x,a=i.y,s=i.fixSize,l=i.collapsed,u=i.fixCollapseSize,c=l?u:s,h=Object(x.isArray)(c)?c:[c,c],d=h[0],f=h[1],p=[d/2,f/2];return{minX:o-p[0],minY:a-p[1],maxX:o+p[0],maxY:a+p[1],x:o,y:a,width:d,height:f}}return t.forEach(function(t){var n=e.findById(t.id);if(n&&n.isVisible()){n.set("bboxCanvasCache",void 0);var i=n.getCanvasBBox();i.x&&r.minX>i.minX&&(r.minX=i.minX),i.y&&r.minY>i.minY&&(r.minY=i.minY),i.x&&r.maxX<i.maxX&&(r.maxX=i.maxX),i.y&&r.maxY<i.maxY&&(r.maxY=i.maxY)}}),r.x=(r.minX+r.maxX)/2,r.y=(r.minY+r.maxY)/2,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.centerX=(r.minX+r.maxX)/2,r.centerY=(r.minY+r.maxY)/2,"circle"===(null===n||void 0===n?void 0:n.getKeyShape().get("type"))&&(r.width=Math.hypot(r.height,r.width),r.height=r.width),Object.keys(r).forEach(function(t){r[t]!==1/0&&r[t]!==-1/0||(r[t]=void 0)}),r},hn=function(t){var e=Object(x.isNumber)(t.x)||Object(x.isNumber)(t.y)||t.type||t.anchorPoints||t.size;return t.style&&(e=e||Object(x.isNumber)(t.style.r)||Object(x.isNumber)(t.style.width)||Object(x.isNumber)(t.style.height)||Object(x.isNumber)(t.style.rx)||Object(x.isNumber)(t.style.ry)),e},dn=function(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if("img"!==n||Object(x.isString)(r))if(Object(x.isObject)(r)&&!Object(x.isArray)(r)){var i={};Object.keys(r).forEach(function(t){var e=r[t];("img"!==t||Object(x.isString)(e))&&(i[t]=Object(x.clone)(e))}),e[n]=i}else e[n]=Object(x.clone)(r)}),e},fn=function(t){var e,n=t.animateCfg,r=t.callback;if(n)if(e=Object(x.clone)(n),n.callback){var i=n.callback;e.callback=function(){r(),i()}}else e.callback=r;else e={duration:500,callback:r};return e},pn=function(t){if(!t)return console.error("G6 Error Tips: the data must be defined"),!1;var e=t.nodes,n=t.edges,r=t.combos,i=void 0===r?[]:r;if(!e&&!n){var o=!0;return nn(t,function(t){return!!Object(x.isString)(t.id)||(o=!1,!1)}),o}var a=(e||[]).find(function(t){return!Object(x.isString)(t.id)});if(a)return console.warn("G6 Warning Tips: missing 'id' property, or %c".concat(a.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1;var s=(e||[]).map(function(t){return t.id}),l=null===i||void 0===i?void 0:i.map(function(t){return t.id}),u=I(I([],s,!0),l,!0),c=(n||[]).find(function(t){return!u.includes(t.source)||!u.includes(t.target)});return!c||(console.warn("G6 Warning Tips: The source %c".concat(c.source,"%c or the target %c").concat(c.target,"%c of the edge do not exist in the nodes or combos."),"font-size: 20px; color: red;","","font-size: 20px; color: red;",""),!1)},gn=function(){function t(t){this.graph=t,this.destroyed=!1,this.modes=t.get("modes")||{default:[]},this.formatModes(),this.mode=t.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}return t.prototype.formatModes=function(){var t=this.modes;Object(x.each)(t,function(t){Object(x.each)(t,function(e,n){Object(x.isString)(e)&&(t[n]={type:e})})})},t.prototype.setBehaviors=function(t){var e,n=this.graph,r=this.modes[t],i=[];Object(x.each)(r||[],function(t){var r=S.getBehavior(t.type||t);r&&(e=new r(t))&&(e.bind(n),i.push(e))}),this.currentBehaves=i},t.mergeBehaviors=function(t,e){return Object(x.each)(e,function(e){t.indexOf(e)<0&&(Object(x.isString)(e)&&(e={type:e}),t.push(e))}),t},t.filterBehaviors=function(t,e){var n=[];return t.forEach(function(t){var r="";r=Object(x.isString)(t)?t:t.type,e.indexOf(r)<0&&n.push(t)}),n},t.prototype.setMode=function(t){var e=this.modes,n=this.graph,r=t;e[r]&&(n.emit("beforemodechange",{mode:t}),Object(x.each)(this.currentBehaves,function(t){t.delegate&&t.delegate.remove(),t.unbind(n)}),this.setBehaviors(r),n.emit("aftermodechange",{mode:t}),this.mode=t)},t.prototype.getMode=function(){return this.mode},t.prototype.manipulateBehaviors=function(e,n,r){var i,o=this;if(i=Object(x.isArray)(e)?e:[e],Object(x.isArray)(n))return Object(x.each)(n,function(e){o.modes[e]?o.modes[e]=r?t.mergeBehaviors(o.modes[e]||[],i):t.filterBehaviors(o.modes[e]||[],i):r&&(o.modes[e]=i)}),this;var a=n;return n||(a=this.mode),this.modes[a]||r&&(this.modes[a]=i),this.modes[a]=r?t.mergeBehaviors(this.modes[a]||[],i):t.filterBehaviors(this.modes[a]||[],i),this.formatModes(),this.setMode(this.mode),this},t.prototype.updateBehavior=function(t,e,n){Object(x.isString)(t)&&(t={type:t});var r=[];if(n&&n!==this.mode&&"default"!==n){if(!(r=this.modes[n])||!r.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;var i=r.length;for(a=0;a<i;a++){if((s=r[a]).type===t.type||s===t.type)return s===t.type&&(s={type:s}),Object.assign(s,e),r[a]=s,this;a===i-1&&console.warn("Update behavior failed! There is no such behavior in the mode")}}else{if(!(r=this.currentBehaves)||!r.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;for(var o=r.length,a=0;a<o;a++){var s;if((s=r[a]).type===t.type)return s.updateCfg(e),this;a===o-1&&console.warn("Update behavior failed! There is no such behavior in the mode")}}return this},t.prototype.destroy=function(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0},t}(),vn=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.item=n.item,r.canvasX=n.canvasX,r.canvasY=n.canvasY,r.wheelDelta=n.wheelDelta,r.detail=n.detail,r}return O(e,t),e}(n("i6H2").Event),mn=function(t){return"".concat(t,"-").concat(Math.random()).concat(Date.now())},yn=function(t){if(Object(x.isArray)(t))switch(t.length){case 4:return t;case 3:return t.push(t[1]),t;case 2:return t.concat(t);case 1:return[t[0],t[0],t[0],t[0]];default:return[0,0,0,0]}if(Object(x.isNumber)(t))return[t,t,t,t];if(Object(x.isString)(t)){var e=parseInt(t,10);return[e,e,e,e]}return[0,0,0,0]},bn=function(t){var e=new vn(t.type,t);return e.clientX=t.clientX,e.clientY=t.clientY,e.x=t.x,e.y=t.y,e.target=t.target,e.currentTarget=t.currentTarget,e.bubbles=!0,e.item=t.item,e},_n=function(t){if(!t)return!1;for(var e=[1,0,0,0,1,0,0,0,1],n=0;n<9;n++)if(t[n]!==e[n])return!0;return!1},xn=function(t){return Number.isNaN(Number(t))},wn=function(t){for(var e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++){var a=t[o].getBBox(),s=a.minX,l=a.minY,u=a.maxX,c=a.maxY;s<e&&(e=s),l<r&&(r=l),u>n&&(n=u),c>i&&(i=c)}return{x:Math.floor(e),y:Math.floor(r),width:Math.ceil(n)-Math.floor(e),height:Math.ceil(i)-Math.floor(r),minX:e,minY:r,maxX:n,maxY:i}},Sn=function(t,e,n,r,i){void 0===e&&(e=15),void 0===n&&(n="quadratic"),void 0===r&&(r=void 0),void 0===i&&(i=void 0);for(var o=t.length,a=2*e,s=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],l={},u=[],c={},h=0;h<o;h++){var d=t[h],f=d.source,p=d.target,g="".concat(f,"-").concat(p);if(!u[h]){l[g]||(l[g]=[]),u[h]=!0,l[g].push(d);for(var v=0;v<o;v++)if(h!==v){var m=t[v],y=m.source,b=m.target;u[v]||(f===b&&p===y?(l[g].push(m),u[v]=!0,c["".concat(y,"|").concat(b,"|").concat(l[g].length-1)]=!0):f===y&&p===b&&(l[g].push(m),u[v]=!0))}}}for(var _ in l)for(var x=l[_],w=x.length,S=0;S<w;S++){var C=x[S];if(C.source!==C.target)if(1===w&&r&&C.source!==C.target)C.type=r;else{C.type=n;var k=(S%2==0?1:-1)*(c["".concat(C.source,"|").concat(C.target,"|").concat(S)]?-1:1);C.curveOffset=w%2==1?k*Math.ceil(S/2)*a:k*(Math.floor(S/2)*a+e)}else i&&(C.type=i),C.loopCfg={position:s[S%8],dist:20*Math.floor(S/8)+50}}return t},Cn=n("pf7h"),kn=function(){function t(t){this.destroyed=!1,this.graph=t,this.destroyed=!1}return t.prototype.getViewCenter=function(){var t=this.getFormatPadding(),e=this.graph,n=this.graph.get("width"),r=e.get("height");return{x:(n-t[1]-t[3])/2+t[3],y:(r-t[0]-t[2])/2+t[0]}},t.prototype.fitCenter=function(t,e){var n,r=this.graph,i=r.get("group"),o=r.getNodes();if(o.length>r.get("optimizeThreshold")){var a=1/0,s=1/0,l=-1/0,u=-1/0;o.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y;a>n&&(a=n),s>r&&(s=r),l<n&&(l=n),u<r&&(u=r)});var c=i.getMatrix()||[1,0,0,0,1,0,0,0,1],h=le({x:a,y:s},c),d=h.x,f=h.y,p=le({x:l,y:u},c),g=p.x,v=p.y;n={minX:d,maxX:g,minY:f,maxY:v,width:g-d,height:v-f,x:d,y:f}}else n=i.getCanvasBBox();if(0!==n.width&&0!==n.height){var m=this.getViewCenter(),y=n.x+n.width/2,b=n.y+n.height/2;r.translate(m.x-y,m.y-b,t,e)}},t.prototype.animatedFitView=function(t,e,n,r,i,o,a,s){var l=this.graph;n=n||{duration:500,easing:"easeCubic"};var u=r.x+i.x-o.x-r.minX,c=r.y+i.y-o.y-r.minY;if(!xn(u)&&!xn(c)){var h=Object(Cn.transform)([1,0,0,0,1,0,0,0,1],[["t",u,c]]);if(s){var d=l.get("minZoom"),f=l.get("maxZoom"),p=a;d&&a<d?(p=d,console.warn("fitview failed, ratio out of range, ratio: %f",a,"graph minzoom has been used instead")):f&&a>f&&(p=f,console.warn("fitview failed, ratio out of range, ratio: %f",a,"graph maxzoom has been used instead"));var g=Object(Cn.transform)(h,[["t",-i.x,-i.y],["s",p,p],["t",i.x,i.y]]),v=fn({animateCfg:n,callback:function(){t.setMatrix(g),l.emit("viewportchange",{action:"translate",matrix:h}),l.emit("viewportchange",{action:"zoom",matrix:g})}});t.stopAnimate(),t.setMatrix(e),t.animate(function(t){return{matrix:Ne(e,g,t)}},v)}else{var m=fn({animateCfg:n,callback:function(){l.emit("viewportchange",{action:"translate",matrix:h})}});t.animate(function(t){return{matrix:Ne(e,h,t)}},m)}}},t.prototype.fitView=function(t,e){var n,r=this.graph,i=this.getFormatPadding(),o=r.get("width"),a=r.get("height"),s=r.get("group"),l=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var u=r.getNodes();if(u.length>r.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,f=-1/0;u.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y;c>n&&(c=n),h>r&&(h=r),d<n&&(d=n),f<r&&(f=r)}),n={minX:c,maxX:d,minY:h,maxY:f,width:d-c,height:f-h,x:c,y:h}}else n=s.getCanvasBBox();if(0!==n.width&&0!==n.height){var p=this.getViewCenter(),g={x:n.x+n.width/2,y:n.y+n.height/2},v=(o-i[1]-i[3])/n.width,m=(a-i[0]-i[2])/n.height,y=v;if(v>m&&(y=m),t)this.animatedFitView(s,l,e,n,p,g,y,!0);else{var b=p.x-g.x,_=p.y-g.y;if(xn(b)||xn(_))return;r.translate(b,_),r.zoom(y,p)||console.warn("zoom failed, ratio out of range, ratio: %f",y)}}},t.prototype.fitViewByRules=function(t,e,n){var r,i=t.onlyOutOfViewPort,o=void 0!==i&&i,a=t.direction,s=void 0===a?"both":a,l=t.ratioRule,u=void 0===l?"min":l,c=this.graph,h=this.getFormatPadding(),d=c.get("width"),f=c.get("height"),p=c.get("group"),g=p.getMatrix()||[1,0,0,0,1,0,0,0,1];p.resetMatrix();var v=c.getNodes();if(v.length>c.get("optimizeThreshold")){var m=1/0,y=1/0,b=-1/0,_=-1/0;v.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y;m>n&&(m=n),y>r&&(y=r),b<n&&(b=n),_<r&&(_=r)}),r={minX:m,maxX:b,minY:y,maxY:_,width:b-m,height:_-y,x:m,y:y}}else r=p.getCanvasBBox();if(0!==r.width&&0!==r.height){var x,w=this.getViewCenter(),S={x:r.x+r.width/2,y:r.y+r.height/2},C=(d-h[1]-h[3])/r.width,k=(f-h[0]-h[2])/r.height;if(x="x"===s?C:"y"===s?k:"max"===u?Math.max(C,k):Math.min(C,k),o&&(x=x<1?x:1),e)this.animatedFitView(p,g,n,r,w,S,x,!0);else{var O=c.getZoom()*x,M=c.get("minZoom");O<M&&(O=M,console.warn("fitview failed, ratio out of range, ratio: %f",x,"graph minzoom has been used instead")),c.translate(w.x-S.x,w.y-S.y),c.zoomTo(O,w)}}},t.prototype.getFormatPadding=function(){var t=this.graph.get("fitViewPadding");return yn(t)},t.prototype.focusPoint=function(t,e,n){var r=this,i=this.getViewCenter(),o=this.getPointByCanvas(i.x,i.y),a=this.graph.get("group").getMatrix();if(a||(a=[1,0,0,0,1,0,0,0,1]),e){var s=(o.x-t.x)*a[0],l=(o.y-t.y)*a[4],u=0,c=0,h=0,d=0;this.graph.get("canvas").animate(function(t){h=s*t,d=l*t,r.graph.translate(h-u,d-c),u=h,c=d},M({},n))}else this.graph.translate((o.x-t.x)*a[0],(o.y-t.y)*a[4])},t.prototype.getPointByCanvas=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),ue({x:t,y:e},n)},t.prototype.getPointByClient=function(t,e){var n=this.graph.get("canvas").getPointByClient(t,e);return this.getPointByCanvas(n.x,n.y)},t.prototype.getClientByPoint=function(t,e){var n=this.graph.get("canvas"),r=this.getCanvasByPoint(t,e),i=n.getClientByPoint(r.x,r.y);return{x:i.x,y:i.y}},t.prototype.getCanvasByPoint=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),le({x:t,y:e},n)},t.prototype.focus=function(t,e,n){if(Object(x.isString)(t)&&(t=this.graph.findById(t)),t){var r=0,i=0;if(t.getType&&"edge"===t.getType()){var o=t.getSource().get("group").getMatrix(),a=t.getTarget().get("group").getMatrix();o&&a?(r=(o[6]+a[6])/2,i=(o[7]+a[7])/2):(o||a)&&(r=o?o[6]:a[6],i=o?o[7]:a[7])}else{var s=t.get("group").getMatrix();s||(s=[1,0,0,0,1,0,0,0,1]),r=s[6],i=s[7]}this.focusPoint({x:r,y:i},e,n)}},t.prototype.focusItems=function(t,e,n,r){if(t.length){var i=this.graph,o=this.getFormatPadding(),a=i.get("width"),s=i.get("height"),l=i.get("group"),u=l.getMatrix()||[1,0,0,0,1,0,0,0,1];l.resetMatrix();for(var c={x:0,y:0,minX:Number.MAX_SAFE_INTEGER,minY:Number.MAX_SAFE_INTEGER,maxX:Number.MIN_SAFE_INTEGER,maxY:Number.MIN_SAFE_INTEGER,width:0,height:0},h=0,d=t;h<d.length;h++){var f=d[h].getBBox();f.minX<c.minX&&(c.minX=f.minX),f.minY<c.minY&&(c.minY=f.minY),f.maxX>c.maxX&&(c.maxX=f.maxX),f.maxY>c.maxY&&(c.maxY=f.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,0!==c.width&&0!==c.height){var p=this.getViewCenter(),g={x:c.x+c.width/2,y:c.y+c.height/2},v=(a-o[1]-o[3])/c.width,m=(s-o[0]-o[2])/c.height,y=v;v>m&&(y=m),n?this.animatedFitView(l,u,r,c,p,g,y,e):(i.translate(p.x-g.x,p.y-g.y),e&&!i.zoom(y,p)&&console.warn("zoom failed, ratio out of range, ratio: %f",y))}}},t.prototype.changeSize=function(t,e){var n=this.graph;if(!Object(x.isNumber)(t)||!Object(x.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e}),n.get("canvas").changeSize(t,e),n.get("plugins").forEach(function(t){t.get("gridContainer")&&t.positionInit()})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}();function On(t){"@babel/helpers - typeof";return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mn(t){if("string"!=typeof t)return t;var e=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t.trim())}catch(e){return t.trim()}},n=e(t);if("string"!=typeof n)return n;for(var r=function(t){return t[t.length-1]},i=t.trim(),o=[],a=[],s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.some(function(t){return r(a)===t})},l=null,u=0,c="";u<i.length;){var h=i[u],d=s('"',"'");if(d||h.trim()){var f="\\"===i[u-1],p=s("}"),g=s("]"),v=s(","),m=r(o);if(d)if(r(a)!==h||f)c+=h;else{a.pop();var y=e(c);m.push(y),l=y,c=""}else if(g&&","===h)c&&(m.push(e(c)),c="");else if(p&&":"===h)a.push(","),c&&(m.push(c),c="");else if(v&&","===h)c&&(m.push(e(c)),c=""),a.pop();else if("}"===h&&(p||v)){c&&(m.push(e(c)),c=""),v&&a.pop();for(var b={},_=1;_<m.length;_+=2)b[m[_-1]]=m[_];o.pop(),o.length&&r(o).push(b),a.pop(),l=b}else"]"===h&&g?(c&&(m.push(e(c)),c=""),o.pop(),o.length&&r(o).push(m),a.pop(),l=m):"{"===h?(o.push([]),a.push("}")):"["===h?(o.push([]),a.push("]")):'"'===h?a.push('"'):"'"===h?a.push("'"):c+=h;u+=1}else u+=1}return l||c}var En=function(t){return t.split("-").reduce(function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)})},Tn=function(t){return function(e){for(var n=t.length,r=[],i=0,o="";i<n;)if("{"===t[i]&&"{"===t[i+1])r.push(o),o="",i+=2;else if("}"===t[i]&&"}"===t[i+1]){if(r.length){var a=r.pop();o=Object(x.get)(e,o,a.endsWith("=")?'"{'.concat(o,'}"'):o),r.push(a+o)}i+=2,o=""}else o+=t[i],i+=1;return r.push(o),r.map(function(t,e){return r[e-1]&&r[e-1].endsWith("=")?'"{'.concat(t,'}"'):t}).join("")}};function An(t,e){var n;void 0===e&&(e={x:0,y:0});var r=M({x:0,y:0,width:0,height:0},e);if(null===(n=t.children)||void 0===n?void 0:n.length){var i=t.attrs,o=void 0===i?{}:i,a=o.marginTop,s=M({},e);a&&(s.y+=a);for(var l=0;l<t.children.length;l++){t.children[l].attrs.key="".concat(o.key||"root"," -").concat(l," ");var u=An(t.children[l],s);if(u.bbox){var c=u.bbox;"inline"===u.attrs.next?s.x+=u.bbox.width:s.y+=u.bbox.height,c.width+c.x>r.width&&(r.width=c.width+c.x),c.height+c.y>r.height&&(r.height=c.height+c.y)}}}return t.bbox=function(t,e,n){var r,i,o=t.attrs,a=void 0===o?{}:o,s={x:e.x||0,y:e.y||0,width:n.width||0,height:n.height||0};switch(t.type){case"maker":case"circle":a.r&&(i=2*a.r,r=2*a.r);break;case"text":a.text&&(i=an(a.text,a.fontSize||12)[0],r=16,s.y+=r,s.height=r,s.width=i,t.attrs=M({fontSize:12,fill:"#000"},a));break;default:a.width&&(i=a.width),a.height&&(r=a.height)}return r>=0&&(s.height=r),i>=0&&(s.width=i),a.marginTop&&(s.y+=a.marginTop),a.marginLeft&&(s.x+=a.marginLeft),s}(t,e,r),t.attrs=M(M({},t.attrs),t.bbox),t}function In(t){var e={},n=function(e){var n="function"==typeof t?t(e):t,r=Tn(n)(e),i=document.createElement("div");i.innerHTML=r;var o=An(function t(e,n){var r={},i=e.getAttributeNames&&e.getAttributeNames()||[],o=e.children&&Array.from(e.children).map(function(e){return t(e,n)}),a={},s=e.tagName?e.tagName.toLowerCase():"group";return"text"===s&&(r.text=e.innerText),a.type=s,"img"===s&&(a.type="image"),Array.from(i).forEach(function(t){var n=En(t),i=e.getAttribute(t);try{if("style"===n||"attrs"===n){var o=Mn(i);r=M(M({},r),o)}else a[n]=Mn(i)}catch(t){if("style"===n)throw t;a[n]=i}}),a.attrs=r,n&&n.style&&a.name&&"object"===On(n.style[a.name])&&(a.attrs=M(M({},a.attrs),n.style[a.name])),n&&n.style&&a.keyshape&&(a.attrs=M(M({},a.attrs),n.style)),o.length&&(a.children=o),a}(i.children[0],e));return i.remove(),o};return{draw:function(t,r){var i=n(t),o=r;return function t(e){var n=e.attrs,i=void 0===n?{}:n,a=e.bbox,s=e.type,l=e.children,u=E(e,["attrs","bbox","type","children"]);if("group"!==e.type){var c=r.addShape(e.type,M({attrs:i,origin:{bbox:a,type:s,children:l}},u));e.keyshape&&(o=c)}e.children&&e.children.forEach(function(e){return t(e)})}(i),e[t.id]=[i],o},update:function(t,r){e[t.id]||(e[t.id]=[]);var i=r.getContainer(),o=i.get("children"),a=n(t),s=function t(e){var n;"group"!==e.type&&i.addShape(e.type,{attrs:e.attrs}),(null===(n=e.children)||void 0===n?void 0:n.length)&&e.children.map(function(e){return t(e)})},l=function t(e){var n,r=o.find(function(t){return t.attrs.key===e.attrs.key});r&&i.removeChild(r),(null===(n=e.children)||void 0===n?void 0:n.length)&&e.children.map(function(e){return t(e)})};!function t(e){var n=e.key;if("group"!==e.type){var i=o.find(function(t){return t.attrs.key===n});switch(e.action){case"change":if(i){var a=e.val.keyshape?r.getOriginStyle():{};i.attr(M(M({},a),e.val.attrs))}break;case"add":s(e.val);break;case"delete":l(e.val);break;case"restructure":l(e.formerTarget),s(e.nowTarget)}}e.children&&e.children.forEach(function(e){return t(e)})}(function t(e,n){var r,i,o,a,s=(e||{}).type,l=((null===n||void 0===n?void 0:n.attrs)||{}).key;if(l&&e&&(e.attrs.key=l),!e&&n)return{action:"delete",val:n,type:s,key:l};if(e&&!n)return{action:"add",val:e,type:s};if(!e&&!n)return{action:"same",type:s};var u=[];if((null===(r=e.children)||void 0===r?void 0:r.length)>0||(null===(i=n.children)||void 0===i?void 0:i.length)>0)for(var c=Math.max(null===(o=e.children)||void 0===o?void 0:o.length,null===(a=n.children)||void 0===a?void 0:a.length),h=n.children||[],d=e.children||[],f=0;f<c;f+=1)u.push(t(d[f],h[f]));var p=Object.keys(n.attrs),g=Object.keys(e.attrs);return n.type!==e.type?{action:"restructure",nowTarget:e,formerTarget:n,key:l,children:u}:p.filter(function(t){return"children"!==t}).some(function(t){return e.attrs[t]!==n.attrs[t]||!g.includes(t)})?{action:"change",val:e,children:u,type:s,key:l}:{action:"same",children:u,type:s,key:l}}(a,e[t.id].pop())),e[t.id].push(a)},getAnchorPoints:function(){return[[0,.5],[1,.5],[.5,1],[.5,0]]}}}var Dn={};function Pn(t){return Dn[t]||(Dn[t]=Object(x.upperFirst)(t)),Dn[t]}var Ln={defaultShapeType:"defaultType",className:null,getShape:function(t){return this[t]||this[this.defaultShapeType]||this["simple-circle"]},draw:function(t,e,n){var r=this.getShape(t);n.shapeMap={};var i=r.draw(e,n);return r.afterDraw&&r.afterDraw(e,n,i),i},baseUpdate:function(t,e,n,r){var i,o,a=this.getShape(t);a.update&&(a.mergeStyle=null===(i=a.getOptions)||void 0===i?void 0:i.call(a,e,r),null===(o=a.update)||void 0===o||o.call(a,e,n,r)),a.afterUpdate&&a.afterUpdate(e,n)},setState:function(t,e,n,r){this.getShape(t).setState(e,n,r)},shouldUpdate:function(t){return!!this.getShape(t).update},getControlPoints:function(t,e){return this.getShape(t).getControlPoints(e)},getAnchorPoints:function(t,e){return this.getShape(t).getAnchorPoints(e)}},jn={options:{},draw:function(t,e){return this.drawShape(t,e)},drawShape:function(){},afterDraw:function(){},afterUpdate:function(){},setState:function(){},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e=this.options.anchorPoints;return t.anchorPoints||e}},Nn=function(){function t(){}return t.registerFactory=function(e,n){var r=Pn(e),i=M(M({},Ln),n);return t[r]=i,i.className=r,i},t.getFactory=function(e){return t[Pn(e)]},t.registerNode=function(e,n,r){var i,o=t.Node;if("string"==typeof n||"function"==typeof n){var a=In(n);i=M(M({},o.getShape("single-node")),a)}else if(n.jsx){a=In(n.jsx);i=M(M(M({},o.getShape("single-node")),a),n)}else{o.getShape(r);var s=r?o.getShape(r):jn;i=M(M({},s),n)}return i.type=e,i.itemType="node",o[e]=i,i},t.registerEdge=function(e,n,r){var i=t.Edge,o=r?i.getShape(r):jn,a=M(M({},o),n);return a.type=e,a.itemType="edge",i[e]=a,a},t.registerCombo=function(e,n,r){var i=t.Combo,o=r?i.getShape(r):jn,a=M(M({},o),n);return a.type=e,a.itemType="combo",i[e]=a,a},t}(),Rn=Nn;Nn.registerFactory("node",{defaultShapeType:"circle"}),Nn.registerFactory("edge",{defaultShapeType:"line"}),Nn.registerFactory("combo",{defaultShapeType:"circle"});var Bn=function(){function t(t){this._cfg={},this.destroyed=!1,this.optimize=!1;var e={id:void 0,type:"item",model:{},group:void 0,animate:!1,visible:!0,locked:!1,event:!0,keyShape:void 0,states:[]};this._cfg=Object.assign(e,this.getDefaultCfg(),t);var n=this.get("model"),r=n.id,i=this.get("type");void 0===r?r=mn(i):"string"!=typeof r&&(r=String(r)),this.get("model").id=r,this.set("id",r);var o=t.group;o&&(o.set("item",this),o.set("id",r)),this.init(),this.draw();var a=n.shape||n.type||("edge"===i?"line":"circle"),s=this.get("shapeFactory");if(s&&s[a]){var l=s[a].options;if(l&&l.stateStyles){var u=this.get("styles")||n.stateStyles;u=Object(x.deepMix)({},l.stateStyles,u),this.set("styles",u)}}}return t.prototype.calculateBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=Qe(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=Qe(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.drawInner=function(){var t=this.get("shapeFactory"),e=this.get("group"),n=this.get("model");e.clear();var r=n.visible;if(void 0===r||r||this.changeVisibility(r),t){this.updatePosition(n);var i=this.getShapeCfg(n),o=i.type,a=t.draw(o,i,e);a&&(this.set("keyShape",a),a.set("isKeyShape",!0),a.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",o),this.restoreStates(t,o)}},t.prototype.setOriginStyle=function(){var t=this.get("group"),e=t.get("children"),n=this,r=this.getKeyShape().get("name");if(this.get("originStyle")){var i=this.get("originStyle");r&&!i[r]&&(i[r]={});var o=this.getCurrentStatesStyle(),a=function(t){var a=e[t],s=a.get("name"),l=a.attr();if(s&&s!==r){var u=o[s];i[s]||(i[s]={}),u?Object.keys(l).forEach(function(t){var e=l[t];e!==u[t]&&(i[s][t]=e)}):i[s]="image"!==a.get("type")?Object(x.clone)(l):n.getShapeStyleByName(s)}else{var c=a.attr(),h={};Object.keys(o).forEach(function(t){var e=o[t];t!==r&&Object(x.isPlainObject)(e)||(h[t]=e)}),Object.keys(c).forEach(function(t){var e=c[t];h[t]!==e&&(r?i[r][t]=e:i[t]=e)})}};for(l=0;l<e.length;l++)a(l);delete i.path,delete i.matrix,delete i.x,delete i.y,i[r]&&(delete i[r].x,delete i[r].y,delete i[r].matrix,delete i[r].path),n.set("originStyle",i)}else{for(var s={},l=0;l<e.length;l++){var u=e[l],c=u.get("type"),h=u.get("name");if(h&&h!==r)s[h]="image"!==c?Object(x.clone)(u.attr()):n.getShapeStyleByName(h),"text"===c&&s[h]&&(delete s[h].x,delete s[h].y,delete s[h].matrix);else{var d=n.getShapeStyleByName();if(delete d.path,delete d.matrix,r)if(h)s[r]=d;else{var f=mn("shape");u.set("name",f),t.shapeMap[f]=u,s[f]="image"!==c?Object(x.clone)(u.attr()):n.getShapeStyleByName(h)}else Object.assign(s,d)}}n.set("originStyle",s)}},t.prototype.restoreStates=function(t,e){var n=this,r=n.get("states");Object(x.each)(r,function(r){t.setState(e,r,!0,n)})},t.prototype.init=function(){var t=Rn.getFactory(this.get("type"));this.set("shapeFactory",t)},t.prototype.get=function(t){return this._cfg[t]},t.prototype.set=function(t,e){Object(x.isPlainObject)(t)?this._cfg=M(M({},this._cfg),t):this._cfg[t]=e},t.prototype.getDefaultCfg=function(){return{}},t.prototype.clearCache=function(){this.set("bboxCache",null),this.set("bboxCanvasCache",null)},t.prototype.beforeDraw=function(){},t.prototype.afterDraw=function(){},t.prototype.afterUpdate=function(){},t.prototype.draw=function(){this.beforeDraw(),this.drawInner(),this.afterDraw()},t.prototype.getShapeStyleByName=function(t){var e,n=this.get("group");if(e=t?n.shapeMap[t]||n.find(function(e){return e.get("name")===t}):this.getKeyShape()){var r={};return Object(x.each)(e.attr(),function(t,e){("img"!==e||Object(x.isString)(t))&&(r[e]=t)}),r}return{}},t.prototype.getShapeCfg=function(t,e){var n=this.get("styles");if(n){var r=t;return r.style=M(M({},n),t.style),r}return t},t.prototype.getStateStyle=function(t){var e=this.get("styles");return e&&e[t]},t.prototype.getOriginStyle=function(){return this.get("originStyle")},t.prototype.getCurrentStatesStyle=function(){var t=this,e={},n=t.getStates();return n&&n.length?(Object(x.each)(t.getStates(),function(n){e=Object.assign(e,t.getStateStyle(n))}),e):this.get("originStyle")},t.prototype.setState=function(t,e){var n=this.get("states"),r=this.get("shapeFactory"),i=t,o=t;Object(x.isString)(e)&&(i="".concat(t,":").concat(e),o="".concat(t,":"));var a=n;if(Object(x.isBoolean)(e)){var s=n.indexOf(o);if(e){if(s>-1)return;n.push(i)}else s>-1&&n.splice(s,1)}else if(Object(x.isString)(e)){var l=n.filter(function(t){return t.includes(o)});l.length>0&&this.clearStates(l),(a=a.filter(function(t){return!t.includes(o)})).push(i),this.set("states",a)}if(r){var u=this.get("model").type;r.setState(u,t,e,this)}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),r=e.get("shapeFactory"),i=e.get("model").type;t||(t=n),Object(x.isString)(t)&&(t=[t]);var o=n.filter(function(e){return-1===t.indexOf(e)});e.set("states",o),t.forEach(function(t){r.setState(i,t,!1,e)})},t.prototype.setOptimize=function(t){this.optimize=t},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(t){return this.getStates().indexOf(t)>=0},t.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache()},t.prototype.getUpdateType=function(t){},t.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model");if("move"===e)this.updatePosition(t);else{var r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o={x:n.x,y:n.y};t.x=isNaN(+t.x)?n.x:+t.x,t.y=isNaN(+t.y)?n.y:+t.y;var a=this.get("styles");if(t.stateStyles){var s=t.stateStyles;Object(x.mix)(a,s),delete t.stateStyles}Object.assign(n,t),o.x===t.x&&o.y===t.y||this.updatePosition(t),this.updateShape(e)}this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(t){var e=this.get("shapeFactory"),n=this.get("model"),r=n.type;if(e.shouldUpdate(r)&&r===this.get("currentShape")){var i=this.getShapeCfg(n,t);e.baseUpdate(r,i,this,t),"move"!==t&&this.setOriginStyle()}else this.draw();this.restoreStates(e,r)},t.prototype.updatePosition=function(t){var e=this.get("model"),n=isNaN(+t.x)?+e.x:+t.x,r=isNaN(+t.y)?+e.y:+t.y,i=this.get("group");if(isNaN(n)||isNaN(r))return!1;e.x=n,e.y=r;var o=i.getMatrix();return(!o||o[6]!==n||o[7]!==r)&&(i.resetMatrix(),ge(i,{x:n,y:r}),this.clearCache(),!0)},t.prototype.getBBox=function(){var t=this.get("bboxCache");return t||(t=this.calculateBBox(),this.set("bboxCache",t)),t},t.prototype.getCanvasBBox=function(){var t=this.get("bboxCanvasCache");return t||(t=this.calculateCanvasBBox(),this.set("bboxCanvasCache",t)),t},t.prototype.toFront=function(){this.get("group").toFront()},t.prototype.toBack=function(){this.get("group").toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},t}(),Fn={source:"start",target:"end"},zn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return O(e,t),e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,e){var n=Fn[t]+"Point",r=t+"Node",i=this.get(r);i&&!i.destroyed&&i.removeEdge(this),Object(x.isPlainObject)(e)?(this.set(n,e),this.set(r,null)):e&&(e.addEdge(this),this.set(r,e),this.set(n,null))},e.prototype.getLinkPoint=function(t,e,n){var r=Fn[t]+"Point",i=t+"Node",o=this.get(r);if(!o){var a=this.get(i),s=t+"Anchor",l=this.getPrePoint(t,n),u=e[s];Object(x.isNil)(u)||(o=a.getLinkPointByAnchor(u)),o=o||a.getLinkPoint(l),Object(x.isNil)(o.index)||this.set("".concat(t,"AnchorIndex"),o.index)}return o},e.prototype.getPrePoint=function(t,e){if(e&&e.length)return e["source"===t?0:e.length-1];var n="source"===t?"target":"source";return this.getEndPoint(n)},e.prototype.getEndPoint=function(t){var e=t+"Node",n=Fn[t]+"Point",r=this.get(e);return r&&!r.destroyed?r.get("model"):this.get(n)},e.prototype.getControlPointsByCenter=function(t){var e=this.getEndPoint("source"),n=this.getEndPoint("target"),r=this.get("shapeFactory"),i=t.type;return r.getControlPoints(i,{startPoint:e,endPoint:n})},e.prototype.getEndCenter=function(t){var e=t+"Node",n=Fn[t]+"Point",r=this.get(e);if(r){var i=r.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(e,n){var r=this.get("linkCenter"),i=(null===n||void 0===n?void 0:n.includes("move"))?e:t.prototype.getShapeCfg.call(this,e);if(r)i.startPoint=this.getEndCenter("source"),i.endPoint=this.getEndCenter("target");else{var o=i.controlPoints||this.getControlPointsByCenter(i);i.startPoint=this.getLinkPoint("source",e,o),i.endPoint=this.getLinkPoint("target",e,o)}return i.sourceNode=this.get("sourceNode"),i.targetNode=this.get("targetNode"),i},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("source".concat("Node")),n=this.get("target".concat("Node"));return e?delete t["source".concat("Node")]:t.source=this.get("start".concat("Point")),n?delete t["target".concat("Node")]:t.target=this.get("end".concat("Point")),Object(x.isString)(t.source)||Object(x.isPlainObject)(t.source)||(t.source=t.source.getID()),Object(x.isString)(t.target)||Object(x.isPlainObject)(t.target)||(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model"),r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o=this.get("source"),a=this.get("target");if(o&&!o.destroyed&&a&&!a.destroyed){var s=this.get("styles");if(t.stateStyles){var l=t.stateStyles;Object(x.mix)(s,l),delete t.stateStyles}Object.assign(n,t),this.updateShape(e),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var e=this.get("source".concat("Node")),n=this.get("target".concat("Node"));e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(Bn),Vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return O(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,r=t[0],i=he(t[0],e),o=0;o<t.length;o++){var a=t[o],s=he(a,e);s<i&&(r=a,i=s,n=o)}return r.anchorIndex=n,r},e.prototype.getDefaultCfg=function(){return{type:"node",edges:[]}},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getInEdges=function(){var t=this;return this.get("edges").filter(function(e){return e.get("target")===t})},e.prototype.getOutEdges=function(){var t=this;return this.get("edges").filter(function(e){return e.get("source")===t})},e.prototype.getNeighbors=function(t){var e=this,n=this.get("edges");if("target"===t){return n.filter(function(t){return t.getSource()===e}).map(function(t){return t.getTarget()})}if("source"===t){return n.filter(function(t){return t.getTarget()===e}).map(function(t){return t.getSource()})}return n.map(function(t){return t.getSource()===e?t.getTarget():t.getSource()})},e.prototype.getLinkPointByAnchor=function(t){return this.getAnchorPoints()[t]},e.prototype.getLinkPoint=function(t){var e,n,r=this.get("keyShape").get("type"),i=this.get("type"),o=this.getBBox();"combo"===i?(e=o.centerX||(o.maxX+o.minX)/2,n=o.centerY||(o.maxY+o.minY)/2):(e=o.centerX,n=o.centerY);var a,s=this.getAnchorPoints();switch(r){case"circle":a=ae({x:e,y:n,r:o.width/2},t);break;case"ellipse":a=se({x:e,y:n,rx:o.width/2,ry:o.height/2},t);break;default:a=oe(o,t)}var l=a;return s.length&&(l||(l=t),l=this.getNearestPoint(s,l)),l||(l={x:e,y:n}),l},e.prototype.getAnchorPoints=function(){var t=this.get("anchorPointsCache");if(!t){t=[];var e=this.get("shapeFactory"),n=this.getBBox(),r=this.get("model"),i=this.getShapeCfg(r),o=r.type,a=e.getAnchorPoints(o,i)||[];Object(x.each)(a,function(e,r){var i={x:n.minX+e[0]*n.width,y:n.minY+e[1]*n.height,anchorIndex:r};t.push(i)}),this.set("anchorPointsCache",t)}return t},e.prototype.addEdge=function(t){this.get("edges").push(t)},e.prototype.lock=function(){this.set("locked",!0)},e.prototype.unlock=function(){this.set("locked",!1)},e.prototype.hasLocked=function(){return this.get("locked")},e.prototype.removeEdge=function(t){var e=this.getEdges(),n=e.indexOf(t);n>-1&&e.splice(n,1)},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set("anchorPointsCache",null)},e.prototype.getUpdateType=function(t){var e,n,r,i,o;if(t){var a=!Object(x.isNil)(t.x),s=!Object(x.isNil)(t.y),l=Object.keys(t);return 1===l.length&&(a||s)||2===l.length&&a&&s?"move":Object(x.isNumber)(t.x)||Object(x.isNumber)(t.y)||t.type||t.anchorPoints||t.size||(null===t||void 0===t?void 0:t.style)&&((null===(e=null===t||void 0===t?void 0:t.style)||void 0===e?void 0:e.r)||(null===(n=null===t||void 0===t?void 0:t.style)||void 0===n?void 0:n.width)||(null===(r=null===t||void 0===t?void 0:t.style)||void 0===r?void 0:r.height)||(null===(i=null===t||void 0===t?void 0:t.style)||void 0===i?void 0:i.rx)||(null===(o=null===t||void 0===t?void 0:t.style)||void 0===o?void 0:o.ry))?"bbox|label":l.includes("label")||l.includes("labelCfg")?"style|label":"style"}},e.prototype.setState=function(e,n){var r=this;this.optimize?t.prototype.setState.call(this,e,n):this.runWithBBoxAffected(function(){return t.prototype.setState.call(r,e,n)})},e.prototype.clearStates=function(e){var n=this;this.optimize?t.prototype.clearStates.call(this,e):this.runWithBBoxAffected(function(){return t.prototype.clearStates.call(n,e)})},e.prototype.runWithBBoxAffected=function(t){var e=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),r={};Object.keys(this.getKeyShape().attr()).forEach(function(t){e.includes(t)&&(r[t]=n[t])}),t();for(var i=this.getKeyShape().attr(),o=0;o<e.length;o++){var a=e[o];if(i[a]!==r[a]){this.clearCache(),this.getEdges().forEach(function(t){return t.refresh()});break}}},e}(Bn),$n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return O(e,t),e.prototype.getDefaultCfg=function(){return{type:"combo",nodes:[],edges:[],combos:[]}},e.prototype.getShapeCfg=function(t){var e=this.get("styles"),n=this.get("bbox");if(e&&n){var r=t,i=Object(x.isNumber)(t.size)?[t.size,t.size]:t.size,o=Object(x.isNumber)(t.fixSize)?[t.fixSize,t.fixSize]:t.fixSize,a=i||o||Ue.defaultCombo.size,s={r:(Math.max(n.width,n.height)||Math.max(a[0],a[1]))/2,width:n.width||a[0],height:n.height||a[1]};r.style=M(M(M({},e),t.style),s);var l=t.padding||Ue.defaultCombo.padding;return Object(x.isNumber)(l)?(s.r+=l,s.width+=2*l,s.height+=2*l):(s.r=s.r+Math.max.apply(Math,l),s.width+=l[1]+l[3]||2*l[1],s.height+=l[0]+l[2]||2*l[0]),this.set("sizeCache",s),r}return t},e.prototype.calculateCanvasBBox=function(){if(!this.destroyed){var t=this.get("keyShape"),e=this.get("group"),n=this.get("bboxCache")||{},r=n.x,i=n.x,o=this.get("sizeCache"),a=Qe(t,e);if(a.centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2,o)o.width=Math.max(o.width,a.width),o.height=Math.max(o.height,a.height),this.set("sizeCache",o),"circle"===t.get("type")?(a.width=2*o.r,a.height=2*o.r):(a.width=o.width,a.height=o.height),a.minX=a.centerX-a.width/2,a.minY=a.centerY-a.height/2,a.maxX=a.centerX+a.width/2,a.maxY=a.centerY+a.height/2;else a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a.centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2;return a.x=a.minX,a.y=a.minY,a.x===r&&a.y===i||this.set("anchorPointsCache",null),a}},e.prototype.getChildren=function(){return{nodes:this.getNodes(),combos:this.getCombos()}},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.addChild=function(t){switch(t.getType()){case"node":this.addNode(t);break;case"combo":this.addCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.addCombo=function(t){return this.get("combos").push(t),!0},e.prototype.addNode=function(t){return this.get("nodes").push(t),!0},e.prototype.removeChild=function(t){switch(t.getType()){case"node":this.removeNode(t);break;case"combo":this.removeCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.removeCombo=function(t){if(t){var e=this.getCombos(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.removeNode=function(t){if(t){var e=this.getNodes(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.getUpdateType=function(t){},e.prototype.getBBox=function(){return this.set("bboxCanvasCache",null),this.calculateCanvasBBox()},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set("bboxCanvasCache",null),this.set("anchorPointsCache",null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),this.set("sizeCache",null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0}},e}(Vn),Gn=function(){function t(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=Object(x.throttle)(function(t){var n=e.graph;if(n&&!n.get("destroyed")){var r=e.edgeToBeUpdateMap;if(r){var i=Object.values(r);i.length&&(i.forEach(function(t){var e=t.edge;if(e&&!e.destroyed){var n=e.getSource(),r=e.getTarget();n&&!n.destroyed&&r&&!r.destroyed&&e.refresh(t.updateType)}}),e.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1}return t.prototype.addItem=function(t,e){var n=this.graph,r="vedge"===t?"edge":t,i=n.get("".concat(r,"Group"))||n.get("group"),o=Object(x.upperFirst)(r),a=null,s=n.get(r+Object(x.upperFirst)("stateStyles"))||{},l=n.get("default"+o);e.stateStyles&&(s=e.stateStyles),l&&Object(x.each)(l,function(t,n){Object(x.isObject)(t)&&!Object(x.isArray)(t)?e[n]=Object(x.deepMix)({},t,e[n]):Object(x.isArray)(t)?e[n]=e[n]||Object(x.clone)(l[n]):e[n]=e[n]||l[n]});var u=n.get(r+"Mapper");if(u){var c=u(e);c.stateStyles&&(s=c.stateStyles,delete c.stateStyles),Object(x.each)(c,function(t,n){Object(x.isObject)(t)&&!Object(x.isArray)(t)?e[n]=Object(x.deepMix)({},e[n],t):e[n]=c[n]||e[n]})}if(n.emit("beforeadditem",{type:t,model:e}),"edge"===t||"vedge"===t){var h=void 0,d=void 0;if(h=e.source,d=e.target,h&&Object(x.isString)(h)&&(h=n.findById(h)),d&&Object(x.isString)(d)&&(d=n.findById(d)),!h||!d)return void console.warn("The source or target node of edge ".concat(e.id," does not exist!"));h.getType&&"combo"===h.getType()&&(e.isComboEdge=!0),d.getType&&"combo"===d.getType()&&(e.isComboEdge=!0),a=new zn({model:e,source:h,target:d,styles:s,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if("node"===t)a=new Vn({model:e,styles:s,group:i.addGroup()});else if("combo"===t){var f=e.children,p=cn(f,n),g=void 0,v=void 0;if(isNaN(p.x)?isNaN(e.x)&&(g=100*Math.random()):g=p.x,isNaN(p.y)?isNaN(e.y)&&(v=100*Math.random()):v=p.y,isNaN(e.x)||isNaN(e.y))e.x=g,e.y=v;else{var m=e.x-g,y=e.y-v;this.updateComboSucceeds(e.id,m,y,f)}var b=i.addGroup();b.setZIndex(e.depth),a=new $n({model:e,styles:s,animate:n.get("animate"),bbox:e.collapsed?cn([],n):p,group:b}),e.collapsed||"circle"!==a.getKeyShape().get("type")||(p.width=Math.hypot(p.height,p.width),p.height=p.width,a.set("bbox",p),a.refresh());var _=a.getModel();(f||[]).forEach(function(t){var e=n.findById(t.id);a.addChild(e),t.depth=_.depth+2})}if(a)return a.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(t,"s")).push(a),n.get("itemMap")[a.get("id")]=a,n.emit("afteradditem",{item:a,model:e}),a},t.prototype.updateItem=function(t,e){var n,r,i=this,o=this.graph;if(Object(x.isString)(t)&&(t=o.findById(t)),t&&!t.destroyed){var a="";t.getType&&(a=t.getType());var s=o.get(a+"Mapper"),l=t.getModel(),u=l.x,c=l.y,h=t.getUpdateType(e);if(s){var d=s(Object(x.deepMix)({},l,e)),f=Object(x.deepMix)({},l,d,e);d.stateStyles&&(t.set("styles",f.stateStyles),delete f.stateStyles),Object(x.each)(f,function(t,n){e[n]=t})}else Object(x.each)(e,function(t,n){l[n]&&Object(x.isObject)(t)&&!Object(x.isArray)(t)&&(e[n]=M(M({},l[n]),e[n]))});if(o.emit("beforeupdateitem",{item:t,cfg:e}),"edge"===a){if(e.source){var p=e.source;Object(x.isString)(p)&&(p=o.findById(p)),t.setSource(p)}if(e.target){var g=e.target;Object(x.isString)(g)&&(g=o.findById(g)),t.setTarget(g)}t.update(e)}else if("node"===a){t.update(e,h);var v=t.getEdges();"move"===h?Object(x.each)(v,function(t){i.edgeToBeUpdateMap[t.getID()]={edge:t,updateType:h},i.throttleRefresh()}):(null===h||void 0===h?void 0:h.includes("bbox"))&&Object(x.each)(v,function(t){t.refresh(h)})}else if("combo"===a){if(t.update(e,h),!isNaN(e.x)||!isNaN(e.y)){var m=e.x-u||0,y=e.y-c||0;this.updateComboSucceeds(l.id,m,y)}var b=t.getEdges();if(((null===h||void 0===h?void 0:h.includes("bbox"))||"move"===h)&&"combo"===a){var _=t.get("shapeFactory"),w=l.type||"circle";(void 0===l.animate||void 0===e.animate?null===(r=null===(n=_[w])||void 0===n?void 0:n.options)||void 0===r?void 0:r.animate:l.animate||e.animate)?setTimeout(function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&Object(x.each)(b,function(t){t&&!t.destroyed&&t.refresh()})}},201):Object(x.each)(b,function(t){t.refresh()})}}t.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:t,cfg:e})}},t.prototype.updateCombo=function(t,e,n){var r,i,o=this,a=this.graph;if(Object(x.isString)(t)&&(t=a.findById(t)),t&&!t.destroyed){var s=t.getModel(),l=cn(e,a,t),u=l.x,c=l.y;t.set("bbox",l);var h=u,d=c;n?(h=isNaN(s.x)?u:s.x,d=isNaN(s.y)?c:s.y):(h=isNaN(u)?s.x:u,d=isNaN(c)?s.y:c),t.update({x:h,y:d});var f=t.get("shapeFactory"),p=s.type||"circle";(void 0===s.animate?null===(i=null===(r=f[p])||void 0===r?void 0:r.options)||void 0===i?void 0:i.animate:s.animate)?setTimeout(function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(t.getShapeCfg(s),o.updateComboEdges(t))}},201):this.updateComboEdges(t)}},t.prototype.updateComboEdges=function(t){for(var e,n,r=t.getEdges()||[],i=0;i<r.length;i++){var o=r[i];(null===o||void 0===o?void 0:o.destroyed)||(null===(e=null===o||void 0===o?void 0:o.getSource())||void 0===e?void 0:e.destroyed)||(null===(n=null===o||void 0===o?void 0:o.getTarget())||void 0===n?void 0:n.destroyed)||o.refresh()}},t.prototype.collapseCombo=function(t,e){void 0===e&&(e=!0);var n=this.graph;Object(x.isString)(t)&&(t=n.findById(t));var r=t.getChildren();r.nodes.forEach(function(t){n.hideItem(t,e)}),r.combos.forEach(function(t){n.hideItem(t,e)})},t.prototype.updateComboSucceeds=function(t,e,n,r){var i=this;void 0===r&&(r=[]);var o=this.graph;if(e||n){var a=r;if(!(null===a||void 0===a?void 0:a.length)){var s=o.get("comboTrees");null===s||void 0===s||s.forEach(function(e){nn(e,function(e){return e.id!==t||(a=e.children,!1)})})}null===a||void 0===a||a.forEach(function(t){var r=o.findById(t.id);if(r){var a=r.getModel();i.updateItem(t.id,{x:(a.x||0)+e,y:(a.y||0)+n})}})}},t.prototype.expandCombo=function(t,e){void 0===e&&(e=!0);var n=this.graph;Object(x.isString)(t)&&(t=n.findById(t));var r=t.getChildren(),i=new Set;r.nodes.forEach(function(t){n.showItem(t,e),t.getEdges().forEach(function(t){return i.add(t)})}),r.combos.forEach(function(t){t.getModel().collapsed?t.show():n.showItem(t,e),t.getEdges().forEach(function(t){return i.add(t)})}),i.forEach(function(t){return t.refresh()})},t.prototype.removeItem=function(t){var e=this,n=this.graph;if(Object(x.isString)(t)&&(t=n.findById(t)),t&&!t.destroyed){var r=Object(x.clone)(t.getModel()),i="";t.getType&&(i=t.getType()),n.emit("beforeremoveitem",{item:r,type:i});var o=n.get("".concat(i,"s")),a=o.indexOf(t);if(a>-1&&o.splice(a,1),"edge"===i){var s=n.get("v".concat(i,"s")),l=s.indexOf(t);l>-1&&s.splice(l,1)}var u=t.get("id");delete n.get("itemMap")[u];var c=n.get("comboTrees"),h=t.get("id");if("node"===i){var d=t.getModel().comboId;if(c&&d){var f=c,p=!1;c.forEach(function(t){p||nn(t,function(t){if(t.id===h&&f){var e=f.indexOf(t);return f.splice(e,1),p=!0,!1}return f=t.children,!0})})}for(var g=(b=t.getEdges()).length-1;g>=0;g--)n.removeItem(b[g],!1);d&&n.updateCombo(d)}else if("combo"===i){var v,m=t.getModel().parentId,y=!1;(c||[]).forEach(function(t){y||nn(t,function(t){return t.id!==h||(v=t,y=!0,!1)})}),v.removed=!0,v&&v.children&&v.children.forEach(function(t){e.removeItem(t.id)});var b;for(g=(b=t.getEdges()).length;g>=0;g--)n.removeItem(b[g],!1);m&&n.updateCombo(m)}t.destroy(),n.emit("afterremoveitem",{item:r,type:i})}},t.prototype.setItemState=function(t,e,n){var r=this.graph,i=e;Object(x.isString)(n)&&(i="".concat(e,":").concat(n)),t.hasState(i)===n&&n||Object(x.isString)(n)&&t.hasState(i)||(r.emit("beforeitemstatechange",{item:t,state:i,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:i,enabled:n}))},t.prototype.priorityState=function(t,e){var n=this.graph,r=t;Object(x.isString)(t)&&(r=n.findById(t)),this.setItemState(r,e,!1),this.setItemState(r,e,!0)},t.prototype.clearItemStates=function(t,e){var n=this.graph;Object(x.isString)(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.emit("afteritemstatesclear",{item:t,states:e})},t.prototype.refreshItem=function(t){var e=this.graph;Object(x.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},t.prototype.addCombos=function(t,e){var n=this,r=this.graph;(t||[]).forEach(function(t){rn(t,function(t){var r;return e.forEach(function(e){e.id===t.id&&(e.children=t.children,e.depth=t.depth,r=e)}),r&&n.addItem("combo",r),!0})});var i=r.get("comboGroup");i&&i.sort()},t.prototype.changeItemVisibility=function(t,e){var n=this,r=this.graph;if(Object(x.isString)(t)&&(t=r.findById(t)),t){if(r.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&"node"===t.getType()){var i=t.getEdges();Object(x.each)(i,function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)})}else if(t.getType&&"combo"===t.getType()){var o=r.get("comboTrees"),a=t.get("id"),s=[],l=!1;(o||[]).forEach(function(t){l||t.children&&0!==t.children.length&&nn(t,function(t){return t.id!==a||(s=t.children,l=!0,!1)})}),s&&(!e||e&&!t.getModel().collapsed)&&s.forEach(function(t){var i=r.findById(t.id);n.changeItemVisibility(i,e)});i=t.getEdges();Object(x.each)(i,function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)})}return r.emit("afteritemvisibilitychange",{item:t,visible:e}),t}console.warn("The item to be shown or hidden does not exist!")},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),Hn=function(){function t(t){this.graph=t,this.destroyed=!1}return t.prototype.updateState=function(t,e,n){var r=this.graph.get("states"),i=e;Object(x.isString)(n)&&(i="".concat(e,":").concat(n)),r[i]||(r[i]=[]),n?r[i].push(t):r[i]=r[i].filter(function(e){return e!==t}),this.graph.set("states",r),this.graph.emit("graphstatechange",{states:r})},t.prototype.updateStates=function(t,e,n){var r=this.graph.get("states");(Object(x.isString)(e)?[e]:e).forEach(function(e){var i=e;r[i]||(r[i]=[]),Object(x.isString)(n)&&(i="".concat(e,":").concat(n)),n?r[i].push(t):r[i]=r[i].filter(function(e){return e!==t})}),this.graph.set("states",r),this.graph.emit("graphstatechange",{states:e})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),Wn=n("wHEO"),Un=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){if("\\"===t.charAt(0))return t.slice(1);var r=e[n];return 0===r&&(r="0"),r||""}):t},Yn=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's ".concat(t.length));for(var n=0,r=t;n<r.length;n++){var i=r[n],o=i.x,a=i.y;e.push(o),e.push(a)}var s=Object(Wn.a)(e);return s.unshift(["M",t[0].x,t[0].y]),s},Xn=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i={x:(1-n)*t.x+n*e.x,y:(1-n)*t.y+n*e.y},o=[0,0];P.c.normalize(o,[e.x-t.x,e.y-t.y]),o&&(o[0]||o[1])||(o=[0,0]);var a=[-o[1]*r,o[0]*r];return i.x+=a[0],i.y+=a[1],i},qn=function(t,e){var n=t.length;if(!n)return"";for(var r="",i=0;i<n;i++){var o=t[i];r+=Un(0===i?"M{x} {y}":"L{x} {y}",o)}return e&&(r+="Z"),r},Zn=function(t){var e=[];return t.forEach(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}}),e},Kn=function(t){if(t.length<2)throw new Error("point length must larger than 2, now it's ".concat(t.length));var e=t[0],n=t[1],r=t[t.length-1],i=t[t.length-2];t.unshift(r),t.unshift(i),t.push(e),t.push(n);for(var o=[],a=1;a<t.length-2;a+=1){var s=t[a-1].x,l=t[a-1].y,u=t[a].x,c=t[a].y,h=t[a+1].x,d=t[a+1].y,f=u+(h-s)/6,p=c+(d-l)/6,g=h-((a!==t.length-2?t[a+2].x:h)-u)/6,v=d-((a!==t.length-2?t[a+2].y:d)-c)/6;o.push(["C",f,p,g,v,h,d])}return o.unshift(["M",r.x,r.y]),o},Jn=function(t,e){return P.c.scale([0,0],P.c.normalize([0,0],t),e)},Qn=function(t,e){var n=[t[1]-e[1],e[0]-t[0]],r=Math.sqrt(n[0]*n[0]+n[1]*n[1]);if(0===r)throw new Error("p0 should not be equal to p1");return[n[0]/r,n[1]/r]},tr=function(t,e){return[e[0]-t[0],e[1]-t[1]]};function er(t,e){if(!t||t.length<1)return"";if(1===t.length)return function(t){var n=[t[0][0],t[0][1]-e],r=[t[0][0],t[0][1]+e];return"M ".concat(n," A ").concat(e,",").concat(e,",0,0,0,").concat(r," A ").concat(e,",").concat(e,",0,0,0,").concat(n)}(t);if(2===t.length)return function(t){var n=P.c.scale([0,0],Qn(t[0],t[1]),e),r=P.c.scale([0,0],n,-1),i=P.c.add([0,0],t[0],n),o=P.c.add([0,0],t[1],n),a=P.c.add([0,0],t[1],r),s=P.c.add([0,0],t[0],r);return"M ".concat(i," L ").concat(o," A ").concat([e,e,"0,0,0",a].join(",")," L ").concat(s," A ").concat([e,e,"0,0,0",i].join(","))}(t);for(var n=new Array(t.length),r=0;r<n.length;++r){var i=0===r?t[t.length-1]:t[r-1],o=t[r],a=P.c.scale([0,0],Qn(i,o),e);n[r]=[P.c.add([0,0],i,a),P.c.add([0,0],o,a)]}var s="A ".concat([e,e,"0,0,0,"].join(","));return(n=n.map(function(t,e){var r="";return 0===e&&(r="M ".concat(n[n.length-1][1]," ")),r+="".concat(s+t[0]," L ").concat(t[1])})).join(" ")}function nr(t,e){var n,r,i,o=t.length;if(!t||o<1)return"";if(1===o)return r=[(n=t)[0][0],n[0][1]-e],i=[n[0][0],n[0][1]+e],"M ".concat(r," A ").concat([e,e,"0,0,0",i].join(",")," A ").concat([e,e,"0,0,0",r].join(","));if(2===o)return function(t){var n=tr(t[0],t[1]),r=Jn(n,e),i=P.c.add([0,0],t[0],P.c.scale([0,0],r,-1)),o=P.c.add([0,0],t[1],r),a=1.2*e,s=Jn(P.c.normalize([0,0],n),a),l=P.c.scale([0,0],s,-1),u=P.c.add([0,0],i,l),c=P.c.add([0,0],o,l),h=P.c.add([0,0],i,s);return"M ".concat(i," C ").concat([u,c,o].join(",")," S ").concat([h,i].join(",")," Z")}(t);for(var a=t.map(function(e,n){var r=t[(n+1)%o];return{p:e,v:P.c.normalize([0,0],tr(e,r))}}),s=0;s<a.length;++s){var l=s>0?s-1:o-1,u=P.c.normalize([0,0],P.c.add([0,0],a[l].v,P.c.scale([0,0],a[s].v,-1)));a[s].p=P.c.add([0,0],a[s].p,P.c.scale([0,0],u,e))}return a.map(function(t){var e=t.p;return{x:e[0],y:e[1]}})}var rr=function(t,e){for(var n=[],r=0;r<5;r++){var i=Math.cos((18+72*r)/180*Math.PI)*t,o=Math.sin((18+72*r)/180*Math.PI)*t,a=Math.cos((54+72*r)/180*Math.PI)*e,s=Math.sin((54+72*r)/180*Math.PI)*e;0===r?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",a,-s])}return n.push(["Z"]),n},ir=function(t,e,n){return(t.y-n.y)*(e.x-n.x)-(t.x-n.x)*(e.y-n.y)},or=function(t){var e=t.map(function(t){return{x:t.getModel().x,y:t.getModel().y}});e.sort(function(t,e){return t.x===e.x?t.y-e.y:t.x-e.x});for(var n={},r=e.length-1;r>=0;r--){var i=e[r],o=i.x,a=i.y;n["".concat(o,"-").concat(a)]&&e.splice(r,1),n["".concat(o,"-").concat(a)]=!0}if(1===e.length)return e;var s=[];for(r=0;r<e.length;r++){for(;s.length>=2&&ir(s[s.length-2],s[s.length-1],e[r])<=0;)s.pop();s.push(e[r])}var l=[];for(r=e.length-1;r>=0;r--){for(;l.length>=2&&ir(l[l.length-2],l[l.length-1],e[r])<=0;)l.pop();l.push(e[r])}return l.pop(),s.pop(),s.concat(l)},ar={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function sr(t,e,n){var r=!1,i=function(t,n){return e.cells[t+n*e.width]},o=function(t,e){var r=0;return i(t-1,e-1)>=n&&(r+=1),i(t,e-1)>n&&(r+=2),i(t-1,e)>n&&(r+=4),i(t,e)>n&&(r+=8),r},a=function(n,r){for(var i,a,s=n,l=r,u=0;u<e.width*e.height;u++){if(i=s,a=l,t.findIndex(function(t){return t.x===s&&t.y===l})>-1){if(t[0].x===s&&t[0].y===l)return!0}else t.push({x:s,y:l});var c=o(s,l);switch(c){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:s++;break;case 12:case 14:case 4:s--;break;case 6:0===i&&(-1===a?s-=1:s+=1);break;case 1:case 13:case 5:l--;break;case 9:1===i&&(0===a?l-=1:l+=1);break;case 10:case 8:case 11:l++;break;default:return console.warn("Marching squares invalid state: ".concat(c)),!0}}};this.march=function(){for(var t=0;t<e.width&&!r;t+=1)for(var s=0;s<e.height&&!r;s+=1)i(t,s)>n&&15!==o(t,s)&&(r=a(t,s));return r}}var lr=function(t,e,n){var r=null,i=Number.POSITIVE_INFINITY;return e.forEach(function(e){var o={x:t.getModel().x,y:t.getModel().y},a={x:e.getModel().x,y:e.getModel().y},s=Ae(o,a),l=new Ce(o.x,o.y,a.x,a.y),u=n.reduce(function(t,e){return Ee(e,l)>0?t+1:t},0);s*Math.pow(u+1,2)<i&&(r=e,i=s*Math.pow(u+1,2))}),r},ur=function(t,e){var n=Number.POSITIVE_INFINITY,r=null;return t.forEach(function(t){var i=Ee(t,e);i>=0&&i<n&&(r=t,n=i)}),r},cr=function(t,e,n,r){var i=[],o=[];o.push(t);for(var a=!0,s=0,l=function(t,e){var n=!1;return e.forEach(function(e){n||(De(t,{x:e.x1,y:e.y1})||De(t,{x:e.x2,y:e.y2}))&&(n=!0)}),n},u=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n].getBBox(),o=[[i.x,i.y],[i.x+i.width,i.y],[i.x,i.y+i.height],[i.x+i.width,i.y+i.height]];if(xe(o,t.x,t.y))return!0}return!1};a&&s<n;){a=!1;for(var c=function(){var t=o.pop(),n=ur(e,t);if(n){var c=Me(n,t),h=c[0];if(2===c[1]){var d=function(s){for(var c=r,d=fr(n,c,h,s),f=l(d,o)||l(d,i),p=u(d,e);!f&&p&&c>=1;)d=fr(n,c/=1.5,h,s),f=l(d,o)||l(d,i),p=u(d,e);!d||f||s&&p||(o.push(new Ce(t.x1,t.y1,d.x,d.y)),o.push(new Ce(d.x,d.y,t.x2,t.y2)),a=!0)};d(!0),a||d(!1)}}a||i.push(t),s+=1};!a&&o.length;)c()}for(;o.length;)i.push(o.pop());return i};var hr=function(t,e,n){var r=Object.assign(ar,n),i=Te(t.map(function(t){return{x:t.getModel().x,y:t.getModel().y}})),o=[],a=[];(t=t.sort(function(t,e){return Ae({x:t.getModel().x,y:t.getModel().y},i)-Ae({x:e.getModel().x,y:e.getModel().y},i)})).forEach(function(t){(function(t,e,n,r,i){var o=lr(t,n,e);if(null===o)return[];var a=new Ce(t.getModel().x,t.getModel().y,o.getModel().x,o.getModel().y);return function(t){for(var n=[];t.length>0;){var r=t.pop();if(0===t.length){n.push(r);break}var i=t.pop(),o=new Ce(r.x1,r.y1,i.x2,i.y2);ur(e,o)?(n.push(r),t.push(i)):t.push(o)}return n}(cr(a,e,r,i))})(t,e,o,r.maxRoutingIterations,r.morphBuffer).forEach(function(t){a.push(t)}),o.push(t)});for(var s,l,u,c,h,d=function(t,e,n){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},i=[];t.forEach(function(t){i.push(t.getBBox())}),e.forEach(function(t){i.push(t.getBBox())});for(var o=0,a=i;o<a.length;o++){var s=a[o];r.minX=(s.minX<r.minX?s.minX:r.minX)-n,r.minY=(s.minY<r.minY?s.minY:r.minY)-n,r.maxX=(s.maxX>r.maxX?s.maxX:r.maxX)+n,r.maxY=(s.maxY>r.maxY?s.maxY:r.maxY)+n}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}(t,a,r.nodeR0),f=(s=d.width,l=d.height,u=r.pixelGroupSize,c=Math.ceil(s/u),h=Math.ceil(l/u),{cells:new Float32Array(Math.max(0,c*h)).fill(0),width:c,height:h}),p=[],g=[],v=0;v<r.maxMarchingIterations;v++)if(dr(t,e,a,d,f,r),g=[],new sr(p=[],f,r.threshold).march()){var m=p.map(function(t){return{x:Math.round(t.x*r.pixelGroupSize+d.minX),y:Math.round(t.y*r.pixelGroupSize+d.minY)}});if(m){var y=m.length;if(r.skip>1)for(y=Math.floor(m.length/r.skip);y<3&&r.skip>1;)r.skip-=1,y=Math.floor(m.length/r.skip);for(var b=0,_=0;_<y;_+=1,b+=r.skip)g.push({x:m[b].x,y:m[b].y})}if(g&&function(){for(var e=0,n=t;e<n.length;e++){var r=n[e],i=g.map(function(t){return[t.x,t.y]});if(!xe(i,r.getBBox().centerX,r.getBBox().centerY))return!1}return!0}())return g;if(r.threshold*=.9,v<=.5*r.maxMarchingIterations)r.memberInfluenceFactor*=1.2,r.edgeInfluenceFactor*=1.2;else{if(!(0!==r.nonMemberInfluenceFactor&&e.length>0))break;r.nonMemberInfluenceFactor*=.8}}return g};function dr(t,e,n,r,i,o){function a(t,e){var n=Math.floor((t-e)/o.pixelGroupSize);return n<0?0:n}function s(t,e){return t*o.pixelGroupSize+e}var l=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),u=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1),c=function(t,e){return[Math.min(a(t.minX,e+r.minX),i.width),Math.min(a(t.minY,e+r.minY),i.height),Math.min(a(t.maxX,-e+r.minX),i.width),Math.min(a(t.maxY,-e+r.minY),i.height)]},h=function(t,e){for(var n=t.getBBox(),a=c(n,o.nodeR1),l=a[0],u=a[1],h=a[2],d=a[3],f=u;f<d;f+=1)for(var p=l;p<h;p+=1)if(!(e<0&&i[p+f*i.width]<=0)){var g=s(p,r.minX),v=s(f,r.minY),m=Pe({x:g,y:v},{x:n.minX,y:n.minY,width:n.width,height:n.height});if(m<Math.pow(o.nodeR1,2)){var y=Math.sqrt(m)-o.nodeR1;i.cells[p+f*i.width]+=e*y*y}}};o.nodeInfluenceFactor&&t.forEach(function(t){h(t,o.nodeInfluenceFactor/l)}),o.edgeInfluenceFactor&&n.forEach(function(t){!function(t,e){for(var n=t.getBBox(),a=c(n,o.edgeR1),l=a[0],u=a[1],h=a[2],d=a[3],f=u;f<d;f+=1)for(var p=l;p<h;p+=1)if(!(e<0&&i.cells[p+f*i.width]<=0)){var g=s(p,r.minX),v=s(f,r.minY),m=Ie({x:g,y:v},t);if(m<Math.pow(o.edgeR1,2)){var y=Math.sqrt(m)-o.edgeR1;i.cells[p+f*i.width]+=e*y*y}}}(t,o.edgeInfluenceFactor/u)}),o.negativeNodeInfluenceFactor&&e.forEach(function(t){h(t,o.negativeNodeInfluenceFactor/l)})}function fr(t,e,n,r){var i=t.getBBox(),o=n[0],a=n[1],s=n[2],l=n[3],u={topLeft:{x:i.minX-e,y:i.minY-e},topRight:{x:i.maxX+e,y:i.minY-e},bottomLeft:{x:i.minX-e,y:i.maxY+e},bottomRight:{x:i.maxX+e,y:i.maxY+e}},c=i.height*i.width;function h(t,e){return i.width*(.5*(t.y-i.minY+(e.y-i.minY)))}if(a)return o?r?u.topLeft:u.bottomRight:s?r?u.bottomLeft:u.topRight:h(a,l)<.5*c?a.y>l.y?r?u.topLeft:u.bottomRight:r?u.topRight:u.bottomLeft:a.y<l.y?r?u.bottomLeft:u.topRight:r?u.bottomRight:u.topLeft;if(l){if(o)return r?u.topRight:u.bottomLeft;if(s)return r?u.bottomRight:u.topLeft}return h(o,s)<.5*c?o.x>s.x?r?u.topLeft:u.bottomRight:r?u.bottomLeft:u.topRight:o.x<s.x?r?u.topRight:u.bottomLeft:r?u.bottomRight:u.topLeft}var pr=function(){function t(t,e){this.cfg=Object(x.deepMix)(this.getDefaultCfg(),e),this.graph=t,this.id=this.cfg.id,this.group=this.cfg.group,this.members=this.cfg.members.map(function(e){return Object(x.isString)(e)?t.findById(e):e}),this.nonMembers=this.cfg.nonMembers.map(function(e){return Object(x.isString)(e)?t.findById(e):e}),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()}return t.prototype.getDefaultCfg=function(){return{id:"g6-hull",type:"round-convex",members:[],nonMembers:[],style:{fill:"lightblue",stroke:"blue",opacity:.2},padding:10}},t.prototype.setPadding=function(){var t=this.members.length&&this.members[0].getKeyShape().getCanvasBBox().width/2;this.padding=this.cfg.padding>0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),"round-convex"!==this.type&&"smooth-convex"!==this.type&&"bubble"!==this.type&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(t,e){var n,r,i;switch(this.type){case"round-convex":i=er((n=or(t)).map(function(t){return[t.x,t.y]}),this.padding),r=Object(Wn.b)(i);break;case"smooth-convex":2===(n=or(t)).length?(i=er(n.map(function(t){return[t.x,t.y]}),this.padding),r=Object(Wn.b)(i)):n.length>2&&(i=nr(n.map(function(t){return[t.x,t.y]}),this.padding),r=Kn(i));break;case"bubble":r=(n=hr(t,e,this.cfg.bubbleCfg)).length>=2&&Kn(n)}return r},t.prototype.render=function(){this.group.addShape("path",{attrs:M({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},t.prototype.addMember=function(t){if(t){Object(x.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(t){if(t){Object(x.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(t){if(t){Object(x.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1&&(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.removeNonMember=function(t){if(t){Object(x.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1&&(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.updateData=function(t,e){var n=this;this.group.findById(this.id).remove(),t&&(this.members=t.map(function(t){return Object(x.isString)(t)?n.graph.findById(t):t})),e&&(this.nonMembers=e.map(function(t){return Object(x.isString)(t)?n.graph.findById(t):t})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(t){this.group.findById(this.id).attr(M({},t))},t.prototype.updateCfg=function(t){var e=this;this.cfg=Object(x.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map(function(t){return Object(x.isString)(t)?e.graph.findById(t):t})),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(t){return Object(x.isString)(t)?e.graph.findById(t):t})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(t){var e,n,r=this,i=(e=Object(x.isString)(t)?this.graph.findById(t):t).getKeyShape();if("path"===e.get("type"))n=Zn(i.attr("path"));else{var o=i.getCanvasBBox();n=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return n=n.map(function(t){var e=r.graph.getPointByCanvas(t[0],t[1]);return[e.x,e.y]}),Se(n,Zn(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}(),gr=P.a.transform,vr=function(t){function e(e){var n=t.call(this)||this;return n.sortCombos=Object(x.debounce)(function(){var t=n.get("comboSorted");if(n&&!n.destroyed&&!t){n.set("comboSorted",!0);var e=[],r={};(n.get("comboTrees")||[]).forEach(function(t){nn(t,function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],r[t.id]=t.depth,!0})}),(n.getEdges().concat(n.get("vedges"))||[]).forEach(function(t){var n=t.getModel(),i=r[n.source]||0,o=r[n.target]||0,a=Math.max(i,o);e[a]?e[a].push(n.id):e[a]=[n.id]}),e.forEach(function(t){if(t&&t.length)for(var e=t.length-1;e>=0;e--){var r=n.findById(t[e]);r&&r.toFront()}})}},500,!1),n.cfg=Object(x.deepMix)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new Jt(n.cfg.maxStep),n.redoStack=new Jt(n.cfg.maxStep)),n}return O(e,t),e.prototype.init=function(){this.initCanvas();var t=new kn(this),e=new gn(this),n=new Gn(this),r=new Hn(this);this.set({viewController:t,modeController:e,itemController:n,stateController:r}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var t=this.get("canvas");if(t){var e=(t.get("el")||{}).id,n=void 0===e?"g6":e,r=t.addGroup({id:"".concat(n,"-root"),className:Ue.rootContainerClassName});if(this.get("groupByTypes")){var i=r.addGroup({id:"".concat(n,"-edge"),className:Ue.edgeContainerClassName}),o=r.addGroup({id:"".concat(n,"-node"),className:Ue.nodeContainerClassName}),a=r.addGroup({id:"".concat(n,"-combo"),className:Ue.comboContainerClassName});a.toBack(),this.set({nodeGroup:o,edgeGroup:i,comboGroup:a})}var s=r.addGroup({id:"".concat(n,"-delegate"),className:Ue.delegateContainerClassName});this.set({delegateGroup:s}),this.set("group",r)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(t,e){return Object(x.isPlainObject)(t)?this.cfg=M(M({},this.cfg),t):this.cfg[t]=e,"enabledStack"!==t||!e||this.undoStack||this.redoStack||(this.undoStack=new Jt(this.cfg.maxStep),this.redoStack=new Jt(this.cfg.maxStep)),this},e.prototype.get=function(t){var e;return null===(e=this.cfg)||void 0===e?void 0:e[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,e){Object(x.isString)(t)&&(t=this.findById(t));var n=this.get("itemController");e||(e=t.get("states")),n.clearItemStates(t,e),this.get("stateController").updateStates(t,e,!1)},e.prototype.node=function(t){"function"==typeof t&&this.set("nodeMapper",t)},e.prototype.edge=function(t){"function"==typeof t&&this.set("edgeMapper",t)},e.prototype.combo=function(t){"function"==typeof t&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,e){var n,r=this.get("".concat(t,"s"));return Object(x.each)(r,function(t,r){if(e(t,r))return n=t}),n},e.prototype.findAll=function(t,e){var n=[];return Object(x.each)(this.get("".concat(t,"s")),function(t,r){e(t,r)&&n.push(t)}),n},e.prototype.findAllByState=function(t,e,n){return n?this.findAll(t,function(t){return t.hasState(e)&&n(t)}):this.findAll(t,function(t){return t.hasState(e)})},e.prototype.translate=function(t,e,n,r){var i=this,o=this.get("group"),a=Object(x.clone)(o.getMatrix());if(a||(a=[1,0,0,0,1,0,0,0,1]),n){var s=fn({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});ve(o,{x:o.getCanvasBBox().x+t,y:o.getCanvasBBox().y+e},n,s||{duration:500,easing:"easeCubic"})}else a=gr(a,[["t",t,e]]),o.setMatrix(a),this.emit("viewportchange",{action:"translate",matrix:a}),this.autoPaint()},e.prototype.moveTo=function(t,e,n,r){var i=this.get("group");ve(i,{x:t,y:e},n,r||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()})},e.prototype.fitView=function(t,e,n,r){t&&this.set("fitViewPadding",t);var i=this.get("viewController");e?i.fitViewByRules(e,n,r):i.fitView(n,r),this.autoPaint()},e.prototype.fitCenter=function(t,e){this.get("viewController").fitCenter(t,e),this.autoPaint()},e.prototype.addBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this},e.prototype.removeBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this},e.prototype.updateBehavior=function(t,e,n){return this.get("modeController").updateBehavior(t,e,n),this},e.prototype.zoom=function(t,e,n,r){var i=this,o=this.get("group"),a=Object(x.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],s=this.get("minZoom"),l=this.get("maxZoom"),u=this.getZoom()||1,c=u*t,h=t,d=!1;if(s&&c<s?(h=s/u,d=!0):l&&c>l&&(h=l/u,d=!0),a=gr(a,e?[["t",-e.x,-e.y],["s",h,h],["t",e.x,e.y]]:[["s",h,h]]),n){var f=Object(x.clone)(o.getMatrix());f||(f=[1,0,0,0,1,0,0,0,1]);var p=f[0],g=p*h,v=fn({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate(function(t){if(1===t)f=a;else{var n=je(p,g,t)/f[0];f=gr(f,e?[["t",-e.x,-e.y],["s",n,n],["t",e.x,e.y]]:[["s",n,n]])}return{matrix:f}},v)}else o.setMatrix(a),this.emit("viewportchange",{action:"zoom",matrix:a}),this.autoPaint();return!d},e.prototype.zoomTo=function(t,e,n,r){var i=t/this.getZoom();return this.zoom(i,e,n,r)},e.prototype.focusItem=function(t,e,n){var r=this.get("viewController"),i=!1;e?i=!0:void 0===e&&(i=this.get("animate"));var o={};n?o=n:void 0===n&&(o=this.get("animateCfg")),r.focus(t,i,o),this.autoPaint()},e.prototype.focusItems=function(t,e,n,r){this.get("viewController").focusItems(t,e,n,r)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,e){return this.get("viewController").getPointByClient(t,e)},e.prototype.getClientByPoint=function(t,e){return this.get("viewController").getClientByPoint(t,e)},e.prototype.getPointByCanvas=function(t,e){return this.get("viewController").getPointByCanvas(t,e)},e.prototype.getCanvasByPoint=function(t,e){return this.get("viewController").getCanvasByPoint(t,e)},e.prototype.getGraphCenterPoint=function(){var t=this.get("group").getCanvasBBox();return{x:(t.minX+t.maxX)/2,y:(t.minY+t.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!0);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!1}],o.nodes=[{id:r,visible:!0}];break;case"edge":i.nodes=[{id:r,visible:!1}],o.edges=[{id:r,visible:!0}];break;case"combo":i.nodes=[{id:r,visible:!1}],o.combos=[{id:r,visible:!0}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.hideItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!1);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!0}],o.nodes=[{id:r,visible:!1}];break;case"edge":i.nodes=[{id:r,visible:!0}],o.edges=[{id:r,visible:!1}];break;case"combo":i.nodes=[{id:r,visible:!0}],o.combos=[{id:r,visible:!1}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.refreshItem=function(t){this.get("itemController").refreshItem(t)},e.prototype.setAutoPaint=function(t){this.set("autoPaint",t),this.get("canvas").set("autoDraw",t)},e.prototype.remove=function(t,e){void 0===e&&(e=!0),this.removeItem(t,e)},e.prototype.removeItem=function(t,e){void 0===e&&(e=!0);var n=t;if(Object(x.isString)(t)&&(n=this.findById(t)),!n&&Object(x.isString)(t))console.warn("The item ".concat(t," to be removed does not exist!"));else if(n){var r="";if(n.getType&&(r=n.getType()),e&&this.get("enabledStack")){var i=M(M({},n.getModel()),{itemType:r}),o={};switch(r){case"node":o.nodes=[i],o.edges=[];for(var a=n.getEdges(),s=a.length-1;s>=0;s--)o.edges.push(M(M({},a[s].getModel()),{itemType:"edge"}));break;case"edge":o.edges=[i];break;case"combo":o.combos=[i]}this.pushStack("delete",{before:o,after:{}})}if("node"===r)n.getModel().comboId&&this.updateComboTree(n,void 0,!1);if(this.get("itemController").removeItem(n),"combo"===r){var l=un(this.get("comboTrees"));this.set("comboTrees",l)}}},e.prototype.innerAddItem=function(t,e,n){if(!function(t,e){if("node"===t||"combo"===t){if(e.id&&!Object(x.isString)(e.id))return console.warn("G6 Warning Tips: missing 'id' property, or the 'id' %c".concat(e.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1}else if(!("edge"!==t||e.source&&e.target))return console.warn("G6 Warning Tips: missing 'source' or 'target' for the edge."),!1;return!0}(t,e))return!1;if(!e.id||!this.findById(e.id)){var r,i=this.get("comboTrees")||[];if("combo"===t){var o=this.get("itemMap"),a=!1;if(i.forEach(function(i){a||rn(i,function(i){if(e.parentId===i.id){a=!0;var s=M({id:e.id,depth:i.depth+2},e);i.children?i.children.push(s):i.children=[s],e.depth=s.depth,r=n.addItem(t,e)}var l=o[i.id];return a&&l&&l.getType&&"combo"===l.getType()&&n.updateCombo(l,i.children),!0})}),!a){var s=M({id:e.id,depth:0},e);e.depth=s.depth,i.push(s),r=n.addItem(t,e)}this.set("comboTrees",i),e.collapsed&&(this.collapseCombo(r,!1),this.updateCombo(r))}else if("node"===t&&Object(x.isString)(e.comboId)&&i){var l;(l=this.findById(e.comboId))&&l.getType&&"combo"!==l.getType()&&console.warn("'".concat(e.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),r=n.addItem(t,e);var u=this.get("itemMap"),c=!1,h=!1;i.forEach(function(t){h||c||rn(t,function(t){if(t.id===e.id)return h=!0,!1;if(e.comboId===t.id&&!h){c=!0;var r=Object(x.clone)(e);r.itemType="node",t.children?t.children.push(r):t.children=[r],r.depth=t.depth+1}return c&&u[t.id].getType&&"combo"===u[t.id].getType()&&n.updateCombo(u[t.id],t.children),!0})})}else r=n.addItem(t,e);if("node"===t&&e.comboId||"combo"===t&&e.parentId)(l=this.findById(e.comboId||e.parentId))&&l.getType&&"combo"===l.getType()&&l.addChild(r);return r}console.warn("This item exists already. Be sure the id %c".concat(e.id,"%c is unique."),"font-size: 20px; color: red;","")},e.prototype.addItem=function(t,e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!r);var o=this.get("itemController"),a=this.innerAddItem(t,e,o);if(!1===a||!0===a)return a;var s=this.get("combos");if(s&&s.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var l=M(M({},a.getModel()),{itemType:t}),u={};switch(t){case"node":u.nodes=[l];break;case"edge":u.edges=[l];break;case"combo":u.combos=[l]}this.pushStack("add",{before:{},after:u})}return a},e.prototype.addItems=function(t,e,n){void 0===t&&(t=[]),void 0===e&&(e=!0),void 0===n&&(n=!0);var r=this.get("comboSorted");this.set("comboSorted",r&&!n);for(var i=this.get("itemController"),o=[],a=0;a<t.length;a++){"edge"!==(s=t[a]).type&&"vedge"!==s.type?o.push(this.innerAddItem(s.type,s.model,i)):o.push(void 0)}for(a=0;a<t.length;a++){var s;"edge"!==(s=t[a]).type&&"vedge"!==s.type||(o[a]=this.innerAddItem(s.type,s.model,i))}if(n){var l=this.get("combos");l&&l.length>0&&this.sortCombos()}if(this.autoPaint(),e&&this.get("enabledStack")){var u={nodes:[],edges:[],combos:[]};for(a=0;a<t.length;a++){var c=t[a].type,h=o[a];if(h&&!0!==h){var d=M(M({},h.getModel()),{itemType:c});switch(c){case"node":u.nodes.push(d);break;case"edge":u.edges.push(d);break;case"combo":u.combos.push(d)}}}this.pushStack("addItems",{before:{},after:u})}return o},e.prototype.add=function(t,e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!0),this.addItem(t,e,n,r)},e.prototype.updateItem=function(t,e,n){var r=this;void 0===n&&(n=!0);var i,o=this.get("itemController");i=Object(x.isString)(t)?this.findById(t):t;var a,s=n&&this.get("enabledStack");s&&(a=Object(x.clone)(i.getModel()));var l="";i.getType&&(l=i.getType());var u=I([],i.getStates(),!0);if("combo"===l&&Object(x.each)(u,function(t){return r.setItemState(i,t,!1)}),o.updateItem(i,e),"combo"===l&&Object(x.each)(u,function(t){return r.setItemState(i,t,!0)}),s){var c={nodes:[],edges:[],combos:[]},h={nodes:[],edges:[],combos:[]},d=M({id:a.id},e);switch(l){case"node":c.nodes.push(a),h.nodes.push(d);break;case"edge":c.edges.push(a),h.edges.push(d);break;case"combo":c.combos.push(a),h.combos.push(d)}this.pushStack("update",{before:c,after:h})}},e.prototype.update=function(t,e,n){void 0===n&&(n=!0),this.updateItem(t,e,n)},e.prototype.setItemState=function(t,e,n){Object(x.isString)(t)&&(t=this.findById(t)),this.get("itemController").setItemState(t,e,n),this.get("stateController").updateState(t,e,n)},e.prototype.priorityState=function(t,e){this.get("itemController").priorityState(t,e)},e.prototype.data=function(t){pn(t),this.set("data",t)},e.prototype.render=function(){var t=this;this.set("comboSorted",!1);var e=this.get("data");if(this.get("enabledStack")&&this.clearStack(),!e)throw new Error("data must be defined first");var n=e.nodes,r=void 0===n?[]:n,i=e.edges,o=void 0===i?[]:i,a=e.combos,s=void 0===a?[]:a;if(this.clear(!0),this.emit("beforerender"),t.addItems(r.map(function(t){return{type:"node",model:t}}),!1,!1),0!==(null===s||void 0===s?void 0:s.length)){var l=ln(s,r);this.set("comboTrees",l),t.addCombos(s)}t.addItems(o.map(function(t){return{type:"edge",model:t}}),!1,!1);var u=t.get("animate");(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",!1);var c=t.get("layoutController");if(c){if(c.layout(h),this.destroyed)return}else h();function h(){(t.get("comboTrees")||[]).forEach(function(e){rn(e,function(e){var n=t.findById(e.id);return"combo"===n.getType()&&e.collapsed&&(t.collapseCombo(e.id,!1),t.updateCombo(n)),!0})}),t.get("fitView")?t.fitView():t.get("fitCenter")&&t.fitCenter(),t.autoPaint(),t.emit("afterrender"),(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",u),setTimeout(function(){var e;null===(e=t.getCombos())||void 0===e||e.forEach(function(t){t.set("animate",!0)})},0)}this.get("groupByTypes")||(s&&0!==s.length?this.sortCombos():e.nodes&&e.edges&&e.nodes.length<e.edges.length?this.getNodes().forEach(function(t){t.toFront()}):this.getEdges().forEach(function(t){t.toBack()}))},e.prototype.read=function(t){this.data(t),this.render()},e.prototype.diffItems=function(t,e,n){var r,i=this,o=this.get("itemMap");Object(x.each)(n,function(n){if(r=o[n.id]){if(i.get("animate")&&"node"===t){var a=r.getContainer().getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]),r.set("originAttrs",{x:a[6],y:a[7]})}i.updateItem(r,n,!1)}else r=i.addItem(t,n,!1);r&&e["".concat(t,"s")].push(r)})},e.prototype.changeData=function(t,e){var n,r=this;void 0===e&&(e=!0);var i=this,o=t||i.get("data");if(!pn(o))return this;this.emit("beforechangedata"),e&&this.get("enabledStack")&&this.pushStack("changedata",{before:i.save(),after:o}),this.set("comboSorted",!1),this.removeHulls(),this.getNodes().map(function(t){return i.clearItemStates(t)}),this.getEdges().map(function(t){return i.clearItemStates(t)});var a=this.get("canvas"),s=a.get("localRefresh");a.set("localRefresh",!1),i.get("data")||(i.data(o),i.render());var l=this.get("itemMap"),u={nodes:[],edges:[]},c=o.combos;if(c){var h=ln(c,o.nodes);this.set("comboTrees",h)}else this.set("comboTrees",[]);this.diffItems("node",u,o.nodes),Object(x.each)(l,function(t,e){l[e].getModel().depth=0,t.getType&&"edge"===t.getType()||(t.getType&&"combo"===t.getType()?(delete l[e],t.destroy()):u.nodes.indexOf(t)<0&&(delete l[e],i.remove(t,!1)))});for(var d=this.getCombos(),f=d.length-1;f>=0;f--)d[f].destroyed&&d.splice(f,1);c&&(i.addCombos(c),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",u,o.edges),Object(x.each)(l,function(t,e){(!t.getType||"node"!==t.getType()&&"combo"!==t.getType())&&u.edges.indexOf(t)<0&&(delete l[e],i.remove(t,!1))}),(this.get("comboTrees")||[]).forEach(function(t){rn(t,function(t){return"combo"===r.findById(t.id).getType()&&t.collapsed&&r.collapseCombo(t.id,!1),!0})}),this.set({nodes:u.nodes,edges:u.edges});var p=(this.get("layout")||{}).relayoutAtChangeData,g=void 0===p||p,v=this.get("layoutController");return g&&v&&(v.changeData(function(){setTimeout(function(){var t;null===(t=i.getCombos())||void 0===t||t.forEach(function(t){t.set("animate",!0)})},0)}),i.get("animate")&&!v.getLayoutType()?(i.positionsAnimate(),null===(n=i.getCombos())||void 0===n||n.forEach(function(t){return t.set("animate",!0)})):i.autoPaint()),setTimeout(function(){a.set("localRefresh",s)},16),this.set("data",o),this.emit("afterchangedata"),this},e.prototype.addCombos=function(t){var e=this.get("comboTrees");this.get("itemController").addCombos(e,t)},e.prototype.createCombo=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.get("itemController");this.set("comboSorted",!1);var o,a="";if(t){if(Object(x.isString)(t))a=t,o={id:t};else{if(!(a=t.id))return void console.warn("Create combo failed. Please assign a unique string id for the adding combo.");o=t}var s=n&&this.get("enabledStack"),l={nodes:[],combos:[]};s&&e.forEach(function(t){var e=r.findById(t),n=e.getType();if("node"===n||"combo"===n){var i=e.getModel();l["".concat(n,"s")].push({id:t,parentId:"node"===n?i.comboId:i.parentId})}});var u=this.get("comboTrees"),c=new Set(e),h=new Map;u&&(u.forEach(function(t){rn(t,function(t,e,n){if(c.has(t.id)){if(e){var o=r.findById(e.id),a=r.findById(t.id);e.children.splice(n,1),o.removeChild(a),i.updateCombo(o,e.children)}"combo"===t.itemType&&h.set(t.id,t)}return!0})}),u=u.filter(function(t){return!c.has(t.id)}),this.set("comboTrees",u));var d={nodes:[],combos:[]},f=e.map(function(t){var e=r.findById(t),n=e.getModel(),i="";e.getType&&(i=e.getType());var o=h.get(t)||{id:e.getID(),itemType:i};return"combo"===i?(o.parentId=a,n.parentId=a):"node"===i&&(o.comboId=a,n.comboId=a),s&&d["".concat(i,"s")].push({id:n.id,parentId:a}),o});o.children=f,this.addItem("combo",o,!1),this.set("comboSorted",!1),u&&(u.forEach(function(t){nn(t,function(t){return t.id!==a||(t.itemType="combo",t.children=f,!1)})}),this.sortCombos()),s&&(d.combos.push(o),this.pushStack("createCombo",{before:l,after:d}));var p=this.findById(a);!p.getModel().parentId&&p.getChildren().combos.length&&this.updateComboTree(p,void 0,!1),setTimeout(function(){p.set("animate",!0)},0)}},e.prototype.uncombo=function(t,e){var n,r,i=this;void 0===e&&(e=!0);var o=t;if(Object(x.isString)(t)&&(o=this.findById(t)),!o||o.getType&&"combo"!==o.getType())console.warn("The item is not a combo!");else{var a=o.getModel(),s=o.getModel().parentId,l=this.get("comboTrees");l||(l=[]);var u,c=this.get("itemMap"),h=o.get("id"),d=[],f=this.get("combos"),p=this.findById(s),g=e&&this.get("enabledStack"),v={};if(g&&((v=Object(x.clone)(a)).children=[]),l.forEach(function(t){u||rn(t,function(t){var e;if(t.id===h){u=t,o.getEdges().map(function(t){return t.getID()}).forEach(function(t){i.removeItem(t,!1)});var n=f.indexOf(o);f.splice(n,1),delete c[h];var r=Object(x.clone)(o.getModel());o.destroy(),i.emit("afterremoveitem",{item:r,type:"combo"})}return!s||!u||t.id!==s||(p.removeCombo(o),-1!==(n=(d=t.children).indexOf(u))&&d.splice(n,1),null===(e=u.children)||void 0===e||e.forEach(function(t){var e=i.findById(t.id),n=e.getModel();e.getType&&"combo"===e.getType()?(t.parentId=s,delete t.comboId,n.parentId=s,delete n.comboId):e.getType&&"node"===e.getType()&&(t.comboId=s,n.comboId=s),p.addChild(e),d.push(t)}),i.updateCombo(p),!1)})}),!s&&u){var m=l.indexOf(u);l.splice(m,1),null===(n=u.children)||void 0===n||n.forEach(function(t){t.parentId=void 0;var e=i.findById(t.id).getModel();delete e.parentId,delete e.comboId,"node"!==t.itemType&&l.push(t)})}if(g){var y={nodes:[],combos:[]},b={nodes:[],combos:[]};null===(r=u.children)||void 0===r||r.forEach(function(t){var e=i.findById(t.id).getType();"node"!==e&&"combo"!==e||(y["".concat(e,"s")].push({id:t.id,parentId:h}),b["".concat(e,"s")].push({id:t.id,parentId:s}))}),y.combos.push(v),this.pushStack("uncombo",{before:y,after:b})}}},e.prototype.updateCombos=function(t){var e=this;void 0===t&&(t=!1);var n=this.get("comboTrees"),r=this.get("itemController"),i=this.get("itemMap");(n||[]).forEach(function(n){rn(n,function(n){var o;if(!n)return!0;var a=i[n.id];if("combo"===(null===(o=null===a||void 0===a?void 0:a.getType)||void 0===o?void 0:o.call(a))){var s=I([],a.getStates(),!0);Object(x.each)(s,function(t){return e.setItemState(a,t,!1)}),r.updateCombo(a,n.children,t),Object(x.each)(s,function(t){return e.setItemState(a,t,!0)})}return!0})}),this.sortCombos()},e.prototype.updateCombo=function(t){var e,n=this,r=t;if(Object(x.isString)(t)&&(r=this.findById(t)),!r||r.getType&&"combo"!==r.getType())console.warn("The item to be updated is not a combo!");else{e=r.get("id");var i=this.get("comboTrees"),o=this.get("itemController"),a=this.get("itemMap");(i||[]).forEach(function(t){rn(t,function(t){if(!t)return!0;var r=a[t.id];if(e===t.id&&r&&r.getType&&"combo"===r.getType()){var i=I([],r.getStates(),!0);Object(x.each)(i,function(t){r.getStateStyle(t)&&n.setItemState(r,t,!1)}),o.updateCombo(r,t.children),Object(x.each)(i,function(t){r.getStateStyle(t)&&n.setItemState(r,t,!0)}),e&&(e=t.parentId)}return!0})})}},e.prototype.updateComboTree=function(t,e,n){void 0===n&&(n=!0);var r;this.set("comboSorted",!1);var i,o=(r=Object(x.isString)(t)?this.findById(t):t).getModel(),a=o.comboId||o.parentId,s="";if(r.getType&&(s=r.getType()),e&&"combo"===s){var l,u=!0;if((this.get("comboTrees")||[]).forEach(function(t){l||nn(t,function(t){if(!l)return t.id===r.getID()&&(l=t),!0})}),nn(l,function(t){return t.id!==e||(u=!1,!1)}),!u)return void console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!")}if(n&&this.get("enabledStack")){var c={},h={};"combo"===s?(c.combos=[{id:o.id,parentId:o.parentId}],h.combos=[{id:o.id,parentId:e}]):"node"===s&&(c.nodes=[{id:o.id,parentId:o.comboId}],h.nodes=[{id:o.id,parentId:e}]),this.pushStack("updateComboTree",{before:c,after:h})}if(o.parentId||o.comboId){var d=this.findById(o.parentId||o.comboId);d&&d.removeChild(r)}("combo"===s?o.parentId=e:"node"===s&&(o.comboId=e),e)&&((i=this.findById(e))&&i.addChild(r));a&&((i=this.findById(a))&&i.removeChild(r));var f=un(this.get("comboTrees"),o.id,e);this.set("comboTrees",f),this.updateCombos()},e.prototype.save=function(){var t=[],e=[],n=[];return Object(x.each)(this.get("nodes"),function(e){t.push(e.getModel())}),Object(x.each)(this.get("edges"),function(t){e.push(t.getModel())}),Object(x.each)(this.get("combos"),function(t){n.push(t.getModel())}),{nodes:t,edges:e,combos:n}},e.prototype.changeSize=function(t,e){return this.get("viewController").changeSize(t,e),this},e.prototype.refresh=function(){if(this.emit("beforegraphrefresh"),this.get("animate"))this.positionsAnimate();else{var t=this.get("nodes"),e=this.get("edges"),n=this.get("edges");Object(x.each)(t,function(t){t.refresh()}),Object(x.each)(e,function(t){t.refresh()}),Object(x.each)(n,function(t){t.refresh()})}this.emit("aftergraphrefresh"),this.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if(Object(x.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType()))return t.getChildren();console.warn("The combo does not exist!")},e.prototype.positionsAnimate=function(t){var e=this;e.emit("beforeanimate");var n=e.get("animateCfg"),r=n.onFrame,i=t?e.getNodes().concat(e.getCombos()):e.getNodes(),o=i.map(function(t){var e=t.getModel();return{id:e.id,x:e.x,y:e.y}});e.stopAnimate();var a=e.get("canvas");e.animating=!0,setTimeout(function(){a.animate(function(n){Object(x.each)(o,function(t){var i=e.findById(t.id);if(i&&!i.destroyed){var o=i.get("originAttrs"),a=i.get("model"),s=i.getContainer().getMatrix();if(void 0!==o&&null!==o||(s&&(o={x:s[6],y:s[7]}),i.set("originAttrs",o||0)),r){var l=r(i,n,t,o||{x:0,y:0});i.set("model",Object.assign(a,l))}else o?(a.x=o.x+(t.x-o.x)*n,a.y=o.y+(t.y-o.y)*n):(a.x=t.x,a.y=t.y)}}),e.refreshPositions(t)},{duration:n.duration,easing:n.easing,callback:function(){Object(x.each)(i,function(t){t.set("originAttrs",null)}),n.callback&&n.callback(),e.emit("afteranimate"),e.animating=!1}})},0)},e.prototype.refreshPositions=function(t){this.emit("beforegraphrefreshposition");var e,n=this.get("nodes"),r=this.get("edges"),i=this.get("vedges"),o=this.get("combos"),a={},s=function(t){Object(x.each)(t,function(t){e=t.getModel();var n=t.get("originAttrs");if(!n||e.x!==n.x||e.y!==n.y){var r=t.updatePosition({x:e.x,y:e.y});a[e.id]=r,e.comboId&&(a[e.comboId]=a[e.comboId]||r),e.parentId&&(a[e.parentId]=a[e.parentId]||r)}})};s(o),s(n),o&&0!==o.length&&(t?(s(o),this.updateCombos()):this.updateCombos()),Object(x.each)(r,function(t){var e=t.getSource().getModel(),n=t.getTarget();if(!Object(x.isPlainObject)(n)){var r=n.getModel();(a[e.id]||a[r.id]||t.getModel().isComboEdge)&&t.refresh()}}),Object(x.each)(i,function(t){t.refresh()}),this.emit("aftergraphrefreshposition"),this.autoPaint()},e.prototype.stopAnimate=function(){var t=this.get("canvas").cfg.timeline;t&&t.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){return this.get("modeController").getMode()},e.prototype.setMode=function(t){return this.get("modeController").setMode(t),this},e.prototype.clear=function(t){var e;return void 0===t&&(t=!1),null===(e=this.get("canvas"))||void 0===e||e.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),t||this.emit("afterrender"),this},e.prototype.updateLayout=function(t,e,n,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=!0);var o=this.get("layoutController");if(Object(x.isString)(t)&&(t={type:t}),e){var a=n;a||(a="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),a=this.getPointByCanvas(a.x,a.y);var s=["force","gForce","fruchterman","force2"];s.includes(t.type)||!t.type&&s.includes(null===o||void 0===o?void 0:o.layoutType)?t.center=[a.x,a.y]:this.once("afterlayout",function(t){var n=i.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];a.x=a.x*n[0]+n[6],a.y=a.y*n[0]+n[7];var r=i.getGroup().getCanvasBBox(),o=r.minX,s=r.maxX,l=r.minY,u={x:(o+s)/2,y:(l+r.maxY)/2};"begin"===e&&(u.x=o,u.y=l),i.translate(a.x-u.x,a.y-u.y)})}var l=M({},this.get("layout")),u={};Object.assign(u,l,t),t.pipes&&!t.type?delete u.type:!t.pipes&&u.type&&delete u.pipes,this.set("layout",u),o&&(o.isLayoutTypeSame(u)&&u.gpuEnabled===l.gpuEnabled?o.updateLayoutCfg(u):o.changeLayout(u),r&&this.get("enabledStack")&&this.pushStack("layout",{before:l,after:u}))},e.prototype.destroyLayout=function(){var t=this.get("layoutController");null===t||void 0===t||t.destroyLayout()},e.prototype.layout=function(){var t,e=this.get("layoutController"),n=this.get("layout");n&&e&&(n.workerEnabled?e.layout():(null===(t=e.layoutMethods)||void 0===t?void 0:t.length)?e.relayout(!0):e.layout())},e.prototype.collapseCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),!this.destroyed)if(Object(x.isString)(t)&&(t=this.findById(t)),t){this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var r=t.getModel();this.get("itemController").collapseCombo(t,e),r.collapsed=!0;var i=this.getEdges().concat(this.get("vedges")),o=[],a=!1;(this.get("comboTrees")||[]).forEach(function(t){a||nn(t,function(t){if(a&&t.depth<=r.depth)return!1;if(r.id===t.id&&(a=!0),a){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()))}return!0})});var s={};i.forEach(function(t){var e=t.getModel(),i=e.isVEdge,a=e.size,l=void 0===a?1:a;if(!t.isVisible()||i){var u,c=t.getSource(),h=t.getTarget(),d=null;if(c.getModel().id===r.id||o.includes(c)&&!o.includes(h)?(d=h,u=!1):(h.getModel().id===r.id||!o.includes(c)&&o.includes(h))&&(d=c,u=!0),d){if(i)return void n.removeItem(t,!1);for(var f=d.getModel();!d.isVisible();){var p=f.parentId,g=f.comboId,v=p||g;if(!(d=n.findById(v))||!v)return;f=d.getModel()}var m=f.id,y=u?{source:m,target:r.id,size:l,isVEdge:!0}:{source:r.id,target:m,size:l,isVEdge:!0},b="".concat(y.source,"-").concat(y.target);if(s[b])return void(s[b].size+=l);s[b]=y}}}),this.addItems(Object.values(s).map(function(t){return{type:"vedge",model:t}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t})}else console.warn("The combo to be collapsed does not exist!")},e.prototype.expandCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),Object(x.isString)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType())console.warn("The combo to be collapsed does not exist!");else{this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var r=t.getModel();this.get("itemController").expandCombo(t,e),r.collapsed=!1;var i=this.getEdges().concat(this.get("vedges")),o=[],a=!1;(this.get("comboTrees")||[]).forEach(function(t){a||nn(t,function(t){if(a&&t.depth<=r.depth)return!1;if(r.id===t.id&&(a=!0),a){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()))}return!0})});var s={};i.forEach(function(t){if(!t.isVisible()||t.getModel().isVEdge){var e,i=t.getSource(),a=t.getTarget(),l=i.get("id"),u=a.get("id"),c=null;if(l===r.id||o.includes(i)&&!o.includes(a)?(c=a,e=!1):u===r.id||!o.includes(i)&&o.includes(a)?(c=i,e=!0):o.includes(i)&&o.includes(a)&&i.isVisible()&&a.isVisible()&&t.show(),c){var h=t.getModel(),d=h.isVEdge,f=h.size,p=void 0===f?1:f;if(d)return void n.removeItem(t,!1);for(var g=c.getModel();!c.isVisible();){var v=g.parentId,m=g.comboId,y=v||m;if(!(c=n.findById(y))||!y)return;g=c.getModel()}for(var b=g.id,_=e?a:i,x=_.getModel();!_.isVisible();){var w=x.parentId,S=x.comboId,C=w||S;if(!(_=n.findById(C))||!C)return;if(x.comboId===r.id||x.parentId===r.id)break;x=_.getModel()}var k=x.id;if(b){var O=e?{source:b,target:k,isVEdge:!0,size:p}:{source:k,target:b,isVEdge:!0,size:p},M="".concat(O.source,"-").concat(O.target);if(s[M])return void(s[M].size+=p);s[M]=O}}}}),this.addItems(Object.values(s).map(function(t){return{type:"vedge",model:t}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:t})}},e.prototype.collapseExpandCombo=function(t,e){if(void 0===e&&(e=!0),Object(x.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType())){for(var n=t.getModel(),r=this.findById(n.parentId);r;){var i=r.getModel();if(i.collapsed)return console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),void(r=void 0);r=this.findById(i.parentId)}n.collapsed?this.expandCombo(t,e):this.collapseCombo(t,e),this.updateCombo(t)}},e.prototype.getNeighbors=function(t,e){var n=t;return Object(x.isString)(t)&&(n=this.findById(t)),n.getNeighbors(e)},e.prototype.getNodeDegree=function(t,e,n){void 0===e&&(e=void 0),void 0===n&&(n=!1);var r=t;Object(x.isString)(t)&&(r=this.findById(t));var i=this.get("degrees");i&&!n||(i=Y(this.save()),this.set("degrees",i));var o=i[r.getID()],a=0;if(!o)return 0;switch(e){case"in":a=o.inDegree;break;case"out":a=o.outDegree;break;case"all":a=o;break;default:a=o.degree}return a},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(t,e,n){if(void 0===t&&(t="update"),void 0===n&&(n="undo"),this.get("enabledStack")){var r=e?Object(x.clone)(e):{before:{},after:Object(x.clone)(this.save())};"redo"===n?this.redoStack.push({action:t,data:r}):this.undoStack.push({action:t,data:r}),this.emit("stackchange",{action:t,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack})}else console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !")},e.prototype.getAdjMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix");return n&&t||(n=L(this.save(),e),this.set("adjMatrix",n)),n},e.prototype.getShortestPathMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix"),r=this.get("shortestPathMatrix");return n&&t||(n=L(this.save(),e),this.set("adjMatrix",n)),r&&t||(r=st(this.save(),e),this.set("shortestPathMatrix",r)),r},e.prototype.on=function(e,n,r){return t.prototype.on.call(this,e,n,r)},e.prototype.destroy=function(){var t,e,n,r,i;this.emit("beforedestroy"),this.clear(),this.clearStack(),null===(t=this.get("itemController"))||void 0===t||t.destroy(),null===(e=this.get("modeController"))||void 0===e||e.destroy(),null===(n=this.get("viewController"))||void 0===n||n.destroy(),null===(r=this.get("stateController"))||void 0===r||r.destroy(),null===(i=this.get("canvas"))||void 0===i||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(t){if(t.members&&!(t.members.length<1)){var e=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),e&&!e.get("destroyed")||((e=this.get("group").addGroup({id:"hullGroup"})).toBack(),this.set("hullGroup",e)),n[t.id])return console.warn("Existed hull id."),n[t.id];var r=e.addGroup({id:"".concat(t.id,"-container")}),i=new pr(this,M(M({},t),{group:r}));return n[i.id]=i,i}console.warn("Create hull failed! The members is empty.")},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var e,n;n=Object(x.isString)(t)?this.getHullById(t):t,null===(e=this.get("hullMap"))||void 0===e||delete e[n.id],n.destroy()},e.prototype.removeHulls=function(){var t=this.getHulls();t&&Object.keys(t).length&&(Object.keys(t).forEach(function(e){t[e].destroy()}),this.set("hullMap",{}))},e}(D.a);function mr(t){"@babel/helpers - typeof";return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var yr=P.a.transform,br=["startArrow","endArrow"],_r={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},xr={edge:{lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},node:_r,combo:_r},wr={options:{labelCfg:{style:{fontFamily:Ue.windowFontFamily}},descriptionCfg:{style:{fontFamily:Ue.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t,e){return"move"===e||(null===e||void 0===e?void 0:e.includes("bbox"))?t:Object(x.deepMix)({},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var n=this.drawShape(t,e);if(n.set("className",this.itemType+"-shape"),e.shapeMap[this.itemType+"-shape"]=n,t.label){var r=this.drawLabel(t,e);r.set("className",this.itemType+"-label"),e.shapeMap[this.itemType+"-label"]=r}return n},afterDraw:function(t,e,n){},drawShape:function(t,e){return null},drawLabel:function(t,e){var n=(this.mergeStyle||this.getOptions(t)||{}).labelCfg||{},r=this.getLabelStyle(t,n,e),i=r.rotate;delete r.rotate;var o=e.addShape("text",{attrs:r,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&""!==i){var a=o.getBBox(),s=[1,0,0,0,1,0,0,0,1];if(r.rotateCenter)switch(r.rotateCenter){case"center":s=yr(s,[["t",-a.width/2,-a.height/2],["r",i],["t",a.width/2,a.height/2]]);break;case"lefttop":s=yr(s,[["t",-r.x,-r.y],["r",i],["t",r.x,r.y]]);break;case"leftcenter":s=yr(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);break;default:s=yr(s,[["t",-a.width/2,-a.height/2],["r",i],["t",a.width/2,a.height/2]])}else s=yr(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);o.setMatrix(s)}if(r.background){var l=this.drawLabelBg(t,e,o),u=this.itemType+"-label-bg";l.set("classname",u),e.shapeMap[u]=l,o.toFront()}return o},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=Object(x.mix)({},r,t.labelCfg),o=this.getLabelBgStyleByPosition(n,i),a=e.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return e.shapeMap["text-bg-shape"]=a,a},getLabelStyleByPosition:function(t,e,n){return{text:t.label}},getLabelBgStyleByPosition:function(t,e){return{}},getLabelStyle:function(t,e,n){var r=this.getLabelStyleByPosition(t,e,n),i="".concat(this.itemType,"Label"),o=Ue[i]?Ue[i].style:null;return M(M(M({},o),r),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e,n){this.updateShapeStyle(t,e,n),this.updateLabel(t,e,n)},updateShapeStyle:function(t,e,n){var r,i=e.getContainer(),o=e.getKeyShape(),a=Object(x.mix)({},o.attr(),t.style),s=function(t){var e,n=a[t];if(Object(x.isPlainObject)(n)){var s=(null===(r=i.shapeMap)||void 0===r?void 0:r[t])||i.find(function(e){return e.get("name")===t});null===s||void 0===s||s.attr(n)}else o.attr(((e={})[t]=n,e))};for(var l in a)s(l)},updateLabel:function(t,e,n){var r,i,o=e.getContainer(),a=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,s=void 0===a?{}:a,l=this.itemType+"-label",u=o.shapeMap[l]||o.find(function(t){return t.get("className")===l}),c=this.itemType+"-label-bg",h=o.shapeMap[c]||o.find(function(t){return t.get("className")===c});if(u&&void 0===t.label&&(o.removeChild(u),delete o.shapeMap[l],h&&(o.removeChild(h),delete o.shapeMap[c])),t.label||""===t.label)if(u){(!n||"bbox|label"===n||"edge"===this.itemType&&"style"!==n)&&(s=Object(x.deepMix)(s,t.labelCfg));var d=this.getLabelStyleByPosition(t,s,o),f=null===(r=t.labelCfg)||void 0===r?void 0:r.style,p=M(M({},d),f),g=p.rotate;if(delete p.rotate,isNaN(g)||""===g)1!==(null===(i=u.getMatrix())||void 0===i?void 0:i[4])&&u.resetMatrix(),u.attr(p);else{var v=[1,0,0,0,1,0,0,0,1];v=yr(v,[["t",-p.x,-p.y],["r",g],["t",p.x,p.y]]),p.matrix=v,u.attr(p)}if(h)if(p.background){var m=this.getLabelBgStyleByPosition(u,s);h.attr(m)}else o.removeChild(h);else p.background&&((h=this.drawLabelBg(t,o,u)).set("classname",c),o.shapeMap[c]=h,u.toFront())}else{var y=this.drawLabel(t,o);y.set("className",l),o.shapeMap[l]=y}},afterUpdate:function(t,e){},setState:function(t,e,n){var r,i,o,a=n.get("keyShape");if(a&&!a.destroyed){var s=n.getType(),l=Object(x.isBoolean)(e)?t:"".concat(t,":").concat(e),u=this.getStateStyle(l,n),c=n.getStateStyle(l);if(c||u){var h=Object(x.mix)({},c||u),d=n.getContainer(),f={x:1,y:1,cx:1,cy:1,matrix:1};if("combo"===s&&(f.r=1,f.width=1,f.height=1),e){var p=function(t){var e,n=h[t];if(Object(x.isPlainObject)(n)&&!br.includes(t)){var r=(null===(o=d.shapeMap)||void 0===o?void 0:o[t])||d.find(function(e){return e.get("name")===t});null===r||void 0===r||r.attr(n)}else a.attr(((e={})[t]=n,e))};for(var g in h)p(g)}else{var v=dn(n.getCurrentStatesStyle()),m=n.getModel(),y=Object(x.mix)({},m.style,dn(n.getOriginStyle())),b=a.get("name"),_=a.attr(),w={};Object.keys(_).forEach(function(t){if("img"!==t){var e=_[t];e&&"object"===mr(e)?w[t]=Object(x.clone)(e):w[t]=e}});var S={},C=function(t){var e=h[t];if(Object(x.isPlainObject)(e)&&!br.includes(t)){var n=d.shapeMap[t]||d.find(function(e){return e.get("name")===t});if(n){var r=dn(n.attr());Object(x.each)(e,function(e,i){if(t===b&&w[i]&&!f[i]){delete w[i];var o=y[t][i]||xr[s][i];a.attr(i,o)}else if(r[i]||0===r[i]){delete r[i];var l=y[t][i]||xr[s][i];n.attr(i,l)}}),S[t]=r}}else if(w[t]&&!f[t]){delete w[t];var i=y[t]||(y[b]?y[b][t]:void 0)||xr[s][t];a.attr(t,i)}};for(var k in h)C(k);for(var g in b?S[b]=w:Object(x.mix)(S,w),v)if(!f[g]){var O=v[g];Object(x.isPlainObject)(O)&&!br.includes(g)||(b?(Object(x.mix)(y[b],((i={})[g]=O,i)),delete y[g]):Object(x.mix)(y,((r={})[g]=O,r)),delete v[g])}var M={};Object(x.deepMix)(M,y,S,v);var E=!1,T=function(t){var e,n,r=M[t];if(Object(x.isPlainObject)(r)&&!br.includes(t)){var i=d.shapeMap[t]||d.find(function(e){return e.get("name")===t});i&&(("text"===i.get("type")||i.get("labelRelated"))&&(delete r.x,delete r.y,delete r.matrix),t===b&&("combo"===s&&(delete r.r,delete r.width,delete r.height),E=!0),i.attr(r))}else if(!E){var o=r||xr[s][t];"combo"===s?b||a.attr(((e={})[t]=o,e)):a.attr(((n={})[t]=o,n))}};for(var A in M)T(A)}}}},getStateStyle:function(t,e){var n=e.getModel(),r=e.getType(),i=this.getOptions(n),o=i.stateStyles,a=i.style,s=void 0===a?{}:a,l=n.stateStyles?n.stateStyles[t]:o&&o[t];return"combo"===r?Object(x.clone)(l):Object(x.mix)({},s,l)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,n;return(null===t||void 0===t?void 0:t.anchorPoints)||(null===(e=this.getCustomConfig(t))||void 0===e?void 0:e.anchorPoints)||(null===(n=this.options)||void 0===n?void 0:n.anchorPoints)}},Sr={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:Ue.nodeLabel.offset,getSize:function(t){var e,n=(null===(e=this.mergeStyle)||void 0===e?void 0:e.size)||t.size||this.getOptions({}).size||Ue.defaultNode.size;return Object(x.isArray)(n)&&1===n.length&&(n=[n[0],n[0]]),Object(x.isArray)(n)||(n=[n,n]),n},getLabelStyleByPosition:function(t,e){var n=e.maxLength,r=t.label;n&&(r=sn(r,n));var i=e.position||this.labelPosition;if("center"===i)return{x:0,y:0,text:r,textBaseline:"middle",textAlign:"center"};var o=e.offset;Object(x.isNil)(o)&&(o=this.offset);var a,s=this.getSize(t);switch(i){case"top":a={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":a={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":a={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:a={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"}}return a.text=r,a},getLabelBgStyleByPosition:function(t,e){var n;if(!t)return{};var r=null===(n=e.style)||void 0===n?void 0:n.background;if(!r)return{};var i=t.getBBox(),o=yn(r.padding),a=i.width+o[1]+o[3],s=i.height+o[0]+o[2];return M(M({x:i.minX-o[3],y:i.minY-o[0]},r),{width:a,height:s})},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=i,i},updateLinkPoints:function(t,e){var n,r=(this.mergeStyle||this.getOptions(t)).linkPoints,i=e.shapeMap["link-point-left"]||e.find(function(t){return"link-point-left"===t.get("className")}),o=e.shapeMap["link-point-right"]||e.find(function(t){return"link-point-right"===t.get("className")}),a=e.shapeMap["link-point-top"]||e.find(function(t){return"link-point-top"===t.get("className")}),s=e.shapeMap["link-point-bottom"]||e.find(function(t){return"link-point-bottom"===t.get("className")});i&&(n=i.attr()),o&&!n&&(n=o.attr()),a&&!n&&(n=a.attr()),s&&!n&&(n=s.attr()),n||(n=r);var l=Object(x.mix)({},n,t.linkPoints),u=l.fill,c=l.stroke,h=l.lineWidth,d=l.size/2;d||(d=l.r);var f=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=f.left,g=f.right,v=f.top,m=f.bottom,y=this.getSize(t),b=y[0],_=y[1],w={r:d,fill:u,stroke:c,lineWidth:h};if(i)p||void 0===p?i.attr(M(M({},w),{x:-b/2,y:0})):(i.remove(),delete e.shapeMap["link-point-left"]);else if(p){var S="link-point-left";e.shapeMap[S]=e.addShape("circle",{attrs:M(M({},w),{x:-b/2,y:0}),className:S,name:S,isAnchorPoint:!0})}if(o)g||void 0===g||(o.remove(),delete e.shapeMap["link-point-right"]),o.attr(M(M({},w),{x:b/2,y:0}));else if(g){var C="link-point-right";e.shapeMap[C]=e.addShape("circle",{attrs:M(M({},w),{x:b/2,y:0}),className:C,name:C,isAnchorPoint:!0})}if(a)v||void 0===v||(a.remove(),delete e.shapeMap["link-point-top"]),a.attr(M(M({},w),{x:0,y:-_/2}));else if(v){var k="link-point-top";e.shapeMap[k]=e.addShape("circle",{attrs:M(M({},w),{x:0,y:-_/2}),className:k,name:k,isAnchorPoint:!0})}if(s)m||void 0===m?s.attr(M(M({},w),{x:0,y:_/2})):(s.remove(),delete e.shapeMap["link-point-bottom"]);else if(m){var O="link-point-bottom";e.shapeMap[O]=e.addShape("circle",{attrs:M(M({},w),{x:0,y:_/2}),className:O,name:O,isAnchorPoint:!0})}},updateShape:function(t,e,n,r,i){e.get("keyShape").attr(M({},n)),this.updateLabel(t,e,i),r&&this.updateIcon(t,e)},updateIcon:function(t,e){var n=this,r=e.getContainer(),i=(this.mergeStyle||this.getOptions(t)).icon,o=t.icon?t.icon:{show:void 0,text:void 0},a=o.show,s=o.text,l=r.shapeMap["".concat(this.type,"-icon")]||r.find(function(t){return t.get("name")==="".concat(n.type,"-icon")});if(l)if(a||void 0===a){var u=Object(x.mix)({},l.attr(),i),c=u.width,h=void 0===c?20:c,d=u.height,f=void 0===d?20:d;("iconfont"===u.fontFamily||u.hasOwnProperty("text"))&&(h=0,f=0),l.attr(M(M({},u),{x:-h/2,y:-f/2}))}else l.remove(),delete r.shapeMap["".concat(this.type,"-icon")];else if(a){var p="".concat(this.type,"-icon");if(s)r.shapeMap[p]=r.addShape("text",{attrs:M({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{h=i.width,f=i.height;r.shapeMap[p]=r.addShape("image",{attrs:M(M({},i),{x:-h/2,y:-f/2}),className:p,name:p})}var g=r.shapeMap["node-label"]||r.find(function(t){return"node-label"===t.get("name")});g&&g.toFront()}}},Cr=M(M({},wr),Sr);Rn.registerNode("single-node",Cr);var kr={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:Ue.defaultEdge.size,style:{x:0,y:0,stroke:Ue.defaultEdge.style.stroke,lineAppendWidth:Ue.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Ue.edgeLabel.style.fill,fontSize:Ue.edgeLabel.style.fontSize,fontFamily:Ue.windowFontFamily}},stateStyles:M({},Ue.edgeStateStyles)},getPath:function(t){var e=[];return Object(x.each)(t,function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=Object(x.mix)({},e,n,t.style),i=t.size||Ue.defaultEdge.size,o=(t=this.getPathPoints(t)).startPoint,a=t.endPoint,s=this.getControlPoints(t),l=[o];s&&(l=l.concat(s)),l.push(a);var u=this.getPath(l);return Object(x.mix)({},Ue.defaultEdge.style,{stroke:Ue.defaultEdge.color,lineWidth:i,path:u},r)},updateShapeStyle:function(t,e,n){var r,i=e.getContainer(),o=(null===(r=e.getKeyShape)||void 0===r?void 0:r.call(e))||i.shapeMap["edge-shape"],a=t.size,s=(t=this.getPathPoints(t)).startPoint,l=t.endPoint,u=this.getControlPoints(t),c=[s];u&&(c=c.concat(u)),c.push(l);var h=o.attr(),d=t.style||{};void 0===d.stroke&&(d.stroke=t.color);var f=t.sourceNode,p=t.targetNode,g={radius:d.radius};u||(g={source:f,target:p,offset:d.offset,radius:d.radius});var v=this.getPath(c,g),m={};"move"===n?m={path:v}:(h.endArrow&&!1===d.endArrow&&(t.style.endArrow={path:""}),h.startArrow&&!1===d.startArrow&&(t.style.startArrow={path:""}),void 0===(m=M({},t.style)).lineWidth&&(m.lineWidth=(Object(x.isNumber)(a)?a:null===a||void 0===a?void 0:a[0])||h.lineWidth),void 0===m.path&&(m.path=v),void 0===m.stroke&&(m.stroke=h.stroke||t.color)),o&&o.attr(m)},getLabelStyleByPosition:function(t,e,n){var r,i=e.position||this.labelPosition,o={},a=null===n||void 0===n?void 0:n.shapeMap["edge-shape"];r="start"===i?0:"end"===i?1:.5;var s,l=e.refX||this.refX,u=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return o.x=t.startPoint.x+l,o.y=t.startPoint.y+u,o.text=t.label,o;s=Object(x.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate;var c=en(a,r,l,u,s);return o.x=c.x,o.y=c.y,o.rotate=c.rotate,o.textAlign=this._getTextAlign(i,c.angle),o.text=t.label,o},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var n=t.getBBox(),r=e.style&&e.style.background;if(!r)return{};var i=r.padding,o=n.width+i[1]+i[3],a=n.height+i[0]+i[2],s=M(M({},r),{width:o,height:a,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]});return(Object(x.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate)&&(s.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),s},_getTextAlign:function(t,e){var n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:function(t){var e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}(t)),n):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return e.shapeMap["edge-shape"]=r,r},drawLabel:function(t,e){var n=this.options.labelCfg,r=Object(x.deepMix)({},n,t.labelCfg),i=this.getLabelStyle(t,r,e),o=i.rotate;delete i.rotate;var a=e.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(e.shapeMap["text-shape"]=a,isNaN(o)||""===o||a.rotateAtStart(o),i.background){var s=this.drawLabelBg(t,e,a,i,o),l=this.itemType+"-label-bg";s.set("classname",l),e.shapeMap[l]=s,a.toFront()}return a},drawLabelBg:function(t,e,n,r,i){var o=this.options.labelCfg,a=Object(x.deepMix)({},o,t.labelCfg),s=this.getLabelBgStyleByPosition(n,a),l=e.addShape("rect",{name:"text-bg-shape",attrs:s,labelRelated:!0});return e.shapeMap["text-bg-shape"]=l,l}},Or=M(M({},wr),kr);Rn.registerEdge("single-edge",Or),Rn.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Rn.registerEdge("spline",{getPath:function(t){return Yn(t)}},"single-edge"),Rn.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,r=t.startPoint,i=t.endPoint,o=(r.x+i.x)/2,a=(r.y+i.y)/2;if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=ce(r,n,i),r.x<=i.x&&r.y>i.y?this.clockwise=e.x>n.x?0:1:r.x<=i.x&&r.y<i.y?this.clockwise=e.x>n.x?1:0:r.x>i.x&&r.y<=i.y?this.clockwise=e.y<n.y?0:1:this.clockwise=e.y<n.y?1:0,(n.x-r.x)/(n.y-r.y)==(i.x-r.x)/(i.y-r.y))return[]}else{void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),Object(x.isArray)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),t.curveOffset<0?this.clockwise=0:this.clockwise=1;var s={x:i.x-r.x,y:i.y-r.y},l=Math.atan2(s.y,s.x);n={x:t.curveOffset*Math.cos(-Math.PI/2+l)+o,y:t.curveOffset*Math.sin(-Math.PI/2+l)+a},e=ce(r,n,i)}var u=he(r,e);return[{x:u,y:u}]},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),2===t.length?e.push(["L",t[1].x,t[1].y]):e.push(["A",t[1].x,t[1].y,0,0,this.clockwise,t[2].x,t[2].y]),e}},"single-edge"),Rn.registerEdge("quadratic",{curvePosition:.5,curveOffset:-20,getControlPoints:function(t){var e=t.controlPoints;if(!e||!e.length){var n=t.startPoint,r=t.endPoint;void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),Object(x.isArray)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),Object(x.isArray)(t.curvePosition)&&(t.curvePosition=t.curveOffset[0]),e=[Xn(n,r,t.curvePosition,t.curveOffset)]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["Q",t[1].x,t[1].y,t[2].x,t[2].y]),e}},"single-edge"),Rn.registerEdge("cubic",{curvePosition:[.5,.5],curveOffset:[-20,20],getControlPoints:function(t){var e=t.controlPoints;if(void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),Object(x.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),Object(x.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]),!e||!e.length||e.length<2){var n=t.startPoint,r=t.endPoint;e=[Xn(n,r,t.curvePosition[0],t.curveOffset[0]),Xn(n,r,t.curvePosition[1],t.curveOffset[1])]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y]),e}},"single-edge"),Rn.registerEdge("cubic-vertical",{curvePosition:[.5,.5],minCurveOffset:[0,0],curveOffset:void 0,getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.minCurveOffset&&(t.minCurveOffset=this.minCurveOffset),Object(x.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),Object(x.isNumber)(t.minCurveOffset)&&(t.minCurveOffset=[t.minCurveOffset,-t.minCurveOffset]),Object(x.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]);var r=n.y-e.y,i=[0,0];return t.curveOffset?i=t.curveOffset:Math.abs(r)<Math.abs(t.minCurveOffset[0])&&(i=t.minCurveOffset),[{x:e.x,y:e.y+r*this.curvePosition[0]+i[0]},{x:n.x,y:n.y-r*this.curvePosition[1]+i[1]}]}},"cubic"),Rn.registerEdge("cubic-horizontal",{curvePosition:[.5,.5],minCurveOffset:[0,0],curveOffset:void 0,getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.minCurveOffset&&(t.minCurveOffset=this.minCurveOffset),Object(x.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),Object(x.isNumber)(t.minCurveOffset)&&(t.minCurveOffset=[t.minCurveOffset,-t.minCurveOffset]),Object(x.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]);var r=n.x-e.x,i=[0,0];return t.curveOffset?i=t.curveOffset:Math.abs(r)<Math.abs(t.minCurveOffset[0])&&(i=t.minCurveOffset),[{x:e.x+r*this.curvePosition[0]+i[0],y:e.y},{x:n.x-r*this.curvePosition[1]+i[1],y:n.y}]}},"cubic"),Rn.registerEdge("loop",{getPathPoints:function(t){return tn(t)},getControlPoints:function(t){return t.controlPoints},afterDraw:function(t){t.controlPoints=void 0},afterUpdate:function(t){t.controlPoints=void 0}},"cubic");var Mr={itemType:"combo",shapeType:"single-combo",labelPosition:"top",refX:Ue.comboLabel.refX,refY:Ue.comboLabel.refY,options:{style:{stroke:Ue.defaultCombo.style.stroke,fill:Ue.defaultCombo.style.fill,lineWidth:Ue.defaultCombo.style.lineWidth},labelCfg:{style:{fill:Ue.comboLabel.style.fill,fontSize:Ue.comboLabel.style.fontSize,fontFamily:Ue.windowFontFamily}},stateStyles:M({},Ue.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},getSize:function(t){var e=Object(x.clone)(t.size||this.options.size||Ue.defaultCombo.size);return Object(x.isArray)(e)&&1===e.length&&(e=[e[0],e[0]]),Object(x.isArray)(e)||(e=[e,e]),e},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,r=t.style,i=t.padding||this.options.padding;Object(x.isArray)(i)&&(i=Math.max.apply(Math,i));var o=e.refX,a=e.refY;Object(x.isNil)(o)&&(o=this.refX),Object(x.isNil)(a)&&(a=this.refY);var s,l=this.getSize(t),u=(Math.max(r.r,l[0]/2)||l[0]/2)+i;switch(n){case"top":s={x:0,y:-u-a,textBaseline:"bottom",textAlign:"center"};break;case"bottom":s={x:0,y:u+a,textBaseline:"bottom",textAlign:"center"};break;case"left":s={x:-u+o,y:0,textAlign:"left"};break;case"center":s={x:0,y:0,text:t.label,textAlign:"center"};break;default:s={x:u+o,y:0,textAlign:"right"}}return s.text=t.label,s},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);return e.addShape(n,{attrs:r,draggable:!0,name:"combo-shape"})},updateCollapsedIcon:function(t,e,n){var r=t.collapsed,i=t.collapsedSubstituteIcon,o=void 0===i?{}:i,a=Object.assign({},this.options.collapsedSubstituteIcon,o),s=a.show,l=a.img,u=a.width,c=a.height,h=e.getContainer(),d=h.find(function(t){return"combo-collapsed-substitute-icon"===t.get("name")}),f=d&&!d.destroyed,p=e.get("keyShape");if(r&&s){if(f)d.show();else{var g={width:u||2*n.r||n.width,height:c||2*n.r||n.height};d=h.addShape("image",{attrs:M({img:l,x:-g.width/2,y:-g.height/2},g),name:"combo-collapsed-substitute-icon",draggable:!0})}p.hide()}else f&&(d.hide(),p.show())},updateShape:function(t,e,n){var r=this,i=e.get("keyShape");e.get("animate")&&(void 0===t.animate?this.options.animate:t.animate)&&i.animate?(t.collapsed||this.updateCollapsedIcon(t,e,n),i.animate(n,{duration:200,easing:"easeLinear",callback:function(){t.collapsed&&r.updateCollapsedIcon(t,e,n)}})):(i.attr(M({},n)),this.updateCollapsedIcon(t,e,n)),this.updateLabel(t,e)}},Er=M(M({},wr),Mr);Rn.registerCombo("single-combo",Er),Rn.registerCombo("circle",{options:{size:[Ue.defaultCombo.size[0],Ue.defaultCombo.size[0]],padding:Math.max.apply(Math,Ue.defaultCombo.padding),animate:!0,style:{stroke:Ue.defaultCombo.style.stroke,fill:Ue.defaultCombo.style.fill,lineWidth:Ue.defaultCombo.style.lineWidth},labelCfg:{style:{fill:Ue.comboLabel.style.fill,fontSize:Ue.comboLabel.style.fontSize},refX:0,refY:0},stateStyles:M({},Ue.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},shapeType:"circle",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return delete n.height,delete n.width,e.addShape("circle",{attrs:n,className:"circle-combo",name:"circle-combo",draggable:!0})},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;Object(x.isArray)(n)&&(n=Math.max.apply(Math,n));var r,i={stroke:t.color},o=Object(x.mix)({},e,i,t.style),a=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;if(a)r=Object(x.isNumber)(a)?a/2:a[0]/2;else{var s=this.getSize(t);r=!Object(x.isNumber)(o.r)||isNaN(o.r)?s[0]/2||Ue.defaultCombo.style.r:Math.max(o.r,s[0]/2)||s[0]/2}o.r=r+n;var l=M({x:0,y:0},o);return t.style?t.style.r=r:t.style={r:r},l},update:function(t,e){var n=this.getSize(t),r=t.padding||this.options.padding;Object(x.isArray)(r)&&(r=Math.max.apply(Math,r));var i,o=Object(x.clone)(t.style),a=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;i=a?Object(x.isNumber)(a)?a/2:a[0]/2:Math.max(o.r,n[0]/2)||n[0]/2,o.r=i+r;var s=e.get("sizeCache");s&&(s.r=o.r);var l={stroke:t.color},u=e.get("keyShape"),c=Object(x.mix)({},u.attr(),l,o);t.style?t.style.r=i:t.style={r:i},this.updateShape(t,e,c,!0)}},"single-combo"),Rn.registerCombo("rect",{options:{size:[40,5],padding:[25,20,15,20],animate:!0,style:{radius:0,stroke:Ue.defaultCombo.style.stroke,fill:Ue.defaultCombo.style.fill,lineWidth:Ue.defaultCombo.style.lineWidth},labelCfg:{style:{fill:Ue.comboLabel.style.fill,fontSize:Ue.comboLabel.style.fontSize,fontFamily:Ue.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:M({},Ue.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},shapeType:"rect",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("rect",{attrs:n,className:"rect-combo",name:"rect-combo",draggable:!0})},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,r=t.style,i=t.padding||this.options.padding;Object(x.isNumber)(i)&&(i=[i,i,i,i]);var o=e.refX,a=e.refY;Object(x.isNil)(o)&&(o=this.refX),Object(x.isNil)(a)&&(a=this.refY);var s,l=-r.width/2-i[3],u=r.width/2+i[1],c=-r.height/2-i[0],h=r.height/2+i[2];switch(n){case"top":s={x:l+o,y:c+a,textBaseline:"top",textAlign:"left"};break;case"bottom":s={x:0,y:h+a,textBaseline:"top",textAlign:"center"};break;case"left":s={x:l+a,y:0,textAlign:"left"};break;case"center":s={x:0,y:0,text:t.label,textAlign:"center"};break;case"top-center":s={x:0,y:c+a,textBaseline:"top",textAlign:"center"};break;default:s={x:u+o,y:0,textAlign:"right"}}return s.text=t.label,s},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;Object(x.isNumber)(n)&&(n=[n,n,n,n]);var r,i,o={stroke:t.color},a=Object(x.mix)({},e,o,t.style),s=this.getSize(t),l=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;l?Object(x.isNumber)(l)?(r=l,i=l):(r=l[0],i=l[1]):(r=!Object(x.isNumber)(a.width)||isNaN(a.width)?s[0]||Ue.defaultCombo.style.width:Math.max(a.width,s[0])||s[0],i=!Object(x.isNumber)(a.height)||isNaN(a.height)?s[1]||Ue.defaultCombo.style.height:Math.max(a.height,s[1])||s[1]);var u=-r/2-n[3],c=-i/2-n[0];a.width=r+n[1]+n[3],a.height=i+n[0]+n[2];var h=M({x:u,y:c},a);return t.style?(t.style.width=r,t.style.height=i):t.style={width:r,height:i},h},update:function(t,e){var n=this.getSize(t),r=t.padding||this.options.padding;Object(x.isNumber)(r)&&(r=[r,r,r,r]);var i,o,a=Object(x.clone)(t.style),s=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;s?Object(x.isNumber)(s)?(i=s,o=s):(i=s[0],o=s[1]):(i=Math.max(a.width,n[0])||n[0],o=Math.max(a.height,n[1])||n[1]),a.width=i+r[1]+r[3],a.height=o+r[0]+r[2];var l=e.get("sizeCache");l&&(l.width=a.width,l.height=a.height),a.x=-i/2-r[3],a.y=-o/2-r[0];var u={stroke:t.color},c=e.get("keyShape"),h=Object(x.mix)({},c.attr(),u,a);t.style?(t.style.width=i,t.style.height=o):t.style={width:i,height:o},this.updateShape(t,e,h,!1)}},"single-combo"),Rn.registerNode("simple-circle",{options:{size:Ue.defaultNode.size,style:{x:0,y:0,stroke:Ue.defaultNode.style.stroke,fill:Ue.defaultNode.style.fill,lineWidth:Ue.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ue.nodeLabel.style.fill,fontSize:Ue.nodeLabel.style.fontSize,fontFamily:Ue.windowFontFamily}},stateStyles:M({},Ue.nodeStateStyles)},shapeType:"simple-circle",labelPosition:"center",shapeMap:{},drawShape:function(t,e){var n=this.getShapeStyle(t),r="".concat(this.type,"-keyShape"),i=e.addShape("circle",{attrs:n,className:"".concat(this.type,"-keyShape"),name:r,draggable:!0});return e.shapeMap[r]=i,i},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.deepMix)({},e,n),i=this.getSize(t)[0]/2;return M({x:0,y:0,r:i},r)},update:function(t,e,n){var r=this.getSize(t),i={stroke:t.color,r:r[0]/2},o=e.get("keyShape"),a=Object(x.deepMix)({},o.attr(),i,t.style);this.updateShape(t,e,a,!0,n)}},"single-node"),Rn.registerNode("simple-rect",{options:{size:[100,30],style:{radius:0,stroke:Ue.defaultNode.style.stroke,fill:Ue.defaultNode.style.fill,lineWidth:Ue.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ue.nodeLabel.style.fill,fontSize:Ue.nodeLabel.style.fontSize,fontFamily:Ue.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:M({},Ue.nodeStateStyles)},shapeType:"simple-rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0})},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return M({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e,n){e.getContainer();var r=(this.mergeStyle||this.getOptions(t)).style,i=this.getSize(t),o=e.get("keyShape");t.size||(i[0]=o.attr("width")||r.width,i[1]=o.attr("height")||r.height);var a={stroke:t.color,x:-i[0]/2,y:-i[1]/2,width:i[0],height:i[1]},s=Object(x.mix)({},r,o.attr(),a);s=Object(x.mix)(s,t.style),this.updateShape(t,e,s,!1,n)}},"single-node"),Rn.registerNode("image",{options:{img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*eD7nT6tmYgAAAAAAAAAAAABkARQnAQ",size:200,labelCfg:{style:{fontFamily:Ue.windowFontFamily}},clipCfg:{show:!1,type:"circle",r:50,rx:50,ry:35,width:50,height:35,points:[[30,12],[12,30],[30,48],[48,30]],path:[["M",25,25],["L",50,25],["A",12.5,12.5,0,1,1,50,50],["A",12.5,12.5,0,1,0,50,50],["L",25,75],["Z"]],x:0,y:0}},shapeType:"image",labelPosition:"bottom",drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);delete r.fill;var i=e.addShape(n,{attrs:r,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return this.drawClip(t,i),i},drawClip:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).clipCfg;if(n.show){var r=n.type,i=n.x,o=n.y,a=n.style;if("circle"===r){var s=n.r;e.setClip({type:"circle",attrs:M({r:s,x:i,y:o},a)})}else if("rect"===r){var l=n.width,u=n.height,c=i-l/2,h=o-u/2;e.setClip({type:"rect",attrs:M({x:c,y:h,width:l,height:u},a)})}else if("ellipse"===r){var d=n.rx,f=n.ry;e.setClip({type:"ellipse",attrs:M({x:i,y:o,rx:d,ry:f},a)})}else if("polygon"===r){var p=n.points;e.setClip({type:"polygon",attrs:M({points:p},a)})}else if("path"===r){var g=n.path;e.setClip({type:"path",attrs:M({path:g},a)})}}},getShapeStyle:function(t){var e=this.mergeStyle||this.getOptions(t),n=e.style,r=e.img,i=this.getSize(t),o=i[0],a=i[1];return n&&(o=n.width||i[0],a=n.height||i[1]),M({x:-o/2,y:-a/2,width:o,height:a,img:r},n)},updateShapeStyle:function(t,e){var n=e.getContainer(),r="".concat(this.itemType,"-shape"),i=n.shapeMap[r]||n.find(function(t){return t.get("className")===r})||e.getKeyShape(),o=this.getShapeStyle(t);i&&!i.destroyed&&i.attr(o)}},"single-node");var Tr,Ar,Ir,Dr,Pr={triangle:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",0 L ").concat(r+e,",-").concat(t/2," L ").concat(r+e,",").concat(t/2," Z")},vee:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=20),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",0 L ").concat(r+e,",-").concat(t/2,"\n L ").concat(r+2*e/3,",0 L ").concat(r+e,",").concat(t/2," Z")},circle:function(t,e){return void 0===t&&(t=5),void 0===e&&(e=0),"M ".concat(2*e,", 0\n a ").concat(t,",").concat(t," 0 1,0 ").concat(2*t,",0\n a ").concat(t,",").concat(t," 0 1,0 ").concat(2*-t,",0")},rect:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=10),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",").concat(-t/2," \n L ").concat(r+e,",").concat(-t/2," \n L ").concat(r+e,",").concat(t/2," \n L ").concat(r,",").concat(t/2," Z")},diamond:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",0 \n L ").concat(r+e/2,",").concat(-t/2," \n L ").concat(r+e,",0 \n L ").concat(r+e/2,",").concat(t/2," Z")},triangleRect:function(t,e,n,r,i,o){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=15),void 0===r&&(r=3),void 0===i&&(i=5),void 0===o&&(o=0);var a=2*o,s=a+e+i;return"M ".concat(a,",0 L ").concat(a+e,",-").concat(t/2," L ").concat(a+e,",").concat(t/2," Z\n M ").concat(s,", -").concat(n/2,"\n L ").concat(s+r," -").concat(n/2,"\n L ").concat(s+r," ").concat(n/2,"\n L ").concat(s," ").concat(n/2,"\n Z")}},Lr={collapse:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0],["M",t-n+4,e],["L",t+n-4,e]]},expand:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0],["M",t-n+4,e],["L",t-n+2*n-4,e],["M",t-n+n,e-n+4],["L",t,e+n-4]]},upTriangle:function(t,e,n){var r=n*Math.cos(Math.PI/6),i=n*Math.sin(Math.PI/6);return[["M",t-r,e+i],["L",t+r,e+i],["L",t,e-n],["Z"]]},downTriangle:function(t,e,n){var r=n*Math.cos(Math.PI/6),i=n*Math.sin(Math.PI/6);return[["M",t-r,e-i],["L",t+r,e-i],["L",t,e+n],["Z"]]}},jr=Rn,Nr=["#5F95FF","#61DDAA","#65789B","#F6BD16","#7262FD","#78D3F8","#9661BC","#F6903D","#008685","#F08BB4"],Rr=function(t){return"force"===t||"g6force"===t||"gForce"===t||"force2"===t},Br=P.a.transform,Fr=M(M(M(M(M(M(M({},a),o),s),i),l),u),{transform:Br,mat3:P.b}),zr=function(){function t(t){this.graph=t,this.layoutCfg=t.get("layout")||{},this.layoutType=this.getLayoutType(),this.layoutMethods=[],this.initLayout()}return t.prototype.initLayout=function(){},t.prototype.getLayoutType=function(){return this.getLayoutCfgType(this.layoutCfg)},t.prototype.getLayoutCfgType=function(t){var e=t.type;if(e)return e;var n=t.pipes;return Array.isArray(n)?n.map(function(t){return(null===t||void 0===t?void 0:t.type)||""}):null},t.prototype.isLayoutTypeSame=function(t){var e=this.getLayoutCfgType(t),n=Array.isArray(this.layoutType),r=Array.isArray(e);return n&&r?this.layoutType.every(function(t,n){return t===e[n]}):!Array.isArray(e)&&!Array.isArray(this.layoutType)&&(null===t||void 0===t?void 0:t.type)===this.layoutType},t.prototype.refreshLayout=function(){var t=this.graph,e=this.layoutType,n=this.layoutCfg;if(t){var r=(void 0===n?{}:n).animate,i=void 0===r&&("force"===e||"force2"===e),o=Rr(e)&&(r||i);t.get("animate")&&!o?t.positionsAnimate("comboCombined"===e):t.refreshPositions("comboCombined"===e)}},t.prototype.changeLayout=function(t){var e=t.disableTriggerLayout,n=E(t,["disableTriggerLayout"]);this.layoutCfg=n,this.layoutType=n.type||this.layoutType,e||this.layout()},t.prototype.changeData=function(t){this.layout(t)},t.prototype.destoryLayoutMethods=function(){var t=this.layoutMethods,e=[];return null===t||void 0===t||t.forEach(function(t){var n,r=null===(n=t.getType)||void 0===n?void 0:n.call(t);r&&e.push(r),t.destroy()}),this.layoutMethods=[],e},t.prototype.destroyLayout=function(){this.destoryLayoutMethods();var t=this.graph;t&&!t.get("destroyed")&&t.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethods=void 0},t.prototype.setDataFromGraph=function(){for(var t,e=[],n=[],r=[],i=[],o=[],a=[],s=[],l=this.graph.getNodes(),u=this.graph.getEdges(),c=this.graph.getCombos(),h=l.length,d=0;d<h;d++){var f=l[d];if(f&&!f.destroyed){var p=f.getModel();f.isVisible()?e.push(p):n.push(p)}}var g=u.length;for(d=0;d<g;d++){var v=u[d];if(v&&!v.destroyed){p=v.getModel();v.isVisible()?p.isComboEdge?o.push(p):r.push(p):i.push(p)}}var m=c.length;for(d=0;d<m;d++){var y=c[d];if(!y.destroyed){p=y.getModel();y.isVisible()?a.push(p):s.push(p)}}return{nodes:e,hiddenNodes:n,edges:r,hiddenEdges:i,combos:a,hiddenCombos:s,comboEdges:o,vedges:null===(t=this.graph.get("vedges"))||void 0===t?void 0:t.map(function(t){return t.getModel()})}},t.prototype.relayout=function(t){var e=this,n=this.graph,r=this.layoutMethods,i=this.layoutCfg;if(n&&!n.get("destroyed")){var o=Promise.resolve();if(t){this.data=this.setDataFromGraph();var a=this.data.nodes;if(!a)return!1;o=this.initPositions(i.center,a)}n.emit("beforelayout"),null===r||void 0===r||r.forEach(function(t,n){var a=i[n]||i;o=o.then(function(){var t,o=e.execLayoutMethod(a,n);return n===r.length-1&&(null===(t=i.onAllLayoutEnd)||void 0===t||t.call(i)),o})})}},t.prototype.filterLayoutData=function(t,e){var n,r,i=t.nodes,o=t.edges,a=E(t,["nodes","edges"]);if(!i)return t;n=Object(x.isFunction)(null===e||void 0===e?void 0:e.nodesFilter)?e.nodesFilter:function(){return!0};var s=i.filter(n);if(Object(x.isFunction)(null===e||void 0===e?void 0:e.edgesFilter))r=e.edgesFilter;else{var l=s.reduce(function(t,e){return t[e.id]=!0,t},{});r=function(t){return l[t.source]&&l[t.target]}}return M({nodes:s,edges:o.filter(r)},a)},t.prototype.getLayoutBBox=function(t){var e=this.graph,n=Object(x.groupBy)(e.getNodes(),function(t){return t.getModel().layoutOrder}),r=Object.values(n).map(function(t){var e=wn(t);return e.size=[e.width,e.height],e});return{groupNodes:Object.values(Object(x.groupBy)(t,"layoutOrder")),layoutNodes:r}},t.prototype.layoutAnimate=function(){},t.prototype.moveToZero=function(){var t=this.graph.get("data").nodes;if(void 0!==t[0].x&&null!==t[0].x&&!xn(t[0].x)){for(var e=[0,0],n=t.length,r=0;r<n;r++){var i=t[r];e[0]+=i.x,e[1]+=i.y}e[0]/=t.length,e[1]/=t.length;for(r=0;r<n;r++){(i=t[r]).x-=e[0],i.y-=e[1]}}},t.prototype.initPositions=function(t,e){var n;return T(this,void 0,void 0,function(){var r,i,o;return A(this,function(a){return r=this.graph,(null===e||void 0===e?void 0:e.length)?(i=e.filter(function(t){return xn(t.x)||xn(t.y)}),(o=i?i.length:0)?[2,null===(n=this.initWithPreset)||void 0===n?void 0:n.call(this,function(){},function(){var e=.85*r.get("width"),n=.85*r.get("height"),a=Math.ceil(Math.sqrt(o)*(e/n)),s=e/(a-1),l=n/(Math.ceil(o/a)-1);isFinite(s)&&s||(s=0),isFinite(l)&&s||(l=0);for(var u=t[0]-e/2,c=t[1]-n/2,h=0;h<o;h++){var d=i[h];xn(+d.x)&&(!1,d.x=h%a*s+u),xn(+d.y)&&(!1,d.y=Math.floor(h/a)*l+c)}})]:[2]):[2,Promise.resolve()]})})},t.prototype.destroy=function(){this.graph=null,this.destoryLayoutMethods(),this.destroyed=!0},t}(),Vr=function(){return function(t){this.graph=t,this.destroyed=!1,this.initEvents()}}(),$r=jr.registerNode,Gr=jr.registerEdge,Hr=jr.registerCombo,Wr=C.registerBehavior,Ur=Ue,Yr=(jr.registerNode,jr.registerEdge,jr.registerCombo,C.registerBehavior,n("NtQ/")),Xr=n("S7HD"),qr=n("ghwr");function Zr(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}function Kr(t){Tr||(Tr=document.createElement("table"),Ar=document.createElement("tr"),Ir=/^\s*<(\w+|!)[^>]*>/,Dr={tr:document.createElement("tbody"),tbody:Tr,thead:Tr,tfoot:Tr,td:Ar,th:Ar,"*":document.createElement("div")});var e=Ir.test(t)&&RegExp.$1;e&&e in Dr||(e="*");var n=Dr[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function Jr(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}var Qr=n("8dI8"),ti=n.n(Qr),ei=n("Mv3v"),ni=n.n(ei),ri=2,ii=.16,oi=.05,ai=.05,si=.15,li=5,ui=4,ci=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function hi(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-ri*e:Math.round(t.h)+ri*e:n?Math.round(t.h)+ri*e:Math.round(t.h)-ri*e)<0?r+=360:r>=360&&(r-=360),r}function di(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-ii*e:e===ui?t.s+ii:t.s+oi*e)>1&&(r=1),n&&e===li&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function fi(t,e,n){var r;return(r=n?t.v+ai*e:t.v-si*e)>1&&(r=1),Number(r.toFixed(2))}function pi(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=ni()(t),i=li;i>0;i-=1){var o=r.toHsv(),a=ni()({h:hi(o,i,!0),s:di(o,i,!0),v:fi(o,i,!0)}).toHexString();n.push(a)}n.push(r.toHexString());for(var s=1;s<=ui;s+=1){var l=r.toHsv(),u=ni()({h:hi(l,s),s:di(l,s),v:fi(l,s)}).toHexString();n.push(u)}return"dark"===e.theme?ci.map(function(t){var r=t.index,i=t.opacity;return ni.a.mix(e.backgroundColor||"#141414",n[r],100*i).toHexString()}):n}var gi={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vi={},mi={};Object.keys(gi).forEach(function(t){vi[t]=pi(gi[t]),vi[t].primary=vi[t][5],mi[t]=pi(gi[t],{theme:"dark",backgroundColor:"#141414"}),mi[t].primary=mi[t][5]});vi.red,vi.volcano,vi.gold,vi.orange,vi.yellow,vi.lime,vi.green,vi.cyan,vi.blue,vi.geekblue,vi.purple,vi.magenta,vi.grey;var yi=function(t,e,n){var r=ti()(t),i=ti()(e);return ti()([(1-n)*r.red()+n*i.red(),(1-n)*r.green()+n*i.green(),(1-n)*r.blue()+n*i.blue()]).rgb()},bi=function(t,e,n,r){return void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)"),"default"===n?function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="rgb(150, 150, 150)");var r=yi(e,t,.05).rgb().toString(),i=yi(e,t,.1).rgb().toString(),o=yi(e,t,.2).rgb().toString(),a=yi(e,t,.4).rgb().toString(),s=yi(e,n,.02).rgb().toString(),l=yi(e,n,.05).rgb().toString(),u=yi(e,n,.1).rgb().toString(),c=yi(e,n,.2).rgb().toString(),h=yi(e,n,.3).rgb().toString(),d=pi(t,{theme:"default",backgroundColor:e}),f=ti()(t).hex().toLowerCase(),p=d.indexOf(f),g=t;return-1!==p&&(g=d[p+1]),{mainStroke:t,mainFill:i,activeStroke:t,activeFill:r,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:e,highlightStroke:g,highlightFill:o,disableStroke:h,disableFill:l,edgeMainStroke:h,edgeActiveStroke:t,edgeInactiveStroke:c,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:u,comboMainStroke:h,comboMainFill:s,comboActiveStroke:t,comboActiveFill:r,comboInactiveStroke:h,comboInactiveFill:s,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:g,comboHighlightFill:s,comboDisableStroke:c,comboDisableFill:l}}(t,e,"rgb(150, 150, 150)"):function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="#777");var r=yi(e,t,.2).rgb().toString(),i=yi(e,t,.3).rgb().toString(),o=yi(e,t,.6).rgb().toString(),a=yi(e,t,.8).rgb().toString(),s=yi(e,n,.2).rgb().toString(),l=yi(e,n,.25).rgb().toString(),u=yi(e,n,.3).rgb().toString(),c=yi(e,n,.4).rgb().toString(),h=yi(e,n,.5).rgb().toString(),d=pi(t,{theme:"dark",backgroundColor:e}),f=ti()(t).hex().toLowerCase(),p=d.indexOf(f),g=t;return-1!==p&&(g=d[p+1]),{mainStroke:a,mainFill:r,activeStroke:t,activeFill:i,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:r,highlightStroke:t,highlightFill:o,disableStroke:h,disableFill:l,edgeMainStroke:n,edgeActiveStroke:t,edgeInactiveStroke:n,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:u,comboMainStroke:c,comboMainFill:l,comboActiveStroke:t,comboActiveFill:s,comboInactiveStroke:c,comboInactiveFill:l,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:g,comboHighlightFill:l,comboDisableStroke:c,comboDisableFill:s}}(t,e,"#777")},_i=function(t,e,n,r){void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)");var i=[];return t.forEach(function(t){i.push(bi(t,e,n,r))}),i},xi=bi("rgb(95, 149, 255)","rgb(255, 255, 255)"),wi={version:"0.8.23",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:xi.mainStroke,fill:xi.mainFill},size:20,color:xi.mainStroke,linkPoints:{size:8,lineWidth:1,fill:xi.activeFill,stroke:xi.activeStroke}},nodeStateStyles:{active:{fill:xi.activeFill,stroke:xi.activeStroke,lineWidth:2,shadowColor:xi.mainStroke,shadowBlur:10},selected:{fill:xi.selectedFill,stroke:xi.selectedStroke,lineWidth:4,shadowColor:xi.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:xi.highlightFill,stroke:xi.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:xi.inactiveFill,stroke:xi.inactiveStroke,lineWidth:1},disable:{fill:xi.disableFill,stroke:xi.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:"rgb(0, 0, 0)",textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:xi.edgeMainStroke,lineAppendWidth:2},color:xi.edgeMainStroke},edgeStateStyles:{active:{stroke:xi.edgeActiveStroke,lineWidth:1},selected:{stroke:xi.edgeSelectedStroke,lineWidth:2,shadowColor:xi.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:xi.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:xi.edgeInactiveStroke,lineWidth:1},disable:{stroke:xi.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:"rgb(0, 0, 0)",textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:xi.comboMainFill,lineWidth:1,stroke:xi.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:xi.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:xi.comboActiveStroke,lineWidth:1,fill:xi.comboActiveFill},selected:{stroke:xi.comboSelectedStroke,lineWidth:2,fill:xi.comboSelectedFill,shadowColor:xi.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:xi.comboHighlightStroke,lineWidth:2,fill:xi.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:xi.comboInactiveStroke,fill:xi.comboInactiveFill,lineWidth:1},disable:{stroke:xi.comboDisableStroke,fill:xi.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},Si=function(t,e){var n;t.isGroup()&&e.isGroup()&&(null===(n=t.get("children"))||void 0===n||n.forEach(function(t,n){var r=e.get("children")[n];Si(t,r)}));var r=t.get("type"),i=e.get("type");if("image"===r&&"image"===i){var o=t.get("clipShape");o&&e.setClip({type:o.get("type"),attrs:o.attr()})}},Ci=Fr.cloneEvent,ki=Fr.isViewportChanged,Oi=function(t){function e(e){var n=t.call(this,e)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=e,n.destroyed=!1,n.initEvents(),n}return v(e,t),e.prototype.initEvents=function(){var t=this.graph,e=this.extendEvents,n=void 0===e?[]:e,r=t.get("canvas"),i=r.get("el"),o=Object(x.wrapBehavior)(this,"onCanvasEvents"),a=Object(x.wrapBehavior)(this,"onExtendEvents"),s=Object(x.wrapBehavior)(this,"onWheelEvent");r.off("*").on("*",o),this.canvasHandler=o,n.push(Zr(i,"wheel",s)),"undefined"!=typeof window&&(n.push(Zr(window,"keydown",a)),n.push(Zr(window,"keyup",a)),n.push(Zr(window,"focus",a))),this.resetHandler&&t.off("afterchangedata",this.resetHandler),this.resetHandler=Object(x.wrapBehavior)(this,"resetStatus"),t.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},e.prototype.onCanvasEvents=function(t){var n=this,r=this.graph,i=r.get("canvas"),o=t.target,a=t.type;switch(a){case"drag":this.onCanvasEvents(Object.assign({},t,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},t,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return n.mousedown=!1});break;case"click":if(!this.mousedown)return}t.canvasX=t.x,t.canvasY=t.y;var s={x:t.canvasX,y:t.canvasY},l=r.get("group").getMatrix();if(l||(l=[1,0,0,0,1,0,0,0,1]),ki(l)&&(s=r.getPointByClient(t.clientX,t.clientY)),t.x=s.x,t.y=s.y,t.currentTarget=r,o===i)return"mousemove"!==a&&"mouseleave"!==a||this.handleMouseMove(t,"canvas"),t.target=i,t.item=null,r.emit(a,t),void r.emit("canvas:".concat(a),t);var u=e.getItemRoot(o);if(u){var c=u.get("item");if(!c.destroyed){var h=c.getType();if(t.target=o,t.item=c,t.canvasX===t.x&&t.canvasY===t.y){var d=r.getCanvasByPoint(t.x,t.y);t.canvasX=d.x,t.canvasY=d.y}t.name&&!t.name.includes(":")?(r.emit("".concat(h,":").concat(a),t),r.emit(a,t)):t.name&&r.emit(t.name,t),"dragstart"===a&&(this.dragging=!0),"dragend"===a&&(this.dragging=!1),"mousemove"===a&&this.handleMouseMove(t,h)}}else r.emit(a,t)},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},e.prototype.onWheelEvent=function(t){Object(x.isNil)(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,e){var n=this.graph,r=this.preItem,i=n.get("canvas"),o=t.target===i?null:t.item;t=Ci(t),r&&r!==o&&!r.destroyed&&(t.item=r,this.emitCustomEvent(r.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(r.getType(),"dragleave",t)),o&&r!==o&&(t.item=o,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=o},e.prototype.emitCustomEvent=function(t,e,n){n.type=e,this.graph.emit("".concat(t,":").concat(e),n)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var t=this.graph,e=this.canvasHandler,n=this.extendEvents;t.get("canvas").off("*",e),Object(x.each)(n,function(t){t.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(Vr),Mi=n("9lWR"),Ei=n("Py8m"),Ti=n.n(Ei),Ai=Fr.traverseTree,Ii=function(t,e){return t?Object(x.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},Di=function(t,e){var n=[],r=[],i={},o=0;for(o=0;o<t.length;o++){var a=t[o];i[a.id]=o,n.push(a.x),n.push(a.y),n.push(0),n.push(0),r.push([])}for(o=0;o<e.length;o++){var s=e[o];r[i[s.source]].push(i[s.target]),r[i[s.target]].push(i[s.source])}var l=0;for(o=0;o<t.length;o++){var u=n.length,c=r[o],h=c.length;n[4*o+2]=u,n[4*o+3]=c.length,l=Math.max(l,c.length);for(var d=0;d<h;++d){var f=c[d];n.push(+f)}}for(;n.length%4!=0;)n.push(0);return{array:new Float32Array(n),maxEdgePerVetex:l}},Pi=function(t,e,n){var r=[],i=[],o={},a=0;for(a=0;a<t.length;a++){var s=t[a];o[s.id]=a,r.push(s.x),r.push(s.y),r.push(0),r.push(0),i.push([])}for(a=0;a<e.length;a++){var l=e[a];i[o[l.source]].push(o[l.target]),i[o[l.source]].push(n(l)),i[o[l.target]].push(o[l.source]),i[o[l.target]].push(n(l))}var u=0;for(a=0;a<t.length;a++){var c=r.length,h=i[a],d=h.length;r[4*a+2]=c,r[4*a+3]=d/2,u=Math.max(u,d/2);for(var f=0;f<d;++f){var p=h[f];r.push(+p)}}for(;r.length%4!=0;)r.push(0);return{array:new Float32Array(r),maxEdgePerVetex:u}},Li=function(t,e,n,r){var i=[],o=[],a={},s=0;for(s=0;s<t.length;s++){var l=t[s];a[l.id]=s,i.push(l.x),i.push(l.y),i.push(0),i.push(0),o.push([])}for(s=0;s<e.length;s++){var u=e[s];o[a[u.source]].push(a[u.target]),o[a[u.source]].push(n(u)),o[a[u.source]].push(r(u)),o[a[u.source]].push(0),o[a[u.target]].push(a[u.source]),o[a[u.target]].push(n(u)),o[a[u.target]].push(r(u)),o[a[u.target]].push(0)}var c=0;for(s=0;s<t.length;s++){var h=i.length,d=o[s],f=d.length;i[4*s+2]=h+1048576*f/4,i[4*s+3]=0,c=Math.max(c,f/4);for(var p=0;p<f;++p){var g=d[p];i.push(+g)}}for(;i.length%4!=0;)i.push(0);return{array:new Float32Array(i),maxEdgePerVetex:c}},ji=function(t,e){var n=[],r=t.length,i={};return e.forEach(function(e){t.forEach(function(t,o){if(void 0===i[e[t]]&&(i[e[t]]=Object.keys(i).length),n.push(i[e[t]]),o===r-1)for(;n.length%4!=0;)n.push(0)})}),{array:new Float32Array(n),count:Object.keys(i).length}},Ni=function(t){for(var e=[],n=t.length,r=t[0].length,i=function(r){t.forEach(function(t,i){if(e.push(t[r]),i===n-1)for(;e.length%4!=0;)e.push(0)})},o=0;o<r;o++)i(o);return new Float32Array(e)},Ri=function(t,e){var n={x:1/0,y:1/0},r={x:-1/0,y:-1/0},i="x",o="y";e&&["V","TB","BT"].indexOf(e)>=0&&(o="x",i="y");var a=0;Ai(t,function(t){return a++,t.x>r.x&&(r.x=t.x),t.x<n.x&&(n.x=t.x),t.y>r.y&&(r.y=t.y),t.y<n.y&&(n.y=t.y),!0});var s=2*Math.PI/a,l=r[o]-n[o];return 0===l?t:(Ai(t,function(e){var r=(e[o]-n[o])/l*(2*Math.PI-s)+s,a=Math.abs("x"===i?e.x-t.x:e.y-t.y);return e.x=a*Math.cos(r),e.y=a*Math.sin(r),!0}),t)},Bi=function(){return"undefined"==typeof window||"undefined"==typeof document?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var t=document.createElement("canvas");return!(!window.WebGLRenderingContext||!t.getContext("webgl")&&!t.getContext("experimental-webgl"))}catch(t){return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var t=document.createElement("div");return t.id="webgl-error-message",t.style.fontFamily="monospace",t.style.fontSize="13px",t.style.fontWeight="normal",t.style.textAlign="center",t.style.background="#fff",t.style.color="#000",t.style.padding="1.5em",t.style.width="400px",t.style.margin="5em auto 0",this.webgl||(t.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br />','Find out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.'].join("\n"):['Your browser does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br/>','Find out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.'].join("\n")),t},addGetWebGLMessage:function(t){var e=void 0!==(t=t||{}).parent?t.parent:document.body,n=void 0!==t.id?t.id:"oldie",r=Bi().getWebGLErrorMessage();r.id=n,e.appendChild(r)}}},Fi=function(){var t=navigator.userAgent.toLowerCase();return t.indexOf("firefox")>-1?"firefox":t.indexOf("safari")>-1?"safari":t.indexOf("opr")>-1?"opera":t.indexOf("chrome")>-1?"chrome":t.indexOf("trident")>-1?"ie 11":t.indexOf("ie")>-1?"ie":"unknown"},zi=m(m(m(m(m({},Fr),c),h),d),f),Vi=zi.radialLayout,$i=function(){function t(t){this.type=t.type,this.radial=t.radial,this.config=t}return t.prototype.init=function(t){var e=this;this.data=t,this.radial?this.layoutMethod=function(t){var n=Ti.a[e.type](t,e.config);return Vi(n),n}:this.layoutMethod=function(t){return Ti.a[e.type](t,e.config)}},t.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},t.prototype.layout=function(t){return this.init(t),this.execute()},t}();Object(Mi.registerLayout)("grid",Mi.GridLayout),Object(Mi.registerLayout)("random",Mi.RandomLayout),Object(Mi.registerLayout)("force",Mi.ForceLayout),Object(Mi.registerLayout)("circular",Mi.CircularLayout),Object(Mi.registerLayout)("dagre",Mi.DagreLayout),Object(Mi.registerLayout)("dagreCompound",Mi.DagreCompoundLayout),Object(Mi.registerLayout)("radial",Mi.RadialLayout),Object(Mi.registerLayout)("concentric",Mi.ConcentricLayout),Object(Mi.registerLayout)("mds",Mi.MDSLayout),Object(Mi.registerLayout)("fruchterman",Mi.FruchtermanLayout),Object(Mi.registerLayout)("fruchterman-gpu",Mi.FruchtermanGPULayout),Object(Mi.registerLayout)("gForce",Mi.GForceLayout),Object(Mi.registerLayout)("force2",Mi.Force2Layout),Object(Mi.registerLayout)("gForce-gpu",Mi.GForceGPULayout),Object(Mi.registerLayout)("comboForce",Mi.ComboForceLayout),Object(Mi.registerLayout)("comboCombined",Mi.ComboCombinedLayout),Object(Mi.registerLayout)("forceAtlas2",Mi.ForceAtlas2Layout);var Gi=function(t,e){e.isCustomLayout=!0,Mi.Layouts[t]=Object(Mi.registerLayout)(t,e)},Hi=function(){return function(t,e){var n=t.toString(),r=new Blob(["importScripts('".concat(e,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(r))}}(),Wi=function(t){return void 0===t&&(t="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js"),new Hi(function(){var t={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout),onmessage=function(e){(function(e){var n=e.data.type;return n===t.RUN||n===t.GPURUN})(e)&&function(e){var n=this;switch(e.data.type){case t.RUN:var r,i=e.data,o=i.nodes,a=i.edges,s=i.layoutCfg,l=(f=void 0===s?{}:s).type;if(!(u=layout.getLayoutByName(l))){this.postMessage({type:t.ERROR,message:"layout ".concat(l," not found")});break}f.onLayoutEnd=function(){n.postMessage({type:t.END,nodes:o}),null===r||void 0===r||r.destroy()},(r=new u(f)).init({nodes:o,edges:a}),r.execute();break;case t.GPURUN:var u,c=e.data,h=c.nodes,d=(a=c.edges,c.layoutCfg),f=void 0===d?{}:d,p=c.canvas;if(l=f.type,!(u=layout.getLayoutByName(l))){this.postMessage({type:t.ERROR,message:"layout ".concat(l," not found")});break}if("gpu"!==l.split("-")[1]){this.postMessage({type:t.ERROR,message:"layout ".concat(l," does not support GPU")});break}var g=new u(f);g.init({nodes:h,edges:a}),g.executeWithWorker(p,this)}}(e)}},t)},Ui="LAYOUT_RUN",Yi="LAYOUT_END",Xi="LAYOUT_ERROR",qi="LAYOUT_TICK",Zi="GPU_LAYOUT_RUN",Ki="GPU_LAYOUT_END";function Ji(t){"@babel/helpers - typeof";return(Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Qi=function(t){return setTimeout(t,16)},to=function(t){return clearTimeout(t)},eo=function(t){return("undefined"!=typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||Qi)(t)},no=function(t){return("undefined"!=typeof window&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||to)(t)},ro=["fruchterman","gForce"],io=["force","grid","circular"],oo=function(t){function e(e){var n=t.call(this,e)||this;return n.graph=e,n.layoutCfg=e.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return v(e,t),e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker?this.worker:("undefined"==typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Wi(this.layoutCfg.workerScriptURL),this.worker)},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(no(t.requestId),t.requestId=null),t.requestId2&&(no(t.requestId2),t.requestId2=null))},e.prototype.execLayoutMethod=function(t,e){var n=this;return new Promise(function(r,i){return b(n,void 0,void 0,function(){var n,o,a,s,l,u,c,h,d;return _(this,function(f){switch(f.label){case 0:if(!(n=this.graph)||n.get("destroyed"))return[2];o=t.type,t.onLayoutEnd=function(){n.emit("aftersublayout",{type:o}),r()},o&&this.isGPU&&(so(o)?o="".concat(o,"-gpu"):console.warn("The '".concat(o,"' layout does not support GPU calculation for now, it will run in CPU."))),Fr.isForce(o)?(a=t.onTick,s=t.animate,l=void 0===s&&("force"===o||"force2"===o),h=function(){a&&a(),(s||l)&&n.refreshPositions()},t.tick=h):"comboForce"!==o&&"comboCombined"!==o||(t.comboTrees=n.get("comboTrees")),!1;try{u=new Mi.Layouts[o](t),this.layoutMethods[e]&&this.layoutMethods[e].destroy(),this.layoutMethods[e]=u}catch(t){console.warn("The layout method: '".concat(o,"' does not exist! Please specify it first.")),i()}return u.enableTick&&(c=t.onTick,h=function(){c&&c(),n.refreshPositions()},u.tick=h),function(t,e){var n;if(!(null===(n=null===t||void 0===t?void 0:t.nodes)||void 0===n?void 0:n.length))return;t.nodes.forEach(function(t){t.layoutOrder=e})}(d=this.filterLayoutData(this.data,t),e),u.init(d),n.emit("beforesublayout",{type:o}),[4,u.execute()];case 1:return f.sent(),u.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2]}})})})},e.prototype.updateLayoutMethod=function(t,e){var n=this;return new Promise(function(r,i){return b(n,void 0,void 0,function(){var n,i,o,a,s,l,u;return _(this,function(c){switch(c.label){case 0:return n=this.graph,i=null===e||void 0===e?void 0:e.type,e.onLayoutEnd=function(){n.emit("aftersublayout",{type:i}),r()},Fr.isForce(i)&&(o=e.onTick,a=e.animate,s=void 0===a&&("force"===i||"force2"===i),l=function(){null===o||void 0===o||o(),(a||s)&&n.refreshPositions()},e.tick=l),u=this.filterLayoutData(this.data,e),t.init(u),t.updateCfg(e),n.emit("beforesublayout",{type:i}),[4,t.execute()];case 1:return c.sent(),t.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2]}})})})},e.prototype.layout=function(t){var e,n=this,r=this.graph;if(r&&!r.get("destroyed")){this.data=this.setDataFromGraph();var i=this.data,o=i.nodes,a=i.hiddenNodes;if(!o)return!1;var s=r.get("width"),l=r.get("height"),u={};Object.assign(u,{width:s,height:l,center:[s/2,l/2]},this.layoutCfg),this.layoutCfg=u;var c=u.type,h=!1;null===(e=this.layoutMethods)||void 0===e||e.forEach(function(t){var e;return h=!!(null===(e=t.nodes)||void 0===e?void 0:e.length)||h});var d=this.destoryLayoutMethods();r.emit("beforelayout");var f=Promise.resolve();h&&c&&1===(null===d||void 0===d?void 0:d.length)&&d[0]===c?this.tweakInit():f=this.initPositions(u.center,o),this.initPositions(u.center,a).then(),this.isGPU=lo(u,c);var p=u.onLayoutEnd,g=u.layoutEndFormatted,v=u.adjust;if(g||(u.layoutEndFormatted=!0,u.onAllLayoutEnd=function(){return b(n,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return p&&p(o),this.refreshLayout(),v&&u.pipes?[4,this.adjustPipesBox(this.data,v)]:[3,2];case 1:t.sent(),this.refreshLayout(),t.label=2;case 2:return r.emit("afterlayout"),[2]}})})}),this.stopWorker(),u.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var m=!1;return u.type?(m=!0,f=f.then(function(){return b(n,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,this.execLayoutMethod(u,0)];case 1:return[2,t.sent()]}})})})):u.pipes&&(m=!0,u.pipes.forEach(function(t,e){f=f.then(function(){return b(n,void 0,void 0,function(){return _(this,function(n){switch(n.label){case 0:return[4,this.execLayoutMethod(t,e)];case 1:return[2,n.sent()]}})})})})),m?f.then(function(){u.onAllLayoutEnd&&u.onAllLayoutEnd(),t&&t()}).catch(function(t){console.warn("graph layout failed,",t)}):(r.refreshPositions(),null===t||void 0===t||t()),!1}},e.prototype.tweakInit=function(){var t=this.data,e=this.graph,n=t.nodes,r=t.edges;if(null===n||void 0===n?void 0:n.length){var i={};n.forEach(function(t){var e=t.x,n=t.y;isNaN(e)||isNaN(n)||(i[t.id]={x:e,y:n},t.mass=t.mass||2)}),r.forEach(function(t){var e=t.source,n=t.target,r=i[e],o=i[n];!r&&o?i[e]={x:o.x+80*(Math.random()-.5),y:o.y+80*(Math.random()-.5)}:!o&&r&&(i[n]={x:r.x+80*(Math.random()-.5),y:r.y+80*(Math.random()-.5)})});var o=e.get("width"),a=e.get("height");n.forEach(function(t){var e=i[t.id]||{x:o/2+20*(Math.random()-.5),y:a/2+20*(Math.random()-.5)};t.x=e.x,t.y=e.y})}},e.prototype.initWithPreset=function(t,e){var n=this;return new Promise(function(r,i){return b(n,void 0,void 0,function(){var n,i,o,a,s,l,u;return _(this,function(c){switch(c.label){case 0:return i=(n=this).layoutCfg,o=n.data,(null===(a=i.preset)||void 0===a?void 0:a.type)&&Mi.Layouts[null===a||void 0===a?void 0:a.type]?(s=lo(a,a.type),l=s?"".concat(a.type,"-gpu"):a.type,u=new Mi.Layouts[l](a),delete i.preset,u.init(o),[4,u.execute()]):(null===e||void 0===e||e(),r(),[2,!1]);case 1:return c.sent(),null===t||void 0===t||t(),r(),[2,!0]}})})})},e.prototype.layoutWithWorker=function(t,e){var n=this,r=this.layoutCfg,i=this.graph,o=this.getWorker(),a=this.workerData;if(!o)return!1;a.requestId=null,a.requestId2=null,a.currentTick=null,a.currentTickData=null,i.emit("beforelayout");var s=Promise.resolve(),l=!1;if(r.type)l=!0,s=s.then(function(){return n.runWebworker(o,t,r)});else if(r.pipes){l=!0;for(var u=function(e){s=s.then(function(){return n.runWebworker(o,t,e)})},c=0,h=r.pipes;c<h.length;c++){u(h[c])}}return l&&s.then(function(){r.onAllLayoutEnd&&r.onAllLayoutEnd(),null===e||void 0===e||e()}).catch(function(t){console.error("layout failed",t)}),!0},e.prototype.runWebworker=function(t,e,n){var r=this,i=this.isGPU,o=this.filterLayoutData(e,n),a=o.nodes,s=o.edges,l=document.createElement("canvas"),u=i&&"undefined"!=typeof window&&window.navigator&&!navigator.gpu&&"OffscreenCanvas"in window&&"transferControlToOffscreen"in l,c=function(t,e){var n={};if(t&&"object"===Ji(t))return Object.keys(t).forEach(function(r){t.hasOwnProperty(r)&&e(t[r])&&(n[r]=t[r])}),n;return t}(n,function(t){return"function"!=typeof t});if(u){var h=l.transferControlToOffscreen();c.type="".concat(c.type,"-gpu"),t.postMessage({type:Zi,nodes:a,edges:s,layoutCfg:c,canvas:h},[h])}else t.postMessage({type:Ui,nodes:a,edges:s,layoutCfg:c});return new Promise(function(e,i){t.onmessage=function(t){r.handleWorkerMessage(e,i,t,o,n)}})},e.prototype.handleWorkerMessage=function(t,e,n,r,i){var o=this.graph,a=this.workerData,s=n.data,l=function(){i.onTick&&i.onTick()};switch(s.type){case qi:a.currentTick=s.currentTick,a.currentTickData=s,a.requestId||(a.requestId=eo(function(){ao(r,s),o.refreshPositions(),l(),s.currentTick===s.totalTicks?t():a.currentTick===s.totalTicks&&(a.requestId2=eo(function(){ao(r,a.currentTickData),o.refreshPositions(),a.requestId2=null,l(),t()})),a.requestId=null}));break;case Yi:null==a.currentTick&&(ao(r,s),t());break;case Ki:null==a.currentTick&&(!function(t,e){for(var n=t.nodes,r=e.vertexEdgeData,i=n.length,o=0;o<i;o++){var a=n[o],s=r[4*o],l=r[4*o+1];a.x=s,a.y=l}}(r,s),t());break;case Xi:console.warn("Web-Worker layout error!",s.message),e();break;default:e()}},e.prototype.updateLayoutCfg=function(t){var e=this,n=this.graph,r=this.layoutMethods;if(n&&!n.get("destroyed")){var i=t.disableTriggerLayout,o=y(t,["disableTriggerLayout"]),a=Object(x.mix)({},this.layoutCfg,o);if(this.layoutCfg=a,!i)if(null===r||void 0===r?void 0:r.length){if(this.data=this.setDataFromGraph(),this.stopWorker(),!o.workerEnabled||!this.layoutWithWorker(this.data,null)){n.emit("beforelayout");var s=Promise.resolve(),l=!1;1===(null===r||void 0===r?void 0:r.length)?(l=!0,s=s.then(function(){return b(e,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,this.updateLayoutMethod(r[0],a)];case 1:return[2,t.sent()]}})})})):(null===r||void 0===r?void 0:r.length)&&(l=!0,r.forEach(function(t,n){var r=a.pipes[n];s=s.then(function(){return b(e,void 0,void 0,function(){return _(this,function(e){switch(e.label){case 0:return[4,this.updateLayoutMethod(t,r)];case 1:return[2,e.sent()]}})})})})),l&&s.then(function(){a.onAllLayoutEnd&&a.onAllLayoutEnd()}).catch(function(t){console.warn("layout failed",t)})}}else this.layout()}},e.prototype.adjustPipesBox=function(t,e){var n=this;return new Promise(function(r){var i=t.nodes;(null===i||void 0===i?void 0:i.length)||r(),io.includes(e)||(console.warn("The adjust type ".concat(e," is not supported yet, please assign it with 'force', 'grid', or 'circular'.")),r());var o={center:n.layoutCfg.center,nodeSize:function(t){return Math.max(t.height,t.width)},preventOverlap:!0,onLayoutEnd:function(){}},a=n.getLayoutBBox(i),s=a.groupNodes,l=a.layoutNodes,u=Object(x.clone)(l);o.onLayoutEnd=function(){null===l||void 0===l||l.forEach(function(t,e){var n,r,i,o=t.x-(null===(n=u[e])||void 0===n?void 0:n.x),a=t.y-(null===(r=u[e])||void 0===r?void 0:r.y);null===(i=s[e])||void 0===i||i.forEach(function(t){t.x+=o,t.y+=a})}),r()},new Mi.Layouts[e](o).layout({nodes:l})})},e.prototype.destroy=function(){this.destoryLayoutMethods();var t=this.worker;t&&(t.terminate(),this.worker=null),this.destroyed=!0,this.graph.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethods=void 0,this.graph=null},e}(zr);function ao(t,e){for(var n=t.nodes,r=e.nodes,i=n.length,o=0;o<i;o++){var a=n[o];a.x=r[o].x,a.y=r[o].y}}function so(t){return ro.includes(t)}function lo(t,e){var n=e;e&&"gpu"===e.split("-")[1]&&(n=e.split("-")[0],t.gpuEnabled=!0);var r=!1;return t.gpuEnabled&&(r=!0,Bi().webgl||(console.warn("Your browser does not support webGL or GPGPU. The layout will run in CPU."),r=!1)),r&&!so(n)&&(console.warn("The '".concat(n,"' layout does not support GPU calculation for now, it will run in CPU.")),r=!1),r}var uo=P.a.transform,co=function(t){function e(e){var n=t.call(this,e)||this,r=n.get("defaultNode");return r||n.set("defaultNode",{type:"circle"}),r.type||(r.type="circle",n.set("defaultNode",r)),n.destroyed=!1,n}return v(e,t),e.prototype.initLayoutController=function(){var t=new oo(this);this.set({layoutController:t})},e.prototype.initEventController=function(){var t=new Oi(this);this.set({eventController:t})},e.prototype.initCanvas=function(){var t=this.get("container");if("string"==typeof t&&(t=document.getElementById(t),this.set("container",t)),!t)throw new Error("invalid container");var e,n=t.clientWidth,r=t.clientHeight,i=this.get("width")||n,o=this.get("height")||r;if(this.get("width")||this.get("height")||(this.set("width",n),this.set("height",r)),"svg"===this.get("renderer"))e=new qr.Canvas({container:t,width:i,height:o});else{var a={container:t,width:i,height:o},s=this.get("pixelRatio");s&&(a.pixelRatio=s,window.devicePixelRatio=s),e=new Xr.Canvas(a)}this.set("canvas",e)},e.prototype.initPlugins=function(){var t=this;Object(x.each)(t.get("plugins"),function(e){!e.destroyed&&e.initPlugin&&e.initPlugin(t)})},e.prototype.downloadImageWatermark=function(t,e,n,r){return b(this,void 0,void 0,function(){var i,o,a;return _(this,function(s){switch(s.label){case 0:return i=t.style.backgroundImage,o=i.slice(5,i.length-2),(a=new Image).src=o,[4,new Promise(function(t){a.onload=function(){var i=e.createPattern(a,"repeat");e.rect(0,0,n,r),e.fillStyle=i,e.fill(),t("")}})];case 1:return s.sent(),[2]}})})},e.prototype.asyncToDataUrl=function(t,e,n,r,i,o){var a=this,s=document.querySelector(".g6-graph-watermarker"),l=this.get("canvas"),u=l.getRenderer(),c=o||l.get("el"),h="";t||(t="image/png"),setTimeout(function(){return b(a,void 0,void 0,function(){var o,a,l,d,f,p,g,v,m,y;return _(this,function(b){switch(b.label){case 0:return"svg"!==u?[3,1]:(o=c.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(l=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a)).replaceChild(o,l.documentElement),d=(new XMLSerializer).serializeToString(l),h="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(d)),[3,4]);case 1:return f=void 0,p=c.getContext("2d"),g=r||this.get("width"),v=i||this.get("height"),m=void 0,s?[4,this.downloadImageWatermark(s,p,g,v)]:[3,3];case 2:b.sent(),b.label=3;case 3:if(e){y="undefined"!=typeof window?window.devicePixelRatio:1;try{f=p.getImageData(0,0,g*y,v*y),m=p.globalCompositeOperation,p.globalCompositeOperation="destination-over",p.fillStyle=e,p.fillRect(0,0,g,v)}catch(t){console.error("Download image failed. Out of memory at ImageData creation")}}h=c.toDataURL(t),e&&(p.clearRect(0,0,g,v),p.putImageData(f,0,0),p.globalCompositeOperation=m),b.label=4;case 4:return n&&n(h),[2]}})})},16)},e.prototype.toDataURL=function(t,e){var n=this.get("canvas"),r=n.getRenderer(),i=n.get("el");t||(t="image/png");var o="";if("svg"===r){var a=i.cloneNode(!0),s=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),l=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s);l.replaceChild(a,l.documentElement);var u=(new XMLSerializer).serializeToString(l);o="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(u))}else{var c=void 0,h=i.getContext("2d"),d=Math.max(this.get("width"),500),f=Math.max(this.get("height"),500),p=void 0;if(e){var g="undefined"!=typeof window&&window.devicePixelRatio||1;try{c=h.getImageData(0,0,d*g,f*g),p=h.globalCompositeOperation,h.globalCompositeOperation="destination-over",h.fillStyle=e,h.fillRect(0,0,d,f)}catch(t){console.error("Download image failed. Out of memory at ImageData creation")}}o=i.toDataURL(t),e&&(h.clearRect(0,0,d,f),h.putImageData(c,0,0),h.globalCompositeOperation=p)}return o},e.prototype.toFullDataURL=function(t,e,n){var r=this.get("group").getCanvasBBox(),i=r.height,o=r.width,a=this.get("renderer"),s=Kr('<div id="virtual-image"></div>'),l=n?n.backgroundColor:void 0,u=n?n.padding:void 0;u?Object(x.isNumber)(u)&&(u=[u,u,u,u]):u=[0,0,0,0];var c=i+u[0]+u[2],h=o+u[1]+u[3],d={container:s,height:c,width:h,quickHit:!0},f="svg"===a?new qr.Canvas(d):new Xr.Canvas(d),p=this.get("group").clone(),g=Object(x.clone)(p.getMatrix());g||(g=[1,0,0,0,1,0,0,0,1]);var v=(r.maxX+r.minX)/2,m=(r.maxY+r.minY)/2;g=uo(g,[["t",-v,-m],["t",o/2+u[3],i/2+u[0]]]),p.resetMatrix(),p.setMatrix(g),f.add(p);var y=f.get("el"),b="";e||(e="image/png"),setTimeout(function(){if("svg"===a){var n=y.cloneNode(!0),r=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),i=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",r);i.replaceChild(n,i.documentElement);var o=(new XMLSerializer).serializeToString(i);b="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(o))}else{var s=void 0,u=y.getContext("2d"),d=void 0;if(l){var f="undefined"!=typeof window?window.devicePixelRatio:1;try{s=u.getImageData(0,0,h*f,c*f),d=u.globalCompositeOperation,u.globalCompositeOperation="destination-over",u.fillStyle=l,u.fillRect(0,0,h,c)}catch(t){console.error("Download image failed. Out of memory at ImageData creation")}}b=y.toDataURL(e),l&&(u.clearRect(0,0,h,c),u.putImageData(s,0,0),u.globalCompositeOperation=d)}t&&t(b)},16)},e.prototype.downloadFullImage=function(t,e,n){var r=this,i=this.get("group").getCanvasBBox(),o=i.height,a=i.width,s=this.get("renderer"),l=Kr('<div id="virtual-image"></div>'),u=document.querySelector(".g6-graph-watermarker"),c=n?n.backgroundColor:void 0,h=n?n.padding:void 0;h?Object(x.isNumber)(h)&&(h=[h,h,h,h]):h=[0,0,0,0];var d=o+h[0]+h[2],f=a+h[1]+h[3];if(u){var p=this.get("graphWaterMarker").cfg||{},g=p.width,v=p.height;d=Math.ceil(d/v)*v,f=Math.ceil(f/g)*g}var m,y,b={container:l,height:d,width:f},_="svg"===s?new qr.Canvas(b):new Xr.Canvas(b),w=this.get("group"),S=(y=(m=w).clone(),Si(m,y),y),C=Object(x.clone)(S.getMatrix());C||(C=[1,0,0,0,1,0,0,0,1]);var k=(i.maxX+i.minX)/2,O=(i.maxY+i.minY)/2;C=uo(C,[["t",-k,-O],["t",a/2+h[3],o/2+h[0]]]),S.resetMatrix(),S.setMatrix(C),_.add(S);var M=_.get("el");e||(e="image/png"),this.asyncToDataUrl(e,c,function(n){var i=document.createElement("a"),o=(t||"graph")+("svg"===s?".svg":".".concat(e.split("/")[1]));r.dataURLToImage(n,s,i,o);var a=document.createEvent("MouseEvents");a.initEvent("click",!1,!1),i.dispatchEvent(a)},f,d,M)},e.prototype.downloadImage=function(t,e,n){var r=this;this.stopAnimate();var i=this.get("canvas").getRenderer();e||(e="image/png");var o=(t||"graph")+("svg"===i?".svg":".".concat(e.split("/")[1])),a=document.createElement("a");this.asyncToDataUrl(e,n,function(t){r.dataURLToImage(t,i,a,o);var e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),a.dispatchEvent(e)})},e.prototype.dataURLToImage=function(t,e,n,r){if(t&&"data:"!==t){if("undefined"!=typeof window)if(window.Blob&&window.URL&&"svg"!==e){var i=t.split(","),o="";if(i&&i.length>0){var a=i[0].match(/:(.*?);/);a&&a.length>=2&&(o=a[1])}for(var s=atob(i[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var c=new Blob([u],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(c,r):n.addEventListener("click",function(){n.download=r,n.href=window.URL.createObjectURL(c)})}else n.addEventListener("click",function(){n.download=r,n.href=t})}else console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items")},e.prototype.addPlugin=function(t){t.destroyed||(this.get("plugins").push(t),t.initPlugin(this))},e.prototype.removePlugin=function(t){var e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))},e.prototype.setImageWaterMarker=function(t,e){void 0===t&&(t=wi.waterMarkerImage);var n=this.get("container");Object(x.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=Object(x.deepMix)({},wi.imageWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,l=i.image;if(!t){var u=s?n:document.querySelector(".g6-graph-watermarker");return u&&(u.style.cssText=void 0),void(r&&r.clear())}if(r)r.clear();else{var c={container:n,width:o,height:a,capture:!1},h=this.get("pixelRatio");h&&(c.pixelRatio=h,window.devicePixelRatio=h),r=new Xr.Canvas(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),f=l.rotate,p=l.x,g=l.y;d.rotate(-f*Math.PI/180);var v=new Image;v.crossOrigin="anonymous",v.src=t,v.onload=function(){if(d.drawImage(v,p,g,l.width,l.height),d.rotate(f*Math.PI/180),s)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var t=document.querySelector(".g6-graph-watermarker");t||((t=document.createElement("div")).className="g6-graph-watermarker"),t.className="g6-graph-watermarker",r.destroyed||(t.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(t))}}},e.prototype.setTextWaterMarker=function(t,e){var n=this.get("container");Object(x.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=Object(x.deepMix)({},wi.textWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,l=i.text;if(!(null===t||void 0===t?void 0:t.length)){var u=s?n:document.querySelector(".g6-graph-watermarker");return u&&(u.style.cssText=void 0),void(r&&r.clear())}if(r)r.clear();else{var c={container:n,width:o,height:a,capture:!1},h=this.get("pixelRatio");h&&(c.pixelRatio=h,window.devicePixelRatio=h),r=new Xr.Canvas(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),f=l.rotate,p=l.fill,g=l.fontFamily,v=l.fontSize,m=l.baseline,y=l.x,b=l.y,_=l.lineHeight;d.rotate(-f*Math.PI/180),d.font="".concat(v,"px ").concat(g),d.fillStyle=p,d.textBaseline=m;for(var w=Object(x.isString)(t)?[t]:t,S=w.length-1;S>=0;S--)d.fillText(w[S],y,b+S*_);if(d.rotate(f*Math.PI/180),s)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var C=document.querySelector(".g6-graph-watermarker");C||((C=document.createElement("div")).className="g6-graph-watermarker"),C.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(C)}},e.prototype.destroy=function(){var e,n,r,i;Object(x.each)(this.get("plugins"),function(t){t.destroyPlugin()});var o=this.get("tooltips");if(o)for(var a=0;a<o.length;a++){var s=o[a];if(s){var l=s.parentElement;l&&l.removeChild(s)}}null===(e=this.get("eventController"))||void 0===e||e.destroy(),null===(n=this.get("layoutController"))||void 0===n||n.destroy(),null===(r=this.get("graphWaterMarker"))||void 0===r||r.destroy(),null===(i=document.querySelector(".g6-graph-watermarker"))||void 0===i||i.remove(),t.prototype.destroy.call(this)},e}(vr);function ho(t){"@babel/helpers - typeof";return(ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fo(t){try{return structuredClone(t)}catch(e){return function t(e,n){if(void 0===n&&(n=new WeakMap),null===e)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if("object"!==ho(e))return e;if(n.get(e))return n.get(e);var r=Array.isArray(e)?[]:{};for(var i in n.set(e,r),e)e.hasOwnProperty(i)&&void 0!==e[i]&&(r[i]=t(e[i],n));return r}(t)}}var po,go=zi.radialLayout,vo=zi.traverseTree,mo=function(t){function e(e){var n=t.call(this,e)||this;return n.layoutAnimating=!1,n.set("removeList",[]),n.set("layoutMethod",n.getLayout()),n}return v(e,t),e.prototype.getLayout=function(){var t=this.get("layout");return t?"function"==typeof t?t:(t.type||(t.type="dendrogram"),t.direction||(t.direction="indented"===t.type?"LR":"TB"),t.radial?function(e){var n=Ti.a[t.type](e,t);return go(n),n}:function(e){return Ti.a[t.type](e,t)}):null},e.indexOfChild=function(t,e){var n=-1;return Object(x.each)(t,function(t,r){if(e===t.id)return n=r,!1}),n},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.animate=!0,e},e.prototype.innerAddChild=function(t,e,n){var r=this,i=t.data;i&&(i.x=t.x,i.y=t.y,i.depth=t.depth);var o=r.addItem("node",i,!1);if(e){if(o.set("parent",e),n){var a=e.get("originAttrs");if(a)o.set("originAttrs",a);else{var s=e.getModel();o.set("originAttrs",{x:s.x,y:s.y})}}var l=e.get("children");l?l.push(o):e.set("children",[o]),r.addItem("edge",{source:e.get("id"),target:o.get("id"),id:"".concat(e.get("id"),":").concat(o.get("id"))},!1)}return Object(x.each)(t.children||[],function(t){r.innerAddChild(t,o,n)}),r.emit("afteraddchild",{item:o,parent:e}),o},e.prototype.innerUpdateChild=function(t,n,r){var i=this,o=i.findById(t.id);if(o){Object(x.each)(t.children||[],function(t){i.innerUpdateChild(t,o,r)});var a,s,l=o.get("children");if(l)if(l.length>0)for(var u=l.length-1;u>=0;u--){var c=l[u].getModel();-1===e.indexOfChild(t.children||[],c.id)&&(i.innerRemoveChild(c.id,{x:t.x,y:t.y},r),l.splice(u,1))}o.get("originAttrs")&&(a=o.get("originAttrs").x,s=o.get("originAttrs").y);var h=o.getModel();r&&o.set("originAttrs",{x:h.x,y:h.y}),o.set("model",Object.assign(h,t.data)),a===t.x&&s===t.y||o.updatePosition({x:t.x,y:t.y})}else i.innerAddChild(t,n,r)},e.prototype.innerRemoveChild=function(t,e,n){var r=this,i=r.findById(t);if(i)if(Object(x.each)(i.get("children"),function(t){r.innerRemoveChild(t.getModel().id,e,n)}),n){var o=i.getModel();i.set("to",e),i.set("originAttrs",{x:o.x,y:o.y}),r.get("removeList").push(i)}else r.removeItem(i,!1)},e.prototype.changeData=function(t,e){void 0===e&&(e=!0);var n=this;this.getNodes().map(function(t){return n.clearItemStates(t)}),this.getEdges().map(function(t){return n.clearItemStates(t)}),e&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:t||n.get("data")}),t?(n.data(t),n.render(!1)):n.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");this.updateLayout(t)},e.prototype.updateLayout=function(t,e,n,r){void 0===r&&(r=!0);if(t){if(r&&this.get("enabledStack")&&this.pushStack("layout",{before:this.get("layout"),after:t}),this.set("layout",t),this.set("layoutMethod",this.getLayout()),this.layout(),e){var i=n;i||(i="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),i=this.getPointByCanvas(i.x,i.y);var o=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];i.x=i.x*o[0]+o[6],i.y=i.y*o[0]+o[7];var a=this.getGroup().getCanvasBBox(),s=a.minX,l=a.maxX,u=a.minY,c={x:(s+l)/2,y:(u+a.maxY)/2};"begin"===e&&(c.x=s,c.y=u),this.translate(i.x-c.x,i.y-c.y)}}else console.warn("layout cannot be null")},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");this.layout(t)},e.prototype.layout=function(t){var e=this,n=this.get("data"),r=this.get("layoutMethod"),i=this.get("layout"),o=n;if(null===i||void 0===i?void 0:i.excludeInvisibles){n=Object(x.clone)(this.get("data"));var a={};vo(n,function(t){var n=t.children;if(!(null===n||void 0===n?void 0:n.length))return!0;for(var r=n.length-1;r>=0;r--){var i=e.findById(n[r].id);(i?!i.isVisible():!1===n[r].visible)&&(a[t.id]=a[t.id]||[],a[t.id].push({idx:r,child:n.splice(r,1)[0]}))}}),o=r?r(n,this.get("layout")):n,vo(o,function(t){var e=a[t.id];if(null===e||void 0===e?void 0:e.length)for(var n=e.length-1;n>=0;n--){var r=e[n],i=r.idx,o=r.child;t.children.splice(i,0,o)}})}else o=r?r(n,this.get("layout")):n;var s=this.get("animate");(this.emit("beforerefreshlayout",{data:n,layoutData:o}),this.emit("beforelayout"),this.innerUpdateChild(o,void 0,s),t)&&this.get("viewController").fitView();s?this.layoutAnimate(o):(this.refresh(),this.paint()),this.emit("afterrefreshlayout",{data:n,layoutData:o}),this.emit("afterlayout")},e.prototype.addChild=function(t,e,n){void 0===n&&(n=!0);this.emit("beforeaddchild",{model:t,parent:e}),Object(x.isString)(e)||(e=e.get("id"));var r=this.findDataById(e);r&&(r.children||(r.children=[]),r.children.push(t),this.findById(e).refresh(),this.changeData(void 0,n))},e.prototype.updateChildren=function(t,e,n){void 0===n&&(n=!0);var r=this.findById(e);e&&r?(this.findDataById(e).children=t,r.refresh(),this.changeData(void 0,n)):console.warn("Update children failed! There is no node with id '".concat(e,"'"))},e.prototype.updateChild=function(t,n,r){void 0===r&&(r=!0);if(n&&this.findById(n)){var i=this.findDataById(n),o=this.findById(t.id);if(i.children||(i.children=[]),o){var a=e.indexOfChild(i.children,t.id);a>-1&&(i.children[a]=t)}else i.children.push(t);var s=this.findById(n);null===s||void 0===s||s.refresh(),this.changeData(void 0,r)}else this.changeData(t,r)},e.prototype.removeChild=function(t,n){void 0===n&&(n=!0);var r,i=this.findById(t);if((r=i?null===i||void 0===i?void 0:i.get("parent"):this.getNodes().find(function(e){return!!(e.getModel().children||[]).find(function(e){return e.id===t})}))&&!r.destroyed){var o=r.get("id"),a=this.findDataById(o),s=a&&a.children||[],l=e.indexOfChild(s,t);s.splice(l,1),r.refresh()}this.changeData(void 0,n)},e.prototype.findDataById=function(t,e){var n=this;if(e||(e=n.get("data")),t===e.id)return e;var r=null;return Object(x.each)(e.children||[],function(e){return e.id===t?(r=e,!1):!(r=n.findDataById(t,e))&&void 0}),r},e.prototype.layoutAnimate=function(t,e){var n=this,r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach(function(t){var e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(r){vo(t,function(i){var o=n.findById(i.id);if(o){var a=o.get("originAttrs"),s=o.get("model");if(a||(a={x:s.x,y:s.y},o.set("originAttrs",a)),e){var l=e(o,r,a,t);o.set("model",Object.assign(s,l))}else s.x=a.x+(i.x-a.x)*r,s.y=a.y+(i.y-a.y)*r}return!0}),Object(x.each)(n.get("removeList"),function(t){var e=t.getModel(),n=t.get("originAttrs"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r}),n.refreshPositions()},{duration:r.duration,easing:r.ease,callback:function(){Object(x.each)(n.getNodes(),function(t){t.set("originAttrs",null)}),Object(x.each)(n.get("removeList"),function(t){n.removeItem(t,!1)}),n.set("removeList",[]),r.callback&&r.callback(),n.emit("afteranimate",{data:t})},delay:r.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this.get("data");if(!e||!Object(x.isObject)(e)||!Object.keys(e).length)throw new Error("data must be defined first");this.clear(),t&&this.get("enabledStack")&&this.clearStack(),this.emit("beforerender"),this.layout(this.get("fitView")),this.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(e){t.prototype.data.call(this,e),this.set("originData",fo(e))},e}(co),yo=function(){function t(t){this._cfgs=Object(x.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return t.prototype.getDefaultCfgs=function(){return{}},t.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var n=e.getEvents(),r={};Object(x.each)(n,function(n,i){var o=Object(x.wrapBehavior)(e,n);r[i]=o,t.on(i,o)}),this._events=r,this.init()},t.prototype.getEvents=function(){return{}},t.prototype.get=function(t){var e;return null===(e=this._cfgs)||void 0===e?void 0:e[t]},t.prototype.set=function(t,e){this._cfgs[t]=e},t.prototype.destroy=function(){},t.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;Object(x.each)(e,function(e,n){t.off(n,e)}),this._events=null,this._cfgs=null,this.destroyed=!0},t}(),bo=this&&this.__extends||(po=function(t,e){return(po=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}po(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_o="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",xo=function(t){function e(e){return t.call(this,e)||this}return bo(e,t),e.prototype.getDefaultCfgs=function(){return{img:_o,follow:!0}},e.prototype.init=function(){var t=this.get("graph"),e=t.get("container"),n=t.get("canvas").get("el"),r=this.get("img")||_o;r.includes("url(")||(r='url("'.concat(r,'")'));var i=Kr("<div class='g6-grid-container' style=\"position:absolute;overflow:hidden;z-index: -1;\"></div>"),o=Kr("<div\n class='g6-grid'\n style='position:absolute;\n background-image: ".concat(r,";\n user-select: none\n '></div>"));this.set("container",i),this.set("gridContainer",o),this.positionInit(),i.appendChild(o),e.insertBefore(i,n)},e.prototype.positionInit=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("width"),r=t.get("height");Jr(this.get("container"),{width:"".concat(n,"px"),height:"".concat(r,"px")});var i=80*n/e,o=80*r/e;Jr(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(o,"px"),left:"-".concat(i/2,"px"),top:"-".concat(o/2,"px")})},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},e.prototype.updateGrid=function(t){var e=this.get("gridContainer"),n=t.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var r=this.get("follow");Jr(e,{transform:"matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(r?n[6]:"0",", ").concat(r?n[7]:"0",")")})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph").get("container"),e=this.get("container");t.removeChild(e)},e}(yo),wo=n("z/wH"),So=n.n(wo),Co=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"undefined"!=typeof document&&So()("\n .g6-component-contextmenu {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .g6-contextmenu-ul {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n\n");var ko=function(t){function e(e){return t.call(this,e)||this}return Co(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(t){return"\n <ul class='g6-contextmenu-ul'>\n <li>菜单项1</li>\n <li>菜单项2</li>\n </ul>\n "},shouldBegin:function(t){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},e.prototype.init=function(){var t=this.get("className"),e=Kr("<div class=".concat(t||"g6-component-contextmenu","></div>"));Jr(e,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),Object(x.isString)(n)&&(n=document.getElementById(n)),n.appendChild(e),this.set("menu",e)},e.prototype.onMenuShow=function(t){var e=this;t.preventDefault();var n=this.get("itemTypes");if(t.item){if(t.item&&t.item.getType&&-1===n.indexOf(t.item.getType()))return void e.onMenuHide()}else if(-1===n.indexOf("canvas"))return void e.onMenuHide();if(this.get("shouldBegin")(t)){var r=this.get("menu"),i=this.get("getContent"),o=this.get("graph"),a=i(t,o);Object(x.isString)(a)?r.innerHTML=a:r.innerHTML=a.outerHTML,this.removeMenuEventListener();var s=this.get("handleMenuClick");if(s){var l=function(e){s(e.target,t.item,o)};this.set("handleMenuClickWrapper",l),r.addEventListener("click",l)}var u=o.get("width"),c=o.get("height"),h=r.getBoundingClientRect(),d=this.get("offsetX")||0,f=this.get("offsetY")||0,p=o.getContainer().offsetTop,g=o.getContainer().offsetLeft,v=t.canvasX+g+d,m=t.canvasY+p+f;v+h.width>u&&(v=t.canvasX-h.width-d+g),m+h.height>c&&(m=t.canvasY-h.height-f+p),m<0&&(m=0),Jr(r,{top:"".concat(m,"px"),left:"".concat(v,"px"),visibility:"visible"});var y="click"===this.get("trigger"),b=function(t){y?y=!1:e.onMenuHide()};document.body.addEventListener("click",b),this.set("handler",b)}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),e=this.get("handler");t&&(this.get("menu").removeEventListener("click",t),this.set("handleMenuClickWrapper",null));e&&document.body.removeEventListener("click",e)},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&Jr(t,{visibility:"hidden"}),this.removeMenuEventListener()},e.prototype.destroy=function(){var t=this.get("menu");if(this.removeMenuEventListener(),t){var e=this.get("container");e||(e=this.get("graph").get("container")),Object(x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(yo),Oo=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mo=this&&this.__assign||function(){return(Mo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Eo=Math.max,To=P.a.transform,Ao=function(t){function e(e){var n=t.call(this,e)||this;return n.handleUpdateCanvas=Object(x.debounce)(function(t){var e=n;e.destroyed||e.updateCanvas()},100,!1),n}return Oo(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",type:"default",padding:50,size:[200,120],delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0,hideEdge:!1}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.size,r=e.graph;if(!this.destroyed){var i=this.get("canvas").get("container"),o=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,a=navigator.userAgent.toLowerCase().indexOf("safari")>-1,s=Kr("\n <div\n class=".concat(e.viewportClassName,"\n style='position:absolute;\n left:0;\n top:0;\n box-sizing:border-box;\n outline: 2px solid #1980ff;\n cursor:move'\n draggable=").concat(!a&&!o,"\n </div>")),l=0,u=0,c=!1,h=0,d=0,f=0,p=0,g=0,v=0,m=a||o?"mousedown":"dragstart";s.addEventListener(m,function(i){var o,a;if(i.dataTransfer){var m=new Image;m.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",null===(a=(o=i.dataTransfer).setDragImage)||void 0===a||a.call(o,m,0,0);try{i.dataTransfer.setData("text/html","view-port-minimap")}catch(t){i.dataTransfer.setData("text","view-port-minimap")}}if(e.refresh=!1,i.target===s){var y=s.style;h=parseInt(y.left,10),d=parseInt(y.top,10),f=parseInt(y.width,10),p=parseInt(y.height,10),f>n[0]||p>n[1]||(v=r.getZoom(),g=t.get("ratio"),c=!0,l=i.clientX,u=i.clientY)}},!1);var y=function(t){if(c&&!Object(x.isNil)(t.clientX)&&!Object(x.isNil)(t.clientY)){var e=l-t.clientX,i=u-t.clientY;(h-e<0||h-e+f>=n[0])&&(e=0),(d-i<0||d-i+p>=n[1])&&(i=0),d-=i,Jr(s,{left:"".concat(h-=e,"px"),top:"".concat(d,"px")}),r.translate(e*v/g,i*v/g),l=t.clientX,u=t.clientY}};a||o||s.addEventListener("drag",y,!1);var b=function(){c=!1,e.refresh=!0},_=a||o?"mouseup":"dragend";s.addEventListener(_,b,!1),i.addEventListener("mouseleave",b),i.addEventListener("mouseup",b),(a||o)&&i.addEventListener("mousemove",y,!1),this.set("viewport",s),i.appendChild(s)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("totaldx"),n=this.get("totaldy"),r=this.get("graph"),i=this.get("size"),o=r.get("canvas").get("el"),a=r.get("width")||o.scrollWidth||500,s=r.get("height")||o.scrollHeight||500,l=r.getPointByCanvas(0,0),u=r.getPointByCanvas(a,s),c=this.get("viewport");c||this.initViewport();var h=(u.x-l.x)*t,d=(u.y-l.y)*t,f=l.x*t+e,p=l.y*t+n,g=f+h,v=p+d;f<0&&(h+=f,f=0),g>i[0]&&(h-=g-i[0]),p<0&&(d+=p,p=0),v>i[1]&&(d-=v-i[1]),this.set("ratio",t),Jr(c,{left:"".concat(f,"px"),top:"".concat(p,"px"),width:"".concat(h,"px"),height:"".concat(d,"px")})}},e.prototype.updateGraphShapes=function(){var t,e=this._cfgs.graph,n=this.get("canvas"),r=e.get("group");r.destroyed||(n.clear(),this.get("hideEdge")?(t=n.addGroup(),r.get("children").forEach(function(e){e.get("id").includes("-edge")||t.add(e.clone())})):((t=r.clone()).resetMatrix(),n.add(t)),"svg"===e.get("renderer")&&this.updateVisible(t))},e.prototype.updateVisible=function(t){var e=this;if(t.isGroup()||t.get("visible")){var n=t.get("children");if(!n||!n.length)return;n.forEach(function(t){t.get("visible")||t.hide(),e.updateVisible(t)})}else t.hide()},e.prototype.updateKeyShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||Object(x.each)(e.getEdges(),function(e){t.updateOneEdgeKeyShape(e,r)}),Object(x.each)(e.getNodes(),function(e){t.updateOneNodeKeyShape(e,r)});var i=e.getCombos();if(i&&i.length){var o=r.find(function(t){return"comboGroup"===t.get("name")})||r.addGroup({name:"comboGroup"});setTimeout(function(){t.destroyed||(Object(x.each)(i,function(e){t.updateOneComboKeyShape(e,o)}),null===o||void 0===o||o.sort(),null===o||void 0===o||o.toBack(),t.updateCanvas())},250)}this.clearDestroyedShapes()},e.prototype.updateOneComboKeyShape=function(t,e){if(!this.destroyed){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?s=Object.assign(a,s):(r=o,e.add(r));var l=r.get("type");"rect"!==l&&"image"!==l||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var u=t.getModel().depth;isNaN(u)||r.set("zIndex",u),n[t.get("id")]=r,this.set("itemMap",n)}},e.prototype.updateOneNodeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?(s=Object.assign(a,s),r.toFront()):(r=o,e.add(r));var l=r.get("type");"rect"!==l&&"image"!==l||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var u=t.getModel().depth;isNaN(u)||r.set("zIndex",u),n[t.get("id")]=r,this.set("itemMap",n)},e.prototype.updateDelegateShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||Object(x.each)(e.getEdges(),function(e){t.updateOneEdgeKeyShape(e,r)}),Object(x.each)(e.getNodes(),function(e){t.updateOneNodeDelegateShape(e,r)});var i=e.getCombos();if(i&&i.length){var o=r.find(function(t){return"comboGroup"===t.get("name")})||r.addGroup({name:"comboGroup"});setTimeout(function(){t.destroyed||(Object(x.each)(i,function(e){t.updateOneComboKeyShape(e,o)}),null===o||void 0===o||o.sort(),null===o||void 0===o||o.toBack(),t.updateCanvas())},250)}this.clearDestroyedShapes()},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},e=Object.keys(t);if(e&&0!==e.length)for(var n=e.length-1;n>=0;n--){var r=t[e[n]],i=r.exist;r.exist=!1,i||(r.remove(),delete t[e[n]])}},e.prototype.updateOneEdgeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")];if(r){var i=t.get("keyShape").attr("path");r.attr("path",i)}else r=t.get("keyShape").clone(),e.add(r);t.isVisible()?r.show():r.hide(),r.exist=!0,n[t.get("id")]=r,this.set("itemMap",n)},e.prototype.updateOneNodeDelegateShape=function(t,e){var n=this.get("delegateStyle"),r=this.get("itemMap")||{},i=r[t.get("id")],o=t.getBBox();if(i){var a={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(a),i.toFront()}else i=e.addShape("rect",{attrs:Mo({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});t.isVisible()?i.show():i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r)},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},e.prototype.initContainer=function(){var t=this.get("graph"),e=this.get("size"),n=this.get("className"),r=this.get("container"),i=Kr("<div class='".concat(n,"' style='width: ").concat(e[0],"px; height: ").concat(e[1],"px; overflow: hidden'></div>"));Object(x.isString)(r)&&(r=document.getElementById(r)),r?r.appendChild(i):t.get("container").appendChild(i),this.set("container",i);var o,a=Kr('<div class="g6-minimap-container" style="position: relative;"></div>');i.appendChild(a),a.addEventListener("dragenter",function(t){t.preventDefault()}),a.addEventListener("dragover",function(t){t.preventDefault()}),o="svg"===t.get("renderer")?new qr.Canvas({container:a,width:e[0],height:e[1]}):new Xr.Canvas({container:a,width:e[0],height:e[1]}),this.set("canvas",o),this.updateCanvas()},e.prototype.updateCanvas=function(){if(!this.destroyed&&this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("size"),n=this.get("canvas"),r=this.get("type"),i=this.get("padding");if(!n.destroyed){switch(r){case"default":this.updateGraphShapes();break;case"keyShape":this.updateKeyShapes();break;case"delegate":this.updateDelegateShapes()}var o=n.get("children")[0];if(o){o.resetMatrix();var a=o.getCanvasBBox(),s=t.get("canvas").getCanvasBBox(),l=t.getZoom()||1,u=s.width/l,c=s.height/l;Number.isFinite(a.width)&&(u=Eo(a.width,u),c=Eo(a.height,c)),u+=2*i,c+=2*i;var h=Math.min(e[0]/u,e[1]/c),d=[1,0,0,0,1,0,0,0,1],f=0,p=0;Number.isFinite(a.minX)&&(f=-a.minX),Number.isFinite(a.minY)&&(p=-a.minY);var g=(e[0]-(u-2*i)*h)/2,v=(e[1]-(c-2*i)*h)/2;d=To(d,[["t",f,p],["s",h,h],["t",g,v]]),o.setMatrix(d),this.set("ratio",h),this.set("totaldx",g+f*h),this.set("totaldy",v+p*h),this.set("dx",g),this.set("dy",v),this.updateViewport()}}}}},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t;null===(t=this.get("canvas"))||void 0===t||t.destroy();var e=this.get("container");(null===e||void 0===e?void 0:e.parentNode)&&e.parentNode.removeChild(e)},e}(yo),Io=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Do(t,e,n){var r=t.x-e.x,i=t.y-e.y;return!n||Math.abs(r)>n||Math.abs(i)>n?Math.sqrt(r*r+i*i):n}function Po(t,e){var n=(e.source.y-e.target.y)/(e.source.x-e.target.x),r=(n*n*e.source.x+n*(t.y-e.source.y)+t.x)/(n*n+1);return{x:r,y:n*(r-e.source.x)+e.source.y}}var Lo=function(t){function e(e){return t.call(this,e)||this}return Io(e,t),e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},e.prototype.init=function(){var t=this.get("graph"),e=this.get("onTick");this.set("tick",function(){e&&e(),t.refreshPositions()})},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],r={},i=!1;if((t.nodes||[]).forEach(function(t){null!==t.x&&null!==!t.y&&void 0!==t.x&&void 0!==!t.y||(i=!0),r[t.id]=t}),i)throw new Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",r);var o=e.get("divisions"),a=e.get("divRate"),s=e.divideEdges(o);e.set("edgePoints",s);var l=e.getEdgeBundles();e.set("edgeBundles",l);for(var u=e.get("cycles"),c=e.get("iterations"),h=e.get("iterRate"),d=e.get("lambda"),f=0;f<u;f++){for(var p=function(t){var i=[];n.forEach(function(t,n){if(t.source!==t.target){var a=r[t.source],l=r[t.target];i[n]=e.getEdgeForces({source:a,target:l},n,o,d);for(var u=0;u<o+1;u++)s[n][u].x+=i[n][u].x,s[n][u].y+=i[n][u].y}})},g=0;g<c;g++)p();d/=2,o*=a,c*=h,s=e.divideEdges(o),e.set("edgePoints",s)}n.forEach(function(t,e){t.source!==t.target&&(t.type="polyline",t.controlPoints=s[e].slice(1,s[e].length-1))}),e.get("graph").refresh()}},e.prototype.updateBundling=function(t){var e=this,n=t.data;if(n&&e.set("data",n),e.get("ticking")&&e.set("ticking",!1),Object.keys(t).forEach(function(n){e.set(n,t[n])}),t.onTick){var r=this.get("graph");e.set("tick",function(){t.onTick(),r.refresh()})}e.bundling(n)},e.prototype.divideEdges=function(t){var e=this,n=e.get("data").edges,r=e.get("nodeIdMap"),i=e.get("edgePoints");return i&&void 0!==i||(i=[]),n.forEach(function(n,o){var a;i[o]&&void 0!==i[o]||(i[o]=[]);var s=r[n.source],l=r[n.target];if(1===t)i[o].push({x:s.x,y:s.y}),i[o].push({x:.5*(s.x+l.x),y:.5*(s.y+l.y)}),i[o].push({x:l.x,y:l.y});else{var u=((null===(a=i[o])||void 0===a?void 0:a.length)?e.getEdgeLength(i[o]):Do({x:s.x,y:s.y},{x:l.x,y:l.y}))/(t+1),c=u,h=[{x:s.x,y:s.y}];i[o].forEach(function(t,e){if(0!==e){for(var n=Do(t,i[o][e-1]);n>c;){var r=c/n,a={x:i[o][e-1].x,y:i[o][e-1].y};a.x+=r*(t.x-i[o][e-1].x),a.y+=r*(t.y-i[o][e-1].y),h.push(a),n-=c,c=u}c-=n}}),h.push({x:l.x,y:l.y}),i[o]=h}}),i},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach(function(n,r){0!==r&&(e+=Do(n,t[r-1]))}),e},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data").edges||[],n=t.get("bundleThreshold"),r=t.get("nodeIdMap"),i=t.get("edgeBundles");return i||(i=[]),e.forEach(function(t,e){i[e]&&void 0!==i[e]||(i[e]=[])}),e.forEach(function(o,a){var s=r[o.source],l=r[o.target];e.forEach(function(e,o){if(!(o<=a)){var u=r[e.source],c=r[e.target];t.getBundleScore({source:s,target:l},{source:u,target:c})>=n&&(i[a].push(o),i[o].push(a))}})}),i},e.prototype.getBundleScore=function(t,e){return t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,t.length=Do({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=Do({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),this.getAngleScore(t,e)*this.getScaleScore(t,e)*this.getPositionScore(t,e)*this.getVisibilityScore(t,e)},e.prototype.getAngleScore=function(t,e){return function(t,e){return t.x*e.x+t.y*e.y}({x:t.vx,y:t.vy},{x:e.vx,y:e.vy})/(t.length*e.length)},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2;return 2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n)},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2;return n/(n+Do({x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},{x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2}))},e.prototype.getVisibilityScore=function(t,e){var n=this.getEdgeVisibility(t,e),r=this.getEdgeVisibility(e,t);return n<r?n:r},e.prototype.getEdgeVisibility=function(t,e){var n=Po(e.source,t),r=Po(e.target,t),i={x:(n.x+r.x)/2,y:(n.y+r.y)/2},o={x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2};return Math.max(0,1-2*Do(i,o)/Do(n,r))},e.prototype.getEdgeForces=function(t,e,n,r){for(var i=this.get("edgePoints"),o=this.get("K")/(Do(t.source,t.target)*(n+1)),a=[{x:0,y:0}],s=1;s<n;s++){var l={x:0,y:0},u=this.getSpringForce({pre:i[e][s-1],cur:i[e][s],next:i[e][s+1]},o),c=this.getElectrostaticForce(s,e);l.x=r*(u.x+c.x),l.y=r*(u.y+c.y),a.push(l)}return a.push({x:0,y:0}),a},e.prototype.getSpringForce=function(t,e){var n=t.pre.x+t.next.x-2*t.cur.x,r=t.pre.y+t.next.y-2*t.cur.y;return{x:n*=e,y:r*=e}},e.prototype.getElectrostaticForce=function(t,e){var n=this.get("eps"),r=this.get("edgeBundles"),i=this.get("edgePoints"),o={x:0,y:0};return r[e].forEach(function(r){var a={x:i[r][t].x-i[e][t].x,y:i[r][t].y-i[e][t].y};if(Math.abs(a.x)>n||Math.abs(a.y)>n){var s=1/Do(i[r][t],i[e][t]);o.x+=a.x*s,o.y+=a.y*s}}),o},e.prototype.isTicking=function(){return this.get("ticking")},e.prototype.getSimulation=function(){return this.get("forceSimulation")},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),t.prototype.destroy.call(this)},e}(yo),jo=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),No=this&&this.__assign||function(){return(No=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ro={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:.1,fill:"#ccc"},Bo=function(t){function e(e){return t.call(this,e)||this}return jo(e,t),e.prototype.getDefaultCfgs=function(){return{trigger:"mousemove",d:1.5,r:300,delegateStyle:Object(x.clone)(Ro),showLabel:!1,maxD:5,minD:0,scaleRBy:"unset",scaleDBy:"unset",showDPercent:!0}},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"magnify"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"magnify"}}return t},e.prototype.init=function(){var t=this.get("r");this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{}),this.set("r2",t*t);var e=this.get("d");this.set("molecularParam",(e+1)*t)},e.prototype.createDelegate=function(t){var e=this,n=this,r=n.get("delegate");r&&!r.destroyed||(n.magnify(t),(r=n.get("delegate")).on("dragstart",function(t){n.set("delegateCenterDiff",{x:r.attr("x")-t.x,y:r.attr("y")-t.y})}),r.on("drag",function(t){n.magnify(t)}),"wheel"===this.get("scaleDBy")&&r.on("mousewheel",function(t){e.scaleDByWheel(t)}),"wheel"===this.get("scaleRBy")&&r.on("mousewheel",function(t){n.scaleRByWheel(t)}))},e.prototype.scaleRByWheel=function(t){if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var e,n=this.get("graph"),r=this.get("delegate"),i=(r?{x:r.attr("x"),y:r.attr("y")}:void 0)||n.getPointByClient(t.clientX,t.clientY);e=t.originalEvent.wheelDelta<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||n.get("height"))&&e>1||s<(a||.05*n.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var l=this.get("d");this.set("molecularParam",(l+1)*s),this.set("delegateCenterDiff",void 0),this.magnify(t,i)}},e.prototype.scaleRByDrag=function(t){if(t){var e,n=this.get("dragPrePos"),r=this.get("graph"),i=r.getPointByClient(t.clientX,t.clientY);e=t.x-n.x<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||r.get("height"))&&e>1||s<(a||.05*r.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var l=this.get("d");this.set("molecularParam",(l+1)*s),this.magnify(t,i),this.set("dragPrePos",{x:t.x,y:t.y})}},e.prototype.scaleDByWheel=function(t){if(t||t.originalEvent){t.preventDefault&&t.preventDefault();var e=0;e=t.originalEvent.wheelDelta<0?-.1:.1;var n=this.get("d")+e,r=this.get("maxD"),i=this.get("minD");if(n<r&&n>i){this.set("d",n);var o=this.get("r");this.set("molecularParam",(n+1)*o);var a=this.get("delegate"),s=a?{x:a.attr("x"),y:a.attr("y")}:void 0;this.set("delegateCenterDiff",void 0),this.magnify(t,s)}}},e.prototype.scaleDByDrag=function(t){var e=this.get("dragPrePos"),n=t.x-e.x>0?.1:-.1,r=this.get("d")+n,i=this.get("maxD"),o=this.get("minD");if(r<i&&r>o){this.set("d",r);var a=this.get("r");this.set("molecularParam",(r+1)*a),this.magnify(t)}this.set("dragPrePos",{x:t.x,y:t.y})},e.prototype.magnify=function(t,e){this.restoreCache();var n=this.get("graph"),r=this.get("cachedMagnifiedModels"),i=this.get("cachedOriginPositions"),o=this.get("showLabel"),a=this.get("r"),s=this.get("r2"),l=this.get("d"),u=this.get("molecularParam"),c=n.getNodes(),h=c.length,d=e?{x:e.x,y:e.y}:{x:t.x,y:t.y};!this.get("dragging")||"mousemove"!==this.get("trigger")&&"click"!==this.get("trigger")||(d=this.get("cacheCenter"));var f=this.get("delegateCenterDiff");f&&(d.x+=f.x,d.y+=f.y),this.updateDelegate(d,a);for(var p=0;p<h;p++){var g=c[p].getModel(),v=g.x,m=g.y;if(!isNaN(v)&&!isNaN(m)){var y=(v-d.x)*(v-d.x)+(m-d.y)*(m-d.y);if(!isNaN(y)&&y<s&&0!==y){var b=Math.sqrt(y),_=u*b/(l*b+a),x=(v-d.x)/b,w=(m-d.y)/b;if(g.x=x*_+d.x,g.y=w*_+d.y,i[g.id]||(i[g.id]={x:v,y:m,texts:[]}),r.push(g),o&&2*b<a)for(var S=c[p].getContainer().getChildren(),C=S.length,k=0;k<C;k++){var O=S[k];"text"===O.get("type")&&(i[g.id].texts.push({visible:O.get("visible"),shape:O}),O.set("visible",!0))}}}}n.refreshPositions()},e.prototype.restoreCache=function(){for(var t=this.get("cachedMagnifiedModels"),e=this.get("cachedOriginPositions"),n=t.length,r=0;r<n;r++){var i=t[r],o=e[i.id];i.x=o.x,i.y=o.y;for(var a=o.texts.length,s=0;s<a;s++){var l=o.texts[s];l.shape.set("visible",l.visible)}}this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{})},e.prototype.updateParams=function(t){var e=t.r,n=t.d,r=t.trigger,i=t.minD,o=t.maxD,a=t.minR,s=t.maxR,l=t.scaleDBy,u=t.scaleRBy;isNaN(t.r)||(this.set("r",e),this.set("r2",e*e)),isNaN(n)||this.set("d",n),isNaN(o)||this.set("maxD",o),isNaN(i)||this.set("minD",i),isNaN(s)||this.set("maxR",s),isNaN(a)||this.set("minR",a);var c,h=this.get("d"),d=this.get("r");(this.set("molecularParam",(h+1)*d),"mousemove"!==r&&"click"!==r&&"drag"!==r||this.set("trigger",r),"drag"===l||"wheel"===l||"unset"===l)&&(this.set("scaleDBy",l),this.get("delegate").remove(),this.get("delegate").destroy(),(c=this.get("dPercentText"))&&(c.remove(),c.destroy()));"drag"!==u&&"wheel"!==u&&"unset"!==u||(this.set("scaleRBy",u),this.get("delegate").remove(),this.get("delegate").destroy(),(c=this.get("dPercentText"))&&(c.remove(),c.destroy()))},e.prototype.updateDelegate=function(t,e){var n=this,r=this,i=r.get("graph"),o=r.get("delegate");if(!o||o.destroyed){var a=i.get("group"),s=r.get("delegateStyle")||Ro;o=a.addShape("circle",{attrs:No({r:e/1.5,x:t.x,y:t.y},s),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&("wheel"===this.get("scaleRBy")?o.on("mousewheel",function(t){r.scaleRByWheel(t)}):"drag"===this.get("scaleRBy")&&(o.on("dragstart",function(t){r.set("dragging",!0),r.set("cacheCenter",{x:t.x,y:t.y}),r.set("dragPrePos",{x:t.x,y:t.y})}),o.on("drag",function(t){r.scaleRByDrag(t)}),o.on("dragend",function(t){r.set("dragging",!1)})),"wheel"===this.get("scaleDBy")?o.on("mousewheel",function(t){n.scaleDByWheel(t)}):"drag"===this.get("scaleDBy")&&(o.on("dragstart",function(t){r.set("dragging",!0),r.set("cacheCenter",{x:t.x,y:t.y}),r.set("dragPrePos",{x:t.x,y:t.y})}),o.on("drag",function(t){n.scaleDByDrag(t)}),o.on("dragend",function(t){r.set("dragging",!1)})))}else o.attr({x:t.x,y:t.y,r:e/1.5});if(r.get("showDPercent")){var l=Math.round((r.get("d")-r.get("minD"))/(r.get("maxD")-r.get("minD"))*100),u=r.get("dPercentText"),c=t.y+e/1.5+16;if(!u||u.destroyed)u=i.get("group").addShape("text",{attrs:{text:"".concat(l,"%"),x:t.x,y:c,fill:"#aaa",stroke:"#fff",lineWidth:1,fontSize:12}}),r.set("dPercentText",u);else u.attr({text:"".concat(l,"%"),x:t.x,y:c})}r.set("delegate",o)},e.prototype.clear=function(){var t=this.get("graph");this.restoreCache(),t.refreshPositions();var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy());var n=this.get("dPercentText");n&&!n.destroyed&&(n.remove(),n.destroy())},e.prototype.destroy=function(){this.clear()},e}(yo),Fo=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"undefined"!=typeof document&&So()("\n .g6-component-toolbar {\n position: absolute;\n list-style-type: none;\n padding: 6px;\n left: 0px;\n top: 0px;\n background-color: rgba(255, 255, 255, 0.9);\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n margin: 0;\n }\n .g6-component-toolbar li {\n float: left;\n text-align: center;\n width: 35px;\n height: 24px;\n cursor: pointer;\n\t\tlist-style-type:none;\n list-style: none;\n margin-left: 0px;\n }\n .g6-component-toolbar li .icon {\n opacity: 0.7;\n }\n .g6-component-toolbar li .icon:hover {\n opacity: 1;\n }\n");var zo=function(t){function e(e){return t.call(this,e)||this}return Fo(e,t),e.prototype.getDefaultCfgs=function(){return{handleClick:void 0,getContent:function(t){return'\n <ul class=\'g6-component-toolbar\'>\n <li code=\'redo\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M256 682.666667c0-102.741333 66.730667-213.333333 213.333333-213.333334 107.008 0 190.762667 56.576 230.570667 125.354667L611.968 682.666667H853.333333v-241.365334l-91.562666 91.562667C704.768 448.469333 601.130667 384 469.333333 384c-196.096 0-298.666667 150.229333-298.666666 298.666667h85.333333z" fill="" p-id="2041"></path>\n </svg>\n </li>\n <li code=\'undo\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M170.666667 682.666667h241.365333l-87.936-87.978667C363.904 525.909333 447.658667 469.333333 554.666667 469.333333c146.602667 0 213.333333 110.592 213.333333 213.333334h85.333333c0-148.437333-102.570667-298.666667-298.666666-298.666667-131.797333 0-235.392 64.469333-292.48 148.821333L170.666667 441.301333V682.666667z" fill="" p-id="2764"></path>\n </svg>\n </li>\n <li code=\'zoomOut\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M658.432 428.736a33.216 33.216 0 0 1-33.152 33.152H525.824v99.456a33.216 33.216 0 0 1-66.304 0V461.888H360.064a33.152 33.152 0 0 1 0-66.304H459.52V296.128a33.152 33.152 0 0 1 66.304 0V395.52H625.28c18.24 0 33.152 14.848 33.152 33.152z m299.776 521.792a43.328 43.328 0 0 1-60.864-6.912l-189.248-220.992a362.368 362.368 0 0 1-215.36 70.848 364.8 364.8 0 1 1 364.8-364.736 363.072 363.072 0 0 1-86.912 235.968l192.384 224.64a43.392 43.392 0 0 1-4.8 61.184z m-465.536-223.36a298.816 298.816 0 0 0 298.432-298.432 298.816 298.816 0 0 0-298.432-298.432A298.816 298.816 0 0 0 194.24 428.8a298.816 298.816 0 0 0 298.432 298.432z"></path>\n </svg>\n </li>\n <li code=\'zoomIn\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M639.936 416a32 32 0 0 1-32 32h-256a32 32 0 0 1 0-64h256a32 32 0 0 1 32 32z m289.28 503.552a41.792 41.792 0 0 1-58.752-6.656l-182.656-213.248A349.76 349.76 0 0 1 480 768 352 352 0 1 1 832 416a350.4 350.4 0 0 1-83.84 227.712l185.664 216.768a41.856 41.856 0 0 1-4.608 59.072zM479.936 704c158.784 0 288-129.216 288-288S638.72 128 479.936 128a288.32 288.32 0 0 0-288 288c0 158.784 129.216 288 288 288z" p-id="3853"></path>\n </svg>\n </li>\n <li code=\'realZoom\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\n <path d="M384 320v384H320V320h64z m256 0v384H576V320h64zM512 576v64H448V576h64z m0-192v64H448V384h64z m355.968 576H92.032A28.16 28.16 0 0 1 64 931.968V28.032C64 12.608 76.608 0 95.168 0h610.368L896 192v739.968a28.16 28.16 0 0 1-28.032 28.032zM704 64v128h128l-128-128z m128 192h-190.464V64H128v832h704V256z"></path>\n </svg>\n </li>\n <li code=\'autoZoom\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\n <path d="M684.288 305.28l0.128-0.64-0.128-0.64V99.712c0-19.84 15.552-35.904 34.496-35.712a35.072 35.072 0 0 1 34.56 35.776v171.008h170.944c19.648 0 35.84 15.488 35.712 34.432a35.072 35.072 0 0 1-35.84 34.496h-204.16l-0.64-0.128a32.768 32.768 0 0 1-20.864-7.552c-1.344-1.024-2.816-1.664-3.968-2.816-0.384-0.32-0.512-0.768-0.832-1.088a33.472 33.472 0 0 1-9.408-22.848zM305.28 64a35.072 35.072 0 0 0-34.56 35.776v171.008H99.776A35.072 35.072 0 0 0 64 305.216c0 18.944 15.872 34.496 35.84 34.496h204.16l0.64-0.128a32.896 32.896 0 0 0 20.864-7.552c1.344-1.024 2.816-1.664 3.904-2.816 0.384-0.32 0.512-0.768 0.768-1.088a33.024 33.024 0 0 0 9.536-22.848l-0.128-0.64 0.128-0.704V99.712A35.008 35.008 0 0 0 305.216 64z m618.944 620.288h-204.16l-0.64 0.128-0.512-0.128c-7.808 0-14.72 3.2-20.48 7.68-1.28 1.024-2.752 1.664-3.84 2.752-0.384 0.32-0.512 0.768-0.832 1.088a33.664 33.664 0 0 0-9.408 22.912l0.128 0.64-0.128 0.704v204.288c0 19.712 15.552 35.904 34.496 35.712a35.072 35.072 0 0 0 34.56-35.776V753.28h170.944c19.648 0 35.84-15.488 35.712-34.432a35.072 35.072 0 0 0-35.84-34.496z m-593.92 11.52c-0.256-0.32-0.384-0.768-0.768-1.088-1.088-1.088-2.56-1.728-3.84-2.688a33.088 33.088 0 0 0-20.48-7.68l-0.512 0.064-0.64-0.128H99.84a35.072 35.072 0 0 0-35.84 34.496 35.072 35.072 0 0 0 35.712 34.432H270.72v171.008c0 19.84 15.552 35.84 34.56 35.776a35.008 35.008 0 0 0 34.432-35.712V720l-0.128-0.64 0.128-0.704a33.344 33.344 0 0 0-9.472-22.848zM512 374.144a137.92 137.92 0 1 0 0.128 275.84A137.92 137.92 0 0 0 512 374.08z"></path>\n </svg>\n </li>\n </ul>\n '},zoomSensitivity:2}},e.prototype.init=function(){var t=this,e=this.get("graph"),n=this.get("getContent")(e),r=n;Object(x.isString)(n)&&(r=Kr(n));var i=this.get("className");r.setAttribute("class",i||"g6-component-toolbar");var o=this.get("container");o||(o=this.get("graph").get("container")),Object(x.isString)(o)&&(o=document.getElementById(o)),o.appendChild(r),this.set("toolBar",r);var a=this.get("handleClick");r.addEventListener("click",function(n){var r=function(t){if(!t)return[];if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;){if(e.push(n),"HTML"===n.tagName)return e.push(document,window),e;n=n.parentElement}return e}(n).filter(function(t){return"LI"===t.nodeName});if(0!==r.length){var i=r[0].getAttribute("code");i&&(a?a(i,e):t.handleDefaultOperator(i))}});var s=this.get("position");s&&Jr(r,{top:"".concat(s.y,"px"),left:"".concat(s.x,"px")}),this.bindUndoRedo()},e.prototype.bindUndoRedo=function(){var t=this.get("graph"),e=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),r=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');e&&n&&r&&i&&(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),t.on("stackchange",function(t){var o=t.undoStack,a=t.redoStack,s=o.length,l=a.length;0===s?(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(e.removeAttribute("style"),n.removeAttribute("style")),0===l?(r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),i.removeAttribute("style"))}))},e.prototype.undo=function(){var t=this.get("graph"),e=t.getUndoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action;t.pushStack(r,Object(x.clone)(n.data),"redo");var i=n.data.before;if("add"===r&&(i=n.data.after),!i)return;switch(r){case"visible":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)})});break;case"render":case"update":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n)})});break;case"changedata":t.changeData(i,!1);break;case"delete":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)})});break;case"add":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.removeItem(e.id,!1)})});break;case"updateComboTree":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.updateComboTree(e.id,e.parentId,!1)})});break;case"createCombo":var o=n.data.after.combos,a=o[o.length-1];Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.updateComboTree(e.id,e.parentId,!1)})}),t.removeItem(a.id,!1);break;case"uncombo":var s=i.combos[i.combos.length-1],l=i.nodes.concat(i.combos).map(function(t){return t.id}).filter(function(t){return t!==s.id});t.createCombo(s,l,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1)}}}},e.prototype.redo=function(){var t=this.get("graph"),e=t.getRedoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action,i=n.data.after;if(t.pushStack(r,Object(x.clone)(n.data)),"delete"===r&&(i=n.data.before),!i)return;switch(r){case"visible":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)})});break;case"render":case"update":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n)})});break;case"changedata":t.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach(function(e){t.removeItem(e.id,!1)}),i.nodes&&i.nodes.forEach(function(e){t.removeItem(e.id,!1)}),i.combos&&i.combos.forEach(function(e){t.removeItem(e.id,!1)});break;case"add":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)})});break;case"updateComboTree":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.updateComboTree(e.id,e.parentId,!1)})});break;case"createCombo":var o=i.combos[i.combos.length-1];t.createCombo(o,o.children.map(function(t){return t.id}),!1);break;case"uncombo":var a=n.data.before.combos,s=a[a.length-1];t.uncombo(s.id,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1)}}}},e.prototype.zoomOut=function(){var t=this.get("graph"),e=t.getZoom(),n=1/(1-.05*this.get("zoomSensitivity"));n*e>(this.get("maxZoom")||t.get("maxZoom"))||t.zoomTo(e*n)},e.prototype.zoomIn=function(){var t=this.get("graph"),e=t.getZoom(),n=1-.05*this.get("zoomSensitivity");n*e<(this.get("minZoom")||t.get("minZoom"))||t.zoomTo(e*n)},e.prototype.realZoom=function(){this.get("graph").zoomTo(1)},e.prototype.autoZoom=function(){this.get("graph").fitView([20,20])},e.prototype.handleDefaultOperator=function(t){switch(t){case"redo":this.redo();break;case"undo":this.undo();break;case"zoomOut":this.zoomOut();break;case"zoomIn":this.zoomIn();break;case"realZoom":this.realZoom();break;case"autoZoom":this.autoZoom()}},e.prototype.destroy=function(){var t=this.get("toolBar");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),Object(x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}var n=this.get("handleClick");n&&t.removeEventListener("click",n)},e}(yo),Vo=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"undefined"!=typeof document&&So()("\n .g6-component-tooltip {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .tooltip-type {\n padding: 0;\n margin: 0;\n }\n .tooltip-id {\n color: #531dab;\n }\n");var $o=function(t){function e(e){return t.call(this,e)||this}return Vo(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,getContent:function(t){return"\n <h4 class='tooltip-type'>类型:".concat(t.item.getType(),"</h4>\n <span class='tooltip-id'>ID:").concat(t.item.getID(),"</span>\n ")},shouldBegin:function(t){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},e.prototype.init=function(){var t=this,e=t.get("className")||"g6-component-tooltip",n=Kr("<div class='".concat(e,"'></div>")),r=t.get("container");r||(r=t.get("graph").get("container")),Object(x.isString)(r)&&(r=document.getElementById(r)),Jr(n,{position:"absolute",visibility:"hidden",display:"none"}),r.appendChild(n),"click"!==t.get("trigger")&&(n.addEventListener("mouseenter",function(t){Jr(n,{visibility:"visible",display:"unset"})}),n.addEventListener("mouseleave",function(e){t.hideTooltip()})),t.set("tooltip",n)},e.prototype.onClick=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),r.emit("tooltipchange",{item:t.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"}))}},e.prototype.onMouseEnter=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"})}},e.prototype.onMouseMove=function(t){var e=this.get("itemTypes");t.item&&t.item.getType&&-1===e.indexOf(t.item.getType())||this.currentTarget&&t.item===this.currentTarget&&this.showTooltip(t)},e.prototype.onMouseLeave=function(){this.hideTooltip(),this.get("graph").emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},e.prototype.clearContainer=function(){var t=this.get("tooltip");t&&(t.innerHTML="")},e.prototype.showTooltip=function(t){if(t.item){var e=this.get("itemTypes");if(!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=this.get("tooltip"),r=this.get("getContent")(t);Object(x.isString)(r)?n.innerHTML=r:(this.clearContainer(),n.appendChild(r)),this.updatePosition(t)}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&Jr(t,{visibility:"hidden",display:"none"})},e.prototype.updatePosition=function(t){var e=this.get("shouldBegin"),n=this.get("tooltip");if(e(t)){var r=this.get("graph"),i=r.get("width"),o=r.get("height"),a=this.get("offsetX")||0,s=this.get("offsetY")||0,l=r.getPointByClient(t.clientX,t.clientY),u=this.get("fixToNode"),c=t.item;if(c.getType&&"node"===c.getType()&&u&&Object(x.isArray)(u)&&u.length>=2){var h=c.getBBox();l={x:h.minX+h.width*u[0],y:h.minY+h.height*u[1]}}var d=r.getCanvasByPoint(l.x,l.y),f=d.x,p=d.y,g=r.getContainer(),v={x:f+g.offsetLeft+a,y:p+g.offsetTop+s};Jr(n,{visibility:"visible",display:"unset"});var m=n.getBoundingClientRect();f+m.width+a>i&&(v.x-=m.width+a),p+m.height+s>o&&(v.y-=m.height+s,v.y<0&&(v.y=0)),Jr(n,{left:"".concat(v.x,"px"),top:"".concat(v.y,"px")})}else Jr(n,{visibility:"hidden",display:"none"})},e.prototype.hide=function(){this.onMouseLeave()},e.prototype.destroy=function(){var t=this.get("tooltip");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),Object(x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(yo),Go=function(){function t(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.container,a=t.text,s=t.padding,l=void 0===s?[4,4,4,4]:s,u=t.className,c=void 0===u?"g6-component-timebar-tooltip":u,h=t.backgroundColor,d=void 0===h?"#000":h,f=t.textColor,p=void 0===f?"#fff":f,g=t.opacity,v=void 0===g?.8:g,m=t.fontSize,y=void 0===m?12:m;this.container=o,this.className=c,this.backgroundColor=d,this.textColor=p,this.x=n,this.y=i,this.text=a,this.padding=l,this.opacity=v,this.fontSize=y,this.render()}return t.prototype.render=function(){var t=this.className,e=(this.x,this.y,this.backgroundColor),n=this.textColor,r=this.text,i=this.padding,o=this.opacity,a=this.fontSize,s=this.container,l=Kr("<div class='".concat(t,"' style=\"position: absolute; width: fit-content; height: fit-content; opacity: ").concat(o,'"></div>'));Object(x.isString)(s)&&(s=document.getElementById(s)),s.appendChild(l),this.parentHeight=s.offsetHeight,this.parentWidth=s.offsetWidth,Jr(l,{visibility:"hidden",top:0,left:0});var u=Kr("\n <div style='position: absolute; white-space:nowrap; background-color: ".concat(e,"; font-size: ").concat(a,"px; border-radius: 4px; width: fit-content; height: fit-content; color: ").concat(n,"; padding: ").concat(i[0],"px ").concat(i[1],"px ").concat(i[2],"px ").concat(i[3],"px'></div>"));u.innerHTML=r,l.appendChild(u),this.backgroundDOM=u;var c=Kr("<div style='position: absolute; width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid ".concat(e,"'></div>"));l.appendChild(c),this.arrowDOM=c,this.container=l},t.prototype.show=function(t){var e=t.text,n=t.x;t.y,t.clientX,t.clientY;this.backgroundDOM.innerHTML=e;var r=this.backgroundDOM.offsetWidth,i=this.backgroundDOM.offsetHeight,o=this.arrowDOM.offsetWidth,a=this.arrowDOM.offsetHeight;Jr(this.container,{top:"".concat(-i-a,"px"),left:"".concat(n,"px"),visibility:"visible"}),Jr(this.backgroundDOM,{marginLeft:"".concat(-r/2,"px")}),Jr(this.arrowDOM,{marginLeft:"".concat(-o/2,"px"),top:"".concat(i,"px")});var s=n-r/2,l=n+r/2;s<0?Jr(this.backgroundDOM,{marginLeft:"".concat(-r/2-s,"px")}):l>this.parentWidth&&Jr(this.backgroundDOM,{marginLeft:"".concat(-r/2-l+this.parentWidth+12,"px")})},t.prototype.hide=function(){Jr(this.container,{top:0,left:0,visibility:"hidden"})},t}(),Ho=this&&this.__assign||function(){return(Ho=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Wo=function(){function t(t){this.config=Object(x.deepMix)({},t),this.init()}return t.prototype.update=function(t){this.config=Object(x.deepMix)({},this.config,t),this.updateElement(),this.renderMarker()},t.prototype.init=function(){this.initElement(),this.renderMarker()},t.prototype.initElement=function(){var t=this.config,e=t.group,n=t.style,r=n.scale,i=void 0===r?1:r,o=n.offsetX,a=void 0===o?0:o,s=n.offsetY,l=void 0===s?0:s,u=this.config.x+a,c=this.config.y+l,h=e.addGroup({name:"playPauseBtn"});this.startMarkerGroup=h.addGroup({name:"playPauseBtn"}),this.circle=e.addShape("circle",{attrs:Ho({x:u,y:c,r:this.config.r*i},n),name:"playPauseBtn"}),this.startMarker=this.startMarkerGroup.addShape("path",{attrs:{path:this.getStartMarkerPath(u,c,i),fill:n.stroke||"#aaa"},name:"start-marker"}),this.pauseMarkerGroup=h.addGroup({name:"playPauseBtn"});var d=.25*this.config.r*i,f=.5*this.config.r*Math.sqrt(3)*i;this.pauseLeftMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:u-.375*this.config.r*i,y:c-f/2,width:d,height:f,fill:n.stroke||"#aaa",lineWidth:0}}),this.pauseRightMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:u+1/8*this.config.r*i,y:c-f/2,width:d,height:f,fill:n.stroke||"#aaa",lineWidth:0}})},t.prototype.updateElement=function(){var t=this.config.style,e=t.scale,n=void 0===e?1:e,r=t.offsetX,i=void 0===r?0:r,o=t.offsetY,a=void 0===o?0:o,s=this.config.x+i,l=this.config.y+a;this.circle.attr("x",s),this.circle.attr("y",l),this.circle.attr("r",this.config.r*n),this.startMarker.attr("path",this.getStartMarkerPath(s,l,n));var u=.25*this.config.r*n,c=.5*this.config.r*Math.sqrt(3)*n;this.pauseLeftMarker.attr("x",s-.375*this.config.r*n),this.pauseLeftMarker.attr("y",l-c/2),this.pauseLeftMarker.attr("width",u),this.pauseLeftMarker.attr("height",c),this.pauseRightMarker.attr("x",s+1/8*this.config.r*n),this.pauseRightMarker.attr("y",l-c/2),this.pauseRightMarker.attr("width",u),this.pauseRightMarker.attr("height",c)},t.prototype.renderMarker=function(){this.config.isPlay?(this.startMarkerGroup.hide(),this.pauseMarkerGroup.show()):(this.startMarkerGroup.show(),this.pauseMarkerGroup.hide())},t.prototype.getStartMarkerPath=function(t,e,n){var r=.5*this.config.r*Math.sqrt(3)*n;return[["M",t-r/Math.sqrt(3)/2,e-r/2],["L",t+r/Math.sqrt(3),e],["L",t-r/Math.sqrt(3)/2,e+r/2]]},t}(),Uo=this&&this.__assign||function(){return(Uo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Yo=P.a.transform,Xo={fill:"#aaa",fillOpacity:.35,stroke:"#aaa"},qo={fill:"#fff"},Zo={fill:"green"},Ko={pointer:{fill:"#aaa",lineWidth:0},scroller:{stroke:"#aaa",fill:"#aaa",lineWidth:1,lineAppendWidth:5,cursor:"pointer"},text:{fill:"#aaa",textBaseline:"top"}},Jo={check:{stroke:"green",lineWidth:3},box:{fill:"#fff",stroke:"#aaa",lineWidth:2,radius:3,width:12,height:12},text:{fill:"#aaa",fontSize:12,textBaseline:"top"}},Qo={speed:1,loop:!1,fill:"#fff",stroke:"#fff",hideTimeTypeController:!1,preBtnStyle:{fill:"#aaa",stroke:"#aaa"},nextBtnStyle:{fill:"#aaa",stroke:"#aaa"},playBtnStyle:{fill:"#aaa",stroke:"#aaa",fillOpacity:.05},speedControllerStyle:Ko,timeTypeControllerStyle:Jo},ta={SINGLE:"single",RANGE:"range"},ea=function(){function t(t){this.controllerCfg=Object(x.deepMix)({},Qo,t),this.group=t.group,this.controllerGroup=this.group.addGroup({name:"controller-group"}),this.speedAxisY=[],this.currentSpeed=this.controllerCfg.speed,this.currentType=this.controllerCfg.defaultTimeType||ta.RANGE,this.fontFamily=t.fontFamily||"Arial, sans-serif",this.init()}return t.prototype.init=function(){this.renderPlayButton()},t.prototype.getNextMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t+n,e],["L",t,e+n],["Z",t,e-n],["M",t,e],["L",t-n,e-n],["L",t-n,e+n],["Z"]]},t.prototype.getPreMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t-n,e],["L",t,e+n],["L",t,e-n],["M",t,e],["L",t+n,e-n],["L",t+n,e+n],["Z"]]},t.prototype.renderPlayButton=function(){var t=this.controllerCfg,e=t.width,n=t.height,r=t.x,i=t.y,o=t.hideTimeTypeController,a=t.fill,s=void 0===a?"#aaa":a,l=t.stroke,u=void 0===l?"green":l,c=t.containerStyle,h=void 0===c?{}:c,d=Uo(Uo({},Xo),t.playBtnStyle||{}),f=Uo(Uo({},qo),t.preBtnStyle||{}),p=Uo(Uo({},Zo),t.nextBtnStyle||{}),g=n/2-5,v=i+10,m=this.controllerGroup.addShape("rect",{attrs:Uo({x:r,y:v,width:e,height:n,stroke:u,fill:s},h),name:"container-rect"});this.playButton?this.playButton.update({x:e/2,y:v,r:g}):this.playButton=new Wo({group:this.controllerGroup,x:e/2,y:v+g+5,r:g,isPlay:this.isPlay,style:d});var y=f.offsetX||0,b=f.offsetY||0,_=(f.scale||1)*g;this.controllerGroup.addShape("path",{attrs:Uo({path:this.getPreMarkerPath(e/2-5*g+y,v+g+5+b,.5*_)},f),name:"preStepBtn"});var x=p.offsetX||0,w=p.offsetY||0,S=(p.scale||1)*g;this.controllerGroup.addShape("path",{attrs:Uo({path:this.getNextMarkerPath(e/2+5*g+x,v+g+5+w,.5*S)},p),name:"nextStepBtn"}),m.toBack(),this.renderSpeedBtn(),o||this.renderToggleTime(),this.bindEvent();var C=this.controllerCfg.scale,k=void 0===C?1:C,O=this.controllerGroup.getCanvasBBox(),M=(O.maxX+O.minX)/2,E=(O.maxY+O.minY)/2,T=Yo([1,0,0,0,1,0,0,0,1],[["t",-M,-E],["s",k,k],["t",M,E]]);this.controllerGroup.setMatrix(T)},t.prototype.renderSpeedBtn=function(){var t=this.controllerCfg,e=t.y,n=t.width,r=t.hideTimeTypeController,i=Uo(Uo({},Ko),this.controllerCfg.speedControllerStyle||{}),o=i.scroller,a=void 0===o?{}:o,s=i.text,l=void 0===s?{}:s,u=i.pointer,c=void 0===u?{}:u,h=i.scale,d=void 0===h?1:h,f=i.offsetX,p=void 0===f?0:f,g=i.offsetY,v=void 0===g?0:g,m=this.controllerGroup.addGroup({name:"speed-group"});this.speedGroup=m;var y=[],b=5;this.speedAxisY=[19,22,26,32,39];for(var _=0;_<5;_++){var x=e+this.speedAxisY[_],w=n-(r?50:110);m.addShape("line",{attrs:Uo({x1:w,x2:w+15,y1:x,y2:x},a),speed:b,name:"speed-rect"}),this.speedAxisY[_]=x,y.push(b),b-=1}this.speedText=m.addShape("text",{attrs:Uo({x:n-(r?50:110)+20,y:this.speedAxisY[0]+4,text:"1.0X",fontFamily:this.fontFamily||"Arial, sans-serif"},l),name:"speed-text"}),this.speedPoint=m.addShape("path",{attrs:Uo({path:this.getPointerPath(n-(r?50:110),0),matrix:[1,0,0,0,1,0,0,this.speedAxisY[4],1]},c),name:"speed-pointer"});var S=this.speedGroup.getCanvasBBox(),C=(S.maxX+S.minX)/2,k=(S.maxY+S.minY)/2,O=this.speedGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];O=Yo(O,[["t",-C,-k],["s",d,d],["t",C+p*d,k+v*d]]),this.speedGroup.setMatrix(O)},t.prototype.getPointerPath=function(t,e){return[["M",t,e],["L",t-10,e-4],["L",t-10,e+4],["Z"]]},t.prototype.renderToggleTime=function(){var t,e,n=this.controllerCfg,r=n.width,i=n.defaultTimeType,o=Uo(Uo({},Jo),this.controllerCfg.timeTypeControllerStyle||{}),a=o.scale,s=void 0===a?1:a,l=o.offsetX,u=void 0===l?0:l,c=o.offsetY,h=void 0===c?0:c,d=o.box,f=void 0===d?{}:d,p=o.check,g=void 0===p?{}:p,v=o.text,m=void 0===v?{}:v;this.toggleGroup=this.controllerGroup.addGroup({name:"toggle-group"});var y=i===ta.SINGLE;this.toggleGroup.addShape("rect",{attrs:Uo({x:r-50,y:this.speedAxisY[0]+3.5},f),isChecked:y,name:"toggle-model"}),this.checkedIcon=this.toggleGroup.addShape("path",{attrs:Uo({path:[["M",r-50+3,this.speedAxisY[1]+6],["L",r-50+7,this.speedAxisY[1]+10],["L",r-50+12,this.speedAxisY[1]+4]]},g),capture:!1,name:"check-icon"}),y||this.checkedIcon.hide(),this.checkedText=this.toggleGroup.addShape("text",{attrs:Uo({text:y?(null===(t=this.controllerCfg)||void 0===t?void 0:t.timeRangeControllerText)||"时间范围":(null===(e=this.controllerCfg)||void 0===e?void 0:e.timePointControllerText)||"单一时间",x:r-50+15,y:this.speedAxisY[0]+4,fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"},m),name:"checked-text"});var b=this.toggleGroup.getCanvasBBox(),_=(b.maxX+b.minX)/2,x=(b.maxY+b.minY)/2,w=this.toggleGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];w=Yo(w,[["t",-_,-x],["s",s,s],["t",_+u*s,x+h*s]]),this.toggleGroup.setMatrix(w)},t.prototype.bindEvent=function(){var t=this;this.speedGroup.on("speed-rect:click",function(e){var n=e.target.attr("y1"),r=t.speedPoint.attr("matrix"),i=t.speedAxisY.indexOf(r[7]||0),o=t.speedAxisY.indexOf(n),a=t.speedAxisY[o]-t.speedAxisY[i];r=Yo(r,[["t",0,a]]),t.speedPoint.setMatrix(r),t.currentSpeed=t.speedAxisY.length-o,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit("timebarConfigChanged",{speed:t.currentSpeed,type:t.currentType})}),this.speedGroup.on("mousewheel",function(e){e.preventDefault();var n=t.speedPoint.attr("matrix")||[1,0,0,0,1,0,0,0,1],r=n[7],i=t.speedAxisY.indexOf(r);if(-1===i){var o=1/0;t.speedAxisY.forEach(function(t,e){var n=Math.abs(t-r);o>n&&(o=n,i=e)})}i=e.originalEvent.deltaY>0?Math.max(0,i-1):Math.min(t.speedAxisY.length-1,i+1);var a=t.speedAxisY[i]-r;n=Yo(n,[["t",0,a]]),t.speedPoint.setMatrix(n),t.currentSpeed=t.speedAxisY.length-i,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit("timebarConfigChanged",{speed:t.currentSpeed,type:t.currentType})}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(e){var n,r,i=e.target.get("isChecked");i?(t.checkedIcon.hide(),t.checkedText.attr("text",(null===(r=t.controllerCfg)||void 0===r?void 0:r.timePointControllerText)||"单一时间"),t.currentType=ta.RANGE):(t.checkedIcon.show(),t.checkedText.attr("text",(null===(n=t.controllerCfg)||void 0===n?void 0:n.timeRangeControllerText)||"时间范围"),t.currentType=ta.SINGLE),e.target.set("isChecked",!i),t.group.emit("timebarConfigChanged",{type:t.currentType,speed:t.currentSpeed})})},t.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},t}(),na=this&&this.__assign||function(){return(na=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},ra=P.a.transform,ia={fill:"#5B8FF9"},oa={fill:"#e6e8e9"},aa=function(){function t(t){this.frameCount=0,this.fontFamily="Arial, sans-serif";var e=t.graph,n=t.canvas,r=t.group,i=t.width,o=t.height,a=t.padding,s=t.data,l=t.start,u=t.end,c=t.x,h=void 0===c?0:c,d=t.y,f=void 0===d?0:d,p=t.tickLabelFormatter,g=t.selectedTickStyle,v=void 0===g?ia:g,m=t.unselectedTickStyle,y=void 0===m?oa:m,b=t.tooltipBackgroundColor,_=t.tooltipFomatter,x=t.tickLabelStyle,w=t.controllerCfg,S=void 0===w?{speed:1}:w;this.graph=e,this.group=r,this.sliceGroup=r.addGroup({name:"slice-group"}),this.canvas=n,this.width=i,this.height=o,this.padding=a,this.data=s,this.start=l,this.end=u,this.tickLabelFormatter=p,this.tickLabelStyle=x||{},this.selectedTickStyle=v,this.unselectedTickStyle=y,this.controllerCfg=S,this.currentSpeed=S.speed||1,this.x=h,this.y=f,this.tooltipBackgroundColor=b,this.tooltipFomatter=_,this.fontFamily="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlices(),this.initEvent()}return t.prototype.renderSlices=function(){var t=this,e=this,n=e.width,r=e.height,i=e.padding,o=e.data,a=e.start,s=e.end,l=e.tickLabelFormatter,u=e.selectedTickStyle,c=e.unselectedTickStyle,h=e.tickLabelStyle,d=n-2*i,f=r-(3*i+4+10)-2*i,p=o.length,g=(d-2*(p-1))/p;this.tickWidth=g;var v=this.sliceGroup,m=[],y=[],b=Math.round(p*a),_=Math.round(p*s);this.startTickRectId=b,this.endTickRectId=_;var w=h.rotate;delete h.rotate,o.forEach(function(e,r){var o=r>=b&&r<=_?u:c,a=v.addShape("rect",{attrs:na({x:i+r*(g+2),y:i,width:g,height:f},o),draggable:!0,name:"tick-rect-".concat(r)}),s=v.addShape("rect",{attrs:{x:i+r*g+2*(2*r-1)/2,y:i,width:0===r||r===p-1?g+1:g+2,height:f,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(r)});s.toFront();var d,S=a.getBBox(),C=(S.minX+S.maxX)/2;if(m.push({rect:a,pickRect:s,value:e.date,x:C,y:S.minY}),l?(d=l(e),!Object(x.isString)(d)&&d&&(d=e.date)):r%Math.round(p/10)==0&&(d=e.date),d){y.push(d);var k=S.maxY+2*i;v.addShape("line",{attrs:{stroke:"#BFBFBF",x1:C,y1:k,x2:C,y2:k+4},name:"tick-line"});var O=k+4+i,M=v.addShape("text",{attrs:na({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:C,y:O,textAlign:"center",text:d,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},h),capture:!1,name:"tick-label"}),E=M.getBBox();if(E.maxX>n?M.attr("textAlign","right"):E.minX<0&&M.attr("textAlign","left"),Object(x.isNumber)(w)&&10!==y.length){var T=ra([1,0,0,0,1,0,0,0,1],[["t",-C,-O],["r",w],["t",C-5,O+2]]);M.attr({textAlign:"left",matrix:T})}1===y.length?M.attr({textAlign:"left"}):10===y.length&&M.attr({textAlign:"right"})}}),this.tickRects=m;var S=this.group;this.currentSpeed=1,this.controllerBtnGroup=new ea(na({group:S,x:this.x,y:this.y+r+5,width:n,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},t.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",function(e){var n=e.target;if("rect"===n.get("type")&&n.get("name")){var r=parseInt(n.get("name").split("-")[2],10);if(!isNaN(r)){var i=t.tickRects,o=t.unselectedTickStyle;i.forEach(function(t){t.rect.attr(o)});var a=t.selectedTickStyle;i[r].rect.attr(a),t.startTickRectId=r,t.endTickRectId=r;var s=r/i.length;t.graph.emit("valuechange",{value:[s,s]})}}}),e.on("dragstart",function(e){var n=t.tickRects,r=t.unselectedTickStyle;n.forEach(function(t){t.rect.attr(r)});var i=e.target,o=parseInt(i.get("name").split("-")[2],10),a=t.selectedTickStyle;n[o].rect.attr(a),t.startTickRectId=o;var s=o/n.length;t.graph.emit("valuechange",{value:[s,s]}),t.dragging=!0}),e.on("dragover",function(e){if(t.dragging&&"rect"===e.target.get("type")){for(var n=parseInt(e.target.get("name").split("-")[2],10),r=t.startTickRectId,i=t.tickRects,o=t.selectedTickStyle,a=t.unselectedTickStyle,s=0;s<i.length;s++){var l=s>=r&&s<=n?o:a;i[s].rect.attr(l)}var u=i.length;t.endTickRectId=n;var c=r/u,h=n/u;t.graph.emit("valuechange",{value:[c,h]})}}),e.on("drop",function(e){if(t.dragging&&(t.dragging=!1,"rect"===e.target.get("type"))){var n=t.startTickRectId,r=parseInt(e.target.get("name").split("-")[2],10);if(!(r<n)){var i=t.selectedTickStyle,o=t.tickRects;o[r].rect.attr(i),t.endTickRectId=r;var a=o.length,s=n/a,l=r/a;t.graph.emit("valuechange",{value:[s,l]})}}});var n=this.tooltipBackgroundColor,r=this.tooltipFomatter,i=this.canvas,o=new Go({container:i.get("container"),backgroundColor:n}),a=this.tickRects;a.forEach(function(t){var e=t.pickRect;e.on("mouseenter",function(t){var e=t.target;if("rect"===e.get("type")){var n=parseInt(e.get("name").split("-")[2],10),s=i.getClientByPoint(a[n].x,a[n].y);o.show({x:a[n].x,y:a[n].y,clientX:s.x,clientY:s.y,text:r?r(a[n].value):a[n].value})}}),e.on("mouseleave",function(t){o.hide()})});var s=this.group;s.on("".concat("playPauseBtn",":click"),function(){t.isPlay=!t.isPlay,t.changePlayStatus()}),s.on("".concat("nextStepBtn",":click"),function(){t.updateStartEnd(1)}),s.on("".concat("preStepBtn",":click"),function(){t.updateStartEnd(-1)}),s.on("timebarConfigChanged",function(e){e.type;var n=e.speed;t.currentSpeed=n})},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit("timebarstartplay",null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit("timebarendplay",null))},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame(function(){var e=t.currentSpeed;t.frameCount%(60/e)==0&&(t.frameCount=0,t.updateStartEnd(1)),t.frameCount++,t.isPlay&&(t.playHandler=t.startPlay())}):void 0},t.prototype.updateStartEnd=function(t){var e=this.tickRects,n=e.length,r=this.unselectedTickStyle,i=this.selectedTickStyle,o=this.endTickRectId;if(t>0?this.endTickRectId++:(e[this.endTickRectId].rect.attr(r),this.endTickRectId--),o!==this.startTickRectId)this.endTickRectId<this.startTickRectId&&(this.startTickRectId=this.endTickRectId);else{for(var a=this.startTickRectId;a<=this.endTickRectId-1;a++)e[a].rect.attr(r);this.startTickRectId=this.endTickRectId}if(e[this.endTickRectId]){e[this.endTickRectId].rect.attr(i);var s=this.startTickRectId/n,l=this.endTickRectId/n;this.graph.emit("valuechange",{value:[s,l]})}},t.prototype.destory=function(){var t=this.sliceGroup;t.off("click"),t.off("dragstart"),t.off("dragover"),t.off("drop"),this.tickRects.forEach(function(t){var e=t.pickRect;e.off("mouseenter"),e.off("mouseleave")}),this.tickRects.length=0,t.off("".concat("playPauseBtn",":click")),t.off("".concat("nextStepBtn",":click")),t.off("".concat("preStepBtn",":click")),t.off("timebarConfigChanged"),this.sliceGroup.destroy()},t}(),sa={};function la(t,e){sa[t]=e}var ua=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(x.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(x.map)(this.ticks,function(e,n){return Object(x.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}})},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return Object(x.isNil)(r)||!Object(x.isFunction)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(x.assign)(this,this.__cfg__),this.setDomain(),Object(x.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(x.isString)(t)){var n=sa[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(x.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(x.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),ca=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(et.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Object(x.isNumber)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e;return Object(x.isNumber)(e)&&!this.values.includes(e)&&(i=this.values[i]),t.prototype.getText.apply(this,Object(et.__spreadArrays)([i],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(x.isNil)(this.getConfig("min"))&&(this.min=0),Object(x.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(ua),ha=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,da="[^\\s]+",fa=/\[([^]*?)\]/gm;function pa(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var ga=function(t){return function(e,n){var r=n[t].map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase());return r>-1?r:null}};function va(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}var ma=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ya=["January","February","March","April","May","June","July","August","September","October","November","December"],ba=pa(ya,3),_a={dayNamesShort:pa(ma,3),dayNames:ma,monthNamesShort:ba,monthNames:ya,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},xa=va({},_a),wa=function(t){return xa=va(xa,t)},Sa=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ca=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},ka={D:function(t){return String(t.getDate())},DD:function(t){return Ca(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Ca(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Ca(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Ca(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Ca(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Ca(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Ca(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Ca(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Ca(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Ca(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Ca(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ca(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ca(Math.floor(Math.abs(e)/60),2)+":"+Ca(Math.abs(e)%60,2)}},Oa=function(t){return+t-1},Ma=[null,"\\d\\d?"],Ea=[null,da],Ta=["isPm",da,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],Aa=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],Ia={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+da,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",Oa],MM:["month","\\d\\d",Oa],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:Ma,dd:Ma,ddd:Ea,dddd:Ea,MMM:["month",da,ga("monthNamesShort")],MMMM:["month",da,ga("monthNames")],a:Ta,A:Ta,ZZ:Aa,Z:Aa},Da={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Pa=function(t){return va(Da,t)},La=function(t,e,n){if(void 0===e&&(e=Da.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=Da[e]||e).replace(fa,function(t,e){return r.push(e),"@@@"});var i=va(va({},xa),n);return(e=e.replace(ha,function(e){return ka[e](t,i)})).replace(/@@@/g,function(){return r.shift()})};function ja(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=Da[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(fa,function(t,e){return o.push(Sa(e)),"@@@"}),s={},l={};a=Sa(a).replace(ha,function(t){var e=Ia[t],n=e[0],r=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(l[o]=!0),i.push(e),"("+r+")"}),Object.keys(l).forEach(function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")}),a=a.replace(/@@@/g,function(){return o.shift()});var u=t.match(new RegExp(a,"i"));if(!u)return null;for(var c,h=va(va({},xa),n),d=1;d<u.length;d++){var f=i[d-1],p=f[0],g=f[2],v=g?g(u[d],h):+u[d];if(null==v)return null;r[p]=v}if(1===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:0===r.isPm&&12==+r.hour&&(r.hour=0),null==r.timezoneOffset){c=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond);for(var m=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],y=(d=0,m.length);d<y;d++)if(s[m[d][0]]&&r[m[d][0]]!==c[m[d][1]]())return null}else if(c=new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond)),r.month>11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return c}var Na={format:La,parse:ja,defaultI18n:_a,setGlobalDateI18n:wa,setGlobalDateMasks:Pa},Ra=function(t){return function(e,n,r,i){for(var o=Object(x.isNil)(r)?0:r,a=Object(x.isNil)(i)?e.length:i;o<a;){var s=o+a>>>1;t(e[s])>n?a=s:o=s+1}return o}},Ba="format";function Fa(t,e){return(p[Ba]||Na[Ba])(t,e)}function za(t){return Object(x.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(x.isDate)(t)&&(t=t.getTime()),t}var Va=1e3,$a=60*Va,Ga=60*$a,Ha=24*Ga,Wa=31*Ha,Ua=365*Ha,Ya=[["HH:mm:ss",Va],["HH:mm:ss",10*Va],["HH:mm:ss",30*Va],["HH:mm",$a],["HH:mm",10*$a],["HH:mm",30*$a],["HH",Ga],["HH",6*Ga],["HH",12*Ga],["YYYY-MM-DD",Ha],["YYYY-MM-DD",4*Ha],["YYYY-WW",7*Ha],["YYYY-MM",Wa],["YYYY-MM",4*Wa],["YYYY-MM",6*Wa],["YYYY",380*Ha]];var Xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(et.__extends)(e,t),e.prototype.translate=function(t){t=za(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(x.isNumber)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):Fa(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(x.each)(e,function(t,n){e[n]=za(t)}),e.sort(function(t,e){return t-e}),t.prototype.setDomain.call(this)},e}(ca),qa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(et.__extends)(e,t),e.prototype.scale=function(t){if(Object(x.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(x.head)(e),r=Object(x.last)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(x.isNil)(this.minLimit)||(this.min=n),Object(x.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(x.getRange)(this.values),e=t.min,n=t.max;Object(x.isNil)(this.min)&&(this.min=e),Object(x.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(x.filter)(n,function(t){return t>=e.min&&t<=e.max})),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(ua),Za=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(et.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(qa);function Ka(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function Ja(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function Qa(t,e,n){Object(x.isNil)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(x.each)(t,function(t){t>0&&t<r&&(r=t)}),r===n&&(r=n/e),r>1&&(r=1),r}var ts=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(et.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=Ja(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(r-(e=Ja(n,a/n)))*o;if(t<s)return t/s*a}else e=Ja(n,this.min);var l=(t-i)/o*(r-e)+e;return Math.pow(n,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=Qa(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/(Ja(r,e)-Ja(r,n)):(Ja(r,t)-Ja(r,n))/(Ja(r,e)-Ja(r,n))},e}(qa),es=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(et.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=Ka(n,this.max),i=Ka(n,this.min),o=e*(r-i)+i,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(Ka(r,t)-Ka(r,n))/(Ka(r,e)-Ka(r,n))},e}(qa),ns=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(et.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):Fa(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(x.isString)(n)||Object(x.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return za(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(x.isNil)(e)&&Object(x.isNumber)(e)||(this.min=this.translate(this.min)),Object(x.isNil)(n)&&Object(x.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,a=0;Object(x.each)(t,function(t){var e=za(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),a<e&&(a=e),r.push(e)}),t.length>1&&(this.minTickInterval=o-i),Object(x.isNil)(e)&&(this.min=i),Object(x.isNil)(n)&&(this.max=a)}},e}(Za),rs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(et.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return Object(x.last)(e);if(i<0)return Object(x.head)(e);var o=e[i],a=i/(n-1);return o+(r-a)/((i+1)/(n-1)-a)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(x.last)(e)!==this.max&&e.push(this.max),Object(x.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(x.head)(e))return 0;if(t>Object(x.last)(e))return 1;var n=0;return Object(x.each)(e,function(e,r){if(!(t>=e))return!1;n=r}),n/(e.length-1)},e}(qa),is=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(et.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(rs),os={};function as(t,e){if(function(t){return os[t]}(t))throw new Error("type '"+t+"' existed.");os[t]=e}var ss=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(et.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(x.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(ua);function ls(t){var e=t.values,n=t.tickInterval,r=t.tickCount,i=t.showLast;if(Object(x.isNumber)(n)){var o=Object(x.filter)(e,function(t,e){return e%n==0}),a=Object(x.last)(e);return i&&Object(x.last)(o)!==a&&o.push(a),o}var s=e.length,l=t.min,u=t.max;if(Object(x.isNil)(l)&&(l=0),Object(x.isNil)(u)&&(u=e.length-1),!Object(x.isNumber)(r)||r>=s)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var c=1===r?s:Math.floor(s/(r-1)),h=[],d=l,f=0;f<r&&!(d>=u);f++)d=Math.min(l+f*c,u),f===r-1&&i?h.push(e[u]):h.push(e[d]);return h}var us=Math.sqrt(50),cs=Math.sqrt(10),hs=Math.sqrt(2),ds=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(s=(e=[l,s])[0],l=e[1],o=(n=[a,o])[0],a=n[1]),(r=fs(s,l,t))>0?r=fs(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,t):r<0&&(r=fs(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(a=fs(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;r&&o.reverse();return o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function fs(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=us?10:o>=cs?5:o>=hs?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=us?10:o>=cs?5:o>=hs?2:1)}function ps(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function gs(t,e,n){var r=ps(t,n,"floor"),i=ps(e,n,"ceil");r=Object(x.fixedBase)(r,n),i=Object(x.fixedBase)(i,n);for(var o=[],a=Math.max((i-r)/(Math.pow(2,12)-1),n),s=r;s<=i;s+=a){var l=Object(x.fixedBase)(s,a);o.push(l)}return{min:r,max:i,ticks:o}}function vs(t,e,n){var r,i=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,l=t.tickCount,u=void 0===l?5:l,c=Object(x.isNil)(i)?Object(x.isNil)(e)?a:e:i,h=Object(x.isNil)(o)?Object(x.isNil)(n)?s:n:o;if(c>h&&(h=(r=[c,h])[0],c=r[1]),u<=2)return[c,h];for(var d=(h-c)/(u-1),f=[],p=0;p<u;p++)f.push(c+d*p);return f}function ms(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var ys=[1,5,2,2.5,4,3],bs=100*Number.EPSILON;function _s(t,e,n,r,i,o){var a=Object(x.size)(e),s=Object(x.indexOf)(e,t),l=0,u=function(t,e){return(t%e+e)%e}(r,o);return(u<bs||o-u<bs)&&r<=0&&i>=0&&(l=1),1-s/(a-1)-n+l}function xs(t,e,n){var r=Object(x.size)(e);return 1-Object(x.indexOf)(e,t)/(r-1)-n+1}function ws(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function Ss(t,e){return t>=e?2-(t-1)/(e-1):1}function Cs(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function ks(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function Os(t,e,n,r,i,o){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=ys),void 0===o&&(o=[.25,.2,.5,.05]);var a=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!a)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===a)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=(e-t)/(w=n||5);return{min:t,max:e,ticks:Array(w).fill(null).map(function(e,n){return ms(t+s*n)})}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var c=0;c<i.length;c+=1){var h=i[c],d=xs(h,i,u);if(o[0]*d+o[1]+o[2]+o[3]<l.score){u=1/0;break}for(var f=2;f<1/0;){var p=Ss(f,a);if(o[0]*d+o[1]+o[2]*p+o[3]<l.score)break;for(var g=(e-t)/(f+1)/u/h,v=Math.ceil(Math.log10(g));v<1/0;){var m=u*h*Math.pow(10,v),y=ks(t,e,m*(f-1));if(o[0]*d+o[1]*y+o[2]*p+o[3]<l.score)break;var b=Math.floor(e/m)*u-(f-1)*u,_=Math.ceil(t/m)*u;if(b<=_)for(var w=_-b,S=0;S<=w;S+=1){var C=(b+S)*(m/u),k=C+m*(f-1),O=m,M=_s(h,i,u,C,k,O),E=Cs(t,e,C,k),T=ws(f,a,t,e,C,k),A=o[0]*M+o[1]*E+o[2]*T+1*o[3];A>l.score&&(!r||C<=t&&k>=e)&&(l.lmin=C,l.lmax=k,l.lstep=O,l.score=A)}v+=1}f+=1}}u+=1}var I=ms(l.lmax),D=ms(l.lmin),P=ms(l.lstep),L=Math.floor(function(t){return Math.round(1e12*t)/1e12}((I-D)/P))+1,j=new Array(L);j[0]=ms(D);for(c=1;c<L;c++)j[c]=ms(j[c-1]+P);return{min:Math.min(t,Object(x.head)(j)),max:Math.max(e,Object(x.last)(j)),ticks:j}}function Ms(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=(e-t)/r,o=Math.pow(10,Math.floor(Math.log10(i))),a=o;2*o-i<1.5*(i-a)&&5*o-i<2.75*(i-(a=2*o))&&10*o-i<1.5*(i-(a=5*o))&&(a=10*o);for(var s=Math.ceil(e/a),l=Math.floor(t/a),u=Math.max(s*a,e),c=Math.min(l*a,t),h=Math.floor((u-c)/a)+1,d=new Array(h),f=0;f<h;f++)d[f]=ms(c+f*a);return{min:c,max:u,ticks:d}}function Es(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function Ts(t){return new Date(t).getFullYear()}function As(t){return new Date(t,0,1).getTime()}function Is(t){return new Date(t).getMonth()}function Ds(t,e){return new Date(t,e,1).getTime()}la("cat",ls),la("time-cat",function(t){return ls(Object(et.__assign)({showLast:!0},t))}),la("wilkinson-extended",function(t){var e=t.min,n=t.max,r=t.tickCount,i=t.nice,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,l=Os(e,n,r,i).ticks;return Object(x.isNil)(a)&&Object(x.isNil)(s)?o?gs(e,n,o).ticks:l:vs(t,Object(x.head)(l),Object(x.last)(l))}),la("r-pretty",function(t){var e=t.min,n=t.max,r=t.tickCount,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Ms(e,n,r).ticks;return Object(x.isNil)(o)&&Object(x.isNil)(a)?i?gs(e,n,i).ticks:s:vs(t,Object(x.head)(s),Object(x.last)(s))}),la("time",function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickInterval,o=t.tickCount;if(i)o=Math.ceil((n-e)/i);else{var a=(n-e)/(i=function(t,e,n){var r=(e-t)/n,i=Ra(function(t){return t[1]})(Ya,r)-1,o=Ya[i];return i<0?o=Ya[0]:i>=Ya.length&&(o=Object(x.last)(Ya)),o}(e,n,o)[1])/o;a>1&&(i*=Math.ceil(a)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var s=[],l=e;l<n+i;l+=i)s.push(l);return s}),la("time-pretty",function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/i,r&&o<r&&(o=r)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var s=Ts(e);if(o>Ua)for(var l=Ts(n),u=Math.ceil(o/Ua),c=s;c<=l+u;c+=u)a.push(As(c));else if(o>Wa){var h=Math.ceil(o/Wa),d=Is(e),f=function(t,e){var n=Ts(t),r=Ts(e),i=Is(t);return 12*(r-n)+(Is(e)-i)%12}(e,n);for(c=0;c<=f+h;c+=h)a.push(Ds(s,c+d))}else if(o>Ha){var p=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate(),m=Math.ceil(o/Ha),y=function(t,e){return Math.ceil((e-t)/Ha)}(e,n);for(c=0;c<y+m;c+=m)a.push(new Date(p,g,v+c).getTime())}else if(o>Ga){p=(b=new Date(e)).getFullYear(),g=b.getMonth(),m=b.getDate();var b,_=b.getHours(),x=Math.ceil(o/Ga),w=function(t,e){return Math.ceil((e-t)/Ga)}(e,n);for(c=0;c<=w+x;c+=x)a.push(new Date(p,g,m,_+c).getTime())}else if(o>$a){var S=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),C=Math.ceil(o/$a);for(c=0;c<=S+C;c+=C)a.push(e+c*$a)}else{var k=o;k<Va&&(k=Va);var O=Math.floor(e/Va)*Va,M=Math.ceil((n-e)/Va),E=Math.ceil(k/Va);for(c=0;c<M+E;c+=E)a.push(O+c*Va)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a}),la("log",function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=Ja(n,o);if(i>0)e=Math.floor(Ja(n,i));else{var l=Qa(a,n,o);e=Math.floor(Ja(n,l))}for(var u=s-e,c=Math.ceil(u/r),h=[],d=e;d<s+c;d+=c)h.push(Math.pow(n,d));return i<=0&&h.unshift(0),h}),la("pow",function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(Ka(e,t.max));return Ms(Math.floor(Ka(e,t.min)),r,n).ticks.map(function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n})}),la("quantile",function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort(function(t,e){return t-e}),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(Es(r,a))}return i}),la("d3-linear",function(t){var e=t.min,n=t.max,r=t.tickInterval,i=t.minLimit,o=t.maxLimit,a=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new ds;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}(t);return Object(x.isNil)(i)&&Object(x.isNil)(o)?r?gs(e,n,r).ticks:a:vs(t,Object(x.head)(a),Object(x.last)(a))}),as("cat",ca),as("category",ca),as("identity",ss),as("linear",Za),as("log",ts),as("pow",es),as("time",ns),as("timeCat",Xa),as("quantize",rs),as("quantile",is);var Ps=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function Ls(t){return function(t){return Object(x.map)(t,function(t,e){return[0===e?"M":"L",t[0],t[1]]})}(t)}function js(t,e,n,r){void 0===r&&(r=!0);var i=new Za({values:t}),o=new ca({values:Object(x.map)(t,function(t,e){return e})}),a=Object(x.map)(t,function(t,r){return[o.scale(r)*e,n-i.scale(t)*n]});return r?function(t){if(t.length<=2)return Ls(t);var e=[];Object(x.each)(t,function(t){Object(x.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])});var n=Wn.a(e,!1),r=Object(x.head)(t),i=r[0],o=r[1];return n.unshift(["M",i,o]),n}(a):Ls(a)}function Ns(t,e,n,r){var i=Ps([],t,!0),o=function(t,e){var n=new Za({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e}(r,n);return i.push(["L",e,o]),i.push(["L",0,o]),i.push(["Z"]),i}function Rs(t){var e,n,r,i,o=t.x,a=t.y,s=t.y0,l=t.size;Object(x.isArray)(a)?(e=a[0],n=a[1]):(e=s,n=a),Object(x.isArray)(o)?(r=o[0],i=o[1]):(r=o-l/2,i=o+l/2);var u=[{x:r,y:e},{x:r,y:n}];return u.push({x:i,y:n},{x:i,y:e}),u}var Bs=this&&this.__assign||function(){return(Bs=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Fs={stroke:"#C5C5C5",strokeOpacity:.85},zs={fill:"#CACED4",opacity:.85},Vs=function(){function t(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.width,a=void 0===o?200:o,s=t.height,l=void 0===s?26:s,u=t.smooth,c=void 0===u||u,h=t.isArea,d=void 0!==h&&h,f=t.data,p=void 0===f?[]:f,g=t.lineStyle,v=t.areaStyle,m=t.group,y=t.interval,b=void 0===y?null:y;this.group=m,this.x=n,this.y=i,this.width=a,this.height=l,this.data=p,this.smooth=c,this.isArea=d,this.lineStyle=Object.assign({},Fs,g),this.areaStyle=Object.assign({},zs,v),this.intervalConfig=b,this.renderLine()}return t.prototype.renderLine=function(){var t=this,e=t.x,n=t.y,r=t.width,i=t.height,o=(t.barWidth,t.data),a=t.smooth,s=t.isArea,l=t.lineStyle,u=t.areaStyle,c=this.group.addGroup({name:"trend-group"});if(o){var h=js(o,r,i,a);if(c.addShape("path",{attrs:Bs({path:h},l),name:"trend-line"}),s){var d=Ns(h,r,i,o);c.addShape("path",{attrs:Bs({path:d},u),name:"trend-area"})}}this.intervalConfig&&c.addShape("path",{attrs:Bs({path:function(t,e,n,r){void 0===r&&(r=5);for(var i=new Za({values:t}),o=new ca({values:Object(x.map)(t,function(t,e){return e})}),a=Object(x.map)(t,function(t,r){return[o.scale(r)*e,n-i.scale(t)*n]}),s=[],l=0;l<a.length;l++){var u=a[l],c=Rs({x:u[0],y:u[1],y0:n,size:r});s.push.apply(s,c)}return function(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}(s)}(this.intervalConfig.data,r,i,this.intervalConfig.style.barWidth)},this.intervalConfig.style),name:"trend-interval"}),c.move(e,n)},t.prototype.destory=function(){this.group.destroy()},t}(),$s=this&&this.__assign||function(){return($s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Gs={fill:"#1890ff",stroke:"#1890ff",type:"trend",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},Hs={fill:"#fff",stroke:"#1890ff",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},Ws=function(){function t(t){var e=t.group,n=t.name,r=t.type,i=t.x,o=void 0===i?0:i,a=t.y,s=void 0===a?0:a,l=t.width,u=void 0===l?2:l,c=t.height,h=void 0===c?24:c,d=t.style,f=void 0===d?{}:d;this.group=e,this.name=n,this.handleType=r,this.x=o,this.y=s,this.width=u,this.height=h,"trend"===r?this.style=$s($s({},Gs),f):"simple"===r&&(this.style=$s($s({},Hs),f)),this.renderHandle()}return t.prototype.setX=function(t){this.setXY(t,void 0)},t.prototype.setY=function(t){this.setXY(void 0,t)},t.prototype.setXY=function(t,e){Object(x.isNumber)(t)&&(this.x=t),Object(x.isNumber)(e)&&(this.y=e),this.updateXY()},t.prototype.renderHandle=function(){var t=this.width,e=this.height,n=this.style,r=this.name,i=n.fill,o=n.stroke,a=n.radius,s=n.opacity,l=n.cursor;this.handleGroup=this.group.addGroup(),"trend"===this.handleType?(this.verticalLine=this.handleGroup.addShape("rect",{attrs:{x:0,y:0,width:t,height:e,fill:i,stroke:o,radius:a,opacity:s,cursor:l},name:"".concat(r,"-handler")}),this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:t/2,y:0,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:l,lineAppendWidth:12},name:"".concat(r,"-handler")}),this.bottomCircle=this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:l},name:"".concat(r,"-handler")})):"simple"===this.handleType&&(this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e/2,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:l,lineWidth:2},name:"".concat(r,"-handler")})),this.updateXY(),"trend"===this.handleType?this.bindTrendEvents():"simple"===this.handleType&&this.bindSimpleEvents()},t.prototype.bindSimpleEvents=function(){var t=this,e=this.name;this.handleGroup.on("".concat(e,"-handler:mouseenter"),function(){var e=t.style.highLightFill;t.topCircle.attr("fill",e)}),this.handleGroup.on("".concat(e,"-handler:mouseleave"),function(){var e=t.style.fill;t.topCircle.attr("fill",e)})},t.prototype.bindTrendEvents=function(){var t=this,e=this.name;this.handleGroup.on("".concat(e,"-handler:mouseenter"),function(){var e=t.style.highLightFill;t.verticalLine.attr("fill",e),t.topCircle.attr("fill",e),t.bottomCircle.attr("fill",e)}),this.handleGroup.on("".concat(e,"-handler:mouseleave"),function(){var e=t.style.fill;t.verticalLine.attr("fill",e),t.topCircle.attr("fill",e),t.bottomCircle.attr("fill",e)})},t.prototype.show=function(){this.handleGroup.show()},t.prototype.hide=function(){this.handleGroup.hide()},t.prototype.updateXY=function(){this.handleGroup.setMatrix([1,0,0,0,1,0,this.x,this.y,1])},t}(),Us=this&&this.__assign||function(){return(Us=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ys=P.a.transform,Xs={fill:"#416180",opacity:.05},qs={fill:"#416180",opacity:.15,radius:5},Zs={fill:"#5B8FF9",opacity:.3,cursor:"grab"},Ks={width:2,height:24},Js={textBaseline:"middle",fill:"#000",opacity:.45},Qs={textAlign:"center",textBaseline:"top",fill:"#607889",opacity:.35},tl={lineWidth:1,stroke:"#ccc"},el=function(){function t(t){var e=this;this.prevX=0,this.onMouseDown=function(t){return function(n){e.currentHandler=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Object(x.get)(r,"touches.0.pageX",r.pageX);var i=e.canvas.get("container");i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},this.onMouseMove=function(t){t.stopPropagation(),t.preventDefault();var n=Object(x.get)(t,"touches.0.pageX",t.pageX),r=n-e.prevX,i=e.adjustOffsetRange(r/e.width);e.updateStartEnd(i),e.updateUI(),e.prevX=n},this.onMouseUp=function(){e.currentHandler&&(e.currentHandler=void 0);var t=e.canvas.get("container");t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))};var n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.width,s=void 0===a?100:a,l=t.height,u=t.padding,c=void 0===u?10:u,h=t.trendCfg,d=t.controllerCfg,f=void 0===d?{speed:1}:d,p=t.backgroundStyle,g=void 0===p?{}:p,v=t.foregroundStyle,m=void 0===v?{}:v,y=t.handlerStyle,b=void 0===y?{}:y,_=t.textStyle,w=void 0===_?{}:_,S=t.start,C=void 0===S?0:S,k=t.end,O=void 0===k?1:k,M=t.minText,E=void 0===M?"":M,T=t.maxText,A=void 0===T?"":T,I=t.group,D=t.graph,P=t.canvas,L=t.tick,j=void 0===L?{tickLabelStyle:{},tickLineStyle:{},tickLabelFormatter:function(t){return t},ticks:[]}:L,N=t.type;this.graph=D,this.canvas=P,this.group=I,this.timeBarType=N,this.x=r,this.y=o,this.width=s,this.height=l,this.padding=c,this.ticks=j.ticks,this.trendCfg=h,this.controllerCfg=f,this.currentSpeed=f.speed||1,this.tickLabelFormatter=j.tickLabelFormatter,"trend"===N?this.backgroundStyle=Us(Us({},Xs),g):"simple"===N&&(this.backgroundStyle=Us(Us({},qs),g)),this.foregroundStyle=Us(Us({},Zs),m),this.handlerStyle=Us(Us({},Ks),b),this.textStyle=Us(Us({},Js),w),this.tickLabelStyle=Us(Us({},Qs),j.tickLabelStyle),this.tickLineStyle=Us(Us({},tl),j.tickLineStyle),this.currentMode=f.defaultTimeType||ta.RANGE,this.start=C,this.end=O,this.minText=E,this.maxText=A,this.fontFamily="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlider()}return t.prototype.update=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.minText,a=t.maxText,s=t.start,l=t.end;this.start=Math.min(1,Math.max(s,0)),this.end=Math.min(1,Math.max(l,0)),Object(x.assign)(this,{x:e,y:n,width:r,height:i,minText:o,maxText:a}),this.updateUI()},t.prototype.setText=function(t,e){this.minTextShape.attr("text",t),this.maxTextShape.attr("text",e)},t.prototype.renderSlider=function(){var t=this,e=this.width,n=this.height,r=this.timeBarType;if("trend"===r&&Object(x.size)(Object(x.get)(this.trendCfg,"data"))){var i=new Vs(Us(Us({x:this.x,y:this.y,width:e,height:n},this.trendCfg),{group:this.group}));this.trendComponent=i}var o=this.group.addGroup({name:"slider-group"});o.addShape("rect",{attrs:Us({x:0,y:0,width:e,height:n},this.backgroundStyle),name:"background"});var a=this.group.addGroup();"trend"===r?(this.minTextShape=a.addShape("text",{attrs:Us({x:0,y:n/2+this.y,textAlign:"right",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"min-text-shape"}),this.maxTextShape=a.addShape("text",{attrs:Us({y:n/2+this.y,textAlign:"left",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"max-text-shape"})):(this.minTextShape=a.addShape("text",{attrs:Us({x:0,y:this.y-10,textAlign:"center",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"min-text-shape"}),this.maxTextShape=a.addShape("text",{attrs:Us({y:this.y-10,textAlign:"center",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"max-text-shape"})),this.foregroundShape=this.group.addGroup().addShape("rect",{attrs:Us({x:0,y:this.y,height:n},this.foregroundStyle),name:"foreground-shape"}),this.foregroundShape.on("mousedown",function(t){t.target.attr("cursor","grabbing")}),this.foregroundShape.on("mouseup",function(e){e.target.attr("cursor",t.foregroundStyle.cursor||"grab")});var s=Object(x.get)(this.handlerStyle,"width",2),l=Object(x.get)(this.handlerStyle,"height",24),u=this.group.addGroup({name:"minHandlerShape"});this.minHandlerShape=new Ws({name:"minHandlerShape",group:u,type:r,x:this.x,y:this.y,width:s,height:l,style:this.handlerStyle});var c=this.group.addGroup({name:"maxHandlerShape"});this.maxHandlerShape=new Ws({name:"maxHandlerShape",group:c,type:r,x:this.x,y:this.y,width:s,height:l,style:this.handlerStyle});var h=this.ticks,d=e/(h.length-1);this.tickPosList=[],this.textList&&this.textList.length&&this.textList.forEach(function(t){t.destroy()});var f=-1/0,p=this.tickLabelStyle.rotate;delete this.tickLabelStyle.rotate,this.textList=h.map(function(e,r){var i;t.tickPosList.push(t.x+r*d),t.tickLabelFormatter?(i=t.tickLabelFormatter(e),!Object(x.isString)(i)&&i&&(i=e.date)):i=e.date;var o=t.x+r*d,a=t.y+n+5,s=t.group.addShape("text",{attrs:Us({x:o,y:a,text:i,fontFamily:t.fontFamily||"Arial, sans-serif"},t.tickLabelStyle),name:"tick-label"});if(Object(x.isNumber)(p)&&r!==h.length-1){var l=Ys([1,0,0,0,1,0,0,0,1],[["t",-o,-a],["r",p],["t",o-5,a+2]]);s.attr({textAlign:"left",matrix:l})}0===r?s.attr({textAlign:"left"}):r!==h.length-1&&s.attr({textAlign:"right"});var u=t.group.addShape("line",{attrs:Us({x1:t.x+r*d,y1:t.y+n+2,x2:t.x+r*d,y2:t.y+n+6},t.tickLineStyle),name:"tick-line"});u.toBack();var c=s.getBBox();return c.minX>f?(s.show(),u.show(),f=c.minX+c.width+10):(s.hide(),u.hide()),s}),this.controllerBtnGroup=new ea(Us({group:this.group,x:this.x,y:this.y+n+25,width:e,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),o.move(this.x,this.y),this.bindEvents(),this.currentMode===ta.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},t.prototype.bindEvents=function(){var t=this,e=this.group.find(function(t){return"minHandlerShape"===t.get("name")});e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var n=this.group.find(function(t){return"maxHandlerShape"===t.get("name")});n&&(n.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),n.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat("playPauseBtn",":click"),function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()}),this.group.on("".concat("nextStepBtn",":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()}),this.group.on("".concat("preStepBtn",":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()}),this.group.on("timebarConfigChanged",function(e){var n=e.type,r=e.speed;t.currentSpeed=r,t.currentMode=n,n===ta.SINGLE?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):n===ta.RANGE&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())})},t.prototype.adjustTickIndex=function(t){for(var e=0;e<this.tickPosList.length-1;e++)if(this.tickPosList[e]<=t&&t<=this.tickPosList[e+1])return Math.abs(this.tickPosList[e]-t)<Math.abs(t-this.tickPosList[e+1])?e:e+1;return 0},t.prototype.adjustOffsetRange=function(t){switch(this.currentHandler){case this.minHandlerShape:var e=0-this.start,n=1-this.start;return Math.min(n,Math.max(e,t));case this.maxHandlerShape:e=0-this.end,n=1-this.end;return Math.min(n,Math.max(e,t));case this.foregroundShape:e=0-this.start,n=1-this.end;return Math.min(n,Math.max(e,t));default:return 0}},t.prototype.updateStartEnd=function(t){var e=this.ticks[this.adjustTickIndex(this.start*this.width)],n=this.ticks[this.adjustTickIndex(this.end*this.width)];if(!this.currentHandler)return this.minText=this.tickLabelFormatter?this.tickLabelFormatter(e):null===e||void 0===e?void 0:e.date,void(this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(n):null===n||void 0===n?void 0:n.date);switch(this.currentHandler){case this.minHandlerShape:this.maxText=this.maxTextShape.attr("text"),this.start+=t,this.minText=this.tickLabelFormatter?this.tickLabelFormatter(e):e.date;break;case this.maxHandlerShape:this.minText=this.minTextShape.attr("text"),this.end+=t,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(n):n.date;break;case this.foregroundShape:this.start+=t,this.end+=t,this.minText=this.tickLabelFormatter?this.tickLabelFormatter(e):e.date,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(n):n.date}},t.prototype.updateUI=function(){var t=this;this.start<0&&(this.start=0),this.start>1&&(this.start=1),this.end>1&&(this.end=1),this.end<0&&(this.end=0);var e=this.x+this.start*this.width,n=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",n-e);var r=Object(x.get)(this.handlerStyle,"width",2);this.setText(this.minText,this.maxText);var i=this.dodgeText([e,n]),o=i[0],a=i[1];this.minHandlerShape.setX(e-r/2),Object(x.each)(o,function(e,n){return t.minTextShape.attr(n,e)}),this.maxHandlerShape.setX(n-r/2),Object(x.each)(a,function(e,n){return t.maxTextShape.attr(n,e)}),this.currentMode===ta.RANGE?this.graph.emit("valuechange",{value:[this.start,this.end].sort()}):this.currentMode===ta.SINGLE&&this.graph.emit("valuechange",{value:[this.end,this.end]})},t.prototype.dodgeText=function(t){var e,n,r=Object(x.get)(this.handlerStyle,"width",2),i=this.minTextShape,o=this.maxTextShape,a=t[0],s=t[1],l=!1;a>s&&(a=(e=[s,a])[0],s=e[1],i=(n=[o,i])[0],o=n[1],l=!0);var u=i.getBBox(),c=o.getBBox(),h=null,d=null;return"trend"===this.timeBarType?(h=a-u.width<this.x+2?{x:a+r/2+2,textAlign:"left"}:{x:a-r/2-2,textAlign:"right"},d=s+c.width>this.x+this.width?{x:s-r/2-2,textAlign:"right"}:{x:s+r/2+2,textAlign:"left"}):"simple"===this.timeBarType&&(h=i.attr("x")>u.width?{x:a,textAlign:"center"}:{x:a,textAlign:"left"},d=o.attr("x")>this.width-c.width?{x:s,textAlign:"right"}:{x:s,textAlign:"center"}),l?[d,h]:[h,d]},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame(function(){var e=t,n=e.ticks,r=e.width,i=t.currentSpeed,o=r/n.length/(1e3*(10-i)/60),a=t.adjustOffsetRange(o/t.width);t.updateStartEnd(a),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())}):void 0},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit("timebarstartplay",null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit("timebarendplay",null))},t.prototype.destory=function(){this.graph.off("valuechange",function(){});var t=this.group,e=t.find(function(t){return"minHandlerShape"===t.get("name")});e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var n=t.find(function(t){return"maxHandlerShape"===t.get("name")});n&&(n.off("maxHandlerShape-handler:mousedown"),n.off("maxHandlerShape-handler:touchstart"),n.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat("playPauseBtn",":click")),t.off("".concat("nextStepBtn",":click")),t.off("".concat("preStepBtn",":click")),t.off("timebarConfigChanged"),t.destroy(),this.trendComponent&&this.trendComponent.destory()},t}(),nl=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rl=this&&this.__assign||function(){return(rl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},il=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},ol=function(t){function e(e){var n=t.call(this,e)||this;return n.afterrenderListener=function(t){return n.filterData({})},n.valueChangeListener=Object(x.throttle)(function(t){return n.filterData(t)},200,{trailing:!0,leading:!0}),n.changeData=function(t){var e=n.get("graph");n.cacheGraphData=e.get("data"),n.filterData({})},n}return nl(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-component-timebar",padding:10,type:"trend",trend:{data:[],isArea:!1,smooth:!0},controllerCfg:{speed:1,loop:!1},slider:{start:.1,end:.9,minText:"min",maxText:"max"},tick:{start:.1,end:.9,data:[]},textStyle:{},filterEdge:!1,filterItemTypes:["node"],containerCSS:{},putInGraphContainer:!0}},e.prototype.initContainer=function(){var t,e,n=this.get("graph"),r=this._cfgs,i=r.width,o=r.height,a=r.putInGraphContainer,s=this.get("className")||"g6-component-timebar",l=this.get("container");(l?(Object(x.isString)(l)&&(l=document.getElementById(l)),t=l):Jr(t=Kr("<div class='".concat(s,"'></div>")),{position:"relative"}),a)&&this.get("graph").get("container").appendChild(t);this.set("timeBarContainer",t),e="SVG"===n.get("renderer")?new qr.Canvas({container:t,width:i,height:o}):new Xr.Canvas({container:t,width:i,height:o}),this.get("containerCSS")&&Jr(t,this.get("containerCSS")),this.set("canvas",e)},e.prototype.init=function(){this.initContainer();var t=this.get("canvas").addGroup({name:"timebar-group"});this.set("timeBarGroup",t),this.renderTrend(),this.initEvent();var e="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",e)},e.prototype.play=function(){this.togglePlay(!0)},e.prototype.pause=function(){this.togglePlay(!1)},e.prototype.togglePlay=function(t){var e=this.get("timebar");e&&(e.isPlay=!!t,e.changePlayStatus())},e.prototype.renderTrend=function(){var t=this,e=this._cfgs,n=e.width,r=e.x,i=e.y,o=e.padding,a=e.type,s=e.trend,l=e.slider,u=e.controllerCfg,c=e.textStyle,h=e.tick,d=e.backgroundStyle,f=e.foregroundStyle,p=s.data,g=il(s,["data"]),v=n-2*o,m="trend"===a?26:4,y=this.get("graph"),b=this.get("timeBarGroup"),_=this.get("canvas"),x=null;if("trend"===a||"simple"===a){var w=this.get("getValue");x=new el(rl(rl({graph:y,canvas:_,group:b,type:a,x:r+o,y:"trend"===a?i+o:i+o+15,width:v,height:m,padding:o,backgroundStyle:d,foregroundStyle:f,trendCfg:rl(rl({},g),{data:p.map(function(t){return(null===w||void 0===w?void 0:w(t))||t.value})})},l),{tick:{ticks:p,tickLabelFormatter:h.tickLabelFormatter,tickLabelStyle:h.tickLabelStyle,tickLineStyle:h.tickLineStyle},handlerStyle:rl(rl({},l.handlerStyle),{height:l.height||m}),controllerCfg:u,textStyle:c}))}else"tick"===a&&(x=new aa(rl({graph:y,canvas:_,group:b,x:r+o,y:i+o,width:n,height:42,padding:2,controllerCfg:u},h)));var S=function(){var e=t.get("timebar");e.draggingHandler=!1,e.isPlay&&(e.isPlay=!1,e.currentHandler=e.maxHandlerShape,e.changePlayStatus()),document.removeEventListener("mouseup",S)};_.on("mousedown",function(t){"maxHandlerShape-handler"!==t.target.get("name")&&"minHandlerShape-handler"!==t.target.get("name")&&t.target!==x.foregroundShape||document.addEventListener("mouseup",S)}),this.set("timebar",x)},e.prototype.filterData=function(t){var e,n=t.value;if(!n){n=[];var r=this._cfgs.type;r&&"trend"!==r&&"simple"!==r?"tick"===r&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end):(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end)}var i=null,o=this._cfgs.type;if("trend"===o||"simple"===o?i=this._cfgs.trend.data:"tick"===o&&(i=this._cfgs.tick.data),i&&0!==i.length){var a=this.get("rangeChange"),s=this.get("graph"),l=Math.round(i.length*n[0]),u=Math.round(i.length*n[1]);u=u>=i.length?i.length-1:u,l=l>=i.length?i.length-1:l;var c=null===(e=this._cfgs.tick)||void 0===e?void 0:e.tickLabelFormatter,h=c?c(i[l]):i[l].date,d=c?c(i[u]):i[u].date;if("tick"!==o)this.get("timebar").setText(h,d);if(a)a(s,h,d);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&0===this.cacheGraphData.nodes.length)&&(this.cacheGraphData=s.get("data"));var f=this.get("filterItemTypes"),p=this.get("changeData"),g=this.get("getDate"),v=this.get("shouldIgnore"),m=i[l].date,y=i[u].date;if(p||void 0===p){var b=this.cacheGraphData.nodes,_=this.cacheGraphData.edges,x={},w={};s.getNodes().forEach(function(t){return x[t.getID()]=!0}),s.getEdges().forEach(function(t){return w[t.getID()]=!0}),f.includes("node")&&(null===b||void 0===b||b.forEach(function(t){var e=+((null===g||void 0===g?void 0:g(t))||t.date),n=e>=m&&e<=y||(null===v||void 0===v?void 0:v("node",t,{min:m,max:y})),r=x[t.id];r&&!n?(s.removeItem(t.id),x[t.id]=!1):!r&&n&&(s.addItem("node",t),x[t.id]=!0)}),null===_||void 0===_||_.forEach(function(t){var e=x[t.source]&&x[t.target]||(null===v||void 0===v?void 0:v("edge",t,{min:m,max:y})),n=!!s.findById(t.id);n&&!e?(s.removeItem(t.id),w[t.id]=!1):!n&&e?(s.addItem("edge",t),w[t.id]=!0):n||(w[t.id]=!1)})),(this.get("filterEdge")||f.includes("edge"))&&(null===_||void 0===_||_.filter(function(t){var e=+((null===g||void 0===g?void 0:g(t))||t.date),n=e>=m&&e<=y||(null===v||void 0===v?void 0:v("edge",t,{min:m,max:y})),r=x[t.source]&&x[t.target],i=n&&r,o=w[t.id];o&&!i?(w[t.id]=!1,s.removeItem(t.id)):!o&&i&&(w[t.id]=!0,s.addItem("edge",t))}))}else f.includes("node")&&s.getNodes().forEach(function(t){var e=t.getModel();if(null===v||void 0===v||!v("node",e,{min:m,max:y})){var n=+((null===g||void 0===g?void 0:g(e))||e.date);n<m||n>y?s.hideItem(t):s.showItem(t)}}),(this.get("filterEdge")||f.includes("edge"))&&s.getEdges().forEach(function(t){var e=t.getModel();if(null===v||void 0===v||!v("edge",e,{min:i[l].date,max:i[u].date})){var n=+((null===g||void 0===g?void 0:g(e))||e.date);if(n<i[l].date||n>i[u].date)s.hideItem(t);else{var r=t.getSource().isVisible(),o=t.getTarget().isVisible();r&&o&&s.showItem(t)}}})}}else console.warn("请配置 TimeBar 组件的数据")},e.prototype.initEvent=function(){var t=this.get("graph");t.on("afterchangedata",this.changeData),t.on("afterrender",this.afterrenderListener),t.on("valuechange",this.valueChangeListener)},e.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off("valuechange",this.valueChangeListener);var n=this.get("timebar");n&&n.destory&&n.destory(),t.prototype.destroy.call(this);var r=this.get("timeBarContainer");if(r){var i=this.get("container");i||(i=this.get("graph").get("container")),Object(x.isString)(i)&&(i=document.getElementById(i)),i===r&&(i=i.parentElement),i.removeChild(r)}},e}(yo),al=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sl=Fr.applyMatrix;var ll=function(t){function e(e){return t.call(this,e)||this}return al(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.graph;if(!this.destroyed){var r=this.get("container");Object(x.isString)(r)&&(r=document.getElementById(r));var i=Kr("<div class=".concat(e.viewportClassName,"\n style='position:absolute;\n left:0;\n top:0;\n box-sizing:border-box;\n border: 2px solid #1980ff;\n cursor:move'\n </div>")),o=0,a=0,s=!1,l=0,u=0,c=0,h=0,d=0,f=0;r.addEventListener("mousedown",function(r){if(e.refresh=!1,r.target===i){var l=i.style;c=parseInt(l.width,10),h=parseInt(l.height,10);var u=t.get("width"),p=t.get("height");c>u||h>p||(f=n.getZoom(),d=t.get("ratio"),s=!0,o=r.clientX,a=r.clientY)}},!1),r.addEventListener("mousemove",function(e){if(s&&!Object(x.isNil)(e.clientX)&&!Object(x.isNil)(e.clientY)){var r=t.get("width"),p=t.get("height"),g=i.style;l=parseInt(g.left,10),u=parseInt(g.top,10),c=parseInt(g.width,10),h=parseInt(g.height,10);var v=o-e.clientX,m=a-e.clientY;l-v<0?v=l:l-v+c>=r&&(v=0),u-m<0?m=u:u-m+h>=p&&(m=0),u-=m,Jr(i,{left:"".concat(l-=v,"px"),top:"".concat(u,"px")}),n.translate(v*f/d,m*f/d),o=e.clientX,a=e.clientY}},!1),r.addEventListener("mouseleave",function(){s=!1,e.refresh=!0},!1),r.addEventListener("mouseup",function(){s=!1,e.refresh=!0},!1),this.set("viewport",i),r.appendChild(i)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("width"),n=this.get("height"),r=this.get("graph"),i=r.get("width"),o=i/r.get("height"),a=r.getGroup(),s=a.getCanvasBBox(),l=[(s.minX+s.maxX)/2,(s.minY+s.maxY)/2],u=[s.maxX-s.minX,s.maxY-s.minY],c={centerX:l[0],centerY:l[1],width:0,height:0,minX:0,minY:0};s[0]/s[1]>o?(c.width=u[0],c.height=c.width/o):(c.height=u[1],c.width=c.height*o),c.minX=l[0]-c.width/2,c.minY=l[1]-c.height/2;var h=a.getMatrix();h||(h=[1,0,0,0,1,0,0,0,1]);var d=P.b.invert([1,0,0,0,1,0,0,0,1],h),f=sl({x:c.minX,y:c.minY},d),p=r.getCanvasByPoint(f.x,f.y),g=this.get("viewport");g||this.initViewport();var v=i/c.width,m=v*e,y=v*n,b=e*-p.x/c.width,_=n*-p.y/c.height,x=b+m,w=_+y;b<0&&(m+=b,b=0),x>e&&(m-=x-e),_<0&&(y+=_,_=0),w>n&&(y-=w-n),this.set("ratio",t),Jr(g,{left:"".concat(b,"px"),top:"".concat(_,"px"),width:"".concat(m,"px"),height:"".concat(y,"px")})}},e.prototype.init=function(){this.initContainer()},e.prototype.initContainer=function(){var t=this.get("graph"),e=t.get("width"),n=t.get("height")/e,r=this.get("className"),i=this.get("container"),o=this.get("width"),a=this.get("height");o||a||(o=200),o?(a=n*o,this.set("height",a)):(o=1/n*a,this.set("width",o));var s=Kr("<div class='".concat(r,"' style='width: ").concat(o,"px; height: ").concat(a,"px; overflow: hidden; position: relative;'></div>"));Object(x.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(s):t.get("container").appendChild(s),this.set("container",s);var l=Kr('<div class="g6-minimap-container" style="position: relative; width: 100%; height: 100%; text-align: center; display: table;"></div>');s.appendChild(l);var u=Kr('<span style="display: table-cell; vertical-align: middle; "></span>');l.appendChild(u),this.set("containerDOM",l),this.set("containerSpan",u);var c=Kr('<img alt="" src="'.concat(this.get("graphImg"),'" style="display: inline-block; user-select: none;" draggable="false" />'));this.set("imgDOM",c),this.updateImgSize(),u.appendChild(c),this.updateCanvas()},e.prototype.updateImgSize=function(){var t=this.get("imgDOM"),e=this.get("width"),n=this.get("height");t.onload=function(){var r=function(t,e){var n,r;if(t.naturalWidth)n=t.naturalWidth,r=t.naturalHeight;else{var i=new Image;i.src=t.src,i.onload=function(){e&&e(i.width,i.height)}}return[n,r]}(t);r[0]>r[1]?t.width=e:t.height=n}},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("width")/t.get("canvas").getCanvasBBox().width;this.set("ratio",e),this.updateViewport()}}},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateGraphImg=function(t){this.get("imgDOM").remove(),this.set("graphImg",t);var e=Kr('<img alt="" src="'.concat(t,'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>'));this.set("imgDOM",e),e.src=t,this.updateImgSize(),this.get("containerSpan").appendChild(e),this.updateCanvas()},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t)},e}(yo),ul=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cl=this&&this.__assign||function(){return(cl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},hl=Fr.distance,dl={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:1,fill:"#fff"},fl=function(t){function e(e){return t.call(this,e)||this}return ul(e,t),e.prototype.getDefaultCfgs=function(){return{type:"both",trigger:"mousemove",r:60,delegateStyle:Object(x.clone)(dl),showLabel:"edge",scaleRBy:"wheel"}},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"filter"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"filter"}}return t},e.prototype.init=function(){var t=this.get("showLabel"),e="node"===t||"both"===t,n="edge"===t||"both"===t;this.set("showNodeLabel",e),this.set("showEdgeLabel",n),this.get("shouldShow")||this.set("shouldShow",function(){return!0})},e.prototype.createDelegate=function(t){var e=this,n=e.get("delegate");n&&!n.destroyed||(e.filter(t),(n=e.get("delegate")).on("dragstart",function(t){}),n.on("drag",function(t){e.filter(t)}),"wheel"===this.get("scaleRBy")&&n.on("mousewheel",function(t){e.scaleRByWheel(t)}))},e.prototype.scaleRByWheel=function(t){if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var e,n=this.get("graph"),r=this.get("delegate");(r?{x:r.attr("x"),y:r.attr("y")}:void 0)||n.getPointByClient(t.clientX,t.clientY);e=t.originalEvent.wheelDelta<0?.95:1/.95;var i=this.get("maxR"),o=this.get("minR"),a=this.get("r");(a>(i||n.get("height"))&&e>1||a<(o||.05*n.get("height"))&&e<1)&&(e=1),a*=e,this.set("r",a),this.filter(t)}},e.prototype.filter=function(t){var e=this.get("graph"),n=e.getNodes(),r={},i=this.get("r"),o=this.get("type"),a={x:t.x,y:t.y};this.updateDelegate(a,i);var s=this.get("shouldShow"),l=this.get("vShapes");l&&l.forEach(function(t){t.remove(),t.destroy()}),l=[],n.forEach(function(t){var e=t.getModel(),n=e.x,o=e.y;hl({x:n,y:o},a)<i&&(r[e.id]=t)});var u=[];e.getEdges().forEach(function(t){var e=t.getModel(),n=e.source,i=e.target;s(e)&&("only-source"===o||"one"===o?r[n]&&!r[i]&&u.push(t):"only-target"===o||"one"===o?r[i]&&!r[n]&&u.push(t):"both"===o&&r[n]&&r[i]&&u.push(t))});var c=this.get("showNodeLabel"),h=this.get("showEdgelabel"),d=e.get("group");u.forEach(function(t){t.get("group").get("children").forEach(function(t){var e=t.get("type"),n=d.addShape(e,{attrs:t.attr()});l.push(n),c&&"text"===e&&n.set("visible",!0)})}),Object.keys(r).forEach(function(t){var e=r[t].get("group").clone();if(d.add(e),l.push(e),h)for(var n=e.get("children"),i=0;i<n.length;i++){var o=n[i];"text"===o.get("type")&&o.set("visible",!0)}}),this.set("vShapes",l)},e.prototype.updateParams=function(t){var e=t.r,n=t.trigger,r=t.minR,i=t.maxR,o=t.scaleRBy,a=t.showLabel,s=t.shouldShow;if(isNaN(t.r)||this.set("r",e),isNaN(i)||this.set("maxR",i),isNaN(r)||this.set("minR",r),"mousemove"!==n&&"click"!==n||this.set("trigger",n),"wheel"===o||"unset"===o){this.set("scaleRBy",o),this.get("delegate").remove(),this.get("delegate").destroy();var l=this.get("dPercentText");l&&(l.remove(),l.destroy())}"node"!==a&&"both"!==a||this.set("showNodeLabel",!0),"edge"!==a&&"both"!==a||this.set("showEdgeLabel",!0),s&&this.set("shouldShow",s)},e.prototype.updateDelegate=function(t,e){var n=this,r=n.get("graph"),i=n.get("delegate");if(!i||i.destroyed){var o=r.get("group"),a=n.get("delegateStyle")||dl;i=o.addShape("circle",{attrs:cl({r:e,x:t.x,y:t.y},a),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&"wheel"===this.get("scaleRBy")&&i.on("mousewheel",function(t){n.scaleRByWheel(t)})}else i.attr({x:t.x,y:t.y,r:e});n.set("delegate",i)},e.prototype.clear=function(){var t=this.get("vShapes");t&&t.forEach(function(t){t.remove(),t.destroy()}),t=[],this.set("vShapes",t);var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy())},e.prototype.destroy=function(){this.clear()},e}(yo),pl=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gl=Fr.pointLineDistance,vl={stroke:"#FA8C16",lineWidth:1},ml=function(t){function e(e){return t.call(this,e)||this}return pl(e,t),e.prototype.getDefaultCfgs=function(){return{line:vl,itemAlignType:"center",tolerance:5,horizontalLines:{},verticalLines:{},alignLines:[]}},e.prototype.init=function(){},e.prototype.getEvents=function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd"}},e.prototype.onDragStart=function(){this.initBoxLine()},e.prototype.onDrag=function(t){var e=t.item,n=(e.get("delegateShape")||e).getBBox(),r=e.getModel(),i=r.x-n.x,o=r.y-n.y;this.show({x:n.minX+i,y:n.minY+o},{width:n.width,height:n.height})},e.prototype.onDragEnd=function(){this.destory()},e.prototype.initBoxLine=function(){var t=this._cfgs,e=t.horizontalLines,n=t.verticalLines,r=t.itemAlignType;this.get("graph").getNodes().forEach(function(t){var i=t.getBBox(),o=t.get("id");!0===r||"horizontal"===r?(e["".concat(o,"tltr")]=[i.minX,i.minY,i.maxX,i.minY,t],e["".concat(o,"lcrc")]=[i.minX,i.centerY,i.maxX,i.centerY,t],e["".concat(o,"blbr")]=[i.minX,i.maxY,i.maxX,i.maxY,t]):"center"===r&&(e["".concat(o,"lcrc")]=[i.minX,i.centerY,i.maxX,i.centerY,t]),!0===r||"vertical"===r?(n["".concat(o,"tlbl")]=[i.minX,i.minY,i.minX,i.maxY,t],n["".concat(o,"tcbc")]=[i.centerX,i.minY,i.centerX,i.maxY,t],n["".concat(o,"trbr")]=[i.maxX,i.minY,i.maxX,i.maxY,t]):"center"===r&&(n["".concat(o,"tcbc")]=[i.centerX,i.minY,i.centerX,i.maxY,t])})},e.prototype.show=function(t,e){var n=Object(x.mix)({},t);return this.itemAlign(t,e,n),t},e.prototype.itemAlign=function(t,e,n){var r=this,i=this._cfgs,o=i.horizontalLines,a=i.verticalLines,s=i.tolerance,l={x:n.x+e.width/2,y:n.y},u={x:n.x+e.width/2,y:n.y+e.height/2},c={x:n.x+e.width/2,y:n.y+e.height},h={x:n.x,y:n.y+e.height/2},d={x:n.x+e.width,y:n.y+e.height/2},f=[],p=[],g=null;if(this.clearAlignLine(),Object(x.each)(o,function(t){t[4].isVisible&&(f.push(r.getLineDisObject(t,l)),f.push(r.getLineDisObject(t,u)),f.push(r.getLineDisObject(t,c)))}),Object(x.each)(a,function(t){t[4].isVisible&&(p.push(r.getLineDisObject(t,h)),p.push(r.getLineDisObject(t,u)),p.push(r.getLineDisObject(t,d)))}),f.sort(function(t,e){return t.dis-e.dis}),p.sort(function(t,e){return t.dis-e.dis}),0!==f.length&&f[0].dis<s){t.y=f[0].line[1]-f[0].point.y+n.y,g={type:"item",horizontals:[f[0]]};for(var v=1;v<3;v++)f[0].dis===f[v].dis&&g.horizontals.push(f[v])}if(0!==p.length&&p[0].dis<s){t.x=p[0].line[0]-p[0].point.x+n.x,g?g.verticals=[p[0]]:g={type:"item",verticals:[p[0]]};for(v=1;v<3;v++)p[0].dis===p[v].dis&&g.verticals.push(p[v])}g&&(g.bbox=e,this.addAlignLine(g))},e.prototype.addAlignLine=function(t){var e=t.bbox,n=t.type,r=t.horizontals,i=t.verticals,o=this._cfgs,a=o.line,s=o.alignLines,l=this.get("graph").get("group");"item"===n&&(r&&Object(x.each)(r,function(t){var n,r,i=t.line,o=t.point,u=(i[0]+i[2])/2;o.x<u?(n=o.x-e.width/2,r=Math.max(i[0],i[2])):(n=o.x+e.width/2,r=Math.min(i[0],i[2]));var c=Object(x.mix)({x1:n,y1:i[1],x2:r,y2:i[1]},a),h=l.addShape("line",{attrs:c,capture:!1});s.push(h)}),i&&Object(x.each)(i,function(t){var n,r,i=t.line,o=t.point,u=(i[1]+i[3])/2;o.y<u?(n=o.y-e.height/2,r=Math.max(i[1],i[3])):(n=o.y+e.height/2,r=Math.min(i[1],i[3]));var c=Object(x.mix)({x1:i[0],y1:n,x2:i[0],y2:r},a),h=l.addShape("line",{attrs:c,capture:!1});s.push(h)}))},e.prototype.getLineDisObject=function(t,e){return{line:t,point:e,dis:gl(t,e)}},e.prototype.getContainer=function(){return this.get("container")},e.prototype.clearAlignLine=function(){var t=this._cfgs.alignLines;Object(x.each)(t,function(t){t.remove()}),t.length=0},e.prototype.destory=function(){var t=this._cfgs,e=t.horizontalLines,n=t.verticalLines;this.get("graph").getNodes().forEach(function(t){var r=t.get("id");delete e["".concat(r,"tltr")],delete e["".concat(r,"lcrc")],delete e["".concat(r,"blbr")],delete n["".concat(r,"tlbl")],delete n["".concat(r,"tcbc")],delete n["".concat(r,"trbr")]}),this.clearAlignLine()},e}(yo),yl=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bl=this&&this.__assign||function(){return(bl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},_l=["click","mouseenter"],xl=function(t){function e(e){return t.call(this,e)||this}return yl(e,t),e.prototype.getDefaultCfgs=function(){return{data:{},position:"top",padding:8,margin:8,offsetX:0,offsetY:0,layout:"horizontal",flipPage:!1,containerStyle:{},align:void 0,horiSep:8,vertiSep:8,filter:{enable:!1,trigger:"click"}}},e.prototype.init=function(){this.formatArray("padding"),this.formatArray("margin");var t=this.get("filter")||{};t.multiple&&"mouseenter"===t.trigger&&this.set("multiple",!1);var e=this.get("align");if(!e){var n=this.get("position").split("-");n.includes("left")&&(e="left"),e=n.includes("right")?"right":"center",this.set("align",e)}var r=this.get("graph").get("container"),i=Kr("<div class='g6-legend-container' style=\"position: absolute;\"></div>");r.appendChild(i),this.set("container",i);var o=this.render();Jr(i,this.getContainerPos(o)),this.bindEvents()},e.prototype.getContainerPos=function(t){void 0===t&&(t=[0,0]);var e=this.get("graph"),n=this.get("offsetX"),r=this.get("offsetY"),i=this.get("margin"),o=this.get("position").split("-"),a={top:0,right:1,bottom:2,left:3},s={left:(e.getWidth()-t[0])/2+0,top:(e.getHeight()-t[1])/2+0};return o.forEach(function(n){var r=i[a[n]],o=n;switch(n){case"top":case"left":r+=0;break;case"bottom":r=e.getHeight()-t[1]-r+0,o="top";break;default:r=e.getWidth()-t[0]-r+0,o="left"}s[o]=r}),s.top+=r+e.getContainer().offsetTop,s.left+=n+e.getContainer().offsetLeft,Object.keys(s).forEach(function(t){s[t]="".concat(s[t],"px")}),s},e.prototype.bindEvents=function(){var t=this,e=t.get("filter");if(e&&e.enable){var n=e.trigger||"click";_l.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var r=t.get("legendCanvas");"mouseenter"===n?(r.on("node-container:mouseenter",function(e){return t.filterData(e)}),r.on("node-container:mouseleave",function(e){t.clearFilter(),t.clearActiveLegend()})):(r.on("node-container:click",function(e){return t.filterData(e)}),r.on("click",function(e){e.target&&e.target.isCanvas&&e.target.isCanvas()&&(t.clearFilter(),t.clearActiveLegend())}))}},e.prototype.changeData=function(t){this.set("data",t);var e=this.render();Jr(this.get("container"),this.getContainerPos(e))},e.prototype.activateLegend=function(t){var e=this.get("filter");(null===e||void 0===e?void 0:e.multiple)||this.clearActiveLegend();var n=t.get("parent");n.get("active")?(n.set("active",!1),this.findLegendItemsByState("active").length&&n.set("inactive",!0)):(n.set("inactive",!1),n.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(t){t.set("inactive",!0)}):this.clearActiveLegend();var r=(null===e||void 0===e?void 0:e.legendStateStyles)||{},i=(null===r||void 0===r?void 0:r.inactive)||{opacity:.5,"text-shape":{opacity:.5}},o=i["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(bl(bl({},n.get("oriAttrs")),i)),r.attr(bl(bl({},r.get("oriAttrs")),o))});var a=(null===r||void 0===r?void 0:r.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},s=a["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(bl(bl({},n.get("oriAttrs")),a)),r.attr(bl(bl({},r.get("oriAttrs")),s))})},e.prototype.findLegendItemsByState=function(t,e,n){void 0===e&&(e="all"),void 0===n&&(n=!0);var r=this.get("legendCanvas").find(function(t){return"root"===t.get("name")}),i=r.find(function(t){return"node-group"===t.get("name")}),o=r.find(function(t){return"edge-group"===t.get("name")});return"node"===e?i.get("children").filter(function(e){return!!e.get(t)===n}):"edge"===e?o.get("children").filter(function(e){return!!e.get(t)===n}):i.get("children").filter(function(e){return!!e.get(t)===n}).concat(o.get("children").filter(function(e){return!!e.get(t)===n}))},e.prototype.clearActiveLegend=function(){var t=this.get("legendCanvas").find(function(t){return"root"===t.get("name")});[t.find(function(t){return"node-group"===t.get("name")}),t.find(function(t){return"edge-group"===t.get("name")})].forEach(function(t){t.get("children").forEach(function(t){t.set("active",!1),t.set("inactive",!1);var e=t.get("children"),n=e[0],r=e[1];n.attr(n.get("oriAttrs")),r.attr(r.get("oriAttrs"))})})},e.prototype.filterData=function(t){var e=this.get("filter"),n=null===e||void 0===e?void 0:e.filterFunctions;if(e&&n){var r=this.get("legendCanvas"),i=this.get("graph"),o=e.graphActiveState||"active",a=e.graphInactiveState||"inactive",s=e.multiple;this.clearFilter(),s||this.clearActiveLegend(),this.activateLegend(t.target);var l=r.find(function(t){return"root"===t.get("name")}),u=l.find(function(t){return"node-group"===t.get("name")}),c=l.find(function(t){return"edge-group"===t.get("name")}),h=u.get("children").filter(function(t){return t.get("active")}),d=c.get("children").filter(function(t){return t.get("active")}),f=0,p=["getNodes","getEdges"];p.forEach(function(t){i[t]().forEach(function(e){var r=!1;("getNodes"===t?h:d).forEach(function(t){var i=n[t.get("id")];r=r||i(e.getModel())}),r?(i.setItemState(e,a,!1),i.setItemState(e,o,!0),f++):(i.setItemState(e,o,!1),i.setItemState(e,a,!0))})}),f||p.forEach(function(t){i[t]().forEach(function(t){i.clearItemStates(t,[a])})})}},e.prototype.clearFilter=function(){var t=this.get("graph"),e=this.get("filter");if(e){var n=e.graphActiveState||"active",r=e.graphInactiveState||"inactive";t.getNodes().forEach(function(e){t.clearItemStates(e,[n,r])}),t.getEdges().forEach(function(e){t.clearItemStates(e,[n,r])})}},e.prototype.render=function(){var t=this;this.processData();var e=this.get("legendCanvas");e?e.clear():e=new Xr.Canvas({container:this.get("container"),width:200,height:200});var n=e.addGroup({name:"root"}),r=n.addGroup({name:"node-group"}),i=n.addGroup({name:"edge-group"});this.set("legendCanvas",e);var o=this.get("itemsData"),a=[r,i];["nodes","edges"].forEach(function(e,n){o[e].forEach(function(r){var i,o,s=a[n].addGroup({id:r.id,name:"node-container"}),l=r.type,u=t.getShapeSize(r),c=u.width,h=u.height,d=u.r,f=t.getStyle(e.substr(0,4),r);switch(r.type){case"circle":o={r:d,x:0,y:0};break;case"rect":o={width:c,height:h,x:-c/2,y:-h/2};break;case"ellipse":o={rx:c,ry:h,x:0,y:0},l="ellipse";break;case"line":o={x1:-c/2,y1:0,x2:c/2,y2:0},l="line";break;case"quadratic":o={path:[["M",-c/2,0],["Q",0,c/2,c/2,0]]},l="path";break;case"cubic":o={path:[["M",-c/2,0],["C",-c/6,c/2,c/6,-c/2,c/2,0]]},l="path";break;case"diamond":o={path:[["M",0,-h],["L",c,0],["L",0,h],["L",-c,0],["Z"]]},l="path";break;case"triangle":o={path:[["M",-c,h],["L",0,-h],["L",c,h],["Z"]]},l="path";break;case"star":o={path:Fr.getStarPath(3*d,1.2*d)},l="path";break;default:o={r:d,x:0,y:0}}var p=s.addShape(l,{attrs:bl(bl({},o),f),name:"".concat(r.type,"-node-keyShape"),oriAttrs:bl({opacity:1},f)});if(r.label){var g=p.getBBox(),v=(null===(i=r.labelCfg)||void 0===i?void 0:i.style)||{},m=bl({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},v);s.addShape("text",{attrs:bl({x:g.maxX+4,y:0,text:r.label},m),className:"legend-label",name:"".concat(r.type,"-node-text"),oriAttrs:m})}})});var s,l=this.get("padding"),u=n.find(function(t){return"title-container"===t.get("name")}),c={height:0,maxY:0,width:0};if(this.get("title")){u||(u=n.addGroup({name:"title-container"}));var h={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:l[0]},d=this.get("titleConfig")||{},f=Object.assign(h,d.style||{});s=u.addShape("text",{attrs:bl({text:this.get("title")},f)}),c=u.getCanvasBBox(),u.setMatrix([1,0,0,0,1,0,d.offsetX,d.offsetY,1])}this.layoutItems();var p=n.getCanvasBBox(),g=r.getCanvasBBox(),v=g.minX<0?Math.abs(g.minX)+l[3]:l[3],m=c.maxY<g.minY?Math.abs(c.maxY-g.minY)+l[0]:c.maxY+l[0],y=[1,0,0,0,1,0,v,m,1];r.setMatrix(y);var b=[(p=n.getCanvasBBox()).minX+p.width+l[1],p.minY+p.height+l[2]];if(s){d=bl({position:"center",offsetX:0,offsetY:0},this.get("titleConfig"));c=u.getCanvasBBox();var _=u.getMatrix()||[1,0,0,0,1,0,0,0,1];"center"===d.position?_[6]=b[0]/2+d.offsetX:"right"===d.position?(_[6]=b[0]-l[3]+d.offsetX,s.attr({textAlign:"right"})):(_[6]=l[3]+d.offsetX,s.attr({textAlign:"left"})),u.setMatrix(_),c=u.getCanvasBBox(),y=[1,0,0,0,1,0,v=g.minX<0?Math.abs(g.minX)+l[3]:l[3],m=g.minY<c.maxY?Math.abs(c.maxY-g.minY)+l[0]:c.maxY+l[0],1],r.setMatrix(y);var x=[1,0,0,0,1,0,v,m,1];"vertical"===this.get("layout")?x[6]+=g.maxX+this.get("horiSep"):x[7]+=g.maxY+this.get("vertiSep"),i.setMatrix(x)}else{g=r.getCanvasBBox();var w=[1,0,0,0,1,0,0,0,1];"vertical"===this.get("layout")?w[6]+=y[6]+g.maxX+this.get("horiSep"):w[7]+=y[7]+g.maxY+this.get("vertiSep"),i.setMatrix(w)}p=n.getCanvasBBox(),g=r.getCanvasBBox(),y=r.getMatrix()||[1,0,0,0,1,0,0,0,1];var S=i.getMatrix()||[1,0,0,0,1,0,0,0,1],C=i.getCanvasBBox();b=[Math.max(g.width+y[6],C.width+S[6])+l[1],Math.max(g.height+y[7],C.height+S[7])+l[2]],e.changeSize(b[0],b[1]);var k=this.get("containerStyle"),O=n.getMatrix()||[1,0,0,0,1,0,0,0,1],M=Fr.invertMatrix({x:0,y:0},O);return n.addShape("rect",{attrs:bl({x:M.x+(k.lineWidth||1),y:M.y+(k.lineWidth||1),width:b[0]-2*(k.lineWidth||1),height:b[1]-2*(k.lineWidth||1),fill:"#f00",stroke:"#000",lineWidth:1,opacity:.5},k),name:"legend-back-rect",capture:!1}).toBack(),b},e.prototype.layoutItems=function(){var t=this.get("legendCanvas"),e=this.get("horiSep"),n=this.get("vertiSep"),r=this.get("layout"),i=this.get("align"),o=[0,0],a=t.find(function(t){return"root"===t.get("name")}),s=a.find(function(t){return"node-group"===t.get("name")}),l=a.find(function(t){return"edge-group"===t.get("name")}),u={min:0,max:-1/0},c=-1/0;s.get("children").forEach(function(t,i){0===i&&(u.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),l=a.getBBox(),h=l.width,d=l.height,f=0,p=0,g=0;"vertical"===r?(p=o[1],g=o[0]+h/2,o[0]=g+s.height+n,f=s.maxX+p+h/2):(p=o[0]+h/2,g=o[1],o[0]=p+s.width+e,f=s.maxY+g+d/2),o[0]>u.max&&(u.max=o[0]),f>c&&(c=f),t.setMatrix([1,0,0,0,1,0,p,g,1])});var h=u.max-u.min,d={min:0,max:-1/0},f=s.getCanvasBBox();o[0]=0,o[1]="vertical"===r?f.maxX+e:f.maxY+n,l.get("children").forEach(function(t,i){0===i&&(d.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),l=a.getBBox(),u=l.width,c=l.height,h=0,f=0;"vertical"===r?(h=o[1],f=o[0],o[0]=f+s.height+n,t.setMatrix([1,0,0,0,1,0,0,f+c/2,1])):(h=o[0],f=o[1],o[0]=h+s.width+e,t.setMatrix([1,0,0,0,1,0,h+u/2,0,1])),o[0]>d.max&&(d.max=o[0])});var p=d.max-d.min;if(i&&""!==i&&"left"!==i){var g=h-p,v="center"===i?Math.abs(g)/2:Math.abs(g);(g<0?s:l).get("children").forEach(function(t){var e=t.getMatrix()||[1,0,0,0,1,0,0,0,1];"vertical"===r?e[7]+=v:e[6]+=v,t.setMatrix(e)})}},e.prototype.processData=function(){var t=this.get("data"),e={nodes:[],edges:[]};t.nodes&&(t.nodes.sort(function(t,e){return t.order-e.order}),t.nodes.forEach(function(t){var n,r,i,o,a,s=t.size||[(null===(n=t.style)||void 0===n?void 0:n.width)||(null===(r=t.style)||void 0===r?void 0:r.r)||8,(null===(i=t.style)||void 0===i?void 0:i.height)||(null===(o=t.style)||void 0===o?void 0:o.r)||8],l=(null===(a=t.labelCfg)||void 0===a?void 0:a.style)||{};e.nodes.push({id:t.id||Object(x.uniqueId)(),type:t.type||"circle",style:bl({},t.style),order:t.order,label:t.label,itemType:"node",size:s,labelCfg:{position:"right",style:bl({fontFamily:"Arial"},l)}})})),t.edges&&(t.edges.sort(function(t,e){return t.order-e.order}),t.edges.forEach(function(t){var n,r,i=t.type||"line";"cubic-horizontal"===t.type&&(i="cubic");var o=(null===(n=t.labelCfg)||void 0===n?void 0:n.style)||{},a=t.size||[(null===(r=t.style)||void 0===r?void 0:r.width)||8,1];e.edges.push({id:t.id||Object(x.uniqueId)(),type:i,size:a,style:bl({lineWidth:Object(x.isArray)(a)?a[1]:1},t.style),order:t.order,label:t.label,itemType:"edge",labelCfg:{position:"right",style:bl({fontFamily:"Arial"},o)}})})),this.set("itemsData",e)},e.prototype.getContainer=function(){return this.get("container")},e.prototype.formatArray=function(t){var e=this.get(t);if(Object(x.isNumber)(e))this.set(t,[e,e,e,e]);else if(Object(x.isArray)(e))switch(e.length){case 0:this.set(t,[0,0,0,0]);break;case 1:this.set(t,[e[0],e[0],e[0],e[0]]);break;case 2:this.set(t,[e[0],e[1],e[0],e[1]]);break;case 3:this.set(t,[e[0],e[1],e[2],e[1]])}return this.get(t)},e.prototype.getShapeSize=function(t){var e,n,r;return t.size&&(Object(x.isArray)(t.size)?(e=t.size[0],n=t.size[1]||t.size[0],r=t.size[0]/2):Object(x.isNumber)(t.size)&&(e=t.size,n=t.size,r=t.size/2)),t.style&&(t.style.width&&(e=t.style.width),t.style.height&&(n=t.style.height),t.style.r&&(r=t.style.r)),r||(r=5),e||(e=r),n||(n=r),{width:e,height:n,r:r}},e.prototype.getStyle=function(t,e){return bl(bl({},"node"===t?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1}),e.style||{})},e.prototype.destroy=function(){var t=this.get("legendCanvas");null===t||void 0===t||t.destroy();var e=this.get("graph").get("container"),n=this.get("container");e.removeChild(n)},e}(yo),wl=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sl=this&&this.__assign||function(){return(Sl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Cl=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};"undefined"!=typeof document&&So()("\n .g6-annotation-container {\n background-color: rgba(255, 255, 255, 0.3);\n padding: 8px;\n }\n .g6-annotation-wrapper {\n background-color: #fff;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.85);\n }\n .g6-annotation-header-wapper {\n height: fit-content;\n width: 100%;\n background-color: #5B8FF9;\n display: inline-flex;\n cursor: move;\n }\n .g6-annotation-title {\n margin: 4px 40px 4px 8px;\n cursor: text;\n min-width: 32px;\n }\n .g6-annotation-collapse {\n margin: 4px;\n cursor: pointer;\n }\n .g6-annotation-expand {\n margin: 4px;\n cursor: pointer;\n }\n .g6-annotation-close {\n margin: 4px 8px 4px 0;\n cursor: pointer;\n }\n .g6-annotation-content {\n padding: 8px;\n width: fit-content;\n cursor: text;\n word-break: break-all;\n min-width: 32px;\n }\n .g6-annotation-title-input-wrapper {\n margin: 4px 40px 4px 8px;\n }\n .g6-annotation-content-input {\n height: 100%;\n word-break: break-all;\n }\n .g6-annotation-content-input-wrapper {\n margin: 8px;\n height: 100%;\n }\n");var kl=function(t){function e(e){return t.call(this,e)||this}return wl(e,t),e.prototype.getDefaultCfgs=function(){return{trigger:"click",editable:!0,itemHighlightState:"highlight",linkHighlightStyle:{shadowColor:"#5B8FF9",shadowBlur:10},cardCfg:{minHeight:60,width:"fit-content",height:"fit-content",collapseType:"minimize",closeType:"hide",borderRadius:5,maxTitleLength:20}}},e.prototype.getEvents=function(){var t={viewportchange:"updateLinks",afterlayout:"updateLinks",aftergraphrefreshposition:"updateLinks",afterupdateitem:"updateLink",afterchangedata:"onGraphDataChange",afteritemvisibilitychange:"onGraphItemVisibilityChange"};switch(this.get("trigger")){case"click":t=Sl(Sl({},t),{"node:click":"showAnnotation","edge:click":"showAnnotation"})}return t},e.prototype.getDOMContent=function(t){if(!this.destroyed){var e=t.collapsed,n=t.maxWidth,r=t.title,i=void 0===r?"":r,o=t.content,a=void 0===o?"":o,s=t.borderRadius,l=void 0===s?5:s,u=e?"<p class='g6-annotation-expand'>+</p>":"<p class='g6-annotation-collapse'>-</p>",c=e?"":" <p class='g6-annotation-content'>".concat(a,"</p>"),h=e?"".concat(l,"px"):"".concat(l,"px ").concat(l,"px 0 0");return'<div class="g6-annotation-wrapper" style="border-radius: '.concat(l,"px; max-width: ").concat(n,'px">\n <div\n class="g6-annotation-header-wapper"\n style="border-radius: ').concat(h,";\"\n >\n <h4 class='g6-annotation-title'>").concat(i,"</h4>\n ").concat(u,"\n ").concat("<p class='g6-annotation-close'>x</p>","\n </div>\n ").concat(c,"\n </div>")}},e.prototype.init=function(){var t=this;if(!t.destroyed){var e=t.get("graph").getContainer(),n=t.get("container");this.get("containerCfg")?(n=this.createContainer(),e.appendChild(n)):n=e,this.set("container",n);var r=e.getBoundingClientRect(),i=new Xr.Canvas({container:e,width:r.right-r.left,height:r.bottom-r.top});Jr(i.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",Object(x.debounce)(function(){return t.resizeCanvas(t)},100));var o=i.addGroup({id:"annotation-link-group"});t.set("linkGroup",o),t.set("canvas",i),t.get("getTitle")||t.set("getTitle",function(t){var e,n=(null===(e=null===t||void 0===t?void 0:t.getModel)||void 0===e?void 0:e.call(t))||{},r=n.label,i=n.id;return r||i||"-"}),t.get("getContent")||t.set("getContent",function(t){var e,n;if(!t)return"-";var r=(null===(e=t.getModel)||void 0===e?void 0:e.call(t))||{},i=r.label,o=r.id,a=null===(n=t.getType)||void 0===n?void 0:n.call(t),s=a?"".concat(a,": "):"";return"".concat(s).concat(i||o||"")});var a=t.get("defaultData");a&&this.readData(a)}},e.prototype.createContainer=function(){var t=this;if(!this.destroyed){var e=this.get("containerCfg"),n=this.get("graph"),r=n.getContainer(),i=r.getBoundingClientRect(),o=i.left,a=i.right,s=i.top,l=i.bottom-s,u=a-o,c=e.position,h=void 0===c?"top":c,d=e.offsetX,f=void 0===d?0:d,p=e.offsetY,g=void 0===p?0:p,v=Cl(e,["position","offsetX","offsetY"]),m=e.height,y=void 0===m?"fit-content":m,b=e.width,_=void 0===b?n.getWidth():b;"100%"===y&&(y=l),"100%"===_&&(_=u);var w="unset",S="unset",C={};switch(h){case"right":w="".concat(l,"px"),(C={top:0,right:0}).right+=o+f,C.top+=s+g;break;case"bottom":S="".concat(u,"px"),(C={bottom:0,left:0}).left+=o+f,C.bottom+=s+g;break;case"top":S="".concat(u,"px");case"left":w="".concat(l,"px");default:(C={top:0,left:0}).left+=o+f,C.top+=s+g}Object.keys(C).forEach(function(t){C[t]="".concat(C[t],"px")});var k=Kr("<div class='".concat(e.className," g6-annotation-container'></div>"));return Jr(k,Sl(Sl({position:"absolute",display:"top"===h||"bottom"===h?"inline-flex":"unset",width:Object(x.isNumber)(_)?"".concat(_,"px"):_,height:Object(x.isNumber)(y)?"".concat(y,"px"):y,maxHeight:w,maxWidth:S,overflow:"scroll"},C),v)),r.appendChild(k),k.addEventListener("scroll",function(e){t.updateLinks()}),k}},e.prototype.resizeCanvas=function(t){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout(function(){if(t&&!t.destroyed){var e=t.get("container").getBoundingClientRect(),n=e.right-e.left,r=e.bottom-e.top;t.get("canvas").changeSize(n,r),t.updateOutsideCards(t)}},250)},e.prototype.updateOutsideCards=function(t){var e=t||this,n=e.get("cardInfoMap")||{},r=e.get("graph"),i=r.getPointByCanvas(0,0),o=r.getPointByCanvas(r.getWidth(),r.getHeight()),a=r.getClientByPoint(i.x,i.y),s=a.x,l=a.y,u=r.getClientByPoint(o.x,o.y),c=u.x,h=u.y;Object.values(n).forEach(function(t){var e=t.card;if(e){var n=e.style,r=Ml(n.left),i=Ml(n.top),o=e.getBoundingClientRect(),a=o.width,u=o.height,d=r,f=i;r+a>c-s&&(d=c-s-a),r<0&&(d=0),i+u>h-l&&(f=h-l-u),i<0&&(f=0),Jr(e,{left:"".concat(d,"px"),top:"".concat(f,"px")})}}),e.updateLinks()},e.prototype.showAnnotation=function(t){if(!this.destroyed){var e=t.item;this.toggleAnnotation(e)}},e.prototype.hideCards=function(){var t=this;if(!t.destroyed){var e=t.get("cardInfoMap")||{};Object.keys(e).forEach(function(e){t.hideCard(e)})}},e.prototype.toggleAnnotation=function(t,e){var n,r;void 0===e&&(e={});if(!this.destroyed){var i=this.get("cardInfoMap")||{},o=this.get("graph"),a=this.get("container"),s=this.get("containerCfg"),l=Object.assign({},this.get("cardCfg")||{},e),u=l.minHeight,c=l.minWidth,h=l.width,d=l.height,f=l.collapsed,p=void 0!==f&&f,g=l.x,v=l.y,m=l.title,y=l.content,b=l.maxTitleLength,_=l.defaultBegin,w=Cl(l,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),S=this.get("linkGroup"),C=this.get("rows")||[[]],k=null===(n=t.isCanvas)||void 0===n?void 0:n.call(t),O=k?"canvas-annotation":t.getID(),M=i[O]||{},E=M.card,T=M.link,A=M.x,I=M.y,D=M.title,P=M.content,L=this.get("getTitle"),j=this.get("getContent"),N=this.get("getContentPlaceholder")||function(){return""},R=this.get("getTitlePlaceHolder")||function(){return""},B=N(t),F=R(t),z=Kr(this.getDOMContent(Sl({itemId:O,collapsed:p,title:(null===(r=D||m||(null===L||void 0===L?void 0:L(t)))||void 0===r?void 0:r.substr(0,b))||F,content:P||y||(null===j||void 0===j?void 0:j(t))||B},w))),V=Object(x.isNumber)(u)?"".concat(u,"px"):u;Jr(z,{minHeight:p?"unset":V,minWidth:Object(x.isNumber)(c)?"".concat(c,"px"):c,height:d,width:h});var $,G=!!E;if(G?(null===T||void 0===T||T.remove(!0),a.replaceChild(z,E)):a.appendChild(z),!s){if($=a.getBoundingClientRect()||{},void 0!==g&&void 0!==v)A=g,I=v;else if(!G&&!k){var H=$.top,W=_||{},U=W.left,Y=W.right,X=void 0===Y?16:Y,q=W.top,Z=void 0===q?8:q,K=W.bottom,J=X,Q=Z;isNaN(U)||(J=a.scrollWidth-U),isNaN(K)||(Q=a.scrollHeight-K);var tt=Object(x.isNumber)(c)?c:100;A=a.scrollWidth-z.scrollWidth-(C.length-1)*tt-J;var et=C[C.length-1],nt=(et[et.length-1]||{}).bbox;I=(null===nt||void 0===nt?void 0:nt.bottom)-H||Q}Jr(z,{position:"absolute",left:"".concat(A,"px"),top:"".concat(I,"px"),cusor:s?"unset":"move"})}this.bindListener(z,O);var rt=z.getBoundingClientRect();if(!k){var it=Ol(t,rt,o,this.get("canvas")),ot=this.get("linkStyle");T=S.addShape("path",{attrs:Sl({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:it},ot)})}if(i[O]=Sl(Sl({},i[O]||{}),{id:O,collapsed:p,card:z,link:T,x:A,y:I,cardBBox:rt,content:P||y,title:D||m,contentPlaceholder:B,titlePlaceholder:F,isCanvas:k}),this.set("cardInfoMap",i),s)this.updateCardPositionsInConatainer(),this.updateLinks();else{var at=!isNaN(g)&&!isNaN(v);if(!G&&!k&&!at){var st=$.bottom,lt=void 0===st?0:st;H=$.top;C[C.length-1].push({id:O,bbox:rt}),rt.top>lt-H-rt.height-16&&C.push([]),this.set("rows",C)}}this.updateCardSize(O);var ut=this.get("onAnnotationChange");null===ut||void 0===ut||ut(i[O],G?"update":"create")}},e.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var t=this.get("cardInfoMap");if(t){var e=this.get("container"),n=this.get("containerCfg").position,r=e.getBoundingClientRect().width,i=getComputedStyle(e),o=Ml(i.paddingLeft)+Ml(i.paddingRight);r-=o,Object.values(t).forEach(function(t){var e=t.card,i=e.getBoundingClientRect().width;switch(n){case"right":Jr(e,{marginLeft:r?"".concat(r-i,"px"):"0px"});break;case"top":case"bottom":Jr(e,{marginLeft:"8px"})}})}}},e.prototype.handleExpandCollapseCard=function(t){if(!this.destroyed){var e=this.get("graph"),n=this.get("cardInfoMap");if(n){var r=n[t].collapsed,i=e.findById(t);if(i)"hide"!==this.get("cardCfg").collapseType||r?this.toggleAnnotation(i,{collapsed:!r}):this.hideCard(t),n[t]=Sl(Sl({},n[t]),{collapsed:!r})}}},e.prototype.hideCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e&&e[t]){var n=e[t],r=n.card,i=n.link;Jr(r,{display:"none"}),null===i||void 0===i||i.hide(),this.get("onAnnotationChange")(e[t],"hide")}}},e.prototype.removeCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=e[t],r=n.card,i=n.link;this.get("container").removeChild(r),null===i||void 0===i||i.remove(!0),delete e[t],this.get("onAnnotationChange")(n,"remove")}}},e.prototype.bindListener=function(t,e){var n=this;if(!this.destroyed){t.addEventListener("mousemove",function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseEnterIcon;(void 0===i?function(){}:i)(t,e,r)}}),t.addEventListener("mouseout",function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseLeaveIcon;(void 0===i?function(){}:i)(t,e,r)}}),t.addEventListener("mouseenter",function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!0)}var s=r[e].link;if(s){var l=n.get("linkHighlightStyle")||{};s.attr(l)}}}),t.addEventListener("mouseleave",function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!1)}var s=r[e].link;if(s){var l=n.get("linkHighlightStyle")||{};Object.keys(l).forEach(function(t){s.attr(t,void 0),s.attr(t,void 0)});var u=n.get("linkStyle");s.attr(u)}}}),t.addEventListener("click",function(t){var r=(n.get("cardCfg")||{}).onClickIcon;if("g6-annotation-collapse"===t.target.className||"g6-annotation-expand"===t.target.className)"hide"===n.get("cardCfg").collapseType?n.hideCard(e):n.handleExpandCollapseCard(e),null===r||void 0===r||r(t,e,"g6-annotation-collapse"===t.target.className?"collapse":"expand");else if("g6-annotation-close"===t.target.className){"remove"===n.get("cardCfg").closeType?n.removeCard(e):n.hideCard(e),null===r||void 0===r||r(t,e,"close")}}),this.get("editable")&&t.addEventListener("dblclick",function(t){var r=n.get("cardInfoMap"),i=(n.get("cardCfg")||{}).maxTitleLength,o=void 0===i?20:i;if(r){var a=t.target,s=a.className;if("g6-annotation-title"===s||"g6-annotation-content"===s){var l="g6-annotation-title"===s?a.getBoundingClientRect():a.parentNode.getBoundingClientRect(),u=l.width,c=l.height,h=getComputedStyle(a),d=Kr("<".concat("g6-annotation-title"===s?"input":"textarea",' class="').concat(s,'-input" type="textarea" style="width:').concat(u,"px; height: ").concat(c,'px; min-width: 16px;"/>')),f=Kr('<div class="'.concat(s,'-input-wrapper" style="width: ').concat(u,"px; height: ").concat(c,"px; min-width: 16px; margin-right: ").concat(h.marginRight,'" />'));f.appendChild(d),a.parentNode.replaceChild(f,a);var p=r[e],g=p.contentPlaceholder,v=p.titlePlaceholder,m=p.content,y=p.title,b=m;"g6-annotation-title"===s?(d.name="title",d.maxLength=o,b=y):d.name="content",b?(d.innerHTML=a.innerHTML,d.value=a.innerHTML):d.placeholder="g6-annotation-title"===s?v:g,d.focus(),d.addEventListener("blur",function(t){d.value&&(a.innerHTML=d.value,p[d.name||"title"]=d.value),f.parentNode.replaceChild(a,f),n.updateCardSize(e);var r=n.get("onAnnotationChange");null===r||void 0===r||r(p,"update")})}}});var r=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];t.draggable=!0,t.addEventListener("dragstart",function(e){var i=e.target.className;if(!r.includes(i)){var o=t.style;n.set("dragging",{card:t,x:e.clientX,y:e.clientY,left:Ml(o.left),top:Ml(o.top)})}}),t.addEventListener("drag",function(t){t.preventDefault();var r=n.get("cardInfoMap");if(r){var i=t.clientX,o=t.clientY,a=n.get("dragging");if(!isNaN(i)&&!isNaN(o)&&a){var s=a.x,l=a.y,u=a.left,c=a.top,h=a.card,d=i-s,f=o-l;u+=d,c+=f;var p=n.get("graph"),g=p.getPointByCanvas(0,0),v=p.getPointByCanvas(p.getWidth(),p.getHeight()),m=p.getClientByPoint(g.x,g.y),y=m.x,b=m.y,_=p.getClientByPoint(v.x,v.y),x=_.x,w=_.y,S=h.getBoundingClientRect(),C=S.right-S.left,k=S.bottom-S.top;(u>x-y-C&&d>0||u<0&&d<0)&&(u-=d),(c>w-b-k&&f>0||c<0&&f<0)&&(c-=f),Jr(h,{left:"".concat(u,"px"),top:"".concat(c,"px"),visibility:"hidden"}),s=i,l=o;var O=(r[e]||{}).link;if(O){var M=p.findById(e);O.attr("path",Ol(M,S,p,n.get("canvas")))}n.set("dragging",{x:s,y:l,left:u,top:c,card:h})}}});t.addEventListener("dragend",function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("dragging");if(i){var o=i.left,a=i.top,s=i.card;r[e].x=o,r[e].y=a,Jr(s,{visibility:"visible"}),n.set("dragging",!1);var l=n.get("rows");null===l||void 0===l||l.forEach(function(t){for(var n=t.length-1;n>=0;n--)t[n].id===e&&t.splice(n,1)});var u=n.get("onAnnotationChange");null===u||void 0===u||u(r[e],"update")}}})}},e.prototype.updateCardSize=function(t){var e=this.get("cardInfoMap");if(e){var n=e[t].card,r=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=getComputedStyle(i),a=Ml(o.marginLeft),s=i.getBoundingClientRect().width;Jr(i,{marginRight:"".concat(r-a-24-16-s,"px")})}}},e.prototype.updateLink=function(t){var e=t.item;if(e){var n=this.get("cardInfoMap");if(n){var r=this.get("canvas"),i=this.get("graph"),o=n[e.getID()]||{},a=o.link,s=o.card;if(a){var l=Ol(e,s.getBoundingClientRect(),i,r);a.attr("path",l)}}}},e.prototype.updateLinks=function(){var t=this;if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach(function(e){var r=e.id,i=n.findById(r);t.updateLink({item:i})})}}},e.prototype.onGraphDataChange=function(){var t=this,e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach(function(e){var r=e.id,i=e.card,o=e.isCanvas;if(i&&!o&&"none"!==i.style.display){var a=n.findById(r);a&&a.isVisible()?t.toggleAnnotation(a):t.hideCard(r)}})}},e.prototype.onGraphItemVisibilityChange=function(t){var e=t.item,n=t.visible;if(e&&!e.destroyed){var r=this.get("cardInfoMap");if(r){var i=e.getID();r[i]&&(n||this.hideCard(i))}}},e.prototype.saveData=function(t){void 0===t&&(t=!1);var e=this.get("cardInfoMap");if(e){var n=this.get("graph"),r=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(e).forEach(function(e){var a=e.title,s=e.content,l=e.x,u=e.y,c=e.id,h=e.collapsed,d=e.card;if(!d||"none"!==d.style.display||t){var f=n.findById(c)||n.get("canvas");o.push({id:c,x:l,y:u,collapsed:h,title:a||(null===r||void 0===r?void 0:r(f)),content:s||(null===i||void 0===i?void 0:i(f)),visible:d&&"none"!==d.style.display})}}),o}},e.prototype.readData=function(t){var e=this,n=this.get("graph");t.forEach(function(t){var r=t.id,i=t.x,o=t.y,a=t.title,s=t.content,l=t.collapsed,u=t.visible,c=n.findById(r);if(c||"canvas-annotation"!==r||(c=n.get("canvas")),!c){var h=e.get("cardInfoMap")||{};return h[r]=t,void e.set("cardInfoMap",h)}e.toggleAnnotation(c,{x:i,y:o,title:a,content:s,collapsed:l}),u||e.hideCard(r)})},e.prototype.clear=function(){var t=this.get("cardInfoMap");if(t){var e=this.get("container");Object.values(t).forEach(function(t){var n=t.card,r=t.link;e.removeChild(n),null===r||void 0===r||r.remove(!0)}),this.set("cardInfoMap",{})}},e.prototype.destroy=function(){var t;this.clear(),null===(t=this.get("canvas"))||void 0===t||t.destroy();var e=this.get("graph");e&&!e.destroyed&&(this.get("containerCfg")&&e.getContainer().removeChild(this.get("container")),this.destroyed=!0)},e}(yo),Ol=function(t,e,n,r){var i,o;if("edge"===t.getType())o=[t.getKeyShape().getPoint(.5)];else{var a=null===(i=t.getKeyShape)||void 0===i?void 0:i.call(t).getBBox(),s=a.minX,l=a.minY,u=a.maxX,c=a.maxY,h=t.getModel(),d=h.x,f=h.y;o={left:{x:s+=d,y:((l+=f)+(c+=f))/2},right:{x:u+=d,y:(l+c)/2},top:{x:(s+u)/2,y:l},bottom:{x:(s+u)/2,y:c}}}Object.keys(o).forEach(function(t){var e=o[t],i=e.x,a=e.y,s=n.getClientByPoint(i,a);o[t]=r.getPointByClient(s.x,s.y)});var p=e.top,g=void 0===p?0:p,v=e.left,m=void 0===v?0:v,y=e.right,b=void 0===y?0:y,_=e.bottom,x=void 0===_?0:_,w={left:r.getPointByClient(m,(g+x)/2),right:r.getPointByClient(b,(g+x)/2),top:r.getPointByClient((m+b)/2,g),bottom:r.getPointByClient((m+b)/2,x)};return function(t,e){var n,r,i=1/0;Object.keys(t).forEach(function(o){var a=t[o];Object.keys(e).forEach(function(t){var o=e[t],s=a.x-o.x,l=a.y-o.y,u=s*s+l*l;i>u&&(i=u,n=a,r=o)})});var o=Fr.getControlPoint(n,r,.5,20);return[["M",n.x,n.y],["Q",o.x,o.y,r.x,r.y]]}(o,w)},Ml=function(t){return Number(t.replace(/\s+|px/gi,""))||0},El={PluginBase:yo,Menu:ko,Grid:xo,Minimap:Ao,Bundling:Lo,ToolBar:zo,Tooltip:$o,Fisheye:Bo,TimeBar:ol,ImageMinimap:ll,EdgeFilterLens:fl,SnapLine:ml,Legend:xl,Annotation:kl};var Tl=function(){return(Tl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Al(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;$r("circle",{options:{size:Ur.defaultNode.size,style:{x:0,y:0,stroke:Ur.defaultNode.style.stroke,fill:Ur.defaultNode.style.fill,lineWidth:Ur.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ur.nodeLabel.style.fill,fontSize:Ur.nodeLabel.style.fontSize,fontFamily:Ur.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Ur.defaultNode.linkPoints.size,lineWidth:Ur.defaultNode.linkPoints.lineWidth,fill:Ur.defaultNode.linkPoints.fill,stroke:Ur.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Tl({},Ur.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=Object(x.deepMix)({},r,t.icon),a="".concat(this.type,"-keyShape"),s=e.addShape("circle",{attrs:i,className:a,name:a,draggable:!0});e.shapeMap[a]=s;var l=o.width,u=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");e.shapeMap[d]=h?e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):e.addShape("image",{attrs:Tl({x:-l/2,y:-u/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints;if(n){var r=n||{},i=r.top,o=r.left,a=r.right,s=r.bottom,l=r.size,u=r.r,c=Al(r,["top","left","right","bottom","size","r"]),h=this.getSize(t)[0]/2;if(o){var d="link-point-left";e.shapeMap[d]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:-h,y:0,r:l/2||u||5}),className:d,name:d,isAnchorPoint:!0})}if(a){var f="link-point-right";e.shapeMap[f]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:h,y:0,r:l/2||u||5}),className:f,name:f,isAnchorPoint:!0})}if(i){var p="link-point-top";e.shapeMap[p]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:-h,r:l/2||u||5}),className:p,name:p,isAnchorPoint:!0})}if(s){var g="link-point-bottom";e.shapeMap[g]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:h,r:l/2||u||5}),className:g,name:g,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.deepMix)({},e,n),i=this.getSize(t)[0]/2;return Tl({x:0,y:0,r:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getSize(t),o=Tl({},t.style);void 0===t.style.stroke&&t.color&&(o.stroke=t.color),void 0!==t.style.r||isNaN(i[0])||(o.r=i[0]/2),this.updateShape(t,e,o,!0,n),this.updateLinkPoints(t,r)}},"single-node"),$r("rect",{options:{size:[100,30],style:{radius:0,stroke:Ur.defaultNode.style.stroke,fill:Ur.defaultNode.style.fill,lineWidth:Ur.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ur.nodeLabel.style.fill,fontSize:Ur.nodeLabel.style.fontSize,fontFamily:Ur.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Ur.defaultNode.linkPoints.size,lineWidth:Ur.defaultNode.linkPoints.lineWidth,fill:Ur.defaultNode.linkPoints.fill,stroke:Ur.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:Tl({},Ur.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=r,this.drawLinkPoints(t,e),r},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,l=r.size,u=r.r,c=Al(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:-d/2,y:0,r:l/2||u||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:d/2,y:0,r:l/2||u||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:-f/2,r:l/2||u||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:f/2,r:l/2||u||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return Tl({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getSize(t),a=e.get("keyShape");t.size||(o[0]=a.attr("width")||i.width,o[1]=a.attr("height")||i.height);var s={stroke:t.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},l=Object(x.mix)({},i,a.attr(),s);l=Object(x.mix)(l,t.style),this.updateShape(t,e,l,!1,n),this.updateLinkPoints(t,r)}},"single-node"),$r("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Ur.defaultNode.style.stroke,fill:Ur.defaultNode.style.fill,lineWidth:Ur.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ur.nodeLabel.style.fill,fontSize:Ur.nodeLabel.style.fontSize,fontFamily:Ur.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Ur.defaultNode.linkPoints.size,lineWidth:Ur.defaultNode.linkPoints.lineWidth,fill:Ur.defaultNode.linkPoints.fill,stroke:Ur.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Tl({},Ur.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=o;var a=r.width,s=r.height,l=r.show,u=r.text;return l&&(e.shapeMap["".concat(this.type,"-icon")]=u?e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:Tl({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,l=r.size,u=r.r,c=Al(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0]/2,f=h[1]/2;o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:-d,y:0,r:l/2||u||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:d,y:0,r:l/2||u||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:-f,r:l/2||u||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:f,r:l/2||u||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.mix)({},e,n),i=this.getSize(t),o=i[0]/2,a=i[1]/2;return Tl({x:0,y:0,rx:o,ry:a},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getSize(t),a={stroke:t.color,rx:o[0]/2,ry:o[1]/2},s=e.get("keyShape"),l=Object(x.mix)({},i,s.attr(),a);l=Object(x.mix)(l,t.style),this.updateShape(t,e,l,!0,n),this.updateLinkPoints(t,r)}},"single-node"),$r("diamond",{options:{size:[80,80],style:{stroke:Ur.defaultNode.style.stroke,fill:Ur.defaultNode.style.fill,lineWidth:Ur.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ur.nodeLabel.style.fill,fontSize:Ur.nodeLabel.style.fontSize,fontFamily:Ur.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Ur.defaultNode.linkPoints.size,lineWidth:Ur.defaultNode.linkPoints.lineWidth,fill:Ur.defaultNode.linkPoints.fill,stroke:Ur.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Tl({},Ur.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=o;var a=r.width,s=r.height,l=r.show,u=r.text;return l&&(e.shapeMap["".concat(this.type,"-icon")]=u?e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:Tl({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,l=r.size,u=r.r,c=Al(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:-d/2,y:0,r:l/2||u||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:d/2,y:0,r:l/2||u||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:-f/2,r:l/2||u||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:f/2,r:l/2||u||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1];return[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]]},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.mix)({},e,n),i=this.getPath(t);return Tl({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),l=Object(x.mix)({},i,s.attr(),a);l=Object(x.mix)(l,t.style),this.updateShape(t,e,l,!0,n),this.updateLinkPoints(t,r)}},"single-node"),$r("triangle",{options:{size:40,direction:"up",style:{stroke:Ur.defaultNode.style.stroke,fill:Ur.defaultNode.style.fill,lineWidth:Ur.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ur.nodeLabel.style.fill,fontSize:Ur.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Ur.defaultNode.linkPoints.size,lineWidth:Ur.defaultNode.linkPoints.lineWidth,fill:Ur.defaultNode.linkPoints.fill,stroke:Ur.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:Tl({},Ur.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.icon,i=void 0===r?{}:r,o=n.direction,a=this.getShapeStyle(t),s=t.direction||o,l=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var u=i.width,c=i.height,h=i.show,d=i.offset,f=i.text;if(h)if(f)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-u/2,g=-c/2;"up"!==s&&"down"!==s||(g+=d),"left"!==s&&"right"!==s||(p+=d),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:Tl({x:p,y:g},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(t,e),l},drawLinkPoints:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.linkPoints,i=void 0===r?{}:r,o=n.direction,a=t.direction||o,s=i.top,l=i.left,u=i.right,c=i.bottom,h=i.size,d=i.r,f=Al(i,["top","left","right","bottom","size","r"]),p=this.getSize(t)[0];if(l){var g=null,v=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"up"===a?g=[-m,v]:"down"===a?g=[-m,-v]:"left"===a&&(g=[-m,m-v]),g&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},f),{x:g[0],y:g[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(u){var y=null;v=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"up"===a?y=[m,v]:"down"===a?y=[m,-v]:"right"===a&&(y=[m,m-v]),y&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},f),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(s){var b=null;v=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"up"===a?b=[m-v,-v]:"left"===a?b=[m,-v]:"right"===a&&(b=[-m,-v]),b&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},f),{x:b[0],y:b[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var _=null;v=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"down"===a?_=[-m+v,v]:"left"===a?_=[m,v]:"right"===a&&(_=[-m,v]),_&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},f),{x:_[0],y:_[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,n=t.direction||e,r=this.getSize(t)[0],i=r*Math.sin(1/3*Math.PI),o=r*Math.sin(1/3*Math.PI),a=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return"down"===n?a=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:"left"===n?a=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:"right"===n&&(a=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),a},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.mix)({},e,n),i=this.getPath(t);return Tl({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),l=Object(x.mix)({},i,s.attr(),a);l=Object(x.mix)(l,t.style),this.updateShape(t,e,l,!0,n),this.updateLinkPoints(t,r)},updateLinkPoints:function(t,e){var n=this.getOptions({}),r=n.linkPoints,i=n.direction,o=t.direction||i,a=e.shapeMap["link-point-left"]||e.find(function(t){return"link-point-left"===t.get("className")}),s=e.shapeMap["link-point-right"]||e.find(function(t){return"link-point-right"===t.get("className")}),l=e.shapeMap["link-point-top"]||e.find(function(t){return"link-point-top"===t.get("className")}),u=e.shapeMap["link-point-bottom"]||e.find(function(t){return"link-point-bottom"===t.get("className")}),c=r,h=a||s||l||u;h&&(c=h.attr());var d=Object(x.mix)({},c,t.linkPoints),f=d.fill,p=d.stroke,g=d.lineWidth,v=d.size/2;v||(v=d.r);var m=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},y=m.left,b=m.right,_=m.top,w=m.bottom,S=this.getSize(t)[0],C={r:v,fill:f,stroke:p,lineWidth:g},k=null,O=S*Math.sin(1/3*Math.PI),M=S*Math.sin(1/3*Math.PI);"up"===o?k=[-M,O]:"down"===o?k=[-M,-O]:"left"===o&&(k=[-M,M-O]),k&&(a?y||void 0===y?a.attr(Tl(Tl({},C),{x:k[0],y:k[1]})):(a.remove(),delete e.shapeMap["link-point-left"]):y&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},C),{x:k[0],y:k[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var E=null;"up"===o?E=[M,O]:"down"===o?E=[M,-O]:"right"===o&&(E=[M,M-O]),E&&(s?b||void 0===b?s.attr(Tl(Tl({},C),{x:E[0],y:E[1]})):(s.remove(),delete e.shapeMap["link-point-right"]):b&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},C),{x:E[0],y:E[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var T=null;"up"===o?T=[M-O,-O]:"left"===o?T=[M,-O]:"right"===o&&(T=[-M,-O]),T&&(l?_||void 0===_?l.attr(Tl(Tl({},C),{x:T[0],y:T[1]})):(l.remove(),delete e.shapeMap["link-point-top"]):_&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},C),{x:T[0],y:T[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var A=null;"down"===o?A=[-M+O,O]:"left"===o?A=[M,O]:"right"===o&&(A=[-M,O]),A&&(u?w||void 0===w?u.attr(Tl(Tl({},C),{x:A[0],y:A[1]})):(u.remove(),delete e.shapeMap["link-point-bottom"]):w&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},C),{x:A[0],y:A[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),$r("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Ur.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Ur.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Ur.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).preRect,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=this.getSize(t),a=o[0],s=o[1],l=e.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var u=r.show,c=Al(r,["show"]);return u&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:Tl({x:-a/2,y:-s/2,height:s},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),l},drawLogoIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).logoIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,l=r.y,u=r.offset,c=r.text,h=Al(r,["width","height","x","y","offset","text"]);e.shapeMap["rect-logo-icon"]=c?e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},h),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.addShape("image",{attrs:Tl(Tl({},h),{x:s||-i/2+o+u,y:l||-a/2,width:o,height:a}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).stateIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,l=r.y,u=r.offset,c=r.text,h=Al(r,["width","height","x","y","offset","text"]);e.shapeMap["rect-state-icon"]=c?e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},h),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.addShape("image",{attrs:Tl(Tl({},h),{x:s||i/2-o+u,y:l||-a/2,width:o,height:a}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,l=r.size,u=r.r,c=Al(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:-d/2,y:0,r:l/2||u||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:d/2,y:0,r:l/2||u||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:-f/2,r:l/2||u||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},c),{x:0,y:f/2,r:l/2||u||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(t,e){var n=this.getOptions(t),r=n.labelCfg,i=void 0===r?{}:r,o=n.logoIcon,a=void 0===o?{}:o,s=n.descriptionCfg,l=void 0===s?{}:s,u=this.getSize(t)[0],c=null,h=a.show,d=a.width,f=-u/2+i.offset;h&&(f=-u/2+d+i.offset);var p=i.style,g=l.style,v=l.paddingTop;return Object(x.isString)(t.description)?(c=e.addShape("text",{attrs:Tl(Tl({},p),{x:f,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=c,e.shapeMap["rect-description"]=e.addShape("text",{attrs:Tl(Tl({},g),{x:f,y:17+(v||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(c=e.addShape("text",{attrs:Tl(Tl({},p),{x:f,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=c),c},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return Tl({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.style,i=void 0===r?{}:r,o=n.labelCfg,a=void 0===o?{}:o,s=n.descriptionCfg,l=void 0===s?{}:s,u=this.getSize(t),c=u[0],h=u[1];e.get("keyShape").attr(Tl(Tl({},i),{x:-c/2,y:-h/2,width:c,height:h}));var d=e.getContainer(),f=d.shapeMap["rect-logo-icon"]||d.find(function(t){return"rect-logo-icon"===t.get("className")}),p=f?f.attr():{},g=Object(x.mix)({},p,t.logoIcon),v=g.width;void 0===v&&(v=this.options.logoIcon.width);var m=t.logoIcon?t.logoIcon.show:void 0,y=a.offset,b=-c/2+v+y;m||void 0===m||(b=-c/2+y);var _=d.shapeMap["node-label"]||d.find(function(t){return"node-label"===t.get("className")}),w=d.shapeMap["rect-description"]||d.find(function(t){return"rect-description"===t.get("className")});if(t.label)if(_){var S=t.labelCfg?t.labelCfg.style:{},C=Object(x.mix)({},_.attr(),S);t.label&&(C.text=t.label),C.x=b,Object(x.isString)(t.description)&&(C.y=-5),w&&(w.resetMatrix(),w.attr({x:b})),_.resetMatrix(),_.attr(C)}else d.shapeMap["node-label"]=d.addShape("text",{attrs:Tl(Tl({},a.style),{x:b,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});if(Object(x.isString)(t.description)){var k=l.paddingTop;if(w){S=t.descriptionCfg?t.descriptionCfg.style:{};var O=Object(x.mix)({},w.attr(),S);Object(x.isString)(t.description)&&(O.text=t.description),O.x=b,w.resetMatrix(),w.attr(Tl(Tl({},O),{y:17+(k||0)}))}else d.shapeMap["rect-description"]=d.addShape("text",{attrs:Tl(Tl({},l.style),{x:b,y:17+(k||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})}var M=d.shapeMap["pre-rect"]||d.find(function(t){return"pre-rect"===t.get("className")});if(M&&!M.destroyed){var E=Object(x.mix)({},M.attr(),t.preRect);M.attr(Tl(Tl({},E),{x:-c/2,y:-h/2,height:h}))}if(f&&!f.destroyed)if(m||void 0===m){var T=g.width,A=g.height,I=g.x,D=g.y,P=g.offset,L=Al(g,["width","height","x","y","offset"]);f.attr(Tl(Tl({},L),{x:I||-c/2+T+P,y:D||-A/2,width:T,height:A}))}else f.remove(),delete d.shapeMap["pre-rect"];else m&&this.drawLogoIcon(t,d);var j=d.shapeMap["rect-state-icon"]||d.find(function(t){return"rect-state-icon"===t.get("className")}),N=j?j.attr():{},R=Object(x.mix)({},N,t.stateIcon);if(j){R.show||void 0===R.show||(j.remove(),delete d.shapeMap["rect-state-icon"]);var B=R.width,F=(A=R.height,I=R.x,D=R.y,R.offset),z=Al(R,["width","height","x","y","offset"]);j.attr(Tl(Tl({},z),{x:I||c/2-B+F,y:D||-A/2,width:B,height:A}))}else R.show&&this.drawStateIcon(t,d);this.updateLinkPoints(t,d)},getOptions:function(t,e){return"move"===e?t:Object(x.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),$r("star",{options:{size:60,style:{stroke:Ur.defaultNode.style.stroke,fill:Ur.defaultNode.style.fill,lineWidth:Ur.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ur.nodeLabel.style.fill,fontSize:Ur.nodeLabel.style.fontSize,fontFamily:Ur.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Ur.defaultNode.linkPoints.size,lineWidth:Ur.defaultNode.linkPoints.lineWidth,fill:Ur.defaultNode.linkPoints.fill,stroke:Ur.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Tl({},Ur.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=o;var a=r.width,s=r.height,l=r.show,u=r.text;return l&&(e.shapeMap["".concat(this.type,"-icon")]=u?e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:Tl({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.leftBottom,l=r.rightBottom,u=r.size,c=r.r,h=Al(r,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(t)[0];if(a){var f=Math.cos(.1*Math.PI)*d,p=Math.sin(.1*Math.PI)*d;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},h),{x:f,y:-p,r:u/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){f=Math.cos(.5*Math.PI)*d,p=Math.sin(.5*Math.PI)*d;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},h),{x:f,y:-p,r:u/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){f=Math.cos(.9*Math.PI)*d,p=Math.sin(.9*Math.PI)*d;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},h),{x:f,y:-p,r:u/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(s){f=Math.cos(1.3*Math.PI)*d,p=Math.sin(1.3*Math.PI)*d;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},h),{x:f,y:-p,r:u/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(l){f=Math.cos(1.7*Math.PI)*d,p=Math.sin(1.7*Math.PI)*d;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},h),{x:f,y:-p,r:u/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t)[0],n=3*e/8,r=t.innerR||n;return Fr.getStarPath(e,r)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=Object(x.mix)({},e,n),i=this.getPath(t);return Tl({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),l=Object(x.mix)({},i,s.attr(),a);l=Object(x.mix)(l,t.style),this.updateShape(t,e,l,!0,n),this.updateLinkPoints(t,r)},updateLinkPoints:function(t,e){var n=this.getOptions({}).linkPoints,r=e.shapeMap["link-point-left"]||e.find(function(t){return"link-point-left"===t.get("className")}),i=e.shapeMap["link-point-right"]||e.find(function(t){return"link-point-right"===t.get("className")}),o=e.shapeMap["link-point-top"]||e.find(function(t){return"link-point-top"===t.get("className")}),a=e.shapeMap["link-point-left-bottom"]||e.find(function(t){return"link-point-left-bottom"===t.get("className")}),s=e.shapeMap["link-point-left-bottom"]||e.find(function(t){return"link-point-right-bottom"===t.get("className")}),l=n,u=r||i||o||a||s;u&&(l=u.attr());var c=Object(x.mix)({},l,t.linkPoints),h=c.fill,d=c.stroke,f=c.lineWidth,p=c.size/2;p||(p=c.r);var g=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},v=g.left,m=g.right,y=g.top,b=g.leftBottom,_=g.rightBottom,w=this.getSize(t)[0],S={r:p,fill:h,stroke:d,lineWidth:f},C=Math.cos(.1*Math.PI)*w,k=Math.sin(.1*Math.PI)*w;i?m||void 0===m?i.attr(Tl(Tl({},S),{x:C,y:-k})):(i.remove(),delete e.shapeMap["link-point-right"]):m&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:Tl(Tl({},S),{x:C,y:-k}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),C=Math.cos(.5*Math.PI)*w,k=Math.sin(.5*Math.PI)*w,o?y||void 0===y?o.attr(Tl(Tl({},S),{x:C,y:-k})):(o.remove(),delete e.shapeMap["link-point-top"]):y&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:Tl(Tl({},S),{x:C,y:-k}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),C=Math.cos(.9*Math.PI)*w,k=Math.sin(.9*Math.PI)*w,r?v||void 0===v?r.attr(Tl(Tl({},S),{x:C,y:-k})):(r.remove(),delete e.shapeMap["link-point-left"]):v&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:Tl(Tl({},S),{x:C,y:-k}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),C=Math.cos(1.3*Math.PI)*w,k=Math.sin(1.3*Math.PI)*w,a?b||void 0===b?a.attr(Tl(Tl({},S),{x:C,y:-k})):(a.remove(),delete e.shapeMap["link-point-left-bottom"]):b&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},S),{x:C,y:-k}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),C=Math.cos(1.7*Math.PI)*w,k=Math.sin(1.7*Math.PI)*w,s?_||void 0===_?s.attr(Tl(Tl({},S),{x:C,y:-k})):(s.remove(),delete e.shapeMap["link-point-right-bottom"]):_&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:Tl(Tl({},S),{x:C,y:-k}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Il=Fr.defaultSubjectColors,Dl=function(t,e){var n=0,r=[];return Object.keys(t).forEach(function(i){var o=+t[i];isNaN(o)||(r.push({key:i,value:o,color:e[i]}),n+=o)}),{totalValue:n,configs:r}},Pl=function(t){var e=t.attr("r"),n=.6*e;return{lineWidth:e-n,arcR:(e+n)/2}},Ll=function(t,e){var n,r,i,o=e.arcR,a=e.arcBegin,s=e.beginAngle,l=e.config,u=e.fanIndex,c=e.lineWidth,h=e.totalValue,d=e.drawWhole,f=void 0!==d&&d,p=e.updateShape,g=void 0===p?void 0:p,v=l.value/h;if(v<.001)return{beginAngle:s,arcBegin:a,shape:void 0,shouldEnd:!1};if(f||v>.999)n=[o,1e-4],i=1;else{var m=v*Math.PI*2;r=s+m,n=[o*Math.cos(r),-o*Math.sin(r)],i=m>Math.PI?1:0}var y={path:[["M",a[0],a[1]],["A",o,o,0,i,0,n[0],n[1]]],stroke:l.color||(null===g||void 0===g?void 0:g.attr("stroke"))||Il[u%Il.length],lineWidth:c};return g?g.attr(y):t.shapeMap["".concat("fan-shape-").concat(u)]=t.addShape("path",{attrs:y,name:"".concat("fan-shape-").concat(u),draggable:!0}),{beginAngle:r,arcBegin:n,shape:t.shapeMap["".concat("fan-shape-").concat(u)],shouldEnd:f||v>.999}};$r("donut",{options:{size:Ur.defaultNode.size,style:{x:0,y:0,stroke:Ur.defaultNode.style.stroke,fill:Ur.defaultNode.style.fill,lineWidth:Ur.defaultNode.style.lineWidth},labelCfg:{style:{fill:Ur.nodeLabel.style.fill,fontSize:Ur.nodeLabel.style.fontSize,fontFamily:Ur.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Ur.defaultNode.linkPoints.size,lineWidth:Ur.defaultNode.linkPoints.lineWidth,fill:Ur.defaultNode.linkPoints.fill,stroke:Ur.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Tl({},Ur.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=Object(x.deepMix)({},r,t.icon),a=e.addShape("circle",{attrs:i,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=a;var s=o.width,l=o.height,u=o.show,c=o.text;return u&&(e.shapeMap["".concat(this.type,"-icon")]=c?e.addShape("text",{attrs:Tl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:Tl({x:-s/2,y:-l/2},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),function(t,e,n){var r=t.donutAttrs,i=void 0===r?{}:r,o=t.donutColorMap,a=void 0===o?{}:o,s=Object.keys(i).length;if(i&&s>1){var l=Dl(i,a),u=l.configs,c=l.totalValue;if(c){var h=Pl(n),d=h.lineWidth,f=h.arcR,p=[f,0],g=0;if(1===s)return void Ll(e,{arcR:f,arcBegin:p,beginAngle:g,config:u[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});for(var v=0;v<u.length;v++){var m=Ll(e,{arcR:f,arcBegin:p,beginAngle:g,config:u[v],fanIndex:v,lineWidth:d,totalValue:c});if(m.shouldEnd)return;p=m.arcBegin,g=m.beginAngle}}}}(t,e,a),this.drawLinkPoints(t,e),a},updateShape:function(t,e,n,r,i){var o=e.get("keyShape");o.attr(Tl({},n)),function(t,e,n){var r=t.donutAttrs,i=t.donutColorMap,o=void 0===i?{}:i,a={},s=e.getContainer();if(r){var l=Dl(r,o),u=l.configs,c=l.totalValue;if(c)for(var h=Pl(n),d=h.lineWidth,f=h.arcR,p=[f,0],g=0,v=0;v<u.length;v++){var m="".concat("fan-shape-").concat(v),y=Ll(s,{arcR:f,arcBegin:p,beginAngle:g,config:u[v],fanIndex:v,lineWidth:d,totalValue:c,drawWhole:1===u.length,updateShape:s.shapeMap[m]});if(y.shape&&(a[m]=!0),y.shouldEnd)break;p=y.arcBegin,g=y.beginAngle}}Object.keys(s.shapeMap).filter(function(t){return t.includes("fan-shape-")}).forEach(function(t){a[t]||(s.shapeMap[t].remove(!0),delete s.shapeMap[t])})}(t,e,o),this.updateLabel(t,e,i),r&&this.updateIcon(t,e)}},"circle");var jl=function(t){var e=t.x,n=t.y;return{x:e,y:n,centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0}},Nl=function(t){for(var e=[],n={},r=t.length-1;r>=0;r--){var i=t[r];i.id="".concat(i.x,"|||").concat(i.y),n[i.id]||(n[i.id]=i,e.push(i))}return e},Rl=function(t){return Nl(t)},Bl=function(t,e){return t.width||t.height?{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}:t},Fl=function(t,e,n){var r=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return 0===n&&0===r?0:n/e.width>r/e.height}(e,t);if(0===r){var i=t.centerX,o=t.centerY;return n.y<e.y?o=t.minY:n.x>e.x?i=t.maxX:n.x<e.x?i=t.minX:n.x===e.x&&(o=t.maxY),{x:i,y:o}}return r?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},zl=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+o)/2,minX:n,minY:r,maxX:i,maxY:o,height:o-r,width:i-n}},Vl=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}]},$l=function(t,e){var n=t.x,r=t.y;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY},Gl=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Hl=function(t,e,n,r,i){return Gl(t,e)+Gl(t,n)+function(t,e){var n=0;return e.forEach(function(e){e&&(t.x===e.x&&(n+=-2),t.y===e.y&&(n+=-2))}),n}(t,[e,n,r,i])},Wl=function(t,e,n,r,i){void 0===i&&(i=0),t.unshift(e[r]),n[r]&&n[r]!==r&&i<=100&&Wl(t,e,n,n[r],i+1)},Ul=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=r.x-t.x,s=r.y-t.y,l=n.x-e.x,u=n.y-e.y,c=r.x-e.x,h=r.y-e.y;return(i*s-o*a)*(l*h-u*c)<=0&&(i*u-o*l)*(a*h-s*c)<=0},Yl=function(t,e,n){if(n.width||n.height){var r=Vl(n),i=r[0],o=r[1],a=r[2],s=r[3];return Ul(t,e,i,o)||Ul(t,e,i,s)||Ul(t,e,o,a)||Ul(t,e,a,s)}return!1},Xl=function(t,e,n,r){var i=[];return t.forEach(function(t){if(t!==e&&(t.x===e.x||t.y===e.y)){if(Yl(t,e,n)||Yl(t,e,r))return;i.push(t)}}),Nl(i)},ql=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={}}return t.prototype._innerAdd=function(t,e){for(var n=[0,e-1];n[1]-n[0]>1;){var r=Math.floor((n[0]+n[1])/2);if(this.arr[r].value>t.value)n[1]=r;else{if(!(this.arr[r].value<t.value))return this.arr.splice(r,0,t),void(this.map[t.id]=!0);n[0]=r}}this.arr.splice(n[1],0,t),this.map[t.id]=!0},t.prototype.add=function(t){delete this.map[t.id];var e=this.arr.length;return e?this.arr[e-1].value<t.value?(this.arr.push(t),void(this.map[t.id]=!0)):void this._innerAdd(t,e):(this.arr.push(t),void(this.map[t.id]=!0))},t.prototype.remove=function(t){this.map[t]&&delete this.map[t]},t.prototype._clearAndGetMinId=function(){for(var t,e=this.arr.length-1;e>=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t},t.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id}},t.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId()},t}(),Zl=function(t,e){var n=[],r=t[0];return n.push("M".concat(r.x," ").concat(r.y)),t.forEach(function(r,i){var o=t[i+1],a=t[i+2];if(o&&a)if(function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y)}(r,o,a)){var s=function(t,e,n,r){var i=Gl(t,e),o=Gl(n,e);return i<r&&(r=i),o<r&&(r=o),[{x:e.x-r/i*(e.x-t.x),y:e.y-r/i*(e.y-t.y)},{x:e.x-r/o*(e.x-n.x),y:e.y-r/o*(e.y-n.y)}]}(r,o,a,e),l=s[0],u=s[1];n.push("L".concat(l.x," ").concat(l.y)),n.push("Q".concat(o.x," ").concat(o.y," ").concat(u.x," ").concat(u.y)),n.push("L".concat(u.x," ").concat(u.y))}else n.push("L".concat(o.x," ").concat(o.y));else o&&n.push("L".concat(o.x," ").concat(o.y))}),n.join("")},Kl=function(t,e,n,r,i){var o,a;if(n&&n.getType())if("combo"===n.getType()){var s=n.getKeyShape().getBBox();if(s){var l=n.getModel(),u=l.x,c=l.y;(o={x:u,y:c,width:s.width,height:s.height,minX:s.minX+u,maxX:s.maxX+u,minY:s.minY+c,maxY:s.maxY+c}).centerX=(o.minX+o.maxX)/2,o.centerY=(o.minY+o.maxY)/2}else o=jl(t)}else o=n&&n.getBBox();else o=jl(t);if(r&&r.getType())if("combo"===r.getType()){var h=r.getKeyShape().getBBox();if(h){var d=r.getModel(),f=d.x,p=d.y;(a={x:f,y:p,width:h.width,height:h.height,minX:h.minX+f,maxX:h.maxX+f,minY:h.minY+p,maxY:h.maxY+p}).centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2}else a=jl(e)}else a=r&&r.getBBox();else a=jl(e);var g=Bl(o,i),v=Bl(a,i),m=Fl(g,t,e),y=Fl(v,e,t),b=function(t){void 0===t&&(t=[]);var e=[],n=[];t.forEach(function(t){e.push(t.x),n.push(t.y)});var r=Math.min.apply(Math,e),i=Math.max.apply(Math,e),o=Math.min.apply(Math,n),a=Math.max.apply(Math,n);return{centerX:(r+i)/2,centerY:(o+a)/2,maxX:i,maxY:a,minX:r,minY:o,height:a-o,width:i-r}}([m,y]),_=zl(g,b),x=zl(v,b),w=[];w=w.concat(Vl(_)).concat(Vl(x));var S={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[b,_,x].forEach(function(t){w=w.concat(function(t,e){return function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]}(t,e.x).concat(function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]}(t,e.y))}(t,S).filter(function(t){return $l(t,g)&&$l(t,v)}))}),[{x:m.x,y:y.y},{x:y.x,y:m.y}].forEach(function(t){$l(t,g)&&$l(t,v)&&w.push(t)}),w.unshift(m),w.push(y);var C=function(t,e,n,r,i,o,a){var s,l=[],u=((s={})[e.id]=e,s),c={},h={},d={};h[e.id]=0,d[e.id]=Hl(e,n,e);var f=new ql;f.add({id:e.id,value:d[e.id]});var p,g={};for(t.forEach(function(t){g[t.id]=t});Object.keys(u).length;){var v=f.minId(!1);if(!v)break;if((p=u[v])===n){var m=[];return Wl(m,g,c,n.id),m}delete u[p.id],f.remove(p.id),l.push(p);var y=Xl(t,p,r,i);y.forEach(function(t){if(-1===l.indexOf(t)){var r=t.id;u[r]||(u[r]=t);var i=d[p.id]+Gl(p,t);h[r]&&i>=h[r]?f.add({id:r,value:d[r]}):(c[r]=p.id,h[r]=i,d[r]=h[r]+Hl(t,n,e,o,a),f.add({id:r,value:d[r]}))}})}return[e,n]}(w=Nl(w),m,y,o,a,t,e);return C.unshift(t),C.push(e),Rl(C)},Jl={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},fallbackRoute:function(t,e,n,r,i){return Rl(Kl(t,e,n,r,i.offset))}},Ql=(Math.PI,function(t,e){var n=Math.round(Math.abs(t/e));return n<0?0:(t<0?-1:1)*n}),tu=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n||r?Math.atan2(r,n):0},eu=function(t,e){var n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n},nu=function(t,e,n){for(var r=1/0,i=0,o=e.length;i<o;i++){var a=n(t,e[i]);a<r&&(r=a)}return r},ru=function(t,e,n,r,i){var o=[];if(!n)return[t];var a=i.directions,s=i.offset,l=n.getBBox(),u=e.x>l.minX&&e.x<l.maxX&&e.y>l.minY&&e.y<l.maxY,c=Bl(l,s);for(var h in c)c[h]=Ql(c[h],i.gridSize);if(u){for(var d=0,f=a;d<f.length;d++){var p=f[d],g=[[{x:c.minX,y:c.minY},{x:c.maxX,y:c.minY}],[{x:c.minX,y:c.minY},{x:c.minX,y:c.maxY}],[{x:c.maxX,y:c.minY},{x:c.maxX,y:c.maxY}],[{x:c.minX,y:c.maxY},{x:c.maxX,y:c.maxY}]];for(h=0;h<4;h++){var v=g[h],m=Fr.getLineIntersect(t,{x:t.x+p.stepX*c.width,y:t.y+p.stepY*c.height},v[0],v[1]);m&&!Yl(t,m,l)&&(m.id="".concat(m.x,"|||").concat(m.y),o.push(m))}}return o}var y=Fl(c,t,r);return y.id="".concat(y.x,"|||").concat(y.y),[y]},iu=function(t,e,n,r){var i=tu(t,e),o=n[t.id];if(!o){var a=tu(r,t);return eu(a,i)}var s=tu({x:o.x,y:o.y},t);return eu(s,i)},ou=function(t,e,n,r,i,o,a){var s=[r],l=r,u=t.id,c=t.x,h=t.y,d={x:c,y:h,id:u};iu(d,o,e,n)&&(l={x:o.x===r.x?r.x:d.x*a,y:o.y===r.y?r.y:d.y*a},s.unshift(l));for(var f=e[u];f&&f.id!==u;){var p={x:c,y:h,id:u},g={x:f.x,y:f.y,id:f.id};iu(g,p,e,n)&&(l={x:g.x===p.x?l.x:g.x*a,y:g.y===p.y?l.y:g.y*a},s.unshift(l)),c=g.x,h=g.y,f=e[u=g.id]}return s[0].x=c===n.x?i.x:l.x,s[0].y=h===n.y?i.y:l.y,s.unshift(i),s},au=function(t,e,n,r,i){if(isNaN(t.x)||isNaN(e.x))return[];var o=Object(x.deepMix)(Jl,i);o.obstacles=o.obstacles||[];var a=o.penalties,s=o.gridSize,l=function(t,e,n){var r={};return t.forEach(function(t){if(t)for(var i=Bl(t.getBBox(),n),o=Ql(i.minX,e);o<=Ql(i.maxX,e);o+=1)for(var a=Ql(i.minY,e);a<=Ql(i.maxY,e);a+=1)r["".concat(o,"|||").concat(a)]=!0}),r}(o.obstacles.concat([n,r]),s,o.offset),u={x:Ql(t.x,s),y:Ql(t.y,s)},c={x:Ql(e.x,s),y:Ql(e.y,s)};t.id="".concat(u.x,"|||").concat(u.y),e.id="".concat(c.x,"|||").concat(c.y);var h=ru(u,t,n,c,o),d=ru(c,e,r,u,o);h.forEach(function(t){delete l[t.id]}),d.forEach(function(t){delete l[t.id]});for(var f={},p={},g={},v={},m={},y=new ql,b=0;b<h.length;b++){var _=h[b];f[_.id]=_,v[_.id]=0,m[_.id]=nu(_,d,o.distFunc),y.add({id:_.id,value:m[_.id]})}var w,S,C,k,O,M,E=o.maximumLoops,T=1/0,A={};for(d.forEach(function(t){A["".concat(t.x,"|||").concat(t.y)]=!0}),Object.keys(f).forEach(function(t){var e=f[t].id;m[e]<=T&&(T=m[e],w=f[e])});Object.keys(f).length>0&&E>0;){var I=y.minId((E+1)%30==0);if(!I)break;if(w=f[I],A["".concat(w.x,"|||").concat(w.y)])return ou(w,g,u,e,t,c,s);delete f[w.id],y.remove(w.id),p[w.id]=!0;for(b=0;b<o.directions.length;b++){S=o.directions[b];var D="".concat(Math.round(w.x)+S.stepX,"|||").concat(Math.round(w.y)+S.stepY);if(C={x:w.x+S.stepX,y:w.y+S.stepY,id:D},!p[D]&&!((M=iu(w,C,g,u))>o.maxAllowedDirectionChange||l[D])){f[D]||(f[D]=C);var P=a[M];k=o.distFunc(w,C)+(isNaN(P)?s:P),O=v[w.id]+k;var L=v[D];L&&O>=L||(g[D]=w,v[D]=O,m[D]=O+nu(C,d,o.distFunc),y.add({id:D,value:m[D]}))}}E-=1}return o.fallbackRoute(t,e,n,r,o)};Gr("polyline",{options:{color:Ur.defaultEdge.color,size:Ur.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Ur.defaultEdge.style.stroke,lineAppendWidth:Ur.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Ur.edgeLabel.style.fill,fontSize:Ur.edgeLabel.style.fontSize,fontFamily:Ur.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:Tl({},Ur.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);0===n.radius&&delete n.radius;var r=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return e.shapeMap["edge-shape"]=r,r},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=Object(x.mix)({},e,n,t.style);t=this.getPathPoints(t),this.radius=r.radius,this.offset=r.offset;var i=t.startPoint,o=t.endPoint,a=this.getControlPoints(t),s=[i];a&&(s=s.concat(a)),s.push(o);var l=t.sourceNode,u=t.targetNode,c=r.radius,h=this.options.routeCfg,d=Object(x.mix)({},h,t.routeCfg);d.offset=r.offset;var f=this.getPath(s,l,u,c,d,!Boolean(a));return(Object(x.isArray)(f)&&f.length<=1||Object(x.isString)(f)&&-1===f.indexOf("L"))&&(f="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(f="M0 0, L0 0"),Object(x.mix)({},Ur.defaultEdge.style,r,{lineWidth:t.size,path:f})},updateShapeStyle:function(t,e){var n=e.getContainer();if(e.isVisible()){var r={stroke:t.color},i=n.shapeMap["edge-shape"]||n.find(function(t){return"edge-shape"===t.get("className")})||e.getKeyShape(),o=t.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,l=this.getControlPoints(t),u=[a];l&&(u=u.concat(l)),u.push(s);var c=i.attr(),h=Object(x.mix)({},r,c,t.style),d=t.sourceNode,f=t.targetNode,p=h.radius,g=this.options.routeCfg,v=Object(x.mix)({},g,t.routeCfg);v.offset=h.offset;var m=this.getPath(u,d,f,p,v,!Boolean(l));(Object(x.isArray)(m)&&m.length<=1||Object(x.isString)(m)&&-1===m.indexOf("L"))&&(m="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(m="M0 0, L0 0"),c.endArrow&&!1===h.endArrow&&(t.style.endArrow={path:""}),c.startArrow&&!1===h.startArrow&&(t.style.startArrow={path:""});var y=Object(x.mix)(r,i.attr(),{lineWidth:o,path:m},t.style);i&&i.attr(y)}},getPath:function(t,e,n,r,i,o){var a=i.offset,s=i.obstacles,l=i.simple;if(!a||t.length>2||!1===o){if(r)return Zl(t,r);var u=[];return Object(x.each)(t,function(t,e){0===e?u.push(["M",t.x,t.y]):u.push(["L",t.x,t.y])}),u}!1===l||(null===s||void 0===s?void 0:s.length)||(l=!0);var c=l?Kl(t[t.length-1],t[0],n,e,a):au(t[0],t[t.length-1],e,n,i);return c&&c.length?r?Zl(c,r):(c=function(t){if(!(null===t||void 0===t?void 0:t.length))return t;for(var e=t[t.length-1],n={x:e.x,y:e.y},r=[e],i=[e],o=t.length-2;o>=0;o--){var a,s=t[o];s.x===n.x?r.push(s):(r=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),r.length>2?(a=t.indexOf(r[1]))>-1&&t.splice(a,1):i.length>2&&(a=t.indexOf(i[1]))>-1&&t.splice(a,1)}return t}(c),Fr.pointsToPolygon(c)):"M0 0, L0 0"}},"single-edge");var su=zi.cloneEvent,lu=zi.isNaN,uu=Math.abs,cu=["shift","ctrl","alt","control"],hu={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,n=+t.clientX,r=+t.clientY;if(!lu(n)&&!lu(r)){var i=n-e.x,o=r-e.y;"x"===this.get("direction")?o=0:"y"===this.get("direction")&&(i=0),this.origin={x:n,y:r};var a=this.graph.get("width"),s=this.graph.get("height"),l=this.graph.get("canvas").getCanvasBBox(),u=this.scalableRange,c=this.scalableRange;u<1&&u>-1&&(u*=a,c*=s),(l.minX<=a+u&&l.minX+i>a+u||l.maxX+u>=0&&l.maxX+u+i<0)&&(i=0),(l.minY<=s+c&&l.minY+o>s+c||l.maxY+c>=0&&l.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];n&&r||(t.preventDefault(),this.mousedown=!0,this.onDragStart(t))},onMouseDown:function(t){this.mousedown=!0},onDragMove:function(t){this.mousedown&&(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=t.originalEvent;if((!e||"touchstart"===t.name||0===e.button)&&("touchstart"===t.name||"undefined"==typeof window||!window.event||window.event.buttons||window.event.button)&&this.shouldBegin(t,this)&&!this.keydown&&this.allowDrag(t)){if(this.origin={x:t.clientX,y:t.clientY},this.dragging=!1,this.enableOptimize){for(var n=this.graph,r=n.getEdges(),i=0,o=r.length;i<o;i++){var a=r[i].get("group").get("children");a&&a.forEach(function(t){t.set("ori-visibility",t.get("ori-visibility")||t.get("visible")),t.hide()})}for(var s=n.getNodes(),l=0,u=s.length;l<u;l++)for(var c=0,h=s[l].getContainer().get("children");c<h.length;c++){var d=h[c];d.get("isKeyShape")||(d.set("ori-visibility",d.get("ori-visibility")||d.get("visible")),d.hide())}}if("undefined"!=typeof window){var f=this;this.handleDOMContextMenu=function(t){return f.onMouseUp(t)},document.body.addEventListener("contextmenu",this.handleDOMContextMenu)}}},onTouchMove:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];n&&r?this.onMouseUp(t):(t.preventDefault(),this.onDrag(t))},onDrag:function(t){if(this.mousedown){var e=this.graph;if(!this.keydown&&this.allowDrag(t)&&(t=su(t),this.origin)){if(this.dragging)t.type="drag",e.emit("canvas:drag",t);else{if(uu(this.origin.x-t.clientX)+uu(this.origin.y-t.clientY)<10)return;this.shouldBegin(t,this)&&(t.type="dragstart",e.emit("canvas:dragstart",t),this.originPosition={x:t.clientX,y:t.clientY},this.dragging=!0)}this.shouldUpdate(t,this)&&this.updateViewport(t)}}},onMouseUp:function(t){var e,n;this.mousedown=!1,this.dragstart=!1;var r=this.graph;if(!this.keydown){var i=r.getZoom(),o=r.get("modeController"),a=null===(n=null===(e=null===o||void 0===o?void 0:o.modes[o.mode])||void 0===e?void 0:e.filter(function(t){return"zoom-canvas"===t.type}))||void 0===n?void 0:n[0],s=a?a.optimizeZoom||.1:0;if(this.enableOptimize){for(var l=r.getEdges(),u=0,c=l.length;u<c;u++){var h=l[u].get("group").get("children");h&&h.forEach(function(t){var e=t.get("ori-visibility");t.set("ori-visibility",void 0),e&&t.show()})}if(i>s)for(var d=r.getNodes(),f=0,p=d.length;f<p;f++)for(var g=0,v=d[f].getContainer().get("children");g<v.length;g++){var m=v[g];if(!m.get("isKeyShape")){var y=m.get("ori-visibility");m.set("ori-visibility",void 0),y&&m.show()}}}this.dragging?(t=su(t),this.shouldEnd(t,this)&&this.updateViewport(t),t.type="dragend",t.dx=t.clientX-this.originPosition.x,t.dy=t.clientY-this.originPosition.y,r.emit("canvas:dragend",t),this.endDrag(),"undefined"!=typeof window&&document.body.removeEventListener("contextmenu",this.handleDOMContextMenu)):this.origin=null}},endDrag:function(){this.origin=null,this.dragging=!1,this.dragbegin=!1,this.mousedown=!1,this.dragstart=!1},onKeyDown:function(t){var e=t.key;e&&(cu.indexOf(e.toLowerCase())>-1?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(t){var e,n,r=t.target,i=r&&r.isCanvas&&r.isCanvas();if(Object(x.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if(Object(x.isObject)(this.allowDragOnItem)){var o=this.allowDragOnItem,a=o.node,s=o.edge,l=o.combo,u=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!a&&"node"===u)return!1;if(!s&&"edge"===u)return!1;if(!l&&"combo"===u)return!1}return!0}},du={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(t){return!(!this.origin||!t||t.destroyed)&&"combo"===t.getType()},onTouchStart:function(t){if(t.item){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},this.dragstart=!0,this.onDragStart(t)}},onTouchMove:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return void this.onDragEnd(t);t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.onDrag(t)},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},"undefined"==typeof window||this.windowEventBinded||(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(t){var e,n;"node"===(null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e))?this.mousedown&&(this.dragstart?this.onDrag(m(m({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t))):this.onDragEnd()},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,this.shouldBegin(m(m({},t),this.mousedown),this)){var n=this.mousedown,r=n.item,i=n.target;if(r&&!r.destroyed&&!r.hasLocked()){if(r.getContainer().set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(r),i)if(i.get("isAnchorPoint"))return;var o=this.graph;this.targets=[],this.targetCombo=null;var a=o.findAllByState("node",this.selectedState),s=r.get("id");if(0===a.filter(function(t){var e=t.get("id");return s===e}).length?this.targets.push(r):a.length>1?a.forEach(function(t){t.hasLocked()||e.targets.push(t)}):this.targets.push(r),this.graph.get("enabledStack")&&this.enableStack){var l=[];this.targets.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;l.push({x:n,y:r,id:i})}),this.set("beforeDragNodes",l)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(t){t.getEdges().forEach(function(t){t.isVisible()&&(e.hidenEdge[t.getID()]=!0,t.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;if(this.mousedown&&this.origin&&this.shouldUpdate(t,this))if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map(function(r){e.update(r,t);var i=r.getModel().comboId;i&&(n[i]=e.graph.findById(i))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(t){var e,n=this;if(this.mousedown=!1,this.dragstart=!1,"undefined"!=typeof window&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),this.origin){null===(e=this.cachedCaptureItems)||void 0===e||e.forEach(function(t){t.getContainer().set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(t){t.getEdges().forEach(function(t){n.hidenEdge[t.getID()]&&t.show(),t.refresh()})}),this.hidenEdge={};var r=this.graph;if(r.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(t){i.before.nodes.push(t)}),this.targets.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y,o=e.id;i.after.nodes.push({x:n,y:r,id:o})}),r.pushStack("update",Object(x.clone)(i))}r.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&this.validationCombo(e)){var n=this.graph;if(this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)n.updateCombos();else{var r=e.getModel();this.targets.map(function(t){t.getModel().comboId!==r.id&&n.updateComboTree(t,r.id)}),n.updateCombo(e)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),this.targets&&0!==this.targets.length&&this.currentShouldEnd&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(t){t.getModel().comboId&&e.updateComboTree(t)}))},onDropNode:function(t){if(this.targets&&0!==this.targets.length){var e=t.item,n=this.graph,r=e.getModel().comboId,i=r?n.findById(r):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(r){var o=n.findById(r);this.comboActiveState&&n.setItemState(o,this.comboActiveState,!1),this.targets.map(function(t){var e=t.getModel();r!==e.comboId&&n.updateComboTree(t,r)}),n.updateCombo(o)}else this.targets.map(function(t){t.getModel().comboId&&n.updateComboTree(t)});n.emit("dragnodeend",{items:this.targets,targetItem:e})}}},onDragEnter:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t,e){var n=this;this.targets&&0!==this.targets.length&&(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map(function(e){return n.update(e,t)}):this.targets.map(function(r){return n.update(r,t,e)}))},update:function(t,e,n){var r=this.origin,i=t.get("model"),o=t.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var a=e.x-r.x+this.point[o].x,s=e.y-r.y+this.point[o].y;n&&(a+=r.x-e.x,s+=r.y-e.y);var l={x:a,y:s};this.get("updateEdge")?this.graph.updateItem(t,l,!1):t.updatePosition(l)},debounceUpdate:Object(x.debounce)(function(t){var e=t.targets,n=t.graph,r=t.point,i=t.origin,o=t.evt,a=t.updateEdge,s=t.onlyChangeComboSize,l=t.updateParentCombos;e.map(function(t){var e=t.get("model"),s=t.get("id");r[s]||(r[s]={x:e.x||0,y:e.y||0});var l={x:o.x-i.x+r[s].x,y:o.y-i.y+r[s].y};a?n.updateItem(t,l,!1):t.updatePosition(l)}),s&&l(n,e)},50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:n,y:r})}else{var i=e.get("group"),o=Object(x.deepMix)({},wi.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),s=a.x,l=a.y,u=a.width,c=a.height,h=a.minX,d=a.minY;this.originPoint={x:s,y:l,width:u,height:c,minX:h,minY:d},this.delegateRect=i.addShape("rect",{attrs:m({width:u,height:c,x:s,y:l},o),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.targets;0===e.length&&e.push(t.item);for(var n=1/0,r=-1/0,i=1/0,o=-1/0,a=0;a<e.length;a++){var s=e[a].getBBox(),l=s.minX,u=s.minY,c=s.maxX,h=s.maxY;l<n&&(n=l),u<i&&(i=u),c>r&&(r=c),h>o&&(o=h)}return{x:Math.floor(n),y:Math.floor(i),width:Math.ceil(r)-Math.floor(n),height:Math.ceil(o)-Math.floor(i),minX:n,minY:i}},updateParentCombos:function(t,e){var n=t||this.graph,r=e||this.targets,i={};null===r||void 0===r||r.forEach(function(t){var e=t.getModel().comboId;e&&(i[e]=n.findById(e))}),Object.values(i).forEach(function(t){t&&n.updateCombo(t)})}},fu=null,pu={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.setAllItemStates(t)},clearOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this;this.shouldClearStatusOnSecond&&(fu=null),this.timer=setTimeout(function(){e.throttleClearActiveState(t,e)},50)},throttleSetAllItemStates:Object(x.throttle)(function(t,e){var n=t.item,r=e.graph;if(r&&!r.destroyed&&(e.item=n,e.shouldUpdate(t.item,{event:t,action:"activate"},e))){var i=e.shouldClearStatusOnSecond,o=n.getModel().id;if(fu===o&&i)return e.throttleClearActiveState(t,e),void(fu=null);for(var a=e.activeState,s=e.inactiveState,l=r.getNodes(),u=r.getCombos(),c=r.getEdges(),h=r.get("vedges"),d=l.length,f=u.length,p=c.length,g=h.length,v=e.inactiveItems||{},m=e.activeItems||{},y=0;y<d;y++){var b=l[y],_=b.getID(),x=b.hasState("selected");e.resetSelected&&x&&r.setItemState(b,"selected",!1),m[_]&&(r.setItemState(b,a,!1),delete m[_]),s&&!v[_]&&(r.setItemState(b,s,!0),v[_]=b)}for(y=0;y<f;y++){var w=u[y],S=w.getID();x=w.hasState("selected");e.resetSelected&&x&&r.setItemState(w,"selected",!1),m[S]&&(r.setItemState(w,a,!1),delete m[S]),s&&!v[S]&&(r.setItemState(w,s,!0),v[S]=w)}for(y=0;y<p;y++){m[T=(E=c[y]).getID()]&&(r.setItemState(E,a,!1),delete m[T]),s&&!v[T]&&(r.setItemState(E,s,!0),v[T]=E)}for(y=0;y<g;y++){var C=h[y],k=C.getID();m[k]&&(r.setItemState(C,a,!1),delete m[k]),s&&!v[k]&&(r.setItemState(C,s,!0),v[k]=C)}if(n&&!n.destroyed){s&&(r.setItemState(n,s,!1),delete v[n.getID()]),m[n.getID()]||(r.setItemState(n,a,!0),m[n.getID()]=n);var O=n.getEdges(),M=O.length;for(y=0;y<M;y++){var E,T=(E=O[y]).getID(),A=void 0,I=(A=E.getSource()===n?E.getTarget():E.getSource()).getID();s&&v[I]&&(r.setItemState(A,s,!1),delete v[I]),m[I]||(r.setItemState(A,a,!0),m[I]=A),v[T]&&(r.setItemState(E,s,!1),delete v[T]),m[T]||(r.setItemState(E,a,!0),m[T]=E),E.toFront()}}e.activeItems=m,e.inactiveItems=v,i&&(fu=n.getModel().id),r.emit("afteractivaterelations",{item:t.item,action:"activate"})}},50,{trailing:!0,leading:!0}),throttleClearActiveState:Object(x.throttle)(function(t,e){var n=e.get("graph");if(n&&!n.destroyed&&e.shouldUpdate(t.item,{event:t,action:"deactivate"},e)){var r=e.activeState,i=e.inactiveState,o=e.activeItems||{},a=e.inactiveItems||{};Object.values(o).filter(function(t){return!t.destroyed}).forEach(function(t){n.clearItemStates(t,r)}),Object.values(a).filter(function(t){return!t.destroyed}).forEach(function(t){n.clearItemStates(t,i)}),e.activeItems={},e.inactiveItems={},n.emit("afteractivaterelations",{item:t.item||e.get("item"),action:"deactivate"})}},50,{trailing:!0,leading:!0})},gu=Math.min,vu=Math.max,mu=Math.abs,yu=["drag","shift","ctrl","alt","control"],bu={getDefaultCfg:function(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:"shift",includeEdges:!0,includeCombos:!1,selectOnCombo:!1,selectedEdges:[],selectedNodes:[],selectedCombos:[]}},getEvents:function(){return yu.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,n=this.brush,r=this.selectOnCombo,i="combo"===(null===e||void 0===e?void 0:e.getType());i&&!r||!i&&e||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&this.updateBrush(t)},onMouseUp:function(t){this.graph;(this.brush||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),r=t.findAllByState("edge",e),i=t.findAllByState("combo",e);n.forEach(function(n){return t.setItemState(n,e,!1)}),r.forEach(function(n){return t.setItemState(n,e,!1)}),i.forEach(function(n){return t.setItemState(n,e,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(t,e,n,r,i){var o=t.getBBox();return o.centerX>=e&&o.centerX<=n&&o.centerY>=r&&o.centerY<=i},getSelectedNodes:function(t){var e=this,n=this.graph,r=this.originPoint,i=this.shouldUpdate,o=this.isBBoxCenterInRect,a=this.selectedState,s={x:t.x,y:t.y},l=n.getPointByCanvas(r.x,r.y),u=gu(s.x,l.x),c=vu(s.x,l.x),h=gu(s.y,l.y),d=vu(s.y,l.y),f=[],p=[];n.getNodes().forEach(function(t){if(t.isVisible()&&o(t,u,c,h,d)&&i(t,"select",e)){f.push(t);var r=t.getModel();p.push(r.id),n.setItemState(t,a,!0)}});var g=[];this.includeEdges&&f.forEach(function(t){t.getOutEdges().forEach(function(t){if(t.isVisible()){var r=t.getModel(),o=r.source,a=r.target;p.includes(o)&&p.includes(a)&&i(t,"select",e)&&(g.push(t),n.setItemState(t,e.selectedState,!0))}})});var v=[];this.includeCombos&&n.getCombos().forEach(function(t){if(t.isVisible()&&o(t,u,c,h,d)&&i(t,"select",e)){v.push(t);var r=t.getModel();p.push(r.id),n.setItemState(t,a,!0)}}),this.selectedEdges=g,this.selectedNodes=f,this.selectedCombos=v,this.onSelect&&this.onSelect(f,g,v),n.emit("nodeselectchange",{selectedItems:{nodes:f,edges:g,combos:v},select:!0})},createBrush:function(){var t=this.graph.get("canvas").addShape("rect",{attrs:this.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:mu(t.canvasX-e.x),height:mu(t.canvasY-e.y),x:gu(t.canvasX,e.x),y:gu(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.keydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},_u=["shift","ctrl","alt","control"],xu={getDefaultCfg:function(){return{multiple:!0,trigger:"shift",selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){return _u.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,n=t.item;if(n&&!n.destroyed){var r=n.getType(),i=e.graph,o=e.keydown,a=e.multiple,s=e.shouldUpdate;if((0,e.shouldBegin)(t,e)){if(!o||!a){var l=i.findAllByState("node",e.selectedState).concat(i.findAllByState("edge",e.selectedState)).concat(i.findAllByState("combo",e.selectedState));Object(x.each)(l,function(t){t!==n&&i.setItemState(t,e.selectedState,!1)})}if(function(){switch(r){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}())if(n.hasState(e.selectedState)){s(t,e)&&i.setItemState(n,e.selectedState,!1);u=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:u,edges:c,combos:h},select:!1})}else{s(t,e)&&i.setItemState(n,e.selectedState,!0);u=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:u,edges:c,combos:h},select:!0})}else{var u=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:u,edges:c,combos:h},select:!1})}}}},onCanvasClick:function(t){var e=this,n=this.graph;if((0,this.shouldBegin)(t,this)){var r=n.findAllByState("node",this.selectedState);Object(x.each)(r,function(t){n.setItemState(t,e.selectedState,!1)});var i=n.findAllByState("edge",this.selectedState);Object(x.each)(i,function(t){n.setItemState(t,e.selectedState,!1)});var o=n.findAllByState("combo",this.selectedState);Object(x.each)(o,function(t){n.setItemState(t,e.selectedState,!1)}),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1}},wu=P.a.transform,Su={getDefaultCfg:function(){return this.isFireFox="firefox"===Fi(),{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];t.preventDefault(),r&&(this.shouldBegin&&!this.shouldBegin(t,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,r&&(this.endPoint={pageX:r.pageX,pageY:r.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(this.moveable){t.preventDefault();var e=t.originalEvent.touches,n=e[0],r=e[1];if(r){this.endPoint||(this.endPoint={pageX:r.pageX,pageY:r.pageY});var i=function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)},o=i({x:n.pageX,y:n.pageY},{x:r.pageX,y:r.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),a=this.originScale*o;this.currentScale=a;var s=this.get("minZoom")||this.graph.get("minZoom");if(!(a>(this.get("maxZoom")||this.graph.get("maxZoom"))||a<s)){var l=this.get("animate"),u=this.get("animateCfg"),c=this.graph.get("canvas").getPointByClient(t.clientX,t.clientY);this.graph.zoomTo(a,{x:c.x,y:c.y},l,u),this.graph.emit("wheelzoom",t)}}}},onTouchEnd:function(){this.moveable=!1,this.endPoint=null},onWheel:function(t){var e=this,n=this.graph,r=this.fixSelectedItems;if((!this.shouldBegin||this.shouldBegin(t,this))&&this.shouldUpdate(t,this)){t.preventDefault();var i=n.get("canvas").getPointByClient(t.clientX,t.clientY),o=this.get("sensitivity"),a=n.getZoom(),s=a;s=a*(this.isFireFox?t.deltaY>0||t.wheelDelta<0?1-.05*o:1/(1-.05*o):t.wheelDelta<0?1-.05*o:1/(1-.05*o));var l=this.get("minZoom")||n.get("minZoom"),u=this.get("maxZoom")||n.get("maxZoom");if(s>u?s=u:s<l&&(s=l),this.get("enableOptimize")){var c=this.get("optimizeZoom"),h=this.get("optimized"),d=n.getNodes(),f=n.getEdges(),p=d.length,g=f.length;if(!h){for(var v=0;v<p;v++){if(!(M=d[v]).destroyed)for(var m=(q=M.get("group").get("children")).length,y=0;y<m;y++){(R=q[y]).destoryed||R.get("isKeyShape")||(R.set("ori-visibility",R.get("ori-visibility")||R.get("visible")),R.hide())}}for(var b=0;b<g;b++)for(m=(q=(X=f[b]).get("group").get("children")).length,y=0;y<m;y++){(R=q[y]).set("ori-visibility",R.get("ori-visibility")||R.get("visible")),R.hide()}this.set("optimized",!0)}clearTimeout(this.get("timeout"));var _=setTimeout(function(){var t=n.getZoom();if(e.get("optimized")){e.set("optimized",!1);for(var r=0;r<p;r++){var i=d[r],o=(u=i.get("group").get("children")).length;if(t<c){var a=(v=i.getKeyShape()).get("ori-visibility");v.set("ori-visibility",void 0),a&&v.show()}else for(var s=0;s<o;s++){a=(m=u[s]).get("ori-visibility");m.set("ori-visibility",void 0),!m.get("visible")&&a&&a&&m.show()}}for(var l=0;l<g;l++){var u,h=f[l];o=(u=h.get("group").get("children")).length;if(t<c){var v;a=(v=h.getKeyShape()).get("ori-visibility");v.set("ori-visibility",void 0),a&&v.show()}else for(s=0;s<o;s++){var m;if(!(m=u[s]).get("visible")){a=m.get("ori-visibility");m.set("ori-visibility",void 0),a&&m.show()}}}}},100);this.set("timeout",_)}if(a<=1){var w=void 0,S=void 0;if(r.fixAll||r.fixLineWidth||r.fixLabel){w=n.findAllByState("node",r.fixState),S=n.findAllByState("edge",r.fixState);for(var C=a/s,k=w.length,O=0;O<k;O++){var M,E=(M=w[O]).getContainer(),T=M.getModel(),A=M.getOriginStyle(),I=M.getStateStyle(r.fixState),D=M.get("shapeFactory").getShape(T.type).getStateStyle(r.fixState,M)[r.fixState];if(r.fixAll){if(s<=1){var P=Object(x.clone)(E.getMatrix());P||(P=[1,0,0,0,1,0,0,0,1]);var L=M.getModel(),j=L.x,N=L.y;P=wu(P,[["t",-j,-N],["s",C,C],["t",j,N]]),E.setMatrix(P)}}else for(m=(q=E.get("children")).length,y=0;y<m;y++){var R=q[y],B=void 0,F=void 0;if(r.fixLabel)if("text"===R.get("type")){B=R.attr("fontSize")||12;var z=I[R.get("name")],V=D[R.get("name")],$=z?z.fontSize:12,G=V?V.fontSize:12,H=$||G||12;if(s<=1&&R.attr("fontSize",H/s),F)break}if(r.fixLineWidth&&R.get("isKeyShape")){F=R.attr("lineWidth")||0;var W=I.lineWidth||D.lineWidth||A.lineWidth||0;if(s<=1&&R.attr("lineWidth",W/s),B)break}}}for(var U=S.length,Y=0;Y<U;Y++){var X,q=(E=(X=S[Y]).getContainer()).get("children");for(T=X.getModel(),I=X.getStateStyle(r.fixState),D=X.get("shapeFactory").getShape(T.type).getStateStyle(r.fixState,X)[r.fixState],m=q.length,y=0;y<m;y++){R=q[y],B=void 0,F=void 0;if(r.fixLabel||r.fixAll)if("text"===R.get("type")){B=R.attr("fontSize")||12;z=I[R.get("name")],V=D[R.get("name")],$=z?z.fontSize:12,G=V?V.fontSize:12,H=$||G||12;if(s<=1&&R.attr("fontSize",H/s),F)break}if((r.fixLineWidth||r.fixAll)&&R.get("isKeyShape")){F=R.attr("lineWidth")||0;W=I.lineWidth||D.lineWidth||1;if(s<=1&&R.attr("lineWidth",W/s),B)break}}}}}var Z=this.get("animate"),K=this.get("animateCfg");n.zoomTo(s,{x:i.x,y:i.y},Z,K),n.emit("wheelzoom",t)}}},Cu={onMouseEnter:function(t){var e=t.item;this.currentTarget=e,this.showTooltip(t),this.graph.emit("tooltipchange",{item:t.item,action:"show"})},onMouseMove:function(t){this.shouldUpdate(t,this)?this.currentTarget&&t.item===this.currentTarget&&this.updatePosition(t):this.hideTooltip()},onMouseLeave:function(t){this.shouldEnd(t,this)&&(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null)},showTooltip:function(t){var e=this.container;if(t.item&&!t.item.destroyed){e||(e=this.createTooltip(this.graph.get("canvas")),this.container=e);var n=this.formatText(t.item.get("model"),t);Object(x.isString)(n)?e.innerHTML=n:e.appendChild(n),Jr(this.container,{visibility:"visible"}),this.updatePosition(t)}},hideTooltip:function(){Jr(this.container,{visibility:"hidden"})},updatePosition:function(t){var e=this.get("shouldBegin"),n=this.width,r=this.height,i=this.container,o=this.graph;if(e(t,this)){var a=o.getPointByClient(t.clientX,t.clientY),s=o.getCanvasByPoint(a.x,a.y),l=s.x,u=s.y,c=i.getBoundingClientRect();l>n/2?l-=c.width:l+=this.offset,u>r/2?u-=c.height:u+=this.offset;var h="".concat(l,"px"),d="".concat(u,"px");Jr(this.container,{left:h,top:d,visibility:"visible"})}else Jr(i,{visibility:"hidden"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=Kr('<div class="g6-tooltip g6-'.concat(this.item,'-tooltip"></div>'));return e.parentNode.appendChild(n),Jr(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},ku=m({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Cu),Ou=m({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: ".concat(t.source," target: ").concat(t.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Cu),Mu=["click","dblclick"],Eu={getDefaultCfg:function(){return{trigger:"click",onChange:function(){}}},getEvents:function(){var t,e;return Mu.includes(this.trigger)?e=this.trigger:(e="click",console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),(t={})["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=this;if("click"===this.trigger){if(this.timer)return clearTimeout(this.timer),void(this.timer=0);this.timer=setTimeout(function(){e.toggle(t),clearTimeout(e.timer),e.timer=0},200)}else this.toggle(t)},toggle:function(t){var e=t.item;if(e){var n=this.graph.findDataById(e.get("id"));if(n){var r=n.children;if(r&&0!==r.length){var i=!n.collapsed;this.shouldBegin(t,i,this)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i,this)&&(this.onChange(e,i,this),this.graph.layout()))}}}}},Tu=zi.calculationItemsBBox,Au=function(t,e){if(!1!==e(t)&&t){var n=t.get("combos");if(0===n.length)return!1;Object(x.each)(n,function(t){Au(t,e)})}},Iu={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;return!(!e||e.destroyed)&&(!!this.shouldUpdate(t,this)&&"combo"===e.getType())},onMouseDown:function(t){this.origin={x:t.x,y:t.y}},onDragStart:function(t){var e=this,n=this.graph,r=t.item;if(this.currentShouldEnd=!0,this.validationCombo(t)&&!r.hasLocked()){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=r.get("id");0===i.filter(function(t){var e=t.get("id");return o===e}).length?this.targets.push(r):this.targets=i.filter(function(t){return!t.hasLocked()});var a=[];this.targets.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;a.push({x:n,y:r,id:i})}),this.set("beforeDragItems",a),this.activeState&&this.targets.map(function(t){var r=t.getModel();if(r.parentId){var i=n.findById(r.parentId);i&&n.setItemState(i,e.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],Au(r,function(t){if(t.destroyed)return!1;var n=t.getModel();return e.currentItemChildCombos.push(n.id),!0})}},onDrag:function(t){var e=this;if(this.origin&&this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var n=this.graph,r=t.item,i=r.getModel(),o=n.getCombos(),a=r.getBBox(),s=a.centerX,l=a.centerY,u=a.width;o.filter(function(t){var n=t.getModel();return i.parentId,n.id!==i.id&&!e.currentItemChildCombos.includes(n.id)}).map(function(t){var r=t.getBBox(),i=r.centerX,o=r.centerY,a=r.width,c=s-i,h=l-o,d=2*Math.sqrt(c*c+h*h);u+a-d>.8*u?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1)})}Object(x.each)(this.targets,function(n){e.updateCombo(n,t)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var n=this;(this.enableDelegate||e)&&Object(x.each)(this.targets,function(r){n.updateCombo(r,t,e)})},onDrop:function(t){var e=this,n=t.item;if(this.currentShouldEnd=this.shouldEnd(t,n,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&n&&this.targets&&!n.destroyed){var r=this.graph,i=n.getModel();this.targets.map(function(t){t.getModel().parentId!==i.id?(e.activeState&&r.setItemState(n,e.activeState,!1),e.onlyChangeComboSize?r.updateCombo(t):r.updateComboTree(t,i.id,!1)):r.updateCombo(n)}),this.end(n,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(this.targets&&0!==this.targets.length){var n=this.graph,r=t.item.getModel().comboId,i=r?n.findById(r):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){var o;if(r){if(this.activeState){var a=n.findById(r);n.setItemState(a,this.activeState,!1)}this.targets.map(function(t){e.onlyChangeComboSize?n.updateCombo(t):r!==t.getID()&&(o=n.findById(r),r!==t.getModel().parentId&&n.updateComboTree(t,r,!1))})}else this.targets.map(function(t){e.onlyChangeComboSize?n.updateCombo(t):t.getModel().comboId&&n.updateComboTree(t,void 0,!1)});this.endComparison=!0,this.end(o,t)}}},onDragEnter:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var n=this.getParentCombo(e.getModel().parentId),r=this.graph;n&&this.activeState&&r.setItemState(n,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var n=this;if(this.origin){var r=this.graph;if(this.delegateShape)r.get("delegateGroup").clear(),this.delegateShape=null;if(t&&this.activeState&&r.setItemState(t,this.activeState,!1),!t){var i=r.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(t){if(n.onlyChangeComboSize){r.updateCombo(t);var e=t.getModel(),a=e.x,s=e.y,l=e.id;o.after.combos.push({x:a,y:s,id:l}),r.pushStack("update",o)}else r.updateComboTree(t,void 0,i)})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e,n){var r=this;if(void 0===n&&(n={}),!1!==e(t,n)&&t){var i=t.get("combos");Object(x.each)(i,function(t){r.traverse(t,e,n)});var o=t.get("nodes");Object(x.each)(o,function(t){r.traverse(t,e,n)})}},updateCombo:function(t,e,n){this.updateSingleItem(t,e,n);var r={};this.traverse(t,function(t,e){return!t.destroyed&&(t.getEdges().forEach(function(t){return e[t.getID()]=t}),!0)},r),Object.values(r).forEach(function(t){return t.refresh()})},updateSingleItem:function(t,e,n){var r=this.origin,i=this.graph,o=t.getModel(),a=t.get("id");this.point[a]||(this.point[a]={x:o.x,y:o.y});var s=e.x-r.x+this.point[a].x,l=e.y-r.y+this.point[a].y;n&&(s+=r.x-e.x,l+=r.y-e.y),i.updateItem(t,{x:s,y:l},!1)},getParentCombo:function(t){var e=this.graph;if(t){var n=e.findById(t);if(n)return n}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:n,y:r})}else{var i=e.get("delegateGroup"),o=null,a=(o=this.targets.length>1?Tu(this.targets):this.targets[0].getBBox()).x,s=o.y,l=o.width,u=o.height,c=o.minX,h=o.minY;this.originPoint={x:a,y:s,width:l,height:u,minX:c,minY:h};var d=m(m({},wi.delegateStyle),this.delegateStyle);this.delegateShape=i.addShape("rect",{attrs:m({width:o.width,height:o.height,x:o.x,y:o.y},d),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var t=this.graph,e=this.targets,n={};null===e||void 0===e||e.forEach(function(e){var r=e.getModel().parentId;r&&(n[r]=t.findById(r))}),Object.values(n).forEach(function(e){e&&t.updateCombo(e)})}},Du=["click","dblclick"],Pu={getDefaultCfg:function(){return{trigger:"dblclick",relayout:!0}},getEvents:function(){var t,e;return Du.includes(this.trigger)?e=this.trigger:(e="dblclick",console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),(t={})["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,n=this.graph,r=this.relayout;if(e&&!e.destroyed&&"combo"===e.getType()){var i=e.getModel().id;i&&(n.collapseExpandCombo(i),r&&n.get("layout")?n.layout():n.refreshPositions())}}},Lu=zi.isPolygonsIntersect,ju=zi.pathToPoints,Nu=["drag","shift","ctrl","alt","control"],Ru=["click","drag"],Bu=["shift","ctrl","control","alt","meta",void 0],Fu=["shift","ctrl","alt","control"],zu=["shift","ctrl","alt","control","meta"],Vu={"drag-canvas":hu,"zoom-canvas":Su,"drag-node":du,"activate-relations":pu,"brush-select":bu,"click-select":xu,"lasso-select":{getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:"shift",includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return Nu.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso;t.item||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){(this.lasso||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(t){void 0===t&&(t="canvas:click");var e=this.graph,n=this.selectedState,r=this.shouldDeselect,i=e.findAllByState("node",n),o=e.findAllByState("edge",n);r&&!r({action:t,nodes:i,edges:o})||(i.forEach(function(t){return e.setItemState(t,n,!1)}),o.forEach(function(t){return e.setItemState(t,n,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this.graph,n=this.shouldUpdate,r=this.points.map(function(t){return[e.getCanvasByPoint(t.x,t.y).x,e.getCanvasByPoint(t.x,t.y).y]}),i=this.selectedState,o=[],a=[];e.getNodes().forEach(function(s){if(s.isVisible()&&function(t,e){var n,r=t.getKeyShape();if("path"===t.get("type"))n=ju(r.attr("path"));else{var i=r.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return Lu(e,n)}(s,r)&&n(s,"select",t)){o.push(s);var l=s.getModel();a.push(l.id),e.setItemState(s,i,!0)}});var s=[];this.includeEdges&&o.forEach(function(r){r.getOutEdges().forEach(function(r){if(r.isVisible()){var i=r.getModel(),o=i.source,l=i.target;a.includes(o)&&a.includes(l)&&n(r,"select",t)&&(s.push(r),e.setItemState(r,t.selectedState,!0))}})}),this.selectedEdges=s,this.selectedNodes=o,this.onSelect&&this.onSelect(o,s),e.emit("nodeselectchange",{selectedItems:{nodes:o,edges:s},select:!0})},createLasso:function(){var t=this.graph.get("delegateGroup").addShape("path",{attrs:m({path:[]},this.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t},updateLasso:function(t){this.lasso.attr({path:this.getLassoPath()})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},tooltip:ku,"edge-tooltip":Ou,"collapse-expand":Eu,"drag-combo":Iu,"collapse-expand-combo":Pu,"create-edge":{getDefaultCfg:function(){return{trigger:"click",key:void 0,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t;return Ru.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="click",console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),this.key&&-1===Bu.indexOf(this.key.toLowerCase())&&(this.trigger=void 0,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined")),"drag"===this.trigger?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:"click"===this.trigger&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),this.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(t){if(!this.key||this.keydown){var e=t.item;e&&e.getID()!==this.source&&"node"===e.getType()||this.cancelCreating({item:this.edge,x:t.x,y:t.y})}},onClick:function(t){if(!this.key||this.keydown){var e=t.item,n=this.graph,r=e.getModel(),i=this.getEdgeConfig;if(this.addingEdge&&this.edge){if(!this.shouldEnd(t,this))return;var o=void 0;o=i&&Object(x.isFunction)(i)?i({source:this.source,target:r.id},this):this.edgeConfig;var a=m({target:r.id},o);if(this.source===r.id&&(a.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(this.edge,a,!1),n.get("enabledStack")){var s=m(m({},this.edge.getModel()),{itemType:"edge"}),l={};l.edges=[s],n.pushStack("add",{before:{},after:l})}n.emit("aftercreateedge",{edge:this.edge}),this.edge.getKeyShape().set("capture",!0),this.edge=null,this.addingEdge=!1}else{if(!this.shouldBegin(t,this))return;o=void 0;o=i&&Object(x.isFunction)(i)?i({source:r.id,target:r.id},this):this.edgeConfig,this.edge=n.addItem("edge",m({source:r.id,target:r.id},o),!1),this.source=r.id,this.addingEdge=!0,this.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){if(!this.key||this.keydown){this.edge&&this.edge.destroyed&&this.cancelCreating({item:this.edge});var e={x:t.x,y:t.y};this.graph.findById(this.source)?this.addingEdge&&this.edge&&this.graph.updateItem(this.edge,{target:e},!1):this.addingEdge=!1}},cancelCreating:function(t){var e,n;if(!this.key||this.keydown){var r=this.graph,i=t.item;return this.addingEdge&&(this.edge===i||(null===(n=null===(e=t.target)||void 0===e?void 0:e.isCanvas)||void 0===n?void 0:n.call(e)))?(this.edge&&!this.edge.destroyed&&r.removeItem(this.edge,!1),this.edge=null,void(this.addingEdge=!1)):void 0}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.key.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.addingEdge&&this.edge&&(this.graph.removeItem(this.edge,!1),this.addingEdge=!1,this.edge=null),this.keydown=!1}},"shortcuts-call":{getDefaultCfg:function(){return{trigger:"ctrl",combinedKey:"1",functionName:"fitView",functionParams:[]}},getEvents:function(){return Fu.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="ctrl",console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.triggerKeydown||(this.triggerKeydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(!this.triggerKeydown||this.combinedKey){var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(r===o||"control"===r&&"ctrl"===o||"ctrl"===r&&"control"===o)&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}else this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]()}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}},"scroll-canvas":{getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return this.zoomKey&&-1!==zu.indexOf(this.zoomKey)||(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(t){var e=this;if(this.allowDrag(t)){var n=this.graph,r=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];if(r.includes("control")&&r.push("ctrl"),r.some(function(e){return t["".concat(e,"Key")]})){var i=n.get("canvas").getPointByClient(t.clientX,t.clientY),o=n.getZoom();t.wheelDelta>0?o+=.05*o:o-=.05*o,n.zoomTo(o,{x:i.x,y:i.y})}else{var a=t.deltaX||t.movementX,s=t.deltaY||t.movementY;!s&&navigator.userAgent.indexOf("Firefox")>-1&&(s=125*-t.wheelDelta/3);var l=this.graph.get("width"),u=this.graph.get("height"),c=this.graph.get("canvas").getCanvasBBox(),h=this.scalableRange,d=this.scalableRange;h<1&&h>-1&&(h*=l,d*=u);var f=c.minX,p=c.maxX,g=c.minY,v=c.maxY;a>0?p<-h?a=0:p-a<-h&&(a=p+h):a<0&&(f>l+h?a=0:f-a>l+h&&(a=f-(l+h))),s>0?v<-d?s=0:v-s<-d&&(s=v+d):s<0&&(g>u+d?s=0:g-s>u+d&&(s=g-(u+d))),"x"===this.get("direction")?s=0:"y"===this.get("direction")&&(a=0),n.translate(-a,-s)}if(t.preventDefault(),this.get("enableOptimize")){var m=this.get("optimizeZoom"),y=this.get("optimized"),b=n.getNodes(),_=n.getEdges(),x=b.length,w=_.length;if(!y){for(var S=0;S<x;S++){var C=b[S];if(!C.destroyed)for(var k=(E=C.get("group").get("children")).length,O=0;O<k;O++){(T=E[O]).destoryed||T.get("isKeyShape")||(T.set("ori-visibility",T.get("ori-visibility")||T.get("visible")),T.hide())}}for(var M=0;M<w;M++){var E;for(k=(E=_[M].get("group").get("children")).length,O=0;O<k;O++){var T;(T=E[O]).set("ori-visibility",T.get("ori-visibility")||T.get("visible")),T.hide()}}this.set("optimized",!0)}clearTimeout(this.get("timeout"));var A=setTimeout(function(){var t=n.getZoom();if(e.get("optimized")){e.set("optimized",!1);for(var r=0;r<x;r++){var i=b[r],o=(u=i.get("group").get("children")).length;if(t<m)(s=(c=i.getKeyShape()).get("ori-visibility"))&&c.show();else for(var a=0;a<o;a++){var s=(d=u[a]).get("ori-visibility");!d.get("visible")&&s&&s&&d.show()}}for(var l=0;l<w;l++){var u,c,h=_[l];o=(u=h.get("group").get("children")).length;if(t<m)(s=(c=h.getKeyShape()).get("ori-visibility"))&&c.show();else for(a=0;a<o;a++){var d;if(!(d=u[a]).get("visible"))(s=d.get("ori-visibility"))&&d.show()}}}},100);this.set("timeout",A)}}},allowDrag:function(t){var e,n,r=t.target,i=r&&r.isCanvas&&r.isCanvas();if(Object(x.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if(Object(x.isObject)(this.allowDragOnItem)){var o=this.allowDragOnItem,a=o.node,s=o.edge,l=o.combo,u=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!a&&"node"===u)return!1;if(!s&&"edge"===u)return!1;if(!l&&"combo"===u)return!1}return!0}}};Object(x.each)(Vu,function(t,e){Wr(e,t)});var $u=m(m({},r),Yr),Gu=El.Grid,Hu=El.Minimap,Wu=El.Bundling,Uu=El.Menu,Yu=El.Fisheye,Xu=El.ToolBar,qu=El.Tooltip,Zu=El.TimeBar,Ku=El.ImageMinimap,Ju=El.EdgeFilterLens,Qu=El.SnapLine,tc=El.Legend,ec=El.Annotation,nc={version:wi.version,Graph:co,TreeGraph:mo,Util:zi,Layout:Mi.Layouts,TreeLayout:$i,registerLayout:Gi,Global:wi,registerBehavior:Wr,registerCombo:Hr,registerEdge:Gr,registerNode:$r,Minimap:El.Minimap,Grid:El.Grid,Bundling:El.Bundling,Menu:El.Menu,ToolBar:El.ToolBar,Tooltip:El.Tooltip,Legend:El.Legend,TimeBar:Zu,SnapLine:Qu,Fisheye:Yu,ImageMinimap:Ku,EdgeFilterLens:Ju,Annotation:ec,Algorithm:$u,Arrow:Pr,Marker:Lr,Shape:jr};n.d(e,!1,function(){return co}),n.d(e,!1,function(){return mo}),n.d(e,!1,function(){return zi}),n.d(e,!1,function(){return Mi.Layouts}),n.d(e,!1,function(){return $i}),n.d(e,!1,function(){return Gi}),n.d(e,!1,function(){return wi}),n.d(e,!1,function(){return Hu}),n.d(e,!1,function(){return Gu}),n.d(e,!1,function(){return Wu}),n.d(e,!1,function(){return Uu}),n.d(e,!1,function(){return Yu}),n.d(e,!1,function(){return $u}),n.d(e,!1,function(){return Xu}),n.d(e,!1,function(){return qu}),n.d(e,!1,function(){return Zu}),n.d(e,!1,function(){return Ku}),n.d(e,!1,function(){return Ju}),n.d(e,!1,function(){return Qu}),n.d(e,!1,function(){return tc}),n.d(e,!1,function(){return ec}),n.d(e,!1,function(){return Pr}),n.d(e,!1,function(){return Lr}),n.d(e,!1,function(){return jr}),n.d(e,!1,function(){return Vn}),n.d(e,!1,function(){return zn}),n.d(e,!1,function(){return $n}),n.d(e,!1,function(){return pr}),n.d(e,!1,function(){return $r}),n.d(e,!1,function(){return Hr}),n.d(e,!1,function(){return vr}),n.d(e,!1,function(){return Gr}),n.d(e,!1,function(){return Wr}),n.d(e,!1,function(){return zr}),n.d(e,!1,function(){return Vr}),n.d(e,!1,function(){return Ur}),n.d(e,!1,function(){return vn}),nc.version="4.8.23";e.a=nc},"NtQ/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDIAsync",{enumerable:!0,get:function(){return r.GADDIAsync}}),Object.defineProperty(e,"connectedComponentAsync",{enumerable:!0,get:function(){return r.connectedComponentAsync}}),e.default=void 0,Object.defineProperty(e,"detectAllCyclesAsync",{enumerable:!0,get:function(){return r.detectAllCyclesAsync}}),Object.defineProperty(e,"detectAllDirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllDirectedCycleAsync}}),Object.defineProperty(e,"detectAllUndirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllUndirectedCycleAsync}}),Object.defineProperty(e,"detectCycleAsync",{enumerable:!0,get:function(){return r.detectCycleAsync}}),e.detectDirectedCycleAsync=void 0,Object.defineProperty(e,"dijkstraAsync",{enumerable:!0,get:function(){return r.dijkstraAsync}}),Object.defineProperty(e,"findAllPathAsync",{enumerable:!0,get:function(){return r.findAllPathAsync}}),Object.defineProperty(e,"findShortestPathAsync",{enumerable:!0,get:function(){return r.findShortestPathAsync}}),Object.defineProperty(e,"floydWarshallAsync",{enumerable:!0,get:function(){return r.floydWarshallAsync}}),Object.defineProperty(e,"getAdjMatrixAsync",{enumerable:!0,get:function(){return r.getAdjMatrixAsync}}),Object.defineProperty(e,"getDegreeAsync",{enumerable:!0,get:function(){return r.getDegreeAsync}}),Object.defineProperty(e,"getInDegreeAsync",{enumerable:!0,get:function(){return r.getInDegreeAsync}}),Object.defineProperty(e,"getNeighborsAsync",{enumerable:!0,get:function(){return r.getNeighborsAsync}}),Object.defineProperty(e,"getOutDegreeAsync",{enumerable:!0,get:function(){return r.getOutDegreeAsync}}),Object.defineProperty(e,"labelPropagationAsync",{enumerable:!0,get:function(){return r.labelPropagationAsync}}),Object.defineProperty(e,"louvainAsync",{enumerable:!0,get:function(){return r.louvainAsync}}),Object.defineProperty(e,"minimumSpanningTreeAsync",{enumerable:!0,get:function(){return r.minimumSpanningTreeAsync}}),Object.defineProperty(e,"pageRankAsync",{enumerable:!0,get:function(){return r.pageRankAsync}});var r=n("uSER"),i=r.detectCycleAsync;e.detectDirectedCycleAsync=i;var o={getAdjMatrixAsync:r.getAdjMatrixAsync,connectedComponentAsync:r.connectedComponentAsync,getDegreeAsync:r.getDegreeAsync,getInDegreeAsync:r.getInDegreeAsync,getOutDegreeAsync:r.getOutDegreeAsync,detectCycleAsync:r.detectCycleAsync,detectDirectedCycleAsync:i,detectAllCyclesAsync:r.detectAllCyclesAsync,detectAllDirectedCycleAsync:r.detectAllDirectedCycleAsync,detectAllUndirectedCycleAsync:r.detectAllUndirectedCycleAsync,dijkstraAsync:r.dijkstraAsync,findAllPathAsync:r.findAllPathAsync,findShortestPathAsync:r.findShortestPathAsync,floydWarshallAsync:r.floydWarshallAsync,labelPropagationAsync:r.labelPropagationAsync,louvainAsync:r.louvainAsync,minimumSpanningTreeAsync:r.minimumSpanningTreeAsync,pageRankAsync:r.pageRankAsync,getNeighborsAsync:r.getNeighborsAsync,GADDIAsync:r.GADDIAsync};e.default=o},O4g8:function(t,e){t.exports=!0},O7JS:function(t,e){t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},OAzY:function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("7+uW"),o=(r=i)&&r.__esModule?r:{default:r},a=n("2kvA");var s=!1,l=!1,u=void 0,c=function(){if(!o.default.prototype.$isServer){var t=d.modalDom;return t?s=!0:(s=!1,t=document.createElement("div"),d.modalDom=t,t.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),t.addEventListener("click",function(){d.doOnModalClick&&d.doOnModalClick()})),t}},h={},d={modalFade:!0,getInstance:function(t){return h[t]},register:function(t,e){t&&e&&(h[t]=e)},deregister:function(t){t&&(h[t]=null,delete h[t])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var t=d.modalStack[d.modalStack.length-1];if(t){var e=d.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,r,i){if(!o.default.prototype.$isServer&&t&&void 0!==e){this.modalFade=i;for(var l=this.modalStack,u=0,h=l.length;u<h;u++){if(l[u].id===t)return}var d=c();if((0,a.addClass)(d,"v-modal"),this.modalFade&&!s&&(0,a.addClass)(d,"v-modal-enter"),r)r.trim().split(/\s+/).forEach(function(t){return(0,a.addClass)(d,t)});setTimeout(function(){(0,a.removeClass)(d,"v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(d):document.body.appendChild(d),e&&(d.style.zIndex=e),d.tabIndex=0,d.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:r})}},closeModal:function(t){var e=this.modalStack,n=c();if(e.length>0){var r=e[e.length-1];if(r.id===t){if(r.modalClass)r.modalClass.trim().split(/\s+/).forEach(function(t){return(0,a.removeClass)(n,t)});e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var i=e.length-1;i>=0;i--)if(e[i].id===t){e.splice(i,1);break}}0===e.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout(function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")},200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(u=u||(o.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(t){u=t}});o.default.prototype.$isServer||window.addEventListener("keydown",function(t){if(27===t.keyCode){var e=function(){if(!o.default.prototype.$isServer&&d.modalStack.length>0){var t=d.modalStack[d.modalStack.length-1];if(!t)return;return d.getInstance(t.id)}}();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}}),e.default=d},ON07:function(t,e,n){var r=n("EqjI"),i=n("7KvD").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},ON3O:function(t,e,n){var r=n("uY1a");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},OYls:function(t,e,n){n("crlp")("asyncIterator")},"Oi+a":function(t,e,n){"use strict";var r=n("dIwP"),i=n("qRfI");t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},OiFs:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n("FlGC"),o=n("DmAK"),a=r(n("8ej2")),s=i.longestPath,l=function(t){(0,i.longestPathWithLayer)(t),(0,o.feasibleTreeWithLayer)(t)},u=function(t){(0,a.default)(t)};e.default=function(t){switch(t.graph().ranker){case"network-simplex":u(t);break;case"tight-tree":l(t);break;case"longest-path":s(t);break;default:l(t)}}},OqTO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aveMovementBundle=e.aveMovementCode=e.gForceBundle=e.gForceCode=void 0,e.gForceCode="\nimport { globalInvocationID } from 'g-webgpu';\n\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\nconst SHIFT_20 = 1048576;\n\n@numthreads(1, 1, 1)\nclass GGForce {\n @in @out\n u_Data: vec4[];\n\n @in\n u_damping: float;\n \n @in\n u_maxSpeed: float;\n\n @in\n u_minMovement: float;\n\n @in\n u_AveMovement: vec4[];\n\n @in\n u_coulombDisScale: float;\n\n @in\n u_factor: float;\n\n @in\n u_NodeAttributeArray1: vec4[];\n\n @in\n u_NodeAttributeArray2: vec4[];\n\n @in\n u_interval: float;\n\n unpack_float(packedValue: float): ivec2 {\n const packedIntValue = int(packedValue);\n const v0 = packedIntValue / SHIFT_20;\n return [v0, packedIntValue - v0 * SHIFT_20];\n }\n\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let ax = 0, ay = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const vx = currentNode[0] - nextNode[0];\n const vy = currentNode[1] - nextNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const n_dist = (dist + 0.1) * this.u_coulombDisScale;\n const direx = vx / dist;\n const direy = vy / dist;\n const attributesi = this.u_NodeAttributeArray1[i];\n const attributesj = this.u_NodeAttributeArray1[j];\n const massi = attributesi[0];\n const nodeStrengthi = attributesi[2];\n const nodeStrengthj = attributesj[2];\n const nodeStrength = (nodeStrengthi + nodeStrengthj) / 2;\n // const param = nodeStrength * this.u_factor / (n_dist * n_dist * massi);\n const param = nodeStrength * this.u_factor / (n_dist * n_dist);\n ax += direx * param;\n ay += direy * param;\n }\n }\n return [ax, ay];\n }\n\n calcGravity(i: int, currentNode: vec4, attributes2: vec4): vec2 {\n // note: attributes2 = [centerX, centerY, gravity, 0]\n\n const vx = currentNode[0] - attributes2[0];\n const vy = currentNode[1] - attributes2[1];\n \n const ax = vx * attributes2[2];\n const ay = vy * attributes2[2];\n \n return [ax, ay];\n }\n\n calcAttractive(i: int, currentNode: vec4, attributes1: vec4): vec2 {\n // note: attributes1 = [mass, degree, nodeSterngth, 0]\n\n const mass = attributes1[0];\n let ax = 0, ay = 0;\n // const arr_offset = int(floor(currentNode[2] + 0.5));\n // const length = int(floor(currentNode[3] + 0.5));\n\n const compressed = this.unpack_float(currentNode[2]);\n const length = compressed[0];\n const arr_offset = compressed[1];\n\n const node_buffer: vec4;\n for (let p: int = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4,\n }\n\n let float_j: float = node_buffer[0];\n\n const nextNode = this.u_Data[int(float_j)];\n const vx = nextNode[0] - currentNode[0];\n const vy = nextNode[1] - currentNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const direx = vx / dist;\n const direy = vy / dist;\n const edgeLength = node_buffer[1];\n const edgeStrength = node_buffer[2];\n const diff: float = edgeLength - dist;//edgeLength\n // const param = diff * this.u_stiffness / mass; //\n const param = diff * edgeStrength / mass; // \n ax -= direx * param;\n ay -= direy * param;\n }\n return [ax, ay];\n }\n\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n const movement = u_AveMovement[0];\n let ax = 0, ay = 0;\n\n if (i >= VERTEX_COUNT || movement.x < u_minMovement) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // 每个节点属性占两个数组中各一格\n // [mass, degree, nodeStrength, fx]\n const nodeAttributes1 = this.u_NodeAttributeArray1[i];\n // [centerX, centerY, centerGravity, fy]\n const nodeAttributes2 = this.u_NodeAttributeArray2[i];\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n ax += repulsive[0];\n ay += repulsive[1];\n\n // attractive\n const attractive = this.calcAttractive(i, currentNode, nodeAttributes1);\n ax += attractive[0];\n ay += attractive[1];\n\n // gravity\n const gravity = this.calcGravity(i, currentNode, nodeAttributes2);\n ax -= gravity[0];\n ay -= gravity[1];\n\n // speed\n const param = this.u_interval * this.u_damping;\n let vx = ax * param;\n let vy = ay * param;\n const vlength = sqrt(vx * vx + vy * vy) + 0.0001;\n if (vlength > this.u_maxSpeed) {\n const param2 = this.u_maxSpeed / vlength;\n vx = param2 * vx;\n vy = param2 * vy;\n }\n\n // move\n if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) {\n this.u_Data[i] = [\n nodeAttributes1[3],\n nodeAttributes2[3],\n currentNode[2],\n 0\n ];\n } else {\n const distx = vx * this.u_interval;\n const disty = vy * this.u_interval;\n const distLength = sqrt(distx * distx + disty * disty);\n this.u_Data[i] = [\n currentNode[0] + distx,\n currentNode[1] + disty,\n currentNode[2],\n distLength\n ];\n }\n \n // the avarage move distance\n // need to share memory\n \n }\n}\n",e.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.aveMovementCode="\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass CalcAveMovement {\n @in\n u_Data: vec4[];\n @in\n u_iter: float;\n @in @out\n u_AveMovement: vec4[];\n @main\n compute() {\n let movement = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n const vertex = this.u_Data[j];\n movement += vertex[3];\n }\n movement = movement / float(VERTEX_COUNT);\n this.u_AveMovement[0] = [movement, 0, 0, 0];\n }\n}\n",e.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},OwOc:function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"d",function(){return h}),e.e=function(t){for(var e in h)t[e]&&(h[e]=t[e])};var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100;var l,u,c=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-a)/s;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!l){var n=h.createCanvas();l=n&&n.getContext("2d")}if(l)return u!==e&&(u=l.font=e||o),l.measureText(t);t=t||"";var i=/(\d+)px/.exec(e=e||o),a=i&&+i[1]||r,s=0;if(e.indexOf("mono")>=0)s=a*t.length;else for(var d=0;d<t.length;d++){var f=c[t[d]];s+=null==f?a:f*a}return{width:s}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}}},Oy1H:function(t,e){function n(e){"@babel/helpers - typeof";return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},P2Of:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}return t.prototype.distanceTo=function(t){var e=this.rx-t.rx,n=this.ry-t.ry;return Math.hypot(e,n)},t.prototype.setPos=function(t,e){this.rx=t,this.ry=e},t.prototype.resetForce=function(){this.fx=0,this.fy=0},t.prototype.addForce=function(t){var e=t.rx-this.rx,n=t.ry-this.ry,r=Math.hypot(e,n);r=r<1e-4?1e-4:r;var i=this.g*(this.degree+1)*(t.degree+1)/r;this.fx+=i*e/r,this.fy+=i*n/r},t.prototype.in=function(t){return t.contains(this.rx,this.ry)},t.prototype.add=function(e){var n=this.mass+e.mass;return new t({rx:(this.rx*this.mass+e.rx*e.mass)/n,ry:(this.ry*this.mass+e.ry*e.mass)/n,mass:n,degree:this.degree+e.degree})},t}();e.default=r},PDVq:function(t,e,n){"use strict";e.d=function(){return window?window.devicePixelRatio:1},e.b=function(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)},e.e=function(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r},e.f=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.l=function(t,e){if(!t||!e)return t||e;return{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}},e.j=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var r=n("IgWN");n.d(e,"i",function(){return r.isNil}),n.d(e,"k",function(){return r.isString}),n.d(e,"h",function(){return r.isFunction}),n.d(e,"g",function(){return r.isArray}),n.d(e,"c",function(){return r.each}),n.d(e,"o",function(){return r.toRadian}),n.d(e,"m",function(){return r.mod}),n.d(e,"n",function(){return r.requestAnimationFrame}),n.d(e,"a",function(){return r.clearAnimationFrame})},PMNR:function(t,e,n){(function(e,n,r){var i,o;o=function(){return function t(e,n,r){function o(s,l){if(!n[s]){if(!e[s]){if(!l&&("function"==typeof i&&i))return i(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){return o(e[s][1][t]||t)},c,c.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,i,a,s,l,u,c=[],h=0,d=t.length,f=d,p="string"!==r.getTypeOf(t);h<t.length;)f=d-h,i=p?(e=t[h++],n=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),n=h<d?t.charCodeAt(h++):0,h<d?t.charCodeAt(h++):0),a=e>>2,s=(3&e)<<4|n>>4,l=1<f?(15&n)<<2|i>>6:64,u=2<f?63&i:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(u));return c.join("")},n.decode=function(t){var e,n,r,a,s,l,u=0,c=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&f--,t.charAt(t.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<t.length;)e=o.indexOf(t.charAt(u++))<<2|(a=o.indexOf(t.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(t.charAt(u++)))>>2,r=(3&s)<<6|(l=o.indexOf(t.charAt(u++))),d[c++]=e,64!==s&&(d[c++]=n),64!==l&&(d[c++]=r);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var r=t("./external"),i=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var t=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var r=t("./utils"),i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n,r){var o=i,a=0+n;t^=-1;for(var s=0;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}(0|e,t,t.length):function(t,e,n,r){var o=i,a=0+n;t^=-1;for(var s=0;s<a;s++)t=t>>>8^o[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var r;r="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:r}},{lie:37}],7:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=r?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function r(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r}function i(t,e,n,i,a,c){var h,d,f=t.file,p=t.compression,g=c!==s.utf8encode,v=o.transformTo("string",c(f.name)),m=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",c(y)),_=o.transformTo("string",s.utf8encode(y)),x=m.length!==f.name.length,w=_.length!==y.length,S="",C="",k="",O=f.dir,M=f.date,E={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(E.crc32=t.crc32,E.compressedSize=t.compressedSize,E.uncompressedSize=t.uncompressedSize);var T=0;e&&(T|=8),g||!x&&!w||(T|=2048);var A=0,I=0;O&&(A|=16),"UNIX"===a?(I=798,A|=function(t,e){var n=t;return t||(n=O?16893:33204),(65535&n)<<16}(f.unixPermissions)):(I=20,A|=63&(f.dosPermissions||0)),h=M.getUTCHours(),h<<=6,h|=M.getUTCMinutes(),h<<=5,h|=M.getUTCSeconds()/2,d=M.getUTCFullYear()-1980,d<<=4,d|=M.getUTCMonth()+1,d<<=5,d|=M.getUTCDate(),x&&(S+="up"+r((C=r(1,1)+r(l(v),4)+m).length,2)+C),w&&(S+="uc"+r((k=r(1,1)+r(l(b),4)+_).length,2)+k);var D="";return D+="\n\0",D+=r(T,2),D+=p.magic,D+=r(h,2),D+=r(d,2),D+=r(E.crc32,4),D+=r(E.compressedSize,4),D+=r(E.uncompressedSize,4),D+=r(v.length,2),D+=r(S.length,2),{fileRecord:u.LOCAL_FILE_HEADER+D+v+S,dirRecord:u.CENTRAL_FILE_HEADER+r(I,2)+D+r(b.length,2)+"\0\0\0\0"+r(A,4)+r(i,4)+v+S+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),u=t("../signature");function c(t,e,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,a),c.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,i=function(t,e,n,i,a){var s=o.transformTo("string",a(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()}),t.on("error",function(t){e.error(t)}),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var r=t("../compressions"),i=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new i(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach(function(t,n){a++;var i=function(t,e){var n=t||e,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:t,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(t,e){return(new r).loadAsync(t,e)},r.external=t("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function u(t){return new i.Promise(function(e,n){var r=t.decompressed.getContentWorker().pipe(new s);r.on("error",function(t){n(t)}).on("end",function(){r.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}e.exports=function(t,e){var n=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then(function(t){var n=new a(e);return n.load(t),n}).then(function(t){var n=[i.Promise.resolve(t)],r=t.files;if(e.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)}).then(function(t){for(var i=t.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../stream/GenericWorker");function o(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(o,i),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",function(t){e.push({data:t,meta:{percent:0}})}).on("error",function(t){e.isPaused?this.generatedError=t:e.error(t)}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var r=t("readable-stream").Readable;function i(t,e,n){r.call(this,e),this._helper=t;var i=this;t.on("data",function(t,e){i.push(t)||i._helper.pause(),n&&n(e)}).on("error",function(t){i.emit("error",t)}).on("end",function(){i.push(null)})}t("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,n,r){"use strict";n.exports={isNode:void 0!==e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function r(t,e,n){var r,i=o.getTypeOf(e),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(r=p(t))&&v.call(this,r,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(e instanceof u&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var m;m=e instanceof u||e instanceof a?e:d.isNode&&d.isStream(e)?new f(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var y=new c(t,m,s);this.files[t]=y}var i=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),u=t("./compressedObject"),c=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},v=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function m(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach(function(n,r){t(n,r)&&e.push(r)}),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,r.call(this,t,e,n),this;if(m(t)){var i=t;return this.filter(function(t,e){return!e.dir&&i.test(t)})}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(m(t))return this.filter(function(e,n){return n.dir&&t.test(e)});var e=this.root+t,n=v.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter(function(e,n){return n.name.slice(0,t.length)===t}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";e=h.generateWorker(this,n,r)}catch(t){(e=new a("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var r=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,n){"use strict";var r=t("./Uint8ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var r=t("./ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new l(r.transformTo("uint8array",t)):new o(r.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../utils");function o(t){r.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(o,r),o.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,r),o.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(o,i),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=r},{}],29:[function(t,n,r){"use strict";var i=t("../utils"),o=t("./ConvertWorker"),a=t("./GenericWorker"),s=t("../base64"),l=t("../support"),u=t("../external"),c=null;if(l.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,e,n){var r=e;switch(e){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=e,this._mimeType=n,i.checkSupport(r),this._worker=t.pipe(new o(r)),t.lock()}catch(t){this._worker=new a("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return function(t,n){return new u.Promise(function(r,o){var a=[],l=t._internalType,u=t._outputType,c=t._mimeType;t.on("data",function(t,e){a.push(t),n&&n(e)}).on("error",function(t){a=[],o(t)}).on("end",function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(u,function(t,n){var r,i=0,o=null,a=0;for(r=0;r<n.length;r++)a+=n[r].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(o=new Uint8Array(a),r=0;r<n.length;r++)o.set(n[r],i),i+=n[r].length;return o;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(l,a),c);r(t)}catch(t){o(t)}a=[]}).resume()})}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,function(t){e.call(n,t.data,t.meta)}):this._worker.on(t,function(){i.delay(e,arguments,n)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==e,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),r.blob=0===o.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var r=t("./utils"),i=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return i.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return i.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,i,o,a=t.length,l=new Array(2*a);for(e=n=0;e<a;)if((i=t[e++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,e+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&e<a;)i=i<<6|63&t[e++],o--;1<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(t=r.transformTo(i.uint8array?"uint8array":"array",t))},r.inherits(u,a),u.prototype.processChunk=function(t){var e=r.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(i.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,a),c.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var r=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(t),r.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(t,e,n){var r=[],i=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function c(t){var e=65536,r=n.getTypeOf(t),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return u.stringifyByChunk(t,r,e)}catch(t){e=Math.floor(e/2)}return u.stringifyByChar(t)}function h(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=c;var d={};d.string={string:s,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},d.array={string:c,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},d.arraybuffer={string:function(t){return c(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return o.newBufferFrom(t)}},d.nodebuffer={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var r=n.getTypeOf(e);return d[r][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],r=0;r<e.length;r++){var i=e[r];"."===i||""===i&&0!==r&&r!==e.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":r.nodebuffer&&o.isBuffer(t)?"nodebuffer":r.uint8array&&t instanceof Uint8Array?"uint8array":r.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!r[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},n.delay=function(t,e,n){setImmediate(function(){t.apply(n||null,e||[])})},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,s,u){return a.Promise.resolve(e).then(function(t){return r.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise(function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)}):t}).then(function(e){var c=n.getTypeOf(e);return c?("arraybuffer"===c?e=n.transformTo("uint8array",e):"string"===c&&(u?e=i.decode(e):o&&!0!==s&&(e=function(t){return l(t,r.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(0<r)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),u=t("./support");function c(t,e){this.options=t,this.loadOptions=e}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=r(t.value);return 1!==e.readInt(1)?null:a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=r(t.value);return 1!==e.readInt(1)?null:a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function r(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var r="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&r&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new i(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)r.prototype[u[h]]=c;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,r){(function(t){"use strict";var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var l=new t.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var t,e;r=!0;for(var n=u.length;n;){for(e=u,u=[],t=-1;++t<n;)e[t]();n=u.length}r=!1}e.exports=function(t){1!==u.push(t)||r||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var r=t("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==i&&f(this,t)}function c(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,e,n){r(function(){var r;try{r=e(n)}catch(r){return o.reject(t,r)}r===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,r)})}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function r(e){n||(n=!0,o.reject(t,e))}function i(e){n||(n=!0,o.resolve(t,e))}var a=p(function(){e(i,r)});"error"===a.status&&r(a.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=u).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){throw n})})},u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?h(n,this.state===s?t:e,this.outcome):this.queue.push(new c(n,t,e)),n},c.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){o.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=p(d,e);if("error"===n.status)return o.reject(t,n.value);var r=n.value;if(r)f(t,r);else{t.state=s,t.outcome=e;for(var i=-1,a=t.queue.length;++i<a;)t.queue[i].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},u.resolve=function(t){return t instanceof this?t:o.resolve(new this(i),t)},u.reject=function(t){var e=new this(i);return o.reject(e,t)},u.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(t[l],l);return u;function c(t,i){e.resolve(t).then(function(t){a[i]=t,++s!==n||r||(r=!0,o.resolve(u,a))},function(t){r||(r=!0,o.reject(u,t))})}},u.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var r,a=-1,s=new this(i);++a<e;)r=t[a],this.resolve(r).then(function(t){n||(n=!0,o.resolve(s,t))},function(t){n||(n=!0,o.reject(s,t))});return s}},{immediate:36}],38:[function(t,e,n){"use strict";var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var r=t("./zlib/deflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString,u=0,c=-1,h=0,d=8;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==u)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(a[n]);this._dict_set=!0}}function p(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),!(s.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var r=t("./zlib/inflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),u=t("./zlib/gzheader"),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(t,e){var n,s,l,u,h,d,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,v=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?f.input=o.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===v&&(n=a.Z_OK,v=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),u=f.next_out-l,h=o.buf2string(f.output,l),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,l,u,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(v=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(e=r=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),e=i=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(t,e,n){"use strict";var r=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,n.string2buf=function(t){var e,n,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,o,s=e||t.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=t[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&t[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+e[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var r,i=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),u=0,c=4,h=0,d=-2,f=-1,p=4,g=2,v=8,m=9,y=286,b=30,_=19,x=2*y+1,w=15,S=3,C=258,k=C+S+1,O=42,M=113,E=1,T=2,A=3,I=4;function D(t,e){return t.msg=l[e],e}function P(t){return(t<<1)-(4<t?9:0)}function L(t){for(var e=t.length;0<=--e;)t[e]=0}function j(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function N(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function R(t,e){t.pending_buf[t.pending++]=e}function B(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function F(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,u=t.window,c=t.w_mask,h=t.prev,d=t.strstart+C,f=u[o+a-1],p=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(n=e)+a]===p&&u[n+a-1]===f&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=C-(d-o),o=d-C,a<r){if(t.match_start=e,s<=(a=r))break;f=u[o+a-1],p=u[o+a]}}}while((e=h[e&c])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function z(t){var e,n,r,o,l,u,c,h,d,f,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-k)){for(i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;r=t.head[--e],t.head[e]=p<=r?r-p:0,--n;);for(e=n=p;r=t.prev[--e],t.prev[e]=p<=r?r-p:0,--n;);o+=p}if(0===t.strm.avail_in)break;if(u=t.strm,c=t.window,h=t.strstart+t.lookahead,f=void 0,(d=o)<(f=u.avail_in)&&(f=d),n=0===f?0:(u.avail_in-=f,i.arraySet(c,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=a(u.adler,c,f,h):2===u.state.wrap&&(u.adler=s(u.adler,c,f,h)),u.next_in+=f,u.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=S)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+S-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<S)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function V(t,e){for(var n,r;;){if(t.lookahead<k){if(z(t),t.lookahead<k&&e===u)return E;if(0===t.lookahead)break}if(n=0,t.lookahead>=S&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-k&&(t.match_length=F(t,n)),t.match_length>=S)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-S),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=S){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(N(t,!1),0===t.strm.avail_out))return E}return t.insert=t.strstart<S-1?t.strstart:S-1,e===c?(N(t,!0),0===t.strm.avail_out?A:I):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?E:T}function $(t,e){for(var n,r,i;;){if(t.lookahead<k){if(z(t),t.lookahead<k&&e===u)return E;if(0===t.lookahead)break}if(n=0,t.lookahead>=S&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=S-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-k&&(t.match_length=F(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===S&&4096<t.strstart-t.match_start)&&(t.match_length=S-1)),t.prev_length>=S&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-S,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-S),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+S-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=S-1,t.strstart++,r&&(N(t,!1),0===t.strm.avail_out))return E}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&N(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return E}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<S-1?t.strstart:S-1,e===c?(N(t,!0),0===t.strm.avail_out?A:I):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?E:T}function G(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*x),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(w+1),this.heap=new i.Buf16(2*y+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?O:M,t.adler=2===e.wrap?0:1,e.last_flush=u,o._tr_init(e),h):D(t,d)}function U(t){var e=W(t);return e===h&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=S-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,n,r,o,a){if(!t)return d;var s=1;if(e===f&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||m<o||n!==v||r<8||15<r||e<0||9<e||a<0||p<a)return D(t,d);8===r&&(r=9);var l=new H;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+S-1)/S),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=n,U(t)}r=[new G(0,0,0,0,function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(z(t),0===t.lookahead&&e===u)return E;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,N(t,!1),0===t.strm.avail_out))return E;if(t.strstart-t.block_start>=t.w_size-k&&(N(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===c?(N(t,!0),0===t.strm.avail_out?A:I):(t.strstart>t.block_start&&(N(t,!1),t.strm.avail_out),E)}),new G(4,4,8,4,V),new G(4,5,16,8,V),new G(4,6,32,32,V),new G(4,4,16,16,$),new G(8,16,32,32,$),new G(8,16,128,128,$),new G(8,32,128,256,$),new G(32,128,258,1024,$),new G(32,258,258,4096,$)],n.deflateInit=function(t,e){return Y(t,e,v,15,8,0)},n.deflateInit2=Y,n.deflateReset=U,n.deflateResetKeep=W,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,h):d},n.deflate=function(t,e){var n,i,a,l;if(!t||!t.state||5<e||e<0)return t?D(t,d):d;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==c)return D(t,0===t.avail_out?-5:d);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===O)if(2===i.wrap)t.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,3),i.status=M);else{var f=v+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=M,B(i,f),0!==i.strstart&&(B(i,t.adler>>>16),B(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(R(i,255&t.adler),R(i,t.adler>>8&255),t.adler=0,i.status=M)):i.status=M),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&P(e)<=P(n)&&e!==c)return D(t,-5);if(666===i.status&&0!==t.avail_in)return D(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==u&&666!==i.status){var p=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===u)return E;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(N(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===c?(N(t,!0),0===t.strm.avail_out?A:I):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?E:T}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=C){if(z(t),t.lookahead<=C&&e===u)return E;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=S&&0<t.strstart&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+C;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=C-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=S?(n=o._tr_tally(t,1,t.match_length-S),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(N(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===c?(N(t,!0),0===t.strm.avail_out?A:I):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?E:T}(i,e):r[i.level].func(i,e);if(p!==A&&p!==I||(i.status=666),p===E||p===A)return 0===t.avail_out&&(i.last_flush=-1),h;if(p===T&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,h}return e!==c?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&t.adler),R(i,t.adler>>8&255),R(i,t.adler>>16&255),R(i,t.adler>>24&255),R(i,255&t.total_in),R(i,t.total_in>>8&255),R(i,t.total_in>>16&255),R(i,t.total_in>>24&255)):(B(i,t.adler>>>16),B(i,65535&t.adler)),j(t),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==O&&69!==e&&73!==e&&91!==e&&103!==e&&e!==M&&666!==e?D(t,d):(t.state=null,e===M?D(t,-3):h):d},n.deflateSetDictionary=function(t,e){var n,r,o,s,l,u,c,f,p=e.length;if(!t||!t.state)return d;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==O||n.lookahead)return d;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,e,p-n.w_size,n.w_size,0),e=f,p=n.w_size),l=t.avail_in,u=t.next_in,c=t.input,t.avail_in=p,t.next_in=0,t.input=e,z(n);n.lookahead>=S;){for(r=n.strstart,o=n.lookahead-(S-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+S-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=S-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=S-1,n.match_available=0,t.next_in=u,t.input=c,t.avail_in=l,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C,k,O;n=t.state,r=t.next_in,k=t.input,i=r+(t.avail_in-5),o=t.next_out,O=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,v=n.distcode,m=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),b=g[f&m];e:for(;;){if(f>>>=_=b>>>24,p-=_,0==(_=b>>>16&255))O[o++]=65535&b;else{if(!(16&_)){if(0==(64&_)){b=g[(65535&b)+(f&(1<<_)-1)];continue e}if(32&_){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}x=65535&b,(_&=15)&&(p<_&&(f+=k[r++]<<p,p+=8),x+=f&(1<<_)-1,f>>>=_,p-=_),p<15&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),b=v[f&y];n:for(;;){if(f>>>=_=b>>>24,p-=_,!(16&(_=b>>>16&255))){if(0==(64&_)){b=v[(65535&b)+(f&(1<<_)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(w=65535&b,p<(_&=15)&&(f+=k[r++]<<p,(p+=8)<_&&(f+=k[r++]<<p,p+=8)),l<(w+=f&(1<<_)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=_,p-=_,(_=o-a)<w){if(c<(_=w-_)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(C=d,(S=0)===h){if(S+=u-_,_<x){for(x-=_;O[o++]=d[S++],--_;);S=o-w,C=O}}else if(h<_){if(S+=u+h-_,(_-=h)<x){for(x-=_;O[o++]=d[S++],--_;);if(S=0,h<x){for(x-=_=h;O[o++]=d[S++],--_;);S=o-w,C=O}}}else if(S+=h-_,_<x){for(x-=_;O[o++]=d[S++],--_;);S=o-w,C=O}for(;2<x;)O[o++]=C[S++],O[o++]=C[S++],O[o++]=C[S++],x-=3;x&&(O[o++]=C[S++],1<x&&(O[o++]=C[S++]))}else{for(S=o-w;O[o++]=O[S++],O[o++]=O[S++],O[o++]=O[S++],2<(x-=3););x&&(O[o++]=O[S++],1<x&&(O[o++]=O[S++]))}break}}break}}while(r<i&&o<s);r-=x=p>>3,f&=(1<<(p-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p}},{}],49:[function(t,e,n){"use strict";var r=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=1,u=2,c=0,h=-2,d=1,f=852,p=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(f),e.distcode=e.distdyn=new r.Buf32(p),e.sane=1,e.back=-1,c):h}function m(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):h}function y(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?h:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,m(t))):h}function b(t,e){var n,i;return t?(i=new function(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},(t.state=i).window=null,(n=y(t,e))!==c&&(t.state=null),n):h}var _,x,w=!0;function S(t){if(w){var e;for(_=new r.Buf32(512),x=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(l,t.lens,0,288,_,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,x,0,t.work,{bits:5}),w=!1}t.lencode=_,t.lenbits=9,t.distcode=x,t.distbits=5}function C(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=m,n.inflateReset2=y,n.inflateResetKeep=v,n.inflateInit=function(t){return b(t,15)},n.inflateInit2=b,n.inflate=function(t,e){var n,f,p,v,m,y,b,_,x,w,k,O,M,E,T,A,I,D,P,L,j,N,R,B,F=0,z=new r.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(n=t.state).mode&&(n.mode=13),m=t.next_out,p=t.output,b=t.avail_out,v=t.next_in,f=t.input,y=t.avail_in,_=n.hold,x=n.bits,w=y,k=b,N=c;t:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(2&n.wrap&&35615===_){z[n.check=0]=255&_,z[1]=_>>>8&255,n.check=o(n.check,z,2,0),x=_=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&_)){t.msg="unknown compression method",n.mode=30;break}if(x-=4,j=8+(15&(_>>>=4)),0===n.wbits)n.wbits=j;else if(j>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<j,t.adler=n.check=1,n.mode=512&_?10:12,x=_=0;break;case 2:for(;x<16;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(n.flags=_,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(z[0]=255&_,z[1]=_>>>8&255,n.check=o(n.check,z,2,0)),x=_=0,n.mode=3;case 3:for(;x<32;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}n.head&&(n.head.time=_),512&n.flags&&(z[0]=255&_,z[1]=_>>>8&255,z[2]=_>>>16&255,z[3]=_>>>24&255,n.check=o(n.check,z,4,0)),x=_=0,n.mode=4;case 4:for(;x<16;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(z[0]=255&_,z[1]=_>>>8&255,n.check=o(n.check,z,2,0)),x=_=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(z[0]=255&_,z[1]=_>>>8&255,n.check=o(n.check,z,2,0)),x=_=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(O=n.length)&&(O=y),O&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,v,O,j)),512&n.flags&&(n.check=o(n.check,f,O,v)),y-=O,v+=O,n.length-=O),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break t;for(O=0;j=f[v+O++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j)),j&&O<y;);if(512&n.flags&&(n.check=o(n.check,f,O,v)),y-=O,v+=O,j)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break t;for(O=0;j=f[v+O++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j)),j&&O<y;);if(512&n.flags&&(n.check=o(n.check,f,O,v)),y-=O,v+=O,j)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(_!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}x=_=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}t.adler=n.check=g(_),x=_=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=m,t.avail_out=b,t.next_in=v,t.avail_in=y,n.hold=_,n.bits=x,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){_>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}switch(n.last=1&_,x-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6!==e)break;_>>>=2,x-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}_>>>=2,x-=2;break;case 14:for(_>>>=7&x,x-=7&x;x<32;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if((65535&_)!=(_>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,x=_=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(O=n.length){if(y<O&&(O=y),b<O&&(O=b),0===O)break t;r.arraySet(p,f,v,O,m),y-=O,v+=O,b-=O,m+=O,n.length-=O;break}n.mode=12;break;case 17:for(;x<14;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(n.nlen=257+(31&_),_>>>=5,x-=5,n.ndist=1+(31&_),_>>>=5,x-=5,n.ncode=4+(15&_),_>>>=4,x-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}n.lens[V[n.have++]]=7&_,_>>>=3,x-=3}for(;n.have<19;)n.lens[V[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},N=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,N){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(F=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,I=65535&F,!((T=F>>>24)<=x);){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(I<16)_>>>=T,x-=T,n.lens[n.have++]=I;else{if(16===I){for(B=T+2;x<B;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(_>>>=T,x-=T,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}j=n.lens[n.have-1],O=3+(3&_),_>>>=2,x-=2}else if(17===I){for(B=T+3;x<B;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}x-=T,j=0,O=3+(7&(_>>>=T)),_>>>=3,x-=3}else{for(B=T+7;x<B;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}x-=T,j=0,O=11+(127&(_>>>=T)),_>>>=7,x-=7}if(n.have+O>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;O--;)n.lens[n.have++]=j}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},N=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,N){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},N=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,N){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=y&&258<=b){t.next_out=m,t.avail_out=b,t.next_in=v,t.avail_in=y,n.hold=_,n.bits=x,a(t,k),m=t.next_out,p=t.output,b=t.avail_out,v=t.next_in,f=t.input,y=t.avail_in,_=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;A=(F=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,I=65535&F,!((T=F>>>24)<=x);){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(A&&0==(240&A)){for(D=T,P=A,L=I;A=(F=n.lencode[L+((_&(1<<D+P)-1)>>D)])>>>16&255,I=65535&F,!(D+(T=F>>>24)<=x);){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}_>>>=D,x-=D,n.back+=D}if(_>>>=T,x-=T,n.back+=T,n.length=I,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(B=n.extra;x<B;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(F=n.distcode[_&(1<<n.distbits)-1])>>>16&255,I=65535&F,!((T=F>>>24)<=x);){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(0==(240&A)){for(D=T,P=A,L=I;A=(F=n.distcode[L+((_&(1<<D+P)-1)>>D)])>>>16&255,I=65535&F,!(D+(T=F>>>24)<=x);){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}_>>>=D,x-=D,n.back+=D}if(_>>>=T,x-=T,n.back+=T,64&A){t.msg="invalid distance code",n.mode=30;break}n.offset=I,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(B=n.extra;x<B;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break t;if(O=k-b,n.offset>O){if((O=n.offset-O)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}M=O>n.wnext?(O-=n.wnext,n.wsize-O):n.wnext-O,O>n.length&&(O=n.length),E=n.window}else E=p,M=m-n.offset,O=n.length;for(b<O&&(O=b),b-=O,n.length-=O;p[m++]=E[M++],--O;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break t;p[m++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===y)break t;y--,_|=f[v++]<<x,x+=8}if(k-=b,t.total_out+=k,n.total+=k,k&&(t.adler=n.check=n.flags?o(n.check,p,k,m-k):i(n.check,p,k,m-k)),k=b,(n.flags?_:g(_))!==n.check){t.msg="incorrect data check",n.mode=30;break}x=_=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===y)break t;y--,_+=f[v++]<<x,x+=8}if(_!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}x=_=0}n.mode=29;case 29:N=1;break t;case 30:N=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=m,t.avail_out=b,t.next_in=v,t.avail_in=y,n.hold=_,n.bits=x,(n.wsize||k!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&C(t,t.output,t.next_out,k-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,k-=t.avail_out,t.total_in+=w,t.total_out+=k,n.total+=k,n.wrap&&k&&(t.adler=n.check=n.flags?o(n.check,p,k,t.next_out-k):i(n.check,p,k,t.next_out-k)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===k||4===e)&&N===c&&(N=-5),N)},n.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?h:((n.head=e).done=!1,c):h},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,e,r,0)!==n.check?-3:C(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,c):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,u,c,h,d){var f,p,g,v,m,y,b,_,x,w=d.bits,S=0,C=0,k=0,O=0,M=0,E=0,T=0,A=0,I=0,D=0,P=null,L=0,j=new r.Buf16(16),N=new r.Buf16(16),R=null,B=0;for(S=0;S<=15;S++)j[S]=0;for(C=0;C<l;C++)j[e[n+C]]++;for(M=w,O=15;1<=O&&0===j[O];O--);if(O<M&&(M=O),0===O)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(k=1;k<O&&0===j[k];k++);for(M<k&&(M=k),S=A=1;S<=15;S++)if(A<<=1,(A-=j[S])<0)return-1;if(0<A&&(0===t||1!==O))return-1;for(N[1]=0,S=1;S<15;S++)N[S+1]=N[S]+j[S];for(C=0;C<l;C++)0!==e[n+C]&&(h[N[e[n+C]]++]=C);if(y=0===t?(P=R=h,19):1===t?(P=i,L-=257,R=o,B-=257,256):(P=a,R=s,-1),S=k,m=c,T=C=D=0,g=-1,v=(I=1<<(E=M))-1,1===t&&852<I||2===t&&592<I)return 1;for(;;){for(b=S-T,x=h[C]<y?(_=0,h[C]):h[C]>y?(_=R[B+h[C]],P[L+h[C]]):(_=96,0),f=1<<S-T,k=p=1<<E;u[m+(D>>T)+(p-=f)]=b<<24|_<<16|x|0,0!==p;);for(f=1<<S-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,C++,0==--j[S]){if(S===O)break;S=e[n+h[C]]}if(M<S&&(D&v)!==g){for(0===T&&(T=M),m+=k,A=1<<(E=S-T);E+T<O&&!((A-=j[E+T])<=0);)E++,A<<=1;if(I+=1<<E,1===t&&852<I||2===t&&592<I)return 1;u[g=D&v]=M<<24|E<<16|m-c|0}}return 0!==D&&(u[m+D]=S-T<<24|64<<16|0),d.bits=M,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var r=t("../utils/common");function i(t){for(var e=t.length;0<=--e;)t[e]=0}var o=0,a=256,s=a+1+29,l=30,u=19,c=2*s+1,h=15,d=16,f=256,p=16,g=17,v=18,m=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],y=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=new Array(2*(s+2));i(x);var w=new Array(2*l);i(w);var S=new Array(512);i(S);var C=new Array(256);i(C);var k=new Array(29);i(k);var O,M,E,T=new Array(l);function A(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function I(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function D(t){return t<256?S[t]:S[256+(t>>>7)]}function P(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function L(t,e,n){t.bi_valid>d-n?(t.bi_buf|=e<<t.bi_valid&65535,P(t,t.bi_buf),t.bi_buf=e>>d-t.bi_valid,t.bi_valid+=n-d):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function j(t,e,n){L(t,n[2*e],n[2*e+1])}function N(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function R(t,e,n){var r,i,o=new Array(h+1),a=0;for(r=1;r<=h;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=N(o[s]++,s))}}function B(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<l;e++)t.dyn_dtree[2*e]=0;for(e=0;e<u;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*f]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function F(t){8<t.bi_valid?P(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function z(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function V(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!z(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function $(t,e,n){var r,i,o,s,l=0;if(0!==t.last_lit)for(;r=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],i=t.pending_buf[t.l_buf+l],l++,0===r?j(t,i,e):(j(t,(o=C[i])+a+1,e),0!==(s=m[o])&&L(t,i-=k[o],s),j(t,o=D(--r),n),0!==(s=y[o])&&L(t,r-=T[o],s)),l<t.last_lit;);j(t,f,e)}function G(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=c,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)V(t,o,n);for(i=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],V(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,V(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,u=e.max_code,d=e.stat_desc.static_tree,f=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,v=e.stat_desc.max_length,m=0;for(o=0;o<=h;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<c;n++)v<(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)&&(o=v,m++),l[2*r+1]=o,u<r||(t.bl_count[o]++,a=0,g<=r&&(a=p[r-g]),s=l[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(d[2*r+1]+a)));if(0!==m){do{for(o=v-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[v]--,m-=2}while(0<m);for(o=v;0!==o;o--)for(r=t.bl_count[o];0!==r;)u<(i=t.heap[--n])||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),R(o,u,t.bl_count)}function H(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*p]++):s<=10?t.bl_tree[2*g]++:t.bl_tree[2*v]++,o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function W(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)for(;j(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==o&&(j(t,i,t.bl_tree),s--),j(t,p,t.bl_tree),L(t,s-3,2)):s<=10?(j(t,g,t.bl_tree),L(t,s-3,3)):(j(t,v,t.bl_tree),L(t,s-11,7));o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}i(T);var U=!1;function Y(t,e,n,i){L(t,(o<<1)+(i?1:0),3),function(t,e,n,i){F(t),P(t,n),P(t,~n),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){U||(function(){var t,e,n,r,i,o=new Array(h+1);for(r=n=0;r<28;r++)for(k[r]=n,t=0;t<1<<m[r];t++)C[n++]=r;for(C[n-1]=r,r=i=0;r<16;r++)for(T[r]=i,t=0;t<1<<y[r];t++)S[i++]=r;for(i>>=7;r<l;r++)for(T[r]=i<<7,t=0;t<1<<y[r]-7;t++)S[256+i++]=r;for(e=0;e<=h;e++)o[e]=0;for(t=0;t<=143;)x[2*t+1]=8,t++,o[8]++;for(;t<=255;)x[2*t+1]=9,t++,o[9]++;for(;t<=279;)x[2*t+1]=7,t++,o[7]++;for(;t<=287;)x[2*t+1]=8,t++,o[8]++;for(R(x,s+1,o),t=0;t<l;t++)w[2*t+1]=5,w[2*t]=N(t,5);O=new A(x,m,a+1,s,h),M=new A(w,y,0,l,h),E=new A(new Array(0),b,0,u,7)}(),U=!0),t.l_desc=new I(t.dyn_ltree,O),t.d_desc=new I(t.dyn_dtree,M),t.bl_desc=new I(t.bl_tree,E),t.bi_buf=0,t.bi_valid=0,B(t)},n._tr_stored_block=Y,n._tr_flush_block=function(t,e,n,r){var i,o,s=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),G(t,t.l_desc),G(t,t.d_desc),s=function(t){var e;for(H(t,t.dyn_ltree,t.l_desc.max_code),H(t,t.dyn_dtree,t.d_desc.max_code),G(t,t.bl_desc),e=u-1;3<=e&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?Y(t,e,n,r):4===t.strategy||o===i?(L(t,2+(r?1:0),3),$(t,x,w)):(L(t,4+(r?1:0),3),function(t,e,n,r){var i;for(L(t,e-257,5),L(t,n-1,5),L(t,r-4,4),i=0;i<r;i++)L(t,t.bl_tree[2*_[i]+1],3);W(t,t.dyn_ltree,e-1),W(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),$(t,t.dyn_ltree,t.dyn_dtree)),B(t),r&&F(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(C[n]+a+1)]++,t.dyn_dtree[2*D(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){L(t,2,3),j(t,f,x),function(t){16===t.bi_valid?(P(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,i,o,a,s=1,l={},u=!1,c=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,n="[object process]"==={}.toString.call(t.process)?function(t){r.nextTick(function(){f(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(a="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){f(t.data)},function(t){o.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,function(t){var e=c.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):function(t){setTimeout(f,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return l[s]=i,n(s),s++},h.clearImmediate=d}function d(t){delete l[t]}function f(t){if(u)setTimeout(f,0,t);else{var n=l[t];if(n){u=!0;try{!function(t){var n=t.callback,r=t.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(e,r)}}(n)}finally{d(t),u=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&f(+e.data.slice(a.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},t.exports=o()}).call(e,n("EuP9").Buffer,n("DuR2"),n("W2nU"))},PRxO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoreNodeAndRelativeLeafNodes=e.getAvgNodePosition=e.getLayoutBBox=e.traverseTreeUp=e.scaleMatrix=e.getAdjMatrix=e.floydWarshall=e.getDegreeMap=e.getDegree=e.getEdgeTerminal=void 0;var r=n("i3IR"),i=n("yKiC"),o=n("hTOL");e.getEdgeTerminal=function(t,e){var n=t[e];return(0,o.isObject)(n)?n.cell:n};e.getDegree=function(t,n,r){for(var i=[],o=0;o<t;o++)i[o]={in:0,out:0,all:0};return r?(r.forEach(function(t){var r=(0,e.getEdgeTerminal)(t,"source"),o=(0,e.getEdgeTerminal)(t,"target");r&&i[n[r]]&&(i[n[r]].out+=1,i[n[r]].all+=1),o&&i[n[o]]&&(i[n[o]].in+=1,i[n[o]].all+=1)}),i):i};e.getDegreeMap=function(t,n){var r={};return t.forEach(function(t){r[t.id]={in:0,out:0,all:0}}),n?(n.forEach(function(t){var n=(0,e.getEdgeTerminal)(t,"source"),i=(0,e.getEdgeTerminal)(t,"target");n&&(r[n].out+=1,r[n].all+=1),i&&(r[i].in+=1,r[i].all+=1)}),r):r};e.floydWarshall=function(t){for(var e=[],n=t.length,r=0;r<n;r+=1){e[r]=[];for(var i=0;i<n;i+=1)r===i?e[r][i]=0:0!==t[r][i]&&t[r][i]?e[r][i]=t[r][i]:e[r][i]=1/0}for(var o=0;o<n;o+=1)for(r=0;r<n;r+=1)for(i=0;i<n;i+=1)e[r][i]>e[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e};e.getAdjMatrix=function(t,n){var r=t.nodes,i=t.edges,o=[],a={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(t,e){a[t.id]=e,o.push([])}),null===i||void 0===i||i.forEach(function(t){var r=(0,e.getEdgeTerminal)(t,"source"),i=(0,e.getEdgeTerminal)(t,"target"),s=a[r],l=a[i];void 0!==s&&void 0!==l&&(o[s][l]=1,n||(o[l][s]=1))}),o};e.scaleMatrix=function(t,e){var n=[];return t.forEach(function(t){var r=[];t.forEach(function(t){r.push(t*e)}),n.push(r)}),n};var a=function(t,e){if(t&&t.children)for(var n=t.children.length-1;n>=0;n--)if(!a(t.children[n],e))return;return!!e(t)};e.traverseTreeUp=function(t,e){"function"==typeof e&&a(t,e)};e.getLayoutBBox=function(t){var e=1/0,n=1/0,o=-1/0,a=-1/0;return t.forEach(function(t){var s=t.size;(0,r.isArray)(s)?1===s.length&&(s=[s[0],s[0]]):(0,i.isNumber)(s)?s=[s,s]:(void 0===s||isNaN(s))&&(s=[30,30]);var l=[s[0]/2,s[1]/2],u=t.x-l[0],c=t.x+l[0],h=t.y-l[1],d=t.y+l[1];e>u&&(e=u),n>h&&(n=h),o<c&&(o=c),a<d&&(a=d)}),{minX:e,minY:n,maxX:o,maxY:a}};e.getAvgNodePosition=function(t){var e={x:0,y:0};t.forEach(function(t){e.x+=t.x||0,e.y+=t.y||0});var n=t.length||1;return{x:e.x/n,y:e.y/n}};var s=function(t,e,n){var r,i;return"source"===t?(null===(r=null===n||void 0===n?void 0:n.find(function(t){return t.target===e.id}))||void 0===r?void 0:r.source)||{}:(null===(i=null===n||void 0===n?void 0:n.find(function(t){return t.source===e.id}))||void 0===i?void 0:i.target)||{}},l=function(t,e,n){var r=[];switch(t){case"source":r=null===n||void 0===n?void 0:n.filter(function(t){return t.source===e.id}).map(function(t){return t.target});break;case"target":r=null===n||void 0===n?void 0:n.filter(function(t){return t.target===e.id}).map(function(t){return t.source});break;case"both":r=null===n||void 0===n?void 0:n.filter(function(t){return t.source===e.id}).map(function(t){return t.target}).concat(null===n||void 0===n?void 0:n.filter(function(t){return t.target===e.id}).map(function(t){return t.source}))}var i=new Set(r);return Array.from(i)};e.getCoreNodeAndRelativeLeafNodes=function(t,e,n,r,i,o){var a=i[e.id],u=a.in,c=a.out,h=e,d=[];return 0===u?(h=s("source",e,n),d=l("both",h,n).map(function(t){return o[t]})):0===c&&(h=s("target",e,n),d=l("both",h,n).map(function(t){return o[t]})),{coreNode:h,relativeLeafNodes:d=d.filter(function(t){return i[t.id]&&(0===i[t.id].in||0===i[t.id].out)}),sameTypeLeafNodes:function(t,e,n,r,i){var o=n[e]||"",a=(null===r||void 0===r?void 0:r.filter(function(t){return t[e]===o}))||[];return"leaf"===t&&(a=a.filter(function(t){var e,n;return 0===(null===(e=i[t.id])||void 0===e?void 0:e.in)||0===(null===(n=i[t.id])||void 0===n?void 0:n.out)})),a}(t,r,e,d,i)}}},PiFy:function(t,e,n){"use strict";var r=n("fRHV");t.exports=Function.prototype.bind||r},Py8m:function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports={assign:Object.assign,getHeight:function(t,e,n,r){return void 0===r&&(r="height"),"center"===n?(t[r]+e[r])/2:t.height}}},function(t,e,n){var r=n(3),i=function(){function t(t,e){void 0===e&&(e={});this.options=e,this.rootNode=r(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){var r=n(4),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),s&&-1===i.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var l=r(t,e),u=l.left,c=l.right;n(u,e),n(c,e),e.isHorizontal?u.right2left():u.bottom2top(),c.translate(u.x-c.x,u.y-c.y),t.x=u.x,t.y=c.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){var n=e.isHorizontal?["x","y"]:["y","x"],r=n[0],i=n[1],o={x:1/0,y:1/0},a={x:-1/0,y:-1/0},s=0;t.DFTraverse(function(t){s++;var e=t.x,n=t.y;o.x=Math.min(o.x,e),o.y=Math.min(o.y,n),a.x=Math.max(a.x,e),a.y=Math.max(a.y,n)});var l=a[i]-o[i];if(0===l)return;var u=2*Math.PI/s;t.DFTraverse(function(e){var n=(e[i]-o[i])/l*(2*Math.PI-u)+u,a=e[r]-t[r];e.x=Math.cos(n)*a,e.y=Math.sin(n)*a})}}(t,e),t}},function(t,e,n){var r=n(0),i={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode(function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.x=e.x-2*(e.x-t.left)-e.width}),this.translate(t.width,0)},bottom2top:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.y=e.y-2*(e.y-t.top)-e.height}),this.translate(0,t.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),l=[s];if(!n&&!t.collapsed)for(;a=l.shift();)if(!a.data.collapsed){var u=e.getChildren(a.data),c=u?u.length:0;if(a.children=new Array(c),u&&c)for(var h=0;h<c;h++){var d=new o(u[h],e);a.children[h]=d,l.push(d),d.parent=a,d.depth=a.depth+1}}return s}},function(t,e,n){var r=n(3);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left"},l=0;l<o;l++){var u=t.children[l];"right"===s(u,l)?i.children.push(u):n.children.push(u)}return n.eachNode(function(t){t.isRoot()||(t.side="left")}),i.eachNode(function(t){t.isRoot()||(t.side="right")}),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(6),dendrogram:n(8),indented:n(10),mindmap:n(12)};t.exports=r},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var i=n(1),o=n(7),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),e.prototype.execute=function(){return a(this.rootNode,this.options,o)},e}(i),u={};t.exports=function(t,e){return e=s.assign({},u,e),new l(t,e).execute()}},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e){!function t(e,n,r){r?e.y+=n:e.x+=n,e.children.forEach(function(e){t(e,n,r)})}(t,-function t(e,n){var r=n?e.y:e.x;return e.children.forEach(function(e){r=Math.min(t(e,n),r)}),r}(t,e),e)}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach(function(t){r.push(n.fromNode(t,e))}),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var i=e.isHorizontal;function o(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function a(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;null!==r&&null!==o;){c(r)>n.low&&(n=n.nxt);var h=i+r.prelim+r.w-(a+o.prelim);h>0&&(a+=h,s(t,e,n.index,h));var d=c(r),f=c(o);d<=f&&null!==(r=u(r))&&(i+=r.mod),d>=f&&null!==(o=l(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function s(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function l(t){return 0===t.cs?t.tl:t.c[0]}function u(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function c(t){return t.y+t.h}function h(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,r){void 0===r&&(r=0),n?(e.x=r,r+=e.width):(e.y=r,r+=e.height),e.children.forEach(function(e){t(e,n,r)})}(t,i);var d=n.fromNode(t,i);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=h(c(e.c[0].el),0,null),r=1;r<e.cs;++r){t(e.c[r]);var i=c(e.c[r].er);a(e,r,n),n=h(i,r,n)}!function(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}(e),o(e)}else o(e)}(d),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}(e);for(var r=0;r<e.cs;r++)t(e.c[r],n)}(d,0),function t(e,n,r){r?n.y=e.x:n.x=e.x,e.c.forEach(function(e,i){t(e,n.children[i],r)})}(d,t,i),r(t,i),t}},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var i=n(1),o=n(9),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),e.prototype.execute=function(){return this.rootNode.width=0,a(this.rootNode,this.options,o)},e}(i),u={};t.exports=function(t,e){return e=s.assign({},u,e),new l(t,e).execute()}},function(t,e,n){var r=n(0);var i={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},i,e);var n,o=0;var a=function t(e){if(!e)return null;e.width=0,e.depth&&e.depth>o&&(o=e.depth);var n=e.children,r=n.length,i=new function(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}(e.height,[]);return n.forEach(function(e,n){var o=t(e);i.children.push(o),0===n&&(i.leftChild=o),n===r-1&&(i.rightChild=o)}),i.originNode=e,i.isLeaf=e.isLeaf(),i}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=o;else{var n=e.children.map(function(e){return t(e)}),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(a),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach(function(e){t(e)}),r.y=(r.leftChild.y+r.rightChild.y)/2)}(a),function t(e,n,r){r?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach(function(e,i){t(e,n.children[i],r)})}(a,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var i=n(1),o=n(11),a=n(4),s=n(0),l=["LR","RL","H"],u=l[0],c=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,i=t.dropCap,s=void 0===i||i,c=t.direction,h=void 0===c?u:c,d=t.align;if(h&&-1===l.indexOf(h))throw new TypeError("Invalid direction: "+h);if(h===l[0])o(e,r,s,d);else if(h===l[1])o(e,r,s,d),e.right2left();else if(h===l[2]){var f=a(e,t),p=f.left,g=f.right;o(p,r,s,d),p.right2left(),o(g,r,s,d);var v=p.getBoundingBox();g.translate(v.width,0),e.x=g.x-e.width/2}return e},e}(i),h={};t.exports=function(t,e){return e=s.assign({},h,e),new c(t,e).execute()}},function(t,e,n){var r=n(0);t.exports=function(t,e,n,i){var o=null;t.eachNode(function(t){!function(t,e,n,i,o){var a=("function"==typeof n?n(t):n)*t.depth;if(!i)try{if(t.id===t.parent.children[0].id)return t.x+=a,void(t.y=e?e.y:0)}catch(t){}if(t.x+=a,e){if(t.y=e.y+r.getHeight(e,t,o),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,l=s.y+r.getHeight(s,t,o);t.y=l>t.y?l:t.y}}else t.y=0}(t,o,e,n,i),o=t})}},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var i=n(1),o=n(13),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),e.prototype.execute=function(){return a(this.rootNode,this.options,o)},e}(i),u={};t.exports=function(t,e){return e=s.assign({},u,e),new l(t,e).execute()}},function(t,e,n){var r=n(0);var i={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},i,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),t.parent=null,function t(e,n){var r=0;return e.children.length?e.children.forEach(function(e){r+=t(e,n)}):r=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,r)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i<n;i++){var o=e[i];o.startY=e[i-1].startY+e[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}}),function t(e){var n=e.children,r=n.length;if(r){n.forEach(function(e){t(e)});var i=n[0],o=n[r-1],a=o.y-i.y+o.height,s=0;if(n.forEach(function(t){s+=t.totalHeight}),a>e.height)e.y=i.y+a/2-e.height/2;else if(1!==n.length||e.height>s){var l=e.y+(e.height-a)/2-i.y;n.forEach(function(t){t.translate(0,l)})}else e.y=(i.y+i.height/2+o.y+o.height/2)/2-e.height/2}}(t)}}])},t.exports=r()},PzxK:function(t,e,n){var r=n("D2L2"),i=n("sB3e"),o=n("ax3d")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},Q9R3:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("JHWa")),o=n("+ZTV");e.default={layout:i.default,util:{time:o.time,notime:o.notime}}},QHhf:function(t,e,n){"use strict";var r=n("1b2O"),i=n("+N5+").isSpace;function o(t,e,n,r){var o,a,s,l,u,c,h,d;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,s=l=c=h=0,u=(a=this.src).length;l<u;l++){if(o=a.charCodeAt(l),!d){if(i(o)){c++,9===o?h+=4-h%4:h++;continue}d=!0}10!==o&&l!==u-1||(10!==o&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(h),this.bsCount.push(0),d=!1,c=0,h=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(t,e,n){var i=new r(t,e,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},o.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},o.prototype.skipSpaces=function(t){for(var e,n=this.src.length;t<n&&(e=this.src.charCodeAt(t),i(e));t++);return t},o.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;for(;t>e;)if(!i(this.src.charCodeAt(--t)))return t+1;return t},o.prototype.skipChars=function(t,e){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===e;t++);return t},o.prototype.skipCharsBack=function(t,e,n){if(t<=n)return t;for(;t>n;)if(e!==this.src.charCodeAt(--t))return t+1;return t},o.prototype.getLines=function(t,e,n,r){var o,a,s,l,u,c,h,d=t;if(t>=e)return"";for(c=new Array(e-t),o=0;d<e;d++,o++){for(a=0,h=l=this.bMarks[d],u=d+1<e||r?this.eMarks[d]+1:this.eMarks[d];l<u&&a<n;){if(s=this.src.charCodeAt(l),i(s))9===s?a+=4-(a+this.bsCount[d])%4:a++;else{if(!(l-h<this.tShift[d]))break;a++}l++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(l,u):this.src.slice(l,u)}return c.join("")},o.prototype.Token=r,t.exports=o},QRG4:function(t,e,n){var r=n("UuGF"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"QWe/":function(t,e,n){n("crlp")("observable")},QgkH:function(t,e,n){"use strict";e.Any=n("Mur9"),e.Cc=n("DNGd"),e.Cf=n("O7JS"),e.P=n("TUzn"),e.Z=n("gxby")},R4wc:function(t,e,n){var r=n("kM2E");r(r.S+r.F,"Object",{assign:n("To3L")})},R9M2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},RDoK:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=116)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},116:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};r._withStripped=!0;var i=n(4),o={name:"ElRadio",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick(function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)})}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/radio/src/radio.vue";var l=s.exports;l.install=function(t){t.component(l.name,l)};e.default=l},4:function(t,e){t.exports=n("fPll")}})},RPLV:function(t,e,n){var r=n("7KvD").document;t.exports=r&&r.documentElement},"RY/4":function(t,e,n){var r=n("R9M2"),i=n("dSzd")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},Rh28:function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},RjVl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("fnHN"),i=function(){function t(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance}return t.prototype.layout=function(){var t=this.dimension,e=this.distances,n=this.linkDistance;try{var i=r.Matrix.mul(r.Matrix.pow(e,2),-.5),o=i.mean("row"),a=i.mean("column"),s=i.mean();i.add(s).subRowVector(o).subColumnVector(a);var l=new r.SingularValueDecomposition(i),u=r.Matrix.sqrt(l.diagonalMatrix).diagonal();return l.leftSingularVectors.toJSON().map(function(e){return r.Matrix.mul([e],[u]).toJSON()[0].splice(0,t)})}catch(t){for(var c=[],h=0;h<e.length;h++){var d=Math.random()*n,f=Math.random()*n;c.push([d,f])}return c}},t}();e.default=i},Rl2i:function(t,e){t.exports=function(t){if(!t)return!1;var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},Rq7w:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CircularLayout=void 0;var o=n("w9t0"),a=n("ZE1E");function s(t,e){var n=t.degree,r=e.degree;return n<r?-1:n>r?1:0}var l=function(t){function e(e){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t,e=this.nodes,n=this.edges,r=e.length;if(0!==r){this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),this.center||(this.center=[this.width/2,this.height/2]);var i=this.center;if(1===r)return e[0].x=i[0],e[0].y=i[1],void(this.onLayoutEnd&&this.onLayoutEnd());var o=this.radius,s=this.startRadius,l=this.endRadius,u=this.divisions,c=this.startAngle,h=this.endAngle,d=this.angleRatio,f=this.ordering,p=this.clockwise,g=this.nodeSpacing,v=this.nodeSize,m=(h-c)/r,y={};e.forEach(function(t,e){y[t.id]=e}),this.nodeMap=y;var b=(0,a.getDegree)(e.length,y,n);if(this.degrees=b,g){var _=(0,a.getFuncByUnknownType)(10,g),x=(0,a.getFuncByUnknownType)(10,v),w=-1/0;e.forEach(function(t){var e=x(t);w<e&&(w=e)});var S=0;e.forEach(function(t,e){S+=0===e?w||10:(_(t)||0)+(w||10)}),o=S/(2*Math.PI)}else o||s||l?!s&&l?s=l:s&&!l&&(l=s):o=this.height>this.width?this.width/2:this.height/2;var C=m*d,k=[];k="topology"===f?this.topologyOrdering():"topology-directed"===f?this.topologyOrdering(!0):"degree"===f?this.degreeOrdering():e;for(var O=Math.ceil(r/u),M=0;M<r;++M){var E=o;E||null===s||null===l||(E=s+M*(l-s)/(r-1)),E||(E=10+100*M/(r-1));var T=c+M%O*C+2*Math.PI/u*Math.floor(M/O);p||(T=h-M%O*C-2*Math.PI/u*Math.floor(M/O)),k[M].x=i[0]+Math.cos(T)*E,k[M].y=i[1]+Math.sin(T)*E,k[M].weight=b[M].all}return null===(t=this.onLayoutEnd)||void 0===t||t.call(this),{nodes:k,edges:this.edges}}this.onLayoutEnd&&this.onLayoutEnd()},e.prototype.topologyOrdering=function(t){void 0===t&&(t=!1);var e=this.degrees,n=this.edges,r=this.nodes,i=(0,a.clone)(r),o=this.nodeMap,s=[i[0]],l=[r[0]],u=[],c=r.length;u[0]=!0,function(t,e,n,r){t.forEach(function(e,n){t[n].children=[],t[n].parent=[]}),r?e.forEach(function(e){var r=(0,a.getEdgeTerminal)(e,"source"),i=(0,a.getEdgeTerminal)(e,"target"),o=0;r&&(o=n[r]);var s=0;i&&(s=n[i]);var l=t[o].children,u=t[s].parent;l.push(t[s].id),u.push(t[o].id)}):e.forEach(function(e){var r=(0,a.getEdgeTerminal)(e,"source"),i=(0,a.getEdgeTerminal)(e,"target"),o=0;r&&(o=n[r]);var s=0;i&&(s=n[i]);var l=t[o].children,u=t[s].children;l.push(t[s].id),u.push(t[o].id)})}(i,n,o,t);var h=0;return i.forEach(function(t,d){if(0!==d)if(d!==c-1&&e[d].all===e[d+1].all&&!function(t,e,n){for(var r=n.length,i=0;i<r;i++){var o=(0,a.getEdgeTerminal)(n[i],"source"),s=(0,a.getEdgeTerminal)(n[i],"target");if(t.id===o&&e.id===s||e.id===o&&t.id===s)return!0}return!1}(s[h],t,n)||u[d]){for(var f=s[h].children,p=!1,g=0;g<f.length;g++){var v=o[f[g]];if(e[v].all===e[d].all&&!u[v]){s.push(i[v]),l.push(r[o[i[v].id]]),u[v]=!0,p=!0;break}}for(var m=0;!p&&(u[m]||(s.push(i[m]),l.push(r[o[i[m].id]]),u[m]=!0,p=!0),++m!==c););}else s.push(t),l.push(r[o[t.id]]),u[d]=!0,h++}),l},e.prototype.degreeOrdering=function(){var t=this.nodes,e=[],n=this.degrees;return t.forEach(function(t,r){t.degree=n[r].all,e.push(t)}),e.sort(s),e},e.prototype.getType=function(){return"circular"},e}(o.Base);e.CircularLayout=l},Rrel:function(t,e,n){var r=n("TcQ7"),i=n("n0T6").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},"S/pY":function(t,e,n){"use strict";var r=n("+N5+").isWhiteSpace,i=n("+N5+").isPunctChar,o=n("+N5+").isMdAsciiPunct,a=/['"]/,s=/['"]/g,l="’";function u(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function c(t,e){var n,a,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C,k,O,M,E;for(O=[],n=0;n<t.length;n++){for(a=t[n],p=t[n].level,C=O.length-1;C>=0&&!(O[C].level<=p);C--);if(O.length=C+1,"text"===a.type){d=0,f=(c=a.content).length;t:for(;d<f&&(s.lastIndex=d,h=s.exec(c));){if(w=S=!0,d=h.index+1,k="'"===h[0],v=32,h.index-1>=0)v=c.charCodeAt(h.index-1);else for(C=n-1;C>=0&&("softbreak"!==t[C].type&&"hardbreak"!==t[C].type);C--)if(t[C].content){v=t[C].content.charCodeAt(t[C].content.length-1);break}if(m=32,d<f)m=c.charCodeAt(d);else for(C=n+1;C<t.length&&("softbreak"!==t[C].type&&"hardbreak"!==t[C].type);C++)if(t[C].content){m=t[C].content.charCodeAt(0);break}if(y=o(v)||i(String.fromCharCode(v)),b=o(m)||i(String.fromCharCode(m)),_=r(v),(x=r(m))?w=!1:b&&(_||y||(w=!1)),_?S=!1:y&&(x||b||(S=!1)),34===m&&'"'===h[0]&&v>=48&&v<=57&&(S=w=!1),w&&S&&(w=y,S=b),w||S){if(S)for(C=O.length-1;C>=0&&(g=O[C],!(O[C].level<p));C--)if(g.single===k&&O[C].level===p){g=O[C],k?(M=e.md.options.quotes[2],E=e.md.options.quotes[3]):(M=e.md.options.quotes[0],E=e.md.options.quotes[1]),a.content=u(a.content,h.index,E),t[g.token].content=u(t[g.token].content,g.pos,M),d+=E.length-1,g.token===n&&(d+=M.length-1),f=(c=a.content).length,O.length=C;continue t}w?O.push({token:n,pos:h.index,single:k,level:p}):S&&k&&(a.content=u(a.content,h.index,l))}else k&&(a.content=u(a.content,h.index,l))}}}}t.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&a.test(t.tokens[e].content)&&c(t.tokens[e].children,t)}},S7HD:function(t,e,n){"use strict";n("3BVV"),n("i6H2");var r=n("vrXp");n.d(e,"Canvas",function(){return r.a});n("SodV"),n("dAFD")},S7p9:function(t,e){t.exports=function(t){return function(e){return t(e)}}},S82l:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},SEFl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=i,e.clone=function(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=a,e.divide=s,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=l,e.squaredDistance=u,e.length=c,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;i>0&&(i=1/Math.sqrt(i));return t[0]=e[0]*i,t[1]=e[1]*i,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))},n.d(e,"len",function(){return f}),n.d(e,"sub",function(){return p}),n.d(e,"mul",function(){return g}),n.d(e,"div",function(){return v}),n.d(e,"dist",function(){return m}),n.d(e,"sqrDist",function(){return y}),n.d(e,"sqrLen",function(){return b}),n.d(e,"forEach",function(){return _});var r=n("NVY2");function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function s(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function c(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function h(t){var e=t[0],n=t[1];return e*e+n*n}var d,f=c,p=o,g=a,v=s,m=l,y=u,b=h,_=(d=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)d[0]=t[a],d[1]=t[a+1],i(d,d,o),t[a]=d[0],t[a+1]=d[1];return t})},SFHI:function(t,e,n){"use strict";var r=n("BldQ"),i=[["table",n("efRz"),["paragraph","reference"]],["code",n("UDBF")],["fence",n("i0+k"),["paragraph","reference","blockquote","list"]],["blockquote",n("M+GW"),["paragraph","reference","blockquote","list"]],["hr",n("tNJR"),["paragraph","reference","blockquote","list"]],["list",n("aBKc"),["paragraph","reference","blockquote"]],["reference",n("u8ag")],["html_block",n("4aIT"),["paragraph","reference","blockquote"]],["heading",n("pgii"),["paragraph","reference","blockquote"]],["lheading",n("xyVx")],["paragraph",n("FCB1")]];function o(){this.ruler=new r;for(var t=0;t<i.length;t++)this.ruler.push(i[t][0],i[t][1],{alt:(i[t][2]||[]).slice()})}o.prototype.tokenize=function(t,e,n){for(var r,i,o,a=this.ruler.getRules(""),s=a.length,l=e,u=!1,c=t.md.options.maxNesting;l<n&&(t.line=l=t.skipEmptyLines(l),!(l>=n))&&!(t.sCount[l]<t.blkIndent);){if(t.level>=c){t.line=n;break}for(o=t.line,i=0;i<s;i++)if(r=a[i](t,l,n,!1)){if(o>=t.line)throw new Error("block rule didn't increment state.line");break}if(!r)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),(l=t.line)<n&&t.isEmpty(l)&&(u=!0,l++,t.line=l)}},o.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n("QHhf"),t.exports=o},SLDG:function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},STLj:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=53)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},3:function(t,e){t.exports=n("ylDJ")},33:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(3),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":s(t))&&"object"===(void 0===e?"undefined":s(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some(function(t){return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)})}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(a.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=n(0),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";e.a=c.exports},4:function(t,e){t.exports=n("fPll")},53:function(t,e,n){"use strict";n.r(e);var r=n(33);r.a.install=function(t){t.component(r.a.name,r.a)},e.default=r.a}})},SVAo:function(t,e,n){"use strict";var r=n("TToO"),i=n("oEtn"),o=n("BuFP"),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.i)(r,e),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(i.a);e.a=a},SXzR:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=74)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},2:function(t,e){t.exports=n("2kvA")},3:function(t,e){t.exports=n("ylDJ")},5:function(t,e){t.exports=n("fKx3")},7:function(t,e){t.exports=n("7+uW")},74:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)};r._withStripped=!0;var i=n(5),o=n.n(i),a=n(2),s=n(3),l={name:"ElPopover",mixins:[o.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(s.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(a.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a.on)(e,"focusin",function(){t.handleFocus();var n=e.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(a.on)(n,"focusin",this.handleFocus),Object(a.on)(e,"focusout",this.handleBlur),Object(a.on)(n,"focusout",this.handleBlur)),Object(a.on)(e,"keydown",this.handleKeydown),Object(a.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(a.on)(e,"click",this.doToggle),Object(a.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a.on)(e,"mouseenter",this.handleMouseEnter),Object(a.on)(n,"mouseenter",this.handleMouseEnter),Object(a.on)(e,"mouseleave",this.handleMouseLeave),Object(a.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(a.on)(e,"focusin",this.doShow),Object(a.on)(e,"focusout",this.doClose)):(Object(a.on)(e,"mousedown",this.doShow),Object(a.on)(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(a.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(function(){t.showPopper=!0},this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(function(){t.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(a.off)(t,"click",this.doToggle),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"focusin",this.doShow),Object(a.off)(t,"focusout",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mouseleave",this.handleMouseLeave),Object(a.off)(t,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick)}},u=n(0),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/popover/src/main.vue";var h=c.exports,d=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},f={bind:function(t,e,n){d(t,e,n)},inserted:function(t,e,n){d(t,e,n)}},p=n(7);n.n(p).a.directive("popover",f),h.install=function(t){t.directive("popover",f),t.component(h.name,h)},h.directive=f;e.default=h}})},SfB7:function(t,e,n){t.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},SldL:function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",u="object"==typeof t,c=e.regeneratorRuntime;if(c)u&&(t.exports=c);else{(c=e.regeneratorRuntime=u?t.exports:{}).wrap=_;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(I([])));y&&y!==r&&i.call(y,a)&&(v=y);var b=C.prototype=w.prototype=Object.create(v);S.prototype=b.constructor=C,C.constructor=S,C[l]=S.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(b),t},c.awrap=function(t){return{__await:t}},k(O.prototype),O.prototype[s]=function(){return this},c.AsyncIterator=O,c.async=function(t,e,n,r){var i=new O(_(t,e,n,r));return c.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},k(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function _(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(t,e,n){var r=h;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=x(t,e,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function S(){}function C(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,a){var s=x(t[n],t,r);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){l.value=t,o(l)},a)}a(s.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function M(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,M(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:D}}function D(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},SodV:function(t,e,n){"use strict";var r=n("TToO"),i=n("i6H2"),o=n("3BVV"),a=n("gosJ"),s=n("IgWN"),l=n("PDVq"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onCanvasChange=function(t){Object(a.h)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s.each)(t,function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))});var r=null;if(e.length){var i=Object(s.min)(e),o=Object(s.max)(e),a=Object(s.min)(n),u=Object(s.max)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:u,width:o-i,height:u-a};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",Object(l.f)(r,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Object(a.a)(t,this),this._applyClip(t,this.getClip()),Object(a.d)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.a=u},SvnF:function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){return function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(o,function(e,r,o,a){var s=void 0;return"{"===t[a-1]&&"}"===t[a+e.length]?o:null===(s=(0,i.hasOwn)(n,o)?n[o]:null)||void 0===s?"":s})}};var i=n("ylDJ"),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},TEXG:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("+ZTV"),i=function(t,e){var n=e.v,i=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,l=t.edge(e),u=l.labelRank;if(a!==i+1){t.removeEdgeObj(e);var c,h,d,f=t.graph();for(d=0,++i;i<a;++d,++i)l.points=[],h={edgeLabel:l,width:0,height:0,edgeObj:e,rank:i},c=(0,r.addDummyNode)(t,"edge",h,"_d"),i===u&&(h.width=l.width,h.height=l.height,h.dummy="edge-label",h.labelpos=l.labelpos),t.setEdge(n,c,{weight:l.weight},s),0===d&&(f.dummyChains||(f.dummyChains=[]),f.dummyChains.push(c)),n=c;t.setEdge(n,o,{weight:l.weight},s)}};e.default={run:function(t){t.graph().dummyChains=[],t.edges().forEach(function(e){return i(t,e)})},undo:function(t){var e;null===(e=t.graph().dummyChains)||void 0===e||e.forEach(function(e){var n,r=t.node(e),i=r.edgeLabel;r.edgeObj&&t.setEdgeObj(r.edgeObj,i);for(var o=e;r.dummy;)n=t.successors(o)[0],t.removeNode(o),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),o=n,r=t.node(o)})}}},TMZu:function(t,e,n){"use strict";t.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},TNV1:function(t,e,n){"use strict";var r=n("cGG2");t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},TQ3y:function(t,e,n){var r=n("blYT"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},TQfK:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=1200,i=800,o=1e7,a=10,s=3.141592653589793,l=1.5707963267948966,u=.375*s,c=.625*s,h=new Map,d=10,f=10,p=.8,g=.1,v=.5;function m(t,e){var n=(h.get(t.id)||[]).find(function(t){return t.source===e.id||t.target===e.id}),r=t.size[0]*t.size[1],i=e.size[0]*e.size[1],s=r>i?e:t,d=r>i?t:e,f=s.x-s.size[0]/2,p=s.y-s.size[1]/2,g=s.x+s.size[0]/2,v=s.y+s.size[1]/2,m=d.x-d.size[0]/2,y=d.y-d.size[1]/2,b=d.x+d.size[0]/2,_=d.y+d.size[1]/2,x=s.x,w=s.y,S=d.x,C=d.y,k=0,O=0;if(g>=m&&b>=f&&v>=y&&_>=p){0===(O=Math.sqrt(Math.pow(S-x,2)+Math.pow(C-w,2)))&&(O=1e-7),k=1*a/O*100+((g<b?g:b)-(f>m?f:m))*((v<_?v:_)-(p>y?p:y)),k*=o}else{var M=!1,E=function(t,e,n){var r=t.x-t.size[0]/2,i=t.y-t.size[1]/2,o=t.x+t.size[0]/2,a=t.y+t.size[1]/2,s=e.x-e.size[0]/2,h=e.y-e.size[1]/2,d=e.x+e.size[0]/2,f=e.y+e.size[1]/2,p=t.x,g=t.y,v=e.x,m=e.y,y=v-p,b=Math.atan2(y,m-g),_=0,x=0,w=0,S=0;b>l?(x=i-f,_=s-o,w=parseFloat(x?(x/Math.cos(b)).toFixed(2):_.toFixed(2)),S=parseFloat(_?(_/Math.sin(b)).toFixed(2):x.toFixed(2))):w=S=0<b&&b<=l?(x=h-a)>(_=s-o)?parseFloat(x?(x/Math.cos(b)).toFixed(2):_.toFixed(2)):parseFloat(_?(_/Math.sin(b)).toFixed(2):x.toFixed(2)):b<-l?(x=i-f)>(_=-(d-r))?parseFloat(x?(x/Math.cos(b)).toFixed(2):_.toFixed(2)):parseFloat(_?(_/Math.sin(b)).toFixed(2):x.toFixed(2)):(x=h-a)>(_=Math.abs(y)>(o-r)/2?r-d:y)?parseFloat(x?(x/Math.cos(b)).toFixed(2):_.toFixed(2)):parseFloat(_&&0!==b?(_/Math.sin(b)).toFixed(2):x.toFixed(2));var C=parseFloat(b.toFixed(2)),k=n;return n&&(k=u<C&&C<c),{distance:Math.abs(w<S?w:S),isHoriz:k}}(s,d,M);O=E.distance,M=E.isHoriz,O<=a?k+=0!==O?n?a+1*o/O:a+o*a/O:o:(k+=O,n&&(k+=O*O))}return k}function y(t){for(var e=0,n=0;n<t.length;n++){var o=t[n];(o.x<0||o.y<0||o.x>r||o.y>i)&&(e+=1e12);for(var a=n+1;a<t.length;a++)e+=m(o,t[a])}return e}function b(t,e,n,r){var i=new Map;n.forEach(function(t,e){i.set(t.id,t)});var o=[];(r.filter(function(e){return e.source===t.id||e.target===t.id})||[]).forEach(function(e){var n=e.source===t.id?e.target:e.source,r=i.get(n);r&&o.push(r)});for(var a=!0,s=0;s<o.length;s++){var l=o[s],u=180*Math.atan((t.y-l.y)/(l.x-t.y)),c=180*Math.atan((e.y-l.y)/(l.x-e.y));if((u<30||u>150)&&!(c<30||c>150)||u*c<0){a=!1;break}if(u>70&&u<110&&!(c>70&&c<110)||u*c<0){a=!1;break}if((l.x-t.x)*(l.x-e.x)<0){a=!1;break}if((l.y-t.y)*(l.y-e.y)<0){a=!1;break}}return a}function _(t,e){for(var n=!1,r=1*d,i=1*f,o=[r,-r,0,0],a=[0,0,i,-i],s=0;s<t.length;++s)for(var l=t[s],u=x(l,t),c=0;c<o.length;c++){if(b(l,{x:l.x+o[c],y:l.y+a[c]},t,e)){l.x+=o[c],l.y+=a[c];var h=x(l,t),m=Math.random();h<u?(u=h,n=!0):m<p&&m>g?(u=h,n=!0):(l.x-=o[c],l.y-=a[c])}}return p>g&&(p*=v),n?y(t):0}function x(t,e){var n=0;(t.x<0||t.y<0||t.x+t.size[0]+20>r||t.y+t.size[1]+20>i)&&(n+=1e12);for(var o=0;o<e.length;++o)t.id!==e[o].id&&(n+=m(t,e[o]));return n}e.default=function(t,e){if(0===t.length)return{nodes:t,edges:e};t.forEach(function(t){var n=e.filter(function(e){return e.source===t.id||e.target===t.id});h.set(t,n)}),t.sort(function(t,e){var n,r;return(null===(n=h.get(t.id))||void 0===n?void 0:n.length)-(null===(r=h.get(e.id))||void 0===r?void 0:r.length)});for(var n=y(t),r=20,i=1,o=0,a=0;r>0&&!(++a>=50);){var s=_(t,e);0!==s&&(o=s),i=o-n,n=o,0===i?--r:r=20}return t.forEach(function(t){t.x=t.x-t.size[0]/2,t.y=t.y-t.size[1]/2}),{nodes:t,edges:e}}},TQvf:function(t,e,n){
- /*!
- * clipboard.js v2.0.10
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */
- var r;r=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return _}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var c=function(t){var e=l()(t);return u("cut"),e};var h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";if("string"==typeof t){var r=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(r),n=l()(r),u("copy"),r.remove()}else n=l()(t),u("copy");return n};function d(t){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==d(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?h(o,{container:r}):i?"cut"===n?c(i):h(i,{container:r}):void 0};function p(t){"@babel/helpers - typeof";return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(s,i());var e,n,r,o=m(s);function s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return e=s,r=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(t,e)}},{key:"cut",value:function(t){return c(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}],(n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=f({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&g(e.prototype,n),r&&g(e,r),s}()},828:function(t){var e=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,n){for(;t&&t.nodeType!==e;){if("function"==typeof t.matches&&t.matches(n))return t;t=t.parentNode}}},438:function(t,e,n){var r=n(828);function i(t,e,n,i,o){var a=function(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}t.exports=function(t,e,n,r,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,r,o)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}(t,e,n);if(r.string(t))return function(t,e,n){return i(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,a=r.length;o<a;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=r()},TToO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.d(e,"__assign",function(){return i}),e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},e.__decorate=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},e.__generator=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},n.d(e,"__createBinding",function(){return o}),e.__exportStar=function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)},e.__values=a,e.__read=s,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},e.__spreadArray=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)},e.__await=l,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||s(t,e)})})}function s(t,e){try{(n=i[t](e)).value instanceof l?Promise.resolve(n.value.v).then(u,c):h(o[0][2],n)}catch(t){h(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:l(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){e=t[n](e),function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,e.done,e.value)})}}},e.__makeTemplateObject=function(t,e){Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e;return t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return u(e,t),e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var o=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(t){return this instanceof l?(this.v=t,this):new l(t)}var u=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}},TUzn:function(t,e){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},Tb0P:function(t,e,n){"use strict";e.b=function(t,e,n){var i=1;Object(r.h)(t)&&(i=t.split("\n").length);if(i>1){var o=function(t,e){return e?e-t:.14*t}(e,n);return e*i+o*(i-1)}return e},e.c=function(t,e){var n=Object(i.a)(),o=0;if(Object(r.e)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.h)(t)&&t.includes("\n")){var a=t.split("\n");Object(r.a)(a,function(t){var e=n.measureText(t).width;o<e&&(o=e)})}else o=n.measureText(t).width;return n.restore(),o},e.a=function(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,o=t.fontVariant;return[i,o,r,e+"px",n].join(" ").trim()};var r=n("BuFP"),i=n("cOOB")},TcQ7:function(t,e,n){var r=n("MU5D"),i=n("52gC");t.exports=function(t){return r(i(t))}},TilA:function(t,e,n){"use strict";var r={};function i(t,e,n){var o,a,s,l,u,c="";for("string"!=typeof e&&(n=e,e=i.defaultChars),void 0===n&&(n=!0),u=function(t){var e,n,i=r[t];if(i)return i;for(i=r[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)i[t.charCodeAt(e)]=t[e];return i}(e),o=0,a=t.length;o<a;o++)if(s=t.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3)))c+=t.slice(o,o+3),o+=2;else if(s<128)c+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=t.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(t[o]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",t.exports=i},TmV0:function(t,e,n){n("fZOM"),t.exports=n("FeBl").Object.values},TnYd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"catmullRomToBezier",function(){return l}),n.d(e,"fillPath",function(){return T}),n.d(e,"fillPathByDiff",function(){return D}),n.d(e,"formatPath",function(){return j}),n.d(e,"intersection",function(){return O}),n.d(e,"parsePathArray",function(){return v}),n.d(e,"parsePathString",function(){return s}),n.d(e,"pathToAbsolute",function(){return c}),n.d(e,"pathToCurve",function(){return p}),n.d(e,"rectPath",function(){return x});var r=n("IgWN"),i="\t\n\v\f\r \u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(Object(r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,function(r,i,o){var s=[],l=i.toLowerCase();if(o.replace(a,function(t,e){e&&s.push(+e)}),"m"===l&&s.length>2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t}),n},l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},u=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),l=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,h=0;"M"===t[0][0]&&(a=i=+t[0][1],c=o=+t[0][2],h++,r[0]=["M",i,o]);for(var d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,p=void 0,g=h,v=t.length;g<v;g++){if(r.push(f=[]),(e=(p=t[g])[0])!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+i,f[7]=+p[7]+o;break;case"V":f[1]=+p[1]+o;break;case"H":f[1]=+p[1]+i;break;case"R":for(var m=2,y=(n=[i,o].concat(p.slice(1))).length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+o;r.pop(),r=r.concat(l(n,d));break;case"O":r.pop(),(n=u(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(u(i,o,p[1],p[2],p[3])),f=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+p[1]+i,c=+p[2]+o;break;default:for(m=1,y=p.length;m<y;m++)f[m]=+p[m]+(m%2?i:o)}else if("R"===e)n=[i,o].concat(p.slice(1)),r.pop(),r=r.concat(l(n,d)),f=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),(n=u(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(u(i,o,p[1],p[2],p[3])),f=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,_=p.length;b<_;b++)f[b]=p[b];if("O"!==(e=e.toUpperCase()))switch(f[0]){case"Z":i=+a,o=+c;break;case"H":i=f[1];break;case"V":o=f[1];break;case"M":a=f[f.length-2],c=f[f.length-1];break;default:i=f[f.length-2],o=f[f.length-1]}}return r},h=function(t,e,n,r){return[t,e,n,r,n,r]},d=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},f=function(t,e,n,r,i,o,a,s,l,u){n===r&&(n+=1);var c,h,d,p,g,v=120*Math.PI/180,m=Math.PI/180*(+i||0),y=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(u)h=u[0],d=u[1],p=u[2],g=u[3];else{t=(c=b(t,e,-m)).x,e=c.y,s=(c=b(s,l,-m)).x,l=c.y,t===s&&e===l&&(s+=1,l+=1);var _=(t-s)/2,x=(e-l)/2,w=_*_/(n*n)+x*x/(r*r);w>1&&(n*=w=Math.sqrt(w),r*=w);var S=n*n,C=r*r,k=(o===a?-1:1)*Math.sqrt(Math.abs((S*C-S*x*x-C*_*_)/(S*x*x+C*_*_)));p=k*n*x/r+(t+s)/2,g=k*-r*_/n+(e+l)/2,h=Math.asin(((e-g)/r).toFixed(9)),d=Math.asin(((l-g)/r).toFixed(9)),h=t<p?Math.PI-h:h,d=s<p?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&h>d&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var O=d-h;if(Math.abs(O)>v){var M=d,E=s,T=l;d=h+v*(a&&d>h?1:-1),s=p+n*Math.cos(d),l=g+r*Math.sin(d),y=f(s,l,n,r,i,0,a,E,T,[d,M,p,g])}O=d-h;var A=Math.cos(h),I=Math.sin(h),D=Math.cos(d),P=Math.sin(d),L=Math.tan(O/4),j=4/3*n*L,N=4/3*r*L,R=[t,e],B=[t+j*I,e-N*A],F=[s+j*P,l-N*D],z=[s,l];if(B[0]=2*R[0]-B[0],B[1]=2*R[1]-B[1],u)return[B,F,z].concat(y);for(var V=[],$=0,G=(y=[B,F,z].concat(y).join().split(",")).length;$<G;$++)V[$]=$%2?b(y[$-1],y[$],m).y:b(y[$],y[$+1],m).x;return V},p=function(t,e){var n,r=c(t),i=e&&c(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",p="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(f.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(d(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(d(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(u=r[y][0]),"C"!==u&&(s[y]=u,y&&(p=s[y-1])),r[y]=g(r[y],o,p),"A"!==s[y]&&"C"===u&&(s[y]="C"),v(r,y),i&&(i[y]&&(u=i[y][0]),"C"!==u&&(l[y]=u,y&&(p=l[y-1])),i[y]=g(i[y],a,p),"A"!==l[y]&&"C"===u&&(l[y]="C"),v(i,y)),m(r,i,o,a,y),m(i,r,a,o,y);var b=r[y],_=i&&i[y],x=b.length,w=i&&_.length;o.x=b[x-2],o.y=b[x-1],o.bx=parseFloat(b[x-4])||o.x,o.by=parseFloat(b[x-3])||o.y,a.bx=i&&(parseFloat(_[w-4])||a.x),a.by=i&&(parseFloat(_[w-3])||a.y),a.x=i&&_[w-2],a.y=i&&_[w-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},y=function(t,e,n,r,i,o,a,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=u*c[f]+u,g=m(p,t,n,i,a),v=m(p,e,r,o,s),y=g*g+v*v;d+=h[f]*Math.sqrt(y)}return u*d},b=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),d=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:u,y:c}}}},_=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},x=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o},w=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:x(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e,n,i,o,a,s,l){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,l]);var u=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&d.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&d.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,_=d.length,x=_;_--;)b=1-(h=d[_]),f[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][x]=t,f[1][x]=e,f[0][x+1]=a,f[1][x+1]=s,f[0].length=f[1].length=x+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}}.apply(null,t);return w(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},C=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(o-2*r+e),v=n+2*l*(i-n)+d*(a-2*i+n),m=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},k=function(t,e,n){if(!function(t,e){return t=w(t),e=w(e),_(e,t.x,t.y)||_(e,t.x2,t.y)||_(e,t.x,t.y2)||_(e,t.x2,t.y2)||_(t,e.x,e.y)||_(t,e.x2,e.y)||_(t,e.x,e.y2)||_(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(S(t),S(e)))return n?0:[];for(var r=~~(y.apply(0,t)/8),i=~~(y.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u<r+1;u++){var c=C.apply(0,t.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=C.apply(0,e.concat(u/i));a.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var h=0;h<i;h++){var d=o[u],f=o[u+1],p=a[h],g=a[h+1],v=Math.abs(f.x-d.x)<.001?"y":"x",m=Math.abs(g.x-p.x)<.001?"y":"x",x=b(d.x,d.y,f.x,f.y,p.x,p.y,g.x,g.y);if(x){if(s[x.x.toFixed(4)]===x.y.toFixed(4))continue;s[x.x.toFixed(4)]=x.y.toFixed(4);var k=d.t+Math.abs((x[v]-d[v])/(f[v]-d[v]))*(f.t-d.t),O=p.t+Math.abs((x[m]-p[m])/(g[m]-p[m]))*(g.t-p.t);k>=0&&k<=1&&O>=0&&O<=1&&(n?l+=1:l.push({x:x.x,y:x.y,t1:k,t2:O}))}}return l},O=function(t,e){return function(t,e,n){var r,i,o,a,s,l,u,c,h,d;t=p(t),e=p(e);for(var f=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=s=m[1],i=l=m[2];else{"C"===m[0]?(r=(h=[r,i].concat(m.slice(1)))[6],i=h[7]):(h=[r,i,r,i,s,l,s,l],r=s,i=l);for(var y=0,b=e.length;y<b;y++){var _=e[y];if("M"===_[0])o=u=_[1],a=c=_[2];else{"C"===_[0]?(o=(d=[o,a].concat(_.slice(1)))[6],a=d[7]):(d=[o,a,o,a,u,c,u,c],o=u,a=c);var x=k(h,d,n);if(n)f+=x;else{for(var w=0,S=x.length;w<S;w++)x[w].segment1=g,x[w].segment2=y,x[w].bez1=h,x[w].bez2=d;f=f.concat(x)}}}}}return f}(t,e)};function M(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var E=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var l=M(o,a/(1-a*s));i.push(l.left),o=l.right}return i.push(o),i.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},T=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var l=o.reduce(function(e,r,i){return i===n?e.concat(t[n]):e.concat(E(t[i],t[i+1],r))},[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},A=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(r.each)(t,function(t,r){if(t!==e[r])return n=!1,!1}),n};function I(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var D=function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=o;u++)s[0][u]={min:u};for(l=1;l<=i;l++)for(n=t[l-1],u=1;u<=o;u++){r=e[u-1],a=A(n,r)?0:1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,d=s[l-1][u-1].min+a;s[l][u]=I(c,h,d)}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=a;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(l=0;l<h;l++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function P(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=L(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var j=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=P(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=P(n,t[r-1],2)}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=P(n,t[r-1],1)}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t}},To3L:function(t,e,n){"use strict";var r=n("+E39"),i=n("lktj"),o=n("1kS7"),a=n("NpIQ"),s=n("sB3e"),l=n("MU5D"),u=Object.assign;t.exports=!u||n("S82l")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,h=o.f,d=a.f;u>c;)for(var f,p=l(arguments[c++]),g=h?i(p).concat(h(p)):i(p),v=g.length,m=0;v>m;)f=g[m++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:u},ToeE:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("KgSl")),i=a(n("9Nhl")),o=n("lSAc");function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e){var n=[],r=t.nodes,a=void 0===r?[]:r,s=t.edges,l=void 0===s?[]:s;if(0===a.length)return n;var u=a[0],c=new Set;c.add(u);var h=new i.default(function(t,n){return e?t.weight-n.weight:0});for((0,o.getEdgesByNodeId)(u.id,l).forEach(function(t){h.insert(t)});!h.isEmpty();){var d=h.delMin(),f=d.source,p=d.target;c.has(f)&&c.has(p)||(n.push(d),c.has(f)||(c.add(f),(0,o.getEdgesByNodeId)(f,l).forEach(function(t){h.insert(t)})),c.has(p)||(c.add(p),(0,o.getEdgesByNodeId)(p,l).forEach(function(t){h.insert(t)})))}return n},l=function(t,e){var n=[],i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a;if(0===o.length)return n;var l=s.map(function(t){return t});e&&l.sort(function(t,e){return t.weight-e.weight});for(var u=new r.default(o.map(function(t){return t.id}));l.length>0;){var c=l.shift(),h=c.source,d=c.target;u.connected(h,d)||(n.push(c),u.union(h,d))}return n},u=function(t,e,n){return n?{prim:s,kruskal:l}[n](t,e):l(t,e)};e.default=u},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},UDBF:function(t,e,n){"use strict";t.exports=function(t,e,n){var r,i,o;if(t.sCount[e]-t.blkIndent<4)return!1;for(i=r=e+1;r<n;)if(t.isEmpty(r))r++;else{if(!(t.sCount[r]-t.blkIndent>=4))break;i=++r}return t.line=i,(o=t.push("code_block","code",0)).content=t.getLines(e,i,4+t.blkIndent,!1)+"\n",o.map=[e,t.line],!0}},UO3t:function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.detectAllUndirectedCycle=e.detectAllDirectedCycle=e.detectAllCycles=e.default=void 0;var i,o=(i=n("0buI"))&&i.__esModule?i:{default:i},a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n("l8+k")),s=n("lSAc");function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=function(t,e,n){var r,i;void 0===n&&(n=!0);for(var o=[],l=0,u=(0,a.default)(t,!1);l<u.length;l++){var c=u[l];if(c.length)for(var h=c[0],d=h.id,f=[h],p=((r={})[d]=h,r),g=((i={})[d]=new Set,i);f.length>0;)for(var v=f.pop(),m=v.id,y=(0,s.getNeighbors)(m,t.edges),b=function(r){var i,a=y[r],s=t.nodes.find(function(t){return t.id===a});if(a===m)o.push(((i={})[a]=v,i));else if(a in g){if(!g[m].has(s)){for(var l=!0,u=[s,v],c=p[m];g[a].size&&!g[a].has(c)&&(u.push(c),c!==p[c.id]);)c=p[c.id];if(u.push(c),e&&n?(l=!1,u.findIndex(function(t){return e.indexOf(t.id)>-1})>-1&&(l=!0)):e&&!n&&u.findIndex(function(t){return e.indexOf(t.id)>-1})>-1&&(l=!1),l){for(var h={},d=1;d<u.length;d+=1)h[u[d-1].id]=u[d];u.length&&(h[u[u.length-1].id]=u[0]),o.push(h)}g[a].add(v)}}else p[a]=v,f.push(s),g[a]=new Set([v])},_=0;_<y.length;_+=1)b(_)}return o};e.detectAllUndirectedCycle=u;var c=function(t,e,n){void 0===n&&(n=!0);for(var r=[],i=new Set,o=[],l=[],u={},c={},h=function t(a,s,c){var h=!1;if(e&&!1===n&&e.indexOf(a.id)>-1)return h;r.push(a),i.add(a);for(var d=c[a.id],f=0;f<d.length;f+=1){if((v=u[d[f]])===s){for(var p={},g=1;g<r.length;g+=1)p[r[g-1].id]=r[g];r.length&&(p[r[r.length-1].id]=r[0]),l.push(p),h=!0}else i.has(v)||t(v,s,c)&&(h=!0)}if(h)!function(t){for(var e=[t];e.length>0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach(function(t){e.push(t)}),o[n.id].clear())}}(a);else for(f=0;f<d.length;f+=1){var v=u[d[f]];o[v.id].has(a)||o[v.id].add(a)}return r.pop(),h},d=t.nodes,f=void 0===d?[]:d,p=0;p<f.length;p+=1){var g=f[p],v=g.id;c[v]=p,u[p]=g}if(e&&n){var m=function(t){var n=e[t];c[f[t].id]=c[n],c[n]=0,u[0]=f.find(function(t){return t.id===n}),u[c[f[t].id]]=f[t]};for(p=0;p<e.length;p++)m(p)}for(var y=function(r){for(var i,o,a=1/0,u=0;u<r.length;u+=1)for(var h=r[u],d=0;d<h.length;d++){var f=c[h[d].id];f<a&&(a=f,o=u)}var p=r[o],g=[];for(u=0;u<p.length;u+=1){var v=p[u];g[v.id]=[];for(var m=0,y=(0,s.getNeighbors)(v.id,t.edges,"target").filter(function(t){return p.map(function(t){return t.id}).indexOf(t)>-1});m<y.length;m++){var b=y[m];b!==v.id||!1===n&&e.indexOf(v.id)>-1?g[v.id].push(c[b]):l.push(((i={})[v.id]=v,i))}}return{component:p,adjList:g,minIdx:a}},b=0;b<f.length;){var _=f.filter(function(t){return c[t.id]>=b}),x=(0,a.detectStrongConnectComponents)({nodes:_,edges:t.edges}).filter(function(t){return t.length>1});if(0===x.length)break;var w=y(x),S=w.minIdx,C=w.adjList,k=w.component;if(!(k.length>1))break;k.forEach(function(t){o[t.id]=new Set});var O=u[S];if(e&&n&&-1===e.indexOf(O.id))return l;h(O,O,C),b=S+1}return l};e.detectAllDirectedCycle=c;e.detectAllCycles=function(t,e,n,r){return void 0===r&&(r=!0),e?c(t,n,r):u(t,n,r)};var h=function(t){var e=null,n=t.nodes,r={},i={},a={},s={};(void 0===n?[]:n).forEach(function(t){i[t.id]=t});for(var l={enter:function(t){var n=t.current,o=t.previous;if(a[n]){e={};for(var s=n,l=o;l!==n;)e[s]=l,s=l,l=r[l];e[s]=l}else a[n]=n,delete i[n],r[n]=o},leave:function(t){var e=t.current;s[e]=e,delete a[e]},allowTraversal:function(t){var n=t.next;return!e&&!s[n]}};Object.keys(i).length;){var u=Object.keys(i)[0];(0,o.default)(t,u,l)}return e};e.default=h},Umca:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var o=n("w9t0"),a=n("ZE1E"),s=new Map;e.registerLayout=function(t,e){if(s.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,a.isObject)(e)){var n=function(t){function n(n){var r,i,o=r=t.call(this)||this,a={},s=Object.assign({},o.getDefaultCfg(),(null===(i=e.getDefaultCfg)||void 0===i?void 0:i.call(e))||{});return Object.assign(a,s,e,n),Object.keys(a).forEach(function(t){var e=a[t];o[t]=e}),r}return i(n,t),n}(o.Base);s.set(t,n)}else s.set(t,e);return s.get(t)};e.unRegisterLayout=function(t){s.has(t)&&s.delete(t)};e.getLayoutByName=function(t){return s.has(t)?s.get(t):null}},UnEC:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},Upny:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.GridLayout=void 0;var o=n("ZE1E"),a=function(t){function e(e){var n=t.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=t.begin,i=e.length;if(0===i)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};if(1===i)return e[0].x=r[0],e[0].y=r[1],t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};var a=t.sortBy,s=t.width,l=t.height,u=t.condense,c=t.preventOverlapPadding,h=t.preventOverlap,d=t.nodeSpacing,f=t.nodeSize,p=[];e.forEach(function(t){p.push(t)});var g={};if(p.forEach(function(t,e){g[t.id]=e}),("degree"===a||!(0,o.isString)(a)||void 0===p[0][a])&&(a="degree",(0,o.isNaN)(e[0].degree))){var v=(0,o.getDegree)(p.length,g,n);p.forEach(function(t,e){t.degree=v[e].all})}p.sort(function(t,e){return e[a]-t[a]}),s||"undefined"==typeof window||(s=window.innerWidth),l||"undefined"==typeof window||(l=window.innerHeight);var m=t.rows,y=null!=t.cols?t.cols:t.columns;if(t.cells=i,null!=m&&null!=y?(t.rows=m,t.cols=y):null!=m&&null==y?(t.rows=m,t.cols=Math.ceil(t.cells/t.rows)):null==m&&null!=y?(t.cols=y,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.rows=Math.max(t.rows,1),t.cols=Math.max(t.cols,1),t.cols*t.rows>t.cells)((_=t.small())-1)*(b=t.large())>=t.cells?t.small(_-1):(b-1)*_>=t.cells&&t.large(b-1);else for(;t.cols*t.rows<t.cells;){var b,_=t.small();((b=t.large())+1)*_>=t.cells?t.large(b+1):t.small(_+1)}if(t.cellWidth=s/t.cols,t.cellHeight=l/t.rows,u&&(t.cellWidth=0,t.cellHeight=0),h||d){var x=(0,o.getFuncByUnknownType)(10,d),w=(0,o.getFuncByUnknownType)(30,f,!1);p.forEach(function(e){e.x&&e.y||(e.x=0,e.y=0);var n,r,i=w(e)||30;(0,o.isArray)(i)?(n=i[0],r=i[1]):(n=i,r=i);var a=void 0!==x?x(e):c,s=n+a,l=r+a;t.cellWidth=Math.max(t.cellWidth,s),t.cellHeight=Math.max(t.cellHeight,l)})}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var S=0;S<p.length;S++){var C=p[S],k=void 0;if(t.position&&(k=t.position(C)),k&&(void 0!==k.row||void 0!==k.col)){var O={row:k.row,col:k.col};if(void 0===O.col)for(O.col=0;t.used(O.row,O.col);)O.col++;else if(void 0===O.row)for(O.row=0;t.used(O.row,O.col);)O.row++;t.id2manPos[C.id]=O,t.use(O.row,O.col)}t.getPos(C)}return t.onLayoutEnd&&t.onLayoutEnd(),{edges:n,nodes:p}},e.prototype.small=function(t){var e,n=this.rows||5,r=this.cols||5;null==t?e=Math.min(n,r):Math.min(n,r)===this.rows?this.rows=t:this.cols=t;return e},e.prototype.large=function(t){var e,n=this.rows||5,r=this.cols||5;null==t?e=Math.max(n,r):Math.max(n,r)===this.rows?this.rows=t:this.cols=t;return e},e.prototype.used=function(t,e){return this.cellUsed["c-".concat(t,"-").concat(e)]||!1},e.prototype.use=function(t,e){this.cellUsed["c-".concat(t,"-").concat(e)]=!0},e.prototype.moveToNextCell=function(){var t=this.cols||5;this.col++,this.col>=t&&(this.col=0,this.row++)},e.prototype.getPos=function(t){var e,n,r=this.begin,i=this.cellWidth,o=this.cellHeight,a=this.id2manPos[t.id];if(a)e=a.col*i+i/2+r[0],n=a.row*o+o/2+r[1];else{for(;this.used(this.row,this.col);)this.moveToNextCell();e=this.col*i+i/2+r[0],n=this.row*o+o/2+r[1],this.use(this.row,this.col),this.moveToNextCell()}t.x=e,t.y=n},e.prototype.getType=function(){return"grid"},e}(n("w9t0").Base);e.GridLayout=a},UuGF:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},UvrK:function(t,e,n){var r=n("kM2E");r(r.P+r.R,"Map",{toJSON:n("m9gC")("Map")})},V3tA:function(t,e,n){n("R4wc"),t.exports=n("FeBl").Object.assign},V9uW:function(t,e,n){"use strict";var r={};function i(t){return+t}function o(t){return t*t}function a(t){return t*(2-t)}function s(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function l(t){return t*t*t}function u(t){return--t*t*t+1}function c(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(r,"easeLinear",function(){return i}),n.d(r,"easeQuad",function(){return s}),n.d(r,"easeQuadIn",function(){return o}),n.d(r,"easeQuadOut",function(){return a}),n.d(r,"easeQuadInOut",function(){return s}),n.d(r,"easeCubic",function(){return c}),n.d(r,"easeCubicIn",function(){return l}),n.d(r,"easeCubicOut",function(){return u}),n.d(r,"easeCubicInOut",function(){return c}),n.d(r,"easePoly",function(){return f}),n.d(r,"easePolyIn",function(){return h}),n.d(r,"easePolyOut",function(){return d}),n.d(r,"easePolyInOut",function(){return f}),n.d(r,"easeSin",function(){return y}),n.d(r,"easeSinIn",function(){return v}),n.d(r,"easeSinOut",function(){return m}),n.d(r,"easeSinInOut",function(){return y}),n.d(r,"easeExp",function(){return w}),n.d(r,"easeExpIn",function(){return _}),n.d(r,"easeExpOut",function(){return x}),n.d(r,"easeExpInOut",function(){return w}),n.d(r,"easeCircle",function(){return k}),n.d(r,"easeCircleIn",function(){return S}),n.d(r,"easeCircleOut",function(){return C}),n.d(r,"easeCircleInOut",function(){return k}),n.d(r,"easeBounce",function(){return R}),n.d(r,"easeBounceIn",function(){return N}),n.d(r,"easeBounceOut",function(){return R}),n.d(r,"easeBounceInOut",function(){return B}),n.d(r,"easeBack",function(){return V}),n.d(r,"easeBackIn",function(){return F}),n.d(r,"easeBackOut",function(){return z}),n.d(r,"easeBackInOut",function(){return V}),n.d(r,"easeElastic",function(){return H}),n.d(r,"easeElasticIn",function(){return G}),n.d(r,"easeElasticOut",function(){return H}),n.d(r,"easeElasticInOut",function(){return W});var h=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),d=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),f=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),p=Math.PI,g=p/2;function v(t){return 1==+t?1:1-Math.cos(t*g)}function m(t){return Math.sin(t*g)}function y(t){return(1-Math.cos(p*t))/2}function b(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function _(t){return b(1-+t)}function x(t){return 1-b(t)}function w(t){return((t*=2)<=1?b(1-t):2-b(t-1))/2}function S(t){return 1-Math.sqrt(1-t*t)}function C(t){return Math.sqrt(1- --t*t)}function k(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var O=4/11,M=6/11,E=8/11,T=.75,A=9/11,I=10/11,D=.9375,P=21/22,L=63/64,j=1/O/O;function N(t){return 1-R(1-t)}function R(t){return(t=+t)<O?j*t*t:t<E?j*(t-=M)*t+T:t<I?j*(t-=A)*t+D:j*(t-=P)*t+L}function B(t){return((t*=2)<=1?1-R(1-t):R(t-1)+1)/2}var F=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),z=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),V=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),$=2*Math.PI,G=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=$);function i(t){return e*b(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*$)},i.period=function(n){return t(e,n)},i}(1,.3),H=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=$);function i(t){return 1-e*b(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*$)},i.period=function(n){return t(e,n)},i}(1,.3),W=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=$);function i(t){return((t=2*t-1)<0?e*b(-t)*Math.sin((r-t)/n):2-e*b(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*$)},i.period=function(n){return t(e,n)},i}(1,.3);e.a=function(t){return U[t.toLowerCase()]||r[t]};var U={}},"VU/8":function(t,e){t.exports=function(t,e,n,r,i,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=r),u){var h=c.functional,d=h?c.render:c.beforeCreate;h?(c._injectStyles=u,c.render=function(t,e){return u.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:a,exports:s,options:c}}},VWzN:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.RandomLayout=void 0;var o=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;return t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),e&&e.forEach(function(e){e.x=.9*(Math.random()-.5)*t.width+n[0],e.y=.9*(Math.random()-.5)*t.height+n[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(n("w9t0").Base);e.RandomLayout=o},Vi3T:function(t,e,n){"use strict";e.__esModule=!0,e.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}}},W1VW:function(t,e,n){"use strict";var r=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,i=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;t.exports=function(t,e){var n,o,a,s,l,u,c=t.pos;if(60!==t.src.charCodeAt(c))return!1;for(l=t.pos,u=t.posMax;;){if(++c>=u)return!1;if(60===(s=t.src.charCodeAt(c)))return!1;if(62===s)break}return n=t.src.slice(l+1,c),i.test(n)?(o=t.md.normalizeLink(n),!!t.md.validateLink(o)&&(e||((a=t.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(n),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=n.length+2,!0)):!!r.test(n)&&(o=t.md.normalizeLink("mailto:"+n),!!t.md.validateLink(o)&&(e||((a=t.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(n),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=n.length+2,!0))}},W2nU:function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=s(d);c=!0;for(var e=u.length;e;){for(l=u,u=[];++h<e;)l&&l[h].run();h=-1,e=u.length}l=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},WCAV:function(t,e,n){"use strict";var r=n("+N5+").normalizeReference,i=n("+N5+").isSpace;t.exports=function(t,e){var n,o,a,s,l,u,c,h,d,f,p,g,v,m="",y=t.pos,b=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(u=t.pos+2,(l=t.md.helpers.parseLinkLabel(t,t.pos+1,!1))<0)return!1;if((c=l+1)<b&&40===t.src.charCodeAt(c)){for(c++;c<b&&(o=t.src.charCodeAt(c),i(o)||10===o);c++);if(c>=b)return!1;for(v=c,(d=t.md.helpers.parseLinkDestination(t.src,c,t.posMax)).ok&&(m=t.md.normalizeLink(d.str),t.md.validateLink(m)?c=d.pos:m=""),v=c;c<b&&(o=t.src.charCodeAt(c),i(o)||10===o);c++);if(d=t.md.helpers.parseLinkTitle(t.src,c,t.posMax),c<b&&v!==c&&d.ok)for(f=d.str,c=d.pos;c<b&&(o=t.src.charCodeAt(c),i(o)||10===o);c++);else f="";if(c>=b||41!==t.src.charCodeAt(c))return t.pos=y,!1;c++}else{if(void 0===t.env.references)return!1;if(c<b&&91===t.src.charCodeAt(c)?(v=c+1,(c=t.md.helpers.parseLinkLabel(t,c))>=0?s=t.src.slice(v,c++):c=l+1):c=l+1,s||(s=t.src.slice(u,l)),!(h=t.env.references[r(s)]))return t.pos=y,!1;m=h.href,f=h.title}return e||(a=t.src.slice(u,l),t.md.inline.parse(a,t.md,t.env,g=[]),(p=t.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=g,p.content=a,f&&n.push(["title",f])),t.pos=c,t.posMax=b,!0}},WER7:function(t,e,n){"use strict";var r=n("PiFy"),i=n("7ar3"),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=s(r,a,arguments);l&&u&&(l(e,"length").configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))}));return e};var h=function(){return s(r,o,arguments)};u?u(t.exports,"apply",{value:h}):t.exports.apply=h},Wb5I:function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}i.default=t,n&&n.set(t,i);return i}(n("6Kz3")),o=n("LsnM");function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var s="undefined"!=typeof self?self:{};s.onmessage=function(t){var e=t.data,n=e._algorithmType,r=e.data;if(n)if("function"!=typeof i[n])s.postMessage({_algorithmType:o.MESSAGE.FAILURE});else{var a=i[n].apply(i,r);s.postMessage({_algorithmType:o.MESSAGE.SUCCESS,data:a})}};e.default=null},WlQy:function(t,e,n){var r=n("72Lu"),i=n("on7W"),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}l.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=l.get.hsl(t),n="hsl";break;case"hwb":e=l.get.hwb(t),n="hwb";break;default:e=l.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,n,i,a=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=e[2],e=e[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(e.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(i=(e=e[1])[3],n=0;n<3;n++)a[n]=parseInt(e[n]+e[n],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(e[n+1],0);e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:o.call(r,e[1])?((a=r[e[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}for(n=0;n<3;n++)a[n]=u(a[n],0,255);return a[3]=u(a[3],0,1),a},l.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var t=i(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=i(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},l.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=i(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return a[t.slice(0,3)]}},X8DO:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},XLwt:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"create",function(){return v}),n.d(r,"copy",function(){return m}),n.d(r,"clone",function(){return y}),n.d(r,"set",function(){return b}),n.d(r,"add",function(){return _}),n.d(r,"scaleAndAdd",function(){return x}),n.d(r,"sub",function(){return w}),n.d(r,"len",function(){return S}),n.d(r,"length",function(){return C}),n.d(r,"lenSquare",function(){return k}),n.d(r,"lengthSquare",function(){return O}),n.d(r,"mul",function(){return M}),n.d(r,"div",function(){return E}),n.d(r,"dot",function(){return T}),n.d(r,"scale",function(){return A}),n.d(r,"normalize",function(){return I}),n.d(r,"distance",function(){return D}),n.d(r,"dist",function(){return P}),n.d(r,"distanceSquare",function(){return L}),n.d(r,"distSquare",function(){return j}),n.d(r,"negate",function(){return N}),n.d(r,"lerp",function(){return R}),n.d(r,"applyTransform",function(){return B}),n.d(r,"min",function(){return F}),n.d(r,"max",function(){return z});var i={};n.d(i,"create",function(){return ft}),n.d(i,"identity",function(){return pt}),n.d(i,"copy",function(){return gt}),n.d(i,"mul",function(){return vt}),n.d(i,"translate",function(){return mt}),n.d(i,"rotate",function(){return yt}),n.d(i,"scale",function(){return bt}),n.d(i,"invert",function(){return _t}),n.d(i,"clone",function(){return xt});var o={};n.d(o,"init",function(){return ir}),n.d(o,"dispose",function(){return or}),n.d(o,"disposeAll",function(){return ar}),n.d(o,"getInstance",function(){return sr}),n.d(o,"registerPainter",function(){return lr}),n.d(o,"version",function(){return ur});var a={};n.d(a,"updateProps",function(){return tu}),n.d(a,"initProps",function(){return eu}),n.d(a,"removeElement",function(){return ru}),n.d(a,"removeElementWithFadeOut",function(){return ou}),n.d(a,"isElementRemoved",function(){return nu}),n.d(a,"extendShape",function(){return cu}),n.d(a,"extendPath",function(){return du}),n.d(a,"registerShape",function(){return fu}),n.d(a,"getShapeClass",function(){return pu}),n.d(a,"makePath",function(){return gu}),n.d(a,"makeImage",function(){return vu}),n.d(a,"mergePath",function(){return yu}),n.d(a,"resizePath",function(){return bu}),n.d(a,"subPixelOptimizeLine",function(){return _u}),n.d(a,"subPixelOptimizeRect",function(){return xu}),n.d(a,"subPixelOptimize",function(){return wu}),n.d(a,"getTransform",function(){return Su}),n.d(a,"applyTransform",function(){return Cu}),n.d(a,"transformDirection",function(){return ku}),n.d(a,"groupTransition",function(){return Mu}),n.d(a,"clipPointsByRect",function(){return Eu}),n.d(a,"clipRectByRect",function(){return Tu}),n.d(a,"createIcon",function(){return Au}),n.d(a,"linePolygonIntersect",function(){return Iu}),n.d(a,"lineLineIntersect",function(){return Du}),n.d(a,"setTooltipConfig",function(){return Lu}),n.d(a,"traverseElements",function(){return Nu}),n.d(a,"Group",function(){return tr}),n.d(a,"Image",function(){return na}),n.d(a,"Text",function(){return Oa}),n.d(a,"Circle",function(){return Js}),n.d(a,"Ellipse",function(){return el}),n.d(a,"Sector",function(){return ml}),n.d(a,"Ring",function(){return _l}),n.d(a,"Polygon",function(){return Cl}),n.d(a,"Polyline",function(){return Ml}),n.d(a,"Rect",function(){return ca}),n.d(a,"Line",function(){return Il}),n.d(a,"BezierCurve",function(){return Nl}),n.d(a,"Arc",function(){return Fl}),n.d(a,"IncrementalDisplayable",function(){return Zl}),n.d(a,"CompoundPath",function(){return zl}),n.d(a,"LinearGradient",function(){return $l}),n.d(a,"RadialGradient",function(){return Gl}),n.d(a,"BoundingRect",function(){return It}),n.d(a,"OrientedBoundingRect",function(){return Xl}),n.d(a,"Point",function(){return wt}),n.d(a,"Path",function(){return qo});var s={};n.d(s,"createList",function(){return Cb}),n.d(s,"getLayoutRect",function(){return gh}),n.d(s,"createDimensions",function(){return iy}),n.d(s,"dataStack",function(){return kb}),n.d(s,"createSymbol",function(){return Eg}),n.d(s,"createScale",function(){return Ob}),n.d(s,"mixinAxisModelCommonMethods",function(){return Mb}),n.d(s,"getECData",function(){return Ma}),n.d(s,"enableHoverEmphasis",function(){return _s}),n.d(s,"createTextStyle",function(){return Eb});var l={};n.d(l,"linearMap",function(){return dr}),n.d(l,"round",function(){return pr}),n.d(l,"asc",function(){return gr}),n.d(l,"getPrecision",function(){return vr}),n.d(l,"getPrecisionSafe",function(){return mr}),n.d(l,"getPixelPrecision",function(){return yr}),n.d(l,"getPercentWithPrecision",function(){return br}),n.d(l,"MAX_SAFE_INTEGER",function(){return wr}),n.d(l,"remRadian",function(){return Sr}),n.d(l,"isRadianAroundZero",function(){return Cr}),n.d(l,"parseDate",function(){return Or}),n.d(l,"quantity",function(){return Mr}),n.d(l,"quantityExponent",function(){return Er}),n.d(l,"nice",function(){return Tr}),n.d(l,"quantile",function(){return Ar}),n.d(l,"reformIntervals",function(){return Ir}),n.d(l,"isNumeric",function(){return Pr}),n.d(l,"numericToNumber",function(){return Dr});var u={};n.d(u,"parse",function(){return Or}),n.d(u,"format",function(){return Lc});var c={};n.d(c,"extendShape",function(){return cu}),n.d(c,"extendPath",function(){return du}),n.d(c,"makePath",function(){return gu}),n.d(c,"makeImage",function(){return vu}),n.d(c,"mergePath",function(){return yu}),n.d(c,"resizePath",function(){return bu}),n.d(c,"createIcon",function(){return Au}),n.d(c,"updateProps",function(){return tu}),n.d(c,"initProps",function(){return eu}),n.d(c,"getTransform",function(){return Su}),n.d(c,"clipPointsByRect",function(){return Eu}),n.d(c,"clipRectByRect",function(){return Tu}),n.d(c,"registerShape",function(){return fu}),n.d(c,"getShapeClass",function(){return pu}),n.d(c,"Group",function(){return tr}),n.d(c,"Image",function(){return na}),n.d(c,"Text",function(){return Oa}),n.d(c,"Circle",function(){return Js}),n.d(c,"Ellipse",function(){return el}),n.d(c,"Sector",function(){return ml}),n.d(c,"Ring",function(){return _l}),n.d(c,"Polygon",function(){return Cl}),n.d(c,"Polyline",function(){return Ml}),n.d(c,"Rect",function(){return ca}),n.d(c,"Line",function(){return Il}),n.d(c,"BezierCurve",function(){return Nl}),n.d(c,"Arc",function(){return Fl}),n.d(c,"IncrementalDisplayable",function(){return Zl}),n.d(c,"CompoundPath",function(){return zl}),n.d(c,"LinearGradient",function(){return $l}),n.d(c,"RadialGradient",function(){return Gl}),n.d(c,"BoundingRect",function(){return It});var h={};n.d(h,"addCommas",function(){return Jc}),n.d(h,"toCamelCase",function(){return Qc}),n.d(h,"normalizeCssArray",function(){return th}),n.d(h,"encodeHTML",function(){return Q}),n.d(h,"formatTpl",function(){return ih}),n.d(h,"getTooltipMarker",function(){return oh}),n.d(h,"formatTime",function(){return ah}),n.d(h,"capitalFirst",function(){return sh}),n.d(h,"truncateText",function(){return Ei}),n.d(h,"getTextRect",function(){return Kc});var d={};n.d(d,"map",function(){return g.map}),n.d(d,"each",function(){return g.each}),n.d(d,"indexOf",function(){return g.indexOf}),n.d(d,"inherits",function(){return g.inherits}),n.d(d,"reduce",function(){return g.reduce}),n.d(d,"filter",function(){return g.filter}),n.d(d,"bind",function(){return g.bind}),n.d(d,"curry",function(){return g.curry}),n.d(d,"isArray",function(){return g.isArray}),n.d(d,"isString",function(){return g.isString}),n.d(d,"isObject",function(){return g.isObject}),n.d(d,"isFunction",function(){return g.isFunction}),n.d(d,"extend",function(){return g.extend}),n.d(d,"defaults",function(){return g.defaults}),n.d(d,"clone",function(){return g.clone}),n.d(d,"merge",function(){return g.merge});var f=n("TToO"),p=n("YNzw"),g=n("/gxq");function v(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function m(t,e){return t[0]=e[0],t[1]=e[1],t}function y(t){return[t[0],t[1]]}function b(t,e,n){return t[0]=e,t[1]=n,t}function _(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function w(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function S(t){return Math.sqrt(k(t))}var C=S;function k(t){return t[0]*t[0]+t[1]*t[1]}var O=k;function M(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function E(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function T(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function I(t,e){var n=S(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function D(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var P=D;function L(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var j=L;function N(t,e){return t[0]=-e[0],t[1]=-e[1],t}function R(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function B(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function F(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function z(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var V=function(){return function(t,e){this.target=t,this.topTarget=e&&e.topTarget}}(),$=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new V(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new V(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new V(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new V(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new V(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new V(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),G=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),H=Math.log(2);function W(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/H);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&i||(h+=(f%2?-1:1)*t[n][d]*W(t,e-1,c,u,i|p,o),f++)}return o[a]=h,h}function U(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=W(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*W(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var Y="___zrEVENTSAVED",X=[];function q(t,e,n,r,i){if(e.getBoundingClientRect&&p.a.domSupported&&!Z(e)){var o=e[Y]||(e[Y]={}),a=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?U(s,a):U(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,i);if(a)return a(t,n,r),!0}return!1}function Z(t){return"CANVAS"===t.nodeName.toUpperCase()}var K=/([&<>"'])/g,J={"&":"&","<":"<",">":">",'"':""","'":"'"};function Q(t){return null==t?"":(t+"").replace(K,function(t,e){return J[e]})}var tt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=[],nt=p.a.browser.firefox&&+p.a.browser.version.split(".")[0]<39;function rt(t,e,n,r){return n=n||{},r?it(t,e,n):nt&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):it(t,e,n),n}function it(t,e,n){if(p.a.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Z(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(q(et,t,r,i))return n.zrX=et[0],void(n.zrY=et[1])}n.zrX=n.zrY=0}function ot(t){return t||window.event}function at(t,e,n){if(null!=(e=ot(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&rt(t,i,e,n)}else{rt(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&tt.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function st(t,e,n,r){t.addEventListener(e,n,r)}var lt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ut(t){return 2===t.which||3===t.which}var ct=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=rt(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in dt)if(dt.hasOwnProperty(e)){var n=dt[e](this._track,t);if(n)return n}},t}();function ht(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var dt={pinch:function(t,e){var n=t.length;if(n){var r,i=(t[n-1]||{}).points,o=(t[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=ht(i)/ht(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function ft(){return[1,0,0,1,0,0]}function pt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function gt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function vt(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function mt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function yt(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function bt(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function _t(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function xt(t){var e=[1,0,0,1,0,0];return gt(e,t),e}var wt=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),St=Math.min,Ct=Math.max,kt=new wt,Ot=new wt,Mt=new wt,Et=new wt,Tt=new wt,At=new wt,It=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=St(t.x,this.x),n=St(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ct(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ct(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=[1,0,0,1,0,0];return mt(i,i,[-e.x,-e.y]),bt(i,i,[n,r]),mt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(o<l||u<i||s<c||h<a);if(n){var f=1/0,p=0,g=Math.abs(o-l),v=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(h-a),b=Math.min(g,v),_=Math.min(m,y);o<l||u<i?b>p&&(p=b,g<v?wt.set(At,-g,0):wt.set(At,v,0)):b<f&&(f=b,g<v?wt.set(Tt,g,0):wt.set(Tt,-v,0)),s<c||h<a?_>p&&(p=_,m<y?wt.set(At,0,-m):wt.set(At,0,y)):b<f&&(f=b,m<y?wt.set(Tt,0,m):wt.set(Tt,0,-y))}return n&&wt.copy(n,d?Tt:At),d},t.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}kt.x=Mt.x=n.x,kt.y=Et.y=n.y,Ot.x=Et.x=n.x+n.width,Ot.y=Mt.y=n.y+n.height,kt.transform(r),Et.transform(r),Ot.transform(r),Mt.transform(r),e.x=St(kt.x,Ot.x,Mt.x,Et.x),e.y=St(kt.y,Ot.y,Mt.y,Et.y);var l=Ct(kt.x,Ot.x,Mt.x,Et.x),u=Ct(kt.y,Ot.y,Mt.y,Et.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Dt="silent";function Pt(){lt(this.event)}var Lt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Object(f.__extends)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(G),jt=function(){return function(t,e){this.x=t,this.y=e}}(),Nt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rt=new It(0,0,0,0),Bt=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new jt(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Lt,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new $(a),a}return Object(f.__extends)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(g.each(Nt,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Vt(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new jt(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new jt(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Pt}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new jt(t,e);if(zt(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new It(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Rt.copy(c.getBoundingRect()),c.transform&&Rt.applyTransform(c.transform),Rt.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,f=0;f<s;f+=4)for(var p=0;p<d;p+=h){if(zt(o,i,t+f*Math.cos(p),e+f*Math.sin(p),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new ct);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new jt;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(G);function Ft(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||Dt}return!1}function zt(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ft(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Dt)){e.target=a;break}}}function Vt(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}g.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Bt.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Vt(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||P(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var $t=Bt,Gt=32,Ht=7;function Wt(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;!function(t,e,n){n--;for(;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function Ut(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)i(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Yt(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Xt(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function qt(t,e){var n,r,i,o=Ht,a=0;n=t.length;var s=[];function l(n){var l=r[n],u=i[n],c=r[n+1],h=i[n+1];i[n]=u+h,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var d=Xt(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=Yt(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,r,i,a){var l=0;for(l=0;l<r;l++)s[l]=t[n+l];var u=0,c=i,h=n;if(t[h++]=t[c++],0==--a){for(l=0;l<r;l++)t[h+l]=s[u+l];return}if(1===r){for(l=0;l<a;l++)t[h+l]=t[c+l];return void(t[h+a]=s[u])}var d,f,p,g=o;for(;;){d=0,f=0,p=!1;do{if(e(t[c],s[u])<0){if(t[h++]=t[c++],f++,d=0,0==--a){p=!0;break}}else if(t[h++]=s[u++],d++,f=0,1==--r){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=Xt(t[c],s,u,r,0,e))){for(l=0;l<d;l++)t[h+l]=s[u+l];if(h+=d,u+=d,(r-=d)<=1){p=!0;break}}if(t[h++]=t[c++],0==--a){p=!0;break}if(0!==(f=Yt(s[u],t,c,a,0,e))){for(l=0;l<f;l++)t[h+l]=t[c+l];if(h+=f,c+=f,0===(a-=f)){p=!0;break}}if(t[h++]=s[u++],1==--r){p=!0;break}g--}while(d>=Ht||f>=Ht);if(p)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===r){for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=s[u+l]}}(l,u,c,h):function(n,r,i,a){var l=0;for(l=0;l<a;l++)s[l]=t[i+l];var u=n+r-1,c=a-1,h=i+a-1,d=0,f=0;if(t[h--]=t[u--],0==--r){for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l];return}if(1===a){for(f=(h-=r)+1,d=(u-=r)+1,l=r-1;l>=0;l--)t[f+l]=t[d+l];return void(t[h]=s[c])}var p=o;for(;;){var g=0,v=0,m=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0==--r){m=!0;break}}else if(t[h--]=s[c--],v++,g=0,1==--a){m=!0;break}}while((g|v)<p);if(m)break;do{if(0!==(g=r-Xt(s[c],t,n,r,r-1,e))){for(r-=g,f=(h-=g)+1,d=(u-=g)+1,l=g-1;l>=0;l--)t[f+l]=t[d+l];if(0===r){m=!0;break}}if(t[h--]=s[c--],1==--a){m=!0;break}if(0!==(v=a-Yt(t[u],s,0,a,a-1,e))){for(a-=v,f=(h-=v)+1,d=(c-=v)+1,l=0;l<v;l++)t[f+l]=s[d+l];if(a<=1){m=!0;break}}if(t[h--]=t[u--],0==--r){m=!0;break}p--}while(g>=Ht||v>=Ht);if(m)break;p<0&&(p=0),p+=2}(o=p)<1&&(o=1);if(1===a){for(f=(h-=r)+1,d=(u-=r)+1,l=r-1;l>=0;l--)t[f+l]=t[d+l];t[h]=s[c]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l]}}(l,u,c,h))}return n<120?5:n<1542?10:n<119151?19:40,r=[],i=[],{mergeRuns:function(){for(;a>1;){var t=a-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;l(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&i[t-1]<i[t+1]&&t--,l(t)}},pushRun:function(t,e){r[a]=t,i[a]=e,a+=1}}}function Zt(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<Gt)Ut(t,n,r,n+(o=Wt(t,n,r,e)),e);else{var a=qt(t,e),s=function(t){for(var e=0;t>=Gt;)e|=1&t,t>>=1;return t+e}(i);do{if((o=Wt(t,n,r,e))<s){var l=i;l>s&&(l=s),Ut(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Kt=1,Jt=4,Qt=!1;function te(){Qt||(Qt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ee(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ne=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ee}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,Zt(n,ee)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Kt),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(te(),u.z=0),isNaN(u.z2)&&(te(),u.z2=0),isNaN(u.zlevel)&&(te(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=g.indexOf(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),re=p.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},ie={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ie.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ie.bounceIn(2*t):.5*ie.bounceOut(2*t-1)+.5}},oe=ie,ae=Math.pow,se=Math.sqrt,le=1e-8,ue=1e-4,ce=se(3),he=1/3,de=v(),fe=v(),pe=v();function ge(t){return t>-le&&t<le}function ve(t){return t>le||t<-le}function me(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function ye(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function be(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(ge(c)&&ge(h)){if(ge(s))o[0]=0;else(C=-l/s)>=0&&C<=1&&(o[f++]=C)}else{var p=h*h-4*c*d;if(ge(p)){var g=h/c,v=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v)}else if(p>0){var m=se(p),y=c*s+1.5*a*(-h+m),b=c*s+1.5*a*(-h-m);(C=(-s-((y=y<0?-ae(-y,he):ae(y,he))+(b=b<0?-ae(-b,he):ae(b,he))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var _=(2*c*s-3*a*h)/(2*se(c*c*c)),x=Math.acos(_)/3,w=se(c),S=Math.cos(x),C=(-s-2*w*S)/(3*a),k=(v=(-s+w*(S+ce*Math.sin(x)))/(3*a),(-s+w*(S-ce*Math.sin(x)))/(3*a));C>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v),k>=0&&k<=1&&(o[f++]=k)}}return f}function _e(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(ge(a)){if(ve(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(ge(u))i[0]=-o/(2*a);else if(u>0){var c,h=se(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function xe(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function we(t,e,n,r,i,o,a,s,l,u,c){var h,d,f,p,g,v=.005,m=1/0;de[0]=l,de[1]=u;for(var y=0;y<1;y+=.05)fe[0]=me(t,n,i,a,y),fe[1]=me(e,r,o,s,y),(p=j(de,fe))<m&&(h=y,m=p);m=1/0;for(var b=0;b<32&&!(v<ue);b++)d=h-v,f=h+v,fe[0]=me(t,n,i,a,d),fe[1]=me(e,r,o,s,d),p=j(fe,de),d>=0&&p<m?(h=d,m=p):(pe[0]=me(t,n,i,a,f),pe[1]=me(e,r,o,s,f),g=j(pe,de),f<=1&&g<m?(h=f,m=g):v*=.5);return c&&(c[0]=me(t,n,i,a,h),c[1]=me(e,r,o,s,h)),se(m)}function Se(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,g=me(t,n,i,a,p),v=me(e,r,o,s,p),m=g-u,y=v-c;h+=Math.sqrt(m*m+y*y),u=g,c=v}return h}function Ce(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function ke(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Oe(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Me(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Ee(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;de[0]=a,de[1]=s;for(var d=0;d<1;d+=.05){fe[0]=Ce(t,n,i,d),fe[1]=Ce(e,r,o,d),(v=j(de,fe))<h&&(u=d,h=v)}h=1/0;for(var f=0;f<32&&!(c<ue);f++){var p=u-c,g=u+c;fe[0]=Ce(t,n,i,p),fe[1]=Ce(e,r,o,p);var v=j(fe,de);if(p>=0&&v<h)u=p,h=v;else{pe[0]=Ce(t,n,i,g),pe[1]=Ce(e,r,o,g);var m=j(pe,de);g<=1&&m<h?(u=g,h=m):c*=.5}}return l&&(l[0]=Ce(t,n,i,u),l[1]=Ce(e,r,o,u)),se(h)}function Te(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=Ce(t,n,i,d),p=Ce(e,r,o,d),g=f-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=f,l=p}return u}var Ae=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ie(t){var e=t&&Ae.exec(t);if(e){var n=e[1].split(","),r=+Object(g.trim)(n[0]),i=+Object(g.trim)(n[1]),o=+Object(g.trim)(n[2]),a=+Object(g.trim)(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:be(0,r,o,1,t,s)&&me(0,i,a,1,s[0])}}}var De=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||g.noop,this.ondestroy=t.ondestroy||g.noop,this.onrestart=t.onrestart||g.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(g.isFunction)(t)?t:oe[t]||Ie(t)},t}(),Pe=n("DRaW"),Le=n("edjc"),je=Array.prototype.slice;function Ne(t,e,n){return(e-t)*n+t}function Re(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=Ne(e[o],n[o],r);return t}function Be(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function Fe(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function ze(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Ve(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:je.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function $e(t){if(Object(g.isArrayLike)(t)){var e=t.length;if(Object(g.isArrayLike)(t[0])){for(var n=[],r=0;r<e;r++)n.push(je.call(t[r]));return n}return je.call(t)}return t}function Ge(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}var He=1,We=2,Ue=4,Ye=5;function Xe(t){return t===Ue||t===Ye}function qe(t){return t===He||t===We}var Ze=[0,0,0,0],Ke=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(Object(g.isArrayLike)(e)){var l=function(t){return Object(g.isArrayLike)(t&&t[0])?2:1}(e);a=l,(1===l&&!Object(g.isNumber)(e[0])||2===l&&!Object(g.isNumber)(e[0][0]))&&(o=!0)}else if(Object(g.isNumber)(e)&&!Object(g.eqNaN)(e))a=0;else if(Object(g.isString)(e))if(isNaN(+e)){var u=Pe.parse(e);u&&(s=u,a=3)}else a=0;else if(Object(g.isGradientObject)(e)){var c=Object(g.extend)({},s);c.colorStops=Object(g.map)(e.colorStops,function(t){return{offset:t.offset,color:Pe.parse(t.color)}}),Object(Le.m)(e)?a=Ue:Object(Le.o)(e)&&(a=Ye),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(g.isFunction)(n)?n:oe[n]||Ie(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=qe(r),l=Xe(r),u=0;u<i;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==i-1?Ve(h,d,r):l&&ze(h.colorStops,d.colorStops))}if(!a&&r!==Ye&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-f:3===r?n[u].additiveValue=Be([],n[u].value,f,-1):qe(r)&&(n[u].additiveValue=r===He?Be([],n[u].value,f,-1):Fe([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,d=this._lastFr,f=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=f(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=f(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var p=i.percent-r.percent,v=0===p?1:f((e-r.percent)/p,1);i.easingFunc&&(v=i.easingFunc(v));var m=o?this._additiveValue:h?Ze:t[c];if(!qe(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)t[c]=v<1?r.rawValue:i.rawValue;else if(qe(s))s===He?Re(m,r[a],i[a],v):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Ne(e[a][s],n[a][s],r)}}(m,r[a],i[a],v);else if(Xe(s)){var y=r[a],b=i[a],_=s===Ue;t[c]={type:_?"linear":"radial",x:Ne(y.x,b.x,v),y:Ne(y.y,b.y,v),colorStops:Object(g.map)(y.colorStops,function(t,e){var n=b.colorStops[e];return{offset:Ne(t.offset,n.offset,v),color:Ge(Re([],t.color,n.color,v))}}),global:b.global},_?(t[c].x2=Ne(y.x2,b.x2,v),t[c].y2=Ne(y.y2,b.y2,v)):t[c].r=Ne(y.r,b.r,v)}else if(h)Re(m,r[a],i[a],v),o||(t[c]=Ge(m));else{var x=Ne(r[a],i[a],v);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(Pe.parse(t[n],Ze),Be(Ze,Ze,r,1),t[n]=Ge(Ze)):e===He?Be(t[n],t[n],r,1):e===We&&Fe(t[n],t[n],r,1)},t}(),Je=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(g.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(g.keys)(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new Ke(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=Ge(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,$e(l),r),this._trackKeys.push(a)}s.addKeyframe(t,$e(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new De({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(g.map)(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=$e(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(g.keys)(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function Qe(){return(new Date).getTime()}var tn,en,nn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Object(f.__extends)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Qe()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,re(function e(){t._running&&(re(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Qe(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Qe(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Qe()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Je(t,e.loop);return this.addAnimator(n),n},e}(G),rn=p.a.domSupported,on=(en={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:tn=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g.map(tn,function(t){var e=t.replace("mouse","pointer");return en.hasOwnProperty(e)?e:t})}),an={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sn=!1;function ln(t){var e=t.pointerType;return"pen"===e||"touch"===e}function un(t){t&&(t.zrByTouch=!0)}function cn(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var hn=function(){return function(t,e){this.stopPropagation=g.noop,this.stopImmediatePropagation=g.noop,this.preventDefault=g.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}}(),dn={mousedown:function(t){t=at(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=at(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=at(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){cn(this,(t=at(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){sn=!0,t=at(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){sn||(t=at(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){un(t=at(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),dn.mousemove.call(this,t),dn.mousedown.call(this,t)},touchmove:function(t){un(t=at(this.dom,t)),this.handler.processGesture(t,"change"),dn.mousemove.call(this,t)},touchend:function(t){un(t=at(this.dom,t)),this.handler.processGesture(t,"end"),dn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&dn.click.call(this,t)},pointerdown:function(t){dn.mousedown.call(this,t)},pointermove:function(t){ln(t)||dn.mousemove.call(this,t)},pointerup:function(t){dn.mouseup.call(this,t)},pointerout:function(t){ln(t)||dn.mouseout.call(this,t)}};g.each(["click","dblclick","contextmenu"],function(t){dn[t]=function(e){e=at(this.dom,e),this.trigger(t,e)}});var fn={pointermove:function(t){ln(t)||fn.mousemove.call(this,t)},pointerup:function(t){fn.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function pn(t,e){var n=e.domHandlers;p.a.pointerEventsSupported?g.each(on.pointer,function(r){vn(e,r,function(e){n[r].call(t,e)})}):(p.a.touchEventsSupported&&g.each(on.touch,function(r){vn(e,r,function(i){n[r].call(t,i),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),g.each(on.mouse,function(r){vn(e,r,function(i){i=ot(i),e.touching||n[r].call(t,i)})}))}function gn(t,e){function n(n){vn(e,n,function(r){r=ot(r),cn(t,r.target)||(r=function(t,e){return at(t.dom,new hn(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))},{capture:!0})}p.a.pointerEventsSupported?g.each(an.pointer,n):p.a.touchEventsSupported||g.each(an.mouse,n)}function vn(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,st(t.domTarget,e,n,r)}function mn(t){var e,n,r,i,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,r=o[a],i=t.listenerOpts[a],e.removeEventListener(n,r,i));t.mounted={}}var yn=function(){return function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}}(),bn=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new yn(e,dn),rn&&(r._globalHandlerScope=new yn(document,fn)),pn(r,r._localHandlerScope),r}return Object(f.__extends)(e,t),e.prototype.dispose=function(){mn(this._localHandlerScope),rn&&mn(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,rn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?gn(this,e):mn(e)}},e}(G),_n=1;p.a.hasGlobalWindow&&(_n=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xn=_n,wn=.4,Sn=pt,Cn=5e-5;function kn(t){return t>Cn||t<-Cn}var On=[],Mn=[],En=[1,0,0,1,0,0],Tn=Math.abs,An=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function In(t,e){for(var n=0;n<An.length;n++){var r=An[n];t[r]=e[r]}}var Dn=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return kn(this.rotation)||kn(this.x)||kn(this.y)||kn(this.scaleX-1)||kn(this.scaleY-1)||kn(this.skewX)||kn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Sn(n),t&&(e?vt(n,t,n):gt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Sn(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(On);var n=On[0]<0?-1:1,r=On[1]<0?-1:1,i=((On[0]-n)*e+n)/On[0]||0,o=((On[1]-r)*e+r)/On[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],_t(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(vt(Mn,t.invTransform,e),e=Mn);var n=this.originX,r=this.originY;(n||r)&&(En[4]=n,En[5]=r,vt(Mn,e,En),Mn[4]-=n,Mn[5]-=r,e=Mn),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&B(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&B(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Tn(t[0]-1)>1e-10&&Tn(t[3]-1)>1e-10?Math.sqrt(Tn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){In(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var f=n+a,p=r+s;e[4]=-f*i-h*p*o,e[5]=-p*o-d*f*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,l&&yt(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Pn=n("zMj2"),Ln=n("OwOc"),jn={};function Nn(t,e){e=e||Ln.a;var n=jn[e];n||(n=jn[e]=new Pn.a(500));var r=n.get(t);return null==r&&(r=Ln.d.measureText(t,e).width,n.put(t,r)),r}function Rn(t,e,n,r){var i=Nn(t,e),o=Vn(e),a=Fn(0,i,n),s=zn(0,o,r);return new It(a,s,i,o)}function Bn(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return Rn(i[0],e,n,r);for(var o=new It(0,0,0,0),a=0;a<i.length;a++){var s=Rn(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function Fn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function zn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Vn(t){return Nn("国",t)}function $n(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Gn(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=$n(r[0],n.width),u+=$n(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Hn=An.concat(["ignore"]),Wn=Object(g.reduce)(An,function(t,e){return t[e]=!0,t},{ignore:!1}),Un={},Yn=new It(0,0,0,0),Xn=function(){function t(t){this.id=Object(g.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=Yn;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Un,n,u):Gn(Un,n,u),i.x=Un.x,i.y=Un.y,o=Un.align,a=Un.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=$n(c[0],u.width),d=$n(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+d+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;p&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Kt,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(Pe.parse)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Pe.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(g.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(g.isObject)(t))for(var n=t,r=Object(g.keys)(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&"__zr_normal__"!==i)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Hn)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState("__zr_normal__",!1,t)},t.prototype.useState=function(t,e,n,r){var i="__zr_normal__"===t;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Object(g.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kt),s}Object(g.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kt)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(g.indexOf)(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(g.indexOf)(r,t),o=Object(g.indexOf)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Object(g.extend)(n,i),i.textConfig&&(e=e||{},Object(g.extend)(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(g.extend)({},r?this.textConfig:n.textConfig),Object(g.extend)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Hn.length;u++){var c=Hn[u],h=i&&Wn[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Dn,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(g.extend)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Kt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new Je(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var e=r.animators,n=Object(g.indexOf)(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){qn(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){qn(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=qn(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Kt;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function qn(t,e,n,r,i){var o=[];!function t(e,n,r,i,o,a,s,l){var u=Object(g.keys)(i);var c=o.duration;var h=o.delay;var d=o.additive;var f=o.setToFinal;var p=!Object(g.isObject)(a);var v=e.animators;var m=[];for(var y=0;y<u.length;y++){var b=u[y],_=i[b];if(null!=_&&null!=r[b]&&(p||a[b]))if(!Object(g.isObject)(_)||Object(g.isArrayLike)(_)||Object(g.isGradientObject)(_))m.push(b);else{if(n){l||(r[b]=_,e.updateDuringAnimation(n));continue}t(e,b,r[b],_,o,a&&a[b],s,l)}else l||(r[b]=_,e.updateDuringAnimation(n),m.push(b))}var x=m.length;if(!d&&x)for(var w=0;w<v.length;w++){var S=v[w];if(S.targetName===n){var C=S.stopTracks(m);if(C){var k=Object(g.indexOf)(v,S);v.splice(k,1)}}}o.force||(m=Object(g.filter)(m,function(t){return e=i[t],n=r[t],!(e===n||Object(g.isArrayLike)(e)&&Object(g.isArrayLike)(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,n));var e,n}),x=m.length);if(x>0||o.force&&!s.length){var O=void 0,M=void 0,E=void 0;if(l){M={},f&&(O={});for(var w=0;w<x;w++){var b=m[w];M[b]=r[b],f?O[b]=i[b]:r[b]=i[b]}}else if(f){E={};for(var w=0;w<x;w++){var b=m[w];E[b]=$e(r[b]),Kn(r,i,b)}}var S=new Je(r,!1,!1,d?Object(g.filter)(v,function(t){return t.targetName===n}):null);S.targetName=n,o.scope&&(S.scope=o.scope),f&&O&&S.whenWithKeys(0,O,m),E&&S.whenWithKeys(0,E,m),S.whenWithKeys(null==c?500:c,l?M:i,m).delay(h||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d<o.length;d++){var f=o[d];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function Zn(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Kn(t,e,n){if(Object(g.isArrayLike)(e[n]))if(Object(g.isArrayLike)(t[n])||(t[n]=[]),Object(g.isTypedArray)(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Zn(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(u=i,Object(g.isArrayLike)(u[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?Zn(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Zn(o,i,a);o.length=i.length}else t[n]=e[n];var u}Object(g.mixin)(Xn,G),Object(g.mixin)(Xn,Dn);var Jn=Xn,Qn=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Object(f.__extends)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=g.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=g.indexOf(n,t);return r<0?this:(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new It(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(It.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(Jn);Qn.prototype.type="group";var tr=Qn,er={},nr={};
- /*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */var rr=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new ne,o=n.renderer||"canvas";er[o]||(o=g.keys(er)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new er[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=p.a.node||p.a.worker||s?null:new bn(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?p.a.touchEventsSupported:!!c)&&(l=g.retrieve2(n.pointerSize,44)),this.handler=new $t(i,a,u,a.root,l),this.animation=new nn({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Object(Pe.lum)(t,1)<wn;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Object(Pe.lum)(e[i].color,1);return(n/=r)<wn}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=Qe();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Qe();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof tr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete nr[t]},t}();function ir(t,e){var n=new rr(g.guid(),t,e);return nr[n.id]=n,n}function or(t){t.dispose()}function ar(){for(var t in nr)nr.hasOwnProperty(t)&&nr[t].dispose();nr={}}function sr(t){return nr[t]}function lr(t,e){er[t]=e}var ur="5.4.3",cr=1e-4,hr=20;function dr(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function fr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return g.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function pr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),hr),t=(+t).toFixed(e),n?t:+t}function gr(t){return t.sort(function(t,e){return t-e}),t}function vr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return mr(t)}function mr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function yr(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function br(t,e,n){return t[e]&&_r(t,n)[e]||0}function _r(t,e){var n=g.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Math.pow(10,e),i=g.map(t,function(t){return(isNaN(t)?0:t)/n*r*100}),o=100*r,a=g.map(i,function(t){return Math.floor(t)}),s=g.reduce(a,function(t,e){return t+e},0),l=g.map(i,function(t,e){return t-a[e]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return g.map(a,function(t){return t/r})}function xr(t,e){var n=Math.max(vr(t),vr(e)),r=t+e;return n>hr?r:pr(r,n)}var wr=9007199254740991;function Sr(t){var e=2*Math.PI;return(t%e+e)%e}function Cr(t){return t>-cr&&t<cr}var kr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Or(t){if(t instanceof Date)return t;if(g.isString(t)){var e=kr.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Mr(t){return Math.pow(10,Er(t))}function Er(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Tr(t,e){var n=Er(t),r=Math.pow(10,n),i=t/r;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Ar(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function Ir(t){t.sort(function(t,e){return function t(e,n,r){return e.interval[r]<n.interval[r]||e.interval[r]===n.interval[r]&&(e.close[r]-n.close[r]==(r?-1:1)||!r&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t}function Dr(t){var e=parseFloat(t);return e==t&&(0!==e||!g.isString(t)||t.indexOf("x")<=0)?e:NaN}function Pr(t){return!isNaN(Dr(t))}function Lr(){return Math.round(9*Math.random())}function jr(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}"undefined"!=typeof console&&console.warn&&console.log;function Nr(t){0}function Rr(t){throw new Error(t)}function Br(t,e,n){return(e-t)*n+t}var Fr="series\0",zr="\0_ec_\0";function Vr(t){return t instanceof Array?t:null==t?[]:[t]}function $r(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Gr=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Hr(t){return!Object(g.isObject)(t)||Object(g.isArray)(t)||t instanceof Date?t:t.value}function Wr(t){return Object(g.isObject)(t)&&!(t instanceof Array)}function Ur(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(g.createHashMap)();Object(g.each)(e,function(t,n){Object(g.isObject)(t)||(e[n]=null)});var s,l,u=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||Kr(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){Object(g.each)(r,function(i,o){if(i&&null!=i.id){var a=Xr(i.id),s=n.get(a);if(null!=s){var l=t[s];Object(g.assert)(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}(u,t,a,e),r&&function(t,e){Object(g.each)(e,function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!Kr(n)&&!Kr(o)&&Yr("name",o,n))return t[i].newOption=n,void(e[r]=null)}})}(u,e),r||i?function(t,e,n){Object(g.each)(e,function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||Kr(r.existing)||r.existing&&null!=e.id&&!Yr("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,e,i):o&&function(t,e){Object(g.each)(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(u,e),s=u,l=Object(g.createHashMap)(),Object(g.each)(s,function(t){var e=t.existing;e&&l.set(e.id,t)}),Object(g.each)(s,function(t){var e=t.newOption;Object(g.assert)(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),Object(g.each)(s,function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(Object(g.isObject)(r)){if(i.name=null!=r.name?Xr(r.name):n?n.name:Fr+e,n)i.id=Xr(n.id);else if(null!=r.id)i.id=Xr(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,t)}}),u}function Yr(t,e,n){var r=qr(e[t],null),i=qr(n[t],null);return null!=r&&null!=i&&r===i}function Xr(t){return qr(t,"")}function qr(t,e){return null==t?e:Object(g.isString)(t)?t:Object(g.isNumber)(t)||Object(g.isStringSafe)(t)?t+"":e}function Zr(t){var e=t.name;return!(!e||!e.indexOf(Fr))}function Kr(t){return t&&null!=t.id&&0===Xr(t.id).indexOf(zr)}function Jr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(g.isArray)(e.dataIndex)?Object(g.map)(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(g.isArray)(e.name)?Object(g.map)(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Qr(){var t="__ec_inner_"+ti++;return function(e){return e[t]||(e[t]={})}}var ti=Lr();function ei(t,e,n){var r=ni(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(e,r){var i=oi(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function ni(t,e){var n;if(Object(g.isString)(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Object(g.createHashMap)(),o={},a=!1;return Object(g.each)(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(g.indexOf)(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t}else o[n]=t}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var ri={useDefault:!0,enableAll:!1,enableNone:!1},ii={useDefault:!1,enableAll:!0,enableNone:!0};function oi(t,e,n,r){r=r||ri;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Object(g.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Object(g.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function ai(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function si(t,e){var n=Object(g.createHashMap)(),r=[];return Object(g.each)(t,function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)}),{keys:r,buckets:n}}function li(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Object(g.isNumber)(r))return pr(p=Br(n||0,r,i),o?Math.max(vr(n||0),vr(r)):e);if(Object(g.isString)(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(i<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,f=l[c],p=Br(d,f,i);a[c]=pr(p,o?Math.max(vr(d),vr(f)):e)}}return a}var ui=".",ci="___EC__COMPONENT__CONTAINER___",hi="___EC__EXTENDED_CLASS___";function di(t){var e={main:"",sub:""};if(t){var n=t.split(ui);e.main=n[0]||"",e.sub=n[1]||""}return e}function fi(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return n=r,g.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},g.inherits(e,this)),g.extend(e.prototype,t),e[hi]=!0,e.extend=this.extend,e.superCall=vi,e.superApply=mi,e.superClass=r,e}}function pi(t,e){t.extend=e.extend}var gi=Math.round(10*Math.random());function vi(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function mi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function yi(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){n=r,g.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=di(r);if(i.sub){if(i.sub!==ci){((function(t){var n=e[t.main];n&&n[ci]||((n=e[t.main]={})[ci]=!0);return n})(i))[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[ci]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=di(t),r=[],i=e[n.main];return i&&i[ci]?g.each(i,function(t,e){e!==ci&&r.push(t)}):r.push(i),r},t.hasClass=function(t){var n=di(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return g.each(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=di(t),r=e[n.main];return r&&r[ci]}}function bi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&g.indexOf(r,s)>=0||i&&g.indexOf(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var _i=bi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),xi=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return _i(this,t,e)},t}(),wi=new Pn.a(50);function Si(t){if("string"==typeof t){var e=wi.get(t);return e&&e.image}return t}function Ci(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=wi.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?!Oi(e=o.image)&&o.pending.push(a):((e=Ln.d.loadImage(t,ki,ki)).__zrImageSrc=t,wi.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ki(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Oi(t){return t&&t.width&&t.height}var Mi=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ei(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Ti(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Ai(o[a],i);return o.join("\n")}function Ti(t,e,n,r){r=r||{};var i=Object(g.extend)({},r);i.font=e,n=Object(g.retrieve2)(n,"..."),i.maxIterations=Object(g.retrieve2)(r.maxIterations,2);var o=i.minChar=Object(g.retrieve2)(r.minChar,0);i.cnCharWidth=Nn("国",e);var a=i.ascCharWidth=Nn("a",e);i.placeholder=Object(g.retrieve2)(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=Nn(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Ai(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=Nn(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ii(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;o=Nn(t=t.substr(0,s),r)}return""===t&&(t=e.placeholder),t}function Ii(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Di=function(){return function(){}}(),Pi=function(){return function(t){this.tokens=[],t&&(this.tokens=t)}}(),Li=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}();function ji(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=$n(l.width,r.width)+f;u.length>0&&p+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=p}else{var g=Bi(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new Di;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[v]:Nn(m,c),v||h)u.push(new Pi([y]));else{var b=(u[u.length-1]||(u[0]=new Pi)).tokens,_=b.length;1===_&&b[0].isLineHolder?b[0]=y:(m||!_||s)&&b.push(y)}}}var Ni=Object(g.reduce)(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ri(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Ni[t]}function Bi(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var f=Nn(d,e),p=!r&&!Ri(d);(o.length?c+f>n:i+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=f)):p?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,p?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Fi="__zr_style_"+Math.round(10*Math.random()),zi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Vi={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};zi[Fi]=!0;var $i=["z","z2","invisible"],Gi=["invisible"],Hi=function(t){function e(e){return t.call(this,e)||this}var n;return Object(f.__extends)(e,t),e.prototype._init=function(e){for(var n=Object(g.keys)(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){Wi.copy(t.getBoundingRect()),t.transform&&Wi.applyTransform(t.transform);return Ui.width=e,Ui.height=n,!Wi.intersect(Ui)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new It(0,0,0,0)),e?It.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new It(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Object(g.extend)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Object(g.createObject)(zi,t)},e.prototype.useStyle=function(t){t[Fi]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Fi]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,$i)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Object(g.keys)(u),h=0;h<c.length;h++){(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f])}var d=Object(g.keys)(s);for(h=0;h<d.length;h++){var f=d[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?Gi:$i;for(h=0;h<p.length;h++){f=p[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Object(g.extend)(t,e),t},e.prototype.getAnimationStyleProps=function(){return Vi},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|Kt)),e}(Jn),Wi=new It(0,0,0,0),Ui=new It(0,0,0,0);var Yi=Hi,Xi=Math.min,qi=Math.max,Zi=Math.sin,Ki=Math.cos,Ji=2*Math.PI,Qi=v(),to=v(),eo=v();function no(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=Xi(i,r[0]),o=qi(o,r[0]),a=Xi(a,r[1]),s=qi(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function ro(t,e,n,r,i,o){i[0]=Xi(t,n),i[1]=Xi(e,r),o[0]=qi(t,n),o[1]=qi(e,r)}var io=[],oo=[];function ao(t,e,n,r,i,o,a,s,l,u){var c=_e,h=me,d=c(t,n,i,a,io);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var p=h(t,n,i,a,io[f]);l[0]=Xi(p,l[0]),u[0]=qi(p,u[0])}d=c(e,r,o,s,oo);for(f=0;f<d;f++){var g=h(e,r,o,s,oo[f]);l[1]=Xi(g,l[1]),u[1]=qi(g,u[1])}l[0]=Xi(t,l[0]),u[0]=qi(t,u[0]),l[0]=Xi(a,l[0]),u[0]=qi(a,u[0]),l[1]=Xi(e,l[1]),u[1]=qi(e,u[1]),l[1]=Xi(s,l[1]),u[1]=qi(s,u[1])}function so(t,e,n,r,i,o,a,s){var l=Oe,u=Ce,c=qi(Xi(l(t,n,i),1),0),h=qi(Xi(l(e,r,o),1),0),d=u(t,n,i,c),f=u(e,r,o,h);a[0]=Xi(t,i,d),a[1]=Xi(e,o,f),s[0]=qi(t,i,d),s[1]=qi(e,o,f)}function lo(t,e,n,r,i,o,a,s,l){var u=F,c=z,h=Math.abs(i-o);if(h%Ji<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(Qi[0]=Ki(i)*n+t,Qi[1]=Zi(i)*r+e,to[0]=Ki(o)*n+t,to[1]=Zi(o)*r+e,u(s,Qi,to),c(l,Qi,to),(i%=Ji)<0&&(i+=Ji),(o%=Ji)<0&&(o+=Ji),i>o&&!a?o+=Ji:i<o&&a&&(i+=Ji),a){var d=o;o=i,i=d}for(var f=0;f<o;f+=Math.PI/2)f>i&&(eo[0]=Ki(f)*n+t,eo[1]=Zi(f)*r+e,u(s,eo,s),c(l,eo,l))}var uo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},co=[],ho=[],fo=[],po=[],go=[],vo=[],mo=Math.min,yo=Math.max,bo=Math.cos,_o=Math.sin,xo=Math.abs,wo=Math.PI,So=2*wo,Co="undefined"!=typeof Float32Array,ko=[];function Oo(t){return Math.round(t/wo*1e8)/1e8%2*wo}function Mo(t,e){var n=Oo(t[0]);n<0&&(n+=So);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=So?i=n+So:e&&n-i>=So?i=n-So:!e&&n>i?i=n+(So-Oo(n-i)):e&&n<i&&(i=n-(So-Oo(i-n))),t[0]=n,t[1]=i}var Eo=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=xo(n/xn/t)||0,this._uy=xo(n/xn/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(uo.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=xo(t-this._xi),r=xo(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(uo.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(uo.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(uo.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),ko[0]=r,ko[1]=i,Mo(ko,o),r=ko[0];var a=(i=ko[1])-r;return this.addData(uo.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=bo(i)*n+t,this._yi=_o(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(uo.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(uo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Co||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Co&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Co&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){fo[0]=fo[1]=go[0]=go[1]=Number.MAX_VALUE,po[0]=po[1]=vo[0]=vo[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case uo.M:n=i=e[t++],r=o=e[t++],go[0]=i,go[1]=o,vo[0]=i,vo[1]=o;break;case uo.L:ro(n,r,e[t],e[t+1],go,vo),n=e[t++],r=e[t++];break;case uo.C:ao(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],go,vo),n=e[t++],r=e[t++];break;case uo.Q:so(n,r,e[t++],e[t++],e[t],e[t+1],go,vo),n=e[t++],r=e[t++];break;case uo.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],f=e[t++]+d;t+=1;var p=!e[t++];s&&(i=bo(d)*c+l,o=_o(d)*h+u),lo(l,u,c,h,d,f,p,go,vo),n=bo(f)*c+l,r=_o(f)*h+u;break;case uo.R:ro(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],go,vo);break;case uo.Z:n=i,r=o}F(fo,fo,go),z(po,po,vo)}return 0===t&&(fo[0]=fo[1]=po[0]=po[1]=0),new It(fo[0],fo[1],po[0]-fo[0],po[1]-fo[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],f=1===h;f&&(a=i=t[h],s=o=t[h+1]);var p=-1;switch(d){case uo.M:i=a=t[h++],o=s=t[h++];break;case uo.L:var g=t[h++],v=(b=t[h++])-o;(xo(T=g-i)>n||xo(v)>r||h===e-1)&&(p=Math.sqrt(T*T+v*v),i=g,o=b);break;case uo.C:var m=t[h++],y=t[h++],b=(g=t[h++],t[h++]),_=t[h++],x=t[h++];p=Se(i,o,m,y,g,b,_,x,10),i=_,o=x;break;case uo.Q:p=Te(i,o,m=t[h++],y=t[h++],g=t[h++],b=t[h++],10),i=g,o=b;break;case uo.A:var w=t[h++],S=t[h++],C=t[h++],k=t[h++],O=t[h++],M=t[h++],E=M+O;h+=1;t[h++];f&&(a=bo(O)*C+w,s=_o(O)*k+S),p=yo(C,k)*mo(So,Math.abs(M)),i=bo(E)*C+w,o=_o(E)*k+S;break;case uo.R:a=i=t[h++],s=o=t[h++],p=2*t[h++]+2*t[h++];break;case uo.Z:var T=a-i;v=s-o;p=Math.sqrt(T*T+v*v),i=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,v=e<1,m=0,y=0,b=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var x=d[_++],w=1===_;switch(w&&(n=i=d[_],r=o=d[_+1]),x!==uo.L&&b>0&&(t.lineTo(c,h),b=0),x){case uo.M:n=i=d[_++],r=o=d[_++],t.moveTo(i,o);break;case uo.L:a=d[_++],s=d[_++];var S=xo(a-i),C=xo(s-o);if(S>f||C>p){if(v){if(m+(X=l[y++])>u){var k=(u-m)/X;t.lineTo(i*(1-k)+a*k,o*(1-k)+s*k);break t}m+=X}t.lineTo(a,s),i=a,o=s,b=0}else{var O=S*S+C*C;O>b&&(c=a,h=s,b=O)}break;case uo.C:var M=d[_++],E=d[_++],T=d[_++],A=d[_++],I=d[_++],D=d[_++];if(v){if(m+(X=l[y++])>u){xe(i,M,T,I,k=(u-m)/X,co),xe(o,E,A,D,k,ho),t.bezierCurveTo(co[1],ho[1],co[2],ho[2],co[3],ho[3]);break t}m+=X}t.bezierCurveTo(M,E,T,A,I,D),i=I,o=D;break;case uo.Q:M=d[_++],E=d[_++],T=d[_++],A=d[_++];if(v){if(m+(X=l[y++])>u){Me(i,M,T,k=(u-m)/X,co),Me(o,E,A,k,ho),t.quadraticCurveTo(co[1],ho[1],co[2],ho[2]);break t}m+=X}t.quadraticCurveTo(M,E,T,A),i=T,o=A;break;case uo.A:var P=d[_++],L=d[_++],j=d[_++],N=d[_++],R=d[_++],B=d[_++],F=d[_++],z=!d[_++],V=j>N?j:N,$=xo(j-N)>.001,G=R+B,H=!1;if(v)m+(X=l[y++])>u&&(G=R+B*(u-m)/X,H=!0),m+=X;if($&&t.ellipse?t.ellipse(P,L,j,N,F,R,G,z):t.arc(P,L,V,R,G,z),H)break t;w&&(n=bo(R)*j+P,r=_o(R)*N+L),i=bo(G)*j+P,o=_o(G)*N+L;break;case uo.R:n=i=d[_],r=o=d[_+1],a=d[_++],s=d[_++];var W=d[_++],U=d[_++];if(v){if(m+(X=l[y++])>u){var Y=u-m;t.moveTo(a,s),t.lineTo(a+mo(Y,W),s),(Y-=W)>0&&t.lineTo(a+W,s+mo(Y,U)),(Y-=U)>0&&t.lineTo(a+yo(W-Y,0),s+U),(Y-=W)>0&&t.lineTo(a,s+yo(U-Y,0));break t}m+=X}t.rect(a,s,W,U);break;case uo.Z:if(v){var X;if(m+(X=l[y++])>u){k=(u-m)/X;t.lineTo(i*(1-k)+n*k,o*(1-k)+r*k);break t}m+=X}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=uo,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function To(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function Ao(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)&&we(t,e,n,r,i,o,a,s,u,c,null)<=h/2}function Io(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)&&Ee(t,e,n,r,i,o,s,l,null)<=u/2}var Do=2*Math.PI;function Po(t){return(t%=Do)<0&&(t+=Do),t}var Lo=2*Math.PI;function jo(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Lo<1e-4)return!0;if(o){var h=r;r=Po(i),i=Po(h)}else r=Po(r),i=Po(i);r>i&&(i+=Lo);var d=Math.atan2(l,s);return d<0&&(d+=Lo),d>=r&&d<=i||d+Lo>=r&&d+Lo<=i}function No(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Ro=Eo.CMD,Bo=2*Math.PI,Fo=1e-4;var zo=[-1,-1,-1],Vo=[-1,-1];function $o(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c,h=be(e,r,o,s,u,zo);if(0===h)return 0;for(var d=0,f=-1,p=void 0,g=void 0,v=0;v<h;v++){var m=zo[v],y=0===m||1===m?.5:1;me(t,n,i,a,m)<l||(f<0&&(f=_e(e,r,o,s,Vo),Vo[1]<Vo[0]&&f>1&&(void 0,c=Vo[0],Vo[0]=Vo[1],Vo[1]=c),p=me(e,r,o,s,Vo[0]),f>1&&(g=me(e,r,o,s,Vo[1]))),2===f?m<Vo[0]?d+=p<e?y:-y:m<Vo[1]?d+=g<p?y:-y:d+=s<g?y:-y:m<Vo[0]?d+=p<e?y:-y:d+=s<p?y:-y)}return d}function Go(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(ge(o))ve(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(ge(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=se(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(e,r,o,s,zo);if(0===l)return 0;var u=Oe(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Ce(e,r,o,u),d=0;d<l;d++){var f=0===zo[d]||1===zo[d]?.5:1;Ce(t,n,i,zo[d])<a||(zo[d]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}f=0===zo[0]||1===zo[0]?.5:1;return Ce(t,n,i,zo[0])<a?0:o<e?f:-f}function Ho(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);zo[0]=-l,zo[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Bo-1e-4){r=0,i=Bo;var c=o?1:-1;return a>=zo[0]+t&&a<=zo[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Bo,i+=Bo);for(var d=0,f=0;f<2;f++){var p=zo[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=Bo+g),(g>=r&&g<=i||g+Bo>=r&&g+Bo<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Wo(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,f=0,p=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===Ro.M&&v>1&&(n||(h+=No(d,f,p,g,r,i))),y&&(p=d=u[v],g=f=u[v+1]),m){case Ro.M:d=p=u[v++],f=g=u[v++];break;case Ro.L:if(n){if(To(d,f,u[v],u[v+1],e,r,i))return!0}else h+=No(d,f,u[v],u[v+1],r,i)||0;d=u[v++],f=u[v++];break;case Ro.C:if(n){if(Ao(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else h+=$o(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;d=u[v++],f=u[v++];break;case Ro.Q:if(n){if(Io(d,f,u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else h+=Go(d,f,u[v++],u[v++],u[v],u[v+1],r,i)||0;d=u[v++],f=u[v++];break;case Ro.A:var b=u[v++],_=u[v++],x=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var k=!!(1-u[v++]);o=Math.cos(S)*x+b,a=Math.sin(S)*w+_,y?(p=o,g=a):h+=No(d,f,o,a,r,i);var O=(r-b)*w/x+b;if(n){if(jo(b,_,w,S,S+C,k,e,O,i))return!0}else h+=Ho(b,_,w,S,S+C,k,O,i);d=Math.cos(S+C)*x+b,f=Math.sin(S+C)*w+_;break;case Ro.R:if(p=d=u[v++],g=f=u[v++],o=p+u[v++],a=g+u[v++],n){if(To(p,g,o,g,e,r,i)||To(o,g,o,a,e,r,i)||To(o,a,p,a,e,r,i)||To(p,a,p,g,e,r,i))return!0}else h+=No(o,g,o,a,r,i),h+=No(p,a,p,g,r,i);break;case Ro.Z:if(n){if(To(d,f,p,g,e,r,i))return!0}else h+=No(d,f,p,g,r,i);d=p,f=g}}return n||(s=f,l=g,Math.abs(s-l)<Fo)||(h+=No(d,f,p,g,r,i)||0),0!==h}var Uo=Object(g.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zi),Yo={style:Object(g.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Vi.style)},Xo=An.concat(["invisible","culling","z","z2","zlevel","parent"]),qo=function(t){function e(e){return t.call(this,e)||this}var n;return Object(f.__extends)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Xo.length;++s)i[Xo[s]]=this[Xo[s]];i.__dirty|=Kt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(g.keys)(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Object(g.extend)(this.style,a):this.useStyle(a):"shape"===o?Object(g.extend)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(g.isString)(t)){var e=Object(Pe.lum)(t,0);return e>.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(g.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(Pe.lum)(t,0)<wn)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Jt},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Eo(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&Jt)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return Wo(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Wo(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Jt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Object(g.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Jt)},e.prototype.createStyle=function(t){return Object(g.createObject)(Uo,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(g.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(g.extend)({},r.shape),Object(g.extend)(s,n.shape)):(s=Object(g.extend)({},i?this.shape:r.shape),Object(g.extend)(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(g.extend)({},this.shape);for(var u={},c=Object(g.keys)(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return Yo},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return Object(f.__extends)(n,e),n.prototype.getDefaultStyle=function(){return Object(g.clone)(t.style)},n.prototype.getDefaultShape=function(){return Object(g.clone)(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|Kt|Jt)),e}(Yi),Zo=Object(g.defaults)({strokeFirst:!0,font:Ln.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Uo),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(g.createObject)(Zo,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Bn(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Yi);Ko.prototype.type="tspan";var Jo=Ko,Qo=Object(g.defaults)({x:0,y:0},zi),ta={style:Object(g.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Vi.style)};var ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.createStyle=function(t){return Object(g.createObject)(Qo,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ta},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new It(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Yi);ea.prototype.type="image";var na=ea;var ra=Math.round;function ia(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ra(2*r)===ra(2*i)&&(t.x1=t.x2=aa(r,s,!0)),ra(2*o)===ra(2*a)&&(t.y1=t.y2=aa(o,s,!0)),t):t}}function oa(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=aa(r,s,!0),t.y=aa(i,s,!0),t.width=Math.max(aa(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(aa(i+a,s,!1)-t.y,0===a?0:1),t):t}}function aa(t,e,n){if(!e)return t;var r=ra(2*t);return(r+ra(e))%2==0?r/2:(r+(n?1:-1))/2}var sa=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),la={},ua=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new sa},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=oa(la,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(qo);ua.prototype.type="rect";var ca=ua,ha={fill:"#000"},da={style:Object(g.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Vi.style)},fa=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ha,n.attr(e),n}return Object(f.__extends)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,_a(t=this.style),Object(g.each)(t.rich,_a),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new It(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||ha},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Object(g.extend)(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Object(g.keys)(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Object(g.extend)(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return da},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Ln.a,n=t.padding,r=function(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=Vn(o),l=Object(g.retrieve2)(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width,d=(n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Bi(t,e.font,h,"breakAll"===r,0).lines:[]).length*l,f=Object(g.retrieve2)(e.height,d);if(d>f&&c){var p=Math.floor(f/l);n=n.slice(0,p)}if(t&&a&&null!=h)for(var v=Ti(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;m<n.length;m++)n[m]=Ai(n[m],v);var y=f,b=0;for(m=0;m<n.length;m++)b=Math.max(Nn(n[m],o),b);null==h&&(h=b);var _=b;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],h+=i[1]+i[3]),u&&(_=h),{lines:n,height:f,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:b,contentHeight:d,width:h}}(Ca(t),t),i=ka(t),o=!!t.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,h=this._defaultStyle,d=t.x||0,f=t.y||0,p=t.align||h.align||"left",v=t.verticalAlign||h.verticalAlign||"top",m=d,y=zn(f,r.contentHeight,v);if(i||n){var b=Fn(d,s,p),_=zn(f,a,v);i&&this._renderBackground(t,t,b,_,s,a)}y+=c/2,n&&(m=Sa(d,p,n),"top"===v?y+=n[0]:"bottom"===v&&(y-=n[2]));for(var x=0,w=!1,S=(wa("fill"in t?t.fill:(w=!0,h.fill))),C=(xa("stroke"in t?t.stroke:o||h.autoStroke&&!w?null:(x=2,h.stroke))),k=t.textShadowBlur>0,O=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=r.calculatedLineHeight,E=0;E<u.length;E++){var T=this._getOrCreateChild(Jo),A=T.createStyle();T.useStyle(A),A.text=u[E],A.x=m,A.y=y,p&&(A.textAlign=p),A.textBaseline="middle",A.opacity=t.opacity,A.strokeFirst=!0,k&&(A.shadowBlur=t.textShadowBlur||0,A.shadowColor=t.textShadowColor||"transparent",A.shadowOffsetX=t.textShadowOffsetX||0,A.shadowOffsetY=t.textShadowOffsetY||0),A.stroke=C,A.fill=S,C&&(A.lineWidth=t.lineWidth||x,A.lineDash=t.lineDash,A.lineDashOffset=t.lineDashOffset||0),A.font=e,ya(A,t),y+=c,O&&T.setBoundingRect(new It(Fn(A.x,t.width,A.textAlign),zn(A.y,M,A.textBaseline),l,M))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new Li;if(null!=t&&(t+=""),!t)return n;for(var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Mi.lastIndex=0;null!=(r=Mi.exec(t));){var u=r.index;u>l&&ji(n,t.substring(l,u),e,s),ji(n,r[2],e,s,r[1]),l=Mi.lastIndex}l<t.length&&ji(n,t.substring(l,t.length),e,s);var c=[],h=0,d=0,f=e.padding,p="truncate"===a,v="truncate"===e.lineOverflow;function m(t,e,n){t.width=e,t.lineHeight=n,h+=n,d=Math.max(d,e)}t:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],_=0,x=0,w=0;w<b.tokens.length;w++){var S=(P=b.tokens[w]).styleName&&e.rich[P.styleName]||{},C=P.textPadding=S.padding,k=C?C[1]+C[3]:0,O=P.font=S.font||e.font;P.contentHeight=Vn(O);var M=Object(g.retrieve2)(S.height,P.contentHeight);if(P.innerHeight=M,C&&(M+=C[0]+C[2]),P.height=M,P.lineHeight=Object(g.retrieve3)(S.lineHeight,e.lineHeight,M),P.align=S&&S.align||e.align,P.verticalAlign=S&&S.verticalAlign||"middle",v&&null!=o&&h+P.lineHeight>o){w>0?(b.tokens=b.tokens.slice(0,w),m(b,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var E=S.width,T=null==E||"auto"===E;if("string"==typeof E&&"%"===E.charAt(E.length-1))P.percentWidth=E,c.push(P),P.contentWidth=Nn(P.text,O);else{if(T){var A=S.backgroundColor,I=A&&A.image;I&&Oi(I=Si(I))&&(P.width=Math.max(P.width,I.width*M/I.height))}var D=p&&null!=i?i-x:null;null!=D&&D<P.width?!T||D<k?(P.text="",P.width=P.contentWidth=0):(P.text=Ei(P.text,D-k,O,e.ellipsis,{minChar:e.truncateMinChar}),P.width=P.contentWidth=Nn(P.text,O)):P.contentWidth=Nn(P.text,O)}P.width+=k,x+=P.width,S&&(_=Math.max(_,P.lineHeight))}m(b,x,_)}for(n.outerWidth=n.width=Object(g.retrieve2)(i,d),n.outerHeight=n.height=Object(g.retrieve2)(o,h),n.contentHeight=h,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),y=0;y<c.length;y++){var P,L=(P=c[y]).percentWidth;P.width=parseInt(L,10)/100*n.width}return n}(Ca(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign,h=Fn(a,r,u),d=zn(s,i,c),f=h,p=d;o&&(f+=o[3],p+=o[0]);var v=f+n;ka(t)&&this._renderBackground(t,t,h,d,r,i);for(var m=!!t.backgroundColor,y=0;y<e.lines.length;y++){for(var b=e.lines[y],_=b.tokens,x=_.length,w=b.lineHeight,S=b.width,C=0,k=f,O=v,M=x-1,E=void 0;C<x&&(!(E=_[C]).align||"left"===E.align);)this._placeToken(E,t,w,p,k,"left",m),S-=E.width,k+=E.width,C++;for(;M>=0&&"right"===(E=_[M]).align;)this._placeToken(E,t,w,p,O,"right",m),S-=E.width,O-=E.width,M--;for(k+=(n-(k-f)-(v-O)-S)/2;C<=M;)E=_[C],this._placeToken(E,t,w,p,k+E.width/2,"center",m),k+=E.width,C++;p+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2),!t.isLineHolder&&ka(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(i=Sa(i,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(Jo),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,v=!1,m=0,y=wa("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,p.fill)),b=xa("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||p.autoStroke&&!v?null:(m=2,p.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=i,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||Ln.a,f.opacity=Object(g.retrieve3)(s.opacity,e.opacity,1),ya(f,s),b&&(f.lineWidth=Object(g.retrieve3)(s.lineWidth,e.lineWidth,m),f.lineDash=Object(g.retrieve2)(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=b),y&&(f.fill=y);var x=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new It(Fn(f.x,x,f.textAlign),zn(f.y,w,f.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,f=u&&!d,p=t.borderRadius,v=this;if(f||t.lineHeight||c&&h){(a=this._getOrCreateChild(ca)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=Object(g.retrieve2)(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(na)).onload=function(){v.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=r,y.width=i,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=Object(g.retrieve2)(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var b=(a||s).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(g.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return ba(t)&&(e=[t.fontStyle,t.fontWeight,ma(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(g.trim)(e)||t.textFont||t.font},e}(Yi),pa={left:!0,right:1,center:1},ga={top:1,bottom:1,middle:1},va=["fontStyle","fontWeight","fontSize","fontFamily"];function ma(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Ln.c+"px":t+"px":t}function ya(t,e){for(var n=0;n<va.length;n++){var r=va[n],i=e[r];null!=i&&(t[r]=i)}}function ba(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function _a(t){if(t){t.font=fa.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||pa[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||ga[n]?n:"top",t.padding&&(t.padding=Object(g.normalizeCssArray)(t.padding))}}function xa(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function wa(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Sa(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ca(t){var e=t.text;return null!=e&&(e+=""),e}function ka(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Oa=fa,Ma=Qr(),Ea=function(t,e,n,r){if(r){var i=Ma(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse(function(r){var i=Ma(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e})}},Ta=1,Aa={},Ia=Qr(),Da=Qr(),Pa=0,La=1,ja=2,Na=["emphasis","blur","select"],Ra=["normal","emphasis","blur","select"],Ba=10,Fa=9,za="highlight",Va="downplay",$a="select",Ga="unselect",Ha="toggleSelect";function Wa(t){return null!=t&&"none"!==t}var Ua=new Pn.a(100);function Ya(t){if(Object(g.isString)(t)){var e=Ua.get(t);return e||(e=Pe.lift(t,-.1),Ua.put(t,e)),e}if(Object(g.isGradientObject)(t)){var n=Object(g.extend)({},t);return n.colorStops=Object(g.map)(t.colorStops,function(t){return{offset:t.offset,color:Pe.lift(t.color,-.1)}}),n}return t}function Xa(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function qa(t){Xa(t,"emphasis",ja)}function Za(t){t.hoverState===ja&&Xa(t,"normal",Pa)}function Ka(t){Xa(t,"blur",La)}function Ja(t){t.hoverState===La&&Xa(t,"normal",Pa)}function Qa(t){t.selected=!0}function ts(t){t.selected=!1}function es(t,e,n){e(t,n)}function ns(t,e,n){es(t,e,n),t.isGroup&&t.traverse(function(t){es(t,e,n)})}function rs(t,e){switch(e){case"emphasis":t.hoverState=ja;break;case"normal":t.hoverState=Pa;break;case"blur":t.hoverState=La;break;case"select":t.selected=!0}}function is(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&Object(g.indexOf)(n,"select")>=0,o=!1;if(t instanceof qo){var a=Ia(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Wa(s)||Wa(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=Object(g.extend)({},r),(u=Object(g.extend)({},u)).fill=s):!Wa(u.fill)&&Wa(s)?(o=!0,r=Object(g.extend)({},r),(u=Object(g.extend)({},u)).fill=Ya(s)):!Wa(u.stroke)&&Wa(l)&&(o||(r=Object(g.extend)({},r),u=Object(g.extend)({},u)),u.stroke=Ya(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(g.extend)({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:Ba)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=Object(g.indexOf)(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Object(g.extend)({},n),a=Object(g.extend)({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=Object(g.extend)({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:Fa)}return n}(this,0,n)}return n}function os(t){t.stateProxy=is;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=is),n&&(n.stateProxy=is)}function as(t,e){!ps(t,e)&&!t.__highByOuter&&ns(t,qa)}function ss(t,e){!ps(t,e)&&!t.__highByOuter&&ns(t,Za)}function ls(t,e){t.__highByOuter|=1<<(e||0),ns(t,qa)}function us(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ns(t,Za)}function cs(t){ns(t,Ka)}function hs(t){ns(t,Ja)}function ds(t){ns(t,Qa)}function fs(t){ns(t,ts)}function ps(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gs(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=Da(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(t){Ja(t)}),a&&n.push(i)),o.isBlured=!1}),Object(g.each)(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function vs(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&hs(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse(function(t){Ka(t)}),Object(g.isArrayLike)(e))o(t.getData(),e);else if(Object(g.isObject)(e))for(var c=Object(g.keys)(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Da(t).isBlured=!0}}),i.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function ms(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Da(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(t){Ka(t)})}}}function ys(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Ma(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function bs(t){var e=t.getAllData();Object(g.each)(e,function(e){var n=e.data,r=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,r)?ds(e):fs(e)})})}function _s(t,e,n){Os(t,!0),ns(t,os),ws(t,e,n)}function xs(t,e,n,r){r?function(t){Os(t,!1)}(t):_s(t,e,n)}function ws(t,e,n){var r=Ma(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Ss=["emphasis","blur","select"],Cs={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ks(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Ss.length;i++){var o=Ss[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[Cs[n]]()}}function Os(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ms(t){return!(!t||!t.__highDownDispatcher)}function Es(t){var e=t.type;return e===$a||e===Ga||e===Ha}function Ts(t){var e=t.type;return e===za||e===Va}var As=Eo.CMD,Is=[[],[],[]],Ds=Math.sqrt,Ps=Math.atan2;function Ls(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=As.M,h=As.C,d=As.L,f=As.R,p=As.A,g=As.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case d:r=1;break;case h:r=3;break;case g:r=2;break;case p:var v=e[4],m=e[5],y=Ds(e[0]*e[0]+e[1]*e[1]),b=Ds(e[2]*e[2]+e[3]*e[3]),_=Ps(-e[1]/b,e[0]/y);l[i]*=y,l[i++]+=v,l[i]*=b,l[i++]+=m,l[i++]*=y,l[i++]*=b,l[i++]+=_,l[i++]+=_,o=i+=2;break;case f:s[0]=l[i++],s[1]=l[i++],B(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],B(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var x=Is[a];x[0]=l[i++],x[1]=l[i++],B(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var js=Math.sqrt,Ns=Math.sin,Rs=Math.cos,Bs=Math.PI;function Fs(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function zs(t,e){return(t[0]*e[0]+t[1]*e[1])/(Fs(t)*Fs(e))}function Vs(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(zs(t,e))}function $s(t,e,n,r,i,o,a,s,l,u,c){var h=l*(Bs/180),d=Rs(h)*(t-n)/2+Ns(h)*(e-r)/2,f=-1*Ns(h)*(t-n)/2+Rs(h)*(e-r)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=js(p),s*=js(p));var g=(i===o?-1:1)*js((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,v=g*a*f/s,m=g*-s*d/a,y=(t+n)/2+Rs(h)*v-Ns(h)*m,b=(e+r)/2+Ns(h)*v+Rs(h)*m,_=Vs([1,0],[(d-v)/a,(f-m)/s]),x=[(d-v)/a,(f-m)/s],w=[(-1*d-v)/a,(-1*f-m)/s],S=Vs(x,w);if(zs(x,w)<=-1&&(S=Bs),zs(x,w)>=1&&(S=0),S<0){var C=Math.round(S/Bs*1e6)/1e6;S=2*Bs+C%2*Bs}c.addData(u,y,b,a,s,_,S,h,o)}var Gs=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Hs=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.applyTransform=function(t){},e}(qo);function Us(t){return null!=t.setData}function Ys(t,e){var n=function(t){var e=new Eo;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Eo.CMD,l=t.match(Gs);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(Hs)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var v=0;v<p;){var m=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,C=r,k=i,O=void 0,M=void 0;switch(h){case"l":r+=f[v++],i+=f[v++],d=s.L,e.addData(d,r,i);break;case"L":r=f[v++],i=f[v++],d=s.L,e.addData(d,r,i);break;case"m":r+=f[v++],i+=f[v++],d=s.M,e.addData(d,r,i),o=r,a=i,h="l";break;case"M":r=f[v++],i=f[v++],d=s.M,e.addData(d,r,i),o=r,a=i,h="L";break;case"h":r+=f[v++],d=s.L,e.addData(d,r,i);break;case"H":r=f[v++],d=s.L,e.addData(d,r,i);break;case"v":i+=f[v++],d=s.L,e.addData(d,r,i);break;case"V":i=f[v++],d=s.L,e.addData(d,r,i);break;case"C":d=s.C,e.addData(d,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),r=f[v-2],i=f[v-1];break;case"c":d=s.C,e.addData(d,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i),r+=f[v-2],i+=f[v-1];break;case"S":m=r,y=i,O=e.len(),M=e.data,n===s.C&&(m+=r-M[O-4],y+=i-M[O-3]),d=s.C,C=f[v++],k=f[v++],r=f[v++],i=f[v++],e.addData(d,m,y,C,k,r,i);break;case"s":m=r,y=i,O=e.len(),M=e.data,n===s.C&&(m+=r-M[O-4],y+=i-M[O-3]),d=s.C,C=r+f[v++],k=i+f[v++],r+=f[v++],i+=f[v++],e.addData(d,m,y,C,k,r,i);break;case"Q":C=f[v++],k=f[v++],r=f[v++],i=f[v++],d=s.Q,e.addData(d,C,k,r,i);break;case"q":C=f[v++]+r,k=f[v++]+i,r+=f[v++],i+=f[v++],d=s.Q,e.addData(d,C,k,r,i);break;case"T":m=r,y=i,O=e.len(),M=e.data,n===s.Q&&(m+=r-M[O-4],y+=i-M[O-3]),r=f[v++],i=f[v++],d=s.Q,e.addData(d,m,y,r,i);break;case"t":m=r,y=i,O=e.len(),M=e.data,n===s.Q&&(m+=r-M[O-4],y+=i-M[O-3]),r+=f[v++],i+=f[v++],d=s.Q,e.addData(d,m,y,r,i);break;case"A":b=f[v++],_=f[v++],x=f[v++],w=f[v++],S=f[v++],$s(C=r,k=i,r=f[v++],i=f[v++],w,S,b,_,x,d=s.A,e);break;case"a":b=f[v++],_=f[v++],x=f[v++],w=f[v++],S=f[v++],$s(C=r,k=i,r+=f[v++],i+=f[v++],w,S,b,_,x,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),r=o,i=a),n=d}return e.toStatic(),e}(t),r=Object(g.extend)({},e);return r.buildPath=function(t){if(Us(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Ls(n,t),this.dirtyShape()},r}function Xs(t,e){return new Ws(Ys(t,e))}function qs(t,e){e=e||{};var n=new qo;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Ls(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Zs=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),Ks=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Zs},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(qo);Ks.prototype.type="circle";var Js=Ks,Qs=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),tl=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Qs},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(qo);tl.prototype.type="ellipse";var el=tl,nl=Math.PI,rl=2*nl,il=Math.sin,ol=Math.cos,al=Math.acos,sl=Math.atan2,ll=Math.abs,ul=Math.sqrt,cl=Math.max,hl=Math.min,dl=1e-4;function fl(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/ul(s*s+l*l),c=u*l,h=-u*s,d=t+c,f=e+h,p=n+c,g=r+h,v=(d+p)/2,m=(f+g)/2,y=p-d,b=g-f,_=y*y+b*b,x=i-o,w=d*g-p*f,S=(b<0?-1:1)*ul(cl(0,x*x*_-w*w)),C=(w*b-y*S)/_,k=(-w*y-b*S)/_,O=(w*b+y*S)/_,M=(-w*y+b*S)/_,E=C-v,T=k-m,A=O-v,I=M-m;return E*E+T*T>A*A+I*I&&(C=O,k=M),{cx:C,cy:k,x0:-c,y0:-h,x1:C*(i/x-1),y1:k*(i/x-1)}}function pl(t,e){var n,r=cl(e.r,0),i=cl(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=ll(l-s),f=d>rl&&d%rl;if(f>dl&&(d=f),r>dl)if(d>rl-dl)t.moveTo(u+r*ol(s),c+r*il(s)),t.arc(u,c,r,s,l,!h),i>dl&&(t.moveTo(u+i*ol(l),c+i*il(l)),t.arc(u,c,i,l,s,h));else{var p=void 0,v=void 0,m=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,C=void 0,k=void 0,O=void 0,M=void 0,E=void 0,T=void 0,A=void 0,I=r*ol(s),D=r*il(s),P=i*ol(l),L=i*il(l),j=d>dl;if(j){var N=e.cornerRadius;N&&(p=(n=function(t){var e;if(Object(g.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N))[0],v=n[1],m=n[2],y=n[3]);var R=ll(r-i)/2;if(b=hl(R,m),_=hl(R,y),x=hl(R,p),w=hl(R,v),k=S=cl(b,_),O=C=cl(x,w),(S>dl||C>dl)&&(M=r*ol(l),E=r*il(l),T=i*ol(s),A=i*il(s),d<nl)){var B=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=h*l-c*u;if(!(d*d<dl))return[t+(d=(c*(e-o)-h*(t-i))/d)*l,e+d*u]}(I,D,T,A,M,E,P,L);if(B){var F=I-B[0],z=D-B[1],V=M-B[0],$=E-B[1],G=1/il(al((F*V+z*$)/(ul(F*F+z*z)*ul(V*V+$*$)))/2),H=ul(B[0]*B[0]+B[1]*B[1]);k=hl(S,(r-H)/(G+1)),O=hl(C,(i-H)/(G-1))}}}if(j)if(k>dl){var W=hl(m,k),U=hl(y,k),Y=fl(T,A,I,D,r,W,h),X=fl(M,E,P,L,r,U,h);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),k<S&&W===U?t.arc(u+Y.cx,c+Y.cy,k,sl(Y.y0,Y.x0),sl(X.y0,X.x0),!h):(W>0&&t.arc(u+Y.cx,c+Y.cy,W,sl(Y.y0,Y.x0),sl(Y.y1,Y.x1),!h),t.arc(u,c,r,sl(Y.cy+Y.y1,Y.cx+Y.x1),sl(X.cy+X.y1,X.cx+X.x1),!h),U>0&&t.arc(u+X.cx,c+X.cy,U,sl(X.y1,X.x1),sl(X.y0,X.x0),!h))}else t.moveTo(u+I,c+D),t.arc(u,c,r,s,l,!h);else t.moveTo(u+I,c+D);if(i>dl&&j)if(O>dl){W=hl(p,O),Y=fl(P,L,M,E,i,-(U=hl(v,O)),h),X=fl(I,D,T,A,i,-W,h);t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),O<C&&W===U?t.arc(u+Y.cx,c+Y.cy,O,sl(Y.y0,Y.x0),sl(X.y0,X.x0),!h):(U>0&&t.arc(u+Y.cx,c+Y.cy,U,sl(Y.y0,Y.x0),sl(Y.y1,Y.x1),!h),t.arc(u,c,i,sl(Y.cy+Y.y1,Y.cx+Y.x1),sl(X.cy+X.y1,X.cx+X.x1),h),W>0&&t.arc(u+X.cx,c+X.cy,W,sl(X.y1,X.x1),sl(X.y0,X.x0),!h))}else t.lineTo(u+P,c+L),t.arc(u,c,i,l,s,h);else t.lineTo(u+P,c+L)}else t.moveTo(u,c);t.closePath()}}}var gl=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),vl=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new gl},e.prototype.buildPath=function(t,e){pl(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(qo);vl.prototype.type="sector";var ml=vl,yl=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),bl=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new yl},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(qo);bl.prototype.type="ring";var _l=bl;function xl(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)F(a,a,t[d]),z(s,s,t[d]);F(a,a,r[0]),z(s,s,r[1])}for(d=0,f=t.length;d<f;d++){var p=t[d];if(n)i=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(y(t[d]));continue}i=t[d-1],o=t[d+1]}w(u,o,i),A(u,u,e);var g=D(p,i),v=D(p,o),m=g+v;0!==m&&(g/=m,v/=m),A(c,u,-g),A(h,u,v);var b=_([],p,c),x=_([],p,h);r&&(z(b,b,a),F(b,b,s),z(x,x,a),F(x,x,s)),l.push(b),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var wl=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Sl=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new wl},e.prototype.buildPath=function(t,e){xl(t,e,!0)},e}(qo);Sl.prototype.type="polygon";var Cl=Sl,kl=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Ol=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kl},e.prototype.buildPath=function(t,e){xl(t,e,!1)},e}(qo);Ol.prototype.type="polyline";var Ml=Ol,El={},Tl=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),Al=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Tl},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ia(El,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(qo);Al.prototype.type="line";var Il=Al,Dl=[],Pl=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function Ll(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?ye:me)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?ye:me)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ke:Ce)(t.x1,t.cpx1,t.x2,e),(n?ke:Ce)(t.y1,t.cpy1,t.y2,e)]}var jl=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Pl},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(Me(n,a,i,c,Dl),a=Dl[1],i=Dl[2],Me(r,s,o,c,Dl),s=Dl[1],o=Dl[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(xe(n,a,l,i,c,Dl),a=Dl[1],l=Dl[2],i=Dl[3],xe(r,s,u,o,c,Dl),s=Dl[1],u=Dl[2],o=Dl[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Ll(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Ll(this.shape,t,!0);return I(e,e)},e}(qo);jl.prototype.type="bezier-curve";var Nl=jl,Rl=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),Bl=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Rl},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(qo);Bl.prototype.type="arc";var Fl=Bl,zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Object(f.__extends)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),qo.prototype.getBoundingRect.call(this)},e}(qo),Vl=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),$l=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Object(f.__extends)(e,t),e}(Vl),Gl=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(f.__extends)(e,t),e}(Vl),Hl=[0,0],Wl=[0,0],Ul=new wt,Yl=new wt,Xl=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new wt;for(n=0;n<2;n++)this._axes[n]=new wt;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);wt.sub(r[0],n[1],n[0]),wt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return Ul.set(1/0,1/0),Yl.set(0,0),!this._intersectCheckOneSide(this,t,Ul,Yl,r,1)&&(n=!1,r)?n:!this._intersectCheckOneSide(t,this,Ul,Yl,r,-1)&&(n=!1,r)?n:(r||wt.copy(e,n?Ul:Yl),n)},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Hl),this._getProjMinMaxOnAxis(s,e._corners,Wl),Hl[1]<Wl[0]||Hl[0]>Wl[1]){if(a=!1,i)return a;var u=Math.abs(Wl[0]-Hl[1]),c=Math.abs(Hl[0]-Wl[1]);Math.min(u,c)>r.len()&&(u<c?wt.scale(r,l,-u*o):wt.scale(r,l,c*o))}else if(n){u=Math.abs(Wl[0]-Hl[1]),c=Math.abs(Hl[0]-Wl[1]);Math.min(u,c)<n.len()&&(u<c?wt.scale(n,l,u*o):wt.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),ql=[],Zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Object(f.__extends)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new It(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(ql)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(Yi),Kl=Qr();function Jl(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=Object(g.retrieve2)(r.duration,200),u=Object(g.retrieve2)(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),Object(g.isFunction)(c)&&(c=c(n,i)),Object(g.isFunction)(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function Ql(t,e,n,r,i,o,a){var s,l=!1;Object(g.isFunction)(i)?(a=o,o=i,i=null):Object(g.isObject)(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=Jl(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,f=c.easing,p={duration:h,delay:d||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function tu(t,e,n,r,i,o){Ql("update",t,e,n,r,i,o)}function eu(t,e,n,r,i,o){Ql("enter",t,e,n,r,i,o)}function nu(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function ru(t,e,n,r,i,o){nu(t)||Ql("leave",t,e,n,r,i,o)}function iu(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),ru(t,{style:{opacity:0}},e,n,r)}function ou(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||iu(t,e,n,r)}):iu(t,e,n,r)}function au(t){Kl(t).oldStyle=t.style}var su=Math.max,lu=Math.min,uu={};function cu(t){return qo.extend(t)}var hu=function(t,e){var n=Ys(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Object(f.__extends)(e,t),e}(Ws)};function du(t,e){return hu(t,e)}function fu(t,e){uu[t]=e}function pu(t){if(uu.hasOwnProperty(t))return uu[t]}function gu(t,e,n,r){var i=Xs(t,e);return n&&("center"===r&&(n=mu(n,i.getBoundingRect())),bu(i,n)),i}function vu(t,e,n){var r=new na({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(mu(e,i))}}});return r}function mu(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var yu=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new qo(e);return a.createPathProxy(),a.buildPath=function(t){if(Us(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function bu(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function _u(t,e){return ia(t,t,{lineWidth:e}),t}function xu(t){return oa(t.shape,t.shape,t.style),t}var wu=aa;function Su(t,e){for(var n=pt([]);t&&t!==e;)vt(n,t.getLocalTransform(),n),t=t.parent;return n}function Cu(t,e,n){return e&&!Object(g.isArrayLike)(e)&&(e=Dn.getLocalTransform(e)),n&&(e=_t([],e)),B([],t,e)}function ku(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Cu(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ou(t){return!t.isGroup}function Mu(t,e,n){if(t&&e){var r,i=(r={},t.traverse(function(t){Ou(t)&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(Ou(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),tu(t,r,n,Ma(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(g.extend)({},t.shape)),e}}function Eu(t,e){return Object(g.map)(t,function(t){var n=t[0];n=su(n,e.x),n=lu(n,e.x+e.width);var r=t[1];return r=su(r,e.y),[n,r=lu(r,e.y+e.height)]})}function Tu(t,e){var n=su(t.x,e.x),r=lu(t.x+t.width,e.x+e.width),i=su(t.y,e.y),o=lu(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Au(t,e,n){var r=Object(g.extend)({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(g.defaults)(i,n),new na(r)):gu(t.replace("path://",""),r,n,"center")}function Iu(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Du(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Du(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,h=a-i,d=s-o,f=Pu(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=t-i,g=e-o,v=Pu(p,g,u,c)/f;if(v<0||v>1)return!1;var m=Pu(p,g,h,d)/f;return!(m<0||m>1)}function Pu(t,e,n,r){return t*r-n*e}function Lu(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(g.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(g.each)(Object(g.keys)(l),function(t){Object(g.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Ma(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(g.defaults)({content:r,formatterParams:s},i)}}function ju(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Nu(t,e){if(t)if(Object(g.isArray)(t))for(var n=0;n<t.length;n++)ju(t[n],e);else ju(t,e)}fu("circle",Js),fu("ellipse",el),fu("sector",ml),fu("ring",_l),fu("polygon",Cl),fu("polyline",Ml),fu("rect",ca),fu("line",Il),fu("bezierCurve",Nl),fu("arc",Fl);var Ru={};function Bu(t,e){for(var n=0;n<Na.length;n++){var r=Na[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Fu(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(g.isFunction)(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<Na.length;u++){var c=Na[u],h=e[c];l[c]=Object(g.retrieve2)(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function zu(t,e,n,r){n=n||Ru;for(var i=t instanceof Oa,o=!1,a=0;a<Ra.length;a++){if((d=e[Ra[a]])&&d.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new Oa,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Fu(n,e),u=e.normal,c=!!u.getShallow("show"),h=$u(u,r&&r.normal,n,!1,!i);h.text=l.normal,i||t.setTextConfig(Gu(u,n,!1));for(a=0;a<Na.length;a++){var d,f=Na[a];if(d=e[f]){var p=s.ensureState(f),v=!!Object(g.retrieve2)(d.getShallow("show"),c);if(v!==c&&(p.ignore=!v),p.style=$u(d,r&&r[f],n,!0,!i),p.style.text=l[f],!i)t.ensureState(f).textConfig=Gu(d,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(qu(s).setLabelText=function(t){var r=Fu(n,e,t);Bu(s,r)})}else s&&(s.ignore=!0);t.dirty()}function Vu(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Na.length;r++){var i=Na[r];n[i]=t.getModel([i,e])}return n}function $u(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||Ru;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Ru).rich;if(n){e=e||{};for(var r=Object(g.keys)(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Yu(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d);Yu(t,e,s,n,r,i,!0,!1)}(o,t,n,r,i),e&&Object(g.extend)(o,e),o}function Gu(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=Object(g.retrieve2)(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Hu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Wu=["align","lineHeight","width","height","tag","verticalAlign"],Uu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Yu(t,e,n,r,i,o,a,s){n=!i&&n||Ru;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Object(g.retrieve2)(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var d=Object(g.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(t.lineWidth=d);var f=Object(g.retrieve2)(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var p=Object(g.retrieve2)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(t.lineDashOffset=p),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var v=0;v<Hu.length;v++){var m=Hu[v];null!=(b=Object(g.retrieve2)(e.getShallow(m),n[m]))&&(t[m]=b)}for(v=0;v<Wu.length;v++){m=Wu[v];null!=(b=e.getShallow(m))&&(t[m]=b)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!r.disableBox){for(v=0;v<Uu.length;v++){var b;m=Uu[v];null!=(b=e.getShallow(m))&&(t[m]=b)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Xu(t,e){var n=e&&e.getModel("textStyle");return Object(g.trim)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var qu=Qr();function Zu(t,e,n,r){if(t){var i=qu(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function Ku(t,e,n,r,i){var o=qu(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(g.retrieve2)(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?eu:tu)(t,{percent:1},r,e,null,function(r){var u=li(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=Fu({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);Bu(t,c)})}}var Ju,Qu,tc=["textStyle","color"],ec=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],nc=new Oa,rc=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(tc):null)},t.prototype.getFont=function(){return Xu({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ec.length;n++)e[ec[n]]=this.getShallow(ec[n]);return nc.useStyle(e),nc.update(),nc.getBoundingRect()},t}(),ic=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],oc=bi(ic),ac=function(){function t(){}return t.prototype.getLineStyle=function(t){return oc(this,t)},t}(),sc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lc=bi(sc),uc=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return lc(this,t,e)},t}(),cc=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Object(g.merge)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Object(g.clone)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!p.a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();fi(cc),Ju=cc,Qu=["__\0is_clz",gi++].join("_"),Ju.prototype[Qu]=!0,Ju.isInstance=function(t){return!(!t||!t[Qu])},Object(g.mixin)(cc,ac),Object(g.mixin)(cc,uc),Object(g.mixin)(cc,xi),Object(g.mixin)(cc,rc);var hc=cc,dc=Math.round(10*Math.random());function fc(t){return[t||"",dc++].join("_")}function pc(t,e){return g.merge(g.merge({},t,!0),e,!0)}var gc="ZH",vc="EN",mc=vc,yc={},bc={},_c=p.a.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(gc)>-1?gc:mc;function xc(t,e){t=t.toUpperCase(),bc[t]=new hc(e),yc[t]=e}function wc(t){return bc[t]}xc(vc,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),xc(gc,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Sc=1e3,Cc=60*Sc,kc=60*Cc,Oc=24*kc,Mc=365*Oc,Ec={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Tc={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Ec.hour,minute:"{yyyy}-{MM}-{dd} "+Ec.minute,second:"{yyyy}-{MM}-{dd} "+Ec.second,millisecond:Ec.none},Ac=["year","month","day","hour","minute","second","millisecond"],Ic=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dc(t,e){return"0000".substr(0,e-(t+="").length)+t}function Pc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Lc(t,e,n,r){var i=Or(t),o=i[Rc(n)](),a=i[Bc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Fc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[zc(n)](),h=(c-1)%12+1,d=i[Vc(n)](),f=i[$c(n)](),p=i[Gc(n)](),g=(r instanceof hc?r:wc(r||_c)||bc[mc]).getModel("time"),v=g.get("month"),m=g.get("monthAbbr"),y=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Dc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Dc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Dc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Dc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Dc(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Dc(p,3)).replace(/{S}/g,p+"")}function jc(t,e){var n=Or(t),r=n[Bc(e)]()+1,i=n[Fc(e)](),o=n[zc(e)](),a=n[Vc(e)](),s=n[$c(e)](),l=0===n[Gc(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===i;return d&&1===r?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Nc(t,e,n){var r=g.isNumber(t)?Or(t):t;switch(e=e||jc(t,n)){case"year":return r[Rc(n)]();case"half-year":return r[Bc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Bc(n)]()+1)/4);case"month":return r[Bc(n)]();case"day":return r[Fc(n)]();case"half-day":return r[zc(n)]()/24;case"hour":return r[zc(n)]();case"minute":return r[Vc(n)]();case"second":return r[$c(n)]();case"millisecond":return r[Gc(n)]()}}function Rc(t){return t?"getUTCFullYear":"getFullYear"}function Bc(t){return t?"getUTCMonth":"getMonth"}function Fc(t){return t?"getUTCDate":"getDate"}function zc(t){return t?"getUTCHours":"getHours"}function Vc(t){return t?"getUTCMinutes":"getMinutes"}function $c(t){return t?"getUTCSeconds":"getSeconds"}function Gc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Hc(t){return t?"setUTCFullYear":"setFullYear"}function Wc(t){return t?"setUTCMonth":"setMonth"}function Uc(t){return t?"setUTCDate":"setDate"}function Yc(t){return t?"setUTCHours":"setHours"}function Xc(t){return t?"setUTCMinutes":"setMinutes"}function qc(t){return t?"setUTCSeconds":"setSeconds"}function Zc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Kc(t,e,n,r,i,o,a,s){return new Oa({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function Jc(t){if(!Pr(t))return g.isString(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Qc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var th=g.normalizeCssArray;function eh(t,e,n){function r(t){return t&&g.trim(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Or(t):t;if(!isNaN(+s))return Lc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return g.isStringSafe(t)?r(t):g.isNumber(t)&&i(t)?t+"":"-";var l=Dr(t);return i(l)?Jc(l):g.isStringSafe(t)?r(t):"boolean"==typeof t?t+"":"-"}var nh=["a","b","c","d","e","f","g"],rh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function ih(t,e,n){g.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=nh[o];t=t.replace(rh(a),rh(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(rh(nh[l],s),n?Q(u):u)}return t}function oh(t,e){var n=g.isString(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Q(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Q(r)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}function ah(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Or(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",Dc(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Dc(o%100+"",2)).replace("dd",Dc(s,2)).replace("d",s).replace("hh",Dc(l,2)).replace("h",l).replace("mm",Dc(u,2)).replace("m",u).replace("ss",Dc(c,2)).replace("s",c).replace("SSS",Dc(h,3))}function sh(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function lh(t,e){return e=e||"transparent",g.isString(t)?t:g.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function uh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var ch=g.each,hh=["left","right","top","bottom","width","height"],dh=[["width","left","right"],["height","top","bottom"]];function fh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(p?-p.y+d.y:0);(h=a+v)>i||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}var ph=fh;g.curry(fh,"vertical"),g.curry(fh,"horizontal");function gh(t,e,n){n=th(n||0);var r=e.width,i=e.height,o=fr(t.left,r),a=fr(t.top,i),s=fr(t.right,r),l=fr(t.bottom,i),u=fr(t.width,r),c=fr(t.height,i),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var p=new It(o+n[3],a+n[0],u,c);return p.margin=n,p}function vh(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new It(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=gh(g.defaults({width:a.width,height:a.height},e),n,r),d=s?h.x-a.x:0,f=l?h.y-a.y:0;return"raw"===u?(o.x=d,o.y=f):(o.x+=d,o.y+=f),o===t&&t.markRedraw(),!0}function mh(t){var e=t.layoutMode||t.constructor.layoutMode;return g.isObject(e)?e:e?{type:e}:null}function yh(t,e,n){var r=n&&n.ignoreSize;!g.isArray(r)&&(r=[r,r]);var i=a(dh[0],0),o=a(dh[1],1);function a(n,i){var o={},a=0,u={},c=0;if(ch(n,function(e){u[e]=t[e]}),ch(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++}),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h<n.length;h++){var d=n[h];if(!s(o,d)&&s(t,d)){o[d]=t[d];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){ch(t,function(t){e[t]=n[t]})}u(dh[0],t,i),u(dh[1],t,o)}function bh(t){return _h({},t)}function _h(t,e){return e&&t&&ch(hh,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var xh=Qr(),wh=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=fc("ec_cpt_model"),i}var n;return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=mh(this),r=n?bh(t):{},i=e.getTheme();g.merge(t,i.get(this.mainType)),g.merge(t,this.getDefaultOption()),n&&yh(t,r,n)},e.prototype.mergeOption=function(t,e){g.merge(this.option,t,!0);var n=mh(this);n&&yh(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[hi])}(t))return t.defaultOption;var e=xh(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=g.merge(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return oi(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(hc);pi(wh,hc),yi(wh),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=di(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=di(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(wh),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,i,o){if(t.length){var a=function(t){var r={},i=[];return g.each(t,function(o){var a=n(r,o),s=function(t,e){var n=[];return g.each(t,function(t){g.indexOf(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),g.each(s,function(t){g.indexOf(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);g.indexOf(e.successor,t)<0&&e.successor.push(o)})}),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(g.each(t,function(t){u[t]=!0});l.length;){var c=l.pop(),h=s[c],d=!!u[c];d&&(i.call(o,c,h.originalDeps.slice()),delete u[c]),g.each(h.successor,d?p:f)}g.each(u,function(){var t="";throw new Error(t)})}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}(wh,function(t){var e=[];g.each(wh.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g.map(e,function(t){return di(t).main}),"dataset"!==t&&g.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e});var Sh=wh,Ch="";"undefined"!=typeof navigator&&(Ch=navigator.platform||"");var kh="rgba(0, 0, 0, 0.2)",Oh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:kh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:kh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:kh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:kh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:kh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:kh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ch.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Mh=Object(g.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eh="original",Th="arrayRows",Ah="objectRows",Ih="keyedColumns",Dh="typedArray",Ph="unknown",Lh="column",jh="row",Nh={Must:1,Might:2,Not:3},Rh=Qr();function Bh(t,e,n){var r={},i=zh(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Rh(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(g.each)(t,function(e,n){var i=Object(g.isObject)(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function p(t){var e=t.dimsDef;return e?e.length:1}return Object(g.each)(t,function(t,e){var n=t.name,i=p(t);if(null==o){var a=d.valueWayDim;f(r[n],a,i),f(l,a,i),d.valueWayDim+=i}else if(o===e)f(r[n],0,i),f(s,0,i);else{a=d.categoryWayDim;f(r[n],a,i),f(l,a,i),d.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Fh(t,e,n){var r={};if(!zh(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;o!==Ah&&o!==Ih||Object(g.each)(a,function(t,e){"name"===(Object(g.isObject)(t)?t.name:t)&&(i=e)});var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=$h(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===Nh.Not;if(h&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===Nh.Not)&&(t.n=l),d(t)&&s[t.n]!==Nh.Not)return t;h||(c===Nh.Might&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function zh(t){if(!t.get("data",!0))return oi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ri).models[0]}function Vh(t,e){return $h(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function $h(t,e,n,r,i,o){var a,s,l;if(Object(g.isTypedArray)(t))return Nh.Not;if(r){var u=r[o];Object(g.isObject)(u)?(s=u.name,l=u.type):Object(g.isString)(u)&&(s=u)}if(null!=l)return"ordinal"===l?Nh.Must:Nh.Not;if(e===Th){var c=t;if(n===jh){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=_(h[i+d])))return a}else for(d=0;d<c.length&&d<5;d++){var f=c[i+d];if(f&&null!=(a=_(f[o])))return a}}else if(e===Ah){var p=t;if(!s)return Nh.Not;for(d=0;d<p.length&&d<5;d++){if((y=p[d])&&null!=(a=_(y[s])))return a}}else if(e===Ih){var v=t;if(!s)return Nh.Not;if(!(h=v[s])||Object(g.isTypedArray)(h))return Nh.Not;for(d=0;d<h.length&&d<5;d++)if(null!=(a=_(h[d])))return a}else if(e===Eh){var m=t;for(d=0;d<m.length&&d<5;d++){var y,b=Hr(y=m[d]);if(!Object(g.isArray)(b))return Nh.Not;if(null!=(a=_(b[o])))return a}}function _(t){var e=Object(g.isString)(t);return null!=t&&isFinite(t)&&""!==t?e?Nh.Might:Nh.Not:e&&"-"!==t?Nh.Must:void 0}return Nh.Not}var Gh=Object(g.createHashMap)();var Hh,Wh,Uh,Yh=Qr(),Xh=Qr(),qh=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Vr(this.get("color",!0)),i=this.get("colorLayer",!0);return Kh(this,Yh,r,i,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=Yh)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function Zh(t,e,n,r){var i=Vr(t.get(["aria","decal","decals"]));return Kh(t,Xh,i,null,e,n,r)}function Kh(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}var Jh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new hc(r),this._locale=new hc(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=ed(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,ed(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Uh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(g.each)(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(g.createHashMap)(),s=e&&e.replaceMergeMainTypeMap;Rh(this).datasetMap=Object(g.createHashMap)(),Object(g.each)(t,function(t,e){null!=t&&(Sh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(g.clone)(t):Object(g.merge)(n[e],t,!0))}),s&&s.each(function(t,e){Sh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),Sh.topologicalTravel(o,Sh.getAllClassMainTypes(),function(e){var o=function(t,e,n){var r=Gh.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,Vr(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Ur(a,o,l);(function(t,e,n){Object(g.each)(t,function(t){var r=t.newOption;Object(g.isObject)(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))})})(u,e,Sh),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],d=[],f=0;Object(g.each)(u,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=Sh.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(g.extend)({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(g.extend)(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),f++):(h.push(void 0),d.push(void 0))},this),n[e]=h,r.set(e,d),i.set(e,f),"series"===e&&Hh(this)},this),this._seriesIndices||Hh(this)},e.prototype.getOption=function(){var t=Object(g.clone)(this.option);return Object(g.each)(t,function(e,n){if(Sh.hasClass(n)){for(var r=Vr(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Kr(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Object(g.each)(Vr(r),function(t){a[t]&&n.push(a[t])})):n=null!=i?Qh("id",i,a):null!=o?Qh("name",o,a):Object(g.filter)(a,function(t){return!!t}),td(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:s,index:e[n],id:e[r],name:e[i]}),u=l?this.queryComponents(l):Object(g.filter)(this._componentsMap.get(s),function(t){return!!t});return o=td(u,t),t.filter?Object(g.filter)(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Object(g.isFunction)(t)){var i=e,o=t;r.each(function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}})}else for(var a=Object(g.isString)(t)?r.get(t):Object(g.isObject)(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=qr(t,null);return Object(g.filter)(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(g.filter)(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return Object(g.filter)(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Wh(this),Object(g.each)(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)},this)},e.prototype.eachRawSeries=function(t,e){Object(g.each)(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){Wh(this),Object(g.each)(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(g.each)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Wh(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Wh(this);var n=[];Object(g.each)(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Object(g.createHashMap)(n)},e.prototype.restoreData=function(t){Hh(this);var e=this._componentsMap,n=[];e.each(function(t,e){Sh.hasClass(e)&&n.push(e)}),Sh.topologicalTravel(n,Sh.getAllClassMainTypes(),function(n){Object(g.each)(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()})})},e.internalField=(Hh=function(t){var e=t._seriesIndices=[];Object(g.each)(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Object(g.createHashMap)(e)},Wh=function(t){},void(Uh=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=Object(g.createHashMap)({series:[]}),t._componentsCount=Object(g.createHashMap)();var n,r,i,o=e.aria;Object(g.isObject)(o)&&null==o.enabled&&(o.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,Object(g.each)(r,function(t,e){"colorLayer"===e&&i||Sh.hasClass(e)||("object"==typeof t?n[e]=n[e]?Object(g.merge)(n[e],t,!1):Object(g.clone)(t):null==n[e]&&(n[e]=t))}),Object(g.merge)(e,Oh,!1),t._mergeOption(e,null)})),e}(hc);function Qh(t,e,n){if(Object(g.isArray)(e)){var r=Object(g.createHashMap)();return Object(g.each)(e,function(t){null!=t&&(null!=qr(t,null)&&r.set(t,!0))}),Object(g.filter)(n,function(e){return e&&r.get(e[t])})}var i=qr(e,null);return Object(g.filter)(n,function(e){return e&&null!=i&&e[t]===i})}function td(t,e){return e.hasOwnProperty("subType")?Object(g.filter)(t,function(t){return t&&t.subType===e.subType}):t}function ed(t){var e=Object(g.createHashMap)();return t&&Object(g.each)(Vr(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Object(g.mixin)(Jh,qh);var nd=Jh,rd=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],id=function(){return function(t){g.each(rd,function(e){this[e]=g.bind(t[e],t)},this)}}(),od={},ad=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];g.each(od,function(r,i){var o=r.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){g.each(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){od[t]=e},t.get=function(t){return od[t]},t}(),sd=/^(min|max)?(.+)$/;function ld(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Object(g.each)(t,function(t,e){var n=e.match(sd);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[a],t,o)||(i=!1)}}),i}var ud=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(g.each)(Vr(t.series),function(t){t&&t.data&&Object(g.isTypedArray)(t.data)&&Object(g.setAsPrimitive)(t.data)}),Object(g.each)(Vr(t.dataset),function(t){t&&t.source&&Object(g.isTypedArray)(t.source)&&Object(g.setAsPrimitive)(t.source)})),t=Object(g.clone)(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((h||c)&&(t.options=t.media=null),i=t);c&&Object(g.isArray)(u)&&Object(g.each)(u,function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))});function d(t){Object(g.each)(e,function(e){e(t,n)})}return d(i),Object(g.each)(l,function(t){return d(t)}),Object(g.each)(o,function(t){return d(t.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(g.clone)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Object(g.clone)(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)ld(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Object(g.map)(s,function(t){return Object(g.clone)(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),cd=g.each,hd=g.isObject,dd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function fd(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=dd.length;n<r;n++){var i=dd[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?g.merge(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?g.merge(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function pd(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,g.defaults(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function gd(t){pd(t,"itemStyle"),pd(t,"lineStyle"),pd(t,"areaStyle"),pd(t,"label"),pd(t,"labelLine"),pd(t,"upperLabel"),pd(t,"edgeLabel")}function vd(t,e){var n=hd(t)&&t[e],r=hd(n)&&n.textStyle;if(r){0;for(var i=0,o=Gr.length;i<o;i++){var a=Gr[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function md(t){t&&(gd(t),vd(t,"label"),t.emphasis&&vd(t.emphasis,"label"))}function yd(t){return g.isArray(t)?t:t?[t]:[]}function bd(t){return(g.isArray(t)?t[0]:t)||{}}function _d(t,e){cd(yd(t.series),function(t){hd(t)&&function(t){if(hd(t)){fd(t),gd(t),vd(t,"label"),vd(t,"upperLabel"),vd(t,"edgeLabel"),t.emphasis&&(vd(t.emphasis,"label"),vd(t.emphasis,"upperLabel"),vd(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(fd(e),md(e));var n=t.markLine;n&&(fd(n),md(n));var r=t.markArea;r&&md(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!g.isTypedArray(o))for(var a=0;a<o.length;a++)md(o[a]);g.each(t.categories,function(t){gd(t)})}if(i&&!g.isTypedArray(i))for(a=0;a<i.length;a++)md(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)md(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)g.isArray(l[a])?(md(l[a][0]),md(l[a][1])):md(l[a])}"gauge"===t.type?(vd(t,"axisLabel"),vd(t,"title"),vd(t,"detail")):"treemap"===t.type?(pd(t.breadcrumb,"itemStyle"),g.each(t.levels,function(t){gd(t)})):"tree"===t.type&&gd(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),cd(n,function(e){cd(yd(t[e]),function(t){t&&(vd(t,"axisLabel"),vd(t.axisPointer,"label"))})}),cd(yd(t.parallel),function(t){var e=t&&t.parallelAxisDefault;vd(e,"axisLabel"),vd(e&&e.axisPointer,"label")}),cd(yd(t.calendar),function(t){pd(t,"itemStyle"),vd(t,"dayLabel"),vd(t,"monthLabel"),vd(t,"yearLabel")}),cd(yd(t.radar),function(t){vd(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),cd(yd(t.geo),function(t){hd(t)&&(md(t),cd(yd(t.regions),function(t){md(t)}))}),cd(yd(t.timeline),function(t){md(t),pd(t,"label"),pd(t,"itemStyle"),pd(t,"controlStyle",!0);var e=t.data;g.isArray(e)&&g.each(e,function(t){g.isObject(t)&&(pd(t,"label"),pd(t,"itemStyle"))})}),cd(yd(t.toolbox),function(t){pd(t,"iconStyle"),cd(t.feature,function(t){pd(t,"iconStyle")})}),vd(bd(t.axisPointer),"label"),vd(bd(t.tooltip).axisPointer,"label")}function xd(t){t&&Object(g.each)(wd,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var wd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Sd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Cd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function kd(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Cd.length;n++){var r=Cd[n][1],i=Cd[n][0];null!=e[r]&&(e[i]=e[r])}}function Od(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Md(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Ed(t,e){_d(t,e),t.series=Vr(t.series),Object(g.each)(t.series,function(t){if(Object(g.isObject)(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Od(t.label),(o=t.data)&&!Object(g.isTypedArray)(o))for(var r=0;r<o.length;r++)Od(o[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===n){var i=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=i&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===n){var o;if(kd(t),kd(t.backgroundStyle),kd(t.emphasis),(o=t.data)&&!Object(g.isTypedArray)(o))for(r=0;r<o.length;r++)"object"==typeof o[r]&&(kd(o[r]),kd(o[r]&&o[r].emphasis))}else if("sunburst"===n){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Md(t),function t(e,n){if(e)for(var r=0;r<e.length;r++)n(e[r]),e[r]&&t(e[r].children,n)}(t.data,Md)}else"graph"===n||"sankey"===n?(e=t)&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(g.defaults)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),xd(t)}}),t.dataRange&&(t.visualMap=t.dataRange),Object(g.each)(Sd,function(e){var n=t[e];n&&(Object(g.isArray)(n)||(n=[n]),Object(g.each)(n,function(t){xd(t)}))})}function Td(t){Object(g.each)(t,function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,d,f=a.get(e.stackedDimension,c);if(isNaN(f))return i;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&f>=0&&m>0||"samesign"===l&&f<=0&&m<0){f=xr(f,m),p=m;break}}}return r[0]=f,r[1]=p,r})})}var Ad,Id,Dd,Pd,Ld,jd=function(){return function(t){this.data=t.data||(t.sourceFormat===Ih?{}:[]),this.sourceFormat=t.sourceFormat||Ph,this.seriesLayoutBy=t.seriesLayoutBy||Lh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Vh(this,n)===Nh.Must&&(r.type="ordinal")}}}();function Nd(t){return t instanceof jd}function Rd(t,e,n){n=n||Fd(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:zd(i),startIndex:a,dimensionsDetectedCount:o};if(e===Th){var s=t;"auto"===r||null==r?Vd(function(t){null!=t&&"-"!==t&&(Object(g.isString)(t)?null==a&&(a=1):a=0)},n,s,10):a=Object(g.isNumber)(r)?r:r?1:0,i||1!==a||(i=[],Vd(function(t,e){i[e]=null!=t?t+"":""},n,s,1/0)),o=i?i.length:n===jh?s.length:s[0]?s[0].length:null}else if(e===Ah)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return Object(g.keys)(e)}(t));else if(e===Ih)i||(i=[],Object(g.each)(t,function(t,e){i.push(e)}));else if(e===Eh){var l=Hr(t[0]);o=Object(g.isArray)(l)&&l.length||1}return{startIndex:a,dimensionsDefine:zd(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new jd({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(g.clone)(e)})}function Bd(t){return new jd({data:t,sourceFormat:Object(g.isTypedArray)(t)?Dh:Eh})}function Fd(t){var e=Ph;if(Object(g.isTypedArray)(t))e=Dh;else if(Object(g.isArray)(t)){0===t.length&&(e=Th);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Object(g.isArray)(i)){e=Th;break}if(Object(g.isObject)(i)){e=Ah;break}}}}else if(Object(g.isObject)(t))for(var o in t)if(Object(g.hasOwn)(t,o)&&Object(g.isArrayLike)(t[o])){e=Ih;break}return e}function zd(t){if(t){var e=Object(g.createHashMap)();return Object(g.map)(t,function(t,n){var r={name:(t=Object(g.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r})}}function Vd(t,e,n,r){if(e===jh)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function $d(t){var e=t.sourceFormat;return e===Ah||e===Ih}var Gd=function(){function t(t,e){var n=Nd(t)?t:Bd(t);this._source=n;var r=this._data=n.data;n.sourceFormat===Dh&&(this._offset=0,this._dimSize=e,this._data=r),Ld(this,r,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;Ld=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Pd[Qd(a,s)];if(Object(g.extend)(t,c),a===Dh)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=Ud(a,s);t.getItem=Object(g.bind)(h,null,i,l,u);var d=qd(a,s);t.count=Object(g.bind)(d,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var f=i[d*o+a];h[t+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Th+"_"+Lh]={pure:!0,appendData:i},t[Th+"_"+jh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ah]={pure:!0,appendData:i},t[Ih]={pure:!0,appendData:function(t){var e=this._data;Object(g.each)(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},t[Eh]={appendData:i},t[Dh]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Pd=t}(),t}(),Hd=function(t,e,n,r){return t[r]},Wd=((Ad={})[Th+"_"+Lh]=function(t,e,n,r){return t[r+e]},Ad[Th+"_"+jh]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Ad[Ah]=Hd,Ad[Ih]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[r]:null}return o},Ad[Eh]=Hd,Ad);function Ud(t,e){var n=Wd[Qd(t,e)];return n}var Yd=function(t,e,n){return t.length},Xd=((Id={})[Th+"_"+Lh]=function(t,e,n){return Math.max(0,t.length-e)},Id[Th+"_"+jh]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Id[Ah]=Yd,Id[Ih]=function(t,e,n){var r=n[0].name;var i=t[r];return i?i.length:0},Id[Eh]=Yd,Id);function qd(t,e){var n=Xd[Qd(t,e)];return n}var Zd=function(t,e,n){return t[e]},Kd=((Dd={})[Th]=Zd,Dd[Ah]=function(t,e,n){return t[n]},Dd[Ih]=Zd,Dd[Eh]=function(t,e,n){var r=Hr(t);return r instanceof Array?r[e]:r},Dd[Dh]=Zd,Dd);function Jd(t){var e=Kd[t];return e}function Qd(t,e){return t===Th?t+"_"+e:t}function tf(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Jd(o)(r,a,s)}var l=r;return o===Eh&&(l=Hr(r)),l}}}var ef=/\{@(.+?)\}/g,nf=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=r&&g.isArray(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return g.isFunction(i)?(s.status=e,s.dimensionIndex=r,i(s)):g.isString(i)?ih(i,s).replace(ef,function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=tf(a,t,i);if(o&&g.isArray(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return tf(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function rf(t){var e,n;return g.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function of(t){return new af(t)}var af=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||d<f)){var p=this._progress;if(Object(g.isArray)(p))for(var v=0;v<p.length;v++)this._doProgress(p[v],d,f,l,u);else this._doProgress(p,d,f,l,u)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){sf.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:sf.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(g.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),sf=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function lf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(g.isNumber)(t)||null==t||"-"===t||(t=+Or(t)),null==t||""===t?NaN:+t)}var uf=Object(g.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+Or(t)},trim:function(t){return Object(g.isString)(t)?Object(g.trim)(t):t}});function cf(t){return uf.get(t)}var hf={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},df=function(){function t(t,e){if(!Object(g.isNumber)(e)){var n="";0,Rr(n)}this._opFn=hf[t],this._rvalFloat=Dr(e)}return t.prototype.evaluate=function(t){return Object(g.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn(Dr(t),this._rvalFloat)},t}(),ff=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(g.isNumber)(t)?t:Dr(t),r=Object(g.isNumber)(e)?e:Dr(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(g.isString)(t),s=Object(g.isString)(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),pf=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Dr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Dr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function gf(t,e){return"eq"===t||"ne"===t?new pf("eq"===t,e):Object(g.hasOwn)(hf,t)?new df(t,e):null}var vf=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return lf(t,e)},t}();function mf(t){var e=t.sourceFormat;if(!Sf(e)){var n="";0,Rr(n)}return t.data}function yf(t){var e=t.sourceFormat,n=t.data;if(!Sf(e)){var r="";0,Rr(r)}if(e===Th){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===Ah){for(i=[],o=0,a=n.length;o<a;o++)i.push(Object(g.extend)({},n[o]));return i}}function bf(t,e,n){if(null!=n)return Object(g.isNumber)(n)||!isNaN(n)&&!Object(g.hasOwn)(e,n)?t[n]:Object(g.hasOwn)(e,n)?e[n]:void 0}function _f(t){return Object(g.clone)(t)}var xf=Object(g.createHashMap)();function wf(t,e,n,r){var i="";e.length||Rr(i),Object(g.isObject)(t)||Rr(i);var o=t.type,a=xf.get(o);a||Rr(i);var s=Object(g.map)(e,function(t){return function(t,e){var n=new vf,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Lh&&Rr(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(g.each)(u,function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(g.hasOwn)(l,n)&&Rr(i),l[n]=r}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Ud(i,Lh);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=Object(g.bind)(mf,null,t)),n.cloneRawData=Object(g.bind)(yf,null,t);var d=qd(i,Lh);n.count=Object(g.bind)(d,null,r,o,s);var f=Jd(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=Object(g.bind)(bf,null,s,l),n.cloneAllDimensionInfo=Object(g.bind)(_f,null,s),n}(t,a)}),l=Vr(a.transform({upstream:s[0],upstreamList:s,config:Object(g.clone)(t.config)}));return Object(g.map)(l,function(t,n){var r,i="";Object(g.isObject)(t)||Rr(i),t.data||Rr(i),Sf(Fd(t.data))||Rr(i);var o=e[0];if(o&&0===n&&!t.dimensions){var a=o.startIndex;a&&(t.data=o.data.slice(0,a).concat(t.data)),r={seriesLayoutBy:Lh,sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:Lh,sourceHeader:0,dimensions:t.dimensions};return Rd(t.data,r,null)})}function Sf(t){return t===Th||t===Ah}var Cf,kf="undefined"==typeof Uint32Array?Array:Uint32Array,Of="undefined"==typeof Uint16Array?Array:Uint16Array,Mf="undefined"==typeof Int32Array?Array:Int32Array,Ef="undefined"==typeof Float64Array?Array:Float64Array,Tf={float:Ef,int:Mf,ordinal:Array,number:Array,time:Ef};function Af(t){return t>65535?kf:Of}function If(t,e,n,r,i){var o=Tf[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var Df=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(g.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Cf[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];$d(r);this._dimensions=Object(g.map)(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new Tf[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){If(n,l,(f=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<i;d++){var f=r[d],p=Cf.arrayRows.call(this,t[h]||u,f.property,h,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(g.map)(o,function(t){return t.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),If(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],d=t;d<e;d++){h=r.getItem(d,h);for(var f=0;f<a;f++){var p=i[f],v=this._dimValueGetter(h,l[f],d,f);p[d]=v;var m=s[f];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=Af(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Af(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][d],c)}else{for(var f=0;f<a;f++)o[f]=u[t[f]][d];o[f]=c,h=e.apply(null,o)}h&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Object(g.keys)(t),i=r.length;if(!i)return this;var o=e.count(),a=new(Af(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],h=e._chunks,d=!1;if(!e._indices){var f=0;if(1===i){for(var p=h[r[0]],v=0;v<n;v++){((_=p[v])>=u&&_<=c||isNaN(_))&&(a[s++]=f),f++}d=!0}else if(2===i){p=h[r[0]];var m=h[r[1]],y=t[r[1]][0],b=t[r[1]][1];for(v=0;v<n;v++){var _=p[v],x=m[v];(_>=u&&_<=c||isNaN(_))&&(x>=y&&x<=b||isNaN(x))&&(a[s++]=f),f++}d=!0}}if(!d)if(1===i)for(v=0;v<o;v++){var w=e.getRawIndex(v);((_=h[r[0]][w])>=u&&_<=c||isNaN(_))&&(a[s++]=w)}else for(v=0;v<o;v++){for(var S=!0,C=(w=e.getRawIndex(v),0);C<i;C++){var k=r[C];((_=h[k][w])<t[k][0]||_>t[k][1])&&(S=!1)}S&&(a[s++]=e.getRawIndex(v))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=r[e[d]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(i[0]=f,f=i);for(u=0;u<f.length;u++){var p=e[u],g=f[u],v=l[p],m=r[p];m&&(m[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Af(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),p=Math.min(d+2*u,s),g=(p+f)/2,v=0,m=f;m<p;m++){var y=a[k=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=p-f;var b=d,_=Math.min(d+u,s),x=d-1,w=a[c];n=-1,i=b;var S=-1,C=0;for(m=b;m<_;m++){var k;y=a[k=this.getRawIndex(m)];isNaN(y)?(C++,S<0&&(S=k)):(r=Math.abs((x-g)*(y-w)-(x-m)*(v-w)))>n&&(n=r,i=k)}C>0&&C<_-b&&(h[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(Af(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(f+p);a[p]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(f+r(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=m}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,i,o=new t,a=this._chunks,s=e&&Object(g.reduce)(e,function(t,e){return t[e]=!0,t},{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=a[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(g.clone)(this._extent),t._rawExtent=Object(g.clone)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return lf(t[r],this._dimensions[r])}Cf={arrayRows:t,objectRows:function(t,e,n,r){return lf(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return lf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),Pf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(jf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(g.isTypedArray)(a)?Dh:Eh,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Object(g.retrieve2)(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=Object(g.retrieve2)(c.sourceHeader,h.sourceHeader),p=Object(g.retrieve2)(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||p?[Rd(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var v=n;if(i){var m=this._applyTransform(r);t=m.sourceList,e=m.upstreamSignList}else{t=[Rd(v.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&Nf(o)}var a,s=[],l=[];return Object(g.each)(t,function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Nf(n),s.push(e),l.push(t._getVersionSign())}),r?e=function(t,e,n){var r=Vr(t),i=r.length,o="";i||Rr(o);for(var a=0,s=i;a<s;a++)e=wf(r[a],e),a!==s-1&&(e.length=Math.max(e.length,1));return e}(r,s,n.componentIndex):null!=i&&(e=[(a=s[0],new jd({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:Object(g.clone)(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];jf(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new Df).initData(new Gd(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(jf(t)){var e=zh(t);return e?[e.getSourceManager()]:[]}return Object(g.map)(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?oi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ri).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(jf(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Lf(t){t.option.transform&&Object(g.setAsPrimitive)(t.option.transform)}function jf(t){return"series"===t.mainType}function Nf(t){throw new Error(t)}var Rf="line-height:1";function Bf(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Q(r+"")+"px;color:"+Q(n)+";font-weight:"+Q(i+""),valueStyle:"font-size:"+Q(a+"")+"px;color:"+Q(o)+";font-weight:"+Q(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Ff=[0,10,20,30],zf=["","\n","\n\n","\n\n\n"];function Vf(t,e){return e.type=t,e}function $f(t){return"section"===t.type}function Gf(t){return $f(t)?Hf:Wf}function Hf(t,e,n,r){var i,o=e.noHeader,a=(i=function t(e){if($f(e)){var n=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return Object(g.each)(e.blocks,function(e){var r=t(e);r>=n&&(n=r+ +(i&&(!r||$f(e)&&!e.noHeader)))}),n}return 0}(e),{html:Ff[i],richText:zf[i]}),s=[],l=e.blocks||[];Object(g.assert)(!l||Object(g.isArray)(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(g.hasOwn)(c,u)){var h=new ff(c[u],null);l.sort(function(t,e){return h.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}Object(g.each)(l,function(n,i){var o=e.valueFormatter,l=Gf(n)(o?Object(g.extend)(Object(g.extend)({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)});var d="richText"===t.renderMode?s.join(a.richText):Yf(s.join(""),o?n:a.html);if(o)return d;var f=eh(e.header,"ordinal",t.useUTC),p=Bf(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Xf(t,f,p)+a.richText+d:Yf('<div style="'+p+";"+Rf+';">'+Q(f)+"</div>"+d,n)}function Wf(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(g.isArray)(t)?t:[t],Object(g.map)(t,function(t,e){return eh(t,Object(g.isArray)(f)?f[e]:f,u)})};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":eh(l,"ordinal",u),f=e.valueType,p=a?[]:c(e.value),v=!s||!o,m=!s&&o,y=Bf(r,i),b=y.nameStyle,_=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":Xf(t,d,b))+(a?"":function(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(g.isArray)(e)?e.join(" "):e,o)}(t,p,v,m,_)):Yf((s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Q(t)+"</span>"}(d,!s,b))+(a?"":function(t,e,n,r){var i=e?"float:right;margin-left:"+(n?"10px":"20px"):"";return t=Object(g.isArray)(t)?t:[t],'<span style="'+i+";"+r+'">'+Object(g.map)(t,function(t){return Q(t)}).join(" ")+"</span>"}(p,v,m,_)),n)}}function Uf(t,e,n,r,i,o){if(t)return Gf(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Yf(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Rf+';">'+t+'<div style="clear:both"></div></div>'}function Xf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function qf(t,e){return lh(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Zf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Kf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Lr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=oh({color:e,type:t,renderMode:n,markerId:r});return Object(g.isString)(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(g.isArray)(e)?Object(g.each)(e,function(t){return Object(g.extend)(n,t)}):Object(g.extend)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Jf(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=Object(g.isArray)(h),f=qf(o,a);if(c>1||d&&!c){var p=function(t,e,n,r,i){var o=e.getData(),a=Object(g.reduce)(t,function(t,e,n){var r=o.getDimensionInfo(n);return t=t||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Vf("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(g.each)(r,function(t){c(tf(o,n,t),t)}):Object(g.each)(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var v=l.getDimensionInfo(u[0]);i=e=tf(l,a,u[0]),n=v.type}else i=e=d?h[0]:h;var m=Zr(o),y=m&&o.name||"",b=l.getName(a),_=s?y:b;return Vf("section",{header:y,noHeader:s||!m,sortParam:i,blocks:[Vf("nameValue",{markerType:"item",markerColor:f,name:_,noName:!Object(g.trim)(_),value:e,valueType:n})].concat(r||[])})}var Qf=Qr();function tp(t,e){return t.getName(e)||t.getId(e)}var ep="__universalTransitionEnabled",np=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=of({count:ip,reset:op}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Qf(this).sourceManager=new Pf(this)).prepareSource();var r=this.getInitialData(t,n);sp(r,this),this.dataTask.context.data=r,Qf(this).dataBeforeProcessed=r,rp(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=mh(this),r=n?bh(t):{},i=this.subType;Sh.hasClass(i)&&(i+="Series"),g.merge(t,e.getTheme().get(this.subType)),g.merge(t,this.getDefaultOption()),$r(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&yh(t,r,n)},e.prototype.mergeOption=function(t,e){t=g.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=mh(this);n&&yh(this.option,t,n);var r=Qf(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);sp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Qf(this).dataBeforeProcessed=i,rp(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!g.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&$r(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=up(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Qf(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=up(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Qf(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return g.createHashMap(t)},e.prototype.getSourceManager=function(){return Qf(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Qf(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Jf({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(p.a.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=qh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=tp(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=g.keys(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[tp(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[ep])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){g.isObject(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[h=tp(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=tp(t,c);i.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Sh.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(Sh);function rp(t){var e=t.name;Zr(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return g.each(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)}),r.join(" ")}(t)||e)}function ip(t){return t.model.getRawData().count()}function op(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),ap}function ap(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sp(t,e){g.each(g.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,g.curry(lp,e))})}function lp(t,e){var n=up(t);return n&&n.setOutputEnd((e||this).count()),e}function up(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}g.mixin(np,nf),g.mixin(np,qh),pi(np,Sh);var cp=np,hp=function(){function t(){this.group=new tr,this.uid=fc("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();fi(hp),yi(hp);var dp=hp;function fp(){var t=Qr();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var pp=Qr(),gp=fp(),vp=function(){function t(){this.group=new tr,this.uid=fc("viewChart"),this.renderTask=of({plan:bp,reset:_p}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&yp(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&yp(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Nu(this.group,t)},t.markUpdateMethod=function(t,e){pp(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function mp(t,e,n){t&&Ms(t)&&("emphasis"===e?ls:us)(t,n)}function yp(t,e,n){var r=Jr(t,e),i=e&&null!=e.highlightKey?function(t){var e=Aa[t];return null==e&&Ta<=32&&(e=Aa[t]=Ta++),e}(e.highlightKey):null;null!=r?Object(g.each)(Vr(r),function(e){mp(t.getItemGraphicEl(e),n,i)}):t.eachItemGraphicEl(function(t){mp(t,n,i)})}function bp(t){return gp(t.model)}function _p(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&pp(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),xp[l]}fi(vp),yi(vp);var xp={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},wp=vp,Sp="\0__throttleOriginMethod",Cp="\0__throttleRate",kp="\0__throttleType";function Op(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=(new Date).getTime(),o=this,a=t;var f=s||e,p=s||n;s=null,i=r-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function Mp(t,e,n,r){var i=t[e];if(i){var o=i[Sp]||i,a=i[kp];if(i[Cp]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=Op(o,n,"debounce"===r))[Sp]=o,i[kp]=r,i[Cp]=n}return i}}function Ep(t,e){var n=t[e];n&&n[Sp]&&(n.clear&&n.clear(),t[e]=n[Sp])}var Tp=Qr(),Ap={itemStyle:bi(sc,!0),lineStyle:bi(ic,!0)},Ip={lineStyle:"stroke",itemStyle:"fill"};function Dp(t,e){var n=t.visualStyleMapper||Ap[e];return n||(console.warn("Unknown style type '"+e+"'."),Ap.itemStyle)}function Pp(t,e){var n=t.visualDrawType||Ip[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Lp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Dp(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Pp(t,r),l=o[s],u=Object(g.isFunction)(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(g.isFunction)(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||Object(g.isFunction)(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(g.extend)({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},jp=new hc,Np={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Dp(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){jp.option=n[r];var a=i(jp),s=t.ensureUniqueItemVisual(e,"style");Object(g.extend)(s,a),jp.option.decal&&(t.setItemVisual(e,"decal",jp.option.decal),jp.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Rp={performRawSeries:!0,overallReset:function(t){var e=Object(g.createHashMap)();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),Tp(t).scope=i}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=Tp(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Pp(e,a);i.each(function(t){var e=i.getRawIndex(t);r[e]=t}),n.each(function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},Bp=Math.PI;var Fp=function(){function t(t,e,n,r){this._stageTaskMap=Object(g.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(g.createHashMap)();t.eachSeries(function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(g.each)(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(g.assert)(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)},this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(g.each)(t,function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(r,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,r.block);d.each(function(t){t.perform(f)}),c.perform(f)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(g.createHashMap)(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||of({plan:Hp,reset:Wp,count:Xp}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||of({reset:zp});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(g.createHashMap)(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,d="";function f(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,of({reset:Vp,onDirty:Gp})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(g.assert)(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,f):u?u(n,r).each(f):(c=!1,Object(g.each)(n.getSeries(),f)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(g.isFunction)(t)&&(t={overallReset:t,seriesType:function(t){qp=null;try{t(Zp,Kp)}catch(t){}return qp}(t)}),t.uid=fc("stageHandler"),e&&(t.visualType=e),t},t}();function zp(t){t.overallReset(t.ecModel,t.api,t.payload)}function Vp(t){return t.overallProgress&&$p}function $p(){this.agent.dirty(),this.getDownstream().dirty()}function Gp(){this.agent&&this.agent.dirty()}function Hp(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Wp(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Vr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(g.map)(e,function(t,e){return Yp(e)}):Up}var Up=Yp(0);function Yp(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Xp(t){return t.data.count()}var qp,Zp={},Kp={};function Jp(t,e){for(var n in e.prototype)t[n]=g.noop}Jp(Zp,nd),Jp(Kp,id),Zp.eachSeriesByType=Zp.eachRawSeriesByType=function(t){qp=t},Zp.eachComponent=function(t){"series"===t.mainType&&t.subType&&(qp=t.subType)};var Qp=Fp,tg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],eg={color:tg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],tg]},ng=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],rg={darkMode:!0,color:ng,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:ng},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};rg.categoryAxis.splitLine.show=!1;var ig=rg,og=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(g.isString(t)){var i=di(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};g.each(t,function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ag=["symbol","symbolSize","symbolRotate","symbolOffset"],sg=ag.concat(["symbolKeepAspect"]),lg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<ag.length;a++){var s=ag[a],l=t.get(s);Object(g.isFunction)(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Object(g.extend)({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Object(g.keys)(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},ug={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<sg.length;r++){var i=sg[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function cg(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function hg(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function dg(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}function fg(t,e){Object(g.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(e,r,i){e=Object(g.extend)({},e),i.dispatchAction(Object(g.extend)(e,{type:n[1],seriesIndex:function(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){r.push(t.seriesIndex)}),r}(r,e)}))})})}function pg(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=Jr(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(g.isArray)(u)?l.getName(u[0]):l.getName(u),selected:Object(g.isString)(r)?r:Object(g.extend)({},r)})}})}function gg(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var vg=Math.round(9*Math.random()),mg="function"==typeof Object.defineProperty,yg=function(){function t(){this._id="__ec_inner_"+vg++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return mg?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),bg=qo.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),_g=qo.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),xg=qo.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),wg=qo.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),Sg={line:Il,rect:ca,roundRect:ca,square:ca,circle:Js,diamond:_g,pin:xg,arrow:wg,triangle:bg},Cg={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},kg={};Object(g.each)(Sg,function(t,e){kg[e]=new t});var Og=qo.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Gn(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=kg[r];i||(i=kg[r="rect"]),Cg[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function Mg(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Eg(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?vu(t.slice(8),new It(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?gu(t.slice(7),{},new It(e,n,r,i),a?"center":"cover"):new Og({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=Mg,o&&s.setColor(o),s}function Tg(t){return Object(g.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Ag(t,e){if(null!=t)return Object(g.isArray)(t)||(t=[t,t]),[fr(t[0],e[0])||0,fr(Object(g.retrieve2)(t[1],t[0]),e[1])||0]}function Ig(t){return isFinite(t)}function Dg(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=Ig(a)?a:.5,s=Ig(s)?s:.5,l=l>=0&&Ig(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Ig(r)?r:0,i=Ig(i)?i:1,o=Ig(o)?o:0,a=Ig(a)?a:0,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Pg(t){return parseInt(t,10)}function Lg(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Pg(s[r])||Pg(t.style[r]))-(Pg(s[o])||0)-(Pg(s[a])||0)|0}function jg(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Object(g.isNumber)(e)?[e]:Object(g.isArray)(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=Object(g.map)(i,function(t){return t/a}),o/=a)}return[i,o]}var Ng=new Eo(!0);function Rg(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Bg(t){return"string"==typeof t&&"none"!==t}function Fg(t){var e=t.fill;return null!=e&&"none"!==e}function zg(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Vg(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function $g(t,e,n){var r=Ci(e.image,e.__image,n);if(Oi(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*g.RADIAN_TO_DEGREE),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var Gg=["shadowBlur","shadowOffsetX","shadowOffsetY"],Hg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Wg(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){Jg(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?zi.opacity:a}(r||e.blend!==n.blend)&&(o||(Jg(t,i),o=!0),t.globalCompositeOperation=e.blend||zi.blend);for(var s=0;s<Gg.length;s++){var l=Gg[s];(r||e[l]!==n[l])&&(o||(Jg(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Jg(t,i),o=!0),t.shadowColor=e.shadowColor||zi.shadowColor),o}function Ug(t,e,n,r,i){var o=Qg(e,i.inHover),a=r?null:n&&Qg(n,i.inHover)||{};if(o===a)return!1;var s=Wg(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Jg(t,i),s=!0),Bg(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Jg(t,i),s=!0),Bg(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Jg(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Jg(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<Hg.length;u++){var c=Hg[u],h=c[0];(r||o[h]!==a[h])&&(s||(Jg(t,i),s=!0),t[h]=o[h]||c[1])}return s}function Yg(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}var Xg=1,qg=2,Zg=3,Kg=4;function Jg(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Qg(t,e){return e&&t.__hoverStyle||t.style}function tv(t,e){ev(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ev(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Kt,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Jg(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Jg(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Yg(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=e instanceof qo&&e.autoBatch&&function(t){var e=Fg(t),n=Rg(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=i,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Jg(t,n),Yg(t,e)):d||Jg(t,n);var f=Qg(e,n.inHover);e instanceof qo?(n.lastDrawType!==Xg&&(l=!0,n.lastDrawType=Xg),Ug(t,e,u,l,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=Rg(n),a=Fg(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Ng,h=e.__dirty;if(!r){var d=n.fill,f=n.stroke,p=a&&!!d.colorStops,g=o&&!!f.colorStops,v=a&&!!d.image,m=o&&!!f.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(y=h?Dg(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(b=h?Dg(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?$g(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(x=h||!e.__canvasStrokePattern?$g(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=y:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:m&&(x?t.strokeStyle=x:o=!1)}var S,C,k=e.getGlobalScale();c.setScale(k[0],k[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=jg(e))[0],C=i[1]);var O=!0;(u||h&Jt)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),O=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),O&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),r||(n.strokeFirst?(o&&Vg(t,n),a&&zg(t,n)):(a&&zg(t,n),o&&Vg(t,n))),S&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof Jo?(n.lastDrawType!==Zg&&(l=!0,n.lastDrawType=Zg),Ug(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||Ln.a,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=jg(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Rg(n)&&t.strokeText(i,n.x,n.y),Fg(n)&&t.fillText(i,n.x,n.y)):(Fg(n)&&t.fillText(i,n.x,n.y),Rg(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof na?(n.lastDrawType!==qg&&(l=!0,n.lastDrawType=qg),function(t,e,n,r,i){Wg(t,Qg(e,i.inHover),n&&Qg(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=Ci(n.image,e.__image,e,e.onload);if(r&&Oi(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);t.drawImage(r,u,c,h,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==Kg&&(l=!0,n.lastDrawType=Kg),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ev(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ev(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),d&&r&&Jg(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var nv=new yg,rv=new Pn.a(100),iv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ov(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&nv.delete(t);var o=nv.get(t);if(o)return o;var a=Object(g.defaults)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<iv.length;++l){var u=a[iv[l]];if(null!=u&&!Object(g.isArray)(u)&&!Object(g.isString)(u)&&!Object(g.isNumber)(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=rv.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,d=function t(e){if(!e||0===e.length)return[[0,0]];if(Object(g.isNumber)(e)){var n=Math.ceil(e);return[[n,n]]}var r=!0;for(var i=0;i<e.length;++i)if(!Object(g.isNumber)(e[i])){r=!1;break}if(r)return t([e]);var o=[];for(var i=0;i<e.length;++i)if(Object(g.isNumber)(e[i])){var n=Math.ceil(e[i]);o.push([n,n])}else{var n=Object(g.map)(e[i],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Object(g.isNumber)(t)){var e=Math.ceil(t);return[e,e]}var n=Object(g.map)(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),p=function t(e){if(!e||0===e.length)return[["rect"]];if(Object(g.isString)(e))return[[e]];var n=!0;for(var r=0;r<e.length;++r)if(!Object(g.isString)(e[r])){n=!1;break}if(n)return t([e]);var i=[];for(var r=0;r<e.length;++r)Object(g.isString)(e[r])?i.push([e[r]]):i.push(e[r]);return i}(a.symbol),v=(x=d,Object(g.map)(x,function(t){return av(t)})),m=av(f),y=!i&&Ln.d.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=jr(t,v[e]);for(var r=1,e=0,n=p.length;e<n;++e)r=jr(r,p[e].length);t*=r;var i=m*v.length*p.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var x;y&&(y.width=_.width*n,y.height=_.height*n,h=y.getContext("2d"));(function(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0))for(var o=-m,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var c=l/2%p.length,g=0,v=0,x=0;g<2*_.width;){for(var w=0,e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(v%2==0){var S=.5*(1-a.symbolSize),C=g+d[u][v]*S,k=o+f[s]*S,O=d[u][v]*a.symbolSize,M=f[s]*a.symbolSize,E=x/2%p[c].length;T(C,k,O,M,p[c][E])}g+=d[u][v],++x,++v===d[u].length&&(v=0)}++u===d.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function T(t,e,o,s,l){var u=i?1:n,c=Eg(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(c);d&&b.children.push(d)}else tv(h,c)}})(),s&&rv.put(e,y||b);t.image=y,t.svgElement=b,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,nv.set(t,s),t.dirty=!1,s}function av(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var sv=new G,lv={};function uv(t){return lv[t]}var cv={zrender:"5.4.3"},hv=2e3,dv=1e3,fv=3e3,pv={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:dv,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:fv,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},gv=/^[a-zA-Z0-9_]+$/,vv="__connectUpdateStatus";function mv(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return bv(this,t,e);Gv(this.id)}}function yv(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return bv(this,t,e)}}function bv(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),G.prototype[e].apply(t,n)}var _v,xv,wv,Sv,Cv,kv,Ov,Mv,Ev,Tv,Av,Iv,Dv,Pv,Lv,jv,Nv,Rv,Bv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e}(G),Fv=Bv.prototype;Fv.on=yv("on"),Fv.off=yv("off");var zv=function(t){function e(e,n,r){var i=t.call(this,new og)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Object(g.isString)(n)&&(n=qv[n]),i._dom=e;var o="canvas",a="auto",s=!1,l=i._zr=ir(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(g.retrieve2)(r.useDirtyRect,s),useCoarsePointer:Object(g.retrieve2)(r.useCoarsePointer,a),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Op(Object(g.bind)(l.flush,l),17),(n=Object(g.clone)(n))&&Ed(n,!0),i._theme=n,i._locale=function(t){if(Object(g.isString)(t)){var e=yc[t.toUpperCase()]||{};return t===gc||t===vc?Object(g.clone)(e):Object(g.merge)(Object(g.clone)(e),Object(g.clone)(yc[mc]),!1)}return Object(g.merge)(Object(g.clone)(t),Object(g.clone)(yc[mc]),!1)}(r.locale||_c),i._coordSysMgr=new ad;var u=i._api=Lv(i);function c(t,e){return t.__prio-e.__prio}return Zt(Xv,c),Zt(Uv,c),i._scheduler=new Qp(i,u,Uv,Xv),i._messageCenter=new Bv,i._initEvents(),i.resize=Object(g.bind)(i.resize,i),l.animation.on("frame",i._onframe,i),Tv(l,i),Av(l,i),Object(g.setAsPrimitive)(i),i}return Object(f.__extends)(e,t),e.prototype._onframe=function(){if(!this._disposed){Rv(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{_v(this),Sv.update.call(this,null,this.__pendingUpdate.updateParams)}catch(t){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,Mv.call(this,e),Ev.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),kv(this,r),t.performVisualTasks(r),Pv(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)Gv(this.id);else{var r,i,o;if(Object(g.isObject)(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new ud(this._api),s=this._theme,l=this._model=new nd;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},Yv);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:r,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{_v(this),Sv.update.call(this,null,u)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,Mv.call(this,r),Ev.call(this,r)}}},e.prototype.setTheme=function(){Nr()},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||p.a.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(p.a.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(g.each)(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;Object(g.each)(e,function(t){n.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(g.each)(r,function(t){t.group.ignore=!1}),o}Gv(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max;if(Jv[n]){var o=1/0,a=1/0,s=-1/0,l=-1/0,u=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();Object(g.each)(Kv,function(c,h){if(c.group===n){var d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(Object(g.clone)(t)),f=c.getDom().getBoundingClientRect();o=r(f.left,o),a=r(f.top,a),s=i(f.right,s),l=i(f.bottom,l),u.push({dom:d,left:f.left,top:f.top})}});var h=(s*=c)-(o*=c),d=(l*=c)-(a*=c),f=Ln.d.createCanvas(),p=ir(f,{renderer:e?"svg":"canvas"});if(p.resize({width:h,height:d}),e){var v="";return Object(g.each)(u,function(t){var e=t.left-o,n=t.top-a;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&p.painter.setBackgroundColor(t.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}return t.connectedBackgroundColor&&p.add(new ca({shape:{x:0,y:0,width:h,height:d},style:{fill:t.connectedBackgroundColor}})),Object(g.each)(u,function(t){var e=new na({style:{x:t.left*c-o,y:t.top*c-a,image:t.dom}});p.add(e)}),p.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Gv(this.id)},e.prototype.convertToPixel=function(t,e){return Cv(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Cv(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=ei(this._model,t);return Object(g.each)(r,function(t,r){r.indexOf("Models")>=0&&Object(g.each)(t,function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0},this)},this),!!n}Gv(this.id)},e.prototype.getVisual=function(t,e){var n=ei(this._model,t,{defaultMainType:"series"}),r=n.seriesModel;var i=r.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=o?cg(i,o,e):hg(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,r=this;Object(g.each)($v,function(t){var e=function(e){var n,i=r.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&gg(o,function(t){var e=Ma(t);if(e&&null!=e.dataIndex){var r=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=r&&r.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=Object(g.extend)({},e.eventData),!0},!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},r.trigger(t,n)}};e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)}),Object(g.each)(Wv,function(t,e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),Object(g.each)(["selectchanged"],function(t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",function(t){var r=n.getModel();t.isFromClick?(pg("map","selectchanged",e,r,t),pg("pie","selectchanged",e,r,t)):"select"===t.fromAction?(pg("map","selected",e,r,t),pg("pie","selected",e,r,t)):"unselect"===t.fromAction&&(pg("map","unselected",e,r,t),pg("pie","unselected",e,r,t))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Gv(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Gv(this.id);else{this._disposed=!0,this.getDom()&&ai(this.getDom(),em,"");var t=this._api,e=this._model;Object(g.each)(this._componentsViews,function(n){n.dispose(e,t)}),Object(g.each)(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete Kv[this.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)Gv(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&_v(this),Sv.update.call(this,{type:"resize",animation:Object(g.extend)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,Mv.call(this,r),Ev.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Gv(this.id);else if(Object(g.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Zv[t]){var n=Zv[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?Gv(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(g.extend)({},t);return e.type=Wv[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Gv(this.id);else if(Object(g.isObject)(e)||(e={silent:!!e}),Hv[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;Ov.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&p.a.browser.weChat&&this._throttledZrFlush(),Mv.call(this,n),Ev.call(this,n)}},e.prototype.updateLabelLayout=function(){sv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Gv(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);0,n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ja&&t.states.emphasis?e.push("emphasis"):t.hoverState===La&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered(function(t){return function t(e,n,r,i){var o=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)i=Math.max(t(l[u],n,r,i),i);else e.z=n,e.zlevel=r,i=Math.max(e.z2,i);o&&(o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+2));if(a){var c=e.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(c&&c.showAbove?1:-1))}return i}(t,n,r,-1/0),!0})}}function r(t,e){e.eachRendered(function(t){if(!nu(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function i(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(nu(t))return;if(t instanceof qo&&function(t){var e=Ia(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}_v=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),xv(t,!0),xv(t,!1),e.plan()},xv=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=di(t.type),d=e?dp.getClass(h.main,h.sub):wp.getClass(h.sub);0,(c=new d).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},wv=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Object(g.createHashMap)(),Object(g.each)(Vr(u),function(t){var e=qr(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!(l&&null!=l.get(e.id)))if(Ts(n))if(e instanceof cp)n.type!==za||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=Jr(i,e);o=(Object(g.isArray)(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Ma(a);vs(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&vs(r,c,h,n)}}}(e,n,t._api);else{var r=ys(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===za&&i&&!n.notBlur&&ms(e.mainType,e.componentIndex,t._api),o&&Object(g.each)(o,function(t){n.type===za?ls(t):us(t)})}else Es(n)&&e instanceof cp&&(!function(t,e,n){if(Es(e)){var r=e.dataType,i=Jr(t.getData(r),e);Object(g.isArray)(i)||(i=[i]),t[e.type===Ha?"toggleSelect":e.type===$a?"select":"unselect"](i,r)}}(e,n,t._api),bs(e),Nv(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else Object(g.each)([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},Sv={prepareAndUpdate:function(t){_v(this),Sv.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),kv(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),Iv(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),sv.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Object(g.createHashMap)();r.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),Pv(this,r,i,e,{},a),sv.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),wp.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Iv(this,n,this._api,e,{}),sv.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(t){t.getData().clearAllVisual()}),wp.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),sv.trigger("afterupdate",r,this._api))},updateLayout:function(t){Sv.update.call(this,t)}},Cv=function(t,e,n,r){if(t._disposed)Gv(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ei(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}0}},kv=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries(function(t){r.updateStreamModes(t,n[t.__viewId])})},Ov=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=Hv[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&di(l[0]);this.__flagInMainProcess=!0;var h=[t],d=!1;t.batch&&(d=!0,h=Object(g.map)(t.batch,function(e){return(e=Object(g.defaults)(Object(g.extend)({},e),t)).batch=null,e}));var f,p=[],v=Es(t),m=Ts(t);if(m&&gs(this._api),Object(g.each)(h,function(e){if((f=(f=a.action(e,n._model,n._api))||Object(g.extend)({},e)).type=s.event||f.type,p.push(f),m){var r=ni(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";wv(n,u,e,o),Nv(n)}else v?(wv(n,u,e,"series"),Nv(n)):c&&wv(n,u,e,c.main,c.sub)}),"none"!==u&&!m&&!v&&!c)try{this.__pendingUpdate?(_v(this),Sv.update.call(this,t),this.__pendingUpdate=null):Sv[u].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(f=d?{type:s.event||i,escapeConnect:o,batch:p}:p[0],this.__flagInMainProcess=!1,!e){var y=this._messageCenter;if(y.trigger(f.type,f),v){var b={type:"selectchanged",escapeConnect:o,selected:function(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();Object(g.each)(n,function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}})}),e}(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(b.type,b)}}},Mv=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Ov.call(this,n,t)}},Ev=function(t){!t&&this.trigger("updated")},Tv=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e.__pendingUpdate||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},Av=function(t,e){t.on("mouseover",function(t){var n=gg(t.target,Ms);n&&(!function(t,e,n){var r=Ma(t),i=ys(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&ms(r.componentMainType,r.componentIndex,n),Object(g.each)(o,function(t){return as(t,e)})):(vs(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&ms(r.componentMainType,r.componentIndex,n),as(t,e))}(n,t,e._api),Nv(e))}).on("mouseout",function(t){var n=gg(t.target,Ms);n&&(!function(t,e,n){gs(n);var r=Ma(t),i=ys(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(g.each)(i,function(t){return ss(t,e)}):ss(t,e)}(n,t,e._api),Nv(e))}).on("click",function(t){var n=gg(t.target,function(t){return null!=Ma(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=Ma(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Iv=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})}),r){var i,o,a=e.concat(n);Zt(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),Object(g.each)(a,function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}(e),Dv(t,e,n,r,i),Object(g.each)(t._chartsViews,function(t){t.__alive=!1}),Pv(t,e,n,r,i),Object(g.each)(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Dv=function(t,e,o,a,s,l){Object(g.each)(l||t._componentsViews,function(t){var s=t.__model;r(s,t),t.render(s,e,o,a),n(s,t),i(s,t)})},Pv=function(t,e,o,a,s,l){var u=t._scheduler;s=Object(g.extend)(s||{},{updatedSeries:e.getSeries()}),sv.trigger("series:beforeupdate",e,o,s);var c=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,a),r(e,n),l&&l.get(e.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),bs(e)}),u.unfinished=c||u.unfinished,sv.trigger("series:layoutlabels",e,o,s),sv.trigger("series:transition",e,o,s),e.eachSeries(function(e){var r=t._chartsMap[e.__viewId];n(e,r),i(e,r)}),function(t,e){var n=0;t._zr.storage.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!p.a.node&&!p.a.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),sv.trigger("series:afterupdate",e,o,s)},Nv=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Rv=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse(function(t){nu(t)||e(t)}),t.__needsUpdateStatus=!1)},Lv=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Object(f.__extends)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ls(e,n),Nv(t)},n.prototype.leaveEmphasis=function(e,n){us(e,n),Nv(t)},n.prototype.enterBlur=function(e){cs(e),Nv(t)},n.prototype.leaveBlur=function(e){hs(e),Nv(t)},n.prototype.enterSelect=function(e){ds(e),Nv(t)},n.prototype.leaveSelect=function(e){fs(e),Nv(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(id))(t)},jv=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][vv]=e}}Object(g.each)(Wv,function(n,r){t._messageCenter.on(r,function(n){if(Jv[t.group]&&0!==t[vv]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Object(g.each)(Kv,function(e){e!==t&&e.group===t.group&&i.push(e)}),e(i,0),Object(g.each)(i,function(t){1!==t[vv]&&t.dispatchAction(r)}),e(i,2)}})})}}(),e}(G),Vv=zv.prototype;Vv.on=mv("on"),Vv.off=mv("off"),Vv.one=function(t,e,n){var r=this;Nr(),this.on.call(this,t,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)},n)};var $v=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Gv(t){0}var Hv={},Wv={},Uv=[],Yv=[],Xv=[],qv={},Zv={},Kv={},Jv={},Qv=+new Date-0,tm=+new Date-0,em="_echarts_instance_";function nm(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=sm(t);if(i)return i;0}var o=new zv(t,e,n);return o.id="ec_"+Qv++,Kv[o.id]=o,r&&ai(t,em,o.id),jv(o),sv.trigger("afterinit",o),o}function rm(t){if(Object(g.isArray)(t)){var e=t;t=null,Object(g.each)(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+tm++,Object(g.each)(e,function(e){e.group=t})}return Jv[t]=!0,t}function im(t){Jv[t]=!1}var om=im;function am(t){Object(g.isString)(t)?t=Kv[t]:t instanceof zv||(t=sm(t)),t instanceof zv&&!t.isDisposed()&&t.dispose()}function sm(t){return Kv[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,em)]}function lm(t){return Kv[t]}function um(t,e){qv[t]=e}function cm(t){Object(g.indexOf)(Yv,t)<0&&Yv.push(t)}function hm(t,e){xm(Uv,t,e,hv)}function dm(t){pm("afterinit",t)}function fm(t){pm("afterupdate",t)}function pm(t,e){sv.on(t,e)}function gm(t,e,n){Object(g.isFunction)(e)&&(n=e,e="");var r=Object(g.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,Wv[e]||(Object(g.assert)(gv.test(r)&&gv.test(e)),Hv[r]||(Hv[r]={action:n,actionInfo:t}),Wv[e]=r)}function vm(t,e){ad.register(t,e)}function mm(t){var e=ad.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function ym(t,e){xm(Xv,t,e,dv,"layout")}function bm(t,e){xm(Xv,t,e,fv,"visual")}var _m=[];function xm(t,e,n,r,i){if((Object(g.isFunction)(e)||Object(g.isObject)(e))&&(n=e,e=r),!(Object(g.indexOf)(_m,n)>=0)){_m.push(n);var o=Qp.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function wm(t,e){Zv[t]=e}function Sm(t){Object(Ln.e)({createCanvas:t})}function Cm(t,e,n){var r=uv("registerMap");r&&r(t,e,n)}function km(t){var e=uv("getMap");return e&&e(t)}var Om=function(t){var e=(t=Object(g.clone)(t)).type,n="";e||Rr(n);var r=e.split(":");2!==r.length&&Rr(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,xf.set(e,t)};bm(2e3,Lp),bm(4500,Np),bm(4500,Rp),bm(2e3,lg),bm(4500,ug),bm(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=ov(n,e))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=ov(i,e))}})}),cm(Ed),hm(900,function(t){var e=Object(g.createHashMap)();t.eachSeries(function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),e.each(Td)}),wm("default",function(t,e){e=e||{},g.defaults(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new tr,r=new ca({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Oa({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ca({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Fl({shape:{startAngle:-Bp/2,endAngle:-Bp/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Bp/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Bp/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),gm({type:za,event:za,update:za},g.noop),gm({type:Va,event:Va,update:Va},g.noop),gm({type:$a,event:$a,update:$a},g.noop),gm({type:Ga,event:Ga,update:Ga},g.noop),gm({type:Ha,event:Ha,update:Ha},g.noop),um("light",eg),um("dark",ig);var Mm={},Em=[],Tm={registerPreprocessor:cm,registerProcessor:hm,registerPostInit:dm,registerPostUpdate:fm,registerUpdateLifecycle:pm,registerAction:gm,registerCoordinateSystem:vm,registerLayout:ym,registerVisual:bm,registerTransform:Om,registerLoading:wm,registerMap:Cm,registerImpl:function(t,e){lv[t]=e},PRIORITY:pv,ComponentModel:Sh,ComponentView:dp,SeriesModel:cp,ChartView:wp,registerComponentModel:function(t){Sh.registerClass(t)},registerComponentView:function(t){dp.registerClass(t)},registerSeriesModel:function(t){cp.registerClass(t)},registerChartView:function(t){wp.registerClass(t)},registerSubTypeDefaulter:function(t,e){Sh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){lr(t,e)}};function Am(t){Object(g.isArray)(t)?Object(g.each)(t,function(t){Am(t)}):Object(g.indexOf)(Em,t)>=0||(Em.push(t),Object(g.isFunction)(t)&&(t={install:t}),t.install(Tm))}function Im(t){return null==t?0:t.length||1}function Dm(t){return t}var Pm=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Dm,this._newKeyGetter=r||Dm,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=Im(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=Im(l),h=Im(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=Im(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=Im(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Lm=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function jm(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Nm(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var Rm=function(){return function(t){this.otherDims={},null!=t&&g.extend(this,t)}}(),Bm=Qr(),Fm={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},zm=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Gm(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(g.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=$d(this.source),n=!Hm(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=Fm[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Vm(t){return t instanceof zm}function $m(t){for(var e=Object(g.createHashMap)(),n=0;n<(t||[]).length;n++){var r=t[n],i=Object(g.isObject)(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Gm(t){var e=Bm(t);return e.dimNameMap||(e.dimNameMap=$m(t.dimensionsDefine))}function Hm(t){return t>30}var Wm,Um,Ym,Xm,qm,Zm,Km,Jm=g.isObject,Qm=g.map,ty="undefined"==typeof Int32Array?Array:Int32Array,ey=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ny=["_approximateExtent"],ry=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Vm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=g.isString(c)?new Rm({name:c}):c instanceof Rm?c:new Rm(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(d),i[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=g.createHashMap();g.each(o,function(t){p.set(i[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(g.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof Df&&(r=t),!r){var o=this.dimensions,a=Nd(t)||g.isArrayLike(t)?new Gd(t,o.length):t;r=new Df;var s=Qm(o,function(t){return{type:i._dimInfos[t].type,property:t}});r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=Object(g.createHashMap)(),o=[],a=[],s={};Object(g.each)(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;jm(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),jm(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Mh.each(function(t,e){var n=jm(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(g.map)(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Lm(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&Km(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Dh&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===Eh&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Wr(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=qr(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=qr(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)Km(this,a);Wm(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){Jm(t)?g.extend(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Ym(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return Um(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return g.isArray(t)?r.getValues(Qm(t,function(t){return n._getStoreDimIndex(t)}),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n[e];return null==r||isNaN(r)?-1:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){g.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=Qm(Xm(t),this._getStoreDimIndex,this);this._store.each(i,r?g.bind(e,r):e)},t.prototype.filterSelf=function(t,e,n){g.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=Qm(Xm(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?g.bind(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=g.keys(t),i=[];return g.each(r,function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){g.isFunction(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=Qm(Xm(t),this._getStoreDimIndex,this),a=Zm(this);return a._store=this._store.map(o,i?g.bind(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=Qm(Xm(t),this._getStoreDimIndex,this);this._store.modify(o,i?g.bind(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=Zm(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=Zm(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new hc(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Pm(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return Um(t,e)},function(t){return Um(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},Jm(t)?g.extend(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),g.isArray(i)?i=i.slice():Jm(i)&&(i=g.extend({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Jm(e)?g.extend(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Jm(t)?g.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?g.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Ea(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){g.each(this._graphicEls,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Qm(this.dimensions,this._getDimInfo,this),this.hostModel)),qm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];g.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(g.slice(arguments)))})},t.internalField=(Wm=function(t){var e=t._invertedIndicesMap;g.each(e,function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new ty(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},Ym=function(t,e,n){return qr(t._getCategory(e,n),null)},Um=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Ym(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},Xm=function(t){return g.isArray(t)||(t=null!=t?[t]:[]),t},Zm=function(e){var n=new t(e._schema?e._schema:Qm(e.dimensions,e._getDimInfo,e),e.hostModel);return qm(n,e),n},qm=function(t,e){g.each(ey.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,g.each(ny,function(n){t[n]=g.clone(e[n])}),t._calculationInfo=g.extend({},e._calculationInfo)},void(Km=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=Ym(t,i,e)),null==s&&null!=o&&(r[e]=s=Ym(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}})),t}();function iy(t,e){return oy(t,e).dimensions}function oy(t,e){Nd(t)||(t=Bd(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(g.createHashMap)(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(g.each)(e,function(t){var e;Object(g.isObject)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))}),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Hm(a),l=r===t.dimensionsDefine,u=l?Gm(t):$m(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(g.createHashMap)(c),d=new Mf(a),f=0;f<d.length;f++)d[f]=-1;function p(t){var e=d[t];if(e<0){var n=r[t],i=Object(g.isObject)(n)?n:{name:n},a=new Rm,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(f=0;f<a;f++)p(f);h.each(function(t,e){var n=Vr(t).slice();if(1===n.length&&!Object(g.isString)(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Object(g.each)(n,function(t,n){var i=Object(g.isString)(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,m(p(i),e,n))})}});var v=0;function m(t,e,n){null!=Mh.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Object(g.each)(n,function(t){var e,n,r,i;if(Object(g.isString)(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=Object(g.extend)({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=Vr(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;v<a&&null!=p(v).coordDim;)v++;v<a&&s.push(v++)}Object(g.each)(s,function(t,o){var a=p(t);if(l&&null!=i.type&&(a.type=i.type),m(Object(g.defaults)(a,i),e,o),null==a.name&&n){var s=n[o];!Object(g.isObject)(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(g.defaults)(a.otherDims,r)})}});var y=e.generateCoord,b=e.generateCoordCount,_=null!=b;b=y?b||1:0;var x=y||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(g.each)(o,function(t){w(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var S=0;S<a;S++){var C=p(S);null==C.coordDim&&(C.coordDim=ay(x,i,_),C.coordDimIndex=0,(!y||b<=0)&&(C.isExtraCoord=!0),b--),w(C),null!=C.type||Vh(t,S)!==Nh.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type="ordinal")}return function(t){for(var e=Object(g.createHashMap)(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new zm({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function ay(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var sy=function(){return function(t){this.coordSysDims=[],this.axisMap=Object(g.createHashMap)(),this.categoryAxisMap=Object(g.createHashMap)(),this.coordSysName=t}}();var ly={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",ri).models[0],o=t.getReferringComponents("yAxis",ri).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),uy(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),uy(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",ri).models[0];e.coordSysDims=["single"],n.set("single",i),uy(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",ri).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),uy(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),uy(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(g.each)(o.parallelAxisIndex,function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),uy(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}};function uy(t){return"category"===t.get("type")}function cy(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Vm(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(Object(g.each)(r,function(t,e){Object(g.isString)(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,v=0;Object(g.each)(r,function(t){t.coordDim===f&&v++});var m={name:c,coordDim:f,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,p),y.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(m),i.appendCalculationDimension(y)):(r.push(m),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function hy(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function dy(t,e){return hy(t,e)?t.getCalculationInfo("stackResultDimension"):e}var fy=function(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Bd(t)):o=(r=i.getSource()).sourceFormat===Eh;var a=function(t){var e=t.get("coordinateSystem"),n=new sy(e),r=ly[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=ad.get(r);return e&&e.coordSysDims&&(n=g.map(e.coordSysDims,function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=Nm(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=g.isFunction(l)?l:l?g.curry(Bh,s,e):null,c=oy(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var r,i;return n&&g.each(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)}),i||null==r||(t[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(c),f=cy(e,{schema:c,store:d}),p=new ry(c,e);p.setCalculationInfo(f);var v=null!=h&&function(t){if(t.sourceFormat===Eh){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!g.isArray(Hr(e))}}(r)?function(t,e,n,r){return r===h?n:this.defaultDimValueGetter(t,e,n,r)}:null;return p.hasItemOption=!1,p.initData(o?r:d,null,v),p},py=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();yi(py);var gy=py,vy=0;function my(t){return Object(g.isObject)(t)&&null!=t.value?t.value:t+""}var yy=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++vy}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(g.map)(r,my);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(g.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(g.createHashMap)(this.categories))},t}();function by(t){return"interval"===t.type||"log"===t.type}function _y(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Tr(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=wy(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Sy(t,0,e),Sy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[pr(Math.ceil(t[0]/a)*a,s),pr(Math.floor(t[1]/a)*a,s)],t),i}function xy(t){var e=Math.pow(10,Er(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,pr(n*e)}function wy(t){return vr(t)+2}function Sy(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Cy(t,e){return t>=e[0]&&t<=e[1]}function ky(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Oy(t,e){return t*(e[1]-e[0])+e[0]}var My=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new yy({})),Object(g.isArray)(r)&&(r=new yy({categories:Object(g.map)(r,function(t){return Object(g.isObject)(t)?t.value:t})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(f.__extends)(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(g.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Cy(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return ky(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Oy(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(gy);gy.registerClass(My);var Ey=My,Ty=pr,Ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(f.__extends)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Cy(t,this._extent)},e.prototype.normalize=function(t){return ky(t,this._extent)},e.prototype.scale=function(t){return Oy(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=wy(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]<r[0]&&(t?o.push({value:Ty(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Ty(a+e,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:Ty(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=Ty(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=vr(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Jc(Ty(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=_y(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Ty(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Ty(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(gy);gy.registerClass(Ay);var Iy=Ay,Dy="undefined"!=typeof Float32Array,Py=Dy?Float32Array:Array;function Ly(t){return Object(g.isArray)(t)?Dy?new Float32Array(t):t:new Py(t)}var jy="__ec_stack_";function Ny(t){return t.get("stack")||jy+t.seriesIndex}function Ry(t){return t.dim+t.index}function By(t,e){var n=[];return e.eachSeriesByType(t,function(t){Gy(t)&&n.push(t)}),n}function Fy(t){var e=function(t){var e={};Object(g.each)(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(t,e){return t-e});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),n=[];return Object(g.each)(t,function(t){var r,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var h=t.getData();r=Math.abs(o[1]-o[0])/h.count()}var d=fr(t.get("barWidth"),r),f=fr(t.get("barMaxWidth"),r),p=fr(t.get("barMinWidth")||(Hy(t)?.5:1),r),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:g,barCategoryGap:v,axisKey:Ry(i),stackId:Ny(t)})}),zy(n)}function zy(t){var e={};Object(g.each)(t,function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return Object(g.each)(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(g.keys)(r).length;o=Math.max(35-4*a,15)+"%"}var s=fr(o,i),l=fr(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(g.each)(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;Object(g.each)(r,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;Object(g.each)(r,function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+l)})}),n}function Vy(t,e){var n=By(t,e),r=Fy(n);Object(g.each)(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=Ny(t),o=r[Ry(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function $y(t){return{seriesType:t,plan:fp(),reset:function(t){if(Gy(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=hy(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),d=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),f=Hy(t),p=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=f&&Ly(3*i),u=f&&s&&Ly(3*i),y=f&&Ly(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;null!=(r=t.next());){var S=x.get(c?g:o,r),C=x.get(a,r),k=d,O=void 0;c&&(O=+S-x.get(o,r));var M=void 0,E=void 0,T=void 0,A=void 0;if(h){var I=n.dataToPoint([S,C]);if(c)k=n.dataToPoint([O,C])[0];M=k,E=I[1]+m,T=I[0]-k,A=v,Math.abs(T)<p&&(T=(T<0?-1:1)*p)}else{I=n.dataToPoint([C,S]);if(c)k=n.dataToPoint([C,O])[1];M=I[0]+m,E=k,T=v,A=I[1]-k,Math.abs(A)<p&&(A=(A<=0?-1:1)*p)}f?(l[w]=M,l[w+1]=E,l[w+2]=h?T:A,u&&(u[w]=h?b.x:M,u[w+1]=h?E:b.y,u[w+2]=_),y[r]=r):e.setItemLayout(r,{x:M,y:E,width:T,height:A}),w+=3}f&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function Gy(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Hy(t){return t.pipelineContext&&t.pipelineContext.large}var Wy=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(f.__extends)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Lc(t.value,Tc[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Pc(this._minLevelUnit))]||Tc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(g.isString(n))o=n;else if(g.isFunction(n))o=n(t.value,e,{level:t.level});else{var a=g.extend({},Ec);if(t.level>0)for(var s=0;s<Ac.length;++s)a[Ac[s]]="{primary|"+a[Ac[s]]+"}";var l=n?!1===n.inherit?n:g.defaults(n,a):a,u=jc(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=Ic.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(g.isArray(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return Lc(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=function(t,e,n,r){var i=Ic,o=0;function a(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function s(t,i,o){var s=[],l=!i.length;if(!function(t,e,n,r){var i=Or(e),o=Or(n),a=function(t){return Nc(i,t,r)===Nc(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return d()&&a("millisecond")}}(Pc(t),r[0],r[1],n)){l&&(i=[{value:function(t,e,n){var r=new Date(t);switch(Pc(e)){case"year":case"month":r[Wc(n)](0);case"day":r[Uc(n)](1);case"hour":r[Yc(n)](0);case"minute":r[Xc(n)](0);case"second":r[qc(n)](0),r[Zc(n)](0)}return r.getTime()}(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var d=void 0,f=void 0,p=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/Oc/365)),f=Rc(n),p=Hc(n);break;case"half-year":case"quarter":case"month":d=Xy(e),f=Bc(n),p=Wc(n);break;case"week":case"half-week":case"day":d=Yy(e,31),f=Fc(n),p=Uc(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=qy(e),f=zc(n),p=Yc(n);break;case"minute":d=Zy(e,!0),f=Vc(n),p=Xc(n);break;case"second":d=Zy(e,!1),f=$c(n),p=qc(n);break;case"millisecond":d=Ky(e),f=Gc(n),p=Zc(n)}a(d,c,h,f,p,g,s),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(var u=0;u<s.length;u++)o.push(s[u]);return s}}for(var l=[],u=[],c=0,h=0,d=0;d<i.length&&o++<1e4;++d){var f=Pc(i[d]);if((_=i[d])===Pc(_)){s(i[d],l[l.length-1]||[],u);var p=i[d+1]?Pc(i[d+1]):null;if(f!==p){if(u.length){h=c,u.sort(function(t,e){return t.value-e.value});for(var v=[],m=0;m<u.length;++m){var y=u[m].value;0!==m&&u[m-1].value===y||(v.push(u[m]),y>=r[0]&&y<=r[1]&&c++)}var b=(r[1]-r[0])/e;if(c>1.5*b&&h>b/1.5)break;if(l.push(v),c>b||t===i[d])break}u=[]}}}var _;0;for(var x=Object(g.filter)(Object(g.map)(l,function(t){return Object(g.filter)(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),w=[],S=x.length-1,d=0;d<x.length;++d)for(var C=x[d],k=0;k<C.length;++k)w.push({value:C[k].value,level:S-d});w.sort(function(t,e){return t.value-e.value});for(var O=[],d=0;d<w.length;++d)0!==d&&w[d].value===w[d-1].value||O.push(w[d]);return O}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(i)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Oc,e[1]+=Oc),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Oc}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Uy.length,a=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(Uy,this._approxInterval,0,o),o-1);this._interval=Uy[a][1],this._minLevelUnit=Uy[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(g.isNumber)(t)?t:+Or(t)},e.prototype.contain=function(t){return Cy(this.parse(t),this._extent)},e.prototype.normalize=function(t){return ky(this.parse(t),this._extent)},e.prototype.scale=function(t){return Oy(t,this._extent)},e.type="time",e}(Iy),Uy=[["second",Sc],["minute",Cc],["hour",kc],["quarter-day",6*kc],["half-day",12*kc],["day",1.2*Oc],["half-week",3.5*Oc],["week",7*Oc],["month",31*Oc],["quarter",95*Oc],["half-year",Mc/2],["year",Mc]];function Yy(t,e){return(t/=Oc)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Xy(t){return(t/=30*Oc)>6?6:t>3?3:t>2?2:1}function qy(t){return(t/=kc)>12?12:t>6?6:t>3.5?4:t>2?2:1}function Zy(t,e){return(t/=e?Cc:Sc)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Ky(t){return Tr(t,!0)}gy.registerClass(Wy);var Jy=Wy,Qy=gy.prototype,tb=Iy.prototype,eb=pr,nb=Math.floor,rb=Math.ceil,ib=Math.pow,ob=Math.log,ab=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Iy,e._interval=0,e}return Object(f.__extends)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=tb.getTicks.call(this,t);return g.map(i,function(t){var e=t.value,i=pr(ib(this.base,e));return i=e===n[0]&&this._fixMin?lb(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?lb(i,r[1]):i}},this)},e.prototype.setExtent=function(t,e){var n=ob(this.base);t=ob(Math.max(0,t))/n,e=ob(Math.max(0,e))/n,tb.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=Qy.getExtent.call(this);e[0]=ib(t,e[0]),e[1]=ib(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=lb(e[0],n[0])),this._fixMax&&(e[1]=lb(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=ob(t[0])/ob(e),t[1]=ob(t[1])/ob(e),Qy.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=Mr(n);for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[pr(rb(e[0]/r)*r),pr(nb(e[1]/r)*r)];this._interval=r,this._niceExtent=i}},e.prototype.calcNiceExtent=function(t){tb.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Cy(t=ob(t)/ob(this.base),this._extent)},e.prototype.normalize=function(t){return ky(t=ob(t)/ob(this.base),this._extent)},e.prototype.scale=function(t){return t=Oy(t,this._extent),ib(this.base,t)},e.type="log",e}(gy),sb=ab.prototype;function lb(t,e){return eb(t,vr(e))}sb.getMinorTicks=tb.getMinorTicks,sb.getLabel=tb.getLabel,gy.registerClass(ab);var ub=ab,cb=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);Object(g.isFunction)(i)?this._modelMinNum=pb(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=pb(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Object(g.isFunction)(o)?this._modelMaxNum=pb(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=pb(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Object(g.isArray)(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[$n(s[0],1),$n(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Object(g.eqNaN)(a)||Object(g.eqNaN)(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[db[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=hb[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),hb={min:"_determinedMin",max:"_determinedMax"},db={min:"_dataMin",max:"_dataMax"};function fb(t,e,n){var r=t.rawExtentInfo;return r||(r=new cb(t,e,n),t.rawExtentInfo=r,r)}function pb(t,e){return null==e?null:Object(g.eqNaN)(e)?NaN:t.parse(e)}function gb(t,e){var n=t.type,r=fb(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=By("bar",a),l=!1;if(g.each(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=Fy(s),c=function(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(t,e,n){if(t&&e){var r=t[Ry(e)];return null!=r&&null!=n?r[Ny(n)]:r}}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;g.each(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;g.each(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function vb(t,e){var n=e,r=gb(t,n),i=r.extent,o=n.get("splitNumber");t instanceof ub&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function mb(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ey({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Jy({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(gy.getClass(e)||Iy)}}function yb(t){var e,n,r=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):g.isString(r)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(r):g.isFunction(r)?(e=r,function(n,r){return null!=i&&(r=n.value-i),e(bb(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function bb(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function _b(t){var e=t.get("interval");return null==e?"auto":e}function xb(t){return"category"===t.type&&0===_b(t.getLabelModel())}function wb(t,e){var n={};return g.each(t.mapDimensionsAll(e),function(e){n[dy(t,e)]=!0}),g.keys(n)}var Sb=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function Cb(t){return fy(null,t)}var kb={isDimensionStacked:hy,enableDataStack:cy,getStackedDimension:dy};function Ob(t,e){var n=e;e instanceof hc||(n=new hc(e));var r=mb(n);return r.setExtent(t[0],t[1]),vb(r,n),r}function Mb(t){g.mixin(t,Sb)}function Eb(t,e){return $u(t,null,null,"normal"!==(e=e||{}).state)}var Tb=1e-8;function Ab(t,e){return Math.abs(t-e)<Tb}function Ib(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=No(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return Ab(i[0],s[0])&&Ab(i[1],s[1])||(r+=No(i[0],i[1],s[0],s[1],e,n)),0!==r}var Db=[];function Pb(t,e){for(var n=0;n<t.length;n++)B(t[n],t[n],e)}function Lb(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(F(e,e,o),z(n,n,o))}}var jb=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),Nb=function(){return function(t,e){this.type="polygon",this.exterior=t,this.interiors=e}}(),Rb=function(){return function(t){this.type="linestring",this.points=t}}(),Bb=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return Object(f.__extends)(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(g.each)(i,function(e){"polygon"===e.type?Lb(e.exterior,n,r,t):Object(g.each)(e.points,function(e){Lb(e,n,r,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new It(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Ib(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Ib(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new It(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Pb(c.exterior,s),Object(g.each)(c.interiors,function(t){Pb(t,s)})):Object(g.each)(c.points,function(t){Pb(t,s)})}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(jb),Fb=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return Object(f.__extends)(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=pt(Db),i=t;i&&!i.isGeoSVGGraphicRoot;)vt(r,i.getLocalTransform(),r),i=i.parent;return _t(r,r),B(n,n,r),n},e}(jb);function zb(t,e,n){for(var r=0;r<t.length;r++)t[r]=Vb(t[r],e[r],n)}function Vb(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function $b(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return g.each(r,function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=Vb(i,r,n);break;case"Polygon":case"MultiLineString":zb(i,r,n);break;case"MultiPolygon":g.each(i,function(t,e){return zb(t,r[e],n)})}}),e.UTF8Encoding=!1,e}(t),g.map(g.filter(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new Nb(o[0],o.slice(1)));break;case"MultiPolygon":g.each(r.coordinates,function(t){t[0]&&i.push(new Nb(t[0],t.slice(1)))});break;case"LineString":i.push(new Rb([r.coordinates]));break;case"MultiLineString":i.push(new Rb(r.coordinates))}var a=new Bb(n[e||"name"],i,n.cp);return a.properties=n,a})}var Gb=Qr();function Hb(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=Ub(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=yb(t);return{labels:g.map(e,function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)}function Wb(t,e){return"category"===t.type?function(t,e){var n,r,i=Yb(t,"ticks"),o=_b(e),a=Xb(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(g.isFunction(o))n=Kb(t,o,!0);else if("auto"===o){var s=Ub(t,t.getLabelModel());r=s.labelCategoryInterval,n=g.map(s.labels,function(t){return t.tickValue})}else n=Zb(t,r=o,!0);return qb(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:g.map(t.scale.getTicks(),function(t){return t.value})}}function Ub(t,e){var n,r=Yb(t,"labels"),i=_b(e),o=Xb(r,i);return o||qb(r,i,{labels:g.isFunction(i)?Kb(t,i):Zb(t,n="auto"===i?function(t){var e=Gb(t).autoInterval;return null!=e?e:Gb(t).autoInterval=t.calculateCategoryInterval()}(t):i),labelCategoryInterval:n})}function Yb(t,e){return Gb(t)[e]||(Gb(t)[e]=[])}function Xb(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function qb(t,e,n){return t.push({key:e,value:n}),n}function Zb(t,e,n){var r=yb(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=xb(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return f&&p-l!==o[1]&&g(o[1]),s}function Kb(t,e,n){var r=t.scale,i=yb(t),o=[];return g.each(r.getTicks(),function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})}),o}var Jb=[0,1];function Qb(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var t_=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return yr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&Qb(n=n.slice(),r.count()),dr(t,Jb,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&Qb(n=n.slice(),r.count());var i=dr(t,n,Jb,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Wb(this,e).ticks,r=Object(g.map)(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(g.each)(e,function(t){t.coord-=u/2});var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift());r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop());r&&d(o.coord,s[1])&&e.push({coord:s[1]});function d(t,e){return t=pr(t),e=pr(e),h?t>e:t<e}}(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(g.map)(e,function(t){return Object(g.map)(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return Hb(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=yb(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),d=0,f=0;l<=o[1];l+=s){var p,g,v=Bn(n({value:l}),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var m=d/c,y=f/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(m,y))),_=Gb(t.model),x=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}(this)},t}();function e_(t){var e=Sh.extend(t);return Sh.registerClass(e),e}function n_(t){var e=dp.extend(t);return dp.registerClass(e),e}function r_(t){var e=cp.extend(t);return cp.registerClass(e),e}function i_(t){var e=wp.extend(t);return wp.registerClass(e),e}var o_=2*Math.PI,a_=Eo.CMD,s_=["top","right","bottom","left"];function l_(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function u_(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(r-i)%o_<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=r;r=Po(i),i=Po(d)}else r=Po(r),i=Po(i);r>i&&(i+=o_);var f=Math.atan2(s,a);if(f<0&&(f+=o_),f>=r&&f<=i||f+o_>=r&&f+o_<=i)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,m=n*Math.sin(i)+e,y=(p-a)*(p-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(m-s)*(m-s);return y<b?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(b))}function c_(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,d=Math.sqrt(c*c+h*h),f=(l*(c/=d)+u*(h/=d))/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var p=a[0]=t+f*c,g=a[1]=e+f*h;return Math.sqrt((p-i)*(p-i)+(g-o)*(g-o))}function h_(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var d_=[];function f_(t,e,n){var r=h_(e.x,e.y,e.width,e.height,t.x,t.y,d_);return n.set(d_[0],d_[1]),r}function p_(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,f=0;f<c.length;){var p=c[f++];1===f&&(s=o=c[f],l=a=c[f+1]);var g=u;switch(p){case a_.M:o=s=c[f++],a=l=c[f++];break;case a_.L:g=c_(o,a,c[f],c[f+1],h,d,d_,!0),o=c[f++],a=c[f++];break;case a_.C:g=we(o,a,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],h,d,d_),o=c[f++],a=c[f++];break;case a_.Q:g=Ee(o,a,c[f++],c[f++],c[f],c[f+1],h,d,d_),o=c[f++],a=c[f++];break;case a_.A:var v=c[f++],m=c[f++],y=c[f++],b=c[f++],_=c[f++],x=c[f++];f+=1;var w=!!(1-c[f++]);r=Math.cos(_)*y+v,i=Math.sin(_)*b+m,f<=1&&(s=r,l=i),g=u_(v,m,b,_,_+x,w,(h-v)*b/y+v,d,d_),o=Math.cos(_+x)*y+v,a=Math.sin(_+x)*b+m;break;case a_.R:g=h_(s=o=c[f++],l=a=c[f++],c[f++],c[f++],h,d,d_);break;case a_.Z:g=c_(o,a,s,l,h,d,d_,!0),o=s,a=l}g<u&&(u=g,n.set(d_[0],d_[1]))}return u}var g_=new wt,v_=new wt,m_=new wt,y_=new wt,b_=new wt;function __(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||s_,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&_t([],c),d=e.get("length2")||0;u&&m_.copy(u);for(var f=0;f<a.length;f++){l_(a[f],0,s,g_,y_),wt.scaleAndAdd(v_,g_,y_,d),v_.transform(h);var p=t.getBoundingRect(),g=u?u.distance(v_):t instanceof qo?p_(v_,t.path,m_):f_(v_,p,m_);g<l&&(l=g,v_.transform(c),m_.transform(c),m_.toArray(o[0]),v_.toArray(o[1]),g_.toArray(o[2]))}S_(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var x_=[],w_=new wt;function S_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,g_.fromArray(t[0]),v_.fromArray(t[1]),m_.fromArray(t[2]),wt.sub(y_,g_,v_),wt.sub(b_,m_,v_);var n=y_.len(),r=b_.len();if(!(n<.001||r<.001)){y_.scale(1/n),b_.scale(1/r);var i=y_.dot(b_);if(Math.cos(e)<i){var o=c_(v_.x,v_.y,m_.x,m_.y,g_.x,g_.y,x_,!1);w_.fromArray(x_),w_.scaleAndAdd(b_,o/Math.tan(Math.PI-e));var a=m_.x!==v_.x?(w_.x-v_.x)/(m_.x-v_.x):(w_.y-v_.y)/(m_.y-v_.y);if(isNaN(a))return;a<0?wt.copy(w_,v_):a>1&&wt.copy(w_,m_),w_.toArray(t[1])}}}}function C_(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,g_.fromArray(t[0]),v_.fromArray(t[1]),m_.fromArray(t[2]),wt.sub(y_,v_,g_),wt.sub(b_,m_,v_);var r=y_.len(),i=b_.len();if(!(r<.001||i<.001))if(y_.scale(1/r),b_.scale(1/i),y_.dot(e)<Math.cos(n)){var o=c_(v_.x,v_.y,m_.x,m_.y,g_.x,g_.y,x_,!1);w_.fromArray(x_);var a=Math.PI/2,s=a+Math.acos(b_.dot(e))-n;if(s>=a)wt.copy(w_,m_);else{w_.scaleAndAdd(b_,o/Math.tan(Math.PI/2-s));var l=m_.x!==v_.x?(w_.x-v_.x)/(m_.x-v_.x):(w_.y-v_.y)/(m_.y-v_.y);if(isNaN(l))return;l<0?wt.copy(w_,v_):l>1&&wt.copy(w_,m_)}w_.toArray(t[1])}}}function k_(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function O_(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=P(r[0],r[1]),o=P(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=R([],r[1],r[0],a/i),l=R([],r[1],r[2],a/o),u=R([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function M_(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<Ra.length;l++){var u=Ra[l],c=e[u],h="normal"===u;if(c){var d=c.get("show");if((h?s:Object(g.retrieve2)(i.states[u]&&i.states[u].ignore,s))||!Object(g.retrieve2)(d,a)){var f=h?r:r&&r.states[u];f&&(f.ignore=!0);continue}r||(r=new Ml,t.setTextGuideLine(r),h||!s&&a||k_(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),k_(r,!1,u,c)}}if(r){Object(g.defaults)(r.style,n),r.style.fill=null;var p=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=p||!1,r.buildPath=O_}}else r&&t.removeTextGuideLine()}function E_(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Na.length;r++){var i=Na[r];n[i]=t.getModel([i,e])}return n}function T_(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Xl(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function A_(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var f=t[d],p=f.rect;(s=p[e]-l)<0&&(p[e]-=s,f.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=p[e]+p[n]}h>0&&o&&w(-h/a,0,a);var v,m,y=t[0],b=t[a-1];return _(),v<0&&S(-v,.8),m<0&&S(m,.8),_(),x(v,m,1),x(m,v,-1),_(),v<0&&C(-v),m<0&&C(m),u}function _(){v=y.rect[e]-r,m=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function S(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){w(o[l]*h,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*h),l,a)}}}function C(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?w(n,0,r+1):w(-n,a-r-1,a),(t-=n)<=0)return}}function I_(t,e,n,r){return A_(t,"y","height",e,n,r)}function D_(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new It(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,f=0;f<e.length;f++){var p=e[f];if(n.intersect(p.rect)){if(a&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new Xl(p.localRect,p.transform)),h||(h=new Xl(s,l)),h.intersect(p.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function P_(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(r&&r.shape.points)}}var L_=["align","verticalAlign","width","height","fontSize"],j_=new Dn,N_=Qr(),R_=Qr();function B_(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var F_=["x","y","rotation"],z_=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),l=r.getBoundingRect().plain();It.applyTransform(l,l,s),s?j_.setLocalTransform(s):(j_.x=j_.y=j_.rotation=j_.originX=j_.originY=0,j_.scaleX=j_.scaleY=1);var u,c=r.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();It.applyTransform(u,u,h)}var d=u&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:j_.x,y:j_.y,scaleX:j_.scaleX,scaleY:j_.scaleY,rotation:j_.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Object(g.isFunction)(r)||Object(g.keys)(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Ma(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)})},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){__(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=Object(g.isFunction)(o.layoutOption)?o.layoutOption(P_(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=fr(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=fr(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}N_(a).needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<L_.length;f++){var p=L_[f];a.setStyle(p,null!=u[p]?u[p]:l.style[p])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex)v=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e,n=t.getWidth(),r=t.getHeight(),i=T_(this._labelList),o=Object(g.filter)(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),a=Object(g.filter)(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});A_(o,"x","width",0,n,e),I_(a,0,r),D_(Object(g.filter)(i,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;Object(g.each)(this._chartViewList,function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=N_(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Ma(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");M_(t,E_(a),s),__(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!nu(t))){var i=(f=N_(n)).oldLayout,o=Ma(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(i){n.attr(i);var u=t.prevStates;u&&(Object(g.indexOf)(u,"select")>=0&&n.attr(f.oldLayoutSelect),Object(g.indexOf)(u,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),tu(n,s,e,a)}else if(n.attr(s),!qu(n).valueAnimation){var c=Object(g.retrieve2)(n.style.opacity,1);n.style.opacity=0,eu(n,{style:{opacity:c}},e,a)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};B_(h,s,F_),B_(h,n.states.select,F_)}if(n.states.emphasis){var d=f.oldLayoutEmphasis={};B_(d,s,F_),B_(d,n.states.emphasis,F_)}Ku(n,a,l,e,e)}if(r&&!r.ignore&&!r.invisible){i=(f=R_(r)).oldLayout;var f,p={points:r.shape.points};i?(r.attr({shape:i}),tu(r,{shape:p},e)):(r.setShape(p),r.style.strokePercent=0,eu(r,{style:{strokePercent:1}},e)),f.oldLayout=p}},t}(),V_=Qr();function $_(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var r=V_(e).labelManager;r||(r=V_(e).labelManager=new z_),r.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var r=V_(e).labelManager;n.updatedSeries.forEach(function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()})}Am($_);var G_=Math.sin,H_=Math.cos,W_=Math.PI,U_=2*Math.PI,Y_=180/W_,X_=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=Object(Le.j)(c-U_)||(u?l>=U_:-l>=U_),d=l>0?l%U_:l%U_+U_,f=!1;f=!!h||!Object(Le.j)(c)&&d>=W_==!!u;var p=t+n*H_(o),g=e+r*G_(o);this._start&&this._add("M",p,g);var v=Math.round(i*Y_);if(h){var m=1/this._p,y=(u?1:-1)*(U_-m);this._add("A",n,r,v,1,+u,t+n*H_(o+y),e+r*G_(o+y)),m>.01&&this._add("A",n,r,v,0,+u,p,g)}else{var b=t+n*H_(a),_=e+r*G_(a);this._add("A",n,r,v,+f,+u,b,_)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),q_="none",Z_=Math.round;var K_=["lineCap","miterLimit","lineJoin"],J_=Object(g.map)(K_,function(t){return"stroke-"+t.toLowerCase()});function Q_(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof na)t("opacity",i);else{if(function(t){var e=t.fill;return null!=e&&e!==q_}(e)){var o=Object(Le.p)(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&t("fill-opacity",a)}else t("fill",q_);if(function(t){var e=t.stroke;return null!=e&&e!==q_}(e)){var s=Object(Le.p)(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var d=jg(n),f=d[0],p=d[1];f&&(p=Z_(p||0),t("stroke-dasharray",f.join(",")),(p||r)&&t("stroke-dashoffset",p))}else r&&t("stroke-dasharray",q_);for(var g=0;g<K_.length;g++){var v=K_[g];if(r||e[v]!==Uo[v]){var m=e[v]||Uo[v];m&&t(J_[g],m)}}}else r&&t("stroke",q_)}}var tx="http://www.w3.org/2000/svg",ex="http://www.w3.org/1999/xlink",nx="http://www.w3.org/2000/xmlns/",rx="http://www.w3.org/XML/1998/namespace";function ix(t){return document.createElementNS(tx,t)}function ox(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function ax(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var r=e.children,i=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?Q(a):a||"")+(r?""+n+Object(g.map)(r,function(e){return t(e)}).join(n)+n:"")+"</"+i+">"}(t)}function sx(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lx(t,e,n,r){return ox("svg","root",{width:t,height:e,xmlns:tx,"xmlns:xlink":ex,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var ux={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},cx="transform-origin";function hx(t,e,n){var r=Object(g.extend)({},t.shape);Object(g.extend)(r,e),t.buildPath(n,r);var i=new X_;return i.reset(Object(Le.f)(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function dx(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[cx]=n+"px "+r+"px")}var fx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function px(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function gx(t){return Object(g.isString)(t)?ux[t]?"cubic-bezier("+ux[t]+")":Ie(t)?t:"":""}function vx(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof zl){if(m=function(t,e,n){var r,i,o=t.shape.paths,a={};if(Object(g.each)(o,function(t){var e=sx(n.zrId);e.animation=!0,vx(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Object(g.keys)(o),u=l.length;if(u){var c=o[i=l[u-1]];for(var h in c){var d=c[h];a[h]=a[h]||{d:""},a[h].d+=d.d||""}for(var f in s){var p=s[f].animation;p.indexOf(i)>=0&&(r=p)}}}),r){e.d=!1;var s=px(a,n);return r.replace(i,s)}}(t,e,n))a.push(m);else if(!o)return}else if(!o)return;for(var s={},l=0;l<o;l++){var u=i[l],c=[u.getMaxTime()/1e3+"s"],h=gx(u.getClip().easing),d=u.getDelay();h?c.push(h):c.push("linear"),d&&c.push(d/1e3+"s"),u.getLoop()&&c.push("infinite");var f=c.join(" ");s[f]=s[f]||[f,[]],s[f][1].push(u)}function p(i){var o,a=i[1],s=a.length,l={},u={},c={},h="animation-timing-function";function d(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/i*100)+"%",f=gx(c.easing),p=c.rawValue;(Object(g.isString)(p)||Object(g.isNumber)(p))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,f&&(e[d][h]=f))}}}}for(var f=0;f<s;f++){(C=(S=a[f]).targetName)?"shape"===C&&d(S,u):!r&&d(S,l)}for(var p in l){var v={};In(v,t),Object(g.extend)(v,l[p]);var m=Object(Le.g)(v),y=l[p][h];c[p]=m?{transform:m}:{},dx(c[p],v),y&&(c[p][h]=y)}var b=!0;for(var p in u){c[p]=c[p]||{};var _=!o;y=u[p][h];_&&(o=new Eo);var x=o.len();o.reset(),c[p].d=hx(t,u[p],o);var w=o.len();if(!_&&x!==w){b=!1;break}y&&(c[p][h]=y)}if(!b)for(var p in c)delete c[p].d;if(!r)for(f=0;f<s;f++){var S,C;"style"===(C=(S=a[f]).targetName)&&d(S,c,function(t){return fx[t]})}var k,O=Object(g.keys)(c),M=!0;for(f=1;f<O.length;f++){var E=O[f-1],T=O[f];if(c[E][cx]!==c[T][cx]){M=!1;break}k=c[E][cx]}if(M&&k){for(var p in c)c[p][cx]&&delete c[p][cx];e[cx]=k}if(Object(g.filter)(O,function(t){return Object(g.keys)(c[t]).length>0}).length)return px(c,n)+" "+i[0]+" both"}for(var v in s){var m;(m=p(s[v]))&&a.push(m)}if(a.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}var mx=Math.round;function yx(t){return t&&Object(g.isString)(t.src)}function bx(t){return t&&Object(g.isFunction)(t.toDataURL)}function _x(t,e,n,r){Q_(function(i,o){var a="fill"===i||"stroke"===i;a&&Object(Le.k)(o)?Ax(e,t,i,r):a&&Object(Le.n)(o)?Ix(n,t,i,r):t[i]=o},e,n,!1),function(t,e,n){var r=t.style;if(Object(Le.i)(r)){var i=Object(Le.h)(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,d=r.shadowBlur,f=Object(Le.p)(r.shadowColor),p=f.opacity,g=f.color,v=d/2/l,m=d/2/u,y=v+" "+m;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=ox("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ox("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:y,"flood-color":g,"flood-opacity":p})]),o[i]=a}e.filter=Object(Le.d)(a)}}(n,t,r)}function xx(t){return Object(Le.j)(t[0]-1)&&Object(Le.j)(t[1])&&Object(Le.j)(t[2])&&Object(Le.j)(t[3]-1)}function wx(t,e,n){if(e&&(!function(t){return Object(Le.j)(t[4])&&Object(Le.j)(t[5])}(e)||!xx(e))){var r=n?10:1e4;t.transform=xx(e)?"translate("+mx(e[4]*r)/r+" "+mx(e[5]*r)/r+")":Object(Le.e)(e)}}function Sx(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(mx(r[o][0]*n)/n),i.push(mx(r[o][1]*n)/n);e.points=i.join(" ")}function Cx(t){return!t.smooth}var kx,Ox,Mx={circle:[(kx=["cx","cy","r"],Ox=Object(g.map)(kx,function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var r=0;r<Ox.length;r++){var i=Ox[r],o=t[i[0]];null!=o&&(e[i[1]]=mx(o*n)/n)}})],polyline:[Sx,Cx],polygon:[Sx,Cx]};function Ex(t,e){var n=t.style,r=t.shape,i=Mx[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Object(Le.f)(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),f=t,p=f.__svgPathBuilder;f.__svgPathVersion===d&&p&&l===f.__svgPathStrokePercent||(p||(p=f.__svgPathBuilder=new X_),p.reset(u),h.rebuildPath(p,l),p.generateStr(),f.__svgPathVersion=d,f.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=t.type;var g=Math.pow(10,u);i[0](r,o,g)}return wx(o,t.transform),_x(o,n,t,e),e.animation&&vx(t,o,e),ox(s,t.id+"",o)}function Tx(t,e){return t instanceof qo?Ex(t,e):t instanceof na?function(t,e){var n=t.style,r=n.image;if(r&&!Object(g.isString)(r)&&(yx(r)?r=r.src:bx(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),wx(a,t.transform),_x(a,n,t,e),e.animation&&vx(t,a,e),ox("image",t.id+"",a)}}(t,e):t instanceof Jo?function(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||Ln.a,o=n.x||0,a=Object(Le.b)(n.y||0,Vn(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":Le.a[n.textAlign]||n.textAlign};if(ba(n)){var l="",u=n.fontStyle,c=ma(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||Ln.b,d=n.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),wx(s,t.transform),_x(s,n,t,e),e.animation&&vx(t,s,e),ox("text",t.id+"",s,void 0,r)}}(t,e):void 0}function Ax(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Le.m)(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(Le.o)(o))return void 0;i="radialGradient",a.cx=Object(g.retrieve2)(o.x,.5),a.cy=Object(g.retrieve2)(o.y,.5),a.r=Object(g.retrieve2)(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Object(Le.q)(s[u].offset)+"%",d=s[u].color,f=Object(Le.p)(d),p=f.color,v=f.opacity,m={offset:h};m["stop-color"]=p,v<1&&(m["stop-opacity"]=v),l.push(ox("stop",u+"",m))}var y=ax(ox(i,"",a,l)),b=r.gradientCache,_=b[y];_||(_=r.zrId+"-g"+r.gradientIdx++,b[y]=_,a.id=_,r.defs[_]=ox(i,_,a,l)),e[n]=Object(Le.d)(_)}function Ix(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Object(Le.l)(o)){var d=o.imageWidth,f=o.imageHeight,p=void 0,v=o.image;if(Object(g.isString)(v)?p=v:yx(v)?p=v.src:bx(v)&&(p=v.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";Object(g.assert)(d,m),Object(g.assert)(f,m)}else if(null==d||null==f){var y=function(t,e){if(t){var n=t.elm,r=d||e.width,i=f||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):h&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},b=Ci(p,null,t,function(t){u||y(S,t),y(i,t)});b&&b.width&&b.height&&(d=d||b.width,f=f||b.height)}i=ox("image","img",{href:p,width:d,height:f}),s.width=d,s.height=f}else o.svgElement&&(i=Object(g.clone)(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var _,x;u?_=x=1:c?(x=1,_=s.width/a.width):h?(_=1,x=s.height/a.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==x||isNaN(x)||(s.height=x);var w=Object(Le.g)(o);w&&(s.patternTransform=w);var S=ox("pattern","",s,[i]),C=ax(S),k=r.patternCache,O=k[C];O||(O=r.zrId+"-p"+r.patternIdx++,k[C]=O,s.id=O,S=r.defs[O]=ox("pattern",O,s,[i])),e[n]=Object(Le.d)(O)}}function Dx(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[t.id]=o,i[o]=ox("clipPath",o,a,[Ex(t,n)])}e["clip-path"]=Object(Le.d)(o)}function Px(t){return document.createTextNode(t)}function Lx(t,e,n){t.insertBefore(e,n)}function jx(t,e){t.removeChild(e)}function Nx(t,e){t.appendChild(e)}function Rx(t){return t.parentNode}function Bx(t){return t.nextSibling}function Fx(t,e){t.textContent=e}var zx=58,Vx=120,$x=ox("","");function Gx(t){return void 0===t}function Hx(t){return void 0!==t}function Wx(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function Ux(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Yx(t){var e,n=t.children,r=t.tag;if(Hx(r)){var i=t.elm=ix(r);if(Zx($x,t),Object(g.isArray)(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&Nx(i,Yx(o))}else Hx(t.text)&&!Object(g.isObject)(t.text)&&Nx(i,Px(t.text))}else t.elm=Px(t.text);return t.elm}function Xx(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&Lx(t,Yx(o),e)}}function qx(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(Hx(i.tag))jx(Rx(i.elm),i.elm);else jx(t,i.elm)}}function Zx(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):n.charCodeAt(0)!==Vx?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(nx,n,a):n.charCodeAt(3)===zx?r.setAttributeNS(rx,n,a):n.charCodeAt(5)===zx?r.setAttributeNS(ex,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Kx(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Zx(t,e),Gx(e.text)?Hx(r)&&Hx(i)?r!==i&&function(t,e,n){for(var r,i,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,d=n[0],f=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==d?d=n[++s]:null==f?f=n[--h]:Ux(u,d)?(Kx(u,d),u=e[++a],d=n[++s]):Ux(c,f)?(Kx(c,f),c=e[--l],f=n[--h]):Ux(u,f)?(Kx(u,f),Lx(t,u.elm,Bx(c.elm)),u=e[++a],f=n[--h]):Ux(c,d)?(Kx(c,d),Lx(t,c.elm,u.elm),c=e[--l],d=n[++s]):(Gx(r)&&(r=Wx(e,a,l)),Gx(i=r[d.key])?Lx(t,Yx(d),u.elm):(o=e[i]).tag!==d.tag?Lx(t,Yx(d),u.elm):(Kx(o,d),e[i]=void 0,Lx(t,o.elm,u.elm)),d=n[++s]);(a<=l||s<=h)&&(a>l?Xx(t,null==n[h+1]?null:n[h+1].elm,n,s,h):qx(t,e,a,l))}(n,r,i):Hx(i)?(Hx(t.text)&&Fx(n,""),Xx(n,null,i,0,i.length-1)):Hx(r)?qx(n,r,0,r.length-1):Hx(t.text)&&Fx(n,""):t.text!==e.text&&(Hx(r)&&qx(n,r,0,r.length-1),Fx(n,e.text)))}var Jx=0;function Qx(t){return function(){0}}var tw=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=Qx("refreshHover"),this.configLayer=Qx("configLayer"),this.storage=e,this._opts=n=Object(g.extend)({},n),this.root=t,this._id="zr"+Jx++,this._oldVNode=lx(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ix("svg");Zx(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(Ux(t,e))Kx(t,e);else{var n=t.elm,r=Rx(n);Yx(e),null!==r&&(Lx(r,e.elm,Bx(n)),qx(r,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Tx(t,sx(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=sx(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],a=this._bgVNode=function(t,e,n,r){var i;if(n&&"none"!==n)if(i=ox("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Object(Le.k)(n))Ax({fill:n},i.attrs,"fill",r);else if(Object(Le.n)(n))Ix({style:{fill:n},dirty:g.noop,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=Object(Le.p)(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=ox("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=Object(g.map)(Object(g.keys)(i.defs),function(t){return i.defs[t]});if(l.length&&o.push(ox("defs","defs",{},l)),t.animation){var u=function(t,e,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=Object(g.map)(Object(g.keys)(t),function(e){return e+i+Object(g.map)(Object(g.keys)(t[e]),function(n){return n+":"+t[e][n]+";"}).join(r)+o}).join(r),s=Object(g.map)(Object(g.keys)(e),function(t){return"@keyframes "+t+i+Object(g.map)(Object(g.keys)(e[t]),function(n){return n+i+Object(g.map)(Object(g.keys)(e[t][n]),function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"}).join(r)+o}).join(r)+o}).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=ox("style","stl",{},[],u);o.push(c)}}return lx(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},ax(this.renderToVNode({animation:Object(g.retrieve2)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(g.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,f=i&&i.length||0,p=void 0;for(p=Math.max(d-1,f-1);p>=0&&(!h||!i||h[p]!==i[p]);p--);for(var g=f-1;g>p;g--)r=a[--s-1];for(var v=p+1;v<d;v++){var m={};Dx(h[v],m,e);var y=ox("g","clip-g-"+l++,m,[]);(r?r.children:n).push(y),a[s++]=y,r=y}i=h;var b=Tx(c,e);b&&(r?r.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=Lg(r,0,n),e=Lg(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(Object(Le.n)(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Object(Le.c)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function ew(t,e,n){var r=Ln.d.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var nw=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||xn,"string"==typeof e?i=ew(e,n,r):g.isObject(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(g.disableUserSelect(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return Object(f.__extends)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=ew("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new It(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new It(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new It(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,f=c.width*c.height,p=l.width*l.height-d-f;p<r&&(r=p,i=u)}}if(s&&(o[i].union(t),n=!0),!n)(e=new It(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(f=t[c]){var h=f.shouldBePainted(n,r,!0,!0);(p=f.__isRendered&&(f.__dirty&Kt||!h)?f.getPrevPaintRect():null)&&u(p);var d=h&&(f.__dirty&Kt||!f.__isRendered)?f.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var f,p;h=(f=e[c]).shouldBePainted(n,r,!0,!0);if(f&&(!h||!f.__zr)&&f.__isRendered)(p=f.getPrevPaintRect())&&u(p)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function d(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(g.isGradientObject(e))a=(e.global||e.__width===r&&e.__height===o)&&e.__canvasGradient||Dg(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o;else g.isImagePatternObject(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=$g(i,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&g.each(n,function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)})},e}(G),rw=314159;var iw=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=g.extend({},n||{}),this.dpr=n.devicePixelRatio||xn,this._singleCanvas=i,this.root=t,t.style&&(g.disableUserSelect(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new nw(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[rw]=c,c.zlevel=rw,o.push(rw),this._domRoot=t}else{this._width=Lg(t,0,n),this._height=Lg(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),ev(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){tv(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;re(function(){s._paintList(t,e,n,r)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(rw).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,f=o&&l.createRepaintRects(t,e,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,f);else if(p===l.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||l.clear(!1,m,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var _=d.dpr,x=0;x<f.length;++x){var w=f[x];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),b(w),h.restore()}else h.save(),b(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,f=0;f<i.length;f++)h(f);return p.a.wxa&&g.each(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(ev(a,t,i,o),t.setPrevPaintRect(s))}else ev(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=rw);var n=this._layers[t];return n||((n=new nw("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?g.merge(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&g.merge(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<t.length;i++){var s,l=(s=t[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?.01:0),this._needsManuallyCompositing),u.__builtin__||g.logError("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),o=u),s.__dirty&Kt&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,g.each(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?g.merge(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+.01){var o=this._layers[i];g.merge(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(g.indexOf(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=Lg(i,0,r),e=Lg(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(rw).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[rw].dom;var e=new nw("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];ev(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();var ow=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t){return fy(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new tr,n=Eg("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=Eg(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(cp);function aw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=tf(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(tf(t,e,n[a]));return o.join(" ")}}function sw(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(g.isArray)(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}function lw(t,e){this.parent.drift(t,e)}var uw=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return Object(f.__extends)(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=Eg(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=lw,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ls(this.childAt(0))},e.prototype.downplay=function(){us(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):tu(d,h,a,n),au(d)}if(this._updateCommon(t,n,s,r,i),l){var d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,eu(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,d,f,p=this.childAt(0),v=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,f=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=Vu(m),d=y.getShallow("scale"),f=m.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(b||0)*Math.PI/180||0);var _=Ag(t.getItemVisual(e,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),f&&p.attr("cursor",f);var x=t.getItemVisual(e,"style"),w=x.fill;if(p instanceof na){var S=p.style;p.useStyle(Object(g.extend)({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},x))}else p.__isEmptyBrush?p.useStyle(Object(g.extend)({},x)):p.useStyle(x),p.style.decal=null,p.setColor(w,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var C=t.getItemVisual(e,"liftZ"),k=this._z2;null!=C?null==k&&(this._z2=p.z2,p.z2+=C):null!=k&&(p.z2=k,this._z2=null);var O=i&&i.useNameLabel;zu(p,h,{labelFetcher:v,labelDataIndex:e,defaultText:function(e){return O?t.getName(e):aw(t,e)},inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=p.ensureState("emphasis");M.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var E=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;M.scaleX=this._sizeX*E,M.scaleY=this._sizeY*E,this.setSymbolScale(1),xs(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Ma(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&ru(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();ru(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Tg(t.getItemVisual(e,"symbolSize"))},e}(tr);function cw(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function hw(t){return null==t||Object(g.isObject)(t)||(t={isIgnore:t}),t||{}}function dw(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Vu(e),cursorStyle:e.get("cursor")}}var fw=function(){function t(t){this.group=new tr,this._SymbolCtor=t||uw}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=hw(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=dw(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add(function(r){var i=u(r);if(cw(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}}).update(function(c,h){var d=i.getItemGraphicEl(h),f=u(c);if(cw(t,f,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),(d=new o(t,c,s,l)).setPosition(f);else{d.updateData(t,c,s,l);var v={x:f[0],y:f[1]};a?d.attr(v):tu(d,v,r)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},r)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=dw(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=hw(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(cw(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Nu(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();function pw(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:Object(g.isNumber)(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Object(g.map)(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return hy(e,h[0])&&(d=!0,h[0]=f),hy(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gw(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var vw=Math.min,mw=Math.max;function yw(t,e){return isNaN(t)||isNaN(e)}function bw(t,e,n,r,i,o,a,s,l){for(var u,c,h,d,f,p,g=n,v=0;v<r;v++){var m=e[2*g],y=e[2*g+1];if(g>=i||g<0)break;if(yw(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,d=y;else{var b=m-u,_=y-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){for(var x=g+o,w=e[2*x],S=e[2*x+1];w===m&&S===y&&v<r;)v++,g+=o,w=e[2*(x+=o)],S=e[2*x+1],b=(m=e[2*g])-u,_=(y=e[2*g+1])-c;var C=v+1;if(l)for(;yw(w,S)&&C<r;)C++,w=e[2*(x+=o)],S=e[2*x+1];var k=.5,O=0,M=0,E=void 0,T=void 0;if(C>=r||yw(w,S))f=m,p=y;else{O=w-u,M=S-c;var A=m-u,I=w-m,D=y-c,P=S-y,L=void 0,j=void 0;if("x"===s){L=Math.abs(A),j=Math.abs(I);var N=O>0?1:-1;f=m-N*L*a,p=y,E=m+N*j*a,T=y}else if("y"===s){L=Math.abs(D),j=Math.abs(P);var R=M>0?1:-1;f=m,p=y-R*L*a,E=m,T=y+R*j*a}else L=Math.sqrt(A*A+D*D),f=m-O*a*(1-(k=(j=Math.sqrt(I*I+P*P))/(j+L))),p=y-M*a*(1-k),T=y+M*a*k,E=vw(E=m+O*a*k,mw(w,m)),T=vw(T,mw(S,y)),E=mw(E,vw(w,m)),p=y-(M=(T=mw(T,vw(S,y)))-y)*L/j,f=vw(f=m-(O=E-m)*L/j,mw(u,m)),p=vw(p,mw(c,y)),f=mw(f,vw(u,m)),p=mw(p,vw(c,y)),E=m+(O=m-f)*j/L,T=y+(M=y-p)*j/L}t.bezierCurveTo(h,d,f,p,m,y),h=E,d=T}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var _w=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),xw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(f.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _w},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&yw(n[2*i-2],n[2*i-1]);i--);for(;r<i&&yw(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=bw(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Eo.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=0){var v=a?(c-r)*g+r:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],d=i[l++],f=i[l++],p=i[l++];var m=a?be(n,u,h,f,t,s):be(r,c,d,p,t,s);if(m>0)for(var y=0;y<m;y++){var b=s[y];if(b<=1&&b>=0){v=a?me(r,c,d,p,b):me(n,u,h,f,b);return a?[t,v]:[v,t]}}n=f,r=p}}},e}(qo),ww=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e}(_w),Sw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new ww},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&yw(n[2*o-2],n[2*o-1]);o--);for(;i<o&&yw(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=bw(t,n,i,o,o,1,e.smooth,a,e.connectNulls);bw(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(qo);function Cw(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new ca({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var v=Object(g.isFunction)(i)?function(t){i(t,h)}:null;eu(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,v)}return h}function kw(t,e,n){var r=t.getArea(),i=pr(r.r0,1),o=pr(r.r,1),a=new ml({shape:{cx:pr(t.cx,1),cy:pr(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,eu(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function Ow(t,e,n,r,i){return t?"polar"===t.type?kw(t,e,n):"cartesian2d"===t.type?Cw(t,e,n,r,i):null:null}function Mw(t,e){return t.type===e}function Ew(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Tw(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Aw(t,e){var n=Tw(t),r=n[0],i=n[1],o=Tw(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Iw(t){return g.isNumber(t)?t:t?.5:0}function Dw(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,f=[];l[o]=f[o]=d,l[1-o]=u[1-o],f[1-o]=c[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Pw(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=g.map(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=(n-r)/(e.coord-r);return{coord:n,color:Object(Pe.lerp)(i,[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(u,"x"===i?n.getWidth():n.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=d[0].coord-10,v=d[f-1].coord+10,m=v-p;if(m<.001)return"transparent";g.each(d,function(t){t.offset=(t.coord-p)/m}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var y=new $l(0,0,0,0,d,!0);return y[i]=p,y[i+"2"]=v,y}}}function Lw(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*uw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return g.each(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function jw(t,e){return[t[2*e],t[2*e+1]]}function Nw(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Na.length;e++)if(t.get([Na[e],"endLabel","show"]))return!0;return!1}function Rw(t,e,n,r){if(Mw(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=Nw(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Cw(e,n,r,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return kw(e,n,r)}var Bw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.init=function(){var t=new tr,e=new fw;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,v=this._lineGroup,m=!e.ssr&&t.isAnimationEnabled(),y=!l.isEmpty(),b=l.get("origin"),_=pw(i,a,b),x=y&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Ly(2*r),o=0;o<r;o++){var a=gw(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,_),w=t.get("showSymbol"),S=t.get("connectNulls"),C=w&&!c&&Lw(t,a,i),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),w||d.remove(),o.add(v);var O,M=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(O=i.getArea()).width?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var E=Pw(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&h.type===i.type&&M===this._step){y&&!p?p=this._newPolygon(u,x):p&&!y&&(v.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,lh(E));var T=v.getClipPath();if(T)eu(T,{shape:Rw(this,i,!1,t).shape},t);else v.setClipPath(Rw(this,i,!0,t));w&&d.updateData(a,{isIgnore:C,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Ew(this._stackedOnPoints,x)&&Ew(this._points,u)||(m?this._doUpdateAnimation(a,x,i,n,M,b,S):(M&&(u=Dw(u,i,M,S),x&&(x=Dw(x,i,M,S))),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:x})))}else w&&d.updateData(a,{isIgnore:C,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,i,O),M&&(u=Dw(u,i,M,S),x&&(x=Dw(x,i,M,S))),f=this._newPolyline(u),y?p=this._newPolygon(u,x):p&&(v.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,lh(E)),v.setClipPath(Rw(this,i,!0,t));var A=t.getModel("emphasis"),I=A.get("focus"),D=A.get("blurScope"),P=A.get("disabled");(f.useStyle(g.defaults(s.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),ks(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1);Ma(f).seriesIndex=t.seriesIndex,xs(f,I,D,P);var L=Iw(t.get("smooth")),j=t.get("smoothMonotone");if(f.setShape({smooth:L,smoothMonotone:j,connectNulls:S}),p){var N=a.getCalculationInfo("stackedOnSeries"),R=0;p.useStyle(g.defaults(l.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(R=Iw(N.get("smooth"))),p.setShape({smooth:L,stackedOnSmooth:R,smoothMonotone:j,connectNulls:S}),ks(p,t,"areaStyle"),Ma(p).seriesIndex=t.seriesIndex,xs(p,I,D,P)}var B=function(t){r._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=B)}),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=u,this._step=M,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,f),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){Ma(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=Jr(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new uw(i,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else wp.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Jr(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else wp.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;rs(this._polyline,t),e&&rs(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new xw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Sw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");g.isFunction(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=g.isFunction(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,f=void 0,p=void 0;if(n)if(i){var v=n,m=e.pointToCoord(h);r?(d=v.startAngle,f=v.endAngle,p=-m[1]/180*Math.PI):(d=v.r0,f=v.r,p=m[0])}else{var y=n;r?(d=y.x,f=y.x+y.width,p=t.x):(d=y.y+y.height,f=y.y,p=t.y)}var b=f===d?0:(p-d)/(f-d);a&&(b=1-b);var _=g.isFunction(u)?u(o):l*b+c,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(Nw(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Oa({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(a);l>=0&&(zu(o,Vu(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?sw(i,n):aw(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,b=(g?f:0)*(v?-1:1),_=(g?0:-f)*(v?-1:1),x=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,y,x),S=w.range,C=S[1]-S[0],k=void 0;if(C>=1){if(C>1&&!h){var O=jw(u,S[0]);s.attr({x:O[0]+b,y:O[1]+_}),i&&(k=c.getRawValue(S[0]))}else{(O=l.getPointOn(y,x))&&s.attr({x:O[0]+b,y:O[1]+_});var M=c.getRawValue(S[0]),E=c.getRawValue(S[1]);i&&(k=li(n,d,M,E,w.t))}r.lastFrameIndex=S[0]}else{var T=1===t||r.lastFrameIndex>0?S[0]:0;O=jw(u,T);i&&(k=c.getRawValue(T)),s.attr({x:O[0]+b,y:O[1]+_})}i&&qu(s).setLabelText(k)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],v=pw(i,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],x=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var C=m[w],k=m[w+1],O=y[S],M=y[S+1];(isNaN(C)||isNaN(k))&&(C=O,k=M),u.push(C,k),c.push(O,M),h.push(n[w],n[w+1]),d.push(r[S],r[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var E=_.idx,T=v.dataDimsForPoint,A=i.dataToPoint([e.get(T[0],E),e.get(T[1],E)]);S=2*E,u.push(A[0],A[1]),c.push(y[S],y[S+1]);var I=gw(v,i,e,E);h.push(I[0],I[1]),d.push(r[S],r[S+1]),g.push(e.getRawIndex(E));break;case"-":x=!1}x&&(f.push(_),p.push(p.length))}p.sort(function(t,e){return g[t]-g[e]});var D=u.length,P=Ly(D),L=Ly(D),j=Ly(D),N=Ly(D),R=[];for(b=0;b<p.length;b++){var B=p[b],F=2*b,z=2*B;P[F]=u[z],P[F+1]=u[z+1],L[F]=c[z],L[F+1]=c[z+1],j[F]=h[z],j[F+1]=h[z+1],N[F]=d[z],N[F+1]=d[z+1],R[b]=f[B]}return{current:P,next:L,stackedOnCurrent:j,stackedOnNext:N,status:R}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(i&&(h=Dw(c.current,n,i,a),d=Dw(c.stackedOnCurrent,n,i,a),f=Dw(c.next,n,i,a),p=Dw(c.stackedOnNext,n,i,a)),Aw(h,f)>3e3||l&&Aw(d,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),tu(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),tu(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++){if("="===m[y].cmd){var b=t.getItemGraphicEl(m[y].idx1);b&&v.push({el:b,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,r=2*v[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(wp);function Fw(t,e){return{seriesType:t,plan:fp(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=Object(g.map)(r.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");hy(n,a[0])&&(a[0]=l),hy(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&Ly(n*s),a=[],l=[],d=t.start,f=0;d<t.end;d++){var p=void 0;if(1===s){var g=u.get(c,d);p=r.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),p=r.dataToPoint(a,null,l);o?(i[f++]=p[0],i[f++]=p[1]):e.setItemLayout(d,p.slice())}o&&e.setLayout("points",i)}}}}}}var zw={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Vw=function(t){return Math.round(t.length/2)};function $w(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var f=void 0;Object(g.isString)(i)?f=zw[i]:Object(g.isFunction)(i)&&(f=i),f&&t.setData(r.downSample(r.mapDimension(l.dim),1/d,f,Vw))}}}}}var Gw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){return fy(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)Object(g.each)(r.getAxes(),function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=i[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),r.length<2)return;if(2===r.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,u=void 0,c=1,h=0;h<r.length;h++){var d=r[h].coord,f=h===r.length-1?r[h-1].tickValue+c:r[h].tickValue;if(f===a){u=d;break}if(f<a)l=d;else if(null!=l&&f>a){u=(d+l)/2;break}1===h&&(c=f-r[0].tickValue)}null==u&&(l?l&&(u=r[r.length-1].coord):u=r[0].coord),o[n]=t.toGlobalCoord(u)}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(cp);cp.registerClass(Gw);var Hw=Gw,Ww=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(){return fy(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=pc(Hw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Hw),Uw=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),Yw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Uw},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var f=Math.cos(l),p=Math.sin(l),g=Math.cos(u),v=Math.sin(u);d?(t.moveTo(f*i+n,p*i+r),t.arc(f*s+n,p*s+r,a,-Math.PI+l,l,!c)):t.moveTo(f*o+n,p*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(qo);function Xw(t,e,n){return e*Math.sin(t)*(n?-1:1)}function qw(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Zw(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(g.isArray)(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(g.map)(r,function(t){return $n(t,i)})}}var Kw=Math.max,Jw=Math.min;var Qw=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Nu(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,f=function(t,e){var n=t.getArea&&t.getArea();if(Mw(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(t){var e=sS[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?ml:ca)({shape:pS(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",m):n.setShape("cornerRadius",m),y[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),r=sS[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&aS[l.type](r)){var s=!1;d&&(s=tS[l.type](f,r));var v=eS[l.type](t,a,e,r,i,c,u.model,!1,p);h&&(v.forceLabelAnimation=!0),uS(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?nS(h,c,v,r,e,i,!1,!1):eu(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}}).update(function(e,n){var r=a.getItemModel(e),S=sS[l.type](a,e,r);if(g){var C=void 0;0===b.length?C=w(n):((C=b[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?C.setShape("r",m):C.setShape("cornerRadius",m),y[e]=C);var k=sS[l.type](a,e);tu(C,{shape:pS(i,k,l)},c,e)}var O=s.getItemGraphicEl(n);if(a.hasValue(e)&&aS[l.type](S)){var M=!1;if(d&&(M=tS[l.type](f,S))&&o.remove(O),O?au(O):O=eS[l.type](t,a,e,S,i,c,u.model,!!O,p),h&&(O.forceLabelAnimation=!0),x){var E=O.getTextContent();if(E){var T=qu(E);null!=T.prevValue&&(T.prevValue=T.value)}}else uS(O,a,e,r,S,t,i,"polar"===l.type);_?O.attr({shape:S}):h?nS(h,c,O,S,e,i,!0,x):tu(O,{shape:S},t,e,null),a.setItemGraphicEl(e,O),O.ignore=M,o.add(O)}else o.remove(O)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&ou(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new tr);S.removeAll();for(var C=0;C<y.length;++C)S.add(y[C]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),dS(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),dS(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Ow(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})}),r.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:Object(g.map)(r,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){ou(e,t,Ma(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(wp),tS={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=Kw(e.x,t.x),s=Jw(e.x+e.width,i),l=Kw(e.y,t.y),u=Jw(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=Jw(e.r,t.r),o=Kw(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},eS={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new ca({shape:Object(g.extend)({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?Yw:ml,c=new u({shape:r,z2:1});c.name="item";var h,d,f=lS(i);if(c.calculateTextPosition=(h=f,d=({isRoundCap:u===Yw}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return Gn(t,e,n);var i=h(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,f=(u+c)/2,p=a.startAngle,g=a.endAngle,v=(p+g)/2,m=d?Math.abs(u-c)/2:0,y=Math.cos,b=Math.sin,_=s+u*y(p),x=l+u*b(p),w="left",S="top";switch(i){case"startArc":_=s+(c-o)*y(v),x=l+(c-o)*b(v),w="center",S="top";break;case"insideStartArc":_=s+(c+o)*y(v),x=l+(c+o)*b(v),w="center",S="bottom";break;case"startAngle":_=s+f*y(p)+Xw(p,o+m,!1),x=l+f*b(p)+qw(p,o+m,!1),w="right",S="middle";break;case"insideStartAngle":_=s+f*y(p)+Xw(p,-o+m,!1),x=l+f*b(p)+qw(p,-o+m,!1),w="left",S="middle";break;case"middle":_=s+f*y(v),x=l+f*b(v),w="center",S="middle";break;case"endArc":_=s+(u+o)*y(v),x=l+(u+o)*b(v),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*y(v),x=l+(u-o)*b(v),w="center",S="top";break;case"endAngle":_=s+f*y(g)+Xw(g,o+m,!0),x=l+f*b(g)+qw(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":_=s+f*y(g)+Xw(g,-o+m,!0),x=l+f*b(g)+qw(g,-o+m,!0),w="right",S="middle";break;default:return Gn(t,e,n)}return(t=t||{}).x=_,t.y=x,t.align=w,t.verticalAlign=S,t}),o){var p=c.shape,g=i?"r":"endAngle",v={};p[g]=i?r.r0:r.startAngle,v[g]=r[g],(s?tu:eu)(c,{shape:v},o)}return c}};function nS(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?tu:eu)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?tu:eu)(n,{shape:u},c,i)}function rS(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var iS=["x","y","width","height"],oS=["cx","cy","r","startAngle","endAngle"],aS={cartesian2d:function(t){return!rS(t,iS)},polar:function(t){return!rS(t,oS)}},sS={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function lS(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function uS(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,c=Zw(r.getModel("itemStyle"),u,!0);Object(g.extend)(u,c),t.setShape(u)}}else{var h=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var f=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Vu(r);zu(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:aw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=t.getTextContent();if(s&&v){var m=r.get(["label","position"]);t.textConfig.inside="middle"===m||null,function(t,e,n,r){if(Object(g.isNumber)(r))t.setTextConfig({rotation:r});else if(Object(g.isArray)(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===m?f:m,lS(a),r.get(["label","rotate"]))}Zu(v,p,o.getRawValue(n),function(t){return sw(e,t)});var y=r.getModel(["emphasis"]);xs(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),ks(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",Object(g.each)(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var cS=function(){return function(){}}(),hS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new cS},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(qo);function dS(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new hS({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new hS({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),Ma(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",fS),h.on("mousemove",fS)),n&&n.push(h)}var fS=Op(function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Ma(this).dataIndex=e>=0?e:null},30,!1);function pS(t,e,n){if(Mw(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var gS=Qw;var vS=2*Math.PI,mS=Math.PI/180;function yS(t,e){return gh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function bS(t,e){var n=yS(t,e),r=t.get("center"),i=t.get("radius");g.isArray(i)||(i=[0,i]);var o,a,s=fr(n.width,e.getWidth()),l=fr(n.height,e.getHeight()),u=Math.min(s,l),c=fr(i[0],u/2),h=fr(i[1],u/2),d=t.coordinateSystem;if(d){var f=d.dataToPoint(r);o=f[0]||0,a=f[1]||0}else g.isArray(r)||(r=[r,r]),o=fr(r[0],s)+n.x,a=fr(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function _S(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),r=e.mapDimension("value"),i=yS(t,n),o=bS(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*mS,h=t.get("minAngle")*mS,d=0;e.each(r,function(t){!isNaN(t)&&d++});var f=e.getSum(r),p=Math.PI/(f||d)*2,g=t.get("clockwise"),v=t.get("roseType"),m=t.get("stillShowZeroSum"),y=e.getDataExtent(r);y[0]=0;var b=vS,_=0,x=c,w=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(r,function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(r="area"!==v?0===f&&m?p:t*p:vS/d)<h?(r=h,b-=h):_+=t;var i=x+w*r;e.setItemLayout(n,{angle:r,startAngle:x,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?dr(t,y,[u,l]):l}),x=i}}),b<vS&&d)if(b<=.001){var S=vS/d;e.each(r,function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=S,r.startAngle=c+w*n*S,r.endAngle=c+w*(n+1)*S}})}else p=b/_,x=c,e.each(r,function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===h?h:t*p;r.startAngle=x,r.endAngle=x+w*i,x+=w*i}})})}function xS(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf(function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0})}}}}var wS=Math.PI/180;function SS(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}I_(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,d=r+l.len,p=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=p,u.maxY=c}u.list.push(l)}f(o),f(a)}(t)}function f(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h),f=e+(d+l.len2)*i,p=f-l.label.x;CS(l,l.targetTextWidth-p*i,!0),l.label.x=f}}}function CS(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var f=e-l,p=e<c?f:n?f>t.unconstrainedWidth?null:f:null;r.setStyle("width",p)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function kS(t){return"center"===t.position}function OS(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*wS,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function f(t){t.ignore=!0}r.each(function(t){var s=r.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),p=s.getTextGuideLine(),v=r.getItemModel(t),m=v.getModel("label"),y=m.get("position")||v.get(["emphasis","label","position"]),b=m.get("distanceToLabelLine"),_=m.get("alignTo"),x=fr(m.get("edgeDistance"),u),w=m.get("bleedMargin"),S=v.getModel("labelLine"),C=S.get("length");C=fr(C,u);var k=S.get("length2");if(k=fr(k,u),Math.abs(h.endAngle-h.startAngle)<a)return Object(g.each)(d.states,f),d.ignore=!0,void(p&&(Object(g.each)(p.states,f),p.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(d)){var O,M,E,T,A=(h.startAngle+h.endAngle)/2,I=Math.cos(A),D=Math.sin(A);e=h.cx,n=h.cy;var P="inside"===y||"inner"===y;if("center"===y)O=h.cx,M=h.cy,T="center";else{var L=(P?(h.r+h.r0)/2*I:h.r*I)+e,j=(P?(h.r+h.r0)/2*D:h.r*D)+n;if(O=L+3*I,M=j+3*D,!P){var N=L+I*(C+l-h.r),R=j+D*(C+l-h.r),B=N+(I<0?-1:1)*k;O="edge"===_?I<0?c+x:c+u-x:B+(I<0?-b:b),M=R,E=[[L,j],[N,R],[B,R]]}T=P?"center":"edge"===_?I>0?"right":"left":I>0?"left":"right"}var F=Math.PI,z=0,V=m.get("rotate");if(Object(g.isNumber)(V))z=V*(F/180);else if("center"===y)z=0;else if("radial"===V||!0===V){z=I<0?-A+F:-A}else if("tangential"===V&&"outside"!==y&&"outer"!==y){var $=Math.atan2(I,D);$<0&&($=2*F+$),D>0&&($=F+$),z=$-F}if(o=!!z,d.x=O,d.y=M,d.rotation=z,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:T});var G=d.states.select;G&&(G.x+=d.x,G.y+=d.y)}else{var H=d.getBoundingRect().clone();H.applyTransform(d.getComputedTransform());var W=(d.style.margin||0)+2.1;H.y-=W/2,H.height+=W,i.push({label:d,labelLine:p,position:y,len:C,len2:k,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new wt(I,D),linePoints:E,textAlign:T,labelDistance:b,labelAlignTo:_,edgeDistance:x,bleedMargin:w,rect:H,unconstrainedWidth:H.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var f=t[d].label;kS(t[d])||(f.x<e?(c=Math.min(c,f.x),l.push(t[d])):(h=Math.max(h,f.x),u.push(t[d])))}for(d=0;d<t.length;d++)if(!kS(v=t[d])&&v.linePoints){if(null!=v.labelStyleWidth)continue;f=v.label;var p=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?f.x<e?p[2][0]-v.labelDistance-a-v.edgeDistance:a+i-v.edgeDistance-p[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?f.x<e?c-a-v.bleedMargin:a+i-h-v.bleedMargin:f.x<e?f.x-a-v.bleedMargin:a+i-f.x-v.bleedMargin,v.targetTextWidth=g,CS(v,g)}for(SS(u,e,n,r,1,0,o,0,s,h),SS(l,e,n,r,-1,0,o,0,s,c),d=0;d<t.length;d++){var v;if(!kS(v=t[d])&&v.linePoints){f=v.label,p=v.linePoints;var m="edge"===v.labelAlignTo,y=f.style.padding,b=y?y[1]+y[3]:0,_=f.style.backgroundColor?0:b,x=v.rect.width+_,w=p[1][0]-p[2][0];m?f.x<e?p[2][0]=a+v.edgeDistance+x+v.labelDistance:p[2][0]=a+i-v.edgeDistance-x-v.labelDistance:(f.x<e?p[2][0]=f.x+v.labelDistance:p[2][0]=f.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=f.y}}}(i,e,n,l,u,d,c,h);for(var p=0;p<i.length;p++){var v=i[p],m=v.label,y=v.labelLine,b=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:v.textAlign}),b&&(Object(g.each)(m.states,f),m.ignore=!0);var _=m.states.select;_&&(_.x+=m.x,_.y+=m.y)}if(y){var x=v.linePoints;b||!x?(Object(g.each)(y.states,f),y.ignore=!0):(S_(x,v.minTurnAngle),C_(x,v.surfaceNormal,v.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new wt(x[0][0],x[0][1])})}}}var MS=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Oa;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return Object(f.__extends)(e,t),e.prototype.updateData=function(t,e,n,r){var i=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),l=Object(g.extend)(Zw(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))this.setShape(l);else{if(r){this.setShape(l);var u=i.getShallow("animationType");i.ecModel.ssr?(eu(this,{scaleX:0,scaleY:0},i,{dataIndex:e,isFrom:!0}),this.originX=l.cx,this.originY=l.cy):"scale"===u?(this.shape.r=s.r0,eu(this,{shape:{r:s.r}},i,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),eu(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,e)):(this.shape.endAngle=s.startAngle,tu(this,{shape:{endAngle:s.endAngle}},i,e))}else au(this),tu(this,{shape:l},i,e);this.useStyle(t.getItemVisual(e,"style")),ks(this,o);var c=(s.startAngle+s.endAngle)/2,h=i.get("selectedOffset"),d=Math.cos(c)*h,f=Math.sin(c)*h,p=o.getShallow("cursor");p&&this.attr("cursor",p),this._updateLabel(i,t,e),this.ensureState("emphasis").shape=Object(g.extend)({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},Zw(a.getModel("itemStyle"),s)),Object(g.extend)(this.ensureState("select"),{x:d,y:f,shape:Zw(o.getModel(["select","itemStyle"]),s)}),Object(g.extend)(this.ensureState("blur"),{shape:Zw(o.getModel(["blur","itemStyle"]),s)});var v=this.getTextGuideLine(),m=this.getTextContent();v&&Object(g.extend)(v.ensureState("select"),{x:d,y:f}),Object(g.extend)(m.ensureState("select"),{x:d,y:f}),xs(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),i=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;zu(this,Vu(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=t.get(["label","position"]);if("outside"!==u&&"outer"!==u)this.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Ml,this.setTextGuideLine(c)),M_(this,E_(r),{stroke:a,opacity:Object(g.retrieve3)(i.get(["lineStyle","opacity"]),s,1)})}},e}(ml),ES=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new ml({shape:bS(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add(function(t){var e=new MS(o,t,i);o.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)}).remove(function(e){ou(a.getItemGraphicEl(e),t,e)}).execute(),OS(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(wp);function TS(t,e,n){e=Object(g.isArray)(e)&&{coordDimensions:e}||Object(g.extend)({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=oy(r,e).dimensions,o=new ry(i,t);return o.initData(r,n),o}var AS=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),IS=Qr(),DS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new AS(g.bind(this.getData,this),g.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return TS(this,{coordDimensions:["value"],encodeDefaulter:g.curry(Fh,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=IS(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),i=r.seats=_r(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){$r(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(cp);var PS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){return fy(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(cp),LS=function(){return function(){}}(),jS=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new LS},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new It(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(qo),NS=function(){function t(){this.group=new tr}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new jS({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Eg(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Ma(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),RS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=Fw("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new NS:new fw,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(wp),BS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Sh),FS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ri).models[0]},e.type="cartesian2dAxis",e}(Sh);g.mixin(FS,Sb);var zS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},VS=g.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zS),$S=g.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},zS),GS={category:VS,value:$S,time:g.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$S),log:g.defaults({logBase:10},$S)},HS={value:1,category:1,time:1,log:1};function WS(t,e,n,r){Object(g.each)(HS,function(i,o){var a=Object(g.merge)(Object(g.merge)({},GS[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return Object(f.__extends)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=mh(this),r=n?bh(t):{},i=e.getTheme();Object(g.merge)(t,i.get(o+"Axis")),Object(g.merge)(t,this.getDefaultOption()),t.type=US(t),n&&yh(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=yy.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",US)}function US(t){return t.type||(t.data?"category":"value")}var YS=["x","y"];function XS(t){return"interval"===t.type||"time"===t.type}var qS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=YS,e}return Object(f.__extends)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(XS(t)&&XS(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=_t([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new It(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return B(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return B(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new It(n,r,i,o)},e}(function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g.map(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),g.filter(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}()),ZS=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return Object(f.__extends)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(t_);function KS(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}o.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),g.retrieve(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function JS(t){return"cartesian2d"===t.get("coordinateSystem")}function QS(t){var e={xAxisModel:null,yAxisModel:null};return g.each(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,ri).models[0];e[r]=o}),e}var tC=Math.log;function eC(t,e,n){var r=Iy.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=gb(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=tC(t.base);u=[tC(u[0])/d,tC(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var f=r.getExtent.call(t);c&&(u[0]=f[0]),h&&(u[1]=f[1]);var p=r.getInterval.call(t),g=u[0],v=u[1];if(c&&h)p=(v-g)/a;else if(c)for(v=u[0]+p*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)p=xy(p),v=u[0]+p*a;else if(h)for(g=u[1]-p*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)p=xy(p),g=u[1]-p*a;else{t.getTicks().length-1>a&&(p=xy(p));var m=p*a;(g=pr((v=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(g=0,v=pr(m)):v>0&&u[1]<=0&&(v=0,g=-pr(m))}var y=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+p*y,v+p*b),r.setInterval.call(t,p),(y||b)&&r.setNiceExtent.call(t,g+p,v-p)}function nC(t,e){return t.getCoordSysModel()===e}function rC(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)iC(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&iC(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function iC(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}(t)}var oC=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=YS,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(g.keys)(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;by(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(vb(l,s),by(l)&&(e=a))}i.length&&(e||vb((e=i.pop()).scale,e.model),Object(g.each)(i,function(t){eC(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(g.each)(n.x,function(t){rC(n,"y",t,i)}),Object(g.each)(n.y,function(t){rC(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=gh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(g.each)(a,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?o.x:o.y)})}s(),i&&(Object(g.each)(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Ey?n.count():(r=n.getTicks()).length;var a,s,l,u,c,h,d,f,p=t.getLabelModel(),g=yb(t),v=1;i>40&&(v=Math.ceil(i/40));for(var m=0;m<i;m+=v){var y=g(r?r[m]:{value:o[0]+m},m),b=p.getTextRect(y),_=(s=b,l=p.get("rotate")||0,u=l*Math.PI/180,c=s.width,h=s.height,d=c*Math.abs(Math.cos(u))+Math.abs(h*Math.sin(u)),f=c*Math.abs(Math.sin(u))+Math.abs(h*Math.cos(u)),new It(s.x,s.y,d,f));a?a.union(_):a=_}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}}),s()),Object(g.each)(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(g.isObject)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",ri).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",ri).models[0],a=t.gridModel,s=this._coordsList;if(r)e=r.coordinateSystem,Object(g.indexOf)(s,e)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(nC(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new ZS(e,mb(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,Object(g.each)(a.x,function(e,n){Object(g.each)(a.y,function(i,o){var a="x"+n+"y"+o,s=new qS(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)})})},t.prototype._updateScale=function(t,e){function n(t,e){Object(g.each)(wb(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}Object(g.each)(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(JS(t)){var r=QS(t),i=r.xAxisModel,o=r.yAxisModel;if(!nC(i,e)||!nC(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(g.each)(this.getCartesians(),function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);Object(g.indexOf)(e,i)<0&&e.push(i),Object(g.indexOf)(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(t){if(JS(t)){var e=QS(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel();0;var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}}),r},t.dimensions=YS,t}(),aC=Math.PI,sC=function(){function t(t,e){this.group=new tr,this.opt=e,this.axisModel=t,Object(g.defaults)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new tr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!lC[t]},t.prototype.add=function(t){lC[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=Sr(e-t);return Cr(o)?(i=n>0?"top":"bottom",r="center"):Cr(o-aC)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<aC?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),lC={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(B(s,s,a),B(l,l,a));var c=Object(g.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Il({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});_u(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var f=e.get(["axisLine","symbolSize"]);Object(g.isString)(d)&&(d=[d,d]),(Object(g.isString)(f)||Object(g.isNumber)(f))&&(f=[f,f]);var p=Ag(e.get(["axisLine","symbolOffset"])||0,f),v=f[0],m=f[1];Object(g.each)([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,r){if("none"!==d[r]&&null!=d[r]){var i=Eg(d[r],-v/2,-m/2,v,m,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(t,e,n,r){var i=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=dC(i.getTicksCoords(),e.transform,l,Object(g.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,r,e,t),o=function(t,e,n,r){var i=n.axis;if(!Object(g.retrieve)(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=(Object(g.retrieve)(r.labelRotate,o.get("rotate"))||0)*aC/180,u=sC.innerTextLayout(r.rotation,l,r.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],d=sC.isLabelSilent(n),f=n.get("triggerEvent");return Object(g.each)(s,function(s,l){var p="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,v=s.formattedLabel,m=s.rawLabel,y=o;if(c&&c[p]){var b=c[p];Object(g.isObject)(b)&&b.textStyle&&(y=new hc(b.textStyle,o,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(p),w=new Oa({x:x,y:r.labelOffset+r.labelDirection*a,rotation:u.rotation,silent:d,z2:10+(s.level||0),style:$u(y,{text:v,align:y.getShallow("align",!0)||u.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,fill:Object(g.isFunction)(_)?_("category"===i.type?m:"value"===i.type?p+"":p,l):_})});if(w.anid="label_"+p,f){var S=sC.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=m,S.tickIndex=l,"category"===i.type&&(S.dataIndex=p),Ma(w).eventData=S}e.add(w),w.updateTransform(),h.push(w),t.add(w),w.decomposeTransform()}),h}(n,r,e,t);((function(t,e,n){if(xb(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(uC(o),uC(u)):cC(o,a)&&(r?(uC(a),uC(c)):(uC(o),uC(u)));!1===i?(uC(s),uC(h)):cC(l,s)&&(i?(uC(l),uC(d)):(uC(s),uC(h)))})(e,o,i),function(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Object(g.defaults)(s.getLineStyle(),Object(g.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=dC(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.add(h[d])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&D_(T_(Object(g.map)(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,r){var i=Object(g.retrieve)(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,hC(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*aC/180),hC(s)?o=sC.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=function(t,e,n,r){var i,o,a=Sr(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;Cr(a-aC/2)?(o=l?"bottom":"top",i="center"):Cr(a-1.5*aC)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*aC&&a>aC/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,p||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var v=u.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Object(g.retrieve)(t.nameTruncateMaxWidth,m.maxWidth,a),_=new Oa({x:f[0],y:f[1],rotation:o.rotation,silent:sC.isLabelSilent(e),style:$u(u,{text:i,font:v,overflow:"truncate",width:b,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Lu({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=sC.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,Ma(_).eventData=x}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function uC(t){t&&(t.ignore=!0)}function cC(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=pt([]);return yt(i,i,-t.rotation),n.applyTransform(vt([],i,t.getLocalTransform())),r.applyTransform(vt([],i,e.getLocalTransform())),n.intersect(r)}}function hC(t){return"middle"===t||"center"===t}function dC(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(B(a,a,e),B(s,s,e));var c=new Il({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});_u(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}var fC=sC;function pC(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(g.each)(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=yC(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(g.each)(n.getAxes(),Object(g.curry)(p,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),f=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Object(g.each)(f.baseAxes,Object(g.curry)(p,!d||"cross",h)),d&&Object(g.each)(f.otherAxes,Object(g.curry)(p,"cross",!1))}}function p(r,s,u){var h=u.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||mC(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};Object(g.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=Object(g.clone)(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Object(g.defaults)(l,c.textStyle)}}return t.model.getModel("axisPointer",new hc(s,n,r))}(u,c,i,e,r,s):h).get("snap"),p=yC(u.model),v=s||f||"category"===u.type,m=t.axesInfo[p]={key:p,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:v,snap:f,useHandle:mC(h),seriesModels:[],linkGroup:null};l[p]=m,t.seriesInvolved=t.seriesInvolved||v;var y=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(gC(o[r+"AxisId"],n.id)||gC(o[r+"AxisIndex"],n.componentIndex)||gC(o[r+"AxisName"],n.name))return i}}(o,u);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[p]=m,b.mapper=o[y].mapper,m.linkGroup=b}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(g.each)(t.coordSysAxesInfo[yC(n.model)],function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}function gC(t,e){return"all"===t||Object(g.isArray)(t)&&Object(g.indexOf)(t,e)>=0||t===e}function vC(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[yC(t)]}function mC(t){return!!t.get(["handle","show"])}function yC(t){return t.type+"||"+t.id}var bC={},_C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=vC(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=mC(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=vC(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){bC[t]=e},e.getAxisPointerClass=function(t){return t&&bC[t]},e.type="axis",e}(dp),xC=Qr();function wC(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=xC(t).splitAreaColors,d=g.createHashMap(),f=0;if(h)for(var p=0;p<u.length;p++){var v=h.get(u[p].tickValue);if(null!=v){f=(v+(c-1)*p)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=g.isArray(s)?s:[s];for(p=1;p<u.length;p++){var b=i.toGlobalCoord(u[p].coord),_=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=m,x=l.y,w=b-_,S=l.height,m=_+w):(_=l.x,x=m,w=l.width,m=x+(S=b-x));var C=u[p-1].tickValue;null!=C&&d.set(C,f),e.add(new ca({anid:null!=C?"area_"+C:null,shape:{x:_,y:x,width:w,height:S},style:g.defaults({fill:s[f]},y),autoBatch:!0,silent:!0})),f=(f+1)%c}xC(t).splitAreaColors=d}}}function SC(t){xC(t).splitAreaColors=null}var CC=["axisLine","axisTickLabel","axisName"],kC=["splitArea","splitLine","minorSplitLine"],OC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(f.__extends)(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new tr,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=KS(a,e),l=new fC(e,g.extend({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(by(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));g.each(CC,l.add,l),this._axisGroup.add(l.getGroup()),g.each(kC,function(t){e.get([t,"show"])&&MC[t](this,this._axisGroup,e,a)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Mu(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){SC(this)},e.type="cartesianAxis",e}(_C),MC={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=g.isArray(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:o}),d=[],f=[],p=a.getLineStyle(),v=0;v<h.length;v++){var m=i.toGlobalCoord(h[v].coord);u?(d[0]=m,d[1]=l.y,f[0]=m,f[1]=l.y+l.height):(d[0]=l.x,d[1]=m,f[0]=l.x+l.width,f[1]=m);var y=c++%s.length,b=h[v].tickValue,_=new Il({anid:null!=b?"line_"+h[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:g.defaults({stroke:s[y]},p),silent:!0});_u(_.shape,p.lineWidth),e.add(_)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var f=0;f<l[d].length;f++){var p=i.toGlobalCoord(l[d][f].coord);s?(u[0]=p,u[1]=a.y,c[0]=p,c[1]=a.y+a.height):(u[0]=a.x,u[1]=p,c[0]=a.x+a.width,c[1]=p);var g=new Il({anid:"minor_line_"+l[d][f].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});_u(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){wC(t,e,n,r)}},EC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="xAxis",e}(OC),TC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=EC.type,e}return Object(f.__extends)(e,t),e.type="yAxis",e}(OC),AC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Object(f.__extends)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ca({shape:t.coordinateSystem.getRect(),style:Object(g.defaults)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(dp),IC={offset:0};function DC(t){t.registerComponentView(AC),t.registerComponentModel(BS),t.registerCoordinateSystem("cartesian2d",oC),WS(t,"x",FS,IC),WS(t,"y",FS,IC),t.registerComponentView(EC),t.registerComponentView(TC),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function PC(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();g.each(i,function(t,o){e.each(e.mapDimension(i[o].dim),function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,o);n[e][o]=LC(i)?i:jC(r)})}),e.each(function(t){var i=g.find(n[t],function(t){return LC(t)})||jC(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])})}})}function LC(t){return!isNaN(t[0])&&!isNaN(t[1])}function jC(t){return[t.cx,t.cy]}function NC(t){var e=t.polar;if(e){g.isArray(e)||(e=[e]);var n=[];g.each(e,function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],g.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}g.each(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}var RC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),s=this._data;function l(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=Tg(t.getItemVisual(e,"symbolSize")),i=Eg(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function u(e,n,r,i,o,s){r.removeAll();for(var u=0;u<n.length-1;u++){var c=l(i,o);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),a[s?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,o)):c.setPosition(n[u]),r.add(c))}}function c(t){return g.map(t,function(t){return[r.cx,r.cy]})}o.diff(s).add(function(e){var n=o.getItemLayout(e);if(n){var r=new Cl,i=new Ml,a={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),eu(r,a,t,e),eu(i,a,t,e);var s=new tr,l=new tr;s.add(i),s.add(r),s.add(l),u(i.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}}).update(function(e,n){var r=s.getItemGraphicEl(n),i=r.childAt(0),a=r.childAt(1),l=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,o,e,!1),au(a),au(i),tu(i,c,t),tu(a,c,t),o.setItemGraphicEl(e,r))}).remove(function(t){i.remove(s.getItemGraphicEl(t))}).execute(),o.eachItemGraphicEl(function(t,e){var n=o.getItemModel(e),r=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(g.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),ks(r,n,"lineStyle"),ks(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,g.each(["emphasis","select","blur"],function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h}),a.useStyle(g.defaults(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),f=d.getModel("itemStyle").getItemStyle();s.eachChild(function(t){if(t instanceof na){var r=t.style;t.useStyle(g.extend({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=g.clone(f);var i=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),zu(t,Vu(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})}),xs(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))}),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(wp),BC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(f.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new AS(g.bind(this.getData,this),g.bind(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return TS(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=qf(this,t);return Vf("section",{header:a,sortBlocks:!0,blocks:g.map(i,function(e){var n=r.get(r.mapDimension(e.dim),t);return Vf("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})})})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(g.map(n.dimensions,function(t){return e.mapDimension(t)}),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(cp),FC=GS.value;function zC(t,e){return g.defaults({show:e},t)}var VC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=g.map(this.get("indicator")||[],function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=g.defaults({color:h.color},a));var f=g.merge(g.clone(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(g.isString(l)){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else g.isFunction(l)&&(f.name=l(f.name,f));var v=new hc(f,null,this.ecModel);return g.mixin(v,Sb.prototype),v.mainType="radar",v.componentIndex=this.componentIndex,v},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:g.merge({lineStyle:{color:"#bbb"}},FC.axisLine),axisLabel:zC(FC.axisLabel,!1),axisTick:zC(FC.axisTick,!1),splitLine:zC(FC.splitLine,!0),splitArea:zC(FC.splitArea,!0),indicator:[]},e}(Sh),$C=["axisLine","axisTickLabel","axisName"],GC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=g.map(n,function(t){var n=t.model.get("showName")?t.name:"";return new fC(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});g.each(r,function(t){g.each($C,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=g.isArray(c)?c:[c],f=g.isArray(h)?h:[h],p=[],v=[];if("circle"===r)for(var m=n[0].getTicksCoords(),y=e.cx,b=e.cy,_=0;_<m.length;_++){if(l)p[E(p,d,_)].push(new Js({shape:{cx:y,cy:b,r:m[_].coord}}));if(u&&_<m.length-1)v[E(v,f,_)].push(new _l({shape:{cx:y,cy:b,r0:m[_].coord,r:m[_+1].coord}}))}else{var x,w=g.map(n,function(t,n){var r=t.getTicksCoords();return x=null==x?r.length-1:Math.min(r.length-1,x),g.map(r,function(t){return e.coordToPoint(t.coord,n)})}),S=[];for(_=0;_<=x;_++){for(var C=[],k=0;k<n.length;k++)C.push(w[k][_]);if(C[0]&&C.push(C[0].slice()),l)p[E(p,d,_)].push(new Ml({shape:{points:C}}));if(u&&S)v[E(v,f,_-1)].push(new Cl({shape:{points:C.concat(S)}}));S=C.slice().reverse()}}var O=a.getLineStyle(),M=s.getAreaStyle();g.each(v,function(t,e){this.group.add(yu(t,{style:g.defaults({stroke:"none",fill:f[e%f.length]},M),silent:!0}))},this),g.each(p,function(t,e){this.group.add(yu(t,{style:g.defaults({fill:"none",stroke:d[e%d.length]},O),silent:!0}))},this)}function E(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(dp),HC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return Object(f.__extends)(e,t),e}(t_),WC=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(g.map)(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,r=new HC(n,new Iy);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r},this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i)/2;this.cx=fr(n[0],r),this.cy=fr(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Object(g.isString)(a)||Object(g.isNumber)(a))&&(a=[0,a]),this.r0=fr(a[0],o),this.r=fr(a[1],o),Object(g.each)(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n},this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;Object(g.each)(n,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();Object(g.each)(n,function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))})}},this);var i=r.get("splitNumber"),o=new Iy;o.setExtent(0,i),o.setInterval(1),Object(g.each)(n,function(t,e){eC(t.scale,t.model,o)})},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])}),r},t.dimensions=[],t}();function UC(t){t.registerCoordinateSystem("radar",WC),t.registerComponentModel(VC),t.registerComponentView(GC),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var YC="\0_ec_interaction_mutex";function XC(t,e){return!!qC(t)[e]}function qC(t){return t[YC]||(t[YC]={})}function ZC(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(lt(r.event),KC(t,e,n,r,i))}function KC(t,e,n,r,i){i.isAvailableBehavior=Object(g.bind)(JC,null,n,r),t.trigger(e,i)}function JC(t,e,n){var r=n[t];return!t||r&&(!Object(g.isString)(r)||e.event[r+"Key"])}gm({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},g.noop);var QC=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Object(g.bind)(n._mousedownHandler,n),i=Object(g.bind)(n._mousemoveHandler,n),o=Object(g.bind)(n._mouseupHandler,n),a=Object(g.bind)(n._mousewheelHandler,n),s=Object(g.bind)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(g.defaults)(Object(g.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return Object(f.__extends)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!ut(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&JC("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!XC(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&<(t.event),KC(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ut(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=JC("zoomOnMouseWheel",t,this._opt),n=JC("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1;ZC(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);ZC(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){XC(this._zr,"globalPan")||ZC(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(G);function tk(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function ek(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var nk,rk={axisPointer:1,tooltip:1,brush:1};function ik(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!rk.hasOwnProperty(r.mainType)&&i&&i.model!==n}function ok(t){Object(g.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var ak={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},sk=Object(g.keys)(ak),lk={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uk=Object(g.keys)(lk),ck=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=ok(t);this._defsUsePending=[];var r=new tr;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),vk(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=_k(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=kk(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=r;(r=new tr).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new ca({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=nk[s];if(u&&Object(g.hasOwn)(nk,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var d=hk[s];if(d&&Object(g.hasOwn)(hk,s)){var f=d.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=f)}}if(a&&a.isGroup)for(var v=t.firstChild;v;)1===v.nodeType?this._parseNode(v,a,n,l,i,o):3===v.nodeType&&o&&this._parseText(v,a),v=v.nextSibling},t.prototype._parseText=function(t,e){var n=new Jo({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pk(e,n),vk(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(nk={g:function(t,e){var n=new tr;return pk(e,n),vk(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ca;return pk(e,n),vk(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Js;return pk(e,n),vk(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Il;return pk(e,n),vk(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new el;return pk(e,n),vk(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=gk(r));var i=new Cl({shape:{points:n||[]},silent:!0});return pk(e,i),vk(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=gk(r));var i=new Ml({shape:{points:n||[]},silent:!0});return pk(e,i),vk(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new na;return pk(e,n),vk(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new tr;return pk(e,a),vk(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new tr;return pk(e,a),vk(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=Xs(t.getAttribute("d")||"");return pk(e,n),vk(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),hk={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new $l(e,n,r,i);return dk(t,o),fk(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new Gl(e,n,r);return dk(t,i),fk(t,i),i}};function dk(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function fk(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};Ck(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function pk(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(g.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function gk(t){for(var e=_k(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function vk(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){var r=[],i=null;(n=n.replace(/,/g," ")).replace(xk,function(t,e,n){return r.push(e,n),""});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=_k(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":mt(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":bt(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":yt(i,i,-parseFloat(l[0])*wk);break;case"skewX":var u=Math.tan(parseFloat(l[0])*wk);vt(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*wk);vt(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),Ck(t,a,s),r||function(t,e,n){for(var r=0;r<sk.length;r++){var i=sk[r],o=t.getAttribute(i);null!=o&&(e[ak[i]]=o)}for(var r=0;r<uk.length;r++){var i=uk[r],o=t.getAttribute(i);null!=o&&(n[lk[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=yk(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=yk(o,"stroke",a.stroke,n)),Object(g.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))}),Object(g.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(o.style[t]=a[t])}),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(g.map)(_k(a.lineDash),function(t){return parseFloat(t)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var mk=/^url\(\s*#(.*?)\)/;function yk(t,e,n,r){var i=n&&n.match(mk);if(!i)return"none"===n&&(n=null),n;var o=Object(g.trim)(i[1]);r.push([t,e,o])}var bk=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _k(t){return t.match(bk)||[]}var xk=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,wk=Math.PI/180;var Sk=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Ck(t,e,n){var r,i=t.getAttribute("style");if(i)for(Sk.lastIndex=0;null!=(r=Sk.exec(i));){var o=r[1],a=Object(g.hasOwn)(ak,o)?ak[o]:null;a&&(e[a]=r[2]);var s=Object(g.hasOwn)(lk,o)?lk[o]:null;s&&(n[s]=r[2])}}function kk(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}var Ok=Object(g.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Mk=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(g.createHashMap)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=ok(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=Object(g.createHashMap)();return Object(g.each)(t,function(t){if(null==t.namedFrom){var r=new Fb(t.name,t.el);e.push(r),n.set(t.name,r)}}),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,r,i;try{n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new ck).parse(r,i))||{}).root,Object(g.assert)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new tr;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,h=void 0,d=void 0,f=void 0;if(null!=a?(c=0,d=a):l&&(c=l.x,d=l.width),null!=s?(h=0,f=s):l&&(h=l.y,f=l.height),null==c||null==h){var p=n.getBoundingRect();null==c&&(c=p.x,d=p.width),null==h&&(h=p.y,f=p.height)}u=this._boundingRect=new It(c,h,d,f)}if(l){var v=kk(l,u);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}o.setClipPath(new ca({shape:u.plain()}));var m=[];return Object(g.each)(e.named,function(t){var e;null!=Ok.get(t.svgNodeTagLower)&&(m.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1}))}),{root:o,boundingRect:u,named:m}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var Ek=[126,25],Tk="南海诸岛",Ak=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Ik=0;Ik<Ak.length;Ik++)for(var Dk=0;Dk<Ak[Ik].length;Dk++)Ak[Ik][Dk][0]/=10.5,Ak[Ik][Dk][1]/=-14,Ak[Ik][Dk][0]+=Ek[0],Ak[Ik][Dk][1]+=Ek[1];var Pk={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var Lk=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var jk=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=Object(g.createHashMap)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(r=e,Object(g.isString)(r)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}(r)})}var i=Object(g.createHashMap)(),o=[];return Object(g.each)(n.regions,function(e){var n=e.name;t&&Object(g.hasOwn)(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)}),{regions:o,boundingRect:n.boundingRect||new It(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?$b(r,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Tk)return;e.push(new Bb(Tk,g.map(Ak,function(t){return{type:"polygon",exterior:t}}),Ek))}}(n,e),Object(g.each)(e,function(t){var e=t.name;!function(t,e){if("china"===t){var n=Pk[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:Lk[0]})}(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)},this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();var Nk=Object(g.createHashMap)(),Rk={registerMap:function(t,e,n){if(e.svg){var r=new Mk(t,e.svg);Nk.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new jk(t,i,n);Nk.set(t,r)}},getGeoResource:function(t){return Nk.get(t)},getMapForUser:function(t){var e=Nk.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=Nk.get(t);if(r)return r.load(e,n)}},Bk=["rect","circle","line","ellipse","polygon","polyline","path"],Fk=g.createHashMap(Bk),zk=g.createHashMap(Bk.concat(["g"])),Vk=g.createHashMap(Bk.concat(["g"])),$k=Qr();function Gk(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function Hk(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}function Wk(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Gk(i),u=Gk(o),c=Gk(s),h=Gk(a),d=t.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=ov(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,os(e)}function Uk(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;zu(e,Vu(r),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=e.getTextContent();if(p&&($k(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Yk(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Ma(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function Xk(t,e,n,r,i){t.data||Lu({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function qk(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return xs(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var r=Ma(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}(e,i,n),a}function Zk(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),g.each(t,function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()}),!n&&s.polygonEnd(),i}var Kk=function(){function t(t){var e=new tr;this.uid=fc("ec_map_draw"),this._controller=new QC(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new tr),e.add(this._svgGroup=new tr)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||i?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):tu(u,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=g.createHashMap(),n=g.createHashMap(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){return{shape:{points:function(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}(t)}}}r.removeAll(),g.each(t.geo.regions,function(i){var h=i.name,d=e.get(h),f=n.get(h)||{},p=f.dataIdx,v=f.regionModel;d||(d=e.set(h,new tr),r.add(d),p=a?a.indexOfName(h):null,v=t.isGeo?o.getRegionModel(h):a?a.getItemModel(p):null,n.set(h,{dataIdx:p,regionModel:v}));var m=[],y=[];g.each(i.geometries,function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=Zk(e,l)),g.each(e,function(t){m.push(new Cl(c(t)))})}else{var n=t.points;l&&(n=Zk(n,l,!0)),g.each(n,function(t){y.push(new Ml(c(t)))})}});var b=u(i.getCenter(),s&&s.project);function _(e,n){if(e.length){var r=new zl({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(r),Wk(t,r,p,v),Uk(t,r,h,v,o,p,b),n&&(Hk(r),g.each(r.states,Hk))}}_(m),_(y,!0)}),e.each(function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;Yk(t,e,r,s,o,a),Xk(t,e,r,s,o),qk(t,e,r,s,o)},this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=g.createHashMap(),i=!1;g.each(this._svgGraphicRecord.named,function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=Fk.get(s)&&l instanceof Yi&&Wk(t,l,u,c),l instanceof Yi&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=Vk.get(s)&&Uk(t,l,n,c,o,u,null),Yk(t,l,n,c,o,u),Xk(t,l,n,c,o),null!=zk.get(s)&&("self"===qk(t,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(t){if(!t.isGroup){os(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=Rk.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=Rk.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",function(t){this._mouseDownFlag=!1,tk(o,t.dx,t.dy),n.dispatchAction(g.extend(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(t){this._mouseDownFlag=!1,ek(o,t.scale,t.originX,t.originY),n.dispatchAction(g.extend(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(e,i,o){return r.containPoint([i,o])&&!ik(e,n,t)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=$k(e).ignore)})},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},t}(),Jk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(o=this._mapDraw)&&i.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new Kk(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Js({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Ba+1)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),d=r.getItemModel(n),f=d.getModel("label"),p=u.getItemGraphicEl(h);zu(l,Vu(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(t){rs(l,t)}}i.add(l)}}})},e.type="map",e}(wp),Qk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t){for(var e=TS(this,{coordDimensions:["value"],encodeDefaulter:g.curry(Fh,this)}),n=g.createHashMap(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}var s=Rk.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return g.each(s.regions,function(t){var e=t.name;n.get(e)||r.push(e)}),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Vf("section",{header:s.join(", "),noHeader:!s.length,blocks:[Vf("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Eg(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(cp);function tO(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)}),g.each(e,function(t,e){for(var n,r,i,o=(n=g.map(t,function(t){return t.getData()}),r=t[0].get("mapValueCalculation"),i={},g.each(n,function(t){t.each(t.mapDimension("value"),function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o,a="ec-"+n[0].getName(e),s=0,l=1/0,u=-1/0,c=i[a].length,h=0;h<c;h++)l=Math.min(l,i[a][h]),u=Math.max(u,i[a][h]),s+=i[a][h];return o="min"===r?l:"max"===r?u:"average"===r?s/c:s,0===c?NaN:o})),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]})}function eO(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};g.each(n.seriesGroup,function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}})});var o=n.getData();o.each(function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)}),e[r]=!0}})}var nO=B;function rO(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var iO=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Dn,n._rawTransformable=new Dn,n.name=e,n}return Object(f.__extends)(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new It(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new It(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new It(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[fr(t[0],e.getWidth()),fr(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=B([],r,t),n=B([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),gt(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],_t(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Dn;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?nO(n,t,r):m(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?nO([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=rO(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=rO(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Dn),oO={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},aO=["lng","lat"],sO=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=aO,i.type="geo",i._nameCoordMap=g.createHashMap(),i.map=n;var o,a=r.projection,s=Rk.load(n,r.nameMap,r.nameProperty),l=Rk.getGeoResource(n),u=(i.resourceType=l?l.type:null,i.regions=s.regions),c=oO[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:g.retrieve2(r.aspectScale,c.aspectScale),i._invertLongitute=!a&&c.invertLongitute,i}return Object(f.__extends)(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new It(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(g.isString(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=lO(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=lO(e);return r===this?r.pointToData(n):null},e}(iO);function lO(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ri).models[0]||{}).coordinateSystem:null}g.mixin(sO,iO);var uO=sO;function cO(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);F(r,r,h),z(i,i,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var h,d,f,p=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),m=e.getWidth(),y=e.getHeight(),b=p.width/p.height*this.aspectScale,_=!1;if(g&&v&&(h=[fr(g[0],m),fr(g[1],y)],d=fr(v,Math.min(m,y)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(_=!0)),_)f={},b>1?(f.width=d,f.height=d/b):(f.height=d,f.width=d*b),f.y=h[1]-f.height/2,f.x=h[0]-f.width/2;else{var x=t.getBoxLayoutParams();x.aspect=b,f=gh(x,{width:m,height:y})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var hO=new(function(){function t(){this.dimensions=aO}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",function(t,i){var o=t.get("map"),a=new uO(o+i,o,g.extend({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=cO,a.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var i={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}}),g.each(i,function(t,i){var o=g.map(t,function(t){return t.get("nameMap")}),a=new uO(i,i,g.extend({nameMap:g.mergeAll(o)},r(t[0])));a.zoomLimit=g.retrieve.apply(null,g.map(t,function(t){return t.get("scaleLimit")})),n.push(a),a.resize=cO,a.resize(t[0],e),g.each(t,function(t){t.coordinateSystem=a,function(t,e){g.each(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}(a,t)})}),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=g.createHashMap(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=Rk.load(e,n,r);return g.each(s.regions,function(t){var e=t.name;!o.get(e)&&i.push({name:e})}),i},t}()),dO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){var r=Rk.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),$r(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=hO.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=g.reduce(e.regions||[],function(e,r){var i=r.name;return i&&(e.set(i,new hc(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e},g.createHashMap()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new hc(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return g.isFunction(r)?(i.status=e,r(i)):g.isString(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Sh);function fO(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function pO(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(fO(t,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(fO(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var gO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Kk(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;gg(t.target,function(t){return null!=(e=Ma(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse(function(t){var e=Ma(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(dp);function vO(t,e,n){Rk.registerMap(t,e,n)}function mO(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},function(n){n[e](t.name);var o=n.coordinateSystem;Object(g.each)(o.regions,function(t){r[t.name]=n.isSelected(t.name)||!1});var a=[];Object(g.each)(r,function(t,e){r[e]&&a.push(e)}),i.push({geoIndex:n.componentIndex,name:a})}),{selected:r,allSelected:i,name:t.name}})}t.registerCoordinateSystem("geo",hO),t.registerComponentModel(dO),t.registerComponentView(gO),t.registerImpl("registerMap",vO),t.registerImpl("getMap",function(t){return Rk.getMapForUser(t)}),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=pO(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&Object(g.each)(e.seriesGroup,function(t){t.setCenter(o.center),t.setZoom(o.zoom)})}})})}function yO(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,i=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=wO(s),o=SO(o),s&&o;){i=wO(i),a=SO(a),i.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);d>0&&(kO(CO(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!wO(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!SO(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function bO(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function _O(t){return arguments.length?t:OO}function xO(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function wO(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function SO(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function CO(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function kO(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function OO(t,e){return t.parentNode===e.parentNode?1:2}var MO=function(){return function(){this.parentPoint=[],this.childPoints=[]}}(),EO=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MO},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=fr(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<r-1;d++){var f=n[d];t.moveTo(f[0],f[1]),h[l]=f[l],t.lineTo(h[0],h[1])}},e}(qo);function TO(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function AO(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(h.dataIndex),f=h.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,v=a.getLayout();o?((n=new uw(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=p.x,n.y=p.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,tu(n,{x:v.x,y:v.y},i);var m=n.getSymbolPath();if("radial"===i.get("layout")){var y=c.children[0],b=y.getLayout(),_=y.children.length,x=void 0,w=void 0;if(v.x===b.x&&!0===a.isExpand&&y.children.length){var S={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};(x=Math.atan2(S.y-b.y,S.x-b.x))<0&&(x=2*Math.PI+x),(w=S.x<b.x)&&(x-=Math.PI)}else(x=Math.atan2(v.y-b.y,v.x-b.x))<0&&(x=2*Math.PI+x),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=v.x<b.x)&&(x-=Math.PI):(w=v.x>b.x)||(x-=Math.PI);var C=w?"left":"right",k=s.getModel("label"),O=k.get("rotate"),M=O*(Math.PI/180),E=m.getTextContent();E&&(m.setTextConfig({position:k.get("position")||C,rotation:null==O?-x:M,origin:"center"}),E.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),A="relative"===T?g.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;A&&(Ma(n).focus=A),function(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new Nl({shape:LO(c,h,d,i,i)})),tu(v,{shape:LO(c,h,d,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,y=[],b=0;b<m.length;b++){var _=m[b].getLayout();y.push([_.x,_.y])}v||(v=r.__edge=new EO({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:f}})),tu(v,{shape:{parentPoint:[a.x,a.y],childPoints:y}},t)}}else 0;v&&("polyline"!==u||e.isExpand)&&(v.useStyle(g.defaults({strokeNoScale:!0,fill:null},p)),ks(v,l,"lineStyle"),os(v),s.add(v))}(i,a,c,n,p,f,v,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===La||rs(n.__edge,e)}})}function IO(t,e,n,r,i){var o=DO(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=r.get("edgeShape"),d=r.get("layout"),f=r.get("orient"),p=r.get(["lineStyle","curveness"]);c&&("curve"===h?ru(c,{shape:LO(d,f,p,s,s),style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&ru(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}))}}function DO(t,e){for(var n,r=e.parentNode===t?e:e.parentNode||e;null==(n=r.getLayout());)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function PO(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=DO(t.tree.root,o).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ru(n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach(function(e){IO(e,t,r,i,s)}),IO(o,t,r,i,s)}function LO(t,e,n,r,i){var o,a,s,l,u,c,h,d;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,d=i.rawY;var f=xO(u,h),p=xO(u,h+(d-h)*n),g=xO(c,d+(h-d)*n),v=xO(c,d);return{x1:f.x||0,y1:f.y||0,x2:v.x||0,y2:v.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,d=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var jO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new tr,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){this._controller=new QC(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;r.diff(a).add(function(e){TO(r,e)&&AO(r,e,null,o,t)}).update(function(e,n){var i=a.getItemGraphicEl(n);TO(r,e)?AO(r,e,i,o,t):i&&PO(a,n,i,o,t)}).remove(function(e){var n=a.getItemGraphicEl(e);n&&PO(a,e,n,o,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl(function(e,r){e.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})})}),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])});var i=[],o=[];no(r,i,o);var a=this._min,s=this._max;o[0]-i[0]==0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new iO;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker(function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!ik(e,n,t)}),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(e){tk(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){ek(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1;return((e.getZoom()-1)*n+1)/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(wp),NO=Qr();function RO(t,e){if(NO(r=this).mainData===r){var n=Object(g.extend)({},NO(this).datas);n[this.dataType]=e,$O(e,n,t)}else GO(e,this.dataType,NO(this).mainData,t);var r;return e}function BO(t,e){return t.struct&&t.struct.update(),e}function FO(t,e){return Object(g.each)(NO(e).datas,function(n,r){n!==e&&GO(n.cloneShallow(),r,e,t)}),e}function zO(t){var e=NO(this).mainData;return null==t||null==e?e:NO(e).datas[t]}function VO(){var t=NO(this).mainData;return null==t?[{data:t}]:Object(g.map)(Object(g.keys)(NO(t).datas),function(e){return{type:e,data:NO(t).datas[e]}})}function $O(t,e,n){NO(t).datas={},Object(g.each)(e,function(e,r){GO(e,r,t,n)})}function GO(t,e,n,r){NO(n).datas[e]=t,NO(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=zO,t.getLinkedDataAll=VO}var HO=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,$O(e,n,t),Object(g.each)(n,function(n){Object(g.each)(e.TRANSFERABLE_METHODS,function(e){n.wrapMethod(e,Object(g.curry)(RO,t))})}),e.wrapMethod("cloneShallow",Object(g.curry)(FO,t)),Object(g.each)(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Object(g.curry)(BO,t))}),Object(g.assert)(n[e.dataType]===e)},WO=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){g.isFunction(t)&&(n=e,e=t,t=null),t=t||{},g.isString(t)&&(t={order:t});var r,i=t.order||"preorder",o=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}();var UO=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;!function t(e,n){var r=e.value;a=Math.max(a,g.isArray(r)?r.length:1);o.push(e);var s=new WO(qr(e.name,""),i);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):i.root=s;i._nodes.push(s);var l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),i.root.updateDepthAndHeight(0);var s=oy(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new ry(s,n);return l.initData(o),r&&r(l),HO({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},t}();function YO(t,e,n){if(t&&g.indexOf(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(g.isString(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function XO(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function qO(t,e){var n=XO(t);return g.indexOf(n,e)>=0}function ZO(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var KO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new hc(n,this,this.ecModel),i=UO.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t})});var o=0;i.eachNode("preorder",function(t){t.depth>o&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return i.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==i;)s=o.parentNode.name+"."+s,o=o.parentNode;return Vf("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=ZO(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(cp);function JO(t,e){for(var n,r=[t];n=r.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function QO(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return gh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=_O(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=n.width,o=n.height,a=_O());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,n)}(l,yO,a),s.hierNode.modifier=-l.hierNode.prelim,JO(l,bO);var u=l,c=l,h=l;JO(l,function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var d=u===c?1:a(u,c)/2,f=d-u.getLayout().x,p=0,g=0,v=0,m=0;if("radial"===r)p=i/(c.getLayout().x+d+f),g=o/(h.depth-1||1),JO(l,function(t){v=(t.getLayout().x+f)*p,m=(t.depth-1)*g;var e=xO(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+f),p=i/(h.depth-1||1),JO(l,function(t){m=(t.getLayout().x+f)*g,v="LR"===y?(t.depth-1)*p:i-(t.depth-1)*p,t.setLayout({x:v,y:m},!0)})):"TB"!==y&&"BT"!==y||(p=i/(c.getLayout().x+d+f),g=o/(h.depth-1||1),JO(l,function(t){v=(t.getLayout().x+f)*p,m="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)}))}}}(t,e)})}function tM(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(g.extend)(r,n)})})}var eM=["treemapZoomToNode","treemapRender","treemapMove"];function nM(t){var e={};t.getData().tree.eachNode(function(n){for(var r=n;r&&r.depth>1;)r=r.parentNode;var i=Zh(t.ecModel,r.name||r.dataIndex+"",e);n.setVisual("decal",i)})}var rM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;g.each(e.children,function(e){t(e);var r=e.value;g.isArray(r)&&(r=r[0]),n+=r});var r=e.value;g.isArray(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);g.isArray(e.value)?e.value[0]=r:e.value=r}(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new hc({itemStyle:i},this,e);r=t.levels=function(t,e){var n,r,i=Vr(e.get("color")),o=Vr(e.get(["aria","decal","decals"]));if(!i)return;t=t||[],g.each(t,function(t){var e=new hc(t),i=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)});var a=t[0]||(t[0]={});n||(a.color=i.slice());!r&&o&&(a.decal=o.slice());return t}(r,e);var a=g.map(r||[],function(t){return new hc(t,o,e)},this),s=UO.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t})});return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t);return Vf("nameValue",{name:r.getName(t),value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=ZO(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},g.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=g.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){nM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(cp),iM=5;function oM(t,e,n,r,i,o){var a=[[i?t:t-iM,e],[t+n,e],[t+n,e+r],[i?t:t-iM,e+r]];return!o&&a.splice(2,0,[t+n+iM,e+r/2]),!i&&a.push([t,e+r/2]),a}function aM(t,e,n){Ma(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ZO(n,e)}}var sM=function(){function t(t){this.group=new tr,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),vh(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=qr(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s,l,u,c,h,d,f,p,v,m=0,y=e.emptyItemWidth,b=t.get(["breadcrumb","height"]),_=(s=e.pos,l=e.box,c=l.width,h=l.height,d=fr(s.left,c),f=fr(s.top,h),p=fr(s.right,c),v=fr(s.bottom,h),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(p)||isNaN(parseFloat(s.right)))&&(p=c),(isNaN(f)||isNaN(parseFloat(s.top)))&&(f=0),(isNaN(v)||isNaN(parseFloat(s.bottom)))&&(v=h),u=th(u||0),{width:Math.max(p-d-u[1]-u[3],0),height:Math.max(v-f-u[0]-u[2],0)}),x=e.totalWidth,w=e.renderList,S=r.getModel("itemStyle").getItemStyle(),C=w.length-1;C>=0;C--){var k=w[C],O=k.node,M=k.width,E=k.text;x>_.width&&(x-=M-y,M=y,E=null);var T=new Cl({shape:{points:oM(m,0,M,b,C===w.length-1,0===C)},style:Object(g.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Oa({style:$u(i,{text:E})}),textConfig:{position:"inside"},z2:1e4*Ba,onclick:Object(g.curry)(a,O)});T.disableLabelAnimation=!0,T.getTextContent().ensureState("emphasis").style=$u(o,{text:E}),T.ensureState("emphasis").style=S,xs(T,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(T),aM(T,t,O),m+=M+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),lM=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var uM=tr,cM=ca,hM="label",dM="upperLabel",fM=10*Ba,pM=2*Ba,gM=3*Ba,vM=bi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),mM=function(t){var e=vM(t);return e.stroke=e.fill=e.lineWidth=null,e},yM=Qr();var bM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(g.indexOf)(i,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=YO(r,["treemapZoomToNode","treemapRootToNode"],t),a=r&&r.type,s=t.layoutInfo,l=!this._oldTree,u=this._storage,c="treemapRootToNode"===a&&o&&u?{rootNodeGroup:u.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,h=this._giveContainerGroup(s),d=t.get("animation"),f=this._doRender(h,t,c);!d||l||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?f.renderFinally():this._doAnimation(h,f,t,c),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new uM,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(t,r,i,u){return function(t,e,n,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),h=t.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var f=c.width,p=c.height,v=c.borderWidth,m=c.invisible,y=a.getRawIndex(),b=s&&s.getRawIndex(),_=a.viewChildren,x=c.upperHeight,w=_&&_.length,S=d.getModel("itemStyle"),C=d.getModel(["emphasis","itemStyle"]),k=d.getModel(["blur","itemStyle"]),O=d.getModel(["select","itemStyle"]),M=S.get("borderRadius")||0,E=F("nodeGroup",uM);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),yM(E).nodeWidth=f,yM(E).nodeHeight=p,c.isAboveViewRoot)return E;var T=F("background",cM,u,pM);T&&function(e,n,r){var i=Ma(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:M}),m)N(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=mM(S);l.fill=s;var u=vM(C);u.fill=C.get("borderColor");var c=vM(k);c.fill=k.get("borderColor");var h=vM(O);if(h.fill=O.get("borderColor"),r){var d=f-2*v;R(n,s,o.opacity,{x:v,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,os(n)}e.add(n)}(E,T,w&&c.upperLabelHeight);var A=d.getModel("emphasis"),I=A.get("focus"),D=A.get("blurScope"),P=A.get("disabled"),L="ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():I;if(w)Ms(E)&&Os(E,!1),T&&(Os(T,!P),h.setItemGraphicEl(a.dataIndex,T),ws(T,L,D));else{var j=F("content",cM,u,gM);j&&function(e,n){var r=Ma(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(f-2*v,0),o=Math.max(p-2*v,0);if(n.culling=!0,n.setShape({x:v,y:v,width:i,height:o,r:M}),m)N(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=mM(S);u.fill=l,u.decal=s.decal;var c=vM(C),h=vM(k),d=vM(O);R(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,os(n)}e.add(n)}(E,j),T.disableMorphing=!0,T&&Ms(T)&&Os(T,!1),Os(E,!P),h.setItemGraphicEl(a.dataIndex,E),ws(E,L,D)}return E;function N(t){!t.invisible&&o.push(t)}function R(e,n,r,i){var o=d.getModel(i?dM:hM),s=qr(d.get("name"),null),l=o.getShallow("show");zu(e,Vu(d,i?dM:hM),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,f=Object(g.normalizeCssArray)(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-f[1]-f[3],0),n=Math.max((i?i.height:e.shape.height)-f[0]-f[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,i,c);var p=u.getState("emphasis");B(p?p.style:null,i,c)}}function B(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function F(t,o,s,l){var u=null!=b&&n[t][b],c=i[t];return u?(n[t][b]=null,function(t,e){var n=t[y]={};e instanceof uM?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(g.extend)({},e.shape)}(c,u)):m||((u=new o)instanceof Yi&&(u.z2=function(t,e){return t*fM+e}(s,l)),function(t,e){var n=t[y]={},o=a.parentNode,s=e instanceof tr;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(c,u)),e[t][y]=u}}(e,a,s,n,o,l,t,r,i,u)}!function t(e,n,r,i,o){i?(n=e,Object(g.each)(e,function(t,e){!t.isRemoved()&&s(e,e)})):new Pm(n,e,a,a).add(s).update(s).remove(Object(g.curry)(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,h=u(l,c,r,o);h&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],h,i,o+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&Object(g.each)(t,function(t,n){var r=e[n];Object(g.each)(t,function(t){t&&(r.push(t),yM(t).willDelete=!0)})}),e}(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){Object(g.each)(c,function(t){Object(g.each)(t,function(t){t.parent&&t.parent.remove(t)})}),Object(g.each)(l,function(t){t.invisible=!0,t.dirty()})}}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(g.isFunction)(i)?0:i)||0,s=(Object(g.isFunction)(o)?null:o)||"cubicOut",l=new lM;Object(g.each)(e.willDeleteEls,function(t,e){Object(g.each)(t,function(t,n){if(!t.invisible){var i,o=t.parent,u=yM(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(t,i,a,0,s)}})}),Object(g.each)(this._storage,function(t,n){Object(g.each)(t,function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof tr?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Object(g.extend)({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))})},this),this._state="animating",l.finished(Object(g.bind)(function(){this._state="ready",e.renderFinally()},this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new QC(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",Object(g.bind)(this._onPan,this)),e.on("zoom",Object(g.bind)(this._onZoom,this)));var n=new It(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,r){return n.contain(e,r)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new It(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];mt(s,s,[-(e-=a.x),-(n-=a.y)]),bt(s,s,[t.scale,t.scale]),mt(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&uh(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new sM(this.group))).render(t,e,n.node,function(e){"animating"!==r._state&&(qO(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(wp),_M=g.each,xM=g.isObject,wM=-1,SM=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=g.clone(e);this.type=r,this.mappingMethod=n,this._normalizeData=PM[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(CM(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,g.each(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(i)):"category"===n?i.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(_M(e,function(t,e){n[t]=e}),!g.isArray(r)){var i=[];g.isObject(r)?_M(r,function(t,e){var r=n[e];i[null!=r?r:wM]=t}):i[wM]=r,r=DM(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):CM(i,!0):(g.assert("linear"!==n||i.dataExtent),CM(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return g.bind(this._normalizeData,this)},t.listVisualTypes=function(){return g.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){g.isObject(t)?g.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=g.isArray(e)?[]:g.isObject(e)?{}:(i=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,r={};return e&&_M(t.visualHandlers,function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)}),n?r:null},t.prepareVisualTypes=function(t){if(g.isArray(t))t=t.slice();else{if(!xM(t))return[];var e=[];_M(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||g.isString(s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(LM(c[1],t,u[1]))return o}else if(u[1]===1/0){if(LM(c[0],u[0],t))return o}else if(LM(c[0],u[0],t)&&LM(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:MM("color"),getColorMapper:function(){var t=this.option;return g.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),EM.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Pe.fastLerp(e,t.parsedVisual,r),i?r:Pe.stringify(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Pe.stringify(Pe.fastLerp(t,this.option.parsedVisual),"rgba")},category:EM,piecewise:function(t,e){var n=IM.call(this,e);return null==n&&(n=Pe.stringify(Pe.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:TM}},colorHue:kM(function(t,e){return Pe.modifyHSL(t,e)}),colorSaturation:kM(function(t,e){return Pe.modifyHSL(t,null,e)}),colorLightness:kM(function(t,e){return Pe.modifyHSL(t,null,null,e)}),colorAlpha:kM(function(t,e){return Pe.modifyAlpha(t,e)}),decal:{applyVisual:MM("decal"),_normalizedToVisual:{linear:null,category:EM,piecewise:null,fixed:null}},opacity:{applyVisual:MM("opacity"),_normalizedToVisual:AM([0,1])},liftZ:{applyVisual:MM("liftZ"),_normalizedToVisual:{linear:TM,category:TM,piecewise:TM,fixed:TM}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:OM,category:EM,piecewise:function(t,e){var n=IM.call(this,e);return null==n&&(n=OM.call(this,t)),n},fixed:TM}},symbolSize:{applyVisual:MM("symbolSize"),_normalizedToVisual:AM([0,1])}},t}();function CM(t,e){var n=t.visual,r=[];g.isObject(n)?_M(n,function(t){r.push(t)}):null!=n&&r.push(n);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),DM(t,r)}function kM(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:AM([0,1])}}function OM(t){var e=this.option.visual;return e[Math.round(dr(t,[0,1],[0,e.length-1],!0))]||{}}function MM(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function EM(t){var e=this.option.visual;return e[this.option.loop&&t!==wM?t%e.length:t]}function TM(){return this.option.visual[0]}function AM(t){return{linear:function(e){return dr(e,t,this.option.visual,!0)},category:EM,piecewise:function(e,n){var r=IM.call(this,n);return null==r&&(r=dr(e,t,this.option.visual,!0)),r},fixed:TM}}function IM(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[SM.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function DM(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=g.map(e,function(t){var e=Pe.parse(t);return e||[0,0,0,1]})),e}var PM={linear:function(t){return dr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=SM.findPieceIndex(t,e,!0);if(null!=n)return dr(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?wM:e},fixed:g.noop};function LM(t,e,n){return t?e<=n:e<n}var jM=SM,NM="itemStyle",RM=Qr(),BM={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function t(e,n,r,i){var o=e.getModel();var a=e.getLayout();var s=e.hostTree.data;if(!a||a.invisible||!a.isInView)return;var l=o.getModel(NM);var u=function(t,e,n){var r=Object(g.extend)({},e),i=n.designatedVisualItemStyle;return Object(g.each)(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)}),r}(l,n,i);var c=s.ensureUniqueItemVisual(e.dataIndex,"style");var h=l.get("borderColor");var d=l.get("borderColorSaturation");var f;null!=d&&(f=FM(u),h=function(t,e){return null!=e?Object(Pe.modifyHSL)(e,null,null,t):null}(d,f));c.stroke=h;var p=e.viewChildren;if(p&&p.length){var v=function(t,e,n,r,i,o){if(!o||!o.length)return;var a=VM(e,"color")||null!=i.color&&"none"!==i.color&&(VM(e,"colorAlpha")||VM(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new jM(h);return RM(d).drColorMappingBy=c,d}(0,o,a,0,u,p);Object(g.each)(p,function(e,n){if(e.depth>=r.length||e===r[e.depth]){var a=function(t,e,n,r,i,o){var a=Object(g.extend)({},e);if(i){var s=i.type,l="color"===s&&RM(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}(o,u,e,n,v,i);t(e,a,r,i)}})}else f=FM(u),c.fill=f}(e,{},t.getViewRoot().getAncestors(),t)}};function FM(t){var e=zM(t,"color");if(e){var n=zM(t,"colorAlpha"),r=zM(t,"colorSaturation");return r&&(e=Object(Pe.modifyHSL)(e,null,null,r)),n&&(e=Object(Pe.modifyAlpha)(e,n)),e}}function zM(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function VM(t,e){var n=t.get(e);return Object(g.isArray)(n)&&n.length?{name:e,range:n}:null}var $M=Math.max,GM=Math.min,HM=g.retrieve,WM=g.each,UM=["itemStyle","borderWidth"],YM=["itemStyle","gapWidth"],XM=["upperLabel","show"],qM=["upperLabel","height"],ZM={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=gh(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=fr(HM(s.width,l[0]),i),c=fr(HM(s.height,l[1]),o),h=r&&r.type,d=YO(r,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===h||"treemapMove"===h?r.rootRect:null,p=t.getViewRoot(),v=XO(p);if("treemapMove"!==h){var m="treemapZoomToNode"===h?function(t,e,n,r,i){var o,a=(e||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,h=o.children,d=0,f=h.length;d<f;d++)c+=h[d].getValue();var p=a.getValue();if(0===p)return s;u*=c/p;var g=o.getModel(),v=g.get(UM),m=Math.max(v,QM(g));(u+=4*v*v+(3*v+m)*Math.pow(u,.5))>wr&&(u=wr),a=o}u<l&&(u=l);var y=Math.pow(u/l,.5);return[r*y,i*y]}(t,d,p,u,c):f?[f.width,f.height]:[u,c],y=a.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var b={squareRatio:a.squareRatio,sort:y,leafDepth:a.leafDepth};p.hostTree.clearLayouts();var _={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(_),function t(e,n,r,i){var o;var a;if(e.isRemoved())return;var s=e.getLayout();o=s.width;a=s.height;var l=e.getModel();var u=l.get(UM);var c=l.get(YM)/2;var h=QM(l);var d=Math.max(u,h);var f=u-c;var p=d-c;e.setLayout({borderWidth:u,upperHeight:d,upperLabelHeight:h},!0);o=$M(o-2*f,0);a=$M(a-f-p,0);var v=o*a;var m=function(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];!function(t,e){e&&t.sort(function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r})}(a=g.filter(a,function(t){return!t.isRemoved()}),s);var u=function(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],WM(e,function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)})):a=[NaN,NaN];return{sum:r,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}(e,l,v,n,r,i);if(!m.length)return;var y={x:f,y:p,width:o,height:a};var b=GM(o,a);var _=1/0;var x=[];x.area=0;for(var w=0,S=m.length;w<S;){var C=m[w];x.push(C),x.area+=C.getLayout().area;var k=KM(x,b,n.squareRatio);k<=_?(w++,_=k):(x.area-=x.pop().getLayout().area,JM(x,b,y,c,!1),b=GM(y.width,y.height),x.length=x.area=0,_=1/0)}x.length&&JM(x,b,y,c,!0);if(!r){var O=l.get("childrenVisibleMin");null!=O&&v<O&&(r=!0)}for(var w=0,S=m.length;w<S;w++)t(m[w],n,r,i+1)}(p,b,!1,0),_=p.getLayout(),WM(v,function(t,e){var n=(v[e+1]||p).getValue();t.setLayout(g.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))})}var x=t.getData().tree.root;x.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,f,d),!0),t.setLayoutInfo(s),function t(e,n,r,i,o){var a=e.getLayout();var s=r[o];var l=s&&s===e;if(s&&!l||o===r.length&&e!==i)return;e.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new It(n.x-a.x,n.y-a.y,n.width,n.height);WM(e.viewChildren||[],function(e){t(e,u,r,i,o+1)})}(x,new It(-s.x,-s.y,i,o),v,p,0)}};function KM(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?$M(u*r/l,l/(u*i)):1/0}function JM(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var f=t[h],p={},g=c?f.getLayout().area/c:0,v=p[l[a]]=$M(c-2*r,0),m=n[s[o]]+n[l[o]]-u,y=h===d-1||m<g?m:g,b=p[l[o]]=$M(y-2*r,0);p[s[a]]=n[s[a]]+GM(r,v/2),p[s[o]]=u+GM(r,b/2),u+=y,f.setLayout(p,!0)}n[s[a]]+=c,n[l[a]]-=c}function QM(t){return t.get(XM)?t.get(qM):0}function tE(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),r=t.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(t){var n=r.getItemModel(t).getShallow("category");if(null!=n){Object(g.isNumber)(n)&&(n=i[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0})})}function eE(t){var e={};t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each(function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}}),n.count()&&r.each(function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){Object(g.isString)(e)&&(e=i["ec-"+e]);var o=n.getItemVisual(e,"style"),a=r.ensureUniqueItemVisual(t,"style");Object(g.extend)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)r.setItemVisual(t,s[l],n.getItemVisual(e,s[l]))}})})}function nE(t){return t instanceof Array||(t=[t,t]),t}function rE(t){t.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),r=nE(t.get("edgeSymbol")),i=nE(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),o=nE(r.getShallow("symbol",!0)),a=nE(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(g.extend)(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])})})}var iE=function(t){return t.get("autoCurveness")||null},oE=function(t,e){var n=iE(t),r=20,i=[];if(g.isNumber(n))r=n;else if(g.isArray(n))return void(t.__curvenessList=n);e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},aE=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},sE=function(t){var e=t.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},lE=function(t,e){var n=aE(t.node1,t.node2,e);return e.__edgeMap[n]},uE=function(t,e){return cE(aE(t.node1,t.node2,e),e)+cE(aE(t.node2,t.node1,e),e)},cE=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function hE(t,e,n,r){var i=iE(e),o=g.isArray(i);if(!i)return null;var a=lE(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=uE(t,e);oE(e,u),t.lineStyle=t.lineStyle||{};var c=aE(t.node1,t.node2,e),h=e.__curvenessList,d=o?0:u%2?0:1;if(a.isForward)return h[d+s];var f=sE(c),p=cE(f,e),v=h[s+p+d];return r?o?i&&0===i[0]?(p+d)%2?v:-v:((p%2?0:1)+d)%2?v:-v:(p+d)%2?v:-v:h[s+p+d]}function dE(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),fE(n,t)}}function fE(t,e){t.eachEdge(function(t,n){var r=g.retrieve3(t.getModel().get(["lineStyle","curveness"]),-hE(t,e,n,!0),0),i=y(t.node1.getLayout()),o=y(t.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),t.setLayout(a)})}function pE(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];Object(g.each)(n.dimensions,function(t){i=i.concat(r.mapDimensionsAll(t))});for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}fE(r.graph,t)}else e&&"none"!==e||dE(t)})}function gE(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function vE(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var mE=Math.PI,yE=[];function bE(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var d=i.pointToData(r),f=d[0],p=d[1],v=[f-l,p-u];I(v,v),A(v,v,c),n.setLayout([l+v[0],u+v[1]],!0),xE(n,t.get(["circular","rotateLabel"]),l,u)}_E[e](t,s,a,c,l,u,h),s.eachEdge(function(e,n){var r,i=g.retrieve3(e.getModel().get(["lineStyle","curveness"]),hE(e,t,n),0),o=y(e.node1.getLayout()),a=y(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(r=[l*(i*=3)+s*(1-i),u*i+c*(1-i)]),e.setLayout([o,a,r])})}}}var _E={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n})},symbolSize:function(t,e,n,r,i,o,a){var s=0;yE.length=a;var l=gE(t);e.eachNode(function(t){var e=vE(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=mE/2),yE[t.dataIndex]=n,s+=2*n});var u=(2*mE-s)/a/2,c=0;e.eachNode(function(t){var e=u+yE[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e})}};function xE(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel().get(["label","rotate"])||0,a=i.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-r,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");g.extend(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function wE(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&bE(t,"symbolSize")})}var SE=x;function CE(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,o=r.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?i.each(function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&bE(t,"value"):dE(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=g.isArray(c)?c:[c,c],f=g.isArray(h)?h:[h,h];f=[f[1],f[0]];var p=i.mapArray("value",function(t,e){var n=i.getItemLayout(e),r=dr(t,l,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),_=o.mapArray("value",function(e,n){var i=r.getEdgeByIndex(n),o=dr(e,u,f);isNaN(o)&&(o=(f[0]+f[1])/2);var a=i.getModel(),s=g.retrieve3(i.getModel().get(["lineStyle","curveness"]),-hE(i,t,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}}),x=e.getBoundingRect(),C=function(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=v(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=y(h.p),h.edges=null}var d,f,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){f=t},step:function(t){d&&d(r,i);for(var e=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1;w(e,(v=a.n2).p,s.p);var c=S(e)-a.d,h=v.w/(s.w+v.w);isNaN(h)&&(h=0),I(e,e),!s.fixed&&SE(s.p,s.p,e,h*c*g),!v.fixed&&SE(v.p,v.p,e,-(1-h)*c*g)}}for(o=0;o<n;o++)(x=r[o]).fixed||(w(e,l,x.p),SE(x.p,x.p,e,u*g));for(o=0;o<n;o++){s=r[o];for(var p=o+1;p<n;p++){var v;w(e,(v=r[p]).p,s.p),0===(c=S(e))&&(b(e,Math.random()-.5,Math.random()-.5),c=1);var y=(s.rep+v.rep)/c/c;!s.fixed&&SE(s.pp,s.pp,e,y),!v.fixed&&SE(v.pp,v.pp,e,-y)}}var _=[];for(o=0;o<n;o++){var x;(x=r[o]).fixed||(w(_,x.p,x.pp),SE(x.p,x.p,_,g),m(x.pp,x.p))}var C=(g*=.992)<.01;f&&f(r,i,C),t&&t(C)}}}(p,_,{rect:x,gravity:a.get("gravity"),friction:a.get("friction")});C.beforeStep(function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&m(t[n].p,r.getNodeByIndex(n).getLayout())}),C.afterStep(function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||r.getNodeByIndex(a).setLayout(t[a].p),n[i.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=r.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],m(d[0],c),m(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}}),t.forceLayout=C,t.preservedPoints=n,C.step()}else t.forceLayout=null})}function kE(t,e){var n=[];return t.eachSeriesByType("graph",function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=[],a=[];no(i.mapArray(function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]}),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(t,e,n){return gh(Object(g.extend)(t.getBoxLayoutParams(),{aspect:n}),{width:e.getWidth(),height:e.getHeight()})}(t,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],h=l.width,d=l.height,f=t.coordinateSystem=new iO;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],u,c),f.setViewRect(l.x,l.y,h,d),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}}),n}var OE=Il.prototype,ME=Nl.prototype,EE=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}();!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(f.__extends)(e,t)}(EE);function TE(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var AE=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return Object(f.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new EE},e.prototype.buildPath=function(t,e){TE(e)?OE.buildPath.call(this,t,e):ME.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return TE(this.shape)?OE.pointAt.call(this,t):ME.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=TE(e)?[e.x2-e.x1,e.y2-e.y1]:ME.tangentAt.call(this,t);return I(n,n)},e}(qo),IE=["fromSymbol","toSymbol"];function DE(t){return"_"+t+"Type"}function PE(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Tg(i),u=Ag(a||0,l),c=Eg(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function LE(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var jE=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return Object(f.__extends)(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=function(t){var e=new AE({name:"line",subPixelOptimize:!0});return LE(e.shape,t),e}(t.getItemLayout(e));i.shape.percent=0,eu(i,{shape:{percent:1}},r,e),this.add(i),Object(g.each)(IE,function(n){var r=PE(n,t,e);this.add(r),this[DE(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};LE(a.shape,o),tu(i,a,r,e),Object(g.each)(IE,function(n){var r=t.getItemVisual(e,n),i=DE(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=PE(n,t,e);this.add(o)}this[i]=r},this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),f=d.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),c=f.get("focus"),h=f.get("blurScope"),l=Vu(d)}var p=t.getItemVisual(e,"style"),v=p.stroke;i.useStyle(p),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Object(g.each)(IE,function(t){var e=this.childOfName(t);if(e){e.setColor(v),e.style.opacity=p.opacity;for(var n=0;n<Na.length;n++){var r=Na[n],o=i.getState(r);if(o){var a=o.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}},this);var m=r.getRawValue(e);zu(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:v||"#000",defaultOpacity:p.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?pr(m):m)+""});var y=this.getTextContent();if(y){var b=l.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var _=b.get("distance");Object(g.isArray)(_)||(_=[_,_]),y.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),xs(this,c,h,u)},e.prototype.highlight=function(){ls(this)},e.prototype.downplay=function(){us(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");LE(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var r=1,i=this.parent;i;)i.scaleX&&(r/=i.scaleX),i=i.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=w([],l,s);if(I(u,u),t&&(t.setPosition(s),S(t,0),t.scaleX=t.scaleY=r*a,t.markRedraw()),e&&(e.setPosition(l),S(e,1),e.scaleX=e.scaleY=r*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var c=void 0,h=void 0,d=n.__labelDistance,f=d[0]*r,p=d[1]*r,g=a/2,v=o.tangentAt(g),m=[v[1],-v[0]],y=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var b=v[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var _=-Math.atan2(v[1],v[0]);l[0]<s[0]&&(_=Math.PI+_),n.rotation=_}var x=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-p,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=p,h="top";break;default:x=0,h="middle"}switch(n.__position){case"end":n.x=u[0]*f+l[0],n.y=u[1]*p+l[1],c=u[0]>.8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*f+s[0],n.y=-u[1]*p+s[1],c=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*b+s[0],n.y=s[1]+x,c=v[0]<0?"right":"left",n.originX=-f*b,n.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=y[0],n.y=y[1]+x,c="center",n.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*b+l[0],n.y=l[1]+x,c=v[0]>=0?"right":"left",n.originX=f*b,n.originY=-x}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||c})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var r=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(tr);function NE(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Vu(e)}}function RE(t){return isNaN(t[0])||isNaN(t[1])}function BE(t){return t&&!RE(t[0])&&!RE(t[1])}var FE=function(){function t(t){this.group=new tr,this._LineCtor=t||jE}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,r=this._lineData;this._lineData=t,r||n.removeAll();var i=NE(t);t.diff(r).add(function(n){e._doAdd(t,n,i)}).update(function(n,o){e._doUpdate(r,t,o,n,i)}).remove(function(t){n.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=NE(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++){if(BE(e.getItemLayout(r))){var i=new this._LineCtor(e,r,this._seriesScope);i.traverse(n),this.group.add(i),e.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Nu(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(BE(t.getItemLayout(e))){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);BE(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}(),zE=[],VE=[],$E=[],GE=Ce,HE=j,WE=Math.abs;function UE(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){zE[0]=GE(i[0],o[0],a[0],c),zE[1]=GE(i[1],o[1],a[1],c),(f=WE(HE(zE,e)-l))<s&&(s=f,r=c)}for(var h=0;h<32;h++){var d=r+u;VE[0]=GE(i[0],o[0],a[0],r),VE[1]=GE(i[1],o[1],a[1],r),$E[0]=GE(i[0],o[0],a[0],d),$E[1]=GE(i[1],o[1],a[1],d);var f=HE(VE,e)-l;if(WE(f)<.01)break;var p=HE($E,e)-l;u/=2,f<0?p>=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function YE(t,e){var n=[],r=Me,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[y(l[0]),y(l[1])],l[2]&&l.__original.push(y(l[2])));var h=l.__original;if(null!=l[2]){if(m(i[0],h[0]),m(i[1],h[2]),m(i[2],h[1]),u&&"none"!==u){var d=vE(t.node1),f=UE(i,h[0],d*e);r(i[0][0],i[1][0],i[2][0],f,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],f,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){d=vE(t.node2),f=UE(i,h[1],d*e);r(i[0][0],i[1][0],i[2][0],f,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],f,n),i[1][1]=n[1],i[2][1]=n[2]}m(l[0],i[0]),m(l[1],i[2]),m(l[2],i[1])}else{if(m(o[0],h[0]),m(o[1],h[1]),w(a,o[1],o[0]),I(a,a),u&&"none"!==u){d=vE(t.node1);x(o[0],o[0],a,d*e)}if(c&&"none"!==c){d=vE(t.node2);x(o[1],o[1],a,-d*e)}m(l[0],o[0]),m(l[1],o[1])}})}function XE(t){return"view"===t.type}var qE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){var n=new fw,r=new FE,i=this.group;this._controller=new QC(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(XE(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):tu(s,l,t)}YE(t.getGraph(),gE(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var f=t.get("layout");u.graph.eachNode(function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",function(o){switch(f){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),bE(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),fE(t.getGraph(),t),r.updateLayout(t)}}).on("dragend",function(){h&&h.setUnfixed(n)}),i.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(Ma(i).focus=e.getAdjacentDataIndices())}}),u.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Ma(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var p="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode(function(t){xE(t,p,g,v)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function r(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())})}()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker(function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!ik(e,n,t)}),XE(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(e){tk(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){ek(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),YE(t.getGraph(),gE(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()})):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=gE(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},e.prototype.updateLayout=function(t){YE(t.getGraph(),gE(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(wp);function ZE(t){return"_EC_"+t}var KE=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[ZE(t)]){var r=new JE(t,e);return r.hostGraph=this,this.nodes.push(r),n[ZE(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[ZE(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(g.isNumber(t)&&(t=this.nodes[t]),g.isNumber(e)&&(e=this.nodes[e]),t instanceof JE||(t=r[ZE(t)]),e instanceof JE||(e=r[ZE(e)]),t&&e){var o=t.id+"-"+e.id,a=new QE(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof JE&&(t=t.id),e instanceof JE&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof JE||(e=this._nodesMap[ZE(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(r,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;a.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),JE=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t}(),QE=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function tT(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}g.mixin(JE,tT("hostGraph","data")),g.mixin(QE,tT("hostGraph","edgeData"));var eT=KE;function nT(t,e,n,r,i){for(var o=new eT(r),a=0;a<t.length;a++)o.addNode(g.retrieve(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(g.retrieve(qr(c.id,null),h+" > "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=fy(t,n);else{var v=ad.get(p),m=v&&v.dimensions||[];g.indexOf(m,"value")<0&&m.concat(["value"]);var y=oy(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(f=new ry(y,n)).initData(t)}var b=new ry(["value"],n);return b.initData(l,s),i&&i(f,b),HO({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var rT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(f.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new AS(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),$r(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,r=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&r){iE(n=this)&&(n.__curvenessList=[],n.__edgeMap={},oE(n));var a=nT(i,r,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels,n=t.getShallow("category"),r=e[n];return r&&(r.parentModel=t.parentModel,t.parentModel=r),t});var n=hc.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=i,r}function i(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=i,t.getModel=r,t})});return g.each(a.edges,function(t){!function(t,e,n,r){if(iE(n)){var i=aE(t,e,n),o=n.__edgeMap,a=o[sE(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(t.node1,t.node2,this,t.dataIndex)},this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Vf("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return Jf({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=g.map(this.option.categories||[],function(t){return null!=t.value?t:g.extend({value:0},t)}),e=new ry(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(cp),iT={type:"graphRoam",event:"graphRoam",update:"none"};var oT=function(){return function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),aT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new oT},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(qo);function sT(t,e){var n=null==t?"":t+"";return e&&(Object(g.isString)(e)?n=e.replace("{value}",n):Object(g.isFunction)(e)&&(n=e(t))),n}var lT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i);return{cx:fr(n[0],e.getWidth()),cy:fr(n[1],e.getHeight()),r:fr(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?Yw:ml,h=u.get("show"),d=u.getModel("lineStyle"),f=d.get("width"),p=[s,l];Mo(p,!a);for(var v=(l=p[1])-(s=p[0]),m=s,y=[],b=0;h&&b<r.length;b++){var _=new c({shape:{startAngle:m,endAngle:l=s+v*Math.min(Math.max(r[b][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-f,r:i.r},silent:!0});_.setStyle({fill:r[b][1]}),_.setStyle(d.getLineStyle(["color","width"])),y.push(_),m=l}y.reverse(),Object(g.each)(y,function(t){return o.add(t)});var x=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,x,i,s,l,a,f),this._renderTitleAndDetail(t,e,n,x,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,x,i,s,l,a,f)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,l){for(var u,c,h=this.group,d=i.cx,f=i.cy,p=i.r,v=+t.get("min"),m=+t.get("max"),y=t.getModel("splitLine"),b=t.getModel("axisTick"),_=t.getModel("axisLabel"),x=t.get("splitNumber"),w=b.get("splitNumber"),S=fr(y.get("length"),p),C=fr(b.get("length"),p),k=o,O=(a-o)/x,M=O/w,E=y.getModel("lineStyle").getLineStyle(),T=b.getModel("lineStyle").getLineStyle(),A=y.get("distance"),I=0;I<=x;I++){if(u=Math.cos(k),c=Math.sin(k),y.get("show")){var D=new Il({shape:{x1:u*(p-(P=A?A+l:l))+d,y1:c*(p-P)+f,x2:u*(p-S-P)+d,y2:c*(p-S-P)+f},style:E,silent:!0});"auto"===E.stroke&&D.setStyle({stroke:r(I/x)}),h.add(D)}if(_.get("show")){var P=_.get("distance")+A,L=sT(pr(I/x*(m-v)+v),_.get("formatter")),j=r(I/x),N=u*(p-S-P)+d,R=c*(p-S-P)+f,B=_.get("rotate"),F=0;"radial"===B?(F=-k+2*Math.PI)>Math.PI/2&&(F+=Math.PI):"tangential"===B?F=-k-Math.PI/2:Object(g.isNumber)(B)&&(F=B*Math.PI/180),0===F?h.add(new Oa({style:$u(_,{text:L,x:N,y:R,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:j}),silent:!0})):h.add(new Oa({style:$u(_,{text:L,x:N,y:R,verticalAlign:"middle",align:"center"},{inheritColor:j}),silent:!0,originX:N,originY:R,rotation:F}))}if(b.get("show")&&I!==x){P=(P=b.get("distance"))?P+l:l;for(var z=0;z<=w;z++){u=Math.cos(k),c=Math.sin(k);var V=new Il({shape:{x1:u*(p-P)+d,y1:c*(p-P)+f,x2:u*(p-C-P)+d,y2:c*(p-C-P)+f},silent:!0,style:T});"auto"===T.stroke&&V.setStyle({stroke:r((I+z/w)/x)}),h.add(V),k+=M}k-=M}else k+=O}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],f=t.get(["pointer","show"]),p=t.getModel("progress"),v=p.get("show"),m=t.getData(),y=m.mapDimension("value"),b=+t.get("min"),_=+t.get("max"),x=[b,_],w=[o,a];function S(e,n){var r,o=m.getItemModel(e).getModel("pointer"),a=fr(o.get("width"),i.r),s=fr(o.get("length"),i.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=fr(u[0],i.r),h=fr(u[1],i.r),d=o.get("keepAspect");return(r=l?Eg(l,c-a/2,h-s,a,s,null,d):new aT({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function C(t,e){var n=p.get("roundCap")?Yw:ml,r=p.get("overlap"),a=r?p.get("width"):l/m.count(),u=r?i.r-a:i.r-(t+1)*a,c=r?i.r:i.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:u,r:c}});return r&&(h.z2=_-m.get(y,t)%_),h}(v||f)&&(m.diff(c).add(function(e){var n=m.get(y,e);if(f){var r=S(e,o);eu(r,{rotation:-((isNaN(+n)?w[0]:dr(n,x,w,!0))+Math.PI/2)},t),u.add(r),m.setItemGraphicEl(e,r)}if(v){var i=C(e,o),a=p.get("clip");eu(i,{shape:{endAngle:dr(n,x,w,a)}},t),u.add(i),Ea(t.seriesIndex,m.dataType,e,i),d[e]=i}}).update(function(e,n){var r=m.get(y,e);if(f){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=S(e,a);s.rotation=a,tu(s,{rotation:-((isNaN(+r)?w[0]:dr(r,x,w,!0))+Math.PI/2)},t),u.add(s),m.setItemGraphicEl(e,s)}if(v){var l=h[n],g=C(e,l?l.shape.endAngle:o),b=p.get("clip");tu(g,{shape:{endAngle:dr(r,x,w,b)}},t),u.add(g),Ea(t.seriesIndex,m.dataType,e,g),d[e]=g}}).execute(),m.each(function(t){var e=m.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var s=m.getItemGraphicEl(t),l=m.getItemVisual(t,"style"),u=l.fill;if(s instanceof na){var c=s.style;s.useStyle(Object(g.extend)({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(dr(m.get(y,t),x,[0,1],!0))),s.z2EmphasisLift=0,ks(s,e),xs(s,i,o,a)}if(v){var h=d[t];h.useStyle(m.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,ks(h,e),xs(h,i,o,a)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=Eg(i,e.cx-r/2+fr(o[0],e.r),e.cy-r/2+fr(o[1],e.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new tr,h=[],d=[],f=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){h[t]=new Oa({silent:!0}),d[t]=new Oa({silent:!0})}).update(function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new tr,v=r(dr(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),b=i.cx+fr(y[0],i.r),_=i.cy+fr(y[1],i.r);(E=h[e]).attr({z2:p?0:2,style:$u(m,{x:b,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(E)}var x=n.getModel("detail");if(x.get("show")){var w=x.get("offsetCenter"),S=i.cx+fr(w[0],i.r),C=i.cy+fr(w[1],i.r),k=fr(x.get("width"),i.r),O=fr(x.get("height"),i.r),M=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,E=d[e],T=x.get("formatter");E.attr({z2:p?0:2,style:$u(x,{x:S,y:C,text:sT(o,T),width:isNaN(k)?null:k,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:M})}),Zu(E,{normal:x},o,function(t){return sT(t,T)}),f&&Ku(E,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return sT(a?a.interpolatedValue:o,T)}}),g.add(E)}c.add(g)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(wp),uT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){return TS(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(cp);var cT=["itemStyle","opacity"],hT=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Ml,a=new Oa;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return Object(f.__extends)(e,t),e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=t.getItemModel(e),o=t.getItemLayout(e),a=i.getModel("emphasis"),s=i.get(cT);s=null==s?1:s,n||au(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,eu(this,{style:{opacity:s}},r,e)):tu(this,{style:{opacity:s},shape:{points:o.points}},r,e),ks(this,i),this._updateLabel(t,e),xs(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),r=this.getTextContent(),i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;zu(r,Vu(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var u=a.linePoints;n.setShape({points:u}),this.textGuideLineConfig={anchor:u?new wt(u[0][0],u[0][1]):null},tu(r,{style:{x:a.x,y:a.y}},i,e),r.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),M_(this,E_(o),{stroke:l})},e}(Cl),dT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add(function(t){var e=new hT(r,t);r.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)}).remove(function(e){ou(i.getItemGraphicEl(e),t,e)}).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(wp),fT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new AS(g.bind(this.getData,this),g.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return TS(this,{coordDimensions:["value"],encodeDefaulter:g.curry(Fh,this)})},e.prototype._defaultLabelLine=function(t){$r(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(cp);function pT(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=function(t,e){return gh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(t){return t}),i=[],o="ascending"===e,a=0,s=t.count();a<s;a++)i[a]=a;return Object(g.isFunction)(e)?i.sort(e):"none"!==e&&i.sort(function(t,e){return o?r[t]-r[e]:r[e]-r[t]}),i}(n,i),c=o.x,h=o.y,d="horizontal"===a?[fr(t.get("minSize"),l),fr(t.get("maxSize"),l)]:[fr(t.get("minSize"),s),fr(t.get("maxSize"),s)],f=n.getDataExtent(r),p=t.get("min"),v=t.get("max");null==p&&(p=Math.min(f[0],0)),null==v&&(v=f[1]);var m=t.get("funnelAlign"),y=t.get("gap"),b=(("horizontal"===a?s:l)-y*(n.count()-1))/n.count(),_=function(t,e){if("horizontal"===a){var i=dr(n.get(r,t)||0,[p,v],d,!0),o=void 0;switch(m){case"top":o=h;break;case"center":o=h+(l-i)/2;break;case"bottom":o=h+(l-i)}return[[e,o],[e,o+i]]}var u,f=dr(n.get(r,t)||0,[p,v],d,!0);switch(m){case"left":u=c;break;case"center":u=c+(s-f)/2;break;case"right":u=c+s-f}return[[u,e],[u+f,e]]};"ascending"===i&&(b=-b,y=-y,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var x=0;x<u.length;x++){var w=u[x],S=u[x+1],C=n.getItemModel(w);if("horizontal"===a){var k=C.get(["itemStyle","width"]);null==k?k=b:(k=fr(k,s),"ascending"===i&&(k=-k));var O=_(w,c),M=_(S,c+k);c+=k+y,n.setItemLayout(w,{points:O.concat(M.slice().reverse())})}else{var E=C.get(["itemStyle","height"]);null==E?E=b:(E=fr(E,l),"ascending"===i&&(E=-E));O=_(w,h),M=_(S,h+E);h+=E+y,n.setItemLayout(w,{points:O.concat(M.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each(function(n){var r,i,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===l?(i=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var f=void 0,p=void 0,g=void 0,v=void 0,m=u.get("length");"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,i=(g=f-m)-5,r="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,i=(g=f+m)+5,r="left"):"top"===l?(f=(h[3][0]+h[0][0])/2,o=(v=(p=(h[3][1]+h[0][1])/2)-m)-5,r="center"):"bottom"===l?(f=(h[1][0]+h[2][0])/2,o=(v=(p=(h[1][1]+h[2][1])/2)+m)+5,r="center"):"rightTop"===l?(f="horizontal"===e?h[3][0]:h[1][0],p="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(v=p-m)-5,r="center"):(i=(g=f+m)+5,r="top")):"rightBottom"===l?(f=h[2][0],p=h[2][1],"horizontal"===e?(o=(v=p+m)+5,r="center"):(i=(g=f+m)+5,r="bottom")):"leftTop"===l?(f=h[0][0],p="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(v=p-m)-5,r="center"):(i=(g=f-m)-5,r="right")):"leftBottom"===l?(f="horizontal"===e?h[1][0]:h[3][0],p="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(v=p+m)+5,r="center"):(i=(g=f-m)-5,r="right")):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(v=p+m)+5,r="center"):(i=(g=f+m)+5,r="left")),"horizontal"===e?i=g=f:o=v=p,a=[[f,p],[g,v]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:d}})}(n)})}var gT=.3;function vT(t,e,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(l,s))}return o}function mT(t,e,n,r,i){var o=vT(t,n,r,i),a=new Ml({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function yT(t){var e=t.get("smooth",!0);return!0===e&&(e=gT),e=Dr(e),Object(g.eqNaN)(e)&&(e=0),{smooth:e}}function bT(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");ks(t,i,"lineStyle"),xs(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var _T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new tr,n._initialized=!1,n}return Object(f.__extends)(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=yT(t);if(o.diff(a).add(function(t){bT(mT(o,i,t,l,s),o,t,u)}).update(function(e,n){var r=a.getItemGraphicEl(n),i=vT(o,e,l,s);o.setItemGraphicEl(e,r),tu(r,{shape:{points:i}},t,e),au(r),bT(r,o,e,u)}).remove(function(t){var e=a.getItemGraphicEl(t);i.remove(e)}).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var r=t.model,i=t.getRect(),o=new ca({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),eu(o,{shape:{width:i.width,height:i.height}},e,n),o}(s,t,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=yT(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=mT(r,this._dataGroup,l,o,i);u.incremental=!0,bT(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(wp);function xT(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(g.each)(e.dimensions,function(t){var e=+t.replace("dim","");n[t]=e}),n}}var wT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){return fy(null,this,{useEncodeDefaulter:Object(g.bind)(xT,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,function(e,i){t===e&&r.push(n.getRawIndex(i))}),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(cp),ST=["lineStyle","opacity"],CT={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(ST,!0);null!=o&&(i=o)}e.ensureUniqueItemVisual(n,"style").opacity=i},t.start,t.end)}}}};function kT(t){!function(t){if(t.parallel)return;var e=!1;g.each(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}(t),function(t){var e=Vr(t.parallelAxis);g.each(e,function(e){if(g.isObject(e)){var n=e.parallelIndex||0,r=Vr(t.parallel)[n];r&&r.parallelAxisDefault&&g.merge(e,r.parallelAxisDefault,!1)}})}(t)}var OT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(g.each)(MT,function(t,e){n.getZr().on(e,this._handlers[e]=Object(g.bind)(t,this))},this)),Mp(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Ep(this,"_throttledDispatchExpand"),Object(g.each)(this._handlers,function(t,n){e.getZr().off(n,t)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(g.extend)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(dp),MT={mousedown:function(t){ET(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(ET(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ET(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function ET(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var TT=OT,AT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&g.merge(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){g.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=g.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);g.each(n,function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Sh),IT=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return Object(f.__extends)(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(t_);function DT(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=LT(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);i=o=LT(s=LT(s,[0,a]),[i,o]),r=0}e[0]=LT(e[0],n),e[1]=LT(e[1],n);var l=PT(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=LT(e[r],h),u=PT(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=PT(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function PT(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function LT(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var jT=g.each,NT=Math.min,RT=Math.max,BT=Math.floor,FT=Math.ceil,zT=pr,VT=Math.PI;function $T(t,e){return NT(RT(t,e[0]),e[1])}var GT=function(){function t(t,e,n){this.type="parallel",this._axesMap=g.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;jT(r,function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new IT(t,mb(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var r=n.getData();jT(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),vb(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=gh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=$T(e.get("axisExpandWidth"),l),h=$T(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");f?(t=$T(f[1]-f[0],l),f[1]=f[0]+t):(t=$T(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||BT(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-h);p<3&&(p=0);var g=[BT(zT(f[0]/c,1))+1,FT(zT(f[1]/c,1))-1],v=p/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each(function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),jT(n,function(e,n){var o=(r.axisExpandable?function(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s);return{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}:function(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}})(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:VT/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=[1,0,0,1,0,0];yt(c,c,u),mt(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];g.each(o,function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),d=0,f=o.length;d<f;d++){if("inactive"===s[d].getActiveState(h[d])){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return Cu([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return g.clone(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?DT(a,r,o,"all"):l="none";else{var d=r[1]-r[0];(r=[RT(0,o[1]*s/d-d/2)])[1]=NT(o[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},t}();var HT={create:function(t,e){var n=[];return t.eachComponent("parallel",function(r,i){var o=new GT(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",ri).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},WT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return Object(f.__extends)(e,t),e.prototype.getAreaSelectStyle=function(){return bi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=g.clone(t);if(e)for(var n=e.length-1;n>=0;n--)gr(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(Sh);g.mixin(WT,Sb);var UT=WT,YT=!0,XT=Math.min,qT=Math.max,ZT=Math.pow,KT=1e4,JT=6,QT=6,tA={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},eA={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},nA={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},rA=0,iA=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new tr,n._uid="brushController_"+rA++,Object(g.each)(IA,function(t,e){this._handlers[e]=Object(g.bind)(t,this)},n),n}return Object(f.__extends)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){qC(t)[e]=n}(e,"globalPan",this._uid),Object(g.each)(this._handlers,function(t,n){e.on(n,t)}),this._brushType=t.brushType,this._brushOption=Object(g.merge)(Object(g.clone)(nA),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var r=qC(t);r[e]===n&&(r[e]=null)}(t,"globalPan",this._uid),Object(g.each)(this._handlers,function(e,n){t.off(n,e)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(g.each)(t,function(t){e[t.panelId]=Object(g.clone)(t)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(g.map)(t,function(t){return Object(g.merge)(Object(g.clone)(nA),t,!0)});var e="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new Pm(n,t,function(t,e){return a(t.__brushOption,e)},a).add(s).update(s).remove(function(t){n[t]!==o&&i.group.remove(n[t])}).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)r[e]=n[a];else{var l=r[e]=null!=a?(n[a].__brushOption=s,n[a]):aA(i,oA(i,s));uA(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),fA(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(G);function oA(t,e){var n=PA[e.brushType].createCover(t,e);return n.__brushOption=e,lA(n,e),t.group.add(n),n}function aA(t,e){var n=cA(e);return n.endCreating&&(n.endCreating(t,e),lA(e,e.__brushOption)),e}function sA(t,e){var n=e.__brushOption;cA(e).updateCoverShape(t,e,n.range,n)}function lA(t,e){var n=e.z;null==n&&(n=KT),t.traverse(function(t){t.z=n,t.z2=n})}function uA(t,e){cA(e).updateCommon(t,e),sA(t,e)}function cA(t){return PA[t.__brushOption.brushType]}function hA(t,e,n){var r,i=t._panels;if(!i)return YT;var o=t._transform;return Object(g.each)(i,function(t){t.isTargetByCursor(e,n,o)&&(r=t)}),r}function dA(t,e){var n=t._panels;if(!n)return YT;var r=e.__brushOption.panelId;return null!=r?n[r]:YT}function fA(t){var e=t._covers,n=e.length;return Object(g.each)(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function pA(t,e){var n=Object(g.map)(t._covers,function(t){var e=t.__brushOption,n=Object(g.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function gA(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function vA(t,e,n,r){var i=new tr;return i.add(new ca({name:"main",style:_A(n),silent:!0,draggable:!0,cursor:"move",drift:Object(g.curry)(SA,t,e,i,["n","s","w","e"]),ondragend:Object(g.curry)(pA,e,{isEnd:!0})})),Object(g.each)(r,function(n){i.add(new ca({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(g.curry)(SA,t,e,i,n),ondragend:Object(g.curry)(pA,e,{isEnd:!0})}))}),i}function mA(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=qT(i,QT),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-o+i/2,f=h-o+i/2,p=c-a,g=h-s,v=p+i,m=g+i;bA(t,e,"main",a,s,p,g),r.transformable&&(bA(t,e,"w",l,u,o,m),bA(t,e,"e",d,u,o,m),bA(t,e,"n",l,u,v,o),bA(t,e,"s",l,f,v,o),bA(t,e,"nw",l,u,o,o),bA(t,e,"ne",d,u,o,o),bA(t,e,"sw",l,f,o,o),bA(t,e,"se",d,f,o,o))}function yA(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(_A(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(g.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var i=e.childOfName(n.join("")),o=1===n.length?wA(t,n[0]):function(t,e){var n=[wA(t,e[0]),wA(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?eA[o]+"-resize":null})})}function bA(t,e,n,r,i,o,a){var s,l,u,c,h,d=e.childOfName(n);d&&d.setShape((s=OA(t,e,[[r,i],[r+o,i+a]]),l=XT(s[0][0],s[1][0]),u=XT(s[0][1],s[1][1]),c=qT(s[0][0],s[1][0]),h=qT(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:h-u}))}function _A(t){return Object(g.defaults)({strokeNoScale:!0},t.brushStyle)}function xA(t,e,n,r){var i=[XT(t,n),XT(e,r)],o=[qT(t,n),qT(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function wA(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[ku({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Su(t.group)}(t))]}function SA(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=kA(e,i,o);Object(g.each)(r,function(t){var e=tA[t];s[e[0]][e[1]]+=l[e[0]]}),a.range=t.fromRectRange(xA(s[0][0],s[1][0],s[0][1],s[1][1])),uA(e,n),pA(e,{isEnd:!1})}function CA(t,e,n,r){var i=e.__brushOption.range,o=kA(t,n,r);Object(g.each)(i,function(t){t[0]+=o[0],t[1]+=o[1]}),uA(t,e),pA(t,{isEnd:!1})}function kA(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function OA(t,e,n){var r=dA(t,e);return r&&r!==YT?r.clipPath(n,t._transform):Object(g.clone)(n)}function MA(t){var e=t.event;e.preventDefault&&e.preventDefault()}function EA(t,e,n){return t.childOfName("main").contain(e,n)}function TA(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return ZT(i*i+o*o,.5)>JT}(t)||o){if(a&&!o){"single"===s.brushMode&&fA(t);var l=Object(g.clone)(s);l.brushType=AA(l.brushType,a),l.panelId=a===YT?null:a.panelId,o=t._creatingCover=oA(t,l),t._covers.push(o)}if(o){var u=PA[AA(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(OA(t,o,t._track)),r&&(aA(t,o),u.updateCommon(t,o)),sA(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&hA(t,e,n)&&fA(t)&&(i={isEnd:r,removeOnClick:!0});return i}function AA(t,e){return"auto"===t?e.defaultBrushType:t}var IA={mousedown:function(t){if(this._dragging)DA(this,t);else if(!t.target||!t.target.draggable){MA(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=hA(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=hA(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===YT||s.panelId===o.panelId)&&PA[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){MA(t);var i=TA(this,t,r,!1);i&&pA(this,i)}},mouseup:function(t){DA(this,t)}};function DA(t,e){if(t._dragging){MA(e);var n=e.offsetX,r=e.offsetY,i=TA(t,e,t.group.transformCoordToLocal(n,r),!0);t._dragging=!1,t._track=[],t._creatingCover=null,i&&pA(t,i)}}var PA={lineX:LA(0),lineY:LA(1),rect:{createCover:function(t,e){function n(t){return t}return vA({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=gA(t);return xA(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){mA(t,e,n,r)},updateCommon:yA,contain:EA},polygon:{createCover:function(t,e){var n=new tr;return n.add(new Ml({name:"main",style:_A(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Cl({name:"main",draggable:!0,drift:Object(g.curry)(CA,t,e),ondragend:Object(g.curry)(pA,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:OA(t,e,n)})},updateCommon:yA,contain:EA}};function LA(t){return{createCover:function(e,n){return vA({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=gA(e);return[XT(n[0][t],n[1][t]),qT(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=dA(e,n);if(a!==YT&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),mA(e,n,l,i)},updateCommon:yA,contain:EA}}var jA=iA;function NA(t){return t=FA(t),function(e){return Eu(e,t)}}function RA(t,e){return t=FA(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function BA(t,e,n){var r=FA(t);return function(t,i){return r.contain(i[0],i[1])&&!ik(t,e,n)}}function FA(t){return It.create(t)}var zA=["axisLine","axisTickLabel","axisName"];var VA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new jA(n.getZr())).on("brush",g.bind(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new tr,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),h=g.extend({strokeContainThreshold:l},c),d=new fC(t,h);g.each(zA,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,t,o,l,n),Mu(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=It.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:NA(u),isTargetByCursor:BA(u,o,r),getLinearBrushOtherExtent:RA(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return g.map(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=g.map(e,function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(dp),$A={type:"axisAreaSelect",event:"axisAreaSelected"};var GA={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function HA(t){t.registerComponentView(TT),t.registerComponentModel(AT),t.registerCoordinateSystem("parallel",HT),t.registerPreprocessor(kT),t.registerComponentModel(UT),t.registerComponentView(VA),WS(t,"parallel",UT,GA),function(t){t.registerAction($A,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),t.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})}(t)}var WA=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}}(),UA=function(t){function e(e){return t.call(this,e)||this}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new WA},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){ls(this)},e.prototype.downplay=function(){us(this)},e}(qo);var YA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge(function(e){var n=new UA,r=Ma(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,d,f,p,v,m,y=e.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),x=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),C=w.get("localY"),k=e.node2.getLayout(),O=e.node2.getModel(),M=O.get("localX"),E=O.get("localY"),T=e.getLayout();switch(n.shape.extent=Math.max(1,T.dy),n.shape.orient=h,"vertical"===h?(i=(null!=S?S*s:x.x)+T.sy,a=(null!=C?C*l:x.y)+x.dy,u=(null!=M?M*s:k.x)+T.ty,f=i,p=a*(1-_)+(d=null!=E?E*l:k.y)*_,v=u,m=a*_+d*(1-_)):(i=(null!=S?S*s:x.x)+x.dx,a=(null!=C?C*l:x.y)+T.sy,f=i*(1-_)+(u=null!=M?M*s:k.x)*_,p=a,v=i*_+u*(1-_),m=d=(null!=E?E*l:k.y)+T.ty),n.setShape({x1:i,y1:a,x2:u,y2:d,cpx1:f,cpy1:p,cpx2:v,cpy2:m}),n.useStyle(b.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var A=e.node1.getVisual("color"),I=e.node2.getVisual("color");Object(g.isString)(A)&&Object(g.isString)(I)&&(n.style.fill=new $l(0,0,+("horizontal"===h),+("vertical"===h),[{color:A,offset:0},{color:I,offset:1}]))}zu(n,Vu(y,"edgeLabel"),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:""+y.get("value")}),n.setTextConfig({position:"inside"});var D=y.getModel("emphasis");ks(n,y,"lineStyle",function(t){return t.getItemStyle()}),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=D.get("focus");xs(n,"adjacency"===P?e.getAdjacentDataIndices():P,D.get("blurScope"),D.get("disabled")),Ma(n).dataType="edge"}),i.eachNode(function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=new ca({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});zu(h,Vu(r),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),ks(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),Ma(h).dataType="node";var d=c.get("focus");xs(h,"adjacency"===d?e.getAdjacentDataIndices():d,c.get("blurScope"),c.get("disabled"))}),u.eachItemGraphicEl(function(e,i){u.getItemModel(i).get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var r=new ca({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return eu(r,{shape:{width:t.width+20}},e,n),r}(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(wp),XA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new hc(i[a],this,e));if(r&&n)return nT(r,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e),i=r.node1.getLayout();if(i){var o=i.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t})}).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value;return Vf("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:r(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return Vf("nameValue",{name:null!=l?l+"":null,value:s,noValue:r(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e).getLayout().value;r.value=i}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(cp);function qA(t,e){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=function(t,e){return gh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){g.each(t,function(t){var e=oI(t.outEdges,iI),n=oI(t.inEdges,iI),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)})}(l),function(t,e,n,r,i,o,a,s,l){(function(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var f=-1;for(;u.length;){for(var p=0;p<u.length;p++){var v=u[p],m=v.hostGraph.data.getRawDataItem(v.dataIndex),y=null!=m.depth&&m.depth>=0;y&&m.depth>f&&(f=m.depth),v.setLayout({depth:y?m.depth:h},!0),"vertical"===o?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var b=0;b<v.outEdges.length;b++){var _=v.outEdges[b],x=e.indexOf(_);s[x]=0;var w=_.node2,S=t.indexOf(w);0==--l[S]&&c.indexOf(w)<0&&c.push(w)}}++h,u=c,c=[]}for(var d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var C=f>h-1?f:h-1;a&&"left"!==a&&function(t,e,n,r){if("right"===e){for(var i=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}g.each(t,function(t){ZA(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)})}else"justify"===e&&function(t,e){g.each(t,function(t){ZA(t)||t.outEdges.length||t.setLayout({depth:e},!0)})}(t,r)}(t,a,0,C);!function(t,e,n){g.each(t,function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)})}(t,"vertical"===o?(i-n)/C:(r-n)/C,o)})(t,e,n,i,o,s,l),function(t,e,n,r,i,o,a){var s=function(t,e){var n=[],r="vertical"===e?"y":"x",i=si(t,function(t){return t.getLayout()[r]});return i.keys.sort(function(t,e){return t-e}),g.each(i.keys,function(t){n.push(i.buckets.get(t))}),n}(t,a);(function(t,e,n,r,i,o){var a=1/0;g.each(t,function(t){var e=t.length,s=0;g.each(t,function(t){s+=t.getLayout().value});var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<a&&(a=l)}),g.each(t,function(t){g.each(t,function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),g.each(e,function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)})})(s,e,n,r,i,a),KA(s,i,n,r,a);for(var l=1;o>0;o--)JA(s,l*=.99,a),KA(s,i,n,r,a),aI(s,l,a),KA(s,i,n,r,a)}(t,e,o,i,r,a,s),function(t,e){var n="vertical"===e?"x":"y";g.each(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),g.each(t,function(t){var e=0,n=0;g.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),g.each(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,r,o,a,0!==g.filter(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function ZA(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function KA(t,e,n,r,i){var o="vertical"===i?"x":"y";g.each(t,function(t){var a,s,l;t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",d=0;d<c;d++)(l=u-(s=t[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===i?r:n))>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function JA(t,e,n){g.each(t.slice().reverse(),function(t){g.each(t,function(t){if(t.outEdges.length){var r=oI(t.outEdges,QA,n)/oI(t.outEdges,iI);if(isNaN(r)){var i=t.outEdges.length;r=i?oI(t.outEdges,tI,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-rI(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-rI(t,n))*e;t.setLayout({y:a},!0)}}})})}function QA(t,e){return rI(t.node2,e)*t.getValue()}function tI(t,e){return rI(t.node2,e)}function eI(t,e){return rI(t.node1,e)*t.getValue()}function nI(t,e){return rI(t.node1,e)}function rI(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function iI(t){return t.getValue()}function oI(t,e,n){for(var r=0,i=t.length,o=-1;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function aI(t,e,n){g.each(t,function(t){g.each(t,function(t){if(t.inEdges.length){var r=oI(t.inEdges,eI,n)/oI(t.inEdges,iI);if(isNaN(r)){var i=t.inEdges.length;r=i?oI(t.inEdges,nI,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-rI(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-rI(t,n))*e;t.setLayout({y:a},!0)}}})})}function sI(t){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,r=e.edges;if(n.length){var i=1/0,o=-1/0;g.each(n,function(t){var e=t.getLayout().value;e<i&&(i=e),e>o&&(o=e)}),g.each(n,function(e){var n=new jM({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))})}r.length&&g.each(r,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}var lI=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[i,o],f=d[u].get("type"),p=d[1-u].get("type"),v=t.data;if(v&&r){var m=[];g.each(v,function(t,e){var n;g.isArray(t)?(n=t.slice(),t.unshift(e)):g.isArray(t.value)?((n=g.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)}),t.data=m}var y=this.defaultValueDimensions,b=[{name:c,type:Nm(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Nm(p),dimsDef:y.slice()}];return TS(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:g.curry(Bh,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),uI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(f.__extends)(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(cp);Object(g.mixin)(uI,lI,!0);var cI=uI,hI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add(function(t){if(r.hasValue(t)){var e=pI(r.getItemLayout(t),r,t,a,!0);r.setItemGraphicEl(t,e),i.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(au(n),gI(s,n,r,t)):n=pI(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(wp),dI=function(){return function(){}}(),fI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new dI},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(qo);function pI(t,e,n,r,i){var o=t.ends,a=new fI({shape:{points:i?function(t,e,n){return g.map(t,function(t){return(t=t.slice())[e]=n.initBaseline,t})}(o,r,t):o}});return gI(t,a,e,n,i),a}function gI(t,e,n,r,i){var o=n.hostModel;(0,a[i?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");ks(e,s),xs(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}var vI=hI,mI=g.each;function yI(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(t){var r=t.getBaseAxis(),i=g.indexOf(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)}),e}(t);mI(e,function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,r=t.seriesModels,i=r.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;mI(r,function(t){l=Math.max(l,t.getData().count())});var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}mI(r,function(t){var n=t.get("boxWidth");g.isArray(n)||(n=[n,n]),s.push([fr(n[0],e)||0,fr(n[1],e)||0])});var c=.8*e-2,h=c/i*.3,d=(c-h*(i-1))/i,f=d/2-c/2;mI(r,function(t,e){a.push(f),f+=h+d,o.push(Math.min(Math.max(d,s[e][0]),s[e][1]))})}(t),mI(e,function(e,n){!function(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var h=0;h<i.count();h++){var d=i.get(u,h),f=b(d,c[2],h),p=b(d,c[0],h),g=b(d,c[1],h),v=b(d,c[3],h),m=b(d,c[4],h),y=[];_(y,g,!1),_(y,v,!0),y.push(p,g,m,v),x(y,p),x(y,m),x(y,f),i.setItemLayout(h,{initBaseline:f[s],ends:y})}function b(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[a]+=e,l}function _(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function x(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}var bI={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Th){var n="";0,Rr(n)}var r=function(t,e){for(var n=[],r=[],i=(e=e||{}).boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=gr(t[a].slice()),l=Ar(s,.25),u=Ar(s,.5),c=Ar(s,.75),h=s[0],d=s[s.length-1],f=(null==i?1.5:i)*(c-l),p=o?h:Math.max(h,l-f),v=o?d:Math.min(d,c+f),m=e.itemNameFormatter,y=Object(g.isFunction)(m)?m({value:a}):Object(g.isString)(m)?m.replace("{value}",a+""):a+"";n.push([y,p,l,u,c,v]);for(var b=0;b<s.length;b++){var _=s[b];if(_<p||_>v){var x=[y,_];r.push(x)}}}return{boxData:n,outliers:r}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};var _I=["color","borderColor"],xI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Nu(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&kI(s,a))return;var l=CI(a,n,!0);eu(l,{shape:{points:a.ends}},t,n),OI(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&kI(s,c)?r.remove(u):(u?(tu(u,{shape:{points:c.ends}},t,a),au(u)):u=CI(c,a),OI(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),TI(t,this.group);var e=t.get("clip",!0)?Ow(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,r=e.getData(),i=r.getLayout("isSimpleBox");null!=(n=t.next());){var o=CI(r.getItemLayout(n),n);OI(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){TI(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(wp),wI=function(){return function(){}}(),SI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new wI},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(qo);function CI(t,e,n){var r=t.ends;return new SI({shape:{points:n?function(t,e){return g.map(t,function(t){return(t=t.slice())[1]=e.initBaseline,t})}(r,t):r},z2:100})}function kI(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function OI(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,ks(t,i)}var MI=function(){return function(){}}(),EI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return Object(f.__extends)(e,t),e.prototype.getDefaultShape=function(){return new MI},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(qo);function TI(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new EI({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new EI({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new EI({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),AI(1,a,t,i),AI(-1,s,t,i),AI(0,l,t,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function AI(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(_I);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var II=xI,DI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(f.__extends)(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(cp);Object(g.mixin)(DI,lI,!0);var PI=DI;function LI(t){t&&g.isArray(t.series)&&g.each(t.series,function(t){g.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}var jI=["itemStyle","borderColor"],NI=["itemStyle","borderColor0"],RI=["itemStyle","borderColorDoji"],BI=["itemStyle","color"],FI=["itemStyle","color0"],zI={seriesType:"candlestick",plan:fp(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?BI:FI)}function r(t,e){return e.get(0===t?RI:t>0?jI:NI)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var i;null!=(i=t.next());){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");Object(g.extend)(l,s)}}}}};function VI(t,e,n,r,i,o){return n>r?-1:n<r?1:o?0:e>0?t.get(i,e-1)<=r?1:-1:1}var $I={seriesType:"candlestick",plan:fp(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=function(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=fr(Object(g.retrieve2)(t.get("barMaxWidth"),i),i),a=fr(Object(g.retrieve2)(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?fr(s,i):Math.max(Math.min(i/2,o),a)}(t,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=Object(g.map)(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?function(n,r){var a,l,f=Ly(4*n.count),p=0,g=[],v=[],m=r.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(l=n.next());){var b=m.get(s,l),_=m.get(u,l),x=m.get(c,l),w=m.get(h,l),S=m.get(d,l);isNaN(b)||isNaN(w)||isNaN(S)?(f[p++]=NaN,p+=3):(f[p++]=VI(m,l,_,x,c,y),g[i]=b,g[o]=w,a=e.dataToPoint(g,null,v),f[p++]=a?a[0]:NaN,f[p++]=a?a[1]:NaN,g[o]=S,a=e.dataToPoint(g,null,v),f[p++]=a?a[1]:NaN)}r.setLayout("largePoints",f)}:function(t,n){var a,l=n.getStore();for(;null!=(a=t.next());){var f=l.get(s,a),p=l.get(u,a),g=l.get(c,a),v=l.get(h,a),m=l.get(d,a),y=Math.min(p,g),b=Math.max(p,g),_=M(y,f),x=M(b,f),w=M(v,f),S=M(m,f),C=[];E(C,x,0),E(C,_,1),C.push(A(S),A(x),A(w),A(_));var k=n.getItemModel(a),O=!!k.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:VI(l,a,p,g,c,O),initBaseline:p>g?x[o]:_[o],ends:C,brushRect:T(v,m,f)})}function M(t,n){var r=[];return r[i]=n,r[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function E(t,e,n){var o=e.slice(),a=e.slice();o[i]=wu(o[i]+r/2,1,!1),a[i]=wu(a[i]-r/2,1,!0),n?t.push(o,a):t.push(a,o)}function T(t,e,n){var a=M(t,n),s=M(e,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function A(t){return t[i]=wu(t[i],1),t}}}}};function GI(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var HI=function(t){function e(e,n){var r=t.call(this)||this,i=new uw(e,n),o=new tr;return r.add(i),r.add(o),r.updateData(e,n),r}return Object(f.__extends)(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=Eg(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}GI(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}GI(n,t)},e.prototype.highlight=function(){ls(this)},e.prototype.downplay=function(){us(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Tg(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse(function(t){t.setStyle("fill",u)});var h=Ag(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");i.rotation=(d||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get("showEffectOn"),f.rippleScale=o.get(["rippleEffect","scale"]),f.brushType=o.get(["rippleEffect","brushType"]),f.period=1e3*o.get(["rippleEffect","period"]),f.effectOffset=e/t.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=a,f.color=u,f.rippleEffectColor=o.get(["rippleEffect","color"]),f.rippleNumber=o.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===t&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,xs(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(tr),WI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(){this._symbolDraw=new fw(HI)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=Fw("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=xt(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(wp),UI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){return fy(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(cp);var YI=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return Object(f.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new jE(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");g.isArray(r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=Eg(i,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(a),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=g.retrieve(e.get("delay"),function(e){return e/t.count()*o/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=g.isFunction(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});r||a.done(function(){o.remove(t)}),a.start()}},e.prototype._getLineLength=function(t){return P(t.__p1,t.__cp1)+P(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Ce,l=ke;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*P(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*P(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(tr),XI=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return Object(f.__extends)(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new Ml({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel;tu(this.childAt(0),{shape:{points:t.getItemLayout(e)}},r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,xs(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(tr),qI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return Object(f.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new XI(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],a=e[i];r+=P(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=e);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>e);o++);o=Math.min(o-1,i-2)}var s=(e-r[o])/(r[o+1]-r[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(YI),ZI=function(){return function(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),KI=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(f.__extends)(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZI},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){if(To(u,c,d=r[s++],f=r[s++],o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++];var d=r[s++],f=r[s++];if(i>0){if(Io(u,c,(u+d)/2-(c-f)*i,(c+f)/2-(d-u)*i,d,f,o,t,e))return a}else if(To(u,c,d,f,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(l,r),o=Math.max(l,o)}t=this._rect=new It(n,r,i,o)}return t},e}(qo),JI=function(){function t(){this.group=new tr}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new KI({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Ma(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),QI={seriesType:"lines",plan:fp(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=i.start;c<i.end;c++){var f=t.getLineCoords(c,a);n&&(s[h++]=f);for(var p=0;p<f;p++)d=e.dataToPoint(a[p],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(f=t.getLineCoords(c,a),[]);if(n)for(var m=0;m<f;m++)v.push(e.dataToPoint(a[m]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(c,v)}}}}}},tD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&Ow(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateLineDraw(r,t).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=QI.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new JI:new FE(i?r?qI:XI:r?YI:jE),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(wp),eD="undefined"==typeof Uint32Array?Array:Uint32Array,nD="undefined"==typeof Float64Array?Array:Float64Array;function rD(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(g.map)(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Object(g.mergeAll)([e,t[0],t[1]])}))}var iD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(f.__extends)(e,t),e.prototype.init=function(e){e.data=e.data||[],rD(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(rD(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(g.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(g.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(g.isNumber)(t[0])){for(var n=t.length,r=new eD(n),i=new nD(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];r[a++]=o+e,r[a++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];i[o++]=h,i[o++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new ry(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0}),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().getItemModel(t),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),Vf("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(cp);function oD(t){return t instanceof Array||(t=[t,t]),t}var aD={seriesType:"lines",reset:function(t){var e=oD(t.get("symbol")),n=oD(t.get("symbolSize")),r=t.getData();return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(t,e){var n=t.getItemModel(e),r=oD(n.getShallow("symbol",!0)),i=oD(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};var sD=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ln.d.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var f=0;f<d;++f){var p=t[f],g=p[0],v=p[1],m=r(p[2]);h.globalAlpha=m,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;for(var y=h.getImageData(0,0,c.width,c.height),b=y.data,_=0,x=b.length,w=this.minOpacity,S=this.maxOpacity-w;_<x;){m=b[_+3]/256;var C=4*Math.floor(255*m);if(m>0){var k=o(m)?s:l;m>0&&(m=m*S+w),b[_++]=k[C],b[_++]=k[C+1],b[_++]=k[C+2],b[_++]=k[C+3]*m*256}else _+=4}return h.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ln.d.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}();function lD(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var uD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(r=e)})}),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):lD(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(lD(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Nu(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=Mw(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var f=this.group,p=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),b=Vu(t),_=t.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),C=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],k=n;k<r;k++){var O=void 0,M=p.getItemVisual(k,"style");if(c){var E=p.get(C[0],k),T=p.get(C[1],k);if(isNaN(p.get(C[2],k))||isNaN(E)||isNaN(T)||E<s[0]||E>s[1]||T<l[0]||T>l[1])continue;var A=u.dataToPoint([E,T]);O=new ca({shape:{x:A[0]-o/2,y:A[1]-a/2,width:o,height:a},style:M})}else{if(isNaN(p.get(C[1],k)))continue;O=new ca({z2:1,shape:u.dataToRect([p.get(C[0],k)]).contentShape,style:M})}if(p.hasItemOption){var I=p.getItemModel(k),D=I.getModel("emphasis");g=D.getModel("itemStyle").getItemStyle(),v=I.getModel(["blur","itemStyle"]).getItemStyle(),m=I.getModel(["select","itemStyle"]).getItemStyle(),y=I.get(["itemStyle","borderRadius"]),x=D.get("focus"),w=D.get("blurScope"),S=D.get("disabled"),b=Vu(I)}O.shape.r=y;var P=t.getRawValue(k),L="-";P&&null!=P[2]&&(L=P[2]+""),zu(O,b,{labelFetcher:t,labelDataIndex:k,defaultOpacity:M.opacity,defaultText:L}),O.ensureState("emphasis").style=g,O.ensureState("blur").style=v,O.ensureState("select").style=m,xs(O,x,w,S),O.incremental=i,i&&(O.states.emphasis.hoverLayer=!0),f.add(O),p.setItemGraphicEl(k,O),this._progressiveEls&&this._progressiveEls.push(O)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new sD;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,r.getWidth()),f=Math.min(l.height+l.y,r.getHeight()),p=d-c,v=f-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(m,function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i}),b=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(b,n.option.range):function(t,e,n){var r=t[1]-t[0],i=(e=g.map(e,function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}})).length,o=0;return function(t){var r;for(r=o;r<i;r++)if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(b,n.getPieceList(),n.option.selected);s.update(y,p,v,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var x=new na({style:{width:p,height:v,x:c,y:h,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(wp),cD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){return fy(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ad.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(cp);var hD=["itemStyle","borderWidth"],dD=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],fD=new Js;function pD(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(g.isArray(s)){var h=[gD(l,s[0])-u,gD(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?gD(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]);i.pxSign=o>0?1:-1}(n,o,i,r,h),function(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=t.getItemVisual(e,"symbolSize");c=g.isArray(p)?p.slice():null==p?["100%","100%"]:[p,p];c[d.index]=fr(c[d.index],f),c[h.index]=fr(c[h.index],r?f:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,i,o,0,h.boundingLength,h.pxSign,u,r,h),function(t,e,n,r,i){var o=t.get(hD)||0;o&&(fD.attr({scaleX:e[0],scaleY:e[1],rotation:n}),fD.updateTransform(),o/=fD.getLineScale(),o*=e[r.valueDim.index]);i.valueLineWidth=o||0}(n,h.symbolScale,l,r,h);var d=h.symbolSize;return function(t,e,n,r,i,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,v=Math.max(e[f.index]+s,0),m=v;if(r){var y=Math.abs(l),b=g.retrieve(t.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var x=fr(b,e[f.index]),w=Math.max(v+2*x,0),S=_?0:2*x,C=Pr(r),k=C?r:AD((y+S)/w),O=y-k*v;x=O/2/(_?k:Math.max(k-1,1)),w=v+2*x,S=_?0:2*x,C||"fixed"===r||(k=u?AD((Math.abs(u)+S)/w):0),m=k*w-S,h.repeatTimes=k,h.symbolMargin=x}var M=p*(m/2),E=h.pathPosition=[];E[d.index]=n[d.wh]/2,E[f.index]="start"===a?M:"end"===a?l-M:l/2,o&&(E[0]+=o[0],E[1]+=o[1]);var T=h.bundlePosition=[];T[d.index]=n[d.xy],T[f.index]=n[f.xy];var A=h.barRectShape=g.extend({},n);A[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(E[f.index]+M)),A[d.wh]=n[d.wh];var I=h.clipShape={};I[d.xy]=-n[d.xy],I[d.wh]=c.ecSize[d.wh],I[f.xy]=0,I[f.wh]=n[f.wh]}(n,d,i,o,0,Ag(n.get("symbolOffset"),d),s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function gD(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function vD(t){var e=t.symbolPatternSize,n=Eg(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function mD(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(MD(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?ED(t,null,p(c),n,r):ED(t,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(t)}),c++});c<u;c++){var d=vD(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var f=p(c);ED(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,r)}function p(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function yD(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?ED(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=vD(n),i.add(o),ED(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function bD(t,e,n){var r=g.extend({},e.barRectShape),i=t.__pictorialBarRect;i?ED(i,null,{shape:r},e,n):((i=t.__pictorialBarRect=new ca({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function _D(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=g.extend({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(i)tu(i,{shape:o},l,u);else{o[s.wh]=0,i=new ca({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[s.wh]=n.clipShape[s.wh],a[r?"updateProps":"initProps"](i,{shape:c},l,u)}}}function xD(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=wD,n.isAnimationEnabled=SD,n}function wD(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function SD(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function CD(t,e,n,r){var i=new tr,o=new tr;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?mD(i,e,n):yD(i,0,n),bD(i,n,r),_D(i,e,n,r),i.__pictorialShapeStr=OD(t,n),i.__pictorialSymbolMeta=n,i}function kD(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];MD(r,function(t){o.push(t)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),g.each(o,function(t){ru(t,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function OD(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function MD(t,e,n){g.each(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function ED(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&a[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function TD(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");MD(t,function(t){if(t instanceof na){var e=t.style;t.useStyle(g.extend({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,d&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});var f=e.valueDim.posDesc[+(n.boundingLength>0)];zu(t.__pictorialBarRect,Vu(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:aw(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),xs(t,c,h,o.get("disabled"))}function AD(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var ID=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:dD[+s],categoryDim:dD[1-+s]};return i.diff(o).add(function(t){if(i.hasValue(t)){var e=xD(i,t),n=pD(i,t,e,u),o=CD(i,u,n);i.setItemGraphicEl(t,o),r.add(o),TD(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=xD(i,t),s=pD(i,t,a,u),l=OD(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var r=n.animationModel,i=n.dataIndex;tu(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?mD(t,e,n,!0):yD(t,e,n,!0);bD(t,n,!0),_D(t,e,n,!0)}(n,u,s):n=CD(i,u,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),TD(n,u,s)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&kD(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl(function(e){kD(r,Ma(e).dataIndex,t,e)}):n.removeAll()},e.type="pictorialBar",e}(wp),DD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=pc(Hw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Hw);var PD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=[];function d(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,d=[],f=[],p=a[n].indices,g=0;g<p.length;g++){var v=r.getItemLayout(p[g]),m=v.x,y=v.y0,b=v.y;d.push(m,y),f.push(m,y+b),u=r.getItemVisual(p[g],"style")}var _=r.getItemLayout(p[0]),x=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=h[n]=new tr;c=new Sw({shape:{points:d,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var r=new ca({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return eu(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}(c.getBoundingRect(),t,function(){c.removeClipPath()}))}else{S=l[s];c=S.childAt(0),o.add(S),h[n]=S,tu(c,{shape:{points:d,stackedOnPoints:f}},t),au(c)}zu(c,Vu(t),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=_.x-x,C.y=_.y0+_.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),ks(c,t),xs(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}new Pm(this._layersSeries||[],a,c,c).add(Object(g.bind)(d,this,"add")).update(Object(g.bind)(d,this,"update")).remove(Object(g.bind)(d,this,"remove")).execute(),this._layersSeries=a,this._layers=h},e.type="themeRiver",e}(wp),LD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new AS(g.bind(this.getData,this),g.bind(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=[];si(t,function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]}).buckets.each(function(t,e){r.push({name:e,dataList:t})});for(var i=r.length,o=0;o<i;++o){for(var a=r[o].name,s=0;s<r[o].dataList.length;++s){var l=r[o].dataList[s][0]+"";n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,t[e]=[l,0,a],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",ri).models[0].get("type"),r=g.filter(t.data,function(t){return void 0!==t[2]}),i=this.fixData(r||[]),o=[],a=this.nameMap=g.createHashMap(),s=0,l=0;l<i.length;++l)o.push(i[l][2]),a.get(i[l][2])||(a.set(i[l][2],s),s++);var u=oy(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Nm(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new ry(u,this);return c.initData(i),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=[];return si(n,function(e){return t.get("name",e)}).buckets.each(function(e,n){e.sort(function(e,n){return t.get(i,e)-t.get(i,n)}),o.push({name:n,indices:e})}),o},e.prototype.getAxisTooltipData=function(t,e,n){g.isArray(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var f=i.get(t[0],o[l].indices[d]),p=Math.abs(f-e);p<=u&&(r=f,u=p,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData();return Vf("nameValue",{name:r.getName(t),value:r.get(r.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(cp);function jD(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=t.get("boundaryGap"),a=n.getAxis();(r.boundaryGap=o,"horizontal"===a.orient)?(o[0]=fr(o[0],i.height),o[1]=fr(o[1],i.height),ND(e,t,i.height-o[0]-o[1])):(o[0]=fr(o[0],i.width),o[1]=fr(o[1],i.width),ND(e,t,i.width-o[0]-o[1]));e.setLayout("layoutInfo",r)})}function ND(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=g.map(o,function(e){return g.map(e.indices,function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n})}),u=function(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,f=o[0].indices.length,p=0;p<f;++p){r=c[p]*h,t.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:r,y:l[0][p][1]*h});for(var v=1;v<d;++v)r+=l[v-1][p][1]*h,t.setItemLayout(o[v].indices[p],{layerIndex:v,x:l[v][p][0],y0:r,y:l[v][p][1]*h})}}var RD=2,BD=4,FD=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=RD,o.textConfig={inside:!0},Ma(o).seriesIndex=n.seriesIndex;var a=new Oa({z2:BD,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return Object(f.__extends)(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Ma(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=g.extend({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=ov(h,i));var d=Zw(a.getModel("itemStyle"),u,!0);g.extend(u,d),g.each(Na,function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=Zw(n,u);r&&(e.shape=r)}),t?(o.setShape(u),o.shape.r=l.r0,eu(o,{shape:{r:l.r}},n,e.dataIndex)):(tu(o,{shape:u},n),au(o)),o.useStyle(c),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus");xs(this,"ancestor"===p?e.getAncestorsIndices():"descendant"===p?e.getDescendantIndices():p,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,f=r.get("show")&&!(null!=d&&Math.abs(o)<d);function p(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!f,g.each(Ra,function(r){var d="normal"===r?n.getModel("label"):n.getModel([r,"label"]),f="normal"===r,v=f?c:c.ensureState(r),m=t.getFormattedLabel(h,r);f&&(m=m||e.node.name),v.style=$u(d,{},null,"normal"!==r,!0),m&&(v.style.text=m);var y=d.get("show");null==y||f||(v.ignore=!y);var b,_=p(d,"position"),x=f?u:u.states[r],w=x.style.fill;x.textConfig={outsideFill:"inherit"===d.get("color")?w:null,inside:"outside"!==_};var S=p(d,"distance")||0,C=p(d,"align");"outside"===_?(b=i.r+S,C=a>Math.PI/2?"right":"left"):C&&"center"!==C?"left"===C?(b=i.r0+S,a>Math.PI/2&&(C="right")):"right"===C&&(b=i.r-S,a>Math.PI/2&&(C="left")):(b=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,C="center"),v.style.align=C,v.style.verticalAlign=p(d,"verticalAlign")||"middle",v.x=b*s+i.cx,v.y=b*l+i.cy;var k=p(d,"rotate"),O=0;"radial"===k?(O=Po(-a))>Math.PI/2&&O<1.5*Math.PI&&(O+=Math.PI):"tangential"===k?(O=Math.PI/2-a)>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI):g.isNumber(k)&&(O=k*Math.PI/180),v.rotation=O}),c.dirtyStyle()},e}(ml),zD="sunburstRootToNode",VD="sunburstHighlight",$D="sunburstUnhighlight";var GD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode(function(t){c.push(t)});var h=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(t){return t.getId()}function c(s,c){var h=null==s?null:r[s],d=null==c?null:i[c];!function(r,i){u||!r||r.getValue()||(r=null);if(r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(i);else if(r){var s=new FD(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(h,d)}new Pm(i,r,s,s).add(c).update(c).remove(g.curry(c,null)).execute()}(c,h),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new FD(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",function(t){i._rootToNode(o.parentNode)})):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a)uh(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:zD,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(wp);var HD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Object(f.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;g.each(e.children,function(e){t(e);var r=e.value;g.isArray(r)&&(r=r[0]),n+=r});var r=e.value;g.isArray(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);g.isArray(e.value)?e.value[0]=r:e.value=r}(n);var r=this._levelModels=g.map(t.levels||[],function(t){return new hc(t,this,e)},this),i=UO.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t})});return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=ZO(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){nM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(cp),WD=Math.PI/180;function UD(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),r=t.get("radius");g.isArray(r)||(r=[0,r]),g.isArray(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=fr(e[0],i),l=fr(e[1],o),u=fr(r[0],a/2),c=fr(r[1],a/2),h=-t.get("startAngle")*WD,d=t.get("minAngle")*WD,f=t.getData().tree.root,p=t.getViewRoot(),v=p.depth,m=t.get("sort");null!=m&&function t(e,n){var r=e.children||[];e.children=function(t,e){if(g.isFunction(e)){var n=g.map(t,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}});return n.sort(function(t,n){return e(t.params,n.params)}),g.map(n,function(e){return t[e.index]})}var r="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n})}(r,n);r.length&&g.each(e.children,function(e){t(e,n)})}(p,m);var y=0;g.each(p.children,function(t){!isNaN(t.getValue())&&y++});var b=p.getValue(),_=Math.PI/(b||y)*2,x=p.depth>0,w=p.height-(x?-1:1),S=(c-u)/(w||1),C=t.get("clockwise"),k=t.get("stillShowZeroSum"),O=C?1:-1,M=function(e,n){if(e){var r=n;if(e!==f){var i=e.getValue(),o=0===b&&k?_:i*_;o<d&&(o=d),r=n+O*o;var c=e.depth-v-(x?-1:1),h=u+S*c,p=u+S*(c+1),m=t.getLevelModel(e);if(m){var y=m.get("r0",!0),w=m.get("r",!0),E=m.get("radius",!0);null!=E&&(y=E[0],w=E[1]),null!=y&&(h=fr(y,a/2)),null!=w&&(p=fr(w,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:C,cx:s,cy:l,r0:h,r:p})}if(e.children&&e.children.length){var T=0;g.each(e.children,function(t){T+=M(t,n+T)})}return r-n}};if(x){var E=u,T=u+S,A=2*Math.PI;f.setLayout({angle:A,startAngle:h,endAngle:h+A,clockwise:C,cx:s,cy:l,r0:E,r:T})}M(p,h)})}function YD(t){var e={};t.eachSeriesByType("sunburst",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(i){var o=i.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,r){for(var i=t;i&&i.depth>1;)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Object(g.isString)(o)&&(o=Object(Pe.lift)(o,(t.depth-1)/(r-1)*.5)),o}(i,t,r.root.height));var a=n.ensureUniqueItemVisual(i.dataIndex,"style");Object(g.extend)(a,o)})})}var XD={color:"fill",borderColor:"stroke"},qD={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ZD=Qr(),KD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return fy(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=ZD(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(cp);function JD(t,e){return e=e||[0,0],g.map(["x","y"],function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))},this)}function QD(t,e){return e=e||[0,0],g.map([0,1],function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function tP(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function eP(t,e){return e=e||[0,0],g.map(["Radius","Angle"],function(n,r){var i=this["get"+n+"Axis"](),o=e[r],a=t[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function nP(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Object(g.hasOwn)(t,"text")))}function rP(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},Object(g.hasOwn)(a,"text")&&(o.text=a.text),Object(g.hasOwn)(a,"rich")&&(o.rich=a.rich),Object(g.hasOwn)(a,"textFill")&&(o.fill=a.textFill),Object(g.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),Object(g.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(g.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),Object(g.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(g.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(g.hasOwn)(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(g.hasOwn)(a,"textPosition")&&(r.position=a.textPosition),Object(g.hasOwn)(a,"textOffset")&&(r.offset=a.textOffset),Object(g.hasOwn)(a,"textRotation")&&(r.rotation=a.textRotation),Object(g.hasOwn)(a,"textDistance")&&(r.distance=a.textDistance)}return iP(o,t),Object(g.each)(o.rich,function(t){iP(t,t)}),{textConfig:r,textContent:i}}function iP(t,e){e&&(e.font=e.textFont||e.font,Object(g.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(g.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),Object(g.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(g.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(g.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),Object(g.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),Object(g.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(g.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),Object(g.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(g.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(g.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(g.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(g.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(g.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(g.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function oP(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";aP(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Object(g.each)(e.rich,function(t){aP(t,t)}),r}function aP(t,e){e&&(Object(g.hasOwn)(e,"fill")&&(t.textFill=e.fill),Object(g.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),Object(g.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(g.hasOwn)(e,"font")&&(t.font=e.font),Object(g.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(g.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(g.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(g.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(g.hasOwn)(e,"align")&&(t.textAlign=e.align),Object(g.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(g.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(g.hasOwn)(e,"width")&&(t.textWidth=e.width),Object(g.hasOwn)(e,"height")&&(t.textHeight=e.height),Object(g.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(g.hasOwn)(e,"padding")&&(t.textPadding=e.padding),Object(g.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(g.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(g.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(g.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(g.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(g.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(g.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(g.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(g.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(g.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(g.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var sP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lP=Object(g.keys)(sP),uP=(Object(g.reduce)(An,function(t,e){return t[e]=1,t},{}),An.join(", "),["","style","shape","extra"]),cP=Qr();function hP(t,e,n,r,i){var o=t+"Animation",a=Jl(t,r,i)||{},s=cP(e).userDuring;return a.duration>0&&(a.during=s?Object(g.bind)(yP,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(g.extend)(a,n[o]),a}function dP(t,e,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=cP(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var r=0;r<lP.length;r++){var i=lP[r],o=sP[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var r=0;r<An.length;r++){var s=An[r];null!=e[s]&&(n[s]=e[s])}}(0,e,h),_P("shape",e,h),_P("extra",e,h),!o&&s&&(function(t,e,n){for(var r=e.transition,i=gP(r)?An:Vr(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}(t,e,c),bP("shape",t,e,c),bP("extra",t,e,c),function(t,e,n,r){if(!n)return;var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!gP(a)){var l=Vr(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];i[c]=h}}else if(t.getAnimationStyleProps&&(gP(s)||gP(a)||Object(g.indexOf)(s,"style")>=0)){var d=t.getAnimationStyleProps(),f=d?d.style:null;if(f){!i&&(i=r.style={});for(var p=Object(g.keys)(n),u=0;u<p.length;u++){var c=p[u];if(f[c]){var h=o[c];i[c]=h}}}}}}(t,e,u,c)),h.style=u,function(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}(t,h,a),function(t,e){Object(g.hasOwn)(e,"silent")&&(t.silent=e.silent),Object(g.hasOwn)(e,"ignore")&&(t.ignore=e.ignore),t instanceof Yi&&Object(g.hasOwn)(e,"invisible")&&(t.invisible=e.invisible);t instanceof qo&&Object(g.hasOwn)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var d={};Object(g.each)(uP,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),Object(g.extend)(t?d[t]:d,n.enterFrom))});var f=hP("enter",t,e,n,i);f.duration>0&&t.animateFrom(d,f)}else!function(t,e,n,r,i){if(i){var o=hP("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,i||0,n,c);fP(t,e),u?t.dirty():t.markRedraw()}function fP(t,e){for(var n=cP(t).leaveToProps,r=0;r<uP.length;r++){var i=uP[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=cP(t).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(g.extend)(i?n[i]:n,o.leaveTo))}}function pP(t,e,n,r){if(t){var i=t.parent,o=cP(t).leaveToProps;if(o){var a=hP("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function gP(t){return"all"===t}var vP={},mP={setTransform:function(t,e){return vP.el[t]=e,this},getTransform:function(t){return vP.el[t]},setShape:function(t,e){var n=vP.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=vP.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=vP.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=vP.el.style;if(e)return e[t]},setExtra:function(t,e){return(vP.el.extra||(vP.el.extra={}))[t]=e,this},getExtra:function(t){var e=vP.el.extra;if(e)return e[t]}};function yP(){var t=this.el;if(t){var e=cP(t).userDuring,n=this.userDuring;e===n?(vP.el=t,n(mP)):this.el=this.userDuring=null}}function bP(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),gP(l))Object(g.extend)(o,a);else for(var u=Vr(l),c=0;c<u.length;c++){var h=a[f=u[c]];o[f]=h}else if(gP(s)||Object(g.indexOf)(s,t)>=0){!o&&(o=r[t]={});var d=Object(g.keys)(a);for(c=0;c<d.length;c++){var f;h=a[f=d[c]];xP(i[f],h)&&(o[f]=h)}}}}}function _P(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=Object(g.keys)(r),a=0;a<o.length;a++){var s=o[a];i[s]=$e(r[s])}}function xP(t,e){return Object(g.isArrayLike)(t)?t!==e:null!=t&&isFinite(t)}var wP=Qr(),SP=["percent","easing","shape","style","extra"];function CP(t){t.stopAnimation("keyframe"),t.attr(wP(t))}function kP(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(g.isArray)(e))Object(g.each)(e,function(e){kP(t,e,n)});else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=Jl("enter",n,0);i=o&&o.duration}if(r&&i){var a=wP(t);Object(g.each)(uP,function(n){if(!n||t[n]){var o;r.sort(function(t,e){return t.percent-e.percent}),Object(g.each)(r,function(r){var s=t.animators,l=n?r[n]:r;if(l){var u=Object(g.keys)(l);if(n||(u=Object(g.filter)(u,function(t){return Object(g.indexOf)(SP,t)<0})),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;Object(g.each)(u,function(e){h[e]=((n?t[n]:t)||{})[e]}),o.whenWithKeys(i*r.percent,l,u,r.easing)}}}),o&&o.delay(e.delay||0).duration(i).start(e.easing)}})}}}var OP="emphasis",MP="normal",EP=[MP,OP,"blur","select"],TP={normal:["itemStyle"],emphasis:[OP,"itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},AP={normal:["label"],emphasis:[OP,"label"],blur:["blur","label"],select:["select","label"]},IP=["x","y"],DP="e\0\0",PP={normal:{},emphasis:{},blur:{},select:{}},LP={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:g.bind(JD,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:g.bind(QD,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(g.bind)(tP,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:g.bind(eP,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function jP(t){return t instanceof qo}function NP(t){return t instanceof Yi}var RP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=$P(t,o,e,n);i||a.removeAll(),o.diff(i).add(function(e){GP(n,null,e,s(e,r),t,a,o)}).remove(function(e){var n=i.getItemGraphicEl(e);n&&pP(n,ZD(n).option,t)}).update(function(e,l){var u=i.getItemGraphicEl(l);GP(n,u,e,s(e,r),t,a,o)}).execute();var l=t.get("clip",!0)?Ow(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=$P(e,o,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=GP(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){Nu(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},e.type="custom",e}(wp);function BP(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=QP(r);e=gu(o,null,i,r.layout||"center"),ZD(e).customPathData=o}else if("image"===n)e=new na({}),ZD(e).customImagePath=t.style.image;else if("text"===n)e=new Oa({});else if("group"===n)e=new tr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=pu(n);if(!a){var s="";0,Rr(s)}e=new a}return ZD(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function FP(t,e,n,r,i,o,a){CP(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=IP);var l=r&&r.style;if(l){if("text"===e.type){var u=l;Object(g.hasOwn)(u,"textFill")&&(u.fill=u.textFill),Object(g.hasOwn)(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=jP(e)?l.decal:null;t&&h&&(h.dirty=!0,c=ov(h,t)),l.__decalPattern=c}NP(e)&&(l&&(c=l.__decalPattern)&&(l.decal=c));dP(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),kP(e,r.keyframeAnimation,o)}function zP(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),os(o)}}function VP(t,e,n){var r=n===MP,i=r?e:YP(e,n),o=i?i.z2:null;null!=o&&((r?t:t.ensureState(n)).z2=o||0)}function $P(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):LP[o.type](o));for(var s,l,u=Object(g.defaults)({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,r){0;null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=b(r,MP).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(g.isString)(o)?o:"#000"},c=_(r,MP),h=$u(c,null,u,!1,!0);h.text=c.getShallow("show")?Object(g.retrieve2)(t.getFormattedLabel(r,MP),aw(e,r)):null;var d=Gu(c,u,!1);return w(n,l),l=oP(l,h,d),n&&x(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,r){0;null==r&&(r=s);var i=b(r,OP).getItemStyle(),o=_(r,OP),a=$u(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(g.retrieve3)(t.getFormattedLabel(r,OP),t.getFormattedLabel(r,MP),aw(e,r)):null;var l=Gu(o,null,!0);return w(n,i),i=oP(i,a,l),n&&x(i,n),i.legacy=!0,i},visual:function(t,n){if(null==n&&(n=s),Object(g.hasOwn)(XD,t)){var r=e.getItemVisual(n,"style");return r?r[XD[t]]:null}if(Object(g.hasOwn)(qD,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return function(t){var e=[],n=t.axis;if("category"===n.type){for(var r=n.getBandWidth(),i=0;i<t.count;i++)e.push(Object(g.defaults)({bandWidth:r,axisKey:"axis0",stackId:jy+i},t));var o=zy(e),a=[];for(i=0;i<t.count;i++){var s=o.axis0[jy+i];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(Object(g.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return Xu(t,n)}},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:function(t){var e={};return Object(g.each)(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(e[i]=e[i]||[])[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}(t.getData())},h={},d={},f={},p={},v=0;v<EP.length;v++){var m=EP[v];f[m]=t.getModel(TP[m]),p[m]=t.getModel(AP[m])}function y(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=y(t).getModel(TP[n])):y(t).getModel(TP[n]):f[n]}function _(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=y(t).getModel(AP[n])):y(t).getModel(AP[n]):p[n]}return function(t,n){return s=t,l=null,h={},d={},i&&i(Object(g.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function x(t,e){for(var n in e)Object(g.hasOwn)(e,n)&&(t[n]=e[n])}function w(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function GP(t,e,n,r,i,o,a){if(r){var s=HP(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&xs(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function HP(t,e,n,r,i,o){var a=-1,s=e;e&&WP(e,r,i)&&(a=Object(g.indexOf)(o.childrenRef(),e),e=null);var l,u,c=!e,h=e;h?h.clearStates():(h=BP(r),s&&(l=s,(u=h).copyTransform(l),NP(u)&&NP(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,jP(u)&&jP(l)&&u.setShape(l.shape)))),!1===r.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),PP.normal.cfg=PP.normal.conOpt=PP.emphasis.cfg=PP.emphasis.conOpt=PP.blur.cfg=PP.blur.conOpt=PP.select.cfg=PP.select.conOpt=null,PP.isLegacy=!1,function(t,e,n,r,i,o){if(t.isGroup)return;UP(n,null,o),UP(n,OP,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=BP(a),t.setTextContent(c)),FP(null,c,e,a,null,r,i);for(var h=a&&a.style,d=0;d<EP.length;d++){var f=EP[d];if(f!==MP){var p=o[f].conOpt;zP(f,c,0,XP(a,p,f),null)}}h?c.dirty():c.markRedraw()}}}(h,n,r,i,c,PP),function(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&WP(a,o,r)&&(a=null),a||(a=BP(o),t.setClipPath(a)),FP(null,a,e,o,null,r,i)}}(h,n,r,i,c),FP(t,h,n,r,PP,i,c),Object(g.hasOwn)(r,"info")&&(ZD(h).info=r.info);for(var d=0;d<EP.length;d++){var f=EP[d];if(f!==MP){var p=YP(r,f);zP(f,h,0,XP(r,p,f),PP)}}return function(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<EP.length;s++)VP(r,e,EP[s])}}(h,r,i),"group"===r.type&&function(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},void new Pm(c.oldChildren,c.newChildren,ZP,ZP,c).add(KP).update(KP).remove(JP).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++){var d=o[h],f=e.childAt(h);d?(null==d.ignore&&(d.ignore=!1),HP(t,f,n,d,i,e)):f.ignore=!0}for(var p=e.childCount()-1;p>=h;p--){var g=e.childAt(p);qP(e,g,i)}}(t,h,n,r,i),a>=0?o.replaceAt(h,a):o.add(h),h}function WP(t,e,n){var r,i=ZD(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&((r=a)&&(Object(g.hasOwn)(r,"pathData")||Object(g.hasOwn)(r,"d")))&&QP(a)!==i.customPathData||"image"===o&&Object(g.hasOwn)(s,"image")&&s.image!==i.customImagePath}function UP(t,e,n){var r=e?YP(t,e):t,i=e?XP(t,r,OP):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?YP(s,e):s:null;if(i&&(n.isLegacy||nP(i,o,!!a,!!l))){n.isLegacy=!0;var u=rP(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function YP(t,e){return e?t?t[e]:null:t}function XP(t,e,n){var r=e&&e.style;return null==r&&n===OP&&t&&(r=t.styleEmphasis),r}function qP(t,e,n){e&&pP(e,ZD(t).option,n)}function ZP(t,e){var n=t&&t.name;return null!=n?n:DP+e}function KP(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;HP(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function JP(t){var e=this.context,n=e.oldChildren[t];n&&pP(n,ZD(n).option,e.seriesModel)}function QP(t){return t&&(t.pathData||t.d)}var tL=Qr(),eL=g.clone,nL=g.bind;function rL(t,e,n,r){(function t(e,n){if(g.isObject(e)&&g.isObject(n)){var r=!0;return g.each(n,function(n,i){r=r&&t(e[i],n)}),!!r}return e===n})(tL(n).lastProp,r)||(tL(n).lastProp=r,e?tu(n,r,t):(n.stopAnimation(),n.attr(r)))}function iL(t,e){t[e.get(["label","show"])?"show":"hide"]()}function oL(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function aL(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)})}var sL=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=g.curry(rL,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new tr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);aL(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=vC(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=tL(t).pointerEl=new a[i.type](eL(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=tL(t).labelEl=new Oa(eL(e.label));t.add(i),iL(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=tL(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=tL(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),iL(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Au(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){lt(t.event)},onmousedown:nL(this._onHandleDragMove,this,0,0),drift:nL(this._onHandleDragMove,this),ondragend:nL(this._onHandleDragEnd,this)}),r.add(i)),aL(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");g.isArray(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Mp(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){rL(this._axisPointerModel,!e&&this._moveAnimation,this._handle,oL(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(oL(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(oL(r)),tL(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Ep(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function lL(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function uL(t,e,n,r,i){var o=cL(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=th(a.get("padding")||0),l=a.getFont(),u=Bn(o,l),c=i.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=i.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=i.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:$u(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function cL(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:bb(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};g.each(r,function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)}),g.isString(a)?o=a.replace("{value}",o):g.isFunction(a)&&(o=a(s))}return o}function hL(t,e,n){var r=[1,0,0,1,0,0];return yt(r,r,n.rotation),mt(r,r,n.position),Cu([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function dL(t,e,n,r,i,o){var a=fC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),uL(e,r,i,o,{position:hL(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function fL(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function pL(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function gL(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var vL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=mL(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=lL(r),h=yL[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}dL(e,t,KS(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=KS(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=hL(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=mL(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(sL);function mL(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var yL={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:fL([e,n[0]],[e,n[1]],bL(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:pL([e-r/2,n[0]],[r,i],bL(t))}}};function bL(t){return"x"===t.dim?0:1}var _L=vL,xL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Sh),wL=Qr(),SL=g.each;function CL(t,e,n){if(!p.a.node){var r=e.getZr();wL(r).records||(wL(r).records={}),function(t,e){if(wL(t).initialized)return;function n(n,r){t.on(n,function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);SL(wL(t).records,function(t){t&&r(t,n,i.dispatchAction)}),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)})}wL(t).initialized=!0,n("click",g.curry(OL,"click")),n("mousemove",g.curry(OL,"mousemove")),n("globalout",kL)}(r,e),(wL(r).records[t]||(wL(r).records[t]={})).handler=n}}function kL(t,e,n){t.handler("leave",null,n)}function OL(t,e,n,r){e.handler(t,n,r)}function ML(t,e){if(!p.a.node){var n=e.getZr();(wL(n).records||{})[t]&&(wL(n).records[t]=null)}}var EL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";CL("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){ML("axisPointer",e)},e.prototype.dispose=function(t,e){ML("axisPointer",e)},e.type="axisPointer",e}(dp);function TL(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Jr(o,t);if(null==a||a<0||g.isArray(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,f=o.mapDimension(h),p=[];p[d]=o.get(f,a),p[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(o.getValues(g.map(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var AL=Qr();function IL(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(g.bind)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){NL(i)&&(i=TL({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=NL(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||NL(i),d={},f={},p={list:[],map:{}},v={showPointer:Object(g.curry)(PL,f),showTooltip:Object(g.curry)(LL,p)};Object(g.each)(s.coordSysMap,function(t,e){var n=l||t.containPoint(i);Object(g.each)(s.coordSysAxesInfo[e],function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&DL(t,a,v,!1,d)}})});var m={};return Object(g.each)(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&Object(g.each)(n.axesInfo,function(e,r){var i=f[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,jL(e),jL(t)))),m[t.key]=o}})}),Object(g.each)(m,function(t,e){DL(c[e],t,v,!0,d)}),function(t,e,n){var r=n.axesInfo=[];Object(g.each)(e,function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})})}(f,c,d),function(t,e,n,r){if(NL(e)||!t.list.length)return void r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(p,i,t,a),function(t,e,n){var r=n.getZr(),i=AL(r).axisPointerLastHighlights||{},o=AL(r).axisPointerLastHighlights={};Object(g.each)(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(g.each)(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var a=[],s=[];Object(g.each)(i,function(t,e){!o[e]&&s.push(t)}),Object(g.each)(o,function(t,e){!i[e]&&a.push(t)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(c,0,n),d}}function DL(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(g.each)(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,i=u,o.length=0),Object(g.each)(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(g.extend)(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function PL(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function LL(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=yC(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function jL(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function NL(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function RL(t){_C.registerAxisPointerClass("CartesianAxisPointer",_L),t.registerComponentModel(xL),t.registerComponentView(EL),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(g.isArray)(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=pC(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},IL)}var BL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=r.get("type");if(u&&"none"!==u){var c=lL(r),h=FL[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}uL(t,n,r,i,function(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];yt(d,d,s),mt(d,d,[r.cx,r.cy]),l=Cu([a,-i],d);var f=e.getModel("axisLabel").get("rotate")||0,p=fC.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var v=r.cx,m=r.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,r.get(["label","margin"])))},e}(sL);var FL={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:fL(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:gL(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:gL(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},zL=BL,VL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Sh),$L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ri).models[0]},e.type="polarAxis",e}(Sh);g.mixin($L,Sb);var GL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="angleAxis",e}($L),HL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="radiusAxis",e}($L),WL=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Object(f.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(t_);WL.prototype.dataToRadius=t_.prototype.dataToCoord,WL.prototype.radiusToData=t_.prototype.coordToData;var UL=WL,YL=Qr(),XL=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Object(f.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),r=e.count();if(n[1]-n[0]<1)return 0;var i=n[0],o=this.dataToCoord(i+1)-this.dataToCoord(i),a=Math.abs(o),s=Bn(null==i?"":i+"",t.getFont(),"center","top"),l=Math.max(s.height,7)/a;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),c=YL(this.model),h=c.lastAutoInterval,d=c.lastTickCount;return null!=h&&null!=d&&Math.abs(h-u)<=1&&Math.abs(d-r)<=1&&h>u?u=h:(c.lastTickCount=r,c.lastAutoInterval=u),u},e}(t_);XL.prototype.dataToAngle=t_.prototype.dataToCoord,XL.prototype.angleToData=t_.prototype.coordToData;var qL=XL,ZL=["radius","angle"];function KL(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var JL=function(){function t(t){this.dimensions=ZL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new UL,this._angleAxis=new qL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return KL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return KL(e)===this?this.pointToData(n):null},t}();function QL(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();g.each(wb(e,"radius"),function(t){i.scale.unionExtentFromData(e,t)}),g.each(wb(e,"angle"),function(t){r.scale.unionExtentFromData(e,t)})}}),vb(r.scale,r.model),vb(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function tj(t,e){if(t.type=e.get("type"),t.scale=mb(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var ej={dimensions:ZL,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,r){var i=new JL(r+"");i.update=QL;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");tj(o,s),tj(a,l),function(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=fr(r[0],i),t.cy=fr(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:g.isArray(l)||(l=[0,l]);var u=[fr(l[0],s),fr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ri).models[0];0,t.coordinateSystem=e.coordinateSystem}}),n}},nj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function rj(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function ij(t){return t.getRadiusAxis().inverse?0:1}function oj(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var aj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=g.map(n.getViewLabels(),function(t){t=g.clone(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t});oj(s),oj(o),g.each(nj,function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||sj[e](this.group,t,r,o,a,i,s)},this)}},e.type="angleAxis",e}(_C),sj={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=ij(n),u=l?0:1;(a=0===o[u]?new Js({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new _l({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[ij(n)],u=g.map(r,function(t){return new Il({shape:rj(n,[l,l+s],t.coord)})});t.add(yu(u,{style:g.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[ij(n)],c=[],h=0;h<i.length;h++)for(var d=0;d<i[h].length;d++)c.push(new Il({shape:rj(n,[u,u+l],i[h][d].coord)}));t.add(yu(c,{style:g.defaults(s.getModel("lineStyle").getLineStyle(),g.defaults(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");g.each(a,function(r,i){var a=l,h=r.tickValue,d=o[ij(n)],f=n.coordToPoint([d+u,r.coord]),p=n.cx,v=n.cy,m=Math.abs(f[0]-p)/d<.3?"center":f[0]>p?"left":"right",y=Math.abs(f[1]-v)/d<.3?"middle":f[1]>v?"top":"bottom";if(s&&s[h]){var b=s[h];g.isObject(b)&&b.textStyle&&(a=new hc(b.textStyle,l,l.ecModel))}var _=new Oa({silent:fC.isLabelSilent(e),style:$u(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:m,verticalAlign:y})});if(t.add(_),c){var x=fC.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=r.rawLabel,Ma(_).eventData=x}},this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new Il({shape:rj(n,o,r[c].coord)}))}for(c=0;c<u.length;c++)t.add(yu(u[c],{style:g.defaults({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var u=0;u<i[l].length;u++)s.push(new Il({shape:rj(n,o,i[l][u].coord)}));t.add(yu(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-r[0].coord*c,d=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),p=e.get("clockwise"),v=1,m=r.length;v<=m;v++){var y=v===m?r[0].coord:r[v].coord,b=l++%s.length;u[b]=u[b]||[],u[b].push(new ml({shape:{cx:n.cx,cy:n.cy,r0:d,r:f,startAngle:h,endAngle:-y*c,clockwise:p},silent:!0})),h=-y*c}for(v=0;v<u.length;v++)t.add(yu(u[v],{style:g.defaults({fill:s[v%s.length]},a.getAreaStyle()),silent:!0}))}}},lj=aj,uj=["axisLine","axisTickLabel","axisName"],cj=["splitLine","splitArea","minorSplitLine"],hj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new tr;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),h=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,u),d=new fC(t,h);g.each(uj,d.add,d),r.add(d.getGroup()),Mu(n,r,t),g.each(cj,function(e){t.get([e,"show"])&&!i.scale.isBlank()&&dj[e](this.group,t,o,u,c,s,l)},this)}},e.type="radiusAxis",e}(_C),dj={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<o.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new Js({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[c].coord,0)}}))}for(c=0;c<u.length;c++)t.add(yu(u[c],{style:g.defaults({stroke:s[c%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Js({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(yu(l,{style:g.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new ml({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)t.add(yu(u[h],{style:g.defaults({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}};var fj=hj;function pj(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function gj(t,e){return e.dim+t.model.componentIndex}var vj=function(t,e,n){var r={},i=function(t){var e={};g.each(t,function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=gj(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=pj(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=fr(t.get("barWidth"),l),f=fr(t.get("barMaxWidth"),l),p=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),f&&(c[h].maxWidth=f),null!=p&&(u.gap=p),null!=g&&(u.categoryGap=g)});var n={};return g.each(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=fr(t.categoryGap,i),a=fr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),g.each(r,function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;g.each(r,function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)}),c&&(h-=c.width*a);var d=-h/2;g.each(r,function(t,r){n[e][r]=n[e][r]||{offset:d,width:t.width},d+=t.width*(1+a)})}),n}(g.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=gj(n,o),s=pj(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=t.coordinateSystem.cx,f=t.coordinateSystem.cy,p=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=e.mapDimension(h.dim),m=e.mapDimension(o.dim),y=hy(e,v),b="radius"!==o.dim||!t.get("roundCap",!0),_=h.dataToCoord(0),x=0,w=e.count();x<w;x++){var S=e.get(v,x),C=e.get(m,x),k=S>=0?"p":"n",O=_;y&&(r[s][C]||(r[s][C]={p:_,n:_}),O=r[s][C][k]);var M=void 0,E=void 0,T=void 0,A=void 0;if("radius"===h.dim){var I=h.dataToCoord(S)-_,D=o.dataToCoord(C);Math.abs(I)<p&&(I=(I<0?-1:1)*p),M=O,E=O+I,A=(T=D-u)-c,y&&(r[s][C][k]=E)}else{var P=h.dataToCoord(S,b)-_,L=o.dataToCoord(C);Math.abs(P)<g&&(P=(P<0?-1:1)*g),E=(M=L+u)+c,T=O,A=O+P,y&&(r[s][C][k]=A)}e.setItemLayout(x,{cx:d,cy:f,r0:M,r:E,startAngle:-T*Math.PI/180,endAngle:-A*Math.PI/180,clockwise:T>=A})}}})},mj={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},yj={splitNumber:5},bj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="polar",e}(dp);function _j(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),g.retrieve(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-c:c,i.z2=1,i}var xj=["axisLine","axisTickLabel","axisName"],wj=["splitArea","splitLine"],Sj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return Object(f.__extends)(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new tr;var s=_j(e),l=new fC(e,s);g.each(xj,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),g.each(wj,function(t){e.get([t,"show"])&&Cj[t](this,this.group,this._axisGroup,e)},this),Mu(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){SC(this)},e.type="singleAxis",e}(_C),Cj={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],d=0,f=i.getTicksCoords({tickModel:o}),p=[],v=[],m=0;m<f.length;++m){var y=i.toGlobalCoord(f[m].coord);c?(p[0]=y,p[1]=u.y,v[0]=y,v[1]=u.y+u.height):(p[0]=u.x,p[1]=y,v[0]=u.x+u.width,v[1]=y);var b=new Il({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});_u(b.shape,l);var _=d++%s.length;h[_]=h[_]||[],h[_].push(b)}var x=a.getLineStyle(["color"]);for(m=0;m<h.length;++m)e.add(yu(h[m],{style:g.defaults({stroke:s[m%s.length]},x),silent:!0}))}},splitArea:function(t,e,n,r){wC(t,n,r,r)}},kj=Sj,Oj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Sh);Object(g.mixin)(Oj,Sb.prototype);var Mj=Oj,Ej=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return Object(f.__extends)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(t_),Tj=["single"];function Aj(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var Ij=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=Tj,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=new Ej(r,mb(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();Object(g.each)(e.mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),vb(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(t,e){this._rect=gh({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return Aj(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Aj(e)===this?this.pointToData(n):null},t}();var Dj={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(r,i){var o=new Ij(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ri).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:Tj},Pj=["x","y"],Lj=["width","height"],jj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=Bj(a,1-Rj(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=lL(r),h=Nj[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}dL(e,t,_j(n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=_j(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=hL(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=Rj(i),s=Bj(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Bj(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(sL),Nj={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:fL([e,n[0]],[e,n[1]],Rj(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:pL([e-r/2,n[0]],[r,i],Rj(t))}}};function Rj(t){return t.isHorizontal()?0:1}function Bj(t,e){var n=t.getRect();return[n[Pj[e]],n[Pj[e]]+n[Lj[e]]]}var Fj=jj,zj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="single",e}(dp);function Vj(t,e){var n,r=t.cellSize;1===(n=g.isArray(r)?r:t.cellSize=[r,r]).length&&(n[1]=n[0]);var i=g.map([0,1],function(t){return function(t,e){return null!=t[dh[e][0]]||null!=t[dh[e][1]]&&null!=t[dh[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});yh(t,e,{type:"box",ignoreSize:i})}var $j=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(e,n,r){var i=bh(e);t.prototype.init.apply(this,arguments),Vj(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Vj(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Sh),Gj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new ca({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new Ml({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(g.isString)(t)&&t?(n=t,r=e,g.each(r,function(t,e){n=n.replace("{"+e+"}",i?Q(t):t)}),n):Object(g.isFunction)(t)?t(e):e.nameMap;var n,r,i},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=i.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),v=new Oa({z2:30,style:$u(i,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),r.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(g.isString)(o)||(o&&(e=wc(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,f=0;f<u[c].length-1;f++){var p=u[c][f].slice(),v=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];p[h]=(m[h]+u[0][f+1][h])/2}var y=i.get("formatter"),b=o[+v.m-1],_={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:b},x=this._formatterLabel(y,_),w=new Oa({z2:30,style:Object(g.extend)($u(i,{text:x}),this._monthTextPositionControl(p,d,n,s,a))});r.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||Object(g.isString)(l))l&&(e=wc(l)||e),l=e.get(["time","dayOfWeekShort"])||Object(g.map)(e.get(["time","dayOfWeekAbbr"]),function(t){return t[0]});var h=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=fr(u,Math.min(d[1],d[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var p,v=a.getNextNDay(h,f),m=a.dataToRect([v.time],!1).center;p=Math.abs((f+c)%7);var y=new Oa({z2:30,style:Object(g.extend)($u(o,{text:l[p]}),this._weekTextPositionControl(m,r,s,u,d))});i.add(y)}}},e.type="calendar",e}(dp);function Hj(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var Wj=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=Or(t)).getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,a=t.getDay();return{y:e+"",m:r,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)?this.getDateInfo(t):((t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t))},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];g.each([0,1],function(t){u(i,t)&&(o[r[t]]=i[t]*a[t])});var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=gh(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}g.each([0,1],function(t){u(i,t)||(i[t]=l[r[t]]/a[t])}),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){g.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=Hj(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=Hj(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(g.isArray(e)&&1===e.length&&(e=e[0]),g.isArray(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function Uj(t,e){var n;return g.each(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var Yj=["transition","enterFrom","leaveTo"],Xj=Yj.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qj(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?Yj:Xj,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var Zj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return Object(f.__extends)(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,o=[];this._flatten(r,o,null);var a=Ur(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];g.each(a,function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var r=g.extend({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(g.merge(i,r,!0),yh(i,r,{ignoreSize:!0}),_h(n,i),qj(n,i),qj(n,i,"shape"),qj(n,i,"style"),qj(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}(i,e,n),function(t,e){if(t&&(t.hv=e.hv=[Uj(e,["left","right"]),Uj(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[e],n))},this),n.elements=g.filter(i,function(t){return t&&delete t.$action,null!=t})},e.prototype._flatten=function(t,e,n){g.each(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Sh),Kj={path:null,compoundPath:null,group:tr,image:na,text:Oa},Jj=Qr(),Qj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(){this._elMap=g.createHashMap()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),o=t.get("zlevel");g.each(e,function(e){var a=qr(e.id,null),s=null!=a?n.get(a):null,l=qr(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,f=e.textConfig;if(h&&nP(h,c,!!f,!!d)){var p=rP(h,c,!0);!f&&p.textConfig&&(f=e.textConfig=p.textConfig),!d&&p.textContent&&(d=p.textContent)}var v=function(t){return t=g.extend({},t),g.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(hh),function(e){delete t[e]}),t}(e);var m=e.$action||"merge",y="merge"===m,b="replace"===m;if(y){var _=s;(M=!s)?_=eN(a,u,e.type,n):(_&&(Jj(_).isNew=!1),CP(_)),_&&(dP(_,v,t,{isInit:M}),rN(_,e,i,o))}else if(b){nN(s,e,n,t);var x=eN(a,u,e.type,n);x&&(dP(x,v,t,{isInit:!0}),rN(x,e,i,o))}else"remove"===m&&(fP(s,e),nN(s,e,n,t));var w=n.get(a);if(w&&d)if(y){var S=w.getTextContent();S?S.attr(d):w.setTextContent(new Oa(d))}else b&&w.setTextContent(new Oa(d));if(w){var C=e.clipPath;if(C){var k=C.type,O=void 0,M=!1;if(y){var E=w.getClipPath();O=(M=!E||Jj(E).type!==k)?tN(k):E}else b&&(M=!0,O=tN(k));w.setClipPath(O),dP(O,C,t,{isInit:M}),kP(O,C.keyframeAnimation,t)}var T=Jj(w);w.setTextConfig(f),T.option=e,function(t,e,n){var r=Ma(t).eventData;t.silent||t.ignore||r||(r=Ma(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});r&&(r.info=n.info)}(w,t,e),Lu({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),kP(w,e.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((p=null!=(f=qr((d=n[l]).id,null))?i.get(f):null)&&p.isGroup){var u=(v=p.parent)===r,c=Jj(p),h=Jj(v);c.width=fr(c.option.width,u?o:h.width)||0,c.height=fr(c.option.height,u?a:h.height)||0}}for(l=n.length-1;l>=0;l--){var d,f,p;if(p=null!=(f=qr((d=n[l]).id,null))?i.get(f):null){var v=p.parent,m=(h=Jj(v),{}),y=vh(p,d,v===r?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:d.hv,boundingMode:d.bounding},m);if(!Jj(p).isNew&&y){for(var b=d.transition,_={},x=0;x<s.length;x++){var w=s[x],S=m[w];b&&(gP(b)||g.indexOf(b,w)>=0)?_[w]=S:p[w]=S}tu(p,_,t,0)}else p.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){nN(n,Jj(n).option,e,t._lastGraphicModel)}),this._elMap=g.createHashMap()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(dp);function tN(t){var e=g.hasOwn(Kj,t)?Kj[t]:pu(t);var n=new e({});return Jj(n).type=t,n}function eN(t,e,n,r){var i=tN(n);return e.add(i),r.set(t,i),Jj(i).id=t,Jj(i).isNew=!0,i}function nN(t,e,n,r){t&&t.parent&&("group"===t.type&&t.traverse(function(t){nN(t,e,n,r)}),pP(t,e,r),n.removeKey(Jj(t).id))}function rN(t,e,n,r){t.isGroup||g.each([["cursor",Yi.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(n){var r=n[0];g.hasOwn(e,r)?t[r]=g.retrieve2(e[r],n[1]):null==t[r]&&(t[r]=n[1])}),g.each(g.keys(e),function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=g.isFunction(r)?r:null}}),g.hasOwn(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var iN=["x","y","radius","angle","single"],oN=["cartesian2d","polar","singleAxis"];function aN(t){return t+"Axis"}function sN(t,e){var n,r=Object(g.createHashMap)(),i=[],o=Object(g.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis(function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)}),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),t.eachTargetAxis(function(t,e){(r.get(t)||r.set(t,[]))[e]=!0})}return i}function lN(t){var e=t.ecModel,n={infoList:[],infoMap:Object(g.createHashMap)()};return t.eachTargetAxis(function(t,r){var i=e.getComponent(aN(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}}),n}var uN=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function cN(t){var e={};return Object(g.each)(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var hN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){var r=cN(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=cN(t);Object(g.merge)(this.option,t,!0),Object(g.merge)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(g.each)([["start","startValue"],["end","endValue"]],function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(g.createHashMap)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(g.each)(iN,function(n){var r=this.getReferringComponents(aN(n),ii);if(r.specified){e=!0;var i=new uN;Object(g.each)(r.models,function(t){i.add(t.componentIndex)}),t.set(n,i)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var i=e[0];if(i){var o=new uN;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",ri).models[0];a&&Object(g.each)(e,function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ri).models[0]&&o.add(t.componentIndex)})}}}r&&Object(g.each)(iN,function(e){if(r){var i=n.findComponents({mainType:aN(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new uN;o.add(i[0].componentIndex),t.set(e,o),r=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){!t&&(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(g.each)([["start","startValue"],["end","endValue"]],function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(aN(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,r){Object(g.each)(n.indexList,function(n){t.call(e,r,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(aN(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(g.each)([["start","startValue"],["end","endValue"]],function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(g.each)(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Sh),dN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="dataZoom.select",e}(hN),fN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(dp),pN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="dataZoom.select",e}(fN),gN=g.each,vN=gr;var mN=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(function(t){var e=t.get("coordinateSystem");return Object(g.indexOf)(oN,e)>=0}(e)){var n=aN(this._dimName),r=e.getReferringComponents(n,ri).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return g.clone(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];gN(["start","end"],function(l,u){var c=t[l],h=t[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),h=r.parse(dr(c,o,n))):(e=!0,c=dr(h=null==h?n[u]:r.parse(h),n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c}),vN(s),vN(a);var l=this._minMaxSpan;function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";DT(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=dr(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var r=[1/0,-1/0];gN(n,function(t){!function(t,e,n){e&&g.each(wb(e,n),function(n){var r=e.getApproximateExtent(n);r[0]<t[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])})}(r,t.getData(),e)});var i=t.getAxisModel(),o=fb(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&gN(r,function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=e.getStore(),s=g.map(r,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,i,l=0;l<r.length;l++){var u=a.get(s[l],t),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(i=!0),h&&(e=!0),d&&(n=!0)}return i&&e&&n})}else gN(r,function(n){if("empty"===i)t.setData(e=e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var r={};r[n]=o,e.selectRange(r)}});gN(r,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;gN(["min","max"],function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=dr(n[0]+o,n,[0,100],!0):null!=i&&(o=dr(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=yr(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}(),yN={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){var o=t.getComponent(aN(r),i);e(r,i,o,n)})})}e(function(t,e,n,r){n.__dzAxisProxy=null});var n=[];e(function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new mN(e,r,o,t),n.push(i.__dzAxisProxy))});var r=Object(g.createHashMap)();return Object(g.each)(n,function(t){Object(g.each)(t.getTargetSeriesModels(),function(t){r.set(t.uid,t)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,r){t.getAxisProxy(n,r).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};var bN=!1;function _N(t){bN||(bN=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,yN),function(t){t.registerAction("dataZoom",function(t,e){var n=sN(e,t);Object(g.each)(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function xN(t){t.registerComponentModel(dN),t.registerComponentView(pN),_N(t)}var wN=function(){return function(){}}(),SN={};function CN(t,e){SN[t]=e}function kN(t){return SN[t]}var ON=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;g.each(this.option.feature,function(t,n){var r=kN(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),g.merge(t,r.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Sh);function MN(t,e){var n=th(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new ca({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}var EN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];g.each(s,function(t,e){u.push(e)}),new Pm(this._featureNames||[],u).add(c).update(c).remove(g.curry(c,null)).execute(),this._featureNames=u,function(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=gh(r,o,i);ph(e.get("orient"),t,e.get("itemGap"),a.width,a.height),vh(t,r,o,i)}(i,t,n),i.add(MN(i.getBoundingRect(),t)),a||i.eachChild(function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!g.isFunction(l)&&e){var u=l.style||(l.style={}),c=Bn(e,Oa.makeFont(u)),h=t.x+i.x,d=!1;t.y+i.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var f=d?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}})}function c(c,h){var d,f=u[c],p=u[h],v=s[f],m=new hc(v,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===f&&(v.title=r.newTitle),f&&!p){if(function(t){return 0===t.indexOf("my")}(f))d={onclick:m.option.onclick,featureName:f};else{var y=kN(f);if(!y)return;d=new y}l[f]=d}else if(!(d=l[p]))return;d.uid=fc("toolbox-feature"),d.model=m,d.ecModel=e,d.api=n;var b=d instanceof wN;f||!p?!m.get("show")||b&&d.unusable?b&&d.remove&&d.remove(e,n):(!function(r,s,l){var u,c,h=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),f=s instanceof wN&&s.getIcons?s.getIcons():r.get("icon"),p=r.get("title")||{};g.isString(f)?(u={})[l]=f:u=f;g.isString(p)?(c={})[l]=p:c=p;var v=r.iconPaths={};g.each(u,function(l,u){var f=Au(l,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(h.getItemStyle());var p=f.ensureState("emphasis");p.style=d.getItemStyle();var m=new Oa({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});f.setTextContent(m),Lu({el:f,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),f.__title=c[u],f.on("mouseover",function(){var e=d.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";m.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),f.setTextConfig({position:d.get("textPosition")||r}),m.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),m.hide()}),("emphasis"===r.get(["iconStatus",u])?ls:us)(f),i.add(f),f.on("click",g.bind(s.onclick,s,e,n,u)),v[u]=f})}(m,d,f),m.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?ls:us)(r[t])},d instanceof wN&&d.render&&d.render(m,e,n,r)):b&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,r){g.each(this._features,function(t){t instanceof wN&&t.updateView&&t.updateView(t.model,e,n,r)})},e.prototype.remove=function(t,e){g.each(this._features,function(n){n instanceof wN&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){g.each(this._features,function(n){n instanceof wN&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(dp),TN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=p.a.browser;if(Object(g.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),h=c[0].indexOf("base64")>-1,d=i?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var f=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var v=d.length,m=new Uint8Array(v);v--;)m[v]=d.charCodeAt(v);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,f)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),_.focus(),x.execCommand("SaveAs",!0,f),document.body.removeChild(b)}}else{var w=n.get("lang"),S='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',C=window.open();C.document.write(S),C.document.title=r}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(wN),AN=[["line","bar"],["stack"]],IN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return g.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(DN[n]){var o,a={series:[]};g.each(AN,function(t){g.indexOf(t,n)>=0&&g.each(t,function(t){r.setIconStatus(t,"normal")})}),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,i=t.id,o=DN[n](e,i,t,r);o&&(g.defaults(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,ri).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=g.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(wN),DN={line:function(t,e,n,r){if("bar"===t)return g.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return g.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i="__ec_magicType_stack__"===n.get("stack");if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),g.merge({id:e,stack:i?"":"__ec_magicType_stack__"},r.get(["option","stack"])||{},!0)}};gm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var PN=IN,LN=new Array(60).join("-"),jN="\t";function NN(t){var e,n,r,i=function(t){var e={},n=[],r=[];return t.eachRawSeries(function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}(t);return{value:g.filter([(n=i.seriesGroupByCategoryAxis,r=[],g.each(n,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(g.map(t.series,function(t){return t.name})),a=[n.model.getCategories()];g.each(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var s=[o.join(jN)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(jN))}r.push(s.join("\n"))}),r.join("\n\n"+LN+"\n\n")),(e=i.other,g.map(e,function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+jN:"")+r.join(jN))}),n.join("\n")}).join("\n\n"+LN+"\n\n"))],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+LN+"\n\n"),meta:i.meta}}function RN(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var BN=new RegExp("["+jN+"]+","g");function FN(t,e){var n=t.split(new RegExp("\n*"+LN+"\n*","g")),r={series:[]};return g.each(n,function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(jN)>=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),n=RN(e.shift()).split(BN),r=[],i=g.map(n,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=RN(e[o]).split(BN);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}(t),o=e[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(t){for(var e=t.split(/\n+/g),n=RN(e.shift()),r=[],i=0;i<e.length;i++){var o=RN(e[i]);if(o){var a=o.split(BN),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(t);r.series.push(i)}}),r}var zN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=NN(t);if(g.isFunction(u)){var d=u(e.getOption());g.isString(d)?s.innerHTML=d:g.isDom(d)&&s.appendChild(d)}else{l.readOnly=r.get("readOnly");var f=l.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=r.get("textColor"),f.borderColor=r.get("textareaBorderColor"),f.backgroundColor=r.get("textareaColor"),l.value=h.value,s.appendChild(l)}var p=h.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),b=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var _=this;function x(){n.removeChild(i),_._dom=null}st(y,"click",x),st(b,"click",function(){if(null==c&&null!=u||null!=c&&null==u)x();else{var t;try{t=g.isFunction(c)?c(s,e.getOption()):FN(l.value,p)}catch(t){throw x(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),x()}}),y.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=y.style.cssText=m,!r.get("readOnly")&&v.appendChild(b),v.appendChild(y),i.appendChild(o),i.appendChild(s),i.appendChild(v),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(wN);gm({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];g.each(t.newOption.series,function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:function(t,e){return g.map(t,function(t,n){var r=e&&e[n];if(g.isObject(r)&&!g.isArray(r)){g.isObject(t)&&!g.isArray(t)||(t={value:t});var i=null!=r.name&&null==t.name;return t=g.defaults(t,r),i&&delete t.name,t}return t})}(t.data,i)})}else n.push(g.extend({type:"scatter"},t))}),e.mergeOption(g.defaults({series:n},t.newOption))});var VN=zN,$N=g.each,GN=Qr();function HN(t){var e=GN(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var WN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.onclick=function(t,e){!function(t){GN(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(wN);gm({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var UN=WN,YN=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],XN=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=ZN(e,t);Object(g.each)(KN,function(t,e){(!n||!n.include||Object(g.indexOf)(n.include,e)>=0)&&t(i,r._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=tR[t.brushType](0,n,e);t.__rangeOffset={offset:nR[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){Object(g.each)(t,function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Object(g.each)(r.coordSyses,function(r){var i=tR[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)})},this)},t.prototype.setInputRanges=function(t,e){Object(g.each)(t,function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=tR[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?nR[t.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=iR(n),o=iR(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},t.prototype.makePanelOpts=function(t,e){return Object(g.map)(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:NA(r),isTargetByCursor:BA(r,t,n.coordSysModel),getLinearBrushOtherExtent:RA(r)}})},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&Object(g.indexOf)(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=ZN(e,t),i=0;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<JN.length;s++)if(JN[s](r,o))return o}return!0},t}();function qN(t){return t[0]>t[1]&&t.reverse(),t}function ZN(t,e){return ei(t,e,{includeMainTypes:YN})}var KN={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Object(g.createHashMap)(),a={},s={};(n||r||i)&&(Object(g.each)(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),Object(g.each)(r,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),Object(g.each)(i,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var i=t.coordinateSystem,o=[];Object(g.each)(i.getCartesians(),function(t,e){(Object(g.indexOf)(n,t.getAxis("x").model)>=0||Object(g.indexOf)(r,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:QN.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){Object(g.each)(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:QN.geo})})}},JN=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],QN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Su(t)),e}},tR={lineX:Object(g.curry)(eR,0),lineY:Object(g.curry)(eR,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[qN([i[0],o[0]]),qN([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(g.map)(n,function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}),xyMinMax:i}}};function eR(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=qN(Object(g.map)([0,1],function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var nR={lineX:Object(g.curry)(rR,0),lineY:Object(g.curry)(rR,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(g.map)(t,function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]})}};function rR(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function iR(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var oR,aR,sR=XN,lR=g.each,uR=zr+"toolbox-dataZoom_",cR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new jA(n.getZr()),this._brushController.on("brush",g.bind(this._onBrush,this)).mount()),function(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new sR(dR(t),e,{include:["grid"]}).makePanelOpts(i,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",function(t){return HN(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){hR[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new sR(dR(this.model),r,{include:["grid"]}).matchOutputRanges(e,r,function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}}),function(t,e){var n=HN(t);$N(e,function(e,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}}),n.push(e)}(r,n),this._dispatchZoomAction(n)}function i(t,e,i){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(r=n)}),r}(t,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=DT(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];lR(t,function(t,n){e.push(g.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(wN),hR={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=HN(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return $N(n,function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}}),r}(this.ecModel))}};function dR(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}oR="dataZoom",aR=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=ei(t,dR(r));return lR(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),lR(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),i}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:uR+e+o};a[n]=o,i.push(a)}},Object(g.assert)(null==Gh.get(oR)&&aR),Gh.set(oR,aR);var fR=cR;var pR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Sh);function gR(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function vR(t){if(p.a.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var mR=vR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function yR(t,e){if(!t)return e;e=Qc(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var bR=yR(vR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),_R=yR(mR,"transform"),xR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(p.a.transform3dSupported?"will-change:transform;":"");function wR(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!p.a.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=p.a.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+_R+":"+a+";":[["top",0],["left",0],[mR,a]]}function SR(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Zf(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(function(t,e){var n=" "+t/2+"s cubic-bezier(0.23,1,0.32,1)",r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s cubic-bezier(0.23,1,0.32,1)",r+=p.a.transformSupported?","+_R+n:",left"+n+",top"+n),bR+":"+r}(i,n)),o&&r.push("background-color:"+o),Object(g.each)(["width","color","radius"],function(e){var n="border-"+e,i=Qc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))}),r.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(g.each)(["decoration","align"],function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)}),e.join(";")}(c)),null!=h&&r.push("padding:"+th(h).join("px ")+"px"),r.join(";")+";"}function CR(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){q(X,e,r,i,!0)&&q(t,n,X[0],X[1])}(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var kR=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,p.a.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;CR(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;at(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e,n,r,i=this._container,o=(n="position",(r=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?r[n]:r:null),a=i.style;"absolute"!==a.position&&"absolute"!==o&&(a.position="relative");var s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=xR+SR(t,!this._firstShow,this._longHide)+wR(i[0],i[1],!0)+"border-color:"+lh(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(g.isString)(i)&&"item"===n.get("trigger")&&!gR(n)&&(a=function(t,e,n){if(!Object(g.isString)(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=lh(e);var o,a,s=o="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=_R+":";Object(g.indexOf)(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+i,f=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),Object(g.isString)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(g.isArray)(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(g.isDom)(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(CR(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=wR(n[0],n[1]);Object(g.each)(i,function(t){r[t[0]]=t[1]})}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",p.a.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(g.bind)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();function OR(t){return Math.max(0,t)}function MR(t){var e=OR(t.shadowBlur||0),n=OR(t.shadowOffsetX||0),r=OR(t.shadowOffsetY||0);return{left:OR(e-n),right:OR(e+n),top:OR(e-r),bottom:OR(e+r)}}function ER(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var TR=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),ER(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;g.isObject(t)&&Rr(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Oa({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Zf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),g.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),g.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=MR(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;ER(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=OR(i.borderWidth||0),a=MR(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(g.bind(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),AR=new ca({shape:{x:-1,y:-1,width:2,height:2}});function IR(t,e,n){var r,i=e.ecModel;n?(r=new hc(n,i,i),r=new hc(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof hc&&(a=a.get("tooltip",!0)),Object(g.isString)(a)&&(a={formatter:a}),a&&(r=new hc(a,r,i)))}return r}function DR(t,e){return t.dispatchAction||Object(g.bind)(e.dispatchAction,e)}function PR(t){return"center"===t||"middle"===t}var LR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){if(!p.a.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?p.a.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new TR(e):new kR(e.getDom(),e,{appendToBody:r.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!p.a.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Mp(this,"_updatePosition",50,"fixRate"):Ep(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");CL("itemTooltip",this._api,Object(g.bind)(function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!p.a.node&&n.getDom()){var i=DR(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=ni(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=oi(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse(function(e){var n=Ma(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=AR;l.x=r.x,l.y=r.y,l.update(),Ma(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=TL(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(DR(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s)if("axis"===IR([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;this._lastDataByCoordSys=null,gg(n,function(t){return null!=Ma(t).dataIndex?(i=t,!0):null!=Ma(t).tooltipConfig?(o=t,!0):void 0},!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(g.bind)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=IR([e.tooltipOption],r),a=this._renderMode,s=[],l=Vf("section",{blocks:[],noHeader:!0}),u=[],c=new Kf;Object(g.each)(t,function(t){Object(g.each)(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=cL(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Vf("section",{header:o,noHeader:!Object(g.trim)(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(g.each)(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=bb(e.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",lh(p.color),a);var v=rf(d.formatTooltip(f,!0,null)),m=v.frag;if(m){var y=IR([d],r).get("valueFormatter");h.blocks.push(y?Object(g.extend)({valueFormatter:y},m):m)}v.text&&u.push(v.text),s.push(p)}})}})}),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),f=Uf(l,c,a,d,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var p="richText"===a?"\n\n":"<br/>",v=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",i[0],i[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Ma(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=IR([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var v=s.getDataParams(l,u),m=new Kf;v.marker=m.makeTooltipMarker("item",lh(v.color),h);var y=rf(s.formatTooltip(l,!1,u)),b=f.get("order"),_=f.get("valueFormatter"),x=y.frag,w=x?Uf(_?Object(g.extend)({valueFormatter:_},x):x,m,h,b,r.get("useUTC"),f.get("textStyle")):y.text,S="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,w,v,S,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Ma(e),i=r.tooltipConfig.option||{};if(Object(g.isString)(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=t.positionDefault,l=IR(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new Kf;this._showOrMove(l,function(){var n=Object(g.clone)(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(Object(g.isString)(c)){var f=t.ecModel.get("useUTC"),p=Object(g.isArray)(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=Lc(p.axisValue,h,f)),h=ih(h,n,!0)}else if(Object(g.isFunction)(c)){var v=Object(g.bind)(function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))},this);this._ticket=r,h=c(n,r,v)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(g.isArray)(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(g.isArray)(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Object(g.isFunction)(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),Object(g.isArray)(e))n=fr(e[0],s),r=fr(e[1],l);else if(Object(g.isObject)(e)){var f=e;f.width=u[0],f.height=u[1];var p=gh(f,{width:s,height:l});n=p.x,r=p.y,c=null,h=null}else if(Object(g.isString)(e)&&a){var v=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=v[0],r=v[1]}else{v=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>r?t-=l+o:t+=o);null!=a&&(e+u+a>i?e-=u+a:e+=a);return[t,e]}(n,r,i,s,l,c?null:20,h?null:20);n=v[0],r=v[1]}if(c&&(n-=PR(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=PR(h)?u[1]/2:"bottom"===h?u[1]:0),gR(t)){v=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,i,s,l);n=v[0],r=v[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(g.each)(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&Object(g.each)(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Object(g.each)(a,function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),r&&Object(g.each)(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!p.a.node&&e.getDom()&&(Ep(this,"_updatePosition"),this._tooltipContent.dispose(),ML("itemTooltip",e))},e.type="tooltip",e}(dp);var jR=["rect","polygon","keep","clear"];function NR(t,e){var n=Vr(t?t.brush:[]);if(n.length){var r=[];g.each(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))});var i=t&&t.toolbox;g.isArray(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o,a,s=i.feature||(i.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,r),o=u,a={},g.each(o,function(t){a[t]=1}),o.length=0,g.each(a,function(t,e){o.push(e)}),e&&!u.length&&u.push.apply(u,jR)}}var RR=g.each;function BR(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function FR(t,e,n){var r={};return RR(e,function(e){var i,o=r[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);RR(t[e],function(t,r){if(jM.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new jM(i),"opacity"===r&&((i=g.clone(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new jM(i))}})}),r}function zR(t,e,n){var r;g.each(n,function(t){e.hasOwnProperty(t)&&BR(e[t])&&(r=!0)}),r&&g.each(n,function(n){e.hasOwnProperty(n)&&BR(e[n])?t[n]=g.clone(e[n]):delete t[n]})}var VR={lineX:$R(0),lineY:$R(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Ib(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(Ib(r,i,o)||Ib(r,i+a,o)||Ib(r,i,o+s)||Ib(r,i+a,o+s)||It.create(t).contain(l[0],l[1])||Iu(i,o,i+a,o,r)||Iu(i,o,i,o+s,r)||Iu(i+a,o,i+a,o+s,r)||Iu(i,o+s,i+a,o+s,r))||void 0}}};function $R(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return GR(e[t],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),GR(s[0],a)||GR(s[1],a)||GR(a[0],s)||GR(a[1],s)}}}}function GR(t,e){return e[0]<=t&&t<=e[1]}var HR=["inBrush","outOfBrush"],WR="__ecBrushSelect",UR="__ecInBrushSelectEvent";function YR(t){t.eachComponent({mainType:"brush"},function(e){(e.brushTargetManager=new sR(e.option,t)).setInputRanges(e.areas,t)})}function XR(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),YR(t),t.eachComponent({mainType:"brush"},function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:g.clone(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var f=g.map(e.areas,function(t){var e=KR[t.brushType],n=g.defaults({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(r){return VR[e].point(r,n,t)},rect:function(r){return VR[e].rect(r,n,t)}};return n}(n),n}),p=FR(e.option,HR,function(t){t.mappingMethod="fixed"});function v(t){return"all"===l||!!u[t]}function m(t){return!!t.length}g.isArray(l)&&g.each(l,function(t){u[t]=1}),t.eachSeries(function(n,r){var i=h[r]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),v(e)&&n.eachActiveState(t.getData(),function(t,e){"active"===t&&(c[e]=1)})}(n,r):function(n,r,i){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(g.isArray(n)?g.indexOf(n,e)<0:e!==n)}(e,r))return;if(g.each(f,function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),d=d||m(i)}),v(r)&&m(i)){var o=n.getData();o.each(function(t){ZR(n,i,o,t)&&(c[t]=1)})}}(n,r,i)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=h[e],i=t.getData(),o=v(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return ZR(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(v(e)?d:m(r))&&function(t,e,n,r,i,o){var a,s={};function l(t){return cg(n,a,t)}function u(t,e){dg(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=r.call(i,t),f=e[d],p=s[d],g=0,v=p.length;g<v;g++){var m=p[g];f[m]&&f[m].applyVisual(t,l,u)}}g.each(t,function(t){var n=jM.prepareVisualTypes(e[t]);s[t]=n}),null==o?n.each(c):n.each([o],c)}(HR,p,i,o)})}),function(t,e,n,r,i){if(!i)return;var o=t.getZr();if(o[UR])return;o[WR]||(o[WR]=qR);Mp(o,WR,n,e)(t,r)}(e,r,i,o,n)}function qR(t,e){if(!t.isDisposed()){var n=t.getZr();n[UR]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[UR]=!1}}function ZR(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}var KR={rect:function(t){return JR(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&JR(e)}};function JR(t){return new It(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var QR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new jA(e.getZr())).on("brush",g.bind(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){YR(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:g.clone(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:g.clone(n),$from:e})},e.type="brush",e}(dp);function tB(t,e){return g.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new hc(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var eB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Object(f.__extends)(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&zR(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=g.map(t,function(t){return tB(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=tB(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Sh),nB=["rect","polygon","lineX","lineY","keep","clear"],rB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=r,this._brushMode=i,g.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return g.each(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){return{show:!0,type:nB.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(wN);var iB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(f.__extends)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Sh),oB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=g.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Oa({style:$u(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Oa({style:$u(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){uh(d,"_"+t.get("target"))}),f&&h.on("click",function(){uh(f,"_"+t.get("subtarget"))}),Ma(l).eventData=Ma(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var v=r.getBoundingRect(),m=t.getBoxLayoutParams();m.width=v.width,m.height=v.height;var y=gh(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var b={align:a,verticalAlign:s};l.setStyle(b),h.setStyle(b),v=r.getBoundingRect();var _=y.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new ca({shape:{x:v.x-_[3],y:v.y-_[0],width:v.width+_[1]+_[3],height:v.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}},e.type="title",e}(dp);var aB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(g.each)(n,function(e,n){var r,o=qr(Hr(e),"");Object(g.isObject)(e)?(r=Object(g.clone)(e)).value=n:r=n,t.push(r),i.push(o)})):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new ry([{name:"value",type:o}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Sh),sB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="timeline.slider",e.defaultOption=pc(aB.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(aB);Object(g.mixin)(sB,nf.prototype);var lB=sB,uB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="timeline",e}(dp),cB=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return Object(f.__extends)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(t_),hB=Math.PI,dB=Qr();function fB(t,e,n,r,i,o){var a=e.get("color");i?(i.setColor(a),n.add(i),o&&o.onUpdate(i)):((i=Eg(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i));var s=e.getItemStyle(["color"]);i.setStyle(s),r=Object(g.merge)({rectHover:!0,z2:100},r,!0);var l=Tg(t.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var u=Ag(t.get("symbolOffset"),l);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var c=t.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function pB(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var gB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return Vf("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Object(g.each)(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,i,a,t)},this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r,i,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return gh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":Object(g.isString)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:hB/2},d="vertical"===s?l.height:l.width,f=t.getModel("controlStyle"),p=f.get("show",!0),v=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,y=v+m,b=t.get(["label","rotate"])||0;b=b*hB/180;var _=f.get("position",!0),x=p&&f.get("showPlayBtn",!0),w=p&&f.get("showPrevBtn",!0),S=p&&f.get("showNextBtn",!0),C=0,k=d;"left"===_||"bottom"===_?(x&&(r=[0,0],C+=y),w&&(i=[C,0],C+=y),S&&(o=[k-v,0],k-=y)):(x&&(r=[k-v,0],k-=y),w&&(i=[0,0],C+=y),S&&(o=[k-v,0],k-=y));var O=[C,k];return t.get("inverse")&&O.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:b,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:O,controlSize:v,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=i.x,s=i.y+i.height;mt(o,o,[-a,-s]),yt(o,o,-hB/2),mt(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var l=m(i),u=m(n.getBoundingRect()),c=m(r.getBoundingRect()),h=[n.x,n.y],d=[r.x,r.y];d[0]=h[0]=l[0][0];var f,p=t.labelPosOpt;null==p||Object(g.isString)(p)?(y(h,u,l,1,f="+"===p?0:1),y(d,c,l,1,1-f)):(y(h,u,l,1,f=p>=0?0:1),d[1]=h[1]+p);function v(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function y(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(d),n.rotation=r.rotation=t.rotation,v(n),v(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ey({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Jy({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Iy}}(e,r);i.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new cB("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new tr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new Il({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(g.extend)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Il({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(g.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(g.each)(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Object(g.bind)(i._changeTimeline,i,t.value)},d=fB(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),_s(d);var f=Ma(d);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],Object(g.each)(a,function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),d=new Oa({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(g.bind)(i._changeTimeline,i,a),silent:!1,style:$u(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=$u(u),d.ensureState("progress").style=$u(c),e.add(d),_s(d),dB(d).dataIndex=a,i._tickLabels.push(d)})}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=$n(Object(g.retrieve2)(r.get(["controlStyle",n+"BtnSize"]),i),i),h=function(t,e,n,r){var i=r.style,o=Au(t.get(["controlStyle",e]),r||{},new It(n[0],n[1],n[2],n[3]));i&&o.setStyle(i);return o}(r,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),_s(h)}}c(t.nextBtnPosition,"next",Object(g.bind)(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Object(g.bind)(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Object(g.bind)(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(g.bind)(s._handlePointerDrag,s),t.ondragend=Object(g.bind)(s._handlePointerDragend,s),pB(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){pB(t,s._progressLine,o,n,r)}};this._currentPointer=fB(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=gr(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var i=this._progressLine;i&&(i.shape.x2=n,i.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return Cu(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-t);s<r&&(r=s,e=o)}),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",dB(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(uB);function vB(t){var e=t&&t.timeline;g.isArray(e)||(e=e?[e]:[]),g.each(e,function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(mB(t),yB(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});yB(r,"position")||(r.position=t.controlPosition),"none"!==r.position||yB(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}g.each(t.data||[],function(t){g.isObject(t)&&!g.isArray(t)&&(!yB(t,"value")&&yB(t,"name")&&(t.value=t.name),mB(t))})}(t)})}function mB(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};g.each(r,function(t,e){o[e]||yB(i,e)||(i[e]=t)}),n.label&&!yB(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function yB(t,e){return t.hasOwnProperty(e)}function bB(t,e){if(!t)return!1;for(var n=Object(g.isArray)(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function _B(t){$r(t,"label",["show"])}var xB=Qr(),wB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(p.a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=xB(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&_B(n),g.each(n.data,function(t){t instanceof Array?(_B(t[0]),_B(t[1])):_B(t)}),o=this.createMarkerModelFromSeries(n,this,e),g.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),xB(t)[i]=o):xB(t)[i]=null},this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return Vf("section",{header:this.name,blocks:[Vf("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return xB(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Sh);g.mixin(wB,nf.prototype);var SB=wB,CB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(SB);function kB(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function OB(t,e,n,r,i,o){var a=[],s=hy(e,r)?e.getCalculationInfo("stackResultDimension"):r,l=DB(e,s,t),u=e.indicesOfNearest(s,l)[0];a[i]=e.get(n,u),a[o]=e.get(s,u);var c=e.get(r,u),h=vr(e.get(r,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var MB={min:Object(g.curry)(OB,"min"),max:Object(g.curry)(OB,"max"),average:Object(g.curry)(OB,"average"),median:Object(g.curry)(OB,"median")};function EB(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(g.isArray)(e.coord)&&Object(g.isArray)(i)){var o=TB(e,n,r,t);if((e=Object(g.clone)(e)).type&&MB[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(g.indexOf)(i,o.baseAxis.dim),s=Object(g.indexOf)(i,o.valueAxis.dim),l=MB[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(g.isArray)(i))for(var u=e.coord,c=0;c<2;c++)MB[u[c]]&&(u[c]=DB(n,n.mapDimension(i[c]),u[c]));else e.coord=[];return e}}function TB(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function AB(t,e){return!(t&&t.containData&&e.coord&&!kB(e))||t.containData(e.coord)}function IB(t,e){return t?function(t,n,r,i){return lf(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,n,r,i){return lf(t.value,e[i])}}function DB(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,function(t,e){isNaN(t)||(r+=t,i++)}),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var PB=Qr(),LB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.init=function(){this.markerGroupMap=Object(g.createHashMap)()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each(function(t){PB(t).keep=!1}),e.eachSeries(function(t){var i=SB.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)}),i.each(function(t){!PB(t).keep&&r.group.remove(t.group)})},e.prototype.markKeep=function(t){PB(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(g.each)(t,function(t){var r=SB.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl(function(t){t&&(e?cs(t):hs(t))})})},e.type="marker",e}(dp);function jB(t,e,n){var r=e.coordinateSystem;t.each(function(i){var o,a=t.getItemModel(i),s=fr(a.get("x"),n.getWidth()),l=fr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)})}var NB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=SB.getMarkerModelFromSeries(t,"markPoint");e&&(jB(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new fw),u=function(t,e,n){var r;r=t?Object(g.map)(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(g.extend)(Object(g.extend)({},n),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new ry(r,n),o=Object(g.map)(n.get("data"),Object(g.curry)(EB,e));t&&(o=Object(g.filter)(o,Object(g.curry)(AB,t)));var a=IB(!!t,r);return i.initData(o,null,a),i}(i,t,e);e.setData(u),jB(e.getData(),t,r),u.each(function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(g.isFunction)(r)||Object(g.isFunction)(i)||Object(g.isFunction)(o)||Object(g.isFunction)(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Object(g.isFunction)(r)&&(r=r(c,h)),Object(g.isFunction)(i)&&(i=i(c,h)),Object(g.isFunction)(o)&&(o=o(c,h)),Object(g.isFunction)(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),f=hg(a,"color");d.fill||(d.fill=f),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){Ma(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(LB);var RB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(SB),BB=Qr(),FB=function(t,e,n,r){var i,o=t.getData();if(Object(g.isArray)(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=Object(g.retrieve)(r.yAxis,r.xAxis);else{var u=TB(r,o,e,t);s=u.valueAxis,l=DB(o,dy(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,d=Object(g.clone)(r),f={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,f.coord[h]=1/0;var p=n.get("precision");p>=0&&Object(g.isNumber)(l)&&(l=+l.toFixed(Math.min(p,20))),d.coord[c]=f.coord[c]=l,i=[d,f,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var v=[EB(t,i[0]),EB(t,i[1]),Object(g.extend)({},i[2])];return v[2].type=v[2].type||null,Object(g.merge)(v[2],v[0]),Object(g.merge)(v[2],v[1]),v};function zB(t){return!isNaN(t)&&!isFinite(t)}function VB(t,e,n,r){var i=1-t,o=r.dimensions[t];return zB(e[i])&&zB(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function $B(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(VB(1,n,r,t)||VB(0,n,r,t)))return!0}return AB(t,e[0])&&AB(t,e[1])}function GB(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=fr(s.get("x"),i.getWidth()),u=fr(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(Mw(a,"cartesian2d")){var f=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;zB(t.get(c[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):zB(t.get(c[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var HB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=SB.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=BB(e).from,o=BB(e).to;i.each(function(e){GB(i,e,!0,t,n),GB(o,e,!1,t,n)}),r.each(function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new FE);this.group.add(l.group);var u=function(t,e,n){var r;r=t?Object(g.map)(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(g.extend)(Object(g.extend)({},n),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new ry(r,n),o=new ry(r,n),a=new ry([],n),s=Object(g.map)(n.get("data"),Object(g.curry)(FB,e,t,n));t&&(s=Object(g.filter)(s,Object(g.curry)($B,t)));var l=IB(!!t,r);return i.initData(Object(g.map)(s,function(t){return t[0]}),null,l),o.initData(Object(g.map)(s,function(t){return t[1]}),null,l),a.initData(Object(g.map)(s,function(t){return t[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,t,e),c=u.from,h=u.to,d=u.line;BB(e).from=c,BB(e).to=h,e.setData(d);var f=e.get("symbol"),p=e.get("symbolSize"),v=e.get("symbolRotate"),m=e.get("symbolOffset");function y(e,n,i){var o=e.getItemModel(n);GB(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=hg(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(g.retrieve2)(o.get("symbolOffset",!0),m[i?0:1]),symbolRotate:Object(g.retrieve2)(o.get("symbolRotate",!0),v[i?0:1]),symbolSize:Object(g.retrieve2)(o.get("symbolSize"),p[i?0:1]),symbol:Object(g.retrieve2)(o.get("symbol",!0),f[i?0:1]),style:s})}Object(g.isArray)(f)||(f=[f,f]),Object(g.isArray)(p)||(p=[p,p]),Object(g.isArray)(v)||(v=[v,v]),Object(g.isArray)(m)||(m=[m,m]),u.from.each(function(t){y(c,t,!0),y(h,t,!1)}),d.each(function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})}),l.updateData(d),u.line.eachItemGraphicEl(function(t){Ma(t).dataModel=e,t.traverse(function(t){Ma(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(LB);var WB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(SB),UB=Qr(),YB=function(t,e,n,r){var i=r[0],o=r[1];if(i&&o){var a=EB(t,i),s=EB(t,o),l=a.coord,u=s.coord;l[0]=Object(g.retrieve)(l[0],-1/0),l[1]=Object(g.retrieve)(l[1],-1/0),u[0]=Object(g.retrieve)(u[0],1/0),u[1]=Object(g.retrieve)(u[1],1/0);var c=Object(g.mergeAll)([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function XB(t){return!isNaN(t)&&!isFinite(t)}function qB(t,e,n,r){var i=1-t;return XB(e[i])&&XB(n[i])}function ZB(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return Mw(t,"cartesian2d")?!(!n||!r||!qB(1,n,r)&&!qB(0,n,r))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!kB(e)&&!kB(n))||t.containZone(e.coord,n.coord)}(t,i,o):AB(t,i)||AB(t,o)}function KB(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=fr(s.get(n[0]),i.getWidth()),u=fr(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(c),f=a.clampData(h),p=[];"x0"===n[0]?p[0]=d[0]>f[0]?h[0]:c[0]:p[0]=d[0]>f[0]?c[0]:h[0],"y0"===n[1]?p[1]=d[1]>f[1]?h[1]:c[1]:p[1]=d[1]>f[1]?c[1]:h[1],o=r.getMarkerPosition(p,n,!0)}else{var g=[y=t.get(n[0],e),b=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(Mw(a,"cartesian2d")){var v=a.getAxis("x"),m=a.getAxis("y"),y=t.get(n[0],e),b=t.get(n[1],e);XB(y)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):XB(b)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var JB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var QB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=SB.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each(function(e){var i=Object(g.map)(JB,function(i){return KB(r,e,i,t,n)});r.setItemLayout(e,i),r.getItemGraphicEl(e).setShape("points",i)})}},this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new tr});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var r,i;if(t){var o=Object(g.map)(t&&t.dimensions,function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(g.extend)(Object(g.extend)({},r),{name:t,ordinalMeta:null})});i=Object(g.map)(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),r=new ry(i,n)}else r=new ry(i=[{name:"value",type:"float"}],n);var a=Object(g.map)(n.get("data"),Object(g.curry)(YB,e,t,n));t&&(a=Object(g.filter)(a,Object(g.curry)(ZB,t)));var s=t?function(t,e,n,r){var o=t.coord[Math.floor(r/2)][r%2];return lf(o,i[r])}:function(t,e,n,r){return lf(t.value,i[r])};return r.initData(a,null,s),r.hasItemOption=!0,r}(i,t,e);e.setData(u),u.each(function(e){var n=Object(g.map)(JB,function(n){return KB(u,e,n,t,r)}),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];gr(h),gr(d);var f=!!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]);u.setItemLayout(e,{points:n,allClipped:f});var p=u.getItemModel(e).getModel("itemStyle").getItemStyle(),v=hg(a,"color");p.fill||(p.fill=v,Object(g.isString)(p.fill)&&(p.fill=Pe.modifyAlpha(p.fill,.4))),p.stroke||(p.stroke=v),u.setItemVisual(e,"style",p)}),u.diff(UB(l).data).add(function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Cl({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}}).update(function(t,n){var r=UB(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?tu(r,{shape:{points:i.points}},e,t):r=new Cl({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))}).remove(function(t){var e=UB(l).data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),zu(t,Vu(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(g.isString)(i.fill)?Pe.modifyAlpha(i.fill,1):"#000"}),ks(t,r),xs(t,null,null,r.get(["emphasis","disabled"])),Ma(t).dataModel=e}),UB(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(LB);var tF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),g.isArray(e)&&g.each(e,function(t,r){g.isString(t)&&(t={type:t}),e[r]=g.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&Zr(r)&&e.push(r.name)}),this._availableNames=n;var r=this.get("data")||e,i=g.createHashMap(),o=g.map(r,function(t){return(g.isString(t)||g.isNumber(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new hc(t,this,this.ecModel))},this);this._data=g.filter(o,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;g.each(n,function(t){e[t.get("name")]=!1})}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;g.each(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;g.each(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&g.indexOf(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Sh),eF=g.curry,nF=g.each,rF=tr;function iF(t,e,n,r){sF(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),aF(t,e,n,r)}function oF(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function aF(t,e,n,r){oF(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function sF(t,e,n,r){oF(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var lF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(f.__extends)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rF),this.group.add(this._selectorGroup=new rF),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=gh(l,u,c),d=this.layoutInner(t,i,h,r,a,s),f=gh(g.defaults({width:d.width,height:d.height},l),u,c);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=MN(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=g.createHashMap(),u=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&c.push(t.id)}),nF(e.getData(),function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new rF;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var f=d.getData(),p=f.getVisual("legendLineStyle")||{},v=f.getVisual("legendIcon"),m=f.getVisual("style");this._createItem(d,a,o,i,e,t,p,m,v,u,r).on("click",eF(iF,a,null,r,c)).on("mouseover",eF(aF,d.name,null,r,c)).on("mouseout",eF(sF,d.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),f=s.getItemVisual(h,"legendIcon"),p=Object(Pe.parse)(d.fill);p&&0===p[3]&&(p[3]=.2,d=g.extend(g.extend({},d),{fill:Object(Pe.stringify)(p,"rgba")})),this._createItem(n,a,o,i,e,t,{},d,f,u,r).on("click",eF(iF,null,a,r,c)).on("mouseover",eF(aF,null,a,r,c)).on("mouseout",eF(sF,null,a,r,c)),l.set(a,!0)}},this);0}},this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();nF(t,function(t){var r=t.type,i=new Oa({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),zu(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),_s(i)})},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,d=i.get("itemWidth"),f=i.get("itemHeight"),p=i.isSelected(e),v=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),y=r.get("icon"),b=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),nF(t,function(n,r){"inherit"===t[r]&&(t[r]=e[r])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?ov(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var d=e.getModel("lineStyle"),f=d.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}(l=y||l||"roundRect",r,a,s,h,p,c),_=new rF,x=r.getModel("textStyle");if(!g.isFunction(t.getLegendIcon)||y&&"inherit"!==y){var w="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===v?t.getData().getVisual("symbolRotate"):v:0;_.add(function(t){var e=t.icon||"roundRect",n=Eg(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:f,icon:l,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}else _.add(t.getLegendIcon({itemWidth:d,itemHeight:f,icon:l,iconRotate:v,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));var S="left"===o?d+5:-5,C=o,k=i.get("formatter"),O=e;g.isString(k)&&k?O=k.replace("{name}",null!=e?e:""):g.isFunction(k)&&(O=k(e));var M=r.get("inactiveColor");_.add(new Oa({style:$u(x,{text:O,x:S,y:f/2,fill:p?x.getTextColor():M,align:C,verticalAlign:"middle"})}));var E=new ca({shape:_.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&Lu({el:E,componentModel:i,itemName:e,itemTooltipOption:T.option}),_.add(E),_.eachChild(function(t){t.silent=!0}),E.silent=!u,this.getContentGroup().add(_),_s(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();ph(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){ph("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[p]=l[p]+d+c[p],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+h[1-f]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(dp);function uF(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function cF(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();Object(g.each)(a,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}})}),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function hF(t){t.registerComponentModel(tF),t.registerComponentView(lF),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,uF),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(g.curry)(cF,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(g.curry)(cF,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(g.curry)(cF,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(g.curry)(cF,"select")),t.registerAction("legendUnSelect","legendunselected",Object(g.curry)(cF,"unSelect"))}(t)}function dF(t,e,n){var r=[1,1];r[t.getOrient().index]=0,yh(e,n,{type:"box",ignoreSize:!!r})}var fF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=bh(e);t.prototype.init.call(this,e,n,r),dF(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),dF(this,this.option,e)},e.type="legend.scroll",e.defaultOption=pc(tF.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(tF),pF=tr,gF=["width","height"],vF=["x","y"],mF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(f.__extends)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pF)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=g.isArray(c)?c:[c,c];f("pagePrev",0);var d=n.getModel("pageTextStyle");function f(t,e){var r=t+"DataIndex",o=Au(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:g.bind(l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new Oa({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=gF[s],u=vF[s],c=gF[1-s],h=vF[1-s];i&&ph("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),p=[-f.x,-f.y],v=g.clone(n);i&&(v[l]=n[l]-f[l]-d);var m=this._layoutContentAndController(t,r,v,s,l,c,h,u);if(i){if("end"===o)p[s]+=m[l]+d;else{var y=f[l]+d;p[s]-=y,m[u]-=y}m[l]+=f[l]+d,p[1-s]+=m[h]+m[c]/2-f[c]/2,m[c]=Math.max(m[c],f[c]),m[h]=Math.min(m[h],f[h]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;ph(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),ph("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),f=this._showController=h[i]>n[i],p=[-h.x,-h.y];e||(p[r]=l[s]);var v=[0,0],m=[-d.x,-d.y],y=g.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[r]+=n[i]-d[i]:v[r]+=d[i]+y);m[1-r]+=h[o]/2-d[o]/2,l.setPosition(p),u.setPosition(v),c.setPosition(m);var b={x:0,y:0};if(b[i]=f?n[i]:h[i],b[o]=Math.max(h[o],d[o]),b[a]=Math.min(0,d[a]+m[1-r]),u.__rectSize=n[i],f){var _={x:0,y:0};_[i]=Math.max(n[i]-d[i]-y,0),_[o]=b[o],u.setClipPath(new ca({shape:_})),u.__rectSize=_[i]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&tu(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;g.each(["pagePrev","pageNext"],function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",g.isString(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=gF[i],a=vF[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[i]=-f.s;for(var p=s+1,g=f,v=f,m=null;p<=c;++p)(!(m=y(l[p]))&&v.e>g.s+r||m&&!b(m,g.s))&&(g=v.i>g.i?v:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),v=m;for(p=s-1,g=f,v=f,m=null;p>=-1;--p)(m=y(l[p]))&&b(v,m.s)||!(g.i<v.i)||(v=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(lF);function yF(t){Am(hF),t.registerComponentModel(fF),t.registerComponentView(mF),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)}var bF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="dataZoom.inside",e.defaultOption=pc(hN.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(hN),_F=Qr();function xF(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function wF(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function SF(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function CF(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=_F(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(g.createHashMap)());r.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){var n=lN(t);Object(g.each)(n.infoList,function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(t,e){var n={model:e,containsPoint:Object(g.curry)(SF,e),dispatchAction:Object(g.curry)(wF,t),dataZoomInfoMap:null,controller:null},r=n.controller=new QC(t.getZr());return Object(g.each)(["pan","zoom","scrollMove"],function(t){r.on(t,function(e){var r=[];n.dataZoomInfoMap.each(function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),r.length&&n.dispatchAction(r)})}),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(g.createHashMap)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),r.each(function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=function(t){var e,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each(function(t){var i=t.model,o=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");n["type_"+o]>n["type_"+e]&&(e=o),r=r&&i.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Mp(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else xF(r,t)})})}var kF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(f.__extends)(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){_F(t).coordSysRecordMap.each(function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)})}(r,e,{pan:Object(g.bind)(OF.pan,this),zoom:Object(g.bind)(OF.zoom,this),scrollMove:Object(g.bind)(OF.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=_F(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||xF(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(fN),OF={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=EF[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return DT(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:MF(function(t,e,n,r,i,o){var a=EF[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:MF(function(t,e,n,r,i,o){return EF[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta})};function MF(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return DT(t(a,s,e,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var EF={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},TF=kF;function AF(t){_N(t),t.registerComponentModel(bF),t.registerComponentView(TF),CF(t)}var IF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=pc(hN.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(hN),DF=ca,PF="horizontal",LF=5,jF=["line","bar","candlestick","scatter"],NF={easing:"cubicOut",duration:100,delay:0};function RF(t){return"vertical"===t?"ns-resize":"ew-resize"}var BF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(g.bind)(this._onBrush,this),this._onBrushEnd=Object(g.bind)(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),Mp(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ep(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new tr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},o=this._orient===PF?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=bh(t.option);Object(g.each)(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=gh(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==PF||i?n===PF&&i?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new DF({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new DF({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(g.bind)(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],f=[0,e[0]],p=[[e[0],0],[0,0]],g=[],v=f[1]/(i.count()-1),m=0,y=Math.round(i.count()/e[0]);i.each([a],function(t,e){if(y>0&&e%y)m+=v;else{var n=null==t||isNaN(t)||""===t,r=n?0:dr(t,u,d,!0);n&&!h&&e?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(p.push([m,0]),g.push([m,0])),p.push([m,r]),g.push([m,r]),m+=v,h=n}}),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new tr,r=new Cl({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Ml({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis(function(i,o){var a=t.getAxisProxy(i,o).getTargetSeriesModels();Object(g.each)(a,function(t){if(!(n||!0!==e&&Object(g.indexOf)(jF,t.get("type"))<0)){var a,s=r.getComponent(aN(i),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new DF({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new DF({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(g.each)([0,1],function(e){var o=a.get("handleIcon");!kg[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Eg(o,-1,0,2,2,null,!0);s.attr({cursor:RF(this._orient),draggable:!0,drift:Object(g.bind)(this._onDragMove,this,e),ondragend:Object(g.bind)(this._onDragEnd,this),onmouseover:Object(g.bind)(this._showDataInfo,this,!0),onmouseout:Object(g.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=fr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),_s(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new Oa({silent:!0,invisible:!0,style:$u(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))},this);var h=c;if(u){var d=fr(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new ca({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,v=e.moveHandleIcon=Eg(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);v.silent=!0,v.y=o[1]+d/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));(h=e.moveZone=new ca({invisible:!0,shape:{y:o[1]-m,height:d+m}})).on("mouseover",function(){s.enterEmphasis(f)}).on("mouseout",function(){s.leaveEmphasis(f)}),i.add(f),i.add(v),i.add(h)}h.attr({draggable:!0,cursor:RF(this._orient),drift:Object(g.bind)(this._onDragMove,this,"all"),ondragstart:Object(g.bind)(this._showDataInfo,this,!0),ondragend:Object(g.bind)(this._onDragEnd,this),onmouseover:Object(g.bind)(this._showDataInfo,this,!0),onmouseout:Object(g.bind)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[dr(t[0],[0,100],e,!0),dr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];DT(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?dr(o.minSpan,a,i,!0):null,null!=o.maxSpan?dr(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=gr([dr(r[0],i,a,!0),dr(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=gr(n.slice()),i=this._size;Object(g.each)([0,1],function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})},this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new ca,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=gr(this._handleEnds.slice());function h(t){var e=Su(n.handles[t].parent,this.group),a=ku(0===t?"right":"left",e),s=this._handleWidth/2+LF,l=Cu([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===PF?"middle":a,align:i===PF?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return Object(g.isFunction)(r)?r(t,o):Object(g.isString)(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,lt(r.event);var i=Cu([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new wt(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=gr([dr(n.x,r,i,!0),dr(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(lt(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new DF({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?NF:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=lN(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(fN);function FF(t){t.registerComponentModel(IF),t.registerComponentView(BF),_N(t)}var zF={get:function(t,e,n){var r=g.clone((VF[t]||{})[e]);return n&&g.isArray(r)?r[r.length-1]:r}},VF={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},$F=zF,GF=jM.mapVisual,HF=jM.eachVisual,WF=g.isArray,UF=g.each,YF=gr,XF=dr,qF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&zR(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=g.bind(t,this),this.controllerVisuals=FR(this.option.controller,e,t),this.targetVisuals=FR(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=Vr(t),e},e.prototype.eachTargetSeries=function(t,e){g.each(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],g.isArray(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return g.isString(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):g.isFunction(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=YF([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});g.merge(r,n),g.merge(i,n);var o=this.isCategory();function a(n){WF(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,r),a.call(this,i),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},UF(r,function(t,e){if(jM.isValidType(e)){var n=$F.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}}))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";UF(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&g.clone(e)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&g.clone(n)||(o?s[0]:[s[0],s[0]])),l.symbol=GF(l.symbol,function(t){return"none"===t?i:t});var u=l.symbolSize;if(null!=u){var c=-1/0;HF(u,function(t){t>c&&(c=t)}),l.symbolSize=GF(u,function(t){return XF(t,[0,c],[0,s[0]],!0)})}},this)}.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Sh),ZF=[20,140];function KF(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var JF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=ZF[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=ZF[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):g.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),g.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=gr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)},this),e.push({seriesId:n.id,dataIndex:r})},this),e},e.prototype.getVisualMeta=function(t){var e=KF(this,"outOfRange",this.getExtent()),n=KF(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=pc(qF.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(qF),QF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(f.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=th(e.get("padding")||0),r=t.getBoundingRect();t.add(new ca({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)],c=jM.prepareVisualTypes(u);return g.each(c,function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),jM.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)}),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;vh(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(dp),tz=[["left","right","width"],["top","bottom","height"]];function ez(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=tz[a],l=[0,null,10],u={},c=0;c<3;c++)u[tz[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],d=gh(u,o,r.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function nz(t,e){return g.each(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var rz=dr,iz=g.each,oz=Math.min,az=Math.max,sz=12;function lz(t,e,n,r){return new Cl({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){lt(t.event)},ondragend:r})}function uz(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function cz(t){return"vertical"===t?"ns-resize":"ew-resize"}var hz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(f.__extends)(e,t),e.prototype.doRender=function(t,e,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Oa({style:$u(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=ez(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new tr;s.add(l),l.add(n.outOfRange=lz()),l.add(n.inRange=lz(null,o?cz(this._orient):null,g.bind(this._dragHandle,this,"all",!1),g.bind(this._dragHandle,this,"all",!0))),l.setClipPath(new ca({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=az(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=g.bind(this._dragHandle,this,n,!1),s=g.bind(this._dragHandle,this,n,!0),l=$n(t.get("handleSize"),r[0]),u=Eg(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=cz(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){lt(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Os(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new Oa({cursor:c,draggable:!0,drift:a,onmousemove:function(t){lt(t.event)},ondragend:s,style:$u(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var f=[l,0],p=this._shapes;p.handleThumbs[n]=u,p.handleLabelPoints[n]=f,p.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,r,i){var o=$n(t.get("indicatorSize"),n[0]),a=Eg(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof na){var l=a.style;a.useStyle(g.extend({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new Oa({silent:!0,invisible:!0,style:$u(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():uz(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[rz(e[0],n,r,!0),rz(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];DT(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[rz(r[0],i,o,!0),rz(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new $l(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new tr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();iz([0,1],function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=rz(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=Cu(n.handleLabelPoints[l],Su(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=rz(t,o,s,!0),f=a[0]-h/2,p={x:u.x,y:u.y};u.y=d,u.x=f;var g=Cu(l.indicatorLabelPoint,Su(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:y?m:"middle",align:y?"center":m});var b={x:f,y:d,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};u.x=p.x,u.y=p.y,u.animateTo(b,x),v.animateTo(_,x)}else u.attr(b),v.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this._api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=oz(az(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=oz(az(i[0],t),i[1]);var a=function(t,e,n){var r=sz/2,i=t.get("hoverLinkDataSize");i&&(r=rz(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=rz(t,i,o,!0),u=[rz(s[0],i,o,!0),rz(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||uz(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=qr(t[r].seriesId,null);if(null==o)return;for(var a=Vr(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,h);this._dispatchHighDown("downplay",nz(d[0],n)),this._dispatchHighDown("highlight",nz(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(gg(t.target,function(t){var n=Ma(t);if(null!=n.dataIndex)return e=n,!0},!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",nz(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=Su(e,r?null:this.group);return g.isArray(t)?Cu(t,i,n):ku(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(QF),dz={type:"selectDataRange",event:"dataRangeSelected",update:"update"},fz=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})},pz=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(e){var r,i,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((r=e.stateList,i=e.targetVisuals,o=g.bind(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},g.each(r,function(t){var e=jM.prepareVisualTypes(i[t]);s[t]=e}),{progress:function(t,e){var n,r;function l(t){return cg(e,r,t)}function u(t,n){dg(e,r,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(r=t.next());){var h=e.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var d=null!=a?c.get(n,r):r,f=o(d),p=i[f],g=s[f],v=0,m=g.length;v<m;v++){var y=g[v];p[y]&&p[y].applyVisual(d,l,u)}}}}))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(g.bind(gz,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),t.getData().setVisual("visualMeta",r)}}];function gz(t,e,n,r){for(var i=e.targetVisuals[r],o=jM.prepareVisualTypes(i),a={color:hg(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var vz=g.each;function mz(t){var e=t&&t.visualMap;g.isArray(e)||(e=e?[e]:[]),vz(e,function(t){if(t){yz(t,"splitList")&&!yz(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&g.isArray(e)&&vz(e,function(t){g.isObject(t)&&(yz(t,"start")&&!yz(t,"min")&&(t.min=t.start),yz(t,"end")&&!yz(t,"max")&&(t.max=t.end))})}})}function yz(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var bz=!1;function _z(t){bz||(bz=!0,t.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(dz,fz),Object(g.each)(pz,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(mz))}function xz(t){t.registerComponentModel(JF),t.registerComponentView(hz),_z(t)}var wz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Object(f.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],Sz[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=g.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=g.map(this._pieceList,function(t){return t=g.clone(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=jM.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}g.each(e.pieces,function(t){g.each(r,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),g.each(n,function(t,n){var r=!1;g.each(this.stateList,function(t){r=r||o(e,t,n)||o(e.target,t,n)},this),!r&&g.each(this.stateList,function(t){(e[t]||(e[t]={}))[n]=$F.get(n,"inRange"===t?"active":"inactive",i)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,g.each(r,function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)},this),"single"===n.selectedMode){var o=!1;g.each(r,function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=g.clone(t)},e.prototype.getValueState=function(t){var e=jM.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),function(e,r){jM.findPieceIndex(e,n)===t&&i.push(r)},this),e.push({seriesId:r.id,dataIndex:i})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return g.each(i,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=pc(qF.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(qF),Sz={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),Ir(t),g.each(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;g.each(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),Cz(e,t)},pieces:function(t){var e=this.option;g.each(e.pieces,function(e,n){g.isObject(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=e[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=jM.retrieveVisuals(e),t.push(r)},this),Cz(e,t),Ir(t),g.each(t,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function Cz(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var kz=wz,Oz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(f.__extends)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=g.retrieve(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),g.each(l.viewPieceList,function(r){var l=r.piece,u=new tr;u.onclick=g.bind(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new Oa({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,c,a),ph(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:nz(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return ez(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new tr,a=this.visualMapModel.textStyleModel;o.add(new Oa({style:$u(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=g.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(Eg(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=g.clone(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,g.each(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(QF);function Mz(t){t.registerComponentModel(kz),t.registerComponentView(Oz),_z(t)}var Ez={label:{enabled:!0},decal:{show:!1}},Tz=Qr(),Az={};function Iz(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=g.clone(Ez);g.merge(r.label,t.getLocaleModel().get("aria"),!1),g.merge(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=g.createHashMap();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),Tz(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e))if(g.isFunction(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=Zh(e.ecModel,e.name,Az,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=Tz(e).scope;n.each(function(t){var e=n.getRawIndex(t);a[e]=t});var l=o.count();o.each(function(t){var r=a[t],i=o.getName(t)||t+"",c=Zh(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))})}}function u(t,e){var n=t?g.extend(g.extend({},e),t):e;return n.dirty=!0,n}})}}(),function(){var r=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=g.defaults(o.option,r),!o.get("enabled"))return;var a=e.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(l<1)return;var d=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();if(d){var f=o.get(["general","withTitle"]);s=i(f,{title:d})}else s=o.get(["general","withoutTitle"]);var p=[],v=l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=i(v,{seriesCount:l}),t.eachSeries(function(e,n){if(n<h){var r=void 0,a=e.get("name"),s=a?"withName":"withoutName";r=i(r=l>1?o.get(["series","multiple",s]):o.get(["series","single",s]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,t.getLocaleModel().get(["series","typeNames"])[x]||"自定义图")});var c=e.getData();if(c.count()>u){var d=o.get(["data","partialData"]);r+=i(d,{displayCnt:u})}else r+=o.get(["data","allData"]);for(var f=o.get(["data","separator","middle"]),g=o.get(["data","separator","end"]),v=[],m=0;m<c.count();m++)if(m<u){var y=c.getName(m),b=c.getValues(m),_=o.get(["data",y?"withName":"withoutName"]);v.push(i(_,{name:y,value:b.join(f)}))}r+=v.join(f)+g,p.push(r)}var x});var m=o.getModel(["series","multiple","separator"]),y=m.get("middle"),b=m.get("end");s+=p.join(y)+b,a.setAttribute("aria-label",s)}()}function i(t,e){if(!g.isString(t))return t;var n=t;return g.each(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}}function Dz(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},g.each(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var Pz={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Lz=function(){function t(t){if(null==(this._condVal=Object(g.isString)(t)?new RegExp(t):Object(g.isRegExp)(t)?t:null)){var e="";0,Rr(e)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(g.isString)(e)?this._condVal.test(t):!!Object(g.isNumber)(e)&&this._condVal.test(t+"")},t}(),jz=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Nz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),Rz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),Bz=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Fz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?n:e))return!1;return!0},t}();function zz(t,e){if(!0===t||!1===t){var n=new jz;return n.value=t,n}var r="";return $z(t)||Rr(r),t.and?Vz("and",t,e):t.or?Vz("or",t,e):t.not?function(t,e){var n=t.not,r="";0;$z(n)||Rr(r);var i=new Bz;i.child=zz(n,e),i.child||Rr(r);return i}(t,e):function(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=Object(g.keys)(t),a=t.parser,s=a?cf(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(g.hasOwn)(Pz,u)?Pz[u]:u,h=t[u],d=s?s(h):h,f=gf(c,d)||"reg"===c&&new Lz(d);f||Rr(n),i.push(f)}}i.length||Rr(n);var p=new Fz;return p.valueGetterParam=r,p.valueParser=s,p.getValue=e.getValue,p.subCondList=i,p}(t,e)}function Vz(t,e,n){var r=e[t],i="";Object(g.isArray)(r)||Rr(i),r.length||Rr(i);var o="and"===t?new Nz:new Rz;return o.children=Object(g.map)(r,function(t){return zz(t,n)}),o.children.length||Rr(i),o}function $z(t){return Object(g.isObject)(t)&&!Object(g.isArrayLike)(t)}var Gz=function(){function t(t,e){this._cond=zz(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var Hz={type:"echarts:filter",transform:function(t){for(var e,n,r,i=t.upstream,o=(n=t.config,r={valueGetterAttrMap:Object(g.createHashMap)({dimension:!0}),prepareGetValue:function(t){var e="",n=t.dimension;Object(g.hasOwn)(t,"dimension")||Rr(e);var r=i.getDimensionInfo(n);return r||Rr(e),{dimIdx:r.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new Gz(n,r)),a=[],s=0,l=i.count();s<l;s++)e=i.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}};var Wz={type:"echarts:sort",transform:function(t){var e=t.upstream,n="",r=Vr(t.config);r.length||Rr(n);var i=[];Object(g.each)(r,function(t){var r=t.dimension,o=t.order,a=t.parser,s=t.incomparable;if(null==r&&Rr(n),"asc"!==o&&"desc"!==o&&Rr(n),s&&"min"!==s&&"max"!==s){var l="";0,Rr(l)}if("asc"!==o&&"desc"!==o){var u="";0,Rr(u)}var c=e.getDimensionInfo(r);c||Rr(n);var h=a?cf(a):null;a&&!h&&Rr(n),i.push({dimIdx:c.index,parser:h,comparator:new ff(o,s)})});var o=e.sourceFormat;o!==Th&&o!==Ah&&Rr(n);for(var a=[],s=0,l=e.count();s<l;s++)a.push(e.getRawDataItem(s));return a.sort(function(t,n){for(var r=0;r<i.length;r++){var o=i[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0}),{data:a}}};var Uz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(f.__extends)(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new Pf(this),Lf(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Lf(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Lh},e}(Sh),Yz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(f.__extends)(e,t),e.type="dataset",e}(dp);var Xz=Eo.CMD;function qz(t,e){return Math.abs(t-e)<1e-5}function Zz(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,r,i){qz(t,r)&&qz(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),f=Math.sin(n),p=c*o+r,g=h*a+i,v=d*o+r,m=f*a+i,y=o*l*u,b=a*l*u;e.push(p-y*h,g+b*c,v+y*f,m-b*d,v,m)}for(var v=0;v<s;){var m=a[v++],y=1===v;switch(y&&(h=u=a[v],d=c=a[v+1],m!==Xz.L&&m!==Xz.C&&m!==Xz.Q||(e=[h,d])),m){case Xz.M:u=h=a[v++],c=d=a[v++],f(h,d);break;case Xz.L:p(u,c,n=a[v++],r=a[v++]),u=n,c=r;break;case Xz.C:e.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case Xz.Q:n=a[v++],r=a[v++],i=a[v++],o=a[v++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case Xz.A:var b=a[v++],_=a[v++],x=a[v++],w=a[v++],S=a[v++],C=a[v++]+S;v+=1;var k=!a[v++];n=Math.cos(S)*x+b,r=Math.sin(S)*w+_,y?f(h=n,d=r):p(u,c,n,r),u=Math.cos(C)*x+b,c=Math.sin(C)*w+_;for(var O=(k?-1:1)*Math.PI/2,M=S;k?M>C:M<C;M+=O){g(M,k?Math.max(M+O,C):Math.min(M+O,C),b,_,x,w)}break;case Xz.R:h=u=a[v++],d=c=a[v++],n=h+a[v++],r=d+a[v++],f(n,d),p(n,d,n,r),p(n,r,h,r),p(h,r,h,d),p(h,d,n,d);break;case Xz.Z:e&&p(u,c,h,d),u=h,c=d}}return e&&e.length>2&&l.push(e),l}function Kz(t,e,n,r,i,o,a,s,l,u){if(qz(t,n)&&qz(e,r)&&qz(i,a)&&qz(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,f=s-e,p=Math.sqrt(d*d+f*f);d/=p,f/=p;var g=n-t,v=r-e,m=i-a,y=o-s,b=g*g+v*v,_=m*m+y*y;if(b<h&&_<h)l.push(a,s);else{var x=d*g+f*v,w=-d*m-f*y;if(b-x*x<h&&x>=0&&_-w*w<h&&w>=0)l.push(a,s);else{var S=[],C=[];xe(t,n,i,a,.5,S),xe(e,r,o,s,.5,C),Kz(S[0],C[0],S[1],C[1],S[2],C[2],S[3],C[3],l,u),Kz(S[4],C[4],S[5],C[5],S[6],C[6],S[7],C[7],l,u)}}}}function Jz(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function Qz(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=Jz([l,u],c?0:1,e),d=(c?s:u)/h.length,f=0;f<h.length;f++)for(var p=(c?u:s)/h[f],g=0;g<h[f];g++){var v={};c?(v.startAngle=o+d*f,v.endAngle=o+d*(f+1),v.r0=r+p*g,v.r=r+p*(g+1)):(v.startAngle=o+p*g,v.endAngle=o+p*(g+1),v.r0=r+d*f,v.r=r+d*(f+1)),v.clockwise=t.clockwise,v.cx=t.cx,v.cy=t.cy,n.push(v)}}function tV(t,e,n,r){return t*r-n*e}function eV(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=tV(c,h,l,u);if(Math.abs(d)<1e-6)return null;var f=tV(t-i,e-o,c,h)/d;return f<0||f>1?null:new wt(f*l+t,f*u+e)}function nV(t,e,n){var r=new wt;wt.sub(r,n,e),r.normalize();var i=new wt;return wt.sub(i,t,e),i.dot(r)}function rV(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function iV(t){var e=t.points,n=[],r=[];no(e,n,r);var i=new It(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new wt,c=new wt;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=eV(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:nV(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort(function(t,e){return t.projPt-e.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],p=[d],g=[f];for(o=u.idx+1;o<=c.idx;o++)rV(p,t[o].slice());for(rV(p,f),rV(p,d),o=c.idx+1;o<=u.idx+r;o++)rV(g,t[o%r].slice());return rV(g,d),rV(g,f),[{points:p},{points:g}]}(e,u,c)}function oV(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);oV(t,o[0],i,r),oV(t,o[1],n-i,r)}return r}function aV(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=Jz([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d<a.length;d++)for(var f=t[l]/a[d],p=0;p<a[d];p++){var g={};g[u]=d*h,g[c]=p*f,g[s]=h,g[l]=f,g.x+=t.x,g.y+=t.y,n.push(g)}}(i,e,r),n=ca;break;case"sector":Qz(i,e,r),n=ml;break;case"circle":Qz({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=ml;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(g.map)(function(t,e){var n=Zz(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],f=o[u++],p=o[u++],g=o[u++];Kz(s,l,c,h,d,f,p,g,a,e),s=p,l=g}r.push(a)}return r}(t.getUpdatedPathProxy(),a),function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)}),l=s.length;if(0===l)oV(iV,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=Object(g.map)(s,function(t){var e=[],n=[];no(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}});h.sort(function(t,e){return e.area-t.area});var d=e;for(u=0;u<l;u++){var f=h[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(f.area/c*e);p<0||(oV(iV,{points:f.poly},p,r),d-=p)}}n=Cl}if(!n)return function(t,e){for(var n=[],r=0;r<e;r++)n.push(qs(t));return n}(t,e);var v,m,y=[];for(u=0;u<r.length;u++){var b=new n;b.setShape(r[u]),v=t,(m=b).setStyle(v.style),m.z=v.z,m.z2=v.z2,m.zlevel=v.zlevel,y.push(b)}return y}function sV(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,f=2;f<s;){var p=a[f-2],g=a[f-1],v=a[f++],m=a[f++],y=a[f++],b=a[f++],_=a[f++],x=a[f++];if(d<=0)h.push(v,m,y,b,_,x);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var C=S/w;xe(p,v,y,_,C,i),xe(g,m,b,x,C,o),p=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],p,g),v=i[5],m=o[5],y=i[6],b=o[6]}d-=w-1}}return a===t?[h,e]:[t,h]}function lV(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function uV(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function cV(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var f=0===d?c:(c+d-2)%l+2,p=t[f]-n[0],g=t[f+1]-n[1],v=e[d]-r[0]-p,m=e[d+1]-r[1]-g;h+=v*v+m*m}h<o&&(o=h,a=u)}return a}function hV(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function dV(t){return t.__isCombineMorphing}var fV="__mOriginal_";function pV(t,e,n){var r=fV+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function gV(t,e){var n=fV+e;t[n]&&(t[e]=t[n],t[n]=null)}function vV(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function mV(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=function(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(r=c=(n=sV(l,u))[0],i=h=n[1]):(h=lV(i||l,l),c=l):(c=lV(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(Zz(n),Zz(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&vV(o,s),l&&vV(a,l),pV(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=uV(s),c=uV(l);null==i&&(i=u[2]<0!=c[2]<0);var h=[],d=[],f=0,p=1/0,g=[],v=s.length;i&&(s=hV(s));for(var m=6*cV(s,l,u,c),y=v-2,b=0;b<y;b+=2){var _=(m+b)%y+2;h[b+2]=s[_]-u[0],h[b+3]=s[_+1]-u[1]}if(h[0]=s[m]-u[0],h[1]=s[m+1]-u[1],n>0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var S=Math.sin(w),C=Math.cos(w),k=0;for(b=0;b<s.length;b+=2){var O=h[b],M=h[b+1],E=l[b]-c[0],T=l[b+1]-c[1],A=E*C-T*S,I=E*S+T*C;g[b]=A,g[b+1]=I;var D=A-O,P=I-M;k+=D*D+P*P}if(k<p){p=k,f=w;for(var L=0;L<g.length;L++)d[L]=g[L]}}else for(var j=0;j<v;j+=2)d[j]=l[j]-c[0],d[j+1]=l[j+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-f})}return o}(o,a,10,Math.PI),c=[];pV(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,d=a.fromCp,f=a.toCp,p=Math.sin(h),g=Math.cos(h);R(i,d,f,n);for(var v=0;v<s.length;v+=2){var m=s[v],y=s[v+1],b=m*r+(S=l[v])*n,_=y*r+(C=l[v+1])*n;c[v]=b*g-_*p+i[0],c[v+1]=b*p+_*g+i[1]}var x=c[0],w=c[1];t.moveTo(x,w);for(v=2;v<s.length;){var S=c[v++],C=c[v++],k=c[v++],O=c[v++],M=c[v++],E=c[v++];x===S&&w===C&&k===M&&O===E?t.lineTo(M,E):t.bezierCurveTo(S,C,k,O,M,E),x=M,w=E}}}})}function yV(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;return mV(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(g.defaults)({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){gV(e,"buildPath"),gV(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),r&&r()}},n)),e}function bV(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(g.map)(t,function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]});return Object(g.map)(o,function(o,a){return{cp:o,z:function(t,e,n,r,i,o){t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}(o[0],o[1],e,n,r,i),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function _V(t){return aV(t.path,t.count)}function xV(t){return Object(g.isArray)(t[0])}function wV(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var SV={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=qs(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function CV(t,e,n,r,i,o){if(t.length&&e.length){var a=Jl("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);xV(t)&&(s=t,l=e),xV(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?wV(l,s):wV(h?e:t,[h?t:e]),f=0,p=0;p<d.length;p++)f+=d[p].many.length;var v=0;for(p=0;p<d.length;p++)m(d[p],h,v,f),v+=d[p].many.length}}function m(t,e,r,i,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=Object(g.defaults)({dividePath:SV[n],individualDelay:u&&function(t,e,n,o){return u(t+r,i)}},c),d=e?function(t,e,n){var r=[];!function t(e){for(var n=0;n<e.length;n++){var i=e[n];dV(i)?t(i.childrenRef()):i instanceof qo&&r.push(i)}}(t);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||_V)({path:e,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=bV(r),o=bV(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new Dn,c=0;c<i;c++){var h=r[c],d=o[c];d.parent=e,d.copyTransform(u),l||mV(h,d)}function f(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function p(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,gV(e,"addSelfToZr"),gV(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},pV(e,"addSelfToZr",{after:function(t){f(t)}}),pV(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var v=o.length;if(l){var m=v,y=function(){0==--m&&(p(),a&&a())};for(c=0;c<v;c++){var b=l?Object(g.defaults)({delay:(n.delay||0)+l(c,v,r[c],o[c]),done:y},n):n;yV(r[c],o[c],b)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(g.defaults)({during:function(t){for(var n=0;n<v;n++){var r=o[n];r.__morphT=e.__morphT,r.dirtyShape()}s&&s(t)},done:function(){p();for(var e=0;e<t.length;e++)gV(t[e],"updateTransform");a&&a()}},n));return e.__zr&&f(e.__zr),{fromIndividuals:r,toIndividuals:o,count:v}}(s,l,h):function(t,e,n){var r=e.length,i=[],o=n.dividePath||_V;if(dV(t)){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];dV(r)?t(r.childrenRef()):r instanceof qo&&i.push(r)}}(t.childrenRef());var a=i.length;if(a<r)for(var s=0,l=a;l<r;l++)i.push(qs(i[s++%a]));i.length=r}else{i=o({path:t,count:r});var u=t.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}i=bV(i),e=bV(e);var c=n.individualDelay;for(l=0;l<r;l++){var h=c?Object(g.defaults)({delay:(n.delay||0)+c(l,r,i[l],e[l])},n):n;yV(i[l],e[l],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}(l,s,h),f=d.fromIndividuals,p=d.toIndividuals,v=f.length,y=0;y<v;y++){b=u?Object(g.defaults)({delay:u(y,v)},c):c;o(f[y],p[y],e?s[y]:t.one,e?t.one:s[y],b)}else{var b,_=e?s[0]:l,x=e?l:s[0];if(dV(_))m({many:[_],one:x},!0,r,i,!0);else yV(_,x,b=u?Object(g.defaults)({delay:u(r,i)},c):c),o(_,x,_,x,b)}}}function kV(t){if(!t)return[];if(Object(g.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(kV(t[n]));return e}var r=[];return t.traverse(function(t){t instanceof qo&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)}),r}var OV=1e4,MV=Qr();function EV(t){var e=[];return Object(g.each)(t,function(t){var n=t.data;if(!(n.count()>OV))for(var r=n.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&0===r.otherDims.itemGroupId)return e[n]}}(n),o=0;o<r.length;o++)e.push({dataGroupId:t.dataGroupId,data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})}),e}function TV(t,e,n){t.traverse(function(t){t instanceof qo&&eu(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function AV(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function IV(t){t.stopAnimation(),t.isGroup&&t.traverse(function(t){t.stopAnimation()})}function DV(t,e,n){var r=Jl("update",n,e);r&&t.traverse(function(t){if(t instanceof Yi){var e=Kl(t).oldStyle;e&&t.animateFrom({style:e},r)}})}function PV(t,e,n){var r=EV(t),i=EV(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?Object(g.extend)(Object(g.extend)({},n.style),t.style):t.style},i)}function a(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var s=a(r),l=a(i),u=!1;function c(t,e){return function(n){var r=n.data,i=n.dataIndex;if(e)return r.getId(i);var o=n.dataGroupId,a=t?s||l:l||s,u=a&&r.getDimensionInfo(a),c=u&&u.ordinalMeta;if(u){var h=r.get(u.name,i);return c&&c.categories[h]||h+""}var d=r.getRawDataItem(i);return d&&d.groupId?d.groupId+"":o||r.getId(i)}}var h=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,i),d={};if(!h)for(var f=0;f<i.length;f++){var p=i[f],v=p.data.getItemGraphicEl(p.dataIndex);v&&(d[v.id]=!0)}function m(t,e){var n=r[e],a=i[t],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&d[l.id]||c&&(IV(c),l?(IV(l),AV(l),u=!0,CV(kV(l),kV(c),a.divide,s,t,o)):TV(c,s,t)):c&&DV(c,a.dataIndex,s)}new Pm(r,i,c(!0,h),c(!1,h),null,"multiple").update(m).updateManyToOne(function(t,e){var n=i[t],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),c=Object(g.filter)(Object(g.map)(e,function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)}),function(t){return t&&t!==l&&!d[t.id]});l&&(IV(l),c.length?(Object(g.each)(c,function(t){IV(t),AV(t)}),u=!0,CV(kV(c),kV(l),n.divide,s,t,o)):TV(l,s,n.dataIndex))}).updateOneToMany(function(t,e){var n=r[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!d[a.id]){var s=Object(g.filter)(Object(g.map)(t,function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)}),function(t){return t&&t!==a}),l=i[t[0]].data.hostModel;s.length&&(Object(g.each)(s,function(t){return IV(t)}),a?(IV(a),AV(a),u=!0,CV(kV(a),kV(s),n.divide,l,t[0],o)):Object(g.each)(s,function(e){return TV(e,l,t[0])}))}}).updateManyToMany(function(t,e){new Pm(e,t,function(t){return r[t].data.getId(r[t].dataIndex)},function(t){return i[t].data.getId(i[t].dataIndex)}).update(function(n,r){m(t[n],e[r])}).execute()}).execute(),u&&Object(g.each)(e,function(t){var e=t.data.hostModel,r=e&&n.getViewOfSeriesModel(e),i=Jl("update",e,0);r&&e.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(t){t instanceof qo&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)})})}function LV(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function jV(t){return Object(g.isArray)(t)?t.sort().join(","):t}function NV(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function RV(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}n.d(e,"version",function(){return"5.4.2"}),n.d(e,"dependencies",function(){return cv}),n.d(e,"PRIORITY",function(){return pv}),n.d(e,"init",function(){return nm}),n.d(e,"connect",function(){return rm}),n.d(e,"disConnect",function(){return im}),n.d(e,"disconnect",function(){return om}),n.d(e,"dispose",function(){return am}),n.d(e,"getInstanceByDom",function(){return sm}),n.d(e,"getInstanceById",function(){return lm}),n.d(e,"registerTheme",function(){return um}),n.d(e,"registerPreprocessor",function(){return cm}),n.d(e,"registerProcessor",function(){return hm}),n.d(e,"registerPostInit",function(){return dm}),n.d(e,"registerPostUpdate",function(){return fm}),n.d(e,"registerUpdateLifecycle",function(){return pm}),n.d(e,"registerAction",function(){return gm}),n.d(e,"registerCoordinateSystem",function(){return vm}),n.d(e,"getCoordinateSystemDimensions",function(){return mm}),n.d(e,"registerLocale",function(){return xc}),n.d(e,"registerLayout",function(){return ym}),n.d(e,"registerVisual",function(){return bm}),n.d(e,"registerLoading",function(){return wm}),n.d(e,"setCanvasCreator",function(){return Sm}),n.d(e,"registerMap",function(){return Cm}),n.d(e,"getMap",function(){return km}),n.d(e,"registerTransform",function(){return Om}),n.d(e,"dataTool",function(){return Mm}),n.d(e,"zrender",function(){return o}),n.d(e,"matrix",function(){return i}),n.d(e,"vector",function(){return r}),n.d(e,"zrUtil",function(){return g}),n.d(e,"color",function(){return Pe}),n.d(e,"throttle",function(){return Op}),n.d(e,"helper",function(){return s}),n.d(e,"use",function(){return Am}),n.d(e,"setPlatformAPI",function(){return Ln.e}),n.d(e,"parseGeoJSON",function(){return $b}),n.d(e,"parseGeoJson",function(){return $b}),n.d(e,"number",function(){return l}),n.d(e,"time",function(){return u}),n.d(e,"graphic",function(){return c}),n.d(e,"format",function(){return h}),n.d(e,"util",function(){return d}),n.d(e,"env",function(){return p.a}),n.d(e,"List",function(){return ry}),n.d(e,"Model",function(){return hc}),n.d(e,"Axis",function(){return t_}),n.d(e,"ComponentModel",function(){return Sh}),n.d(e,"ComponentView",function(){return dp}),n.d(e,"SeriesModel",function(){return cp}),n.d(e,"ChartView",function(){return wp}),n.d(e,"innerDrawElementOnCanvas",function(){return tv}),n.d(e,"extendComponentModel",function(){return e_}),n.d(e,"extendComponentView",function(){return n_}),n.d(e,"extendSeriesModel",function(){return r_}),n.d(e,"extendChartView",function(){return i_}),Am([function(t){t.registerPainter("canvas",iw)}]),Am([function(t){t.registerPainter("svg",tw)}]),Am([function(t){t.registerChartView(Bw),t.registerSeriesModel(ow),t.registerLayout(Fw("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$w("line"))},function(t){t.registerChartView(gS),t.registerSeriesModel(Ww),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,g.curry(Vy,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$y("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$w("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})},function(t){t.registerChartView(ES),t.registerSeriesModel(DS),fg("pie",t.registerAction),t.registerLayout(Object(g.curry)(_S,"pie")),t.registerProcessor(xS("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(g.isNumber)(r)&&!isNaN(r)&&r<0)})}})},function(t){Am(DC),t.registerSeriesModel(PS),t.registerChartView(RS),t.registerLayout(Fw("scatter"))},function(t){Am(UC),t.registerChartView(RC),t.registerSeriesModel(BC),t.registerLayout(PC),t.registerProcessor(xS("radar")),t.registerPreprocessor(NC)},function(t){Am(mO),t.registerChartView(Jk),t.registerSeriesModel(Qk),t.registerLayout(eO),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,tO),fg("map",t.registerAction)},function(t){t.registerChartView(jO),t.registerSeriesModel(KO),t.registerLayout(QO),t.registerVisual(tM),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var n=t.dataIndex,r=e.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var r=pO(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)})})}(t)},function(t){t.registerSeriesModel(rM),t.registerChartView(bM),t.registerVisual(BM),t.registerLayout(ZM),function(t){for(var e=0;e<eM.length;e++)t.registerAction({type:eM[e],update:"updateView"},g.noop);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},function(e,n){var r=YO(t,["treemapZoomToNode","treemapRootToNode"],e);if(r){var i=e.getViewRoot();i&&(t.direction=qO(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}})})}(t)},function(t){t.registerChartView(qE),t.registerSeriesModel(rT),t.registerProcessor(tE),t.registerVisual(eE),t.registerVisual(rE),t.registerLayout(pE),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,wE),t.registerLayout(CE),t.registerCoordinateSystem("graphView",{dimensions:iO.dimensions,create:kE}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},g.noop),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},g.noop),t.registerAction(iT,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(e){var r=pO(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)})})},function(t){t.registerChartView(lT),t.registerSeriesModel(uT)},function(t){t.registerChartView(dT),t.registerSeriesModel(fT),t.registerLayout(pT),t.registerProcessor(xS("funnel"))},function(t){Am(HA),t.registerChartView(_T),t.registerSeriesModel(wT),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,CT)},function(t){t.registerChartView(YA),t.registerSeriesModel(XA),t.registerLayout(qA),t.registerVisual(sI),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})},function(t){t.registerSeriesModel(cI),t.registerChartView(vI),t.registerLayout(yI),t.registerTransform(bI)},function(t){t.registerChartView(II),t.registerSeriesModel(PI),t.registerPreprocessor(LI),t.registerVisual(zI),t.registerLayout($I)},function(t){t.registerChartView(WI),t.registerSeriesModel(UI),t.registerLayout(Fw("effectScatter"))},function(t){t.registerChartView(tD),t.registerSeriesModel(iD),t.registerLayout(QI),t.registerVisual(aD)},function(t){t.registerChartView(uD),t.registerSeriesModel(cD)},function(t){t.registerChartView(ID),t.registerSeriesModel(DD),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(g.curry)(Vy,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$y("pictorialBar"))},function(t){t.registerChartView(PD),t.registerSeriesModel(LD),t.registerLayout(jD),t.registerProcessor(xS("themeRiver"))},function(t){t.registerChartView(GD),t.registerSeriesModel(HD),t.registerLayout(Object(g.curry)(UD,"sunburst")),t.registerProcessor(Object(g.curry)(xS,"sunburst")),t.registerVisual(YD),function(t){t.registerAction({type:zD,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){var r=YO(t,[zD],e);if(r){var i=e.getViewRoot();i&&(t.direction=qO(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}})}),t.registerAction({type:VD,update:"none"},function(t,e,n){t=Object(g.extend)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e){var n=YO(t,[VD],e);n&&(t.dataIndex=n.node.dataIndex)}),n.dispatchAction(Object(g.extend)(t,{type:"highlight"}))}),t.registerAction({type:$D,update:"updateView"},function(t,e,n){t=Object(g.extend)({},t),n.dispatchAction(Object(g.extend)(t,{type:"downplay"}))})}(t)},function(t){t.registerChartView(RP),t.registerSeriesModel(KD)}]),Am(function(t){Am(DC),Am(RL)}),Am(function(t){Am(RL),_C.registerAxisPointerClass("PolarAxisPointer",zL),t.registerCoordinateSystem("polar",ej),t.registerComponentModel(VL),t.registerComponentView(bj),WS(t,"angle",GL,mj),WS(t,"radius",HL,yj),t.registerComponentView(lj),t.registerComponentView(fj),t.registerLayout(Object(g.curry)(vj,"bar"))}),Am(mO),Am(function(t){Am(RL),_C.registerAxisPointerClass("SingleAxisPointer",Fj),t.registerComponentView(zj),t.registerComponentView(kj),t.registerComponentModel(Mj),WS(t,"single",Mj,Mj.defaultOption),t.registerCoordinateSystem("single",Dj)}),Am(HA),Am(function(t){t.registerComponentModel($j),t.registerComponentView(Gj),t.registerCoordinateSystem("calendar",Wj)}),Am(function(t){t.registerComponentModel(Zj),t.registerComponentView(Qj),t.registerPreprocessor(function(t){var e=t.graphic;Object(g.isArray)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),Am(function(t){t.registerComponentModel(ON),t.registerComponentView(EN),CN("saveAsImage",TN),CN("magicType",PN),CN("dataView",VN),CN("dataZoom",fR),CN("restore",UN),Am(xN)}),Am(function(t){Am(RL),t.registerComponentModel(pR),t.registerComponentView(LR),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},g.noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},g.noop)}),Am(RL),Am(function(t){t.registerComponentView(QR),t.registerComponentModel(eB),t.registerPreprocessor(NR),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,XR),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},g.noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},g.noop),CN("brush",rB)}),Am(function(t){t.registerComponentModel(iB),t.registerComponentView(oB)}),Am(function(t){t.registerComponentModel(lB),t.registerComponentView(gB),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(g.defaults)({currentIndex:r.option.currentIndex},t)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})}(t),t.registerPreprocessor(vB)}),Am(function(t){t.registerComponentModel(CB),t.registerComponentView(NB),t.registerPreprocessor(function(t){bB(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}),Am(function(t){t.registerComponentModel(RB),t.registerComponentView(HB),t.registerPreprocessor(function(t){bB(t.series,"markLine")&&(t.markLine=t.markLine||{})})}),Am(function(t){t.registerComponentModel(WB),t.registerComponentView(QB),t.registerPreprocessor(function(t){bB(t.series,"markArea")&&(t.markArea=t.markArea||{})})}),Am(function(t){Am(hF),Am(yF)}),Am(function(t){Am(AF),Am(FF)}),Am(AF),Am(FF),Am(function(t){Am(xz),Am(Mz)}),Am(xz),Am(Mz),Am(function(t){t.registerPreprocessor(Dz),t.registerVisual(t.PRIORITY.VISUAL.ARIA,Iz)}),Am(function(t){t.registerTransform(Hz),t.registerTransform(Wz)}),Am(function(t){t.registerComponentModel(Uz),t.registerComponentView(Yz)}),Am(function(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){Object(g.each)(Vr(n.seriesTransition),function(t){Object(g.each)(Vr(t.to),function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r][ep]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(t,e,n){var r=MV(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(g.each)(Vr(i),function(t){!function(t,e,n,r){var i=[],o=[];Object(g.each)(Vr(t.from),function(t){var n=RV(e.oldSeries,t);n>=0&&i.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:NV(e.oldData[n]),dim:t.dimension})}),Object(g.each)(Vr(t.to),function(t){var r=RV(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:NV(i),dim:t.dimension})}}),i.length>0&&o.length>0&&PV(i,o,r)}(t,r,n,e)});else{var o=function(t,e){var n=Object(g.createHashMap)(),r=Object(g.createHashMap)(),i=Object(g.createHashMap)();return Object(g.each)(t.oldSeries,function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=LV(e),l=jV(s);r.set(l,{dataGroupId:o,data:a}),Object(g.isArray)(s)&&Object(g.each)(s,function(t){i.set(t,{key:l,dataGroupId:o,data:a})})}),Object(g.each)(e.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=LV(t),s=jV(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:NV(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:NV(o),data:o}]});else if(Object(g.isArray)(a)){var u=[];Object(g.each)(a,function(t){var e=r.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:NV(e.data),data:e.data})}),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:NV(o)}]})}else{var c=i.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:NV(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:NV(o)})}}}}),n}(r,n);Object(g.each)(o.keys(),function(t){var n=o.get(t);PV(n.oldSeries,n.newSeries,e)})}Object(g.each)(n.updatedSeries,function(t){t[ep]&&(t[ep]=!1)})}for(var a=t.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<OV&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}})}),Am($_)},Xc4G:function(t,e,n){var r=n("lktj"),i=n("1kS7"),o=n("NpIQ");t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},Xd32:function(t,e,n){n("+tPU"),n("zQR9"),t.exports=n("5PlU")},XfW5:function(t,e,n){"use strict";var r=n("PiFy");t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},XgCd:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:o,RFC3986:a}},Xjd4:function(t,e,n){n("9Bbf")("Map")},XmWM:function(t,e,n){"use strict";var r=n("cGG2"),i=n("DQCr"),o=n("fuGk"),a=n("xLtR"),s=n("DUeU");function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(t){l.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}}),t.exports=l},Xxa5:function(t,e,n){t.exports=n("jyFz")},"Y/tY":function(t,e,n){var r=n("72Lu"),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,u=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:u})}a.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s===a?e=0:r===s?e=(i-o)/l:i===s?e=2+(o-r)/l:o===s&&(e=4+(r-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),h=function(t){return(u-t)/6/c+.5};return 0===c?i=o=0:(o=c/u,e=h(a),n=h(s),r=h(l),a===u?i=r-n:s===u?i=1/3+e-r:l===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,o,a,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var u=r[l],c=(o=t,a=u,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,n=l)}return n},a.keyword.rgb=function(t){return r[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[o=255*l,o,o];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[u]=255*o;return i},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(r/=2)]},a.hwb.rgb=function(t){var e,n,r,i,o,a,s,l=t[0]/360,u=t[1]/100,c=t[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),n=1-c,r=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(r=1-r),i=u+r*(n-u),e){default:case 6:case 0:o=n,a=i,s=u;break;case 1:o=i,a=n,s=u;break;case 2:o=u,a=n,s=i;break;case 3:o=u,a=i,s=n;break;case 4:o=i,a=u,s=n;break;case 5:o=n,a=u,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(t){var e,n,r,i=t[0],o=t[1],a=t[2];e=o/500+(n=(i+16)/116),r=n-a/200;var s=Math.pow(n,3),l=Math.pow(e,3),u=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,e=l>.008856?l:(e-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},a.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},a.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),l=a-s;return e=l<1?s/(1-l):0,n=l<=0?0:a===r?(i-o)/l%6:a===i?2+(o-r)/l:4+(r-i)/l+4,n/=6,[360*(n%=1),100*l,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=e%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},Y1ED:function(t,e,n){"use strict";var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=r},Y4K9:function(t,e,n){var r=n("ZFR3");t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},Y5mS:function(t,e,n){"use strict";var r,i=n("lFkc");i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */,t.exports=function(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},Y9x2:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.cells=[],this.columnNum=0,this.rowNum=0,this.additionColumn=[],this.additionRow=[]}return t.prototype.init=function(e,n,r){this.cells=[],this.CELL_W=r.CELL_W||t.DEFAULT_CELL_W,this.CELL_H=r.CELL_H||t.DEFAULT_CELL_H,this.columnNum=Math.ceil(e/this.CELL_W),this.rowNum=Math.ceil(n/this.CELL_H),t.MIN_DIST=Math.pow(e,2)+Math.pow(n,2);for(var i=0;i<this.columnNum;i++){for(var o=[],a=0;a<this.rowNum;a++){var s={dx:i,dy:a,x:i*this.CELL_W,y:a*this.CELL_H,occupied:!1};o.push(s)}this.cells.push(o)}},t.prototype.findGridByNodeId=function(t){for(var e,n,r=0;r<this.columnNum;r++)for(var i=0;i<this.rowNum;i++)if(this.cells[r][i].node&&(null===(n=null===(e=this.cells[r][i])||void 0===e?void 0:e.node)||void 0===n?void 0:n.id)===t)return{column:r,row:i};return null},t.prototype.sqdist=function(t,e){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)},t.prototype.occupyNearest=function(e){for(var n,r=t.MIN_DIST,i=null,o=0;o<this.columnNum;o++)for(var a=0;a<this.rowNum;a++)!this.cells[o][a].occupied&&(n=this.sqdist(e,this.cells[o][a]))<r&&(r=n,i=this.cells[o][a]);return i&&(i.occupied=!0),i},t.prototype.insertColumn=function(t,e){if(!(e<=0)){for(var n=0;n<e;n++){this.cells[n+this.columnNum]=[];for(var i=0;i<this.rowNum;i++)this.cells[n+this.columnNum][i]={dx:n,dy:i,x:n*this.CELL_W,y:i*this.CELL_H,occupied:!1,node:null}}for(n=this.columnNum-1;n>t;n--)for(i=0;i<this.rowNum;i++)this.cells[n+e][i]=r(r({},this.cells[n][i]),{x:(n+e)*this.CELL_W,y:i*this.CELL_H}),this.cells[n][i]={x:n*this.CELL_W,y:i*this.CELL_H,occupied:!0,node:null};for(i=0;i<this.additionColumn.length;i++)this.additionColumn[i]>=t&&(this.additionColumn[i]+=e);for(n=0;n<e;n++)this.additionColumn.push(t+n+1);this.columnNum+=e}},t.prototype.insertRow=function(t,e){if(!(e<=0)){for(var n=0;n<e;n++)for(var i=0;i<this.columnNum;i++)this.cells[i][n+this.rowNum]={dx:i,dy:n,x:i*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(i=0;i<this.columnNum;i++)for(n=this.rowNum-1;n>t;n--)this.cells[i][n+e]=r(r({},this.cells[i][n]),{dx:i,dy:n+e,x:i*this.CELL_W,y:(n+e)*this.CELL_H}),this.cells[i][n]={dx:i,dy:n,x:i*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(n=0;n<this.additionRow.length;n++)this.additionRow[n]>=t&&(this.additionRow[n]+=e);for(i=0;i<e;i++)this.additionRow.push(t+i+1);this.rowNum+=e}},t.prototype.getNodes=function(){for(var t=[],e=0;e<this.columnNum;e++)for(var n=0;n<this.rowNum;n++)this.cells[e][n].node&&t.push(this.cells[e][n]);return t},t.MIN_DIST=50,t.DEFAULT_CELL_W=80,t.DEFAULT_CELL_H=80,t}();e.default=i},YAhB:function(t,e,n){"use strict";var r=n("++K3"),i=n("Y5mS"),o=10,a=40,s=800;function l(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*o,i=n*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=l},YNYx:function(t,e,n){"use strict";var r=n("+N5+").isSpace;t.exports=function(t,e){var n,i,o,a=t.pos;if(10!==t.src.charCodeAt(a))return!1;if(n=t.pending.length-1,i=t.posMax,!e)if(n>=0&&32===t.pending.charCodeAt(n))if(n>=1&&32===t.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===t.pending.charCodeAt(o-1);)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a<i&&r(t.src.charCodeAt(a));)a++;return t.pos=a,!0}},YNzw:function(t,e,n){"use strict";var r=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),i=new(function(){return function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i),e.a=i},"YPq+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=i,e.clone=function(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=function(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=a,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=u,e.squaredDistance=c,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;o>0&&(o=1/Math.sqrt(o));return t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},e.dot=d,e.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,t[2]=r*s-i*a,t},e.lerp=function(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t},e.hermite=function(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,u=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t},e.bezier=function(t,e,n,r,i,o){var a=1-o,s=a*a,l=o*o,u=s*a,c=3*o*s,h=3*l*a,d=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*d,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*d,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*d,t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*s-r*u,d=r*l-i*s,f=i*d-o*h,p=o*c-r*d,g=r*h-i*c,v=2*a;return c*=v,h*=v,d*=v,f*=2,p*=2,g*=2,t[0]=s+c+f,t[1]=l+h+p,t[2]=u+d+g,t},e.rotateX=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.angle=function(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],l=Math.sqrt(n*n+r*r+i*i),u=Math.sqrt(o*o+a*a+s*s),c=l*u,h=c&&d(t,e)/c;return Math.acos(Math.min(Math.max(h,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))},n.d(e,"sub",function(){return p}),n.d(e,"mul",function(){return g}),n.d(e,"div",function(){return v}),n.d(e,"dist",function(){return m}),n.d(e,"sqrDist",function(){return y}),n.d(e,"len",function(){return b}),n.d(e,"sqrLen",function(){return _}),n.d(e,"forEach",function(){return x});var r=n("NVY2");function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function h(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function d(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}var f,p=a,g=s,v=l,m=u,y=c,b=o,_=h,x=(f=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)f[0]=t[a],f[1]=t[a+1],f[2]=t[a+2],i(f,f,o),t[a]=f[0],t[a+1]=f[1],t[a+2]=f[2];return t})},Yobk:function(t,e,n){var r=n("77Pl"),i=n("qio6"),o=n("xnc9"),a=n("ax3d")("IE_PROTO"),s=function(){},l=function(){var t,e=n("ON07")("iframe"),r=o.length;for(e.style.display="none",n("RPLV").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[o[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:i(n,e)}},YsVG:function(t,e,n){var r=n("z4hc"),i=n("S7p9"),o=n("Dc0G"),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},Z60a:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},ZE1E:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("akEr"),e),i(n("i3IR"),e),i(n("yKiC"),e),i(n("PRxO"),e),i(n("hTOL"),e),i(n("N8pi"),e)},ZFR3:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},Zcwg:function(t,e,n){"use strict";e.__esModule=!0;var r=n("2kvA");var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.beforeEnter=function(t){(0,r.addClass)(t,"collapse-transition"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},t.prototype.enter=function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},t.prototype.afterEnter=function(t){(0,r.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},t.prototype.beforeLeave=function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},t.prototype.leave=function(t){0!==t.scrollHeight&&((0,r.addClass)(t,"collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},t.prototype.afterLeave=function(t){(0,r.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},t}();e.default={name:"ElCollapseTransition",functional:!0,render:function(t,e){var n=e.children;return t("transition",{on:new i},n)}}},ZoBt:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.GForceGPULayout=void 0;var s=n("w9t0"),l=n("ZE1E"),u=n("JKCU"),c=n("6hwo"),h=n("PRxO"),d=n("OqTO"),f=n("D9Z3"),p=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.workerEnabled=!1,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:2e3,gravity:10,clustering:!1,clusterGravity:10}},e.prototype.execute=function(){return o(this,void 0,void 0,function(){var t,e,n,r,i;return a(this,function(o){switch(o.label){case 0:return(e=(t=this).nodes)&&0!==e.length?(t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]),n=t.center,1===e.length?(e[0].x=n[0],e[0].y=n[1],t.onLayoutEnd&&t.onLayoutEnd(),[2]):(r={},i={},e.forEach(function(e,n){(0,l.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,l.isNumber)(e.y)||(e.y=Math.random()*t.height),r[e.id]=e,i[e.id]=n}),t.nodeMap=r,t.nodeIdxMap=i,t.nodeStrength=(0,c.proccessToFunc)(t.nodeStrength,1),t.edgeStrength=(0,c.proccessToFunc)(t.edgeStrength,1),[4,t.run()])):(t.onLayoutEnd&&t.onLayoutEnd(),[2]);case 1:return o.sent(),[2]}})})},e.prototype.executeWithWorker=function(t,e){var n=this,r=n.nodes,i=n.center;if(r&&0!==r.length){if(1===r.length)return r[0].x=i[0],void(r[0].y=i[1]);var o={},a={};r.forEach(function(t,e){(0,l.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,l.isNumber)(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,a[t.id]=e}),n.nodeMap=o,n.nodeIdxMap=a,n.nodeStrength=(0,c.proccessToFunc)(n.nodeStrength,1),n.edgeStrength=(0,c.proccessToFunc)(n.edgeStrength,1),n.run(t,e)}},e.prototype.run=function(t,e){return o(this,void 0,void 0,function(){var n,r,i,s,p,g,v,m,y,b,_,x,w,S,C,k,O,M,E,T,A,I,D,P,L,j,N=this;return a(this,function(R){switch(R.label){case 0:for(r=(n=this).nodes,i=n.edges,s=n.maxIteration,n.width||"undefined"==typeof window||(n.width=window.innerWidth),n.height||"undefined"==typeof window||(n.height=window.innerHeight),p=r.length,n.linkDistance=(0,c.proccessToFunc)(n.linkDistance),n.edgeStrength=(0,c.proccessToFunc)(n.edgeStrength),g=(0,c.buildTextureDataWithTwoEdgeAttr)(r,i,n.linkDistance,n.edgeStrength),v=g.maxEdgePerVetex,m=g.array,n.degrees=(0,h.getDegree)(r.length,n.nodeIdxMap,i).map(function(t){return t.all}),y=[],b=[],_=[],x=[],w=[],S=[],C=[],n.getMass||(n.getMass=function(t){return n.degrees[n.nodeIdxMap[t.id]]||1}),k=n.gravity,O=n.center,r.forEach(function(t,e){y.push(n.getMass(t)),b.push(n.nodeStrength(t)),n.degrees[e]||(n.degrees[e]=0);var r=[O[0],O[1],k];if(n.getCenter){var i=n.getCenter(t,n.degrees[e]);i&&(0,l.isNumber)(i[0])&&(0,l.isNumber)(i[1])&&(0,l.isNumber)(i[2])&&(r=i)}_.push(r[0]),x.push(r[1]),w.push(r[2]),(0,l.isNumber)(t.fx)&&(0,l.isNumber)(t.fy)?(S.push(t.fx||.001),C.push(t.fy||.001)):(S.push(0),C.push(0))}),M=(0,c.arrayToTextureData)([y,n.degrees,b,S]),E=(0,c.arrayToTextureData)([_,x,w,C]),T=n.workerEnabled,A=T?u.World.create({canvas:t,engineOptions:{supportCompute:!0}}):u.World.create({engineOptions:{supportCompute:!0}}),I=n.onLayoutEnd,D=[],m.forEach(function(t){D.push(t)}),P=0;P<4;P++)D.push(0);return L=A.createKernel(d.gForceBundle).setDispatch([p,1,1]).setBinding({u_Data:m,u_damping:n.damping,u_maxSpeed:n.maxSpeed,u_minMovement:n.minMovement,u_coulombDisScale:n.coulombDisScale,u_factor:n.factor,u_NodeAttributeArray1:M,u_NodeAttributeArray2:E,MAX_EDGE_PER_VERTEX:v,VERTEX_COUNT:p,u_AveMovement:D,u_interval:n.interval}),j=A.createKernel(d.aveMovementBundle).setDispatch([1,1,1]).setBinding({u_Data:m,VERTEX_COUNT:p,u_AveMovement:[0,0,0,0]}),[4,function(){return o(N,void 0,void 0,function(){var i,o,l;return a(this,function(a){switch(a.label){case 0:i=0,a.label=1;case 1:return i<s?[4,L.execute()]:[3,5];case 2:return a.sent(),j.setBinding({u_Data:L}),[4,j.execute()];case 3:a.sent(),o=Math.max(.02,n.interval-.002*i),L.setBinding({u_interval:o,u_AveMovement:j}),a.label=4;case 4:return i++,[3,1];case 5:return[4,L.getOutput()];case 6:return l=a.sent(),t?e.postMessage({type:f.LAYOUT_MESSAGE.GPUEND,vertexEdgeData:l}):r.forEach(function(t,e){var n=l[4*e],r=l[4*e+1];t.x=n,t.y=r}),I&&I(),[2]}})})}()];case 1:return R.sent(),[2]}})})},e.prototype.getType=function(){return"gForce-gpu"},e}(s.Base);e.GForceGPULayout=p},Zoe1:function(t,e,n){"use strict";var r=n("7ar3"),i=n("gcUb"),o=n("GybJ"),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),g=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+o(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return u(t,r)}else if(l){if(e)return d(e,r)}else if(n)return function(t,e){var n=g(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return h(t,r)}else if(l){if(e)return p(e,r)}else if(n)return function(t,e){return!!g(t,e)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),c(t,r,i)):l?(e||(e=new l),f(e,r,i)):(n||(n={key:{},next:null}),function(t,e,n){var r=g(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,i))}};return r}},Zzip:function(t,e,n){t.exports={default:n("/n6Q"),__esModule:!0}},aBKc:function(t,e,n){"use strict";var r=n("+N5+").isSpace;function i(t,e){var n,i,o,a;return i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],42!==(n=t.src.charCodeAt(i++))&&45!==n&&43!==n?-1:i<o&&(a=t.src.charCodeAt(i),!r(a))?-1:i}function o(t,e){var n,i=t.bMarks[e]+t.tShift[e],o=i,a=t.eMarks[e];if(o+1>=a)return-1;if((n=t.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=t.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o<a&&(n=t.src.charCodeAt(o),!r(n))?-1:o}t.exports=function(t,e,n,r){var a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C,k,O,M,E,T,A,I,D,P=e,L=!1,j=!0;if(t.sCount[P]-t.blkIndent>=4)return!1;if(t.listIndent>=0&&t.sCount[P]-t.listIndent>=4&&t.sCount[P]<t.blkIndent)return!1;if(r&&"paragraph"===t.parentType&&t.sCount[P]>=t.blkIndent&&(L=!0),(M=o(t,P))>=0){if(d=!0,T=t.bMarks[P]+t.tShift[P],y=Number(t.src.slice(T,M-1)),L&&1!==y)return!1}else{if(!((M=i(t,P))>=0))return!1;d=!1}if(L&&t.skipSpaces(M)>=t.eMarks[P])return!1;if(r)return!0;for(m=t.src.charCodeAt(M-1),v=t.tokens.length,d?(D=t.push("ordered_list_open","ol",1),1!==y&&(D.attrs=[["start",y]])):D=t.push("bullet_list_open","ul",1),D.map=g=[P,0],D.markup=String.fromCharCode(m),E=!1,I=t.md.block.ruler.getRules("list"),w=t.parentType,t.parentType="list";P<n;){for(O=M,b=t.eMarks[P],h=_=t.sCount[P]+M-(t.bMarks[P]+t.tShift[P]);O<b;){if(9===(a=t.src.charCodeAt(O)))_+=4-(_+t.bsCount[P])%4;else{if(32!==a)break;_++}O++}if((c=(s=O)>=b?1:_-h)>4&&(c=1),u=h+c,(D=t.push("list_item_open","li",1)).markup=String.fromCharCode(m),D.map=f=[P,0],d&&(D.info=t.src.slice(T,M-1)),k=t.tight,C=t.tShift[P],S=t.sCount[P],x=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=u,t.tight=!0,t.tShift[P]=s-t.bMarks[P],t.sCount[P]=_,s>=b&&t.isEmpty(P+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,P,n,!0),t.tight&&!E||(j=!1),E=t.line-P>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=x,t.tShift[P]=C,t.sCount[P]=S,t.tight=k,(D=t.push("list_item_close","li",-1)).markup=String.fromCharCode(m),P=t.line,f[1]=P,P>=n)break;if(t.sCount[P]<t.blkIndent)break;if(t.sCount[P]-t.blkIndent>=4)break;for(A=!1,l=0,p=I.length;l<p;l++)if(I[l](t,P,n,!0)){A=!0;break}if(A)break;if(d){if((M=o(t,P))<0)break;T=t.bMarks[P]+t.tShift[P]}else if((M=i(t,P))<0)break;if(m!==t.src.charCodeAt(M-1))break}return(D=d?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),g[1]=P,t.line=P,t.parentType=w,j&&function(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}(t,v),!0}},aCM0:function(t,e,n){var r=n("NkRn"),i=n("uLhX"),o=n("+66z"),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:l&&l in Object(t)?i(t):o(t)}},aMwW:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=131)}({131:function(t,e,n){"use strict";n.r(e);var r=n(5),i=n.n(r),o=n(17),a=n.n(o),s=n(2),l=n(3),u=n(7),c=n.n(u),h={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=a()(200,function(){return t.handleClosePopper()}))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s.on)(this.referenceElm,"mouseenter",this.show),Object(s.on)(this.referenceElm,"mouseleave",this.hide),Object(s.on)(this.referenceElm,"focus",function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()}),Object(s.on)(this.referenceElm,"blur",this.handleBlur),Object(s.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){t.value&&t.updatePopper()})},watch:{focusing:function(t){t?Object(s.addClass)(this.referenceElm,"focusing"):Object(s.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.showPopper=!0},this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout(function(){t.showPopper=!1},this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)t[n]&&t[n].tag&&(e=t[n]);return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(s.off)(t,"mouseenter",this.show),Object(s.off)(t,"mouseleave",this.hide),Object(s.off)(t,"focus",this.handleFocus),Object(s.off)(t,"blur",this.handleBlur),Object(s.off)(t,"click",this.removeFocusing))},install:function(t){t.component(h.name,h)}};e.default=h},17:function(t,e){t.exports=n("ON3O")},2:function(t,e){t.exports=n("2kvA")},3:function(t,e){t.exports=n("ylDJ")},5:function(t,e){t.exports=n("fKx3")},7:function(t,e){t.exports=n("7+uW")}})},aW5l:function(t,e,n){"use strict";e.__esModule=!0;n("ylDJ");e.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},ai7u:function(t,e,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,i=/\((c|tm|r)\)/i,o=/\((c|tm|r)\)/gi,a={c:"©",r:"®",tm:"™"};function s(t,e){return a[e.toLowerCase()]}function l(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)"text"!==(n=t[e]).type||r||(n.content=n.content.replace(o,s)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function u(t){var e,n,i=0;for(e=t.length-1;e>=0;e--)"text"!==(n=t[e]).type||i||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}t.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(i.test(t.tokens[e].content)&&l(t.tokens[e].children),r.test(t.tokens[e].content)&&u(t.tokens[e].children))}},aj7g:function(t,e){var n="auto",r={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};function o(t){return"string"==typeof t&&(!!i[t.toLowerCase()]&&t.toLowerCase())}function a(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function s(t,e,i){var s=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?s=document.createElement("custom"):u.enumerable=!0,s.hasBeenReset=!1;var c="",h=!1,d=t,f=e,p=i,g=null,v="",m=!0,y="auto",b="start",_=50,x="middle",w=50,S="middle";if(Object.defineProperty(s,"id",a({},u,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(s,"pauseOnExit",a({},u,{get:function(){return h},set:function(t){h=!!t}})),Object.defineProperty(s,"startTime",a({},u,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",a({},u,{get:function(){return f},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",a({},u,{get:function(){return p},set:function(t){p=""+t,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",a({},u,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",a({},u,{get:function(){return v},set:function(t){var e=function(t){return"string"==typeof t&&!!r[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",a({},u,{get:function(){return m},set:function(t){m=!!t,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",a({},u,{get:function(){return y},set:function(t){if("number"!=typeof t&&t!==n)throw new SyntaxError("An invalid number or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",a({},u,{get:function(){return b},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",a({},u,{get:function(){return _},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",a({},u,{get:function(){return x},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",a({},u,{get:function(){return w},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",a({},u,{get:function(){return S},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");S=e,this.hasBeenReset=!0}})),s.displayState=void 0,l)return s}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=s},akEr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=e.isString=void 0;e.isString=function(t){return"string"==typeof t};var r,i,o=/-(\w)/g;e.camelize=(r=function(t){return t.replace(o,function(t,e){return e?e.toUpperCase():""})},i=Object.create(null),function(t){return i[t]||(i[t]=r(t))})},awF4:function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(e,n("DuR2"))},ax3d:function(t,e,n){var r=n("e8AB")("keys"),i=n("3Eo+");t.exports=function(t){return r[t]||(r[t]=i(t))}},bOdI:function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("C4MV"),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},bRrM:function(t,e,n){"use strict";var r=n("7KvD"),i=n("FeBl"),o=n("evD5"),a=n("+E39"),s=n("dSzd")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},blYT:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n("DuR2"))},bltL:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,l,u,c,h,d,f=t._root,p={data:r},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((u=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a,i=f,!(f=f[h=c<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===s&&n===l)return p.next=f,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a}while((h=c<<1|u)==(d=(l>=a)<<1|s>=o));return i[d]=f,i[h]=p,t}var i=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function o(t){return t[0]}function a(t){return t[1]}function s(t,e,n){var r=new l(null==e?o:e,null==n?a:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function l(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function u(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var c=s.prototype=l.prototype;c.copy=function(){var t,e,n=new l(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=u(e));return n},c.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},c.addAll=function(t){var e,n,i,o,a=t.length,s=new Array(a),l=new Array(a),u=1/0,c=1/0,h=-1/0,d=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(s[n]=i,l[n]=o,i<u&&(u=i),i>h&&(h=i),o<c&&(c=o),o>d&&(d=o));if(u>h||c>d)return this;for(this.cover(u,c).cover(h,d),n=0;n<a;++n)r(this,s[n],l[n],t[n]);return this},c.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,s,l=i-n||1,u=this._root;n>t||t>=i||r>e||e>=o;)switch(s=(e<r)<<1|t<n,(a=new Array(4))[s]=u,u=a,l*=2,s){case 0:i=n+l,o=r+l;break;case 1:n=i-l,o=r+l;break;case 2:i=n+l,r=o-l;break;case 3:n=i-l,r=o-l}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},c.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},c.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},c.find=function(t,e,n){var r,o,a,s,l,u,c,h=this._x0,d=this._y0,f=this._x1,p=this._y1,g=[],v=this._root;for(v&&g.push(new i(v,h,d,f,p)),null==n?n=1/0:(h=t-n,d=e-n,f=t+n,p=e+n,n*=n);u=g.pop();)if(!(!(v=u.node)||(o=u.x0)>f||(a=u.y0)>p||(s=u.x1)<h||(l=u.y1)<d))if(v.length){var m=(o+s)/2,y=(a+l)/2;g.push(new i(v[3],m,y,s,l),new i(v[2],o,y,m,l),new i(v[1],m,a,s,y),new i(v[0],o,a,m,y)),(c=(e>=y)<<1|t>=m)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=u)}else{var b=t-+this._x.call(null,v.data),_=e-+this._y.call(null,v.data),x=b*b+_*_;if(x<n){var w=Math.sqrt(n=x);h=t-w,d=e-w,f=t+w,p=e+w,r=v.data}}return r},c.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,s,l,u,c,h,d,f=this._root,p=this._x0,g=this._y0,v=this._x1,m=this._y1;if(!f)return this;if(f.length)for(;;){if((u=o>=(s=(p+v)/2))?p=s:v=s,(c=a>=(l=(g+m)/2))?g=l:m=l,e=f,!(f=f[h=c<<1|u]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=i,this)},c.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},c.root=function(){return this._root},c.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},c.visit=function(t){var e,n,r,o,a,s,l=[],u=this._root;for(u&&l.push(new i(u,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(u=e.node,r=e.x0,o=e.y0,a=e.x1,s=e.y1)&&u.length){var c=(r+a)/2,h=(o+s)/2;(n=u[3])&&l.push(new i(n,c,h,a,s)),(n=u[2])&&l.push(new i(n,r,h,c,s)),(n=u[1])&&l.push(new i(n,c,o,a,h)),(n=u[0])&&l.push(new i(n,r,o,c,h))}return this},c.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var o=e.node;if(o.length){var a,s=e.x0,l=e.y0,u=e.x1,c=e.y1,h=(s+u)/2,d=(l+c)/2;(a=o[0])&&n.push(new i(a,s,l,h,d)),(a=o[1])&&n.push(new i(a,h,l,u,d)),(a=o[2])&&n.push(new i(a,s,d,h,c)),(a=o[3])&&n.push(new i(a,h,d,u,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},c.x=function(t){return arguments.length?(this._x=t,this):this._x},c.y=function(t){return arguments.length?(this._y=t,this):this._y},n.d(e,"quadtree",function(){return s})},bqnK:function(t,e,n){n("HpRW")("Map")},"c/Tr":function(t,e,n){t.exports={default:n("5zde"),__esModule:!0}},cGG2:function(t,e,n){"use strict";var r=n("JP+z"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},cOOB:function(t,e,n){"use strict";e.a=function(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r};var r=null},cP7J:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n("sq6L")),s=n("ZE1E");e.default=function(){function t(t){return function(){return t}}var e,n=function(t){return t.cluster},r=t(1),i=t(-1),o=t(100),l=t(.1),u=[0,0],c=[],h={},d=[],f=100,p=100,g={none:{x:0,y:0}},v=[],m="force",y=!0,b=.1;function _(t){if(!y)return _;e.tick(),w();for(var r=0,i=c.length,o=void 0,a=t*b;r<i;++r)(o=c[r]).vx+=(g[n(o)].x-o.x)*a,o.vy+=(g[n(o)].y-o.y)*a}function x(){c&&function(){if(c&&c.length){if(void 0===n(c[0]))throw Error("Couldnt find the grouping attribute for the nodes. Make sure to set it up with forceInABox.groupBy('clusterAttr') before calling .links()");var t,u,g,m,y,b,_,x=(g=[],m=[],y={},b={},_=[],b=function(t){var e={};return t.forEach(function(t){var r=n(t);e[r]||(e[r]={count:0,sumforceNodeSize:0})}),t.forEach(function(t){var i=n(t),o=r(t),a=e[i];a.count=a.count+1,a.sumforceNodeSize=a.sumforceNodeSize+Math.PI*(o*o)*1.3,e[i]=a}),e}(c),t={},u=[],d.forEach(function(e){var r=function(t){var e=(0,s.getEdgeTerminal)(t,"source"),r=(0,s.getEdgeTerminal)(t,"target"),i=n(h[e]),o=n(h[r]);return i<=o?"".concat(i,"~").concat(o):"".concat(o,"~").concat(i)}(e),i=0;void 0!==t[r]&&(i=t[r]),i+=1,t[r]=i}),Object.entries(t).forEach(function(t){var e=t[0],n=t[1],r=e.split("~")[0],i=e.split("~")[1];void 0!==r&&void 0!==i&&u.push({source:r,target:i,count:n})}),_=u,Object.keys(b).forEach(function(t,e){var n=b[t];g.push({id:t,size:n.count,r:Math.sqrt(n.sumforceNodeSize/Math.PI)}),y[t]=e}),_.forEach(function(t){var e=(0,s.getEdgeTerminal)(t,"source"),n=(0,s.getEdgeTerminal)(t,"target"),r=y[e],i=y[n];void 0!==r&&void 0!==i&&m.push({source:r,target:i,count:t.count})}),{nodes:g,links:m});e=a.forceSimulation(x.nodes).force("x",a.forceX(f).strength(.1)).force("y",a.forceY(p).strength(.1)).force("collide",a.forceCollide(function(t){return t.r}).iterations(4)).force("charge",a.forceManyBody().strength(i)).force("links",a.forceLink(x.nodes.length?x.links:[]).distance(o).strength(l)),v=e.nodes(),w()}}()}function w(){return g={none:{x:0,y:0}},v.forEach(function(t){g[t.id]={x:t.x-u[0],y:t.y-u[1]}}),g}return _.initialize=function(t){c=t,x()},_.template=function(t){return arguments.length?(m=t,x(),_):m},_.groupBy=function(t){return arguments.length?"string"==typeof t?(n=function(e){return e[t]},_):(n=t,_):n},_.enableGrouping=function(t){return arguments.length?(y=t,_):y},_.strength=function(t){return arguments.length?(b=t,_):b},_.centerX=function(t){return arguments.length?(f=t,_):f},_.centerY=function(t){return arguments.length?(p=t,_):p},_.nodes=function(t){return arguments.length?(function(t){h={},t.forEach(function(t){h[t.id]=t})}(t||[]),c=t||[],_):c},_.links=function(t){return arguments.length?(d=t||[],x(),_):d},_.forceNodeSize=function(e){return arguments.length?(r="function"==typeof e?e:t(+e),x(),_):r},_.nodeSize=_.forceNodeSize,_.forceCharge=function(e){return arguments.length?(i="function"==typeof e?e:t(+e),x(),_):i},_.forceLinkDistance=function(e){return arguments.length?(o="function"==typeof e?e:t(+e),x(),_):o},_.forceLinkStrength=function(e){return arguments.length?(l="function"==typeof e?e:t(+e),x(),_):l},_.offset=function(t){return arguments.length?(u=t,_):u},_.getFocis=w,_}},cWxy:function(t,e,n){"use strict";var r=n("dVOP");function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},ciWi:function(t,e,n){var r=n("awF4"),i=t.exports={WebVTT:n("dlST"),VTTCue:n("aj7g"),VTTRegion:n("DvOw")};r.vttjs=i,r.WebVTT=i.WebVTT;var o=i.VTTCue,a=i.VTTRegion,s=r.VTTCue,l=r.VTTRegion;i.shim=function(){r.VTTCue=o,r.VTTRegion=a},i.restore=function(){r.VTTCue=s,r.VTTRegion=l},r.VTTCue||i.shim()},crlp:function(t,e,n){var r=n("7KvD"),i=n("FeBl"),o=n("O4g8"),a=n("Kh4W"),s=n("evD5").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},d7EF:function(t,e,n){"use strict";e.__esModule=!0;var r=o(n("us/S")),i=o(n("BO1k"));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(){return function(t,e){if(Array.isArray(t))return t;if((0,r.default)(Object(t)))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var s,l=(0,i.default)(t);!(r=(s=l.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},dAFD:function(t,e,n){"use strict";e.a=function(t,e){var n=e[1],i=e[2],s=Object(r.m)(Object(r.o)(e[3]),2*Math.PI),l=e[4],u=e[5],c=t[0],h=t[1],d=e[6],f=e[7],p=Math.cos(s)*(c-d)/2+Math.sin(s)*(h-f)/2,g=-1*Math.sin(s)*(c-d)/2+Math.cos(s)*(h-f)/2,v=p*p/(n*n)+g*g/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(g*g)+i*i*(p*p),y=m?Math.sqrt((n*n*(i*i)-m)/m):1;l===u&&(y*=-1);isNaN(y)&&(y=0);var b=i?y*n*g/i:0,_=n?y*-i*p/n:0,x=(c+d)/2+Math.cos(s)*b-Math.sin(s)*_,w=(h+f)/2+Math.sin(s)*b+Math.cos(s)*_,S=[(p-b)/n,(g-_)/i],C=[(-1*p-b)/n,(-1*g-_)/i],k=a([1,0],S),O=a(S,C);o(S,C)<=-1&&(O=Math.PI);o(S,C)>=1&&(O=0);0===u&&O>0&&(O-=2*Math.PI);1===u&&O<0&&(O+=2*Math.PI);return{cx:x,cy:w,rx:Object(r.j)(t,[d,f])?0:n,ry:Object(r.j)(t,[d,f])?0:i,startAngle:k,endAngle:k+O,xRotation:s,arcFlag:l,sweepFlag:u}};var r=n("PDVq");function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}},dIwP:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dSzd:function(t,e,n){var r=n("e8AB")("wks"),i=n("3Eo+"),o=n("7KvD").Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},dVOP:function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},dVqt:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forceNBody=void 0;var r=n("bltL");function i(t){var e=0,n=0,r=0;if(t.length){for(var i=0;i<4;i++){(o=t[i])&&o.weight&&(e+=o.weight,n+=o.x*o.weight,r+=o.y*o.weight)}t.x=n/e,t.y=r/e,t.weight=e}else{var o=t;t.x=o.data.x,t.y=o.data.y,t.weight=o.data.weight}}e.forceNBody=function(t,e,n,a,s){var l=n/a,u=t.map(function(t,n){var r=e[t.id],i=r.data,o=r.x,a=r.y,s=r.size,u=i.layout.force.nodeStrength;return{x:o,y:a,size:s,index:n,vx:0,vy:0,weight:l*u}}),c=(0,r.quadtree)(u,function(t){return t.x},function(t){return t.y}).visitAfter(i);return u.forEach(function(t){!function(t,e){e.visit(function(e,n,r,i,a){return o(e,n,r,i,a,t)})}(t,c)}),u.map(function(n,r){var i=e[t[r].id].data.layout.force.mass,o=void 0===i?1:i;s[2*r]=n.vx/o,s[2*r+1]=n.vy/o}),s};var o=function(t,e,n,r,i,o){var a=o.x-t.x||.1,s=o.y-t.y||.1,l=r-e,u=a*a+s*s,c=Math.sqrt(u)*u;if(l*l*.81<u){var h=t.weight/c;return o.vx+=a*h,o.vy+=s*h,!0}if(t.length)return!1;if(t.data!==o){h=t.data.weight/c;o.vx+=a*h,o.vy+=s*h}}},dY0y:function(t,e,n){var r=n("dSzd")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},dlST:function(t,e){var n=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function r(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function i(t){function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function o(){this.values=n(null)}function a(t,e,n,r){var i=r?t.split(r):[t];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);if(2===a.length)e(a[0],a[1])}}function s(t,e,n){var s=t;function l(){var e=i(t);if(null===e)throw new r(r.Errors.BadTimeStamp,"Malformed timestamp: "+s);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=l(),u(),"--\x3e"!==t.substr(0,3))throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);t=t.substr(3),u(),e.endTime=l(),u(),function(t,e){var r=new o;a(t,function(t,e){switch(t){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===e){r.set(t,n[i].region);break}break;case"vertical":r.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),a=o[0];r.integer(t,a),r.percent(t,a)&&r.set("snapToLines",!1),r.alt(t,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),r.percent(t,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":r.percent(t,e);break;case"align":r.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=r.get("region",null),e.vertical=r.get("vertical",""),e.line=r.get("line","auto"),e.lineAlign=r.get("lineAlign","start"),e.snapToLines=r.get("snapToLines",!0),e.size=r.get("size",100),e.align=r.get("align","middle"),e.position=r.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=r.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}r.prototype=n(Error.prototype),r.prototype.constructor=r,r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r<n.length;++r)if(e===n[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var l={"&":"&","<":"<",">":">","‎":"","‏":""," ":" "},u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function r(t){return l[t]}function o(t){for(;y=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(y[0],r);return t}function a(t,e){return!h[e.localName]||h[e.localName]===t.localName}function s(e,n){var r=u[e];if(!r)return null;var i=t.document.createElement(r);i.localName=r;var o=c[e];return o&&n&&(i[o]=n.trim()),i}for(var d,f=t.document.createElement("div"),p=f,g=[];null!==(d=n());)if("<"!==d[0])p.appendChild(t.document.createTextNode(o(d)));else{if("/"===d[1]){g.length&&g[g.length-1]===d.substr(2).replace(">","")&&(g.pop(),p=p.parentNode);continue}var v,m=i(d.substr(1,d.length-2));if(m){v=t.document.createProcessingInstruction("timestamp",m),p.appendChild(v);continue}var y=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(v=s(y[1],y[3])))continue;if(!a(p,v))continue;y[2]&&(v.className=y[2].substr(1).replace("."," ")),g.push(y[1]),p.appendChild(v),p=v}return f}var f=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function p(t){for(var e=0;e<f.length;e++){var n=f[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function g(){}function v(t,e,n){var r=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)";r&&(i="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),g.call(this),this.cue=e,this.cueDiv=d(t,e.text);var a={color:i,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(a.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",a.unicodeBidi="plaintext"),this.applyStyles(a,this.cueDiv),this.div=t.document.createElement("div"),a={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},r||(a.direction=function(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function r(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function i(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):n}return"ruby"===e.tagName?i(t):e.childNodes?(r(t,e),i(t)):void 0}for(r(e,t);n=i(e);)for(var o=0;o<n.length;o++)if(p(n.charCodeAt(o)))return"rtl";return"ltr"}(this.cueDiv),a.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(a),this.div.appendChild(this.cueDiv);var s=0;switch(e.positionAlign){case"start":s=e.position;break;case"middle":s=e.position-e.size/2;break;case"end":s=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function m(t){var e,n,r,i,o=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){n=t.div.offsetHeight,r=t.div.offsetWidth,i=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||i,this.height=t.height||n,this.bottom=t.bottom||i+(t.height||n),this.width=t.width||r,this.lineHeight=void 0!==e?e:t.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function y(t,e,n,r){var i=new m(e),o=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,r=0,i=0;i<n.length&&n[i]!==e;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var l;switch(o.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var u=i.lineHeight,c=u*Math.round(a),h=n[l]+u,d=s[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),a<0&&(c+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(d,c)}else{var f=i.lineHeight/n.height*100;switch(o.lineAlign){case"middle":a-=f/2;break;case"end":a-=f}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new m(e)}var p=function(t,e){for(var i,o=new m(t),a=1,s=0;s<e.length;s++){for(;t.overlapsOppositeAxis(n,e[s])||t.within(n)&&t.overlapsAny(r);)t.move(e[s]);if(t.within(n))return t;var l=t.intersectPercentage(n);a>l&&(i=new m(t),a=l),t=new m(o)}return i||o}(i,s);e.move(p.toCSSCompatValues(n))}function b(){}g.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},v.prototype=n(g.prototype),v.prototype.constructor=v,m.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},m.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},m.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},m.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},m.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},m.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},m.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},m.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},b.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},b.convertCueToDOMTree=function(t,e){return t&&e?d(t,e):null};b.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var i=[],o=m.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,l=0;l<e.length;l++)s=e[l],n=new v(t,s,a),r.appendChild(n.div),y(0,n,o,i),s.displayState=n.div,i.push(m.getSimpleBoxPosition(n))}()}else for(var s=0;s<e.length;s++)r.appendChild(e[s].displayState)},b.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},b.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof r))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e=this;function n(){for(var t=e.buffer,n=0;n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var r=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),r}function l(t){t.match(/X-TIMESTAMP-MAP/)?a(t,function(t,n){switch(t){case"X-TIMESTAMP-MAP":r=n,s=new o,a(r,function(t,e){switch(t){case"MPEGT":s.integer(t+"S",e);break;case"LOCA":s.set(t+"L",i(e))}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:s.get("MPEGTS"),LOCAL:s.get("LOCAL")})}var r,s},/=/):a(t,function(t,n){switch(t){case"Region":!function(t){var n=new o;if(a(t,function(t,e){switch(t){case"id":n.set(t,e);break;case"width":n.percent(t,e);break;case"lines":n.integer(t,e);break;case"regionanchor":case"viewportanchor":var r=e.split(",");if(2!==r.length)break;var i=new o;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(t+"X",i.get("x")),n.set(t+"Y",i.get("y"));break;case"scroll":n.alt(t,e,["up"])}},/=/,/\s/),n.has("id")){var r=new(e.vttjs.VTTRegion||e.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),e.onregion&&e.onregion(r),e.regionList.push({id:n.get("id"),region:r})}}(n)}},/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var u;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var c=(u=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new r(r.Errors.BadSignature);e.state="HEADER"}for(var h=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(h?h=!1:u=n(),e.state){case"HEADER":/:/.test(u)?l(u):u||(e.state="ID");continue;case"NOTE":u||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(u)){e.state="NOTE";break}if(!u)continue;if(e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,""),e.state="CUE",-1===u.indexOf("--\x3e")){e.cue.id=u;continue}case"CUE":try{s(u,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var d=-1!==u.indexOf("--\x3e");if(!u||d&&(h=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=u;continue;case"BADCUE":u||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new r(r.Errors.BadSignature)}catch(t){this.reportOrThrowError(t)}return this.onflush&&this.onflush(),this}},t.exports=b},"dwO+":function(t,e,n){(function(e){var r,i=void 0!==e?e:"undefined"!=typeof window?window:{},o=n(1);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=r}).call(e,n("DuR2"))},e0Bm:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=61)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},10:function(t,e){t.exports=n("HJMx")},12:function(t,e){t.exports=n("ISYW")},14:function(t,e){t.exports=n("fEB+")},16:function(t,e){t.exports=n("02w1")},17:function(t,e){t.exports=n("ON3O")},21:function(t,e){t.exports=n("E/in")},22:function(t,e){t.exports=n("1oZe")},3:function(t,e){t.exports=n("ylDJ")},31:function(t,e){t.exports=n("zTCi")},33:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(3),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":s(t))&&"object"===(void 0===e?"undefined":s(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some(function(t){return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)})}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(a.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=n(0),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";e.a=c.exports},37:function(t,e){t.exports=n("orbS")},4:function(t,e){t.exports=n("fPll")},5:function(t,e){t.exports=n("fKx3")},6:function(t,e){t.exports=n("y+7x")},61:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])}),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.navigateOptions("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?t.deletePrevTag(e):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{keyup:function(e){return t.debouncedOnInputChange(e)},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],paste:function(e){return t.debouncedOnInputChange(e)},mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(22),s=n.n(a),l=n(6),u=n.n(l),c=n(10),h=n.n(c),d=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};d._withStripped=!0;var f=n(5),p={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(f).a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){t.$parent.visible&&t.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},g=n(0),v=Object(g.a)(p,d,[],!1,null,null,null);v.options.__file="packages/select/src/select-dropdown.vue";var m=v.exports,y=n(33),b=n(37),_=n.n(b),x=n(14),w=n.n(x),S=n(17),C=n.n(S),k=n(12),O=n.n(k),M=n(16),E=n(31),T=n.n(E),A=n(3),I=n(21),D={mixins:[o.a,u.a,s()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(t){return t.visible}).every(function(t){return t.disabled})}},watch:{hoverIndex:function(t){var e=this;"number"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach(function(t){t.hover=e.hoverOption===t})}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick(function(){return e.scrollToOption(e.hoverOption)})}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(A.isIE)()&&!Object(A.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter(function(t){return!t.created}).some(function(e){return e.currentLabel===t.query});return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:m,ElOption:y.a,ElTag:_.a,ElScrollbar:w.a},directives:{Clickoutside:O.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick(function(){t.resetInputHeight()})},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(A.valueEquals)(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick(function(){t.broadcast("ElSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick(function(t){return e.handleQueryChange(n)});else{var r=n[n.length-1]||"";this.isOnComposition=!Object(I.isKorean)(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick(function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");T()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick(function(){return t.scrollToOption(t.selected)})},emitChange:function(t){Object(A.valueEquals)(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(A.getValueByPath)(a.value,this.valueKey)===Object(A.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s={value:t,currentLabel:n||r||i?"":t};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(e){n.push(t.getOption(e))}),this.selected=n,this.$nextTick(function(){t.resetInputHeight()})},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout(function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)},50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,function(t){return"INPUT"===t.tagName})[0],r=t.$refs.tags,i=t.initialInputHeight||40;n.style.height=0===t.selected.length?i+"px":Math.max(r?r.clientHeight+(r.clientHeight>i?6:0):0,i)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var t=this;setTimeout(function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(function(e){return t.options.indexOf(e)})):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)},300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(t)})},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if("[object object]"===Object.prototype.toString.call(e).toLowerCase()){var n=this.valueKey,r=-1;return t.some(function(t,i){return Object(A.getValueByPath)(t,n)===Object(A.getValueByPath)(e,n)&&(r=i,!0)}),r}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(A.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=C()(this.debounce,function(){t.onInputChange()}),this.debouncedQueryChange=C()(this.debounce,function(e){t.handleQueryChange(e.target.value)}),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(M.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n=e.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(M.removeResizeListener)(this.$el,this.handleResize)}},P=Object(g.a)(D,r,[],!1,null,null,null);P.options.__file="packages/select/src/select.vue";var L=P.exports;L.install=function(t){t.component(L.name,L)};e.default=L}})},e6n0:function(t,e,n){var r=n("evD5").f,i=n("D2L2"),o=n("dSzd")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},e8AB:function(t,e,n){var r=n("FeBl"),i=n("7KvD"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("O4g8")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e9Fv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("LI0X");e.default=function(t){for(var e={},n=t.nodes().filter(function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length)}),i=n.map(function(e){return t.node(e).rank}),o=(0,r.max)(i),a=[],s=0;s<o+1;s++)a.push([]);var l=function(n){var r;if(!e.hasOwnProperty(n)){e[n]=!0;var i=t.node(n);isNaN(i.rank)||a[i.rank].push(n),null===(r=t.successors(n))||void 0===r||r.forEach(function(t){return l(t)})}},u=n.sort(function(e,n){return t.node(e).rank-t.node(n).rank}),c=u.filter(function(e){return void 0!==t.node(e).fixorder}).sort(function(e,n){return t.node(e).fixorder-t.node(n).fixorder});return null===c||void 0===c||c.forEach(function(n){isNaN(t.node(n).rank)||a[t.node(n).rank].push(n),e[n]=!0}),null===u||void 0===u||u.forEach(l),a}},eHQZ:function(t,e,n){"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},eNfa:function(t,e,n){"use strict";var r;!function(i){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="[^\\s]+",l=/\[([^]*?)\]/gm,u=function(){};function c(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function h(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function d(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],g=c(p,3),v=c(f,3);o.i18n={dayNamesShort:v,dayNames:f,monthNamesShort:g,monthNames:p,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDay()},DD:function(t){return d(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return d(t.getDate())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return d(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},yy:function(t){return d(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return d(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return d(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return d(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return d(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+d(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},y={d:["\\d\\d?",function(t,e){t.day=e}],Do:["\\d\\d?"+s,function(t,e){t.day=parseInt(e,10)}],M:["\\d\\d?",function(t,e){t.month=e-1}],yy:["\\d\\d?",function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:["\\d\\d?",function(t,e){t.hour=e}],m:["\\d\\d?",function(t,e){t.minute=e}],s:["\\d\\d?",function(t,e){t.second=e}],yyyy:["\\d{4}",function(t,e){t.year=e}],S:["\\d",function(t,e){t.millisecond=100*e}],SS:["\\d{2}",function(t,e){t.millisecond=10*e}],SSS:["\\d{3}",function(t,e){t.millisecond=e}],D:["\\d\\d?",u],ddd:[s,u],MMM:[s,h("monthNamesShort")],MMMM:[s,h("monthNames")],a:[s,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(t,e){var n,r=(e+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};y.dd=y.d,y.dddd=y.ddd,y.DD=y.D,y.mm=y.m,y.hh=y.H=y.HH=y.h,y.MM=y.M,y.ss=y.s,y.A=y.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(t,e,n){var r=n||o.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");var i=[];return(e=(e=(e=o.masks[e]||e||o.masks.default).replace(l,function(t,e){return i.push(e),"@@@"})).replace(a,function(e){return e in m?m[e](t,r):e.slice(1,e.length-1)})).replace(/@@@/g,function(){return i.shift()})},o.parse=function(t,e,n){var r=n||o.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=o.masks[e]||e,t.length>1e3)return null;var i={},s=[],u=[];e=e.replace(l,function(t,e){return u.push(e),"@@@"});var c,h=(c=e,c.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(a,function(t){if(y[t]){var e=y[t];return s.push(e[1]),"("+e[0]+")"}return t});h=h.replace(/@@@/g,function(){return u.shift()});var d=t.match(new RegExp(h,"i"));if(!d)return null;for(var f=1;f<d.length;f++)s[f-1](i,d[f],r);var p,g=new Date;return!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},void 0!==t&&t.exports?t.exports=o:void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},edjc:function(t,e,n){"use strict";(function(t){e.p=function(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Object(i.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}},e.j=function(t){return t<s&&t>-s},e.q=u,e.e=function(t){return"matrix("+l(t[0])+","+l(t[1])+","+l(t[2])+","+l(t[3])+","+u(t[4])+","+u(t[5])+")"},n.d(e,"a",function(){return c}),e.b=function(t,e,n){"top"===n?t+=e/2:"bottom"===n&&(t-=e/2);return t},e.i=function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)},e.h=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")},e.l=h,e.n=function(t){return h(t)||function(t){return t&&!!t.svgElement}(t)},e.m=function(t){return"linear"===t.type},e.o=function(t){return"radial"===t.type},e.k=function(t){return t&&("linear"===t.type||"radial"===t.type)},e.d=function(t){return"url(#"+t+")"},e.f=function(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)},e.g=function(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*r.RADIAN_TO_DEGREE,o=Object(r.retrieve2)(t.scaleX,1),s=Object(r.retrieve2)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];(e||n)&&c.push("translate("+e+"px,"+n+"px)");i&&c.push("rotate("+i+")");1===o&&1===s||c.push("scale("+o+","+s+")");(l||u)&&c.push("skew("+a(l*r.RADIAN_TO_DEGREE)+"deg, "+a(u*r.RADIAN_TO_DEGREE)+"deg)");return c.join(" ")},n.d(e,"c",function(){return d});var r=n("/gxq"),i=n("DRaW"),o=n("YNzw"),a=Math.round;var s=1e-4;function l(t){return a(1e3*t)/1e3}function u(t){return a(1e4*t)/1e4}var c={left:"start",right:"end",center:"middle",middle:"middle"};function h(t){return t&&!!t.image}var d=o.a.hasGlobalWindow&&Object(r.isFunction)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null}}).call(e,n("EuP9").Buffer)},efRz:function(t,e,n){"use strict";var r=n("+N5+").isSpace;function i(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function o(t){var e,n=[],r=0,i=t.length,o=!1,a=0,s="";for(e=t.charCodeAt(r);r<i;)124===e&&(o?(s+=t.substring(a,r-1),a=r):(n.push(s+t.substring(a,r)),s="",a=r+1)),o=92===e,r++,e=t.charCodeAt(r);return n.push(s+t.substring(a)),n}t.exports=function(t,e,n,a){var s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C;if(e+2>n)return!1;if(d=e+1,t.sCount[d]<t.blkIndent)return!1;if(t.sCount[d]-t.blkIndent>=4)return!1;if((u=t.bMarks[d]+t.tShift[d])>=t.eMarks[d])return!1;if(124!==(S=t.src.charCodeAt(u++))&&45!==S&&58!==S)return!1;if(u>=t.eMarks[d])return!1;if(124!==(C=t.src.charCodeAt(u++))&&45!==C&&58!==C&&!r(C))return!1;if(45===S&&r(C))return!1;for(;u<t.eMarks[d];){if(124!==(s=t.src.charCodeAt(u))&&45!==s&&58!==s&&!r(s))return!1;u++}for(f=(l=i(t,e+1)).split("|"),v=[],c=0;c<f.length;c++){if(!(m=f[c].trim())){if(0===c||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;58===m.charCodeAt(m.length-1)?v.push(58===m.charCodeAt(0)?"center":"right"):58===m.charCodeAt(0)?v.push("left"):v.push("")}if(-1===(l=i(t,e).trim()).indexOf("|"))return!1;if(t.sCount[e]-t.blkIndent>=4)return!1;if((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(p=f.length)||p!==v.length)return!1;if(a)return!0;for(_=t.parentType,t.parentType="table",w=t.md.block.ruler.getRules("blockquote"),(g=t.push("table_open","table",1)).map=y=[e,0],(g=t.push("thead_open","thead",1)).map=[e,e+1],(g=t.push("tr_open","tr",1)).map=[e,e+1],c=0;c<f.length;c++)g=t.push("th_open","th",1),v[c]&&(g.attrs=[["style","text-align:"+v[c]]]),(g=t.push("inline","",0)).content=f[c].trim(),g.children=[],g=t.push("th_close","th",-1);for(g=t.push("tr_close","tr",-1),g=t.push("thead_close","thead",-1),d=e+2;d<n&&!(t.sCount[d]<t.blkIndent);d++){for(x=!1,c=0,h=w.length;c<h;c++)if(w[c](t,d,n,!0)){x=!0;break}if(x)break;if(!(l=i(t,d).trim()))break;if(t.sCount[d]-t.blkIndent>=4)break;for((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),d===e+2&&((g=t.push("tbody_open","tbody",1)).map=b=[e+2,0]),(g=t.push("tr_open","tr",1)).map=[d,d+1],c=0;c<p;c++)g=t.push("td_open","td",1),v[c]&&(g.attrs=[["style","text-align:"+v[c]]]),(g=t.push("inline","",0)).content=f[c]?f[c].trim():"",g.children=[],g=t.push("td_close","td",-1);g=t.push("tr_close","tr",-1)}return b&&(g=t.push("tbody_close","tbody",-1),b[1]=d),g=t.push("table_close","table",-1),y[1]=d,t.parentType=_,t.line=d,!0}},esuD:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("vVQx"))&&r.__esModule?r:{default:r};var o=function(){function t(){this.linkedList=new i.default}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(t){this.linkedList.append(t)},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toString=function(t){return this.linkedList.toString(t)},t}();e.default=o},evD5:function(t,e,n){var r=n("77Pl"),i=n("SfB7"),o=n("MmMw"),a=Object.defineProperty;e.f=n("+E39")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},exGp:function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("//Fk"),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){return function r(i,a){try{var s=e[i](a),l=s.value}catch(t){return void n(t)}if(!s.done)return o.default.resolve(l).then(function(t){r("next",t)},function(t){r("throw",t)});t(l)}("next")})}}},f3pQ:function(t,e,n){"use strict";(function(t){e.a=function(e){if(e)return f(e);if("undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product)return new s;if("undefined"!=typeof navigator)return f(navigator.userAgent);return void 0!==t&&t.version?new i(t.version.slice(1)):null};var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},r=function(){return function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}}(),i=function(){return function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}}(),o=function(){return function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}}(),a=function(){return function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}}(),s=function(){return function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}}(),l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=3,c=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return""!==t&&c.reduce(function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]},!1)}function f(t){var e=d(t);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new a;var c=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);c?c.length<u&&(c=n(n([],c,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(u-c.length),!0)):c=[];var f=c.join("."),p=function(t){for(var e=0,n=h.length;e<n;e++){var r=h[e],i=r[0],o=r[1],a=o.exec(t);if(a)return i}return null}(t),g=l.exec(t);return g&&g[1]?new o(i,f,p,g[1]):new r(i,f,p)}}).call(e,n("W2nU"))},f931:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},fBQ2:function(t,e,n){"use strict";var r=n("evD5"),i=n("X8DO");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},fCEa:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layouts=e.Layout=void 0;var r=n("Umca"),i=n("Upny"),o=n("VWzN"),a=n("CLuh"),s=n("9938"),l=n("mxuM"),u=n("Rq7w"),c=n("Cq/5"),h=n("uJhO"),d=n("5XWd"),f=n("6D6L"),p=n("Fg8h"),g=n("COaM"),v=n("ZoBt"),m=n("C3+6"),y=n("nOum"),b=n("5tg8"),_=n("Iker"),x=n("0IlV"),w=n("ZE1E"),S=function(){function t(t){var e=(0,r.getLayoutByName)(t.type);this.layoutInstance=new e(t)}return t.prototype.layout=function(t){return this.layoutInstance.layout(t)},t.prototype.updateCfg=function(t){this.layoutInstance.updateCfg(t)},t.prototype.init=function(t){this.correctLayers(t.nodes),this.layoutInstance.init(t)},t.prototype.correctLayers=function(t){if(null===t||void 0===t?void 0:t.length){var e=1/0,n=[];if(t.forEach(function(t){(0,w.isString)(t.layer)&&(t.layer=parseInt(t.layer,10)),void 0===t.layer||isNaN(t.layer)||(n.push(t),t.layer<e&&(e=t.layer))}),e<=0){var r=Math.abs(e)+1;n.forEach(function(t){return t.layer+=r})}}},t.prototype.execute=function(){this.layoutInstance.execute()},t.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg()},t.prototype.destroy=function(){return this.layoutInstance.destroy()},t}();e.Layout=S,e.Layouts={force:l.ForceLayout,fruchterman:p.FruchtermanLayout,forceAtlas2:b.ForceAtlas2Layout,gForce:s.GForceLayout,force2:a.Force2Layout,dagre:c.DagreLayout,dagreCompound:x.DagreCompoundLayout,circular:u.CircularLayout,radial:h.RadialLayout,concentric:d.ConcentricLayout,grid:i.GridLayout,mds:f.MDSLayout,comboForce:m.ComboForceLayout,comboCombined:y.ComboCombinedLayout,random:o.RandomLayout,"gForce-gpu":v.GForceGPULayout,"fruchterman-gpu":g.FruchtermanGPULayout,er:_.ERLayout}},"fEB+":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=127)}({127:function(t,e,n){"use strict";n.r(e);var r=n(16),i=n(38),o=n.n(i),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var u={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:function(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},c={name:"ElScrollbar",components:{Bar:u},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=o()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var s=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[s]]);return t("div",{class:"el-scrollbar"},this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,t(u,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(u,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})])},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(c.name,c)}};e.default=c},16:function(t,e){t.exports=n("02w1")},2:function(t,e){t.exports=n("2kvA")},3:function(t,e){t.exports=n("ylDJ")},38:function(t,e){t.exports=n("6Twh")}})},fJUb:function(t,e,n){var r=n("77Pl"),i=n("EqjI"),o=n("qARP");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},fKPv:function(t,e,n){var r=n("1VE+");t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},fKx3:function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("7+uW"),o=(r=i)&&r.__esModule?r:{default:r},a=n("7J9s");var s=o.default.prototype.$isServer?function(){}:n("NMof"),l=function(t){return t.stopPropagation()};e.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(t){this.showPopper=t,this.$emit("input",t)}},showPopper:function(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit("input",t))}},methods:{createPopper:function(){var t=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var e=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,e),this.popperJS.onCreate(function(e){t.$emit("created",t),t.resetTransformOrigin(),t.$nextTick(t.updatePopper)}),"function"==typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=a.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=a.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],e={top:"bottom",bottom:"top",left:"right",right:"left"}[t];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+e:e+" center"}},appendArrow:function(t){var e=void 0;if(!this.appended){for(var n in this.appended=!0,t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var r=document.createElement("div");e&&r.setAttribute(e,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",t.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},fPll:function(t,e,n){"use strict";e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){(function t(e,n,r){this.$children.forEach(function(i){i.$options.componentName===e?i.$emit.apply(i,[n].concat(r)):t.apply(i,[e,n].concat([r]))})}).call(this,t,e,n)}}}},fRHV:function(t,e,n){"use strict";var r=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n,o=r.call(arguments,1),a=Math.max(0,e.length-o.length),s=[],l=0;l<a;l++)s.push("$"+l);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var i=e.apply(this,o.concat(r.call(arguments)));return Object(i)===i?i:this}return e.apply(t,o.concat(r.call(arguments)))}),e.prototype){var u=function(){};u.prototype=e.prototype,n.prototype=new u,u.prototype=null}return n}},fUqW:function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isVNode=function(t){return null!==t&&"object"===(void 0===t?"undefined":r(t))&&(0,i.hasOwn)(t,"componentOptions")};var i=n("ylDJ")},fWfb:function(t,e,n){"use strict";var r=n("7KvD"),i=n("D2L2"),o=n("+E39"),a=n("kM2E"),s=n("880/"),l=n("06OY").KEY,u=n("S82l"),c=n("e8AB"),h=n("e6n0"),d=n("3Eo+"),f=n("dSzd"),p=n("Kh4W"),g=n("crlp"),v=n("Xc4G"),m=n("7UMu"),y=n("77Pl"),b=n("EqjI"),_=n("sB3e"),x=n("TcQ7"),w=n("MmMw"),S=n("X8DO"),C=n("Yobk"),k=n("Rrel"),O=n("LKZe"),M=n("1kS7"),E=n("evD5"),T=n("lktj"),A=O.f,I=E.f,D=k.f,P=r.Symbol,L=r.JSON,j=L&&L.stringify,N=f("_hidden"),R=f("toPrimitive"),B={}.propertyIsEnumerable,F=c("symbol-registry"),z=c("symbols"),V=c("op-symbols"),$=Object.prototype,G="function"==typeof P&&!!M.f,H=r.QObject,W=!H||!H.prototype||!H.prototype.findChild,U=o&&u(function(){return 7!=C(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A($,e);r&&delete $[e],I(t,e,n),r&&t!==$&&I($,e,r)}:I,Y=function(t){var e=z[t]=C(P.prototype);return e._k=t,e},X=G&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},q=function(t,e,n){return t===$&&q(V,e,n),y(t),e=w(e,!0),y(n),i(z,e)?(n.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:S(0,!1)})):(i(t,N)||I(t,N,S(1,{})),t[N][e]=!0),U(t,e,n)):I(t,e,n)},Z=function(t,e){y(t);for(var n,r=v(e=x(e)),i=0,o=r.length;o>i;)q(t,n=r[i++],e[n]);return t},K=function(t){var e=B.call(this,t=w(t,!0));return!(this===$&&i(z,t)&&!i(V,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,N)&&this[N][t])||e)},J=function(t,e){if(t=x(t),e=w(e,!0),t!==$||!i(z,e)||i(V,e)){var n=A(t,e);return!n||!i(z,e)||i(t,N)&&t[N][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=D(x(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==N||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===$,r=D(n?V:x(t)),o=[],a=0;r.length>a;)!i(z,e=r[a++])||n&&!i($,e)||o.push(z[e]);return o};G||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===$&&e.call(V,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),U(this,t,S(1,n))};return o&&W&&U($,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",function(){return this._k}),O.f=J,E.f=q,n("n0T6").f=k.f=Q,n("NpIQ").f=K,M.f=tt,o&&!n("O4g8")&&s($,"propertyIsEnumerable",K,!0),p.f=function(t){return Y(f(t))}),a(a.G+a.W+a.F*!G,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)f(et[nt++]);for(var rt=T(f.store),it=0;rt.length>it;)g(rt[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!G,"Object",{create:function(t,e){return void 0===e?C(t):Z(C(t),e)},defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=u(function(){M.f(1)});a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return M.f(_(t))}}),L&&a(a.S+a.F*(!G||u(function(){var t=P();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,j.apply(L,r)}}),P.prototype[R]||n("hJx8")(P.prototype,R,P.prototype.valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},fZOM:function(t,e,n){var r=n("kM2E"),i=n("mbce")(!1);r(r.S,"Object",{values:function(t){return i(t)}})},fZjL:function(t,e,n){t.exports={default:n("jFbC"),__esModule:!0}},fkB2:function(t,e,n){var r=n("UuGF"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},fnHN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=Object.prototype.toString;function i(t){const e=r.call(t);return e.endsWith("Array]")&&!e.includes("Big")}function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==n.output){if(!i(n.output))throw new TypeError("output option must be an array if specified");e=n.output}else e=new Array(t.length);var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],l=r+1;l<a;l++)t[l]<s&&(s=t[l]);return s}(t),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],l=r+1;l<a;l++)t[l]>s&&(s=t[l]);return s}(t);if(r===o)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var a=n.min,s=void 0===a?n.autoMinMax?r:0:a,l=n.max,u=void 0===l?n.autoMinMax?o:1:l;if(s>=u)throw new RangeError("min option must be smaller than max option");for(var c=(u-s)/(o-r),h=0;h<t.length;h++)e[h]=(t[h]-r)*c+s;return e}const a=" ".repeat(2),s=" ".repeat(4);function l(t,e={}){const{maxRows:n=15,maxColumns:r=10,maxNumSize:i=8}=e;return`${t.constructor.name} {\n${a}[\n${s}${function(t,e,n,r){const{rows:i,columns:o}=t,a=Math.min(i,e),l=Math.min(o,n),c=[];for(let e=0;e<a;e++){let n=[];for(let i=0;i<l;i++)n.push(u(t.get(e,i),r));c.push(`${n.join(" ")}`)}l!==o&&(c[c.length-1]+=` ... ${o-n} more columns`);a!==i&&c.push(`... ${i-e} more rows`);return c.join(`\n${s}`)}(t,n,r,i)}\n${a}]\n${a}rows: ${t.rows}\n${a}columns: ${t.columns}\n}`}function u(t,e){const n=String(t);if(n.length<=e)return n.padEnd(e," ");const r=t.toPrecision(e-2);if(r.length<=e)return r;const i=t.toExponential(e-2),o=i.indexOf("e"),a=i.slice(o);return i.slice(0,e-a.length)+a}function c(t,e,n){let r=n?t.rows:t.rows-1;if(e<0||e>r)throw new RangeError("Row index out of range")}function h(t,e,n){let r=n?t.columns:t.columns-1;if(e<0||e>r)throw new RangeError("Column index out of range")}function d(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function f(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function p(t,e,n){return{row:g(t,e),column:v(t,n)}}function g(t,e){if("object"!=typeof e)throw new TypeError("unexpected type for row indices");if(e.some(e=>e<0||e>=t.rows))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function v(t,e){if("object"!=typeof e)throw new TypeError("unexpected type for column indices");if(e.some(e=>e<0||e>=t.columns))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function m(t,e,n,r,i){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(b("startRow",e),b("endRow",n),b("startColumn",r),b("endColumn",i),e>n||r>i||e<0||e>=t.rows||n<0||n>=t.rows||r<0||r>=t.columns||i<0||i>=t.columns)throw new RangeError("Submatrix indices are out of range")}function y(t,e=0){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function b(t,e){if("number"!=typeof e)throw new TypeError(`${t} must be a number`)}class _{static from1DArray(t,e,n){if(t*e!==n.length)throw new RangeError("data length does not match given dimensions");let r=new w(t,e);for(let i=0;i<t;i++)for(let t=0;t<e;t++)r.set(i,t,n[i*e+t]);return r}static rowVector(t){let e=new w(1,t.length);for(let n=0;n<t.length;n++)e.set(0,n,t[n]);return e}static columnVector(t){let e=new w(t.length,1);for(let n=0;n<t.length;n++)e.set(n,0,t[n]);return e}static zeros(t,e){return new w(t,e)}static ones(t,e){return new w(t,e).fill(1)}static rand(t,e,n={}){if("object"!=typeof n)throw new TypeError("options must be an object");const{random:r=Math.random}=n;let i=new w(t,e);for(let n=0;n<t;n++)for(let t=0;t<e;t++)i.set(n,t,r());return i}static randInt(t,e,n={}){if("object"!=typeof n)throw new TypeError("options must be an object");const{min:r=0,max:i=1e3,random:o=Math.random}=n;if(!Number.isInteger(r))throw new TypeError("min must be an integer");if(!Number.isInteger(i))throw new TypeError("max must be an integer");if(r>=i)throw new RangeError("min must be smaller than max");let a=i-r,s=new w(t,e);for(let n=0;n<t;n++)for(let t=0;t<e;t++){let e=r+Math.round(o()*a);s.set(n,t,e)}return s}static eye(t,e,n){void 0===e&&(e=t),void 0===n&&(n=1);let r=Math.min(t,e),i=this.zeros(t,e);for(let t=0;t<r;t++)i.set(t,t,n);return i}static diag(t,e,n){let r=t.length;void 0===e&&(e=r),void 0===n&&(n=e);let i=Math.min(r,e,n),o=this.zeros(e,n);for(let e=0;e<i;e++)o.set(e,e,t[e]);return o}static min(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);let n=t.rows,r=t.columns,i=new w(n,r);for(let o=0;o<n;o++)for(let n=0;n<r;n++)i.set(o,n,Math.min(t.get(o,n),e.get(o,n)));return i}static max(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);let n=t.rows,r=t.columns,i=new this(n,r);for(let o=0;o<n;o++)for(let n=0;n<r;n++)i.set(o,n,Math.max(t.get(o,n),e.get(o,n)));return i}static checkMatrix(t){return _.isMatrix(t)?t:new w(t)}static isMatrix(t){return null!=t&&"Matrix"===t.klass}get size(){return this.rows*this.columns}apply(t){if("function"!=typeof t)throw new TypeError("callback must be a function");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.call(this,e,n);return this}to1DArray(){let t=[];for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.push(this.get(e,n));return t}to2DArray(){let t=[];for(let e=0;e<this.rows;e++){t.push([]);for(let n=0;n<this.columns;n++)t[e].push(this.get(e,n))}return t}toJSON(){return this.to2DArray()}isRowVector(){return 1===this.rows}isColumnVector(){return 1===this.columns}isVector(){return 1===this.rows||1===this.columns}isSquare(){return this.rows===this.columns}isSymmetric(){if(this.isSquare()){for(let t=0;t<this.rows;t++)for(let e=0;e<=t;e++)if(this.get(t,e)!==this.get(e,t))return!1;return!0}return!1}isEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;for(;t<this.rows&&r;){for(e=0,i=!1;e<this.columns&&!1===i;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);t++}return r}isReducedEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;for(;t<this.rows&&r;){for(e=0,i=!1;e<this.columns&&!1===i;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);for(let n=e+1;n<this.rows;n++)0!==this.get(t,n)&&(r=!1);t++}return r}echelonForm(){let t=this.clone(),e=0,n=0;for(;e<t.rows&&n<t.columns;){let r=e;for(let i=e;i<t.rows;i++)t.get(i,n)>t.get(r,n)&&(r=i);if(0===t.get(r,n))n++;else{t.swapRows(e,r);let i=t.get(e,n);for(let r=n;r<t.columns;r++)t.set(e,r,t.get(e,r)/i);for(let r=e+1;r<t.rows;r++){let i=t.get(r,n)/t.get(e,n);t.set(r,n,0);for(let o=n+1;o<t.columns;o++)t.set(r,o,t.get(r,o)-t.get(e,o)*i)}e++,n++}}return t}reducedEchelonForm(){let t=this.echelonForm(),e=t.columns,n=t.rows,r=n-1;for(;r>=0;)if(0===t.maxRow(r))r--;else{let i=0,o=!1;for(;i<n&&!1===o;)1===t.get(r,i)?o=!0:i++;for(let n=0;n<r;n++){let o=t.get(n,i);for(let a=i;a<e;a++){let e=t.get(n,a)-o*t.get(r,a);t.set(n,a,e)}}r--}return t}set(){throw new Error("set method is unimplemented")}get(){throw new Error("get method is unimplemented")}repeat(t={}){if("object"!=typeof t)throw new TypeError("options must be an object");const{rows:e=1,columns:n=1}=t;if(!Number.isInteger(e)||e<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(n)||n<=0)throw new TypeError("columns must be a positive integer");let r=new w(this.rows*e,this.columns*n);for(let t=0;t<e;t++)for(let e=0;e<n;e++)r.setSubMatrix(this,this.rows*t,this.columns*e);return r}fill(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,t);return this}neg(){return this.mulS(-1)}getRow(t){c(this,t);let e=[];for(let n=0;n<this.columns;n++)e.push(this.get(t,n));return e}getRowVector(t){return w.rowVector(this.getRow(t))}setRow(t,e){c(this,t),e=d(this,e);for(let n=0;n<this.columns;n++)this.set(t,n,e[n]);return this}swapRows(t,e){c(this,t),c(this,e);for(let n=0;n<this.columns;n++){let r=this.get(t,n);this.set(t,n,this.get(e,n)),this.set(e,n,r)}return this}getColumn(t){h(this,t);let e=[];for(let n=0;n<this.rows;n++)e.push(this.get(n,t));return e}getColumnVector(t){return w.columnVector(this.getColumn(t))}setColumn(t,e){h(this,t),e=f(this,e);for(let n=0;n<this.rows;n++)this.set(n,t,e[n]);return this}swapColumns(t,e){h(this,t),h(this,e);for(let n=0;n<this.rows;n++){let r=this.get(n,t);this.set(n,t,this.get(n,e)),this.set(n,e,r)}return this}addRowVector(t){t=d(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[n]);return this}subRowVector(t){t=d(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[n]);return this}mulRowVector(t){t=d(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[n]);return this}divRowVector(t){t=d(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[n]);return this}addColumnVector(t){t=f(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[e]);return this}subColumnVector(t){t=f(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[e]);return this}mulColumnVector(t){t=f(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[e]);return this}divColumnVector(t){t=f(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[e]);return this}mulRow(t,e){c(this,t);for(let n=0;n<this.columns;n++)this.set(t,n,this.get(t,n)*e);return this}mulColumn(t,e){h(this,t);for(let n=0;n<this.rows;n++)this.set(n,t,this.get(n,t)*e);return this}max(){let t=this.get(0,0);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.get(e,n)>t&&(t=this.get(e,n));return t}maxIndex(){let t=this.get(0,0),e=[0,0];for(let n=0;n<this.rows;n++)for(let r=0;r<this.columns;r++)this.get(n,r)>t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}min(){let t=this.get(0,0);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.get(e,n)<t&&(t=this.get(e,n));return t}minIndex(){let t=this.get(0,0),e=[0,0];for(let n=0;n<this.rows;n++)for(let r=0;r<this.columns;r++)this.get(n,r)<t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}maxRow(t){c(this,t);let e=this.get(t,0);for(let n=1;n<this.columns;n++)this.get(t,n)>e&&(e=this.get(t,n));return e}maxRowIndex(t){c(this,t);let e=this.get(t,0),n=[t,0];for(let r=1;r<this.columns;r++)this.get(t,r)>e&&(e=this.get(t,r),n[1]=r);return n}minRow(t){c(this,t);let e=this.get(t,0);for(let n=1;n<this.columns;n++)this.get(t,n)<e&&(e=this.get(t,n));return e}minRowIndex(t){c(this,t);let e=this.get(t,0),n=[t,0];for(let r=1;r<this.columns;r++)this.get(t,r)<e&&(e=this.get(t,r),n[1]=r);return n}maxColumn(t){h(this,t);let e=this.get(0,t);for(let n=1;n<this.rows;n++)this.get(n,t)>e&&(e=this.get(n,t));return e}maxColumnIndex(t){h(this,t);let e=this.get(0,t),n=[0,t];for(let r=1;r<this.rows;r++)this.get(r,t)>e&&(e=this.get(r,t),n[0]=r);return n}minColumn(t){h(this,t);let e=this.get(0,t);for(let n=1;n<this.rows;n++)this.get(n,t)<e&&(e=this.get(n,t));return e}minColumnIndex(t){h(this,t);let e=this.get(0,t),n=[0,t];for(let r=1;r<this.rows;r++)this.get(r,t)<e&&(e=this.get(r,t),n[0]=r);return n}diag(){let t=Math.min(this.rows,this.columns),e=[];for(let n=0;n<t;n++)e.push(this.get(n,n));return e}norm(t="frobenius"){let e=0;if("max"===t)return this.max();if("frobenius"===t){for(let t=0;t<this.rows;t++)for(let n=0;n<this.columns;n++)e+=this.get(t,n)*this.get(t,n);return Math.sqrt(e)}throw new RangeError(`unknown norm type: ${t}`)}cumulativeSum(){let t=0;for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t+=this.get(e,n),this.set(e,n,t);return this}dot(t){_.isMatrix(t)&&(t=t.to1DArray());let e=this.to1DArray();if(e.length!==t.length)throw new RangeError("vectors do not have the same size");let n=0;for(let r=0;r<e.length;r++)n+=e[r]*t[r];return n}mmul(t){t=w.checkMatrix(t);let e=this.rows,n=this.columns,r=t.columns,i=new w(e,r),o=new Float64Array(n);for(let a=0;a<r;a++){for(let e=0;e<n;e++)o[e]=t.get(e,a);for(let t=0;t<e;t++){let e=0;for(let r=0;r<n;r++)e+=this.get(t,r)*o[r];i.set(t,a,e)}}return i}strassen2x2(t){t=w.checkMatrix(t);let e=new w(2,2);const n=this.get(0,0),r=t.get(0,0),i=this.get(0,1),o=t.get(0,1),a=this.get(1,0),s=t.get(1,0),l=this.get(1,1),u=t.get(1,1),c=(n+l)*(r+u),h=(a+l)*r,d=n*(o-u),f=l*(s-r),p=(n+i)*u,g=c+f-p+(i-l)*(s+u),v=d+p,m=h+f,y=c-h+d+(a-n)*(r+o);return e.set(0,0,g),e.set(0,1,v),e.set(1,0,m),e.set(1,1,y),e}strassen3x3(t){t=w.checkMatrix(t);let e=new w(3,3);const n=this.get(0,0),r=this.get(0,1),i=this.get(0,2),o=this.get(1,0),a=this.get(1,1),s=this.get(1,2),l=this.get(2,0),u=this.get(2,1),c=this.get(2,2),h=t.get(0,0),d=t.get(0,1),f=t.get(0,2),p=t.get(1,0),g=t.get(1,1),v=t.get(1,2),m=t.get(2,0),y=t.get(2,1),b=t.get(2,2),_=(n-o)*(-d+g),x=(-n+o+a)*(h-d+g),S=(o+a)*(-h+d),C=n*h,k=(-n+l+u)*(h-f+v),O=(-n+l)*(f-v),M=(l+u)*(-h+f),E=(-i+u+c)*(g+m-y),T=(i-c)*(g-y),A=i*m,I=(u+c)*(-m+y),D=(-i+a+s)*(v+m-b),P=(i-s)*(v-b),L=(a+s)*(-m+b),j=C+A+r*p,N=(n+r+i-o-a-u-c)*g+x+S+C+E+A+I,R=C+k+M+(n+r+i-a-s-l-u)*v+A+D+L,B=_+a*(-h+d+p-g-v-m+b)+x+C+A+D+P,F=_+x+S+C+s*y,z=A+D+P+L+o*f,V=C+k+O+u*(-h+f+p-g-v-m+y)+E+T+A,$=E+T+A+I+l*d,G=C+k+O+M+c*b;return e.set(0,0,j),e.set(0,1,N),e.set(0,2,R),e.set(1,0,B),e.set(1,1,F),e.set(1,2,z),e.set(2,0,V),e.set(2,1,$),e.set(2,2,G),e}mmulStrassen(t){t=w.checkMatrix(t);let e=this.clone(),n=e.rows,r=e.columns,i=t.rows,o=t.columns;function a(t,e,n){let r=t.rows,i=t.columns;if(r===e&&i===n)return t;{let r=_.zeros(e,n);return r=r.setSubMatrix(t,0,0)}}r!==i&&console.warn(`Multiplying ${n} x ${r} and ${i} x ${o} matrix: dimensions do not match.`);let s=Math.max(n,i),l=Math.max(r,o);return function t(e,n,r,i){if(r<=512||i<=512)return e.mmul(n);r%2==1&&i%2==1?(e=a(e,r+1,i+1),n=a(n,r+1,i+1)):r%2==1?(e=a(e,r+1,i),n=a(n,r+1,i)):i%2==1&&(e=a(e,r,i+1),n=a(n,r,i+1));let o=parseInt(e.rows/2,10),s=parseInt(e.columns/2,10),l=e.subMatrix(0,o-1,0,s-1),u=n.subMatrix(0,o-1,0,s-1),c=e.subMatrix(0,o-1,s,e.columns-1),h=n.subMatrix(0,o-1,s,n.columns-1),d=e.subMatrix(o,e.rows-1,0,s-1),f=n.subMatrix(o,n.rows-1,0,s-1),p=e.subMatrix(o,e.rows-1,s,e.columns-1),g=n.subMatrix(o,n.rows-1,s,n.columns-1),v=t(_.add(l,p),_.add(u,g),o,s),m=t(_.add(d,p),u,o,s),y=t(l,_.sub(h,g),o,s),b=t(p,_.sub(f,u),o,s),x=t(_.add(l,c),g,o,s),w=t(_.sub(d,l),_.add(u,h),o,s),S=t(_.sub(c,p),_.add(f,g),o,s),C=_.add(v,b);C.sub(x),C.add(S);let k=_.add(y,x),O=_.add(m,b),M=_.sub(v,m);M.add(y),M.add(w);let E=_.zeros(2*C.rows,2*C.columns);return(E=(E=(E=(E=E.setSubMatrix(C,0,0)).setSubMatrix(k,C.rows,0)).setSubMatrix(O,0,C.columns)).setSubMatrix(M,C.rows,C.columns)).subMatrix(0,r-1,0,i-1)}(e=a(e,s,l),t=a(t,s,l),s,l)}scaleRows(t={}){if("object"!=typeof t)throw new TypeError("options must be an object");const{min:e=0,max:n=1}=t;if(!Number.isFinite(e))throw new TypeError("min must be a number");if(!Number.isFinite(n))throw new TypeError("max must be a number");if(e>=n)throw new RangeError("min must be smaller than max");let r=new w(this.rows,this.columns);for(let t=0;t<this.rows;t++){const i=this.getRow(t);o(i,{min:e,max:n,output:i}),r.setRow(t,i)}return r}scaleColumns(t={}){if("object"!=typeof t)throw new TypeError("options must be an object");const{min:e=0,max:n=1}=t;if(!Number.isFinite(e))throw new TypeError("min must be a number");if(!Number.isFinite(n))throw new TypeError("max must be a number");if(e>=n)throw new RangeError("min must be smaller than max");let r=new w(this.rows,this.columns);for(let t=0;t<this.columns;t++){const i=this.getColumn(t);o(i,{min:e,max:n,output:i}),r.setColumn(t,i)}return r}flipRows(){const t=Math.ceil(this.columns/2);for(let e=0;e<this.rows;e++)for(let n=0;n<t;n++){let t=this.get(e,n),r=this.get(e,this.columns-1-n);this.set(e,n,r),this.set(e,this.columns-1-n,t)}return this}flipColumns(){const t=Math.ceil(this.rows/2);for(let e=0;e<this.columns;e++)for(let n=0;n<t;n++){let t=this.get(n,e),r=this.get(this.rows-1-n,e);this.set(n,e,r),this.set(this.rows-1-n,e,t)}return this}kroneckerProduct(t){t=w.checkMatrix(t);let e=this.rows,n=this.columns,r=t.rows,i=t.columns,o=new w(e*r,n*i);for(let a=0;a<e;a++)for(let e=0;e<n;e++)for(let n=0;n<r;n++)for(let s=0;s<i;s++)o.set(r*a+n,i*e+s,this.get(a,e)*t.get(n,s));return o}transpose(){let t=new w(this.columns,this.rows);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.set(n,e,this.get(e,n));return t}sortRows(t=x){for(let e=0;e<this.rows;e++)this.setRow(e,this.getRow(e).sort(t));return this}sortColumns(t=x){for(let e=0;e<this.columns;e++)this.setColumn(e,this.getColumn(e).sort(t));return this}subMatrix(t,e,n,r){m(this,t,e,n,r);let i=new w(e-t+1,r-n+1);for(let o=t;o<=e;o++)for(let e=n;e<=r;e++)i.set(o-t,e-n,this.get(o,e));return i}subMatrixRow(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.columns-1),e>n||e<0||e>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let r=new w(t.length,n-e+1);for(let i=0;i<t.length;i++)for(let o=e;o<=n;o++){if(t[i]<0||t[i]>=this.rows)throw new RangeError(`Row index out of range: ${t[i]}`);r.set(i,o-e,this.get(t[i],o))}return r}subMatrixColumn(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.rows-1),e>n||e<0||e>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let r=new w(n-e+1,t.length);for(let i=0;i<t.length;i++)for(let o=e;o<=n;o++){if(t[i]<0||t[i]>=this.columns)throw new RangeError(`Column index out of range: ${t[i]}`);r.set(o-e,i,this.get(o,t[i]))}return r}setSubMatrix(t,e,n){m(this,e,e+(t=w.checkMatrix(t)).rows-1,n,n+t.columns-1);for(let r=0;r<t.rows;r++)for(let i=0;i<t.columns;i++)this.set(e+r,n+i,t.get(r,i));return this}selection(t,e){let n=p(this,t,e),r=new w(t.length,e.length);for(let t=0;t<n.row.length;t++){let e=n.row[t];for(let i=0;i<n.column.length;i++){let o=n.column[i];r.set(t,i,this.get(e,o))}}return r}trace(){let t=Math.min(this.rows,this.columns),e=0;for(let n=0;n<t;n++)e+=this.get(n,n);return e}clone(){let t=new w(this.rows,this.columns);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.set(e,n,this.get(e,n));return t}sum(t){switch(t){case"row":return function(t){let e=y(t.rows);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[n]+=t.get(n,r);return e}(this);case"column":return function(t){let e=y(t.columns);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[r]+=t.get(n,r);return e}(this);case void 0:return function(t){let e=0;for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)e+=t.get(n,r);return e}(this);default:throw new Error(`invalid option: ${t}`)}}product(t){switch(t){case"row":return function(t){let e=y(t.rows,1);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[n]*=t.get(n,r);return e}(this);case"column":return function(t){let e=y(t.columns,1);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[r]*=t.get(n,r);return e}(this);case void 0:return function(t){let e=1;for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)e*=t.get(n,r);return e}(this);default:throw new Error(`invalid option: ${t}`)}}mean(t){const e=this.sum(t);switch(t){case"row":for(let t=0;t<this.rows;t++)e[t]/=this.columns;return e;case"column":for(let t=0;t<this.columns;t++)e[t]/=this.rows;return e;case void 0:return e/this.size;default:throw new Error(`invalid option: ${t}`)}}variance(t,e={}){if("object"==typeof t&&(e=t,t=void 0),"object"!=typeof e)throw new TypeError("options must be an object");const{unbiased:n=!0,mean:r=this.mean(t)}=e;if("boolean"!=typeof n)throw new TypeError("unbiased must be a boolean");switch(t){case"row":if(!Array.isArray(r))throw new TypeError("mean must be an array");return function(t,e,n){const r=t.rows,i=t.columns,o=[];for(let a=0;a<r;a++){let r=0,s=0,l=0;for(let e=0;e<i;e++)r+=l=t.get(a,e)-n[a],s+=l*l;e?o.push((s-r*r/i)/(i-1)):o.push((s-r*r/i)/i)}return o}(this,n,r);case"column":if(!Array.isArray(r))throw new TypeError("mean must be an array");return function(t,e,n){const r=t.rows,i=t.columns,o=[];for(let a=0;a<i;a++){let i=0,s=0,l=0;for(let e=0;e<r;e++)i+=l=t.get(e,a)-n[a],s+=l*l;e?o.push((s-i*i/r)/(r-1)):o.push((s-i*i/r)/r)}return o}(this,n,r);case void 0:if("number"!=typeof r)throw new TypeError("mean must be a number");return function(t,e,n){const r=t.rows,i=t.columns,o=r*i;let a=0,s=0,l=0;for(let e=0;e<r;e++)for(let r=0;r<i;r++)a+=l=t.get(e,r)-n,s+=l*l;return e?(s-a*a/o)/(o-1):(s-a*a/o)/o}(this,n,r);default:throw new Error(`invalid option: ${t}`)}}standardDeviation(t,e){"object"==typeof t&&(e=t,t=void 0);const n=this.variance(t,e);if(void 0===t)return Math.sqrt(n);for(let t=0;t<n.length;t++)n[t]=Math.sqrt(n[t]);return n}center(t,e={}){if("object"==typeof t&&(e=t,t=void 0),"object"!=typeof e)throw new TypeError("options must be an object");const{center:n=this.mean(t)}=e;switch(t){case"row":if(!Array.isArray(n))throw new TypeError("center must be an array");return function(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[n])}(this,n),this;case"column":if(!Array.isArray(n))throw new TypeError("center must be an array");return function(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[r])}(this,n),this;case void 0:if("number"!=typeof n)throw new TypeError("center must be a number");return function(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e)}(this,n),this;default:throw new Error(`invalid option: ${t}`)}}scale(t,e={}){if("object"==typeof t&&(e=t,t=void 0),"object"!=typeof e)throw new TypeError("options must be an object");let n=e.scale;switch(t){case"row":if(void 0===n)n=function(t){const e=[];for(let n=0;n<t.rows;n++){let r=0;for(let e=0;e<t.columns;e++)r+=Math.pow(t.get(n,e),2)/(t.columns-1);e.push(Math.sqrt(r))}return e}(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return function(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[n])}(this,n),this;case"column":if(void 0===n)n=function(t){const e=[];for(let n=0;n<t.columns;n++){let r=0;for(let e=0;e<t.rows;e++)r+=Math.pow(t.get(e,n),2)/(t.rows-1);e.push(Math.sqrt(r))}return e}(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return function(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[r])}(this,n),this;case void 0:if(void 0===n)n=function(t){const e=t.size-1;let n=0;for(let r=0;r<t.columns;r++)for(let i=0;i<t.rows;i++)n+=Math.pow(t.get(i,r),2)/e;return Math.sqrt(n)}(this);else if("number"!=typeof n)throw new TypeError("scale must be a number");return function(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e)}(this,n),this;default:throw new Error(`invalid option: ${t}`)}}toString(t){return l(this,t)}}function x(t,e){return t-e}_.prototype.klass="Matrix","undefined"!=typeof Symbol&&(_.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return l(this)}),_.random=_.rand,_.randomInt=_.randInt,_.diagonal=_.diag,_.prototype.diagonal=_.prototype.diag,_.identity=_.eye,_.prototype.negate=_.prototype.neg,_.prototype.tensorProduct=_.prototype.kroneckerProduct;class w extends _{constructor(t,e){if(super(),w.isMatrix(t))return t.clone();if(Number.isInteger(t)&&t>0){if(this.data=[],!(Number.isInteger(e)&&e>0))throw new TypeError("nColumns must be a positive integer");for(let n=0;n<t;n++)this.data.push(new Float64Array(e))}else{if(!Array.isArray(t))throw new TypeError("First argument must be a positive number or an array");{const n=t;if(t=n.length,"number"!=typeof(e=n[0].length)||0===e)throw new TypeError("Data must be a 2D array with at least one element");this.data=[];for(let r=0;r<t;r++){if(n[r].length!==e)throw new RangeError("Inconsistent array dimensions");this.data.push(Float64Array.from(n[r]))}}}return this.rows=t,this.columns=e,this}set(t,e,n){return this.data[t][e]=n,this}get(t,e){return this.data[t][e]}removeRow(t){if(c(this,t),1===this.rows)throw new RangeError("A matrix cannot have less than one row");return this.data.splice(t,1),this.rows-=1,this}addRow(t,e){return void 0===e&&(e=t,t=this.rows),c(this,t,!0),e=Float64Array.from(d(this,e)),this.data.splice(t,0,e),this.rows+=1,this}removeColumn(t){if(h(this,t),1===this.columns)throw new RangeError("A matrix cannot have less than one column");for(let e=0;e<this.rows;e++){const n=new Float64Array(this.columns-1);for(let r=0;r<t;r++)n[r]=this.data[e][r];for(let r=t+1;r<this.columns;r++)n[r-1]=this.data[e][r];this.data[e]=n}return this.columns-=1,this}addColumn(t,e){void 0===e&&(e=t,t=this.columns),h(this,t,!0),e=f(this,e);for(let n=0;n<this.rows;n++){const r=new Float64Array(this.columns+1);let i=0;for(;i<t;i++)r[i]=this.data[n][i];for(r[i++]=e[n];i<this.columns+1;i++)r[i]=this.data[n][i-1];this.data[n]=r}return this.columns+=1,this}}var S,C;C=w,(S=_).prototype.add=function(t){return"number"==typeof t?this.addS(t):this.addM(t)},S.prototype.addS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t);return this},S.prototype.addM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t.get(e,n));return this},S.add=function(t,e){return new C(t).add(e)},S.prototype.sub=function(t){return"number"==typeof t?this.subS(t):this.subM(t)},S.prototype.subS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t);return this},S.prototype.subM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t.get(e,n));return this},S.sub=function(t,e){return new C(t).sub(e)},S.prototype.subtract=S.prototype.sub,S.prototype.subtractS=S.prototype.subS,S.prototype.subtractM=S.prototype.subM,S.subtract=S.sub,S.prototype.mul=function(t){return"number"==typeof t?this.mulS(t):this.mulM(t)},S.prototype.mulS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t);return this},S.prototype.mulM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t.get(e,n));return this},S.mul=function(t,e){return new C(t).mul(e)},S.prototype.multiply=S.prototype.mul,S.prototype.multiplyS=S.prototype.mulS,S.prototype.multiplyM=S.prototype.mulM,S.multiply=S.mul,S.prototype.div=function(t){return"number"==typeof t?this.divS(t):this.divM(t)},S.prototype.divS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t);return this},S.prototype.divM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t.get(e,n));return this},S.div=function(t,e){return new C(t).div(e)},S.prototype.divide=S.prototype.div,S.prototype.divideS=S.prototype.divS,S.prototype.divideM=S.prototype.divM,S.divide=S.div,S.prototype.mod=function(t){return"number"==typeof t?this.modS(t):this.modM(t)},S.prototype.modS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t);return this},S.prototype.modM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t.get(e,n));return this},S.mod=function(t,e){return new C(t).mod(e)},S.prototype.modulus=S.prototype.mod,S.prototype.modulusS=S.prototype.modS,S.prototype.modulusM=S.prototype.modM,S.modulus=S.mod,S.prototype.and=function(t){return"number"==typeof t?this.andS(t):this.andM(t)},S.prototype.andS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t);return this},S.prototype.andM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t.get(e,n));return this},S.and=function(t,e){return new C(t).and(e)},S.prototype.or=function(t){return"number"==typeof t?this.orS(t):this.orM(t)},S.prototype.orS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t);return this},S.prototype.orM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t.get(e,n));return this},S.or=function(t,e){return new C(t).or(e)},S.prototype.xor=function(t){return"number"==typeof t?this.xorS(t):this.xorM(t)},S.prototype.xorS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t);return this},S.prototype.xorM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t.get(e,n));return this},S.xor=function(t,e){return new C(t).xor(e)},S.prototype.leftShift=function(t){return"number"==typeof t?this.leftShiftS(t):this.leftShiftM(t)},S.prototype.leftShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t);return this},S.prototype.leftShiftM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t.get(e,n));return this},S.leftShift=function(t,e){return new C(t).leftShift(e)},S.prototype.signPropagatingRightShift=function(t){return"number"==typeof t?this.signPropagatingRightShiftS(t):this.signPropagatingRightShiftM(t)},S.prototype.signPropagatingRightShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t);return this},S.prototype.signPropagatingRightShiftM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t.get(e,n));return this},S.signPropagatingRightShift=function(t,e){return new C(t).signPropagatingRightShift(e)},S.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},S.prototype.rightShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t);return this},S.prototype.rightShiftM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t.get(e,n));return this},S.rightShift=function(t,e){return new C(t).rightShift(e)},S.prototype.zeroFillRightShift=S.prototype.rightShift,S.prototype.zeroFillRightShiftS=S.prototype.rightShiftS,S.prototype.zeroFillRightShiftM=S.prototype.rightShiftM,S.zeroFillRightShift=S.rightShift,S.prototype.not=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,~this.get(t,e));return this},S.not=function(t){return new C(t).not()},S.prototype.abs=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.abs(this.get(t,e)));return this},S.abs=function(t){return new C(t).abs()},S.prototype.acos=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.acos(this.get(t,e)));return this},S.acos=function(t){return new C(t).acos()},S.prototype.acosh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.acosh(this.get(t,e)));return this},S.acosh=function(t){return new C(t).acosh()},S.prototype.asin=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.asin(this.get(t,e)));return this},S.asin=function(t){return new C(t).asin()},S.prototype.asinh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.asinh(this.get(t,e)));return this},S.asinh=function(t){return new C(t).asinh()},S.prototype.atan=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.atan(this.get(t,e)));return this},S.atan=function(t){return new C(t).atan()},S.prototype.atanh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.atanh(this.get(t,e)));return this},S.atanh=function(t){return new C(t).atanh()},S.prototype.cbrt=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cbrt(this.get(t,e)));return this},S.cbrt=function(t){return new C(t).cbrt()},S.prototype.ceil=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.ceil(this.get(t,e)));return this},S.ceil=function(t){return new C(t).ceil()},S.prototype.clz32=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.clz32(this.get(t,e)));return this},S.clz32=function(t){return new C(t).clz32()},S.prototype.cos=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cos(this.get(t,e)));return this},S.cos=function(t){return new C(t).cos()},S.prototype.cosh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cosh(this.get(t,e)));return this},S.cosh=function(t){return new C(t).cosh()},S.prototype.exp=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.exp(this.get(t,e)));return this},S.exp=function(t){return new C(t).exp()},S.prototype.expm1=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.expm1(this.get(t,e)));return this},S.expm1=function(t){return new C(t).expm1()},S.prototype.floor=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.floor(this.get(t,e)));return this},S.floor=function(t){return new C(t).floor()},S.prototype.fround=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.fround(this.get(t,e)));return this},S.fround=function(t){return new C(t).fround()},S.prototype.log=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log(this.get(t,e)));return this},S.log=function(t){return new C(t).log()},S.prototype.log1p=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log1p(this.get(t,e)));return this},S.log1p=function(t){return new C(t).log1p()},S.prototype.log10=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log10(this.get(t,e)));return this},S.log10=function(t){return new C(t).log10()},S.prototype.log2=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log2(this.get(t,e)));return this},S.log2=function(t){return new C(t).log2()},S.prototype.round=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.round(this.get(t,e)));return this},S.round=function(t){return new C(t).round()},S.prototype.sign=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sign(this.get(t,e)));return this},S.sign=function(t){return new C(t).sign()},S.prototype.sin=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sin(this.get(t,e)));return this},S.sin=function(t){return new C(t).sin()},S.prototype.sinh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sinh(this.get(t,e)));return this},S.sinh=function(t){return new C(t).sinh()},S.prototype.sqrt=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sqrt(this.get(t,e)));return this},S.sqrt=function(t){return new C(t).sqrt()},S.prototype.tan=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.tan(this.get(t,e)));return this},S.tan=function(t){return new C(t).tan()},S.prototype.tanh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.tanh(this.get(t,e)));return this},S.tanh=function(t){return new C(t).tanh()},S.prototype.trunc=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.trunc(this.get(t,e)));return this},S.trunc=function(t){return new C(t).trunc()},S.pow=function(t,e){return new C(t).pow(e)},S.prototype.pow=function(t){return"number"==typeof t?this.powS(t):this.powM(t)},S.prototype.powS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t));return this},S.prototype.powM=function(t){if(t=C.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t.get(e,n)));return this};class k extends _{constructor(t,e,n){super(),this.matrix=t,this.rows=e,this.columns=n}}class O extends k{constructor(t,e){h(t,e),super(t,t.rows,1),this.column=e}set(t,e,n){return this.matrix.set(t,this.column,n),this}get(t){return this.matrix.get(t,this.column)}}class M extends k{constructor(t,e){e=v(t,e),super(t,t.rows,e.length),this.columnIndices=e}set(t,e,n){return this.matrix.set(t,this.columnIndices[e],n),this}get(t,e){return this.matrix.get(t,this.columnIndices[e])}}class E extends k{constructor(t){super(t,t.rows,t.columns)}set(t,e,n){return this.matrix.set(t,this.columns-e-1,n),this}get(t,e){return this.matrix.get(t,this.columns-e-1)}}class T extends k{constructor(t){super(t,t.rows,t.columns)}set(t,e,n){return this.matrix.set(this.rows-t-1,e,n),this}get(t,e){return this.matrix.get(this.rows-t-1,e)}}class A extends k{constructor(t,e){c(t,e),super(t,1,t.columns),this.row=e}set(t,e,n){return this.matrix.set(this.row,e,n),this}get(t,e){return this.matrix.get(this.row,e)}}class I extends k{constructor(t,e){super(t,(e=g(t,e)).length,t.columns),this.rowIndices=e}set(t,e,n){return this.matrix.set(this.rowIndices[t],e,n),this}get(t,e){return this.matrix.get(this.rowIndices[t],e)}}class D extends k{constructor(t,e,n){let r=p(t,e,n);super(t,r.row.length,r.column.length),this.rowIndices=r.row,this.columnIndices=r.column}set(t,e,n){return this.matrix.set(this.rowIndices[t],this.columnIndices[e],n),this}get(t,e){return this.matrix.get(this.rowIndices[t],this.columnIndices[e])}}class P extends k{constructor(t,e,n,r,i){m(t,e,n,r,i),super(t,n-e+1,i-r+1),this.startRow=e,this.startColumn=r}set(t,e,n){return this.matrix.set(this.startRow+t,this.startColumn+e,n),this}get(t,e){return this.matrix.get(this.startRow+t,this.startColumn+e)}}class L extends k{constructor(t){super(t,t.columns,t.rows)}set(t,e,n){return this.matrix.set(e,t,n),this}get(t,e){return this.matrix.get(e,t)}}class j extends _{constructor(t,e={}){const{rows:n=1}=e;if(t.length%n!=0)throw new Error("the data length is not divisible by the number of rows");super(),this.rows=n,this.columns=t.length/n,this.data=t}set(t,e,n){let r=this._calculateIndex(t,e);return this.data[r]=n,this}get(t,e){let n=this._calculateIndex(t,e);return this.data[n]}_calculateIndex(t,e){return t*this.columns+e}}class N extends _{constructor(t){super(),this.data=t,this.rows=t.length,this.columns=t[0].length}set(t,e,n){return this.data[t][e]=n,this}get(t,e){return this.data[t][e]}}function R(t,e){if(Array.isArray(t))return t[0]&&Array.isArray(t[0])?new N(t):new j(t,e);throw new Error("the argument is not an array")}class B{constructor(t){let e,n,r,i,o,a,s,l,u,c=(t=N.checkMatrix(t)).clone(),h=c.rows,d=c.columns,f=new Float64Array(h),p=1;for(e=0;e<h;e++)f[e]=e;for(l=new Float64Array(h),n=0;n<d;n++){for(e=0;e<h;e++)l[e]=c.get(e,n);for(e=0;e<h;e++){for(u=Math.min(e,n),o=0,r=0;r<u;r++)o+=c.get(e,r)*l[r];l[e]-=o,c.set(e,n,l[e])}for(i=n,e=n+1;e<h;e++)Math.abs(l[e])>Math.abs(l[i])&&(i=e);if(i!==n){for(r=0;r<d;r++)a=c.get(i,r),c.set(i,r,c.get(n,r)),c.set(n,r,a);s=f[i],f[i]=f[n],f[n]=s,p=-p}if(n<h&&0!==c.get(n,n))for(e=n+1;e<h;e++)c.set(e,n,c.get(e,n)/c.get(n,n))}this.LU=c,this.pivotVector=f,this.pivotSign=p}isSingular(){let t=this.LU,e=t.columns;for(let n=0;n<e;n++)if(0===t.get(n,n))return!0;return!1}solve(t){t=w.checkMatrix(t);let e=this.LU;if(e.rows!==t.rows)throw new Error("Invalid matrix dimensions");if(this.isSingular())throw new Error("LU matrix is singular");let n,r,i,o=t.columns,a=t.subMatrixRow(this.pivotVector,0,o-1),s=e.columns;for(i=0;i<s;i++)for(n=i+1;n<s;n++)for(r=0;r<o;r++)a.set(n,r,a.get(n,r)-a.get(i,r)*e.get(n,i));for(i=s-1;i>=0;i--){for(r=0;r<o;r++)a.set(i,r,a.get(i,r)/e.get(i,i));for(n=0;n<i;n++)for(r=0;r<o;r++)a.set(n,r,a.get(n,r)-a.get(i,r)*e.get(n,i))}return a}get determinant(){let t=this.LU;if(!t.isSquare())throw new Error("Matrix must be square");let e=this.pivotSign,n=t.columns;for(let r=0;r<n;r++)e*=t.get(r,r);return e}get lowerTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new w(e,n);for(let i=0;i<e;i++)for(let e=0;e<n;e++)i>e?r.set(i,e,t.get(i,e)):i===e?r.set(i,e,1):r.set(i,e,0);return r}get upperTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new w(e,n);for(let i=0;i<e;i++)for(let e=0;e<n;e++)i<=e?r.set(i,e,t.get(i,e)):r.set(i,e,0);return r}get pivotPermutationVector(){return Array.from(this.pivotVector)}}function F(t,e){let n=0;return Math.abs(t)>Math.abs(e)?(n=e/t,Math.abs(t)*Math.sqrt(1+n*n)):0!==e?(n=t/e,Math.abs(e)*Math.sqrt(1+n*n)):0}class z{constructor(t){let e,n,r,i,o=(t=N.checkMatrix(t)).clone(),a=t.rows,s=t.columns,l=new Float64Array(s);for(r=0;r<s;r++){let t=0;for(e=r;e<a;e++)t=F(t,o.get(e,r));if(0!==t){for(o.get(r,r)<0&&(t=-t),e=r;e<a;e++)o.set(e,r,o.get(e,r)/t);for(o.set(r,r,o.get(r,r)+1),n=r+1;n<s;n++){for(i=0,e=r;e<a;e++)i+=o.get(e,r)*o.get(e,n);for(i=-i/o.get(r,r),e=r;e<a;e++)o.set(e,n,o.get(e,n)+i*o.get(e,r))}}l[r]=-t}this.QR=o,this.Rdiag=l}solve(t){t=w.checkMatrix(t);let e=this.QR,n=e.rows;if(t.rows!==n)throw new Error("Matrix row dimensions must agree");if(!this.isFullRank())throw new Error("Matrix is rank deficient");let r,i,o,a,s=t.columns,l=t.clone(),u=e.columns;for(o=0;o<u;o++)for(i=0;i<s;i++){for(a=0,r=o;r<n;r++)a+=e.get(r,o)*l.get(r,i);for(a=-a/e.get(o,o),r=o;r<n;r++)l.set(r,i,l.get(r,i)+a*e.get(r,o))}for(o=u-1;o>=0;o--){for(i=0;i<s;i++)l.set(o,i,l.get(o,i)/this.Rdiag[o]);for(r=0;r<o;r++)for(i=0;i<s;i++)l.set(r,i,l.get(r,i)-l.get(o,i)*e.get(r,o))}return l.subMatrix(0,u-1,0,s-1)}isFullRank(){let t=this.QR.columns;for(let e=0;e<t;e++)if(0===this.Rdiag[e])return!1;return!0}get upperTriangularMatrix(){let t,e,n=this.QR,r=n.columns,i=new w(r,r);for(t=0;t<r;t++)for(e=0;e<r;e++)t<e?i.set(t,e,n.get(t,e)):t===e?i.set(t,e,this.Rdiag[t]):i.set(t,e,0);return i}get orthogonalMatrix(){let t,e,n,r,i=this.QR,o=i.rows,a=i.columns,s=new w(o,a);for(n=a-1;n>=0;n--){for(t=0;t<o;t++)s.set(t,n,0);for(s.set(n,n,1),e=n;e<a;e++)if(0!==i.get(n,n)){for(r=0,t=n;t<o;t++)r+=i.get(t,n)*s.get(t,e);for(r=-r/i.get(n,n),t=n;t<o;t++)s.set(t,e,s.get(t,e)+r*i.get(t,n))}}return s}}class V{constructor(t,e={}){let n=(t=N.checkMatrix(t)).rows,r=t.columns;const{computeLeftSingularVectors:i=!0,computeRightSingularVectors:o=!0,autoTranspose:a=!1}=e;let s,l=Boolean(i),u=Boolean(o),c=!1;if(n<r)if(a){n=(s=t.transpose()).rows,r=s.columns,c=!0;let e=l;l=u,u=e}else s=t.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else s=t.clone();let h=Math.min(n,r),d=Math.min(n+1,r),f=new Float64Array(d),p=new w(n,h),g=new w(r,r),v=new Float64Array(r),m=new Float64Array(n),y=new Float64Array(d);for(let t=0;t<d;t++)y[t]=t;let b=Math.min(n-1,r),_=Math.max(0,Math.min(r-2,n)),x=Math.max(b,_);for(let t=0;t<x;t++){if(t<b){f[t]=0;for(let e=t;e<n;e++)f[t]=F(f[t],s.get(e,t));if(0!==f[t]){s.get(t,t)<0&&(f[t]=-f[t]);for(let e=t;e<n;e++)s.set(e,t,s.get(e,t)/f[t]);s.set(t,t,s.get(t,t)+1)}f[t]=-f[t]}for(let e=t+1;e<r;e++){if(t<b&&0!==f[t]){let r=0;for(let i=t;i<n;i++)r+=s.get(i,t)*s.get(i,e);r=-r/s.get(t,t);for(let i=t;i<n;i++)s.set(i,e,s.get(i,e)+r*s.get(i,t))}v[e]=s.get(t,e)}if(l&&t<b)for(let e=t;e<n;e++)p.set(e,t,s.get(e,t));if(t<_){v[t]=0;for(let e=t+1;e<r;e++)v[t]=F(v[t],v[e]);if(0!==v[t]){v[t+1]<0&&(v[t]=0-v[t]);for(let e=t+1;e<r;e++)v[e]/=v[t];v[t+1]+=1}if(v[t]=-v[t],t+1<n&&0!==v[t]){for(let e=t+1;e<n;e++)m[e]=0;for(let e=t+1;e<n;e++)for(let n=t+1;n<r;n++)m[e]+=v[n]*s.get(e,n);for(let e=t+1;e<r;e++){let r=-v[e]/v[t+1];for(let i=t+1;i<n;i++)s.set(i,e,s.get(i,e)+r*m[i])}}if(u)for(let e=t+1;e<r;e++)g.set(e,t,v[e])}}let S=Math.min(r,n+1);if(b<r&&(f[b]=s.get(b,b)),n<S&&(f[S-1]=0),_+1<S&&(v[_]=s.get(_,S-1)),v[S-1]=0,l){for(let t=b;t<h;t++){for(let e=0;e<n;e++)p.set(e,t,0);p.set(t,t,1)}for(let t=b-1;t>=0;t--)if(0!==f[t]){for(let e=t+1;e<h;e++){let r=0;for(let i=t;i<n;i++)r+=p.get(i,t)*p.get(i,e);r=-r/p.get(t,t);for(let i=t;i<n;i++)p.set(i,e,p.get(i,e)+r*p.get(i,t))}for(let e=t;e<n;e++)p.set(e,t,-p.get(e,t));p.set(t,t,1+p.get(t,t));for(let e=0;e<t-1;e++)p.set(e,t,0)}else{for(let e=0;e<n;e++)p.set(e,t,0);p.set(t,t,1)}}if(u)for(let t=r-1;t>=0;t--){if(t<_&&0!==v[t])for(let e=t+1;e<r;e++){let n=0;for(let i=t+1;i<r;i++)n+=g.get(i,t)*g.get(i,e);n=-n/g.get(t+1,t);for(let i=t+1;i<r;i++)g.set(i,e,g.get(i,e)+n*g.get(i,t))}for(let e=0;e<r;e++)g.set(e,t,0);g.set(t,t,1)}let C=S-1,k=0,O=Number.EPSILON;for(;S>0;){let t,e;for(t=S-2;t>=-1&&-1!==t;t--){const e=Number.MIN_VALUE+O*Math.abs(f[t]+Math.abs(f[t+1]));if(Math.abs(v[t])<=e||Number.isNaN(v[t])){v[t]=0;break}}if(t===S-2)e=4;else{let n;for(n=S-1;n>=t&&n!==t;n--){let e=(n!==S?Math.abs(v[n]):0)+(n!==t+1?Math.abs(v[n-1]):0);if(Math.abs(f[n])<=O*e){f[n]=0;break}}n===t?e=3:n===S-1?e=1:(e=2,t=n)}switch(t++,e){case 1:{let e=v[S-2];v[S-2]=0;for(let n=S-2;n>=t;n--){let i=F(f[n],e),o=f[n]/i,a=e/i;if(f[n]=i,n!==t&&(e=-a*v[n-1],v[n-1]=o*v[n-1]),u)for(let t=0;t<r;t++)i=o*g.get(t,n)+a*g.get(t,S-1),g.set(t,S-1,-a*g.get(t,n)+o*g.get(t,S-1)),g.set(t,n,i)}break}case 2:{let e=v[t-1];v[t-1]=0;for(let r=t;r<S;r++){let i=F(f[r],e),o=f[r]/i,a=e/i;if(f[r]=i,e=-a*v[r],v[r]=o*v[r],l)for(let e=0;e<n;e++)i=o*p.get(e,r)+a*p.get(e,t-1),p.set(e,t-1,-a*p.get(e,r)+o*p.get(e,t-1)),p.set(e,r,i)}break}case 3:{const e=Math.max(Math.abs(f[S-1]),Math.abs(f[S-2]),Math.abs(v[S-2]),Math.abs(f[t]),Math.abs(v[t])),i=f[S-1]/e,o=f[S-2]/e,a=v[S-2]/e,s=f[t]/e,c=v[t]/e,h=((o+i)*(o-i)+a*a)/2,d=i*a*(i*a);let m=0;0===h&&0===d||(m=d/(h+(m=h<0?0-Math.sqrt(h*h+d):Math.sqrt(h*h+d))));let y=(s+i)*(s-i)+m,b=s*c;for(let e=t;e<S-1;e++){let i=F(y,b);0===i&&(i=Number.MIN_VALUE);let o=y/i,a=b/i;if(e!==t&&(v[e-1]=i),y=o*f[e]+a*v[e],v[e]=o*v[e]-a*f[e],b=a*f[e+1],f[e+1]=o*f[e+1],u)for(let t=0;t<r;t++)i=o*g.get(t,e)+a*g.get(t,e+1),g.set(t,e+1,-a*g.get(t,e)+o*g.get(t,e+1)),g.set(t,e,i);if(0===(i=F(y,b))&&(i=Number.MIN_VALUE),o=y/i,a=b/i,f[e]=i,y=o*v[e]+a*f[e+1],f[e+1]=-a*v[e]+o*f[e+1],b=a*v[e+1],v[e+1]=o*v[e+1],l&&e<n-1)for(let t=0;t<n;t++)i=o*p.get(t,e)+a*p.get(t,e+1),p.set(t,e+1,-a*p.get(t,e)+o*p.get(t,e+1)),p.set(t,e,i)}v[S-2]=y,k+=1;break}case 4:if(f[t]<=0&&(f[t]=f[t]<0?-f[t]:0,u))for(let e=0;e<=C;e++)g.set(e,t,-g.get(e,t));for(;t<C&&!(f[t]>=f[t+1]);){let e=f[t];if(f[t]=f[t+1],f[t+1]=e,u&&t<r-1)for(let n=0;n<r;n++)e=g.get(n,t+1),g.set(n,t+1,g.get(n,t)),g.set(n,t,e);if(l&&t<n-1)for(let r=0;r<n;r++)e=p.get(r,t+1),p.set(r,t+1,p.get(r,t)),p.set(r,t,e);t++}k=0,S--}}if(c){let t=g;g=p,p=t}this.m=n,this.n=r,this.s=f,this.U=p,this.V=g}solve(t){let e=t,n=this.threshold,r=this.s.length,i=w.zeros(r,r);for(let t=0;t<r;t++)Math.abs(this.s[t])<=n?i.set(t,t,0):i.set(t,t,1/this.s[t]);let o=this.U,a=this.rightSingularVectors,s=a.mmul(i),l=a.rows,u=o.rows,c=w.zeros(l,u);for(let t=0;t<l;t++)for(let e=0;e<u;e++){let n=0;for(let i=0;i<r;i++)n+=s.get(t,i)*o.get(e,i);c.set(t,e,n)}return c.mmul(e)}solveForDiagonal(t){return this.solve(w.diag(t))}inverse(){let t=this.V,e=this.threshold,n=t.rows,r=t.columns,i=new w(n,this.s.length);for(let o=0;o<n;o++)for(let n=0;n<r;n++)Math.abs(this.s[n])>e&&i.set(o,n,t.get(o,n)/this.s[n]);let o=this.U,a=o.rows,s=o.columns,l=new w(n,a);for(let t=0;t<n;t++)for(let e=0;e<a;e++){let n=0;for(let r=0;r<s;r++)n+=i.get(t,r)*o.get(e,r);l.set(t,e,n)}return l}get condition(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}get norm2(){return this.s[0]}get rank(){let t=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,e=0,n=this.s;for(let r=0,i=n.length;r<i;r++)n[r]>t&&e++;return e}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return w.diag(this.s)}}function $(t,e=!1){return t=N.checkMatrix(t),e?new V(t).inverse():G(t,w.eye(t.rows))}function G(t,e,n=!1){return t=N.checkMatrix(t),e=N.checkMatrix(e),n?new V(t).solve(e):t.isSquare()?new B(t).solve(e):new z(t).solve(e)}function H(t){if((t=w.checkMatrix(t)).isSquare()){let e,n,r,i;if(2===t.columns)return e=t.get(0,0),n=t.get(0,1),r=t.get(1,0),e*(i=t.get(1,1))-n*r;if(3===t.columns){let i,o,a;return i=new D(t,[1,2],[1,2]),o=new D(t,[1,2],[0,2]),a=new D(t,[1,2],[0,1]),e=t.get(0,0),n=t.get(0,1),r=t.get(0,2),e*H(i)-n*H(o)+r*H(a)}return new B(t).determinant}throw Error("determinant can only be calculated for a square matrix")}function W(t,e){let n=[];for(let r=0;r<t;r++)r!==e&&n.push(r);return n}function U(t,e,n,r=1e-9,i=1e-9){if(t>i)return new Array(e.rows+1).fill(0);{let t=e.addRow(n,[0]);for(let e=0;e<t.rows;e++)Math.abs(t.get(e,0))<r&&t.set(e,0,0);return t.to1DArray()}}function Y(t,e={}){const{thresholdValue:n=1e-9,thresholdError:r=1e-9}=e;let i=(t=w.checkMatrix(t)).rows,o=new w(i,i);for(let e=0;e<i;e++){let a=w.columnVector(t.getRow(e)),s=t.subMatrixRow(W(i,e)).transpose(),l=new V(s).solve(a),u=w.sub(a,s.mmul(l)).abs().max();o.setRow(e,U(u,l,e,n,r))}return o}function X(t,e=Number.EPSILON){t=w.checkMatrix(t);let n=new V(t,{autoTranspose:!0}),r=n.leftSingularVectors,i=n.rightSingularVectors,o=n.diagonal;for(let t=0;t<o.length;t++)Math.abs(o[t])>e?o[t]=1/o[t]:o[t]=0;return i.mmul(w.diag(o).mmul(r.transpose()))}function q(t,e=t,n={}){t=new w(t);let r=!1;if("object"!=typeof e||w.isMatrix(e)||Array.isArray(e)?e=new w(e):(n=e,e=t,r=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:i=!0}=n;i&&(t=t.center("column"),r||(e=e.center("column")));const o=t.transpose().mmul(e);for(let e=0;e<o.rows;e++)for(let n=0;n<o.columns;n++)o.set(e,n,o.get(e,n)*(1/(t.rows-1)));return o}function Z(t,e=t,n={}){t=new w(t);let r=!1;if("object"!=typeof e||w.isMatrix(e)||Array.isArray(e)?e=new w(e):(n=e,e=t,r=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:i=!0,scale:o=!0}=n;i&&(t.center("column"),r||e.center("column")),o&&(t.scale("column"),r||e.scale("column"));const a=t.standardDeviation("column",{unbiased:!0}),s=r?a:e.standardDeviation("column",{unbiased:!0}),l=t.transpose().mmul(e);for(let e=0;e<l.rows;e++)for(let n=0;n<l.columns;n++)l.set(e,n,l.get(e,n)*(1/(a[e]*s[n]))*(1/(t.rows-1)));return l}class K{constructor(t,e={}){const{assumeSymmetric:n=!1}=e;if(!(t=N.checkMatrix(t)).isSquare())throw new Error("Matrix is not a square matrix");let r,i,o=t.columns,a=new w(o,o),s=new Float64Array(o),l=new Float64Array(o),u=t,c=!1;if(c=!!n||t.isSymmetric()){for(r=0;r<o;r++)for(i=0;i<o;i++)a.set(r,i,u.get(r,i));!function(t,e,n,r){let i,o,a,s,l,u,c,h;for(l=0;l<t;l++)n[l]=r.get(t-1,l);for(s=t-1;s>0;s--){for(h=0,a=0,u=0;u<s;u++)h+=Math.abs(n[u]);if(0===h)for(e[s]=n[s-1],l=0;l<s;l++)n[l]=r.get(s-1,l),r.set(s,l,0),r.set(l,s,0);else{for(u=0;u<s;u++)n[u]/=h,a+=n[u]*n[u];for(i=n[s-1],o=Math.sqrt(a),i>0&&(o=-o),e[s]=h*o,a-=i*o,n[s-1]=i-o,l=0;l<s;l++)e[l]=0;for(l=0;l<s;l++){for(i=n[l],r.set(l,s,i),o=e[l]+r.get(l,l)*i,u=l+1;u<=s-1;u++)o+=r.get(u,l)*n[u],e[u]+=r.get(u,l)*i;e[l]=o}for(i=0,l=0;l<s;l++)e[l]/=a,i+=e[l]*n[l];for(c=i/(a+a),l=0;l<s;l++)e[l]-=c*n[l];for(l=0;l<s;l++){for(i=n[l],o=e[l],u=l;u<=s-1;u++)r.set(u,l,r.get(u,l)-(i*e[u]+o*n[u]));n[l]=r.get(s-1,l),r.set(s,l,0)}}n[s]=a}for(s=0;s<t-1;s++){if(r.set(t-1,s,r.get(s,s)),r.set(s,s,1),0!==(a=n[s+1])){for(u=0;u<=s;u++)n[u]=r.get(u,s+1)/a;for(l=0;l<=s;l++){for(o=0,u=0;u<=s;u++)o+=r.get(u,s+1)*r.get(u,l);for(u=0;u<=s;u++)r.set(u,l,r.get(u,l)-o*n[u])}}for(u=0;u<=s;u++)r.set(u,s+1,0)}for(l=0;l<t;l++)n[l]=r.get(t-1,l),r.set(t-1,l,0);r.set(t-1,t-1,1),e[0]=0}(o,l,s,a),function(t,e,n,r){let i,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_;for(a=1;a<t;a++)e[a-1]=e[a];e[t-1]=0;let x=0,w=0,S=Number.EPSILON;for(u=0;u<t;u++){for(w=Math.max(w,Math.abs(n[u])+Math.abs(e[u])),c=u;c<t&&!(Math.abs(e[c])<=S*w);)c++;if(c>u){_=0;do{for(_+=1,i=n[u],h=(n[u+1]-i)/(2*e[u]),d=F(h,1),h<0&&(d=-d),n[u]=e[u]/(h+d),n[u+1]=e[u]*(h+d),f=n[u+1],o=i-n[u],a=u+2;a<t;a++)n[a]-=o;for(x+=o,h=n[c],g=p=1,v=p,m=e[u+1],y=0,b=0,a=c-1;a>=u;a--)for(v=g,g=p,b=y,i=p*e[a],o=p*h,d=F(h,e[a]),e[a+1]=y*d,y=e[a]/d,h=(p=h/d)*n[a]-y*i,n[a+1]=o+y*(p*i+y*n[a]),l=0;l<t;l++)o=r.get(l,a+1),r.set(l,a+1,y*r.get(l,a)+p*o),r.set(l,a,p*r.get(l,a)-y*o);h=-y*b*v*m*e[u]/f,e[u]=y*h,n[u]=p*h}while(Math.abs(e[u])>S*w)}n[u]=n[u]+x,e[u]=0}for(a=0;a<t-1;a++){for(l=a,h=n[a],s=a+1;s<t;s++)n[s]<h&&(l=s,h=n[s]);if(l!==a)for(n[l]=n[a],n[a]=h,s=0;s<t;s++)h=r.get(s,a),r.set(s,a,r.get(s,l)),r.set(s,l,h)}}(o,l,s,a)}else{let t=new w(o,o),e=new Float64Array(o);for(i=0;i<o;i++)for(r=0;r<o;r++)t.set(r,i,u.get(r,i));!function(t,e,n,r){let i,o,a,s,l,u,c,h=t-1;for(u=1;u<=h-1;u++){for(c=0,s=u;s<=h;s++)c+=Math.abs(e.get(s,u-1));if(0!==c){for(a=0,s=h;s>=u;s--)n[s]=e.get(s,u-1)/c,a+=n[s]*n[s];for(o=Math.sqrt(a),n[u]>0&&(o=-o),a-=n[u]*o,n[u]=n[u]-o,l=u;l<t;l++){for(i=0,s=h;s>=u;s--)i+=n[s]*e.get(s,l);for(i/=a,s=u;s<=h;s++)e.set(s,l,e.get(s,l)-i*n[s])}for(s=0;s<=h;s++){for(i=0,l=h;l>=u;l--)i+=n[l]*e.get(s,l);for(i/=a,l=u;l<=h;l++)e.set(s,l,e.get(s,l)-i*n[l])}n[u]=c*n[u],e.set(u,u-1,c*o)}}for(s=0;s<t;s++)for(l=0;l<t;l++)r.set(s,l,s===l?1:0);for(u=h-1;u>=1;u--)if(0!==e.get(u,u-1)){for(s=u+1;s<=h;s++)n[s]=e.get(s,u-1);for(l=u;l<=h;l++){for(o=0,s=u;s<=h;s++)o+=n[s]*r.get(s,l);for(o=o/n[u]/e.get(u,u-1),s=u;s<=h;s++)r.set(s,l,r.get(s,l)+o*n[s])}}}(o,t,e,a),function(t,e,n,r,i){let o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_=t-1,x=t-1,w=Number.EPSILON,S=0,C=0,k=0,O=0,M=0,E=0,T=0,A=0;for(o=0;o<t;o++)for((o<0||o>x)&&(n[o]=i.get(o,o),e[o]=0),a=Math.max(o-1,0);a<t;a++)C+=Math.abs(i.get(o,a));for(;_>=0;){for(l=_;l>0&&(0===(E=Math.abs(i.get(l-1,l-1))+Math.abs(i.get(l,l)))&&(E=C),!(Math.abs(i.get(l,l-1))<w*E));)l--;if(l===_)i.set(_,_,i.get(_,_)+S),n[_]=i.get(_,_),e[_]=0,_--,A=0;else if(l===_-1){if(h=i.get(_,_-1)*i.get(_-1,_),k=(i.get(_-1,_-1)-i.get(_,_))/2,O=k*k+h,T=Math.sqrt(Math.abs(O)),i.set(_,_,i.get(_,_)+S),i.set(_-1,_-1,i.get(_-1,_-1)+S),d=i.get(_,_),O>=0){for(T=k>=0?k+T:k-T,n[_-1]=d+T,n[_]=n[_-1],0!==T&&(n[_]=d-h/T),e[_-1]=0,e[_]=0,d=i.get(_,_-1),E=Math.abs(d)+Math.abs(T),k=d/E,O=T/E,M=Math.sqrt(k*k+O*O),k/=M,O/=M,a=_-1;a<t;a++)T=i.get(_-1,a),i.set(_-1,a,O*T+k*i.get(_,a)),i.set(_,a,O*i.get(_,a)-k*T);for(o=0;o<=_;o++)T=i.get(o,_-1),i.set(o,_-1,O*T+k*i.get(o,_)),i.set(o,_,O*i.get(o,_)-k*T);for(o=0;o<=x;o++)T=r.get(o,_-1),r.set(o,_-1,O*T+k*r.get(o,_)),r.set(o,_,O*r.get(o,_)-k*T)}else n[_-1]=d+k,n[_]=d+k,e[_-1]=T,e[_]=-T;_-=2,A=0}else{if(d=i.get(_,_),f=0,h=0,l<_&&(f=i.get(_-1,_-1),h=i.get(_,_-1)*i.get(_-1,_)),10===A){for(S+=d,o=0;o<=_;o++)i.set(o,o,i.get(o,o)-d);E=Math.abs(i.get(_,_-1))+Math.abs(i.get(_-1,_-2)),d=f=.75*E,h=-.4375*E*E}if(30===A&&(E=(E=(f-d)/2)*E+h)>0){for(E=Math.sqrt(E),f<d&&(E=-E),E=d-h/((f-d)/2+E),o=0;o<=_;o++)i.set(o,o,i.get(o,o)-E);S+=E,d=f=h=.964}for(A+=1,u=_-2;u>=l&&(T=i.get(u,u),k=((M=d-T)*(E=f-T)-h)/i.get(u+1,u)+i.get(u,u+1),O=i.get(u+1,u+1)-T-M-E,M=i.get(u+2,u+1),E=Math.abs(k)+Math.abs(O)+Math.abs(M),k/=E,O/=E,M/=E,u!==l)&&!(Math.abs(i.get(u,u-1))*(Math.abs(O)+Math.abs(M))<w*(Math.abs(k)*(Math.abs(i.get(u-1,u-1))+Math.abs(T)+Math.abs(i.get(u+1,u+1)))));)u--;for(o=u+2;o<=_;o++)i.set(o,o-2,0),o>u+2&&i.set(o,o-3,0);for(s=u;s<=_-1&&(y=s!==_-1,s!==u&&(k=i.get(s,s-1),O=i.get(s+1,s-1),M=y?i.get(s+2,s-1):0,0!==(d=Math.abs(k)+Math.abs(O)+Math.abs(M))&&(k/=d,O/=d,M/=d)),0!==d);s++)if(E=Math.sqrt(k*k+O*O+M*M),k<0&&(E=-E),0!==E){for(s!==u?i.set(s,s-1,-E*d):l!==u&&i.set(s,s-1,-i.get(s,s-1)),d=(k+=E)/E,f=O/E,T=M/E,O/=k,M/=k,a=s;a<t;a++)k=i.get(s,a)+O*i.get(s+1,a),y&&(k+=M*i.get(s+2,a),i.set(s+2,a,i.get(s+2,a)-k*T)),i.set(s,a,i.get(s,a)-k*d),i.set(s+1,a,i.get(s+1,a)-k*f);for(o=0;o<=Math.min(_,s+3);o++)k=d*i.get(o,s)+f*i.get(o,s+1),y&&(k+=T*i.get(o,s+2),i.set(o,s+2,i.get(o,s+2)-k*M)),i.set(o,s,i.get(o,s)-k),i.set(o,s+1,i.get(o,s+1)-k*O);for(o=0;o<=x;o++)k=d*r.get(o,s)+f*r.get(o,s+1),y&&(k+=T*r.get(o,s+2),r.set(o,s+2,r.get(o,s+2)-k*M)),r.set(o,s,r.get(o,s)-k),r.set(o,s+1,r.get(o,s+1)-k*O)}}}if(0===C)return;for(_=t-1;_>=0;_--)if(k=n[_],0===(O=e[_]))for(l=_,i.set(_,_,1),o=_-1;o>=0;o--){for(h=i.get(o,o)-k,M=0,a=l;a<=_;a++)M+=i.get(o,a)*i.get(a,_);if(e[o]<0)T=h,E=M;else if(l=o,0===e[o]?i.set(o,_,0!==h?-M/h:-M/(w*C)):(d=i.get(o,o+1),f=i.get(o+1,o),O=(n[o]-k)*(n[o]-k)+e[o]*e[o],c=(d*E-T*M)/O,i.set(o,_,c),i.set(o+1,_,Math.abs(d)>Math.abs(T)?(-M-h*c)/d:(-E-f*c)/T)),c=Math.abs(i.get(o,_)),w*c*c>1)for(a=o;a<=_;a++)i.set(a,_,i.get(a,_)/c)}else if(O<0)for(l=_-1,Math.abs(i.get(_,_-1))>Math.abs(i.get(_-1,_))?(i.set(_-1,_-1,O/i.get(_,_-1)),i.set(_-1,_,-(i.get(_,_)-k)/i.get(_,_-1))):(b=J(0,-i.get(_-1,_),i.get(_-1,_-1)-k,O),i.set(_-1,_-1,b[0]),i.set(_-1,_,b[1])),i.set(_,_-1,0),i.set(_,_,1),o=_-2;o>=0;o--){for(p=0,g=0,a=l;a<=_;a++)p+=i.get(o,a)*i.get(a,_-1),g+=i.get(o,a)*i.get(a,_);if(h=i.get(o,o)-k,e[o]<0)T=h,M=p,E=g;else if(l=o,0===e[o]?(b=J(-p,-g,h,O),i.set(o,_-1,b[0]),i.set(o,_,b[1])):(d=i.get(o,o+1),f=i.get(o+1,o),v=(n[o]-k)*(n[o]-k)+e[o]*e[o]-O*O,m=2*(n[o]-k)*O,0===v&&0===m&&(v=w*C*(Math.abs(h)+Math.abs(O)+Math.abs(d)+Math.abs(f)+Math.abs(T))),b=J(d*M-T*p+O*g,d*E-T*g-O*p,v,m),i.set(o,_-1,b[0]),i.set(o,_,b[1]),Math.abs(d)>Math.abs(T)+Math.abs(O)?(i.set(o+1,_-1,(-p-h*i.get(o,_-1)+O*i.get(o,_))/d),i.set(o+1,_,(-g-h*i.get(o,_)-O*i.get(o,_-1))/d)):(b=J(-M-f*i.get(o,_-1),-E-f*i.get(o,_),T,O),i.set(o+1,_-1,b[0]),i.set(o+1,_,b[1]))),c=Math.max(Math.abs(i.get(o,_-1)),Math.abs(i.get(o,_))),w*c*c>1)for(a=o;a<=_;a++)i.set(a,_-1,i.get(a,_-1)/c),i.set(a,_,i.get(a,_)/c)}for(o=0;o<t;o++)if(o<0||o>x)for(a=o;a<t;a++)r.set(o,a,i.get(o,a));for(a=t-1;a>=0;a--)for(o=0;o<=x;o++){for(T=0,s=0;s<=Math.min(a,x);s++)T+=r.get(o,s)*i.get(s,a);r.set(o,a,T)}}(o,l,s,a,t)}this.n=o,this.e=l,this.d=s,this.V=a}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let t,e,n=this.n,r=this.e,i=this.d,o=new w(n,n);for(t=0;t<n;t++){for(e=0;e<n;e++)o.set(t,e,0);o.set(t,t,i[t]),r[t]>0?o.set(t,t+1,r[t]):r[t]<0&&o.set(t,t-1,r[t])}return o}}function J(t,e,n,r){let i,o;return Math.abs(n)>Math.abs(r)?[(t+(i=r/n)*e)/(o=n+i*r),(e-i*t)/o]:[((i=n/r)*t+e)/(o=r+i*n),(i*e-t)/o]}class Q{constructor(t){if(!(t=N.checkMatrix(t)).isSymmetric())throw new Error("Matrix is not symmetric");let e,n,r,i=t,o=i.rows,a=new w(o,o),s=!0;for(n=0;n<o;n++){let t=0;for(r=0;r<n;r++){let o=0;for(e=0;e<r;e++)o+=a.get(r,e)*a.get(n,e);o=(i.get(n,r)-o)/a.get(r,r),a.set(n,r,o),t+=o*o}for(s&=(t=i.get(n,n)-t)>0,a.set(n,n,Math.sqrt(Math.max(t,0))),r=n+1;r<o;r++)a.set(n,r,0)}this.L=a,this.positiveDefinite=Boolean(s)}isPositiveDefinite(){return this.positiveDefinite}solve(t){t=N.checkMatrix(t);let e=this.L,n=e.rows;if(t.rows!==n)throw new Error("Matrix dimensions do not match");if(!1===this.isPositiveDefinite())throw new Error("Matrix is not positive definite");let r,i,o,a=t.columns,s=t.clone();for(o=0;o<n;o++)for(i=0;i<a;i++){for(r=0;r<o;r++)s.set(o,i,s.get(o,i)-s.get(r,i)*e.get(o,r));s.set(o,i,s.get(o,i)/e.get(o,o))}for(o=n-1;o>=0;o--)for(i=0;i<a;i++){for(r=o+1;r<n;r++)s.set(o,i,s.get(o,i)-s.get(r,i)*e.get(r,o));s.set(o,i,s.get(o,i)/e.get(o,o))}return s}get lowerTriangularMatrix(){return this.L}}class tt{constructor(t,e={}){t=N.checkMatrix(t);let{Y:n}=e;const{scaleScores:r=!1,maxIterations:i=1e3,terminationCriteria:o=1e-10}=e;let a;if(n){if(!(n=Array.isArray(n)&&"number"==typeof n[0]?w.columnVector(n):N.checkMatrix(n)).isColumnVector()||n.rows!==t.rows)throw new Error("Y must be a column vector of length X.rows");a=n}else a=t.getColumnVector(0);let s,l,u,c,h=1;for(let e=0;e<i&&h>o;e++)u=(u=t.transpose().mmul(a).div(a.transpose().mmul(a).get(0,0))).div(u.norm()),s=t.mmul(u).div(u.transpose().mmul(u).get(0,0)),e>0&&(h=s.clone().sub(c).pow(2).sum()),c=s.clone(),n?(l=(l=n.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0))).div(l.norm()),a=n.mmul(l).div(l.transpose().mmul(l).get(0,0))):a=s;if(n){let e=t.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0));e=e.div(e.norm());let r=t.clone().sub(s.clone().mmul(e.transpose())),i=a.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),o=n.clone().sub(s.clone().mulS(i.get(0,0)).mmul(l.transpose()));this.t=s,this.p=e.transpose(),this.w=u.transpose(),this.q=l,this.u=a,this.s=s.transpose().mmul(s),this.xResidual=r,this.yResidual=o,this.betas=i}else this.w=u.transpose(),this.s=s.transpose().mmul(s).sqrt(),this.t=r?s.clone().div(this.s.get(0,0)):s,this.xResidual=t.sub(s.mmul(u.transpose()))}}n.d(e,"AbstractMatrix",function(){return _}),n.d(e,"default",function(){return w}),n.d(e,"Matrix",function(){return w}),n.d(e,"MatrixColumnView",function(){return O}),n.d(e,"MatrixColumnSelectionView",function(){return M}),n.d(e,"MatrixFlipColumnView",function(){return E}),n.d(e,"MatrixFlipRowView",function(){return T}),n.d(e,"MatrixRowView",function(){return A}),n.d(e,"MatrixRowSelectionView",function(){return I}),n.d(e,"MatrixSelectionView",function(){return D}),n.d(e,"MatrixSubView",function(){return P}),n.d(e,"MatrixTransposeView",function(){return L}),n.d(e,"wrap",function(){return R}),n.d(e,"WrapperMatrix1D",function(){return j}),n.d(e,"WrapperMatrix2D",function(){return N}),n.d(e,"solve",function(){return G}),n.d(e,"inverse",function(){return $}),n.d(e,"determinant",function(){return H}),n.d(e,"linearDependencies",function(){return Y}),n.d(e,"pseudoInverse",function(){return X}),n.d(e,"covariance",function(){return q}),n.d(e,"correlation",function(){return Z}),n.d(e,"SingularValueDecomposition",function(){return V}),n.d(e,"SVD",function(){return V}),n.d(e,"EigenvalueDecomposition",function(){return K}),n.d(e,"EVD",function(){return K}),n.d(e,"CholeskyDecomposition",function(){return Q}),n.d(e,"CHO",function(){return Q}),n.d(e,"LuDecomposition",function(){return B}),n.d(e,"LU",function(){return B}),n.d(e,"QrDecomposition",function(){return z}),n.d(e,"QR",function(){return z}),n.d(e,"Nipals",function(){return tt}),n.d(e,"NIPALS",function(){return tt})},fuGk:function(t,e,n){"use strict";var r=n("cGG2");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},fxRn:function(t,e,n){n("+tPU"),n("zQR9"),t.exports=n("g8Ux")},fzH7:function(t,e,n){"use strict";var r=n("TToO"),i=n("IgWN"),o=n("IzBs"),a=n("BuFP"),s=n("MdiT"),l=n("SVAo"),u=o.a.transform,c=["zIndex","capture","visible","type"],h=["repeat"];var d=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],o=e[1];if(!r)return this.attrs;if(Object(i.isObject)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,o),this.afterAttrsChange(((t={})[r]=o,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a.j)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s.b)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(s.b)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s.c)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s.a)(e);if(n)return Object(s.c)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[Object(i.upperFirst)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(i.each)(e,function(t,r){Object(i.isArray)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)Object(i.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]});var r=new(0,this.constructor)({attrs:n});return Object(i.each)(c,function(e){r.set(e,t.get(e))}),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,l,u,c=t[0],d=t[1],f=t[2],p=void 0===f?"easeLinear":f,g=t[3],v=void 0===g?i.noop:g,m=t[4],y=void 0===m?0:m;Object(i.isFunction)(c)?(o=c,c={}):Object(i.isObject)(c)&&c.onFrame&&(o=c.onFrame,a=c.repeat),Object(i.isObject)(d)?(d=(u=d).duration,p=u.easing||"easeLinear",y=u.delay||0,a=u.repeat||a||!1,v=u.callback||i.noop,s=u.pauseCallback||i.noop,l=u.resumeCallback||i.noop):(Object(i.isNumber)(v)&&(y=v,v=null),Object(i.isFunction)(p)?(v=p,p="easeLinear"):p=p||"easeLinear");var b=function(t,e){var n={},r=e.attr();return Object(i.each)(t,function(t,e){-1!==h.indexOf(e)||Object(i.isEqual)(r[e],t)||(n[e]=t)}),n}(c,this),_={fromAttrs:function(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}(b,this),toAttrs:b,duration:d,easing:p,repeat:a,callback:v,pauseCallback:s,resumeCallback:l,delay:y,startTime:n.getTime(),id:Object(i.uniqueId)(),onFrame:o,pathFormatted:!1};r.length>0?r=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.each)(t,function(t){n+r<t.startTime+t.delay+t.duration&&o>t.delay&&Object(i.each)(e.toAttrs,function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])})}),t}(r,_):n.addAnimator(this),r.push(_),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.each)(n,function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.each)(e,function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.each)(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.g)(s,n))return"break";Object(i.isArray)(u)?Object(i.each)(u,function(t){r.emitDelegateEvent(s,t,e)}):l.emitDelegateEvent(s,u,e)}},l=this,u=0;u<o.length;u++){if("break"===s(u))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=u(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=u(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=u(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=u(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=u(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(l.a);e.a=d},g8Ux:function(t,e,n){var r=n("77Pl"),i=n("3fs2");t.exports=n("FeBl").getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},gApy:function(t,e,n){var r,i,o=n("i4uy"),a=n("MAlW"),s=0,l=0;t.exports=function(t,e,n){var u=e&&n||0,c=e||[],h=(t=t||{}).node||r,d=void 0!==t.clockseq?t.clockseq:i;if(null==h||null==d){var f=o();null==h&&(h=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=i=16383&(f[6]<<8|f[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:l+1,v=p-s+(g-l)/1e4;if(v<0&&void 0===t.clockseq&&(d=d+1&16383),(v<0||p>s)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,l=g,i=d;var m=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;c[u++]=m>>>24&255,c[u++]=m>>>16&255,c[u++]=m>>>8&255,c[u++]=255&m;var y=p/4294967296*1e4&268435455;c[u++]=y>>>8&255,c[u++]=255&y,c[u++]=y>>>24&15|16,c[u++]=y>>>16&255,c[u++]=d>>>8|128,c[u++]=255&d;for(var b=0;b<6;++b)c[u+b]=h[b];return e||a(c)}},gEWq:function(t,e,n){"use strict";var r=n("1b2O"),i=n("+N5+").isWhiteSpace,o=n("+N5+").isPunctChar,a=n("+N5+").isMdAsciiPunct;function s(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}s.prototype.pushPending=function(){var t=new r("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},s.prototype.push=function(t,e,n){this.pending&&this.pushPending();var i=new r(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(t,e){var n,r,s,l,u,c,h,d,f,p=t,g=!0,v=!0,m=this.posMax,y=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;p<m&&this.src.charCodeAt(p)===y;)p++;return s=p-t,r=p<m?this.src.charCodeAt(p):32,h=a(n)||o(String.fromCharCode(n)),f=a(r)||o(String.fromCharCode(r)),c=i(n),(d=i(r))?g=!1:f&&(c||h||(g=!1)),c?v=!1:h&&(d||f||(v=!1)),e?(l=g,u=v):(l=g&&(!v||h),u=v&&(!g||f)),{can_open:l,can_close:u,length:s}},s.prototype.Token=r,t.exports=s},gRE1:function(t,e,n){t.exports={default:n("TmV0"),__esModule:!0}},gcUb:function(t,e,n){"use strict";var r=n("7ar3"),i=n("WER7"),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i(n):n}},ghwr:function(t,e,n){"use strict";n("o2t7"),n("i6H2");var r=n("H7FV");n.d(e,"Canvas",function(){return r.a});n("iaRc")},gosJ:function(t,e,n){"use strict";e.a=function(t,e){var n=e.attr();for(var o in n){var a=n[o],s=l[o]?l[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(r.isArray)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.b)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}},e.d=function(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}},e.b=function(t,e,n){var i=t.get("refreshElements");Object(r.each)(i,function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent}),i[0]===t?u(e,n):function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&u(i.cfg.children,n);else if(i.cfg.refresh)i.isGroup()&&t(i.cfg.children,n);else{var o=c(i,n);i.cfg.refresh=o,o&&i.isGroup()&&t(i.cfg.children,n)}}}(e,n)},e.c=function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children)}},e.e=function(t,e,n,r){var i=n.path,a=n.startArrow,l=n.endArrow;if(!i)return;var u=[0,0],c=[0,0],h={dx:0,dy:0};e.beginPath();for(var d=0;d<i.length;d++){var f=i[d],p=f[0];if(0===d&&a&&a.d){var g=t.getStartTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(d===i.length-2&&"Z"===i[d+1][0]&&l&&l.d){var v=i[d+1];if("Z"===v[0]){var g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],l.d)}}else if(d===i.length-1&&l&&l.d&&"Z"!==i[0]){var g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],l.d)}var m=h.dx,y=h.dy;switch(p){case"M":e.moveTo(f[1]-m,f[2]-y),c=[f[1],f[2]];break;case"L":e.lineTo(f[1]-m,f[2]-y);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-m,f[4]-y);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-m,f[6]-y);break;case"A":var b=void 0;r?(b=r[d])||(b=Object(o.a)(u,f),r[d]=b):b=Object(o.a)(u,f);var _=b.cx,x=b.cy,w=b.rx,S=b.ry,C=b.startAngle,k=b.endAngle,O=b.xRotation,M=b.sweepFlag;if(e.ellipse)e.ellipse(_,x,w,S,O,C,k,1-M);else{var E=w>S?w:S,T=w>S?1:w/S,A=w>S?S/w:1;e.translate(_,x),e.rotate(O),e.scale(T,A),e.arc(0,0,E,C,k,1-M),e.scale(1/T,1/A),e.rotate(-O),e.translate(-_,-x)}break;case"Z":e.closePath()}if("Z"===p)u=c;else{var I=f.length;u=[f[I-2],f[I-1]]}}},e.h=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.f=function(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.each)(t,function(t){var r=function(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.l)(n,i):r?e=n:o&&(e=i)}return e}(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))}),{minX:Object(r.min)(e),minY:Object(r.min)(n),maxX:Object(r.max)(i),maxY:Object(r.max)(o)}},e.g=function(t,e){if(!t||!e)return null;if(!Object(a.f)(t,e))return null;return{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}};var r=n("IgWN"),i=n("4KIz"),o=n("dAFD"),a=n("PDVq"),s=n("+ymx"),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function u(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&u(r.get("children"),e))}}function c(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Object(a.f)(n,e)}},gxby:function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},h65t:function(t,e,n){var r=n("UuGF"),i=n("52gC");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},hCci:function(t,e,n){"use strict";var r=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;t.exports=function(t,e){var n,i,o,a,s,l,u;return!!t.md.options.linkify&&(!(t.linkLevel>0)&&(!((n=t.pos)+3>t.posMax)&&(58===t.src.charCodeAt(n)&&(47===t.src.charCodeAt(n+1)&&(47===t.src.charCodeAt(n+2)&&(!!(i=t.pending.match(r))&&(o=i[1],!!(a=t.md.linkify.matchAtStart(t.src.slice(n-o.length)))&&(!((s=a.url).length<=o.length)&&(s=s.replace(/\*+$/,""),l=t.md.normalizeLink(s),!!t.md.validateLink(l)&&(e||(t.pending=t.pending.slice(0,-o.length),(u=t.push("link_open","a",1)).attrs=[["href",l]],u.markup="linkify",u.info="auto",(u=t.push("text","",0)).content=t.md.normalizeLinkText(s),(u=t.push("link_close","a",-1)).markup="linkify",u.info="auto"),t.pos+=s.length-o.length,!0))))))))))}},hJx8:function(t,e,n){var r=n("evD5"),i=n("X8DO");t.exports=n("+E39")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},hTOL:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.clone=e.isObject=void 0;e.isObject=function(t){return null!==t&&"object"==typeof t};e.clone=function(t){if(null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){var n=[];return t.forEach(function(t){n.push(t)}),n.map(function(t){return(0,e.clone)(t)})}if("object"==typeof t&&Object.keys(t).length){var i=r({},t);return Object.keys(i).forEach(function(t){i[t]=(0,e.clone)(i[t])}),i}return t}},hyEB:function(t,e,n){"use strict";e.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(t){if(!r.Utils.isFocusable(t))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},r.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},e.default=r.Utils},"i0+k":function(t,e,n){"use strict";t.exports=function(t,e,n,r){var i,o,a,s,l,u,c,h=!1,d=t.bMarks[e]+t.tShift[e],f=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=t.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=t.skipChars(d,i))-l)<3)return!1;if(c=t.src.slice(l,d),a=t.src.slice(d,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=e;!(++s>=n)&&!((d=l=t.bMarks[s]+t.tShift[s])<(f=t.eMarks[s])&&t.sCount[s]<t.blkIndent);)if(t.src.charCodeAt(d)===i&&!(t.sCount[s]-t.blkIndent>=4||(d=t.skipChars(d,i))-l<o||(d=t.skipSpaces(d))<f)){h=!0;break}return o=t.sCount[e],t.line=s+(h?1:0),(u=t.push("fence","code",0)).info=a,u.content=t.getLines(e+1,s,o,!0),u.markup=c,u.map=[e,t.line],!0}},i3IR:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=void 0,e.isArray=Array.isArray},i3rX:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===i}(t)}(t)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){var n;return e&&!0===e.clone&&r(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t}function a(t,e,n){var i=t.slice();return e.forEach(function(e,a){void 0===i[a]?i[a]=o(e,n):r(e)?i[a]=s(t[a],e,n):-1===t.indexOf(e)&&i.push(o(e,n))}),i}function s(t,e,n){var i=Array.isArray(e);return i===Array.isArray(t)?i?((n||{arrayMerge:a}).arrayMerge||a)(t,e,n):function(t,e,n){var i={};return r(t)&&Object.keys(t).forEach(function(e){i[e]=o(t[e],n)}),Object.keys(e).forEach(function(a){r(e[a])&&t[a]?i[a]=s(t[a],e[a],n):i[a]=o(e[a],n)}),i}(t,e,n):o(e,n)}s.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce(function(t,n){return s(t,n,e)})};var l=s;t.exports=l},i4uy:function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},i6H2:function(t,e,n){"use strict";var r=n("TnYd"),i=n("CpEa"),o=(n.n(i),n("1YJU")),a=(n.n(o),n("Y1ED"));n.d(e,"Event",function(){return a.a});n("SVAo");var s=n("t3gJ");n.d(e,"AbstractCanvas",function(){return s.a});var l=n("yJKB");n.d(e,"AbstractGroup",function(){return l.a});var u=n("JL8M");n.d(e,"AbstractShape",function(){return u.a}),n.d(e,"PathUtil",function(){return r});var c=n("MTK1");n.d(e,"getBBoxMethod",function(){return c.a});var h=n("Tb0P");n.d(e,"getTextHeight",function(){return h.b}),n.d(e,"assembleFont",function(){return h.a});var d=n("BuFP");n.d(e,"isAllowCapture",function(){return d.b});var f=n("MdiT");n.d(e,"multiplyVec2",function(){return f.c}),n.d(e,"invert",function(){return f.a});var p=n("cOOB");n.d(e,"getOffScreenContext",function(){return p.a});n("V9uW")},iPQi:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("Y9x2"));e.default=function(t,e){if(!t.nodes||0===t.nodes.length)return t;var n=e.width,r=e.height,o=e.nodeMinGap,a=1e4,s=1e4;t.nodes.forEach(function(t){var e=t.size[0]||50,n=t.size[1]||50;a=Math.min(e,a),s=Math.min(n,s)});var l=new i.default;l.init(n,r,{CELL_H:s,CELL_W:a}),t.nodes.forEach(function(t){var e=l.occupyNearest(t);e&&(e.node={id:t.id,size:t.size},t.x=e.x,t.y=e.y,t.dx=e.dx,t.dy=e.dy)});for(var u=0;u<t.nodes.length;u++){var c=t.nodes[u],h=l.findGridByNodeId(c.id);if(!h)throw new Error("can not find node cell");var d=h.column,f=h.row;if(c.size[0]+o>a){for(var p=v=Math.ceil((c.size[0]+o)/a)-1,g=0;g<v&&(l.additionColumn.indexOf(d+g+1)>-1&&!l.cells[d+g+1][f].node);g++)p--;l.insertColumn(d,p)}if(c.size[1]+o>s){var v;for(p=v=Math.ceil((c.size[1]+o)/s)-1,g=0;g<v&&(l.additionRow.indexOf(f+g+1)>-1&&!l.cells[d][f+g+1].node);g++)p--;l.insertRow(f,p)}}for(u=0;u<l.columnNum;u++){var m=function(e){var n=l.cells[u][e];if(n.node){var r=t.nodes.find(function(t){var e;return t.id===(null===(e=null===n||void 0===n?void 0:n.node)||void 0===e?void 0:e.id)});r&&(r.x=n.x+r.size[0]/2,r.y=n.y+r.size[1]/2)}};for(g=0;g<l.rowNum;g++)m(g)}}},iUbK:function(t,e,n){var r=n("7KvD").navigator;t.exports=r&&r.userAgent||""},iaRc:function(t,e,n){"use strict";var r=n("TToO"),i=n("i6H2"),o=n("IgWN"),a=n("o2t7"),s=n("qNZ/"),l=n("IpCj"),u=n("85Et"),c=n("8ALn"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(c.b)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n?n.appendChild(t):(n=e.createDom(),e.set("el",n),n.appendChild(t))}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){Object(s.b)(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(l.a)(this,t),this.createPath(t),e.length&&Object(s.a)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.each)(e||n,function(t,e){u.b[e]&&r.setAttribute(u.b[e],t)}),Object(l.c)(this)},e}(i.AbstractGroup);e.a=h},ifoU:function(t,e,n){t.exports={default:n("3C/1"),__esModule:!0}},ioQ5:function(t,e,n){n("HpRW")("Set")},iqGf:function(t,e,n){var r;r=function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),i=window.videojs||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0});var o=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"];e.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){var t=this,e=Object.assign({},this.globalOptions,this.options);this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin));var n=function(e,n){e&&t.$emit(e,t.player),n&&t.$emit(t.customEventName,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n))};e.plugins&&delete e.plugins.__ob__;var r=this;this.player=i(this.$refs.video,e,function(){for(var t=this,e=o.concat(r.events).concat(r.globalEvents),i={},a=0;a<e.length;a++)"string"==typeof e[a]&&void 0===i[e[a]]&&function(e){i[e]=null,t.on(e,function(){n(e,!0)})}(e[a]);this.on("timeupdate",function(){n("timeupdate",this.currentTime())}),r.$emit("ready",this)})},dispose:function(t){var e=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick(function(){e.reseted=!1,e.$nextTick(function(){e.reseted=!0,e.$nextTick(function(){t&&t()})})}))}},watch:{options:{deep:!0,handler:function(t,e){var n=this;this.dispose(function(){t&&t.sources&&t.sources.length&&n.initialize()})}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n.n(r);for(var o in r)["default","default"].indexOf(o)<0&&function(t){n.d(e,t,function(){return r[t]})}(o);var a=n(5),s=n(4)(i.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.videoPlayer=e.videojs=void 0;var i=r(n(0)),o=r(n(2)),a=window.videojs||i.default,s=function(t,e){e&&(e.options&&(o.default.props.globalOptions.default=function(){return e.options}),e.events&&(o.default.props.globalEvents.default=function(){return e.events})),t.component(o.default.name,o.default)},l={videojs:a,videoPlayer:o.default,install:s};e.default=l,e.videojs=a,e.videoPlayer=o.default,e.install=s},function(t,e){t.exports=function(t,e,n,r,i,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=r),u){var h=c.functional,d=h?c.render:c.beforeCreate;h?(c._injectStyles=u,c.render=function(t,e){return u.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:a,exports:s,options:c}}},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.reseted?n("div",{staticClass:"video-player"},[n("video",{ref:"video",staticClass:"video-js"})]):t._e()},staticRenderFns:[]};e.a=r}])},t.exports=r(n("Dia2"))},jFbC:function(t,e,n){n("Cdx3"),t.exports=n("FeBl").Object.keys},"jKW+":function(t,e,n){"use strict";var r=n("kM2E"),i=n("qARP"),o=n("dNDb");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},jgMU:function(t,e,n){"use strict";t.exports=n("ukGi")},jmaC:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},jwfv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("Dd8w"),i=n.n(r),o=n("pFYg"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if("function"==typeof i)return i.apply(null,e.slice(1));if("string"==typeof i){for(var a=String(i).replace(s,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(t){return"[Circular]"}break;default:return t}}),l=e[r];r<o;l=e[++r])a+=" "+l;return a}return i}function c(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}(e)||"string"!=typeof t||t))}function h(t,e,n){var r=0,i=t.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}([])}function d(t,e,n,r){if(e.first)return h(function(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}(t),n,r);var i=e.firstFields||[];!0===i&&(i=Object.keys(t));var o=Object.keys(t),a=o.length,s=0,l=[],u=function(t){l.push.apply(l,t),++s===a&&r(l)};o.forEach(function(e){var r=t[e];-1!==i.indexOf(e)?h(r,n,u):function(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t),++i===o&&n(r)}t.forEach(function(t){e(t,a)})}(r,n,u)})}function f(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function p(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===(void 0===r?"undefined":a()(r))&&"object"===a()(t[n])?t[n]=i()({},t[n],r):t[n]=r}return t}var g=function(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!c(e,o||t.type)||r.push(u(i.messages.required,t.fullField))};var v=function(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(u(i.messages.whitespace,t.fullField))},m={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},y={integer:function(t){return y.number(t)&&parseInt(t,10)===t},float:function(t){return y.number(t)&&!y.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"===(void 0===t?"undefined":a()(t))&&!y.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&!!t.match(m.email)&&t.length<255},url:function(t){return"string"==typeof t&&!!t.match(m.url)},hex:function(t){return"string"==typeof t&&!!t.match(m.hex)}};var b="enum";var _={required:g,whitespace:v,type:function(t,e,n,r,i){if(t.required&&void 0===e)g(t,e,n,r,i);else{var o=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?y[o](e)||r.push(u(i.messages.types[o],t.fullField,t.type)):o&&(void 0===e?"undefined":a()(e))!==t.type&&r.push(u(i.messages.types[o],t.fullField,t.type))}},range:function(t,e,n,r,i){var o="number"==typeof t.len,a="number"==typeof t.min,s="number"==typeof t.max,l=e,c=null,h="number"==typeof e,d="string"==typeof e,f=Array.isArray(e);if(h?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=e.length),d&&(l=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==t.len&&r.push(u(i.messages[c].len,t.fullField,t.len)):a&&!s&&l<t.min?r.push(u(i.messages[c].min,t.fullField,t.min)):s&&!a&&l>t.max?r.push(u(i.messages[c].max,t.fullField,t.max)):a&&s&&(l<t.min||l>t.max)&&r.push(u(i.messages[c].range,t.fullField,t.min,t.max))},enum:function(t,e,n,r,i){t[b]=Array.isArray(t[b])?t[b]:[],-1===t[b].indexOf(e)&&r.push(u(i.messages[b],t.fullField,t[b].join(", ")))},pattern:function(t,e,n,r,i){t.pattern&&(t.pattern instanceof RegExp?(t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern))):"string"==typeof t.pattern&&(new RegExp(t.pattern).test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern))))}};var x="enum";var w=function(t,e,n,r,i){var o=t.type,a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e,o)&&!t.required)return n();_.required(t,e,r,a,i,o),c(e,o)||_.type(t,e,r,a,i)}n(a)},S={string:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e,"string")&&!t.required)return n();_.required(t,e,r,o,i,"string"),c(e,"string")||(_.type(t,e,r,o,i),_.range(t,e,r,o,i),_.pattern(t,e,r,o,i),!0===t.whitespace&&_.whitespace(t,e,r,o,i))}n(o)},method:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&_.type(t,e,r,o,i)}n(o)},number:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},boolean:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&_.type(t,e,r,o,i)}n(o)},regexp:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),c(e)||_.type(t,e,r,o,i)}n(o)},integer:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},float:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},array:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e,"array")&&!t.required)return n();_.required(t,e,r,o,i,"array"),c(e,"array")||(_.type(t,e,r,o,i),_.range(t,e,r,o,i))}n(o)},object:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),void 0!==e&&_.type(t,e,r,o,i)}n(o)},enum:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();_.required(t,e,r,o,i),e&&_[x](t,e,r,o,i)}n(o)},pattern:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e,"string")&&!t.required)return n();_.required(t,e,r,o,i),c(e,"string")||_.pattern(t,e,r,o,i)}n(o)},date:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(c(e)&&!t.required)return n();if(_.required(t,e,r,o,i),!c(e)){var a=void 0;a="number"==typeof e?new Date(e):e,_.type(t,a,r,o,i),a&&_.range(t,a.getTime(),r,o,i)}}n(o)},url:w,hex:w,email:w,required:function(t,e,n,r,i){var o=[],s=Array.isArray(e)?"array":void 0===e?"undefined":a()(e);_.required(t,e,r,o,i,s),n(o)}};function C(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var k=C();function O(t){this.rules=null,this._messages=k,this.define(t)}O.prototype={messages:function(t){return t&&(this._messages=p(C(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,s=n,c=r;if("function"==typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===k&&(h=C()),p(h,s.messages),s.messages=h}else s.messages=this.messages();var g=void 0,v=void 0,m={};(s.keys||Object.keys(this.rules)).forEach(function(n){g=e.rules[n],v=o[n],g.forEach(function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=i()({},o)),v=o[n]=a.transform(v)),(a="function"==typeof a?{validator:a}:i()({},a)).validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(m[n]=m[n]||[],m[n].push({rule:a,value:v,source:o,field:n}))})});var y={};d(m,s,function(t,e){var n=t.rule,r=!("object"!==n.type&&"array"!==n.type||"object"!==a()(n.fields)&&"object"!==a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(a)||(a=[a]),a.length&&l("async-validator:",a),a.length&&n.message&&(a=[].concat(n.message)),a=a.map(f(n)),s.first&&a.length)return y[n.field]=1,e(a);if(r){if(n.required&&!t.value)return a=n.message?[].concat(n.message).map(f(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],e(a);var c={};if(n.defaultField)for(var h in t.value)t.value.hasOwnProperty(h)&&(c[h]=n.defaultField);for(var d in c=i()({},c,t.rule.fields))if(c.hasOwnProperty(d)){var p=Array.isArray(c[d])?c[d]:[c[d]];c[d]=p.map(o.bind(null,d))}var g=new O(c);g.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),g.validate(t.value,t.rule.options||s,function(t){e(t&&t.length?a.concat(t):t)})}else e(a)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var h=n.validator(n,t.value,c,t.source,s);h&&h.then&&h.then(function(){return c()},function(t){return c(t)})},function(t){!function(t){var e,n=void 0,r=void 0,i=[],o={};for(n=0;n<t.length;n++)e=t[n],Array.isArray(e)?i=i.concat.apply(i,e):i.push(e);if(i.length)for(n=0;n<i.length;n++)o[r=i[n].field]=o[r]||[],o[r].push(i[n]);else i=null,o=null;c(i,o)}(t)})}else c&&c()},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!S.hasOwnProperty(t.type))throw new Error(u("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?S.required:S[this.getType(t)]||!1}},O.register=function(t,e){if("function"!=typeof e)throw new Error("Cannot register a validator by type, validator is not a function");S[t]=e},O.messages=k;e.default=O},jyFz:function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("SldL"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},kAgk:function(t,e){t.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.")},t.exports.__esModule=!0,t.exports.default=t.exports},kM2E:function(t,e,n){var r=n("7KvD"),i=n("FeBl"),o=n("+ZMJ"),a=n("hJx8"),s=n("D2L2"),l=function(t,e,n){var u,c,h,d=t&l.F,f=t&l.G,p=t&l.S,g=t&l.P,v=t&l.B,m=t&l.W,y=f?i:i[e]||(i[e]={}),b=y.prototype,_=f?r:p?r[e]:(r[e]||{}).prototype;for(u in f&&(n=e),n)(c=!d&&_&&void 0!==_[u])&&s(y,u)||(h=c?_[u]:n[u],y[u]=f&&"function"!=typeof _[u]?n[u]:v&&c?o(h,r):m&&_[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[u]=h,t&l.R&&b&&!b[u]&&a(b,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},kNJA:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=59)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},14:function(t,e){t.exports=n("fEB+")},18:function(t,e){t.exports=n("EKTV")},21:function(t,e){t.exports=n("E/in")},26:function(t,e){t.exports=n("nvbp")},3:function(t,e){t.exports=n("ylDJ")},31:function(t,e){t.exports=n("zTCi")},40:function(t,e){t.exports=n("hyEB")},51:function(t,e){t.exports=n("RDoK")},59:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,function(t,n){return e("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:t}})}),1)};r._withStripped=!0;var i=n(26),o=n.n(i),a=n(14),s=n.n(a),l=n(18),u=n.n(l),c=n(51),h=n.n(c),d=n(3),f=function(t){return t.stopPropagation()},p={inject:["panel"],components:{ElCheckbox:u.a,ElRadio:h.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some(function(e){return t.isInPath(e)})},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}}):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=f),t("el-checkbox",o()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(d.isEqual)(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:f}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,a=this.isLeaf,s=this.isDisabled,l=this.config,u=this.nodeId,c=l.expandTrigger,h=l.checkStrictly,d=l.multiple,f=!h&&s,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},p.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!a||s||h||d||(p.on.click=this.handleCheckChange),t("li",o()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:f?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":f}},p]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},g=n(0),v=Object(g.a)(p,void 0,void 0,!1,null,null,null);v.options.__file="packages/cascader-panel/src/cascader-node.vue";var m=v.exports,y=n(6),b={name:"ElCascaderMenu",mixins:[n.n(y).a],inject:["panel"],components:{ElScrollbar:s.a,CascaderNode:m},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(d.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=t.clientX-i,a=this.$el,s=a.offsetWidth,l=a.offsetHeight,u=e.offsetTop,c=u+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" V"+c+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map(function(n,i){var a=n.hasChildren;return t("cascader-node",o()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":a,"aria-owns":a?e:null}},r]))});return[].concat(i,[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",o()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},_=Object(g.a)(b,void 0,void 0,!1,null,null,null);_.options.__file="packages/cascader-panel/src/cascader-menu.vue";var x=_.exports,w=n(21),S=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var C=0,k=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=C++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map(function(t){return t.value}),this.pathLabels=this.pathNodes.map(function(t){return t.label}),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map(function(r){return new t(r,n,e)})},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some(function(t){return Object(d.isEqual)(t,e)}):Object(d.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(d.capitalize)(t);this.children.forEach(function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))})},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(d.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children.filter(function(t){return!t.isDisabled}),e=!!t.length&&t.every(function(t){return t.checked});this.setCheckState(e)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce(function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)},0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},S(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(w.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}();var O=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(d.coerceTruthyValueToArray)(t),this.nodes=t.map(function(t){return new k(t,e.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new k(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;(t=Object(d.coerceTruthyValueToArray)(t)).forEach(function(t){return n.appendNode(t,e)})},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:function t(e,n){return e.reduce(function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e},[])}(this.nodes,t)},t.prototype.getNodeByValue=function(t){if(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter(function(e){return Object(d.valueEquals)(e.path,t)||e.value===t});return e&&e.length?e[0]:null}return null},t}(),M=n(9),E=n.n(M),T=n(40),A=n.n(T),I=n(31),D=n.n(I),P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},L=A.a.keys,j={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:d.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},N=function(t){return!t.getAttribute("aria-owns")},R=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},B=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},F=function(t){t&&(t.focus(),!N(t)&&t.click())},z={name:"ElCascaderPanel",components:{CascaderMenu:x},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return E()(P({},j),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(t){Object(d.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){Object(d.isEmpty)(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(d.isEmpty)(e)?this.lazyLoad():(this.store=new O(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(d.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach(function(e){e.syncCheckState(t.checkedValue)})},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(d.isEmpty)(r))if(Object(d.isEmpty)(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map(function(e){return t.getNodeByValue(e.getValue())});this.expandNodes(s)}},expandNodes:function(t){var e=this;t.forEach(function(t){return e.handleExpand(t,!0)})},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple?Object(d.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=n.map(function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]})},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case L.up:var n=R(e,-1);F(n);break;case L.down:var r=R(e,1);F(r);break;case L.left:var i=this.$refs.menu[B(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');F(o)}break;case L.right:var a=this.$refs.menu[B(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');F(s)}break;case L.enter:!function(t){if(t){var e=t.querySelector("input");e?e.click():N(t)&&t.click()}}(e);break;case L.esc:case L.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map(function(t){return t.getValue()}),s=n.map(function(t){return t.getValue()});Object(d.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new O([],r),this.menus=[this.store.getNodes()]),t.loading=!0;r.lazyLoad(t,function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter(function(t){return t[a]===o}).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,function(){n.handleExpand(l)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)})},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(t){return t.getValueByOption()})},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach(function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");D()(n,r)}})},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;return this.multiple?this.getFlattedNodes(t).filter(function(t){return t.checked}):Object(d.isEmpty)(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter(function(t){return!t.isDisabled}).forEach(function(t){return t.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},V=Object(g.a)(z,r,[],!1,null,null,null);V.options.__file="packages/cascader-panel/src/cascader-panel.vue";var $=V.exports;$.install=function(t){t.component($.name,$)};e.default=$},6:function(t,e){t.exports=n("y+7x")},9:function(t,e){t.exports=n("jmaC")}})},kdcY:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var i=n("+ZTV"),o=n("Mkwl");e.default=function(t){var e,n=(0,i.asNonCompoundGraph)(t);!function(t){var e=(0,i.buildLayerMatrix)(t),n=t.graph().ranksep,o=0;null===e||void 0===e||e.forEach(function(e){var i=e.map(function(e){return t.node(e).height}),a=Math.max.apply(Math,r(r([],i,!1),[0],!1));null===e||void 0===e||e.forEach(function(e){t.node(e).y=o+a/2}),o+=a+n})}(n);var a=function(t){var e=(0,i.buildLayerMatrix)(t),n=Object.assign((0,o.findType1Conflicts)(t,e),(0,o.findType2Conflicts)(t,e)),r={},a=[];["u","d"].forEach(function(i){a="u"===i?e:Object.values(e).reverse(),["l","r"].forEach(function(e){"r"===e&&(a=a.map(function(t){return Object.values(t).reverse()}));var s=("u"===i?t.predecessors:t.successors).bind(t),l=(0,o.verticalAlignment)(t,a,n,s),u=(0,o.horizontalCompaction)(t,a,l.root,l.align,"r"===e);"r"===e&&Object.keys(u).forEach(function(t){return u[t]=-u[t]}),r[i+e]=u})});var s=(0,o.findSmallestWidthAlignment)(t,r);return s&&(0,o.alignCoordinates)(r,s),(0,o.balance)(r,t.graph().align)}(n);null===(e=Object.keys(a))||void 0===e||e.forEach(function(t){n.node(t).x=a[t]})}},knuC:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"l8+k":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?o(t):i(t)},e.detectStrongConnectComponents=e.detectConnectedComponents=void 0;var r=n("lSAc"),i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},l=[],u=function t(e){l.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o),a=function(e){var r=i[e];if(!s[r]){var o=n.filter(function(t){return t.id===r});o.length>0&&t(o[0])}},u=0;u<i.length;++u)a(u)},c=0;c<n.length;c++){var h=n[c];if(!s[h.id]){u(h);for(var d=[];l.length>0;)d.push(l.pop());a.push(d)}}return a};e.detectConnectedComponents=i;var o=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},l={},u={},c=[],h=0,d=function t(e){l[e.id]=h,u[e.id]=h,h+=1,a.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o,"target").filter(function(t){return n.map(function(t){return t.id}).indexOf(t)>-1}),d=function(r){var o=i[r];if(l[o]||0===l[o])s[o]&&(u[e.id]=Math.min(u[e.id],l[o]));else{var a=n.filter(function(t){return t.id===o});a.length>0&&t(a[0]),u[e.id]=Math.min(u[e.id],u[o])}},f=0;f<i.length;f++)d(f);if(u[e.id]===l[e.id]){for(var p=[];a.length>0;){var g=a.pop();if(s[g.id]=!1,p.push(g),g===e)break}p.length>0&&c.push(p)}},f=0,p=n;f<p.length;f++){var g=p[f];l[g.id]||0===l[g.id]||d(g)}return c};e.detectStrongConnectComponents=o},lFkc:function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},lHA8:function(t,e,n){t.exports={default:n("pPW7"),__esModule:!0}},lOnJ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},lSAc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueId=e.getOutEdgesNodeId=e.getNeighbors=e.getEdgesByNodeId=void 0;e.getNeighbors=function(t,e,n){void 0===e&&(e=[]);var r=e.filter(function(e){return e.source===t||e.target===t});if("target"===n)return r.filter(function(e){return e.source===t}).map(function(t){return t.target});if("source"===n)return r.filter(function(e){return e.target===t}).map(function(t){return t.source});return r.map(function(e){return e.source===t?e.target:e.source})};e.getOutEdgesNodeId=function(t,e){return e.filter(function(e){return e.source===t})};e.getEdgesByNodeId=function(t,e){return e.filter(function(e){return e.source===t||e.target===t})};e.uniqueId=function(t){void 0===t&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),n="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(n)}},lVvd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"create",function(){return h}),n.d(r,"clone",function(){return d}),n.d(r,"copy",function(){return f}),n.d(r,"identity",function(){return p}),n.d(r,"fromValues",function(){return g}),n.d(r,"set",function(){return v}),n.d(r,"transpose",function(){return m}),n.d(r,"invert",function(){return y}),n.d(r,"adjoint",function(){return b}),n.d(r,"determinant",function(){return _}),n.d(r,"multiply",function(){return x}),n.d(r,"rotate",function(){return w}),n.d(r,"scale",function(){return S}),n.d(r,"fromRotation",function(){return C}),n.d(r,"fromScaling",function(){return k}),n.d(r,"str",function(){return O}),n.d(r,"frob",function(){return M}),n.d(r,"LDU",function(){return E}),n.d(r,"add",function(){return T}),n.d(r,"subtract",function(){return A}),n.d(r,"exactEquals",function(){return I}),n.d(r,"equals",function(){return D}),n.d(r,"multiplyScalar",function(){return P}),n.d(r,"multiplyScalarAndAdd",function(){return L}),n.d(r,"mul",function(){return j}),n.d(r,"sub",function(){return N});var i={};n.d(i,"create",function(){return R}),n.d(i,"clone",function(){return B}),n.d(i,"copy",function(){return F}),n.d(i,"identity",function(){return z}),n.d(i,"fromValues",function(){return V}),n.d(i,"set",function(){return $}),n.d(i,"invert",function(){return G}),n.d(i,"determinant",function(){return H}),n.d(i,"multiply",function(){return W}),n.d(i,"rotate",function(){return U}),n.d(i,"scale",function(){return Y}),n.d(i,"translate",function(){return X}),n.d(i,"fromRotation",function(){return q}),n.d(i,"fromScaling",function(){return Z}),n.d(i,"fromTranslation",function(){return K}),n.d(i,"str",function(){return J}),n.d(i,"frob",function(){return Q}),n.d(i,"add",function(){return tt}),n.d(i,"subtract",function(){return et}),n.d(i,"multiplyScalar",function(){return nt}),n.d(i,"multiplyScalarAndAdd",function(){return rt}),n.d(i,"exactEquals",function(){return it}),n.d(i,"equals",function(){return ot}),n.d(i,"mul",function(){return at}),n.d(i,"sub",function(){return st});var o={};n.d(o,"create",function(){return lt}),n.d(o,"fromMat4",function(){return ut}),n.d(o,"clone",function(){return ct}),n.d(o,"copy",function(){return ht}),n.d(o,"fromValues",function(){return dt}),n.d(o,"set",function(){return ft}),n.d(o,"identity",function(){return pt}),n.d(o,"transpose",function(){return gt}),n.d(o,"invert",function(){return vt}),n.d(o,"adjoint",function(){return mt}),n.d(o,"determinant",function(){return yt}),n.d(o,"multiply",function(){return bt}),n.d(o,"translate",function(){return _t}),n.d(o,"rotate",function(){return xt}),n.d(o,"scale",function(){return wt}),n.d(o,"fromTranslation",function(){return St}),n.d(o,"fromRotation",function(){return Ct}),n.d(o,"fromScaling",function(){return kt}),n.d(o,"fromMat2d",function(){return Ot}),n.d(o,"fromQuat",function(){return Mt}),n.d(o,"normalFromMat4",function(){return Et}),n.d(o,"projection",function(){return Tt}),n.d(o,"str",function(){return At}),n.d(o,"frob",function(){return It}),n.d(o,"add",function(){return Dt}),n.d(o,"subtract",function(){return Pt}),n.d(o,"multiplyScalar",function(){return Lt}),n.d(o,"multiplyScalarAndAdd",function(){return jt}),n.d(o,"exactEquals",function(){return Nt}),n.d(o,"equals",function(){return Rt}),n.d(o,"mul",function(){return Bt}),n.d(o,"sub",function(){return Ft});var a={};n.d(a,"create",function(){return zt}),n.d(a,"clone",function(){return Vt}),n.d(a,"copy",function(){return $t}),n.d(a,"fromValues",function(){return Gt}),n.d(a,"set",function(){return Ht}),n.d(a,"identity",function(){return Wt}),n.d(a,"transpose",function(){return Ut}),n.d(a,"invert",function(){return Yt}),n.d(a,"adjoint",function(){return Xt}),n.d(a,"determinant",function(){return qt}),n.d(a,"multiply",function(){return Zt}),n.d(a,"translate",function(){return Kt}),n.d(a,"scale",function(){return Jt}),n.d(a,"rotate",function(){return Qt}),n.d(a,"rotateX",function(){return te}),n.d(a,"rotateY",function(){return ee}),n.d(a,"rotateZ",function(){return ne}),n.d(a,"fromTranslation",function(){return re}),n.d(a,"fromScaling",function(){return ie}),n.d(a,"fromRotation",function(){return oe}),n.d(a,"fromXRotation",function(){return ae}),n.d(a,"fromYRotation",function(){return se}),n.d(a,"fromZRotation",function(){return le}),n.d(a,"fromRotationTranslation",function(){return ue}),n.d(a,"fromQuat2",function(){return ce}),n.d(a,"getTranslation",function(){return he}),n.d(a,"getScaling",function(){return de}),n.d(a,"getRotation",function(){return fe}),n.d(a,"fromRotationTranslationScale",function(){return pe}),n.d(a,"fromRotationTranslationScaleOrigin",function(){return ge}),n.d(a,"fromQuat",function(){return ve}),n.d(a,"frustum",function(){return me}),n.d(a,"perspectiveNO",function(){return ye}),n.d(a,"perspective",function(){return be}),n.d(a,"perspectiveZO",function(){return _e}),n.d(a,"perspectiveFromFieldOfView",function(){return xe}),n.d(a,"orthoNO",function(){return we}),n.d(a,"ortho",function(){return Se}),n.d(a,"orthoZO",function(){return Ce}),n.d(a,"lookAt",function(){return ke}),n.d(a,"targetTo",function(){return Oe}),n.d(a,"str",function(){return Me}),n.d(a,"frob",function(){return Ee}),n.d(a,"add",function(){return Te}),n.d(a,"subtract",function(){return Ae}),n.d(a,"multiplyScalar",function(){return Ie}),n.d(a,"multiplyScalarAndAdd",function(){return De}),n.d(a,"exactEquals",function(){return Pe}),n.d(a,"equals",function(){return Le}),n.d(a,"mul",function(){return je}),n.d(a,"sub",function(){return Ne});var s={};n.d(s,"create",function(){return Be}),n.d(s,"clone",function(){return Fe}),n.d(s,"fromValues",function(){return ze}),n.d(s,"copy",function(){return Ve}),n.d(s,"set",function(){return $e}),n.d(s,"add",function(){return Ge}),n.d(s,"subtract",function(){return He}),n.d(s,"multiply",function(){return We}),n.d(s,"divide",function(){return Ue}),n.d(s,"ceil",function(){return Ye}),n.d(s,"floor",function(){return Xe}),n.d(s,"min",function(){return qe}),n.d(s,"max",function(){return Ze}),n.d(s,"round",function(){return Ke}),n.d(s,"scale",function(){return Je}),n.d(s,"scaleAndAdd",function(){return Qe}),n.d(s,"distance",function(){return tn}),n.d(s,"squaredDistance",function(){return en}),n.d(s,"length",function(){return nn}),n.d(s,"squaredLength",function(){return rn}),n.d(s,"negate",function(){return on}),n.d(s,"inverse",function(){return an}),n.d(s,"normalize",function(){return sn}),n.d(s,"dot",function(){return ln}),n.d(s,"cross",function(){return un}),n.d(s,"lerp",function(){return cn}),n.d(s,"random",function(){return hn}),n.d(s,"transformMat4",function(){return dn}),n.d(s,"transformQuat",function(){return fn}),n.d(s,"zero",function(){return pn}),n.d(s,"str",function(){return gn}),n.d(s,"exactEquals",function(){return vn}),n.d(s,"equals",function(){return mn}),n.d(s,"sub",function(){return bn}),n.d(s,"mul",function(){return _n}),n.d(s,"div",function(){return xn}),n.d(s,"dist",function(){return wn}),n.d(s,"sqrDist",function(){return Sn}),n.d(s,"len",function(){return Cn}),n.d(s,"sqrLen",function(){return kn}),n.d(s,"forEach",function(){return On});var l={};n.d(l,"create",function(){return Mn}),n.d(l,"identity",function(){return En}),n.d(l,"setAxisAngle",function(){return Tn}),n.d(l,"getAxisAngle",function(){return An}),n.d(l,"getAngle",function(){return In}),n.d(l,"multiply",function(){return Dn}),n.d(l,"rotateX",function(){return Pn}),n.d(l,"rotateY",function(){return Ln}),n.d(l,"rotateZ",function(){return jn}),n.d(l,"calculateW",function(){return Nn}),n.d(l,"exp",function(){return Rn}),n.d(l,"ln",function(){return Bn}),n.d(l,"pow",function(){return Fn}),n.d(l,"slerp",function(){return zn}),n.d(l,"random",function(){return Vn}),n.d(l,"invert",function(){return $n}),n.d(l,"conjugate",function(){return Gn}),n.d(l,"fromMat3",function(){return Hn}),n.d(l,"fromEuler",function(){return Wn}),n.d(l,"str",function(){return Un}),n.d(l,"clone",function(){return Qn}),n.d(l,"fromValues",function(){return tr}),n.d(l,"copy",function(){return er}),n.d(l,"set",function(){return nr}),n.d(l,"add",function(){return rr}),n.d(l,"mul",function(){return ir}),n.d(l,"scale",function(){return or}),n.d(l,"dot",function(){return ar}),n.d(l,"lerp",function(){return sr}),n.d(l,"length",function(){return lr}),n.d(l,"len",function(){return ur}),n.d(l,"squaredLength",function(){return cr}),n.d(l,"sqrLen",function(){return hr}),n.d(l,"normalize",function(){return dr}),n.d(l,"exactEquals",function(){return fr}),n.d(l,"equals",function(){return pr}),n.d(l,"rotationTo",function(){return gr}),n.d(l,"sqlerp",function(){return vr}),n.d(l,"setAxes",function(){return mr});var u={};n.d(u,"create",function(){return yr}),n.d(u,"clone",function(){return br}),n.d(u,"fromValues",function(){return _r}),n.d(u,"fromRotationTranslationValues",function(){return xr}),n.d(u,"fromRotationTranslation",function(){return wr}),n.d(u,"fromTranslation",function(){return Sr}),n.d(u,"fromRotation",function(){return Cr}),n.d(u,"fromMat4",function(){return kr}),n.d(u,"copy",function(){return Or}),n.d(u,"identity",function(){return Mr}),n.d(u,"set",function(){return Er}),n.d(u,"getReal",function(){return Tr}),n.d(u,"getDual",function(){return Ar}),n.d(u,"setReal",function(){return Ir}),n.d(u,"setDual",function(){return Dr}),n.d(u,"getTranslation",function(){return Pr}),n.d(u,"translate",function(){return Lr}),n.d(u,"rotateX",function(){return jr}),n.d(u,"rotateY",function(){return Nr}),n.d(u,"rotateZ",function(){return Rr}),n.d(u,"rotateByQuatAppend",function(){return Br}),n.d(u,"rotateByQuatPrepend",function(){return Fr}),n.d(u,"rotateAroundAxis",function(){return zr}),n.d(u,"add",function(){return Vr}),n.d(u,"multiply",function(){return $r}),n.d(u,"mul",function(){return Gr}),n.d(u,"scale",function(){return Hr}),n.d(u,"dot",function(){return Wr}),n.d(u,"lerp",function(){return Ur}),n.d(u,"invert",function(){return Yr}),n.d(u,"conjugate",function(){return Xr}),n.d(u,"length",function(){return qr}),n.d(u,"len",function(){return Zr}),n.d(u,"squaredLength",function(){return Kr}),n.d(u,"sqrLen",function(){return Jr}),n.d(u,"normalize",function(){return Qr}),n.d(u,"str",function(){return ti}),n.d(u,"exactEquals",function(){return ei}),n.d(u,"equals",function(){return ni});var c=n("NVY2");function h(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function d(t){var e=new c.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function p(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function g(t,e,n,r){var i=new c.ARRAY_TYPE(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function v(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function m(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function y(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*o-i*r;return a?(a=1/a,t[0]=o*a,t[1]=-r*a,t[2]=-i*a,t[3]=n*a,t):null}function b(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t}function _(t){return t[0]*t[3]-t[2]*t[1]}function x(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*s+o*l,t[1]=i*s+a*l,t[2]=r*u+o*c,t[3]=i*u+a*c,t}function w(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=r*-s+o*l,t[3]=i*-s+a*l,t}function S(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1];return t[0]=r*s,t[1]=i*s,t[2]=o*l,t[3]=a*l,t}function C(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t}function k(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function O(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function M(t){return Math.hypot(t[0],t[1],t[2],t[3])}function E(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]}function T(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function A(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function D(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=e[0],s=e[1],l=e[2],u=e[3];return Math.abs(n-a)<=c.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=c.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=c.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=c.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))}function P(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function L(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}var j=x,N=A;function R(){var t=new c.ARRAY_TYPE(6);return c.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function B(t){var e=new c.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function F(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function z(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function V(t,e,n,r,i,o){var a=new c.ARRAY_TYPE(6);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function $(t,e,n,r,i,o,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t}function G(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=n*o-r*i;return l?(l=1/l,t[0]=o*l,t[1]=-r*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*a)*l,t[5]=(r*a-n*s)*l,t):null}function H(t){return t[0]*t[3]-t[1]*t[2]}function W(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=n[0],c=n[1],h=n[2],d=n[3],f=n[4],p=n[5];return t[0]=r*u+o*c,t[1]=i*u+a*c,t[2]=r*h+o*d,t[3]=i*h+a*d,t[4]=r*f+o*p+s,t[5]=i*f+a*p+l,t}function U(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*u,t[1]=i*c+a*u,t[2]=r*-u+o*c,t[3]=i*-u+a*c,t[4]=s,t[5]=l,t}function Y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r*u,t[1]=i*u,t[2]=o*c,t[3]=a*c,t[4]=s,t[5]=l,t}function X(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=r*u+o*c+s,t[5]=i*u+a*c+l,t}function q(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t}function Z(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function K(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function J(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function Q(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)}function tt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t}function et(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}function nt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t}function rt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t}function it(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function ot(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],h=e[2],d=e[3],f=e[4],p=e[5];return Math.abs(n-l)<=c.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-u)<=c.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-h)<=c.EPSILON*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-d)<=c.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-f)<=c.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(s-p)<=c.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))}var at=W,st=et;function lt(){var t=new c.ARRAY_TYPE(9);return c.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function ut(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function ct(t){var e=new c.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function ht(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function dt(t,e,n,r,i,o,a,s,l){var u=new c.ARRAY_TYPE(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=i,u[5]=o,u[6]=a,u[7]=s,u[8]=l,u}function ft(t,e,n,r,i,o,a,s,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=u,t}function pt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function gt(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function vt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*a-s*u,d=-c*o+s*l,f=u*o-a*l,p=n*h+r*d+i*f;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+i*u)*p,t[2]=(s*r-i*a)*p,t[3]=d*p,t[4]=(c*n-i*l)*p,t[5]=(-s*n+i*o)*p,t[6]=f*p,t[7]=(-u*n+r*l)*p,t[8]=(a*n-r*o)*p,t):null}function mt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=a*c-s*u,t[1]=i*u-r*c,t[2]=r*s-i*a,t[3]=s*l-o*c,t[4]=n*c-i*l,t[5]=i*o-n*s,t[6]=o*u-a*l,t[7]=r*l-n*u,t[8]=n*a-r*o,t}function yt(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8];return e*(u*o-a*l)+n*(-u*i+a*s)+r*(l*i-o*s)}function bt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],_=n[8];return t[0]=d*r+f*a+p*u,t[1]=d*i+f*s+p*c,t[2]=d*o+f*l+p*h,t[3]=g*r+v*a+m*u,t[4]=g*i+v*s+m*c,t[5]=g*o+v*l+m*h,t[6]=y*r+b*a+_*u,t[7]=y*i+b*s+_*c,t[8]=y*o+b*l+_*h,t}function _t(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d*r+f*a+u,t[7]=d*i+f*s+c,t[8]=d*o+f*l+h,t}function xt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*r+d*a,t[1]=f*i+d*s,t[2]=f*o+d*l,t[3]=f*a-d*r,t[4]=f*s-d*i,t[5]=f*l-d*o,t[6]=u,t[7]=c,t[8]=h,t}function wt(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function St(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Ct(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function kt(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Ot(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function Mt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,l=i+i,u=n*a,c=r*a,h=r*s,d=i*a,f=i*s,p=i*l,g=o*a,v=o*s,m=o*l;return t[0]=1-h-p,t[3]=c-m,t[6]=d+v,t[1]=c+m,t[4]=1-u-p,t[7]=f-g,t[2]=d-v,t[5]=f+g,t[8]=1-u-h,t}function Et(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*l-i*a,_=n*u-o*a,x=r*l-i*s,w=r*u-o*s,S=i*u-o*l,C=c*g-h*p,k=c*v-d*p,O=c*m-f*p,M=h*v-d*g,E=h*m-f*g,T=d*m-f*v,A=y*T-b*E+_*M+x*O-w*k+S*C;return A?(A=1/A,t[0]=(s*T-l*E+u*M)*A,t[1]=(l*O-a*T-u*k)*A,t[2]=(a*E-s*O+u*C)*A,t[3]=(i*E-r*T-o*M)*A,t[4]=(n*T-i*O+o*k)*A,t[5]=(r*O-n*E-o*C)*A,t[6]=(g*S-v*w+m*x)*A,t[7]=(v*_-p*S-m*b)*A,t[8]=(p*w-g*_+m*y)*A,t):null}function Tt(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function At(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function It(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function Dt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function Pt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function Lt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function jt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function Nt(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function Rt(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],h=t[8],d=e[0],f=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],_=e[8];return Math.abs(n-d)<=c.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-f)<=c.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-p)<=c.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-g)<=c.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(a-v)<=c.EPSILON*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(s-m)<=c.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(l-y)<=c.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-b)<=c.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-_)<=c.EPSILON*Math.max(1,Math.abs(h),Math.abs(_))}var Bt=bt,Ft=Pt;function zt(){var t=new c.ARRAY_TYPE(16);return c.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function Vt(t){var e=new c.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function $t(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Gt(t,e,n,r,i,o,a,s,l,u,h,d,f,p,g,v){var m=new c.ARRAY_TYPE(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=r,m[4]=i,m[5]=o,m[6]=a,m[7]=s,m[8]=l,m[9]=u,m[10]=h,m[11]=d,m[12]=f,m[13]=p,m[14]=g,m[15]=v,m}function Ht(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=d,t[12]=f,t[13]=p,t[14]=g,t[15]=v,t}function Wt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Ut(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function Yt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*l-i*a,_=n*u-o*a,x=r*l-i*s,w=r*u-o*s,S=i*u-o*l,C=c*g-h*p,k=c*v-d*p,O=c*m-f*p,M=h*v-d*g,E=h*m-f*g,T=d*m-f*v,A=y*T-b*E+_*M+x*O-w*k+S*C;return A?(A=1/A,t[0]=(s*T-l*E+u*M)*A,t[1]=(i*E-r*T-o*M)*A,t[2]=(g*S-v*w+m*x)*A,t[3]=(d*w-h*S-f*x)*A,t[4]=(l*O-a*T-u*k)*A,t[5]=(n*T-i*O+o*k)*A,t[6]=(v*_-p*S-m*b)*A,t[7]=(c*S-d*_+f*b)*A,t[8]=(a*E-s*O+u*C)*A,t[9]=(r*O-n*E-o*C)*A,t[10]=(p*w-g*_+m*y)*A,t[11]=(h*_-c*w-f*y)*A,t[12]=(s*k-a*M-l*C)*A,t[13]=(n*M-r*k+i*C)*A,t[14]=(g*b-p*x-v*y)*A,t[15]=(c*x-h*b+d*y)*A,t):null}function Xt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15];return t[0]=s*(d*m-f*v)-h*(l*m-u*v)+g*(l*f-u*d),t[1]=-(r*(d*m-f*v)-h*(i*m-o*v)+g*(i*f-o*d)),t[2]=r*(l*m-u*v)-s*(i*m-o*v)+g*(i*u-o*l),t[3]=-(r*(l*f-u*d)-s*(i*f-o*d)+h*(i*u-o*l)),t[4]=-(a*(d*m-f*v)-c*(l*m-u*v)+p*(l*f-u*d)),t[5]=n*(d*m-f*v)-c*(i*m-o*v)+p*(i*f-o*d),t[6]=-(n*(l*m-u*v)-a*(i*m-o*v)+p*(i*u-o*l)),t[7]=n*(l*f-u*d)-a*(i*f-o*d)+c*(i*u-o*l),t[8]=a*(h*m-f*g)-c*(s*m-u*g)+p*(s*f-u*h),t[9]=-(n*(h*m-f*g)-c*(r*m-o*g)+p*(r*f-o*h)),t[10]=n*(s*m-u*g)-a*(r*m-o*g)+p*(r*u-o*s),t[11]=-(n*(s*f-u*h)-a*(r*f-o*h)+c*(r*u-o*s)),t[12]=-(a*(h*v-d*g)-c*(s*v-l*g)+p*(s*d-l*h)),t[13]=n*(h*v-d*g)-c*(r*v-i*g)+p*(r*d-i*h),t[14]=-(n*(s*v-l*g)-a*(r*v-i*g)+p*(r*l-i*s)),t[15]=n*(s*d-l*h)-a*(r*d-i*h)+c*(r*l-i*s),t}function qt(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*a-n*o)*(h*v-d*g)-(e*s-r*o)*(c*v-d*p)+(e*l-i*o)*(c*g-h*p)+(n*s-r*a)*(u*v-d*f)-(n*l-i*a)*(u*g-h*f)+(r*l-i*s)*(u*p-c*f)}function Zt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],_=n[1],x=n[2],w=n[3];return t[0]=b*r+_*s+x*h+w*g,t[1]=b*i+_*l+x*d+w*v,t[2]=b*o+_*u+x*f+w*m,t[3]=b*a+_*c+x*p+w*y,b=n[4],_=n[5],x=n[6],w=n[7],t[4]=b*r+_*s+x*h+w*g,t[5]=b*i+_*l+x*d+w*v,t[6]=b*o+_*u+x*f+w*m,t[7]=b*a+_*c+x*p+w*y,b=n[8],_=n[9],x=n[10],w=n[11],t[8]=b*r+_*s+x*h+w*g,t[9]=b*i+_*l+x*d+w*v,t[10]=b*o+_*u+x*f+w*m,t[11]=b*a+_*c+x*p+w*y,b=n[12],_=n[13],x=n[14],w=n[15],t[12]=b*r+_*s+x*h+w*g,t[13]=b*i+_*l+x*d+w*v,t[14]=b*o+_*u+x*f+w*m,t[15]=b*a+_*c+x*p+w*y,t}function Kt(t,e,n){var r,i,o,a,s,l,u,c,h,d,f,p,g=n[0],v=n[1],m=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=r*g+s*v+h*m+e[12],t[13]=i*g+l*v+d*m+e[13],t[14]=o*g+u*v+f*m+e[14],t[15]=a*g+c*v+p*m+e[15]),t}function Jt(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Qt(t,e,n,r){var i,o,a,s,l,u,h,d,f,p,g,v,m,y,b,_,x,w,S,C,k,O,M,E,T=r[0],A=r[1],I=r[2],D=Math.hypot(T,A,I);return D<c.EPSILON?null:(T*=D=1/D,A*=D,I*=D,i=Math.sin(n),a=1-(o=Math.cos(n)),s=e[0],l=e[1],u=e[2],h=e[3],d=e[4],f=e[5],p=e[6],g=e[7],v=e[8],m=e[9],y=e[10],b=e[11],_=T*T*a+o,x=A*T*a+I*i,w=I*T*a-A*i,S=T*A*a-I*i,C=A*A*a+o,k=I*A*a+T*i,O=T*I*a+A*i,M=A*I*a-T*i,E=I*I*a+o,t[0]=s*_+d*x+v*w,t[1]=l*_+f*x+m*w,t[2]=u*_+p*x+y*w,t[3]=h*_+g*x+b*w,t[4]=s*S+d*C+v*k,t[5]=l*S+f*C+m*k,t[6]=u*S+p*C+y*k,t[7]=h*S+g*C+b*k,t[8]=s*O+d*M+v*E,t[9]=l*O+f*M+m*E,t[10]=u*O+p*M+y*E,t[11]=h*O+g*M+b*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function te(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+u*r,t[5]=a*i+c*r,t[6]=s*i+h*r,t[7]=l*i+d*r,t[8]=u*i-o*r,t[9]=c*i-a*r,t[10]=h*i-s*r,t[11]=d*i-l*r,t}function ee(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[8],c=e[9],h=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-u*r,t[1]=a*i-c*r,t[2]=s*i-h*r,t[3]=l*i-d*r,t[8]=o*r+u*i,t[9]=a*r+c*i,t[10]=s*r+h*i,t[11]=l*r+d*i,t}function ne(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+u*r,t[1]=a*i+c*r,t[2]=s*i+h*r,t[3]=l*i+d*r,t[4]=u*i-o*r,t[5]=c*i-a*r,t[6]=h*i-s*r,t[7]=d*i-l*r,t}function re(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function ie(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oe(t,e,n){var r,i,o,a=n[0],s=n[1],l=n[2],u=Math.hypot(a,s,l);return u<c.EPSILON?null:(a*=u=1/u,s*=u,l*=u,r=Math.sin(e),o=1-(i=Math.cos(e)),t[0]=a*a*o+i,t[1]=s*a*o+l*r,t[2]=l*a*o-s*r,t[3]=0,t[4]=a*s*o-l*r,t[5]=s*s*o+i,t[6]=l*s*o+a*r,t[7]=0,t[8]=a*l*o+s*r,t[9]=s*l*o-a*r,t[10]=l*l*o+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function ae(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function se(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function le(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ue(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,l=i+i,u=o+o,c=r*s,h=r*l,d=r*u,f=i*l,p=i*u,g=o*u,v=a*s,m=a*l,y=a*u;return t[0]=1-(f+g),t[1]=h+y,t[2]=d-m,t[3]=0,t[4]=h-y,t[5]=1-(c+g),t[6]=p+v,t[7]=0,t[8]=d+m,t[9]=p-v,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function ce(t,e){var n=new c.ARRAY_TYPE(3),r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],d=r*r+i*i+o*o+a*a;return d>0?(n[0]=2*(s*a+h*r+l*o-u*i)/d,n[1]=2*(l*a+h*i+u*r-s*o)/d,n[2]=2*(u*a+h*o+s*i-l*r)/d):(n[0]=2*(s*a+h*r+l*o-u*i),n[1]=2*(l*a+h*i+u*r-s*o),n[2]=2*(u*a+h*o+s*i-l*r)),ue(t,e,n),t}function he(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function de(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(l,u,c),t}function fe(t,e){var n=new c.ARRAY_TYPE(3);de(n,e);var r=1/n[0],i=1/n[1],o=1/n[2],a=e[0]*r,s=e[1]*i,l=e[2]*o,u=e[4]*r,h=e[5]*i,d=e[6]*o,f=e[8]*r,p=e[9]*i,g=e[10]*o,v=a+h+g,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(d-p)/m,t[1]=(f-l)/m,t[2]=(s-u)/m):a>h&&a>g?(m=2*Math.sqrt(1+a-h-g),t[3]=(d-p)/m,t[0]=.25*m,t[1]=(s+u)/m,t[2]=(f+l)/m):h>g?(m=2*Math.sqrt(1+h-a-g),t[3]=(f-l)/m,t[0]=(s+u)/m,t[1]=.25*m,t[2]=(d+p)/m):(m=2*Math.sqrt(1+g-a-h),t[3]=(s-u)/m,t[0]=(f+l)/m,t[1]=(d+p)/m,t[2]=.25*m),t}function pe(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],l=i+i,u=o+o,c=a+a,h=i*l,d=i*u,f=i*c,p=o*u,g=o*c,v=a*c,m=s*l,y=s*u,b=s*c,_=r[0],x=r[1],w=r[2];return t[0]=(1-(p+v))*_,t[1]=(d+b)*_,t[2]=(f-y)*_,t[3]=0,t[4]=(d-b)*x,t[5]=(1-(h+v))*x,t[6]=(g+m)*x,t[7]=0,t[8]=(f+y)*w,t[9]=(g-m)*w,t[10]=(1-(h+p))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function ge(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],l=e[3],u=o+o,c=a+a,h=s+s,d=o*u,f=o*c,p=o*h,g=a*c,v=a*h,m=s*h,y=l*u,b=l*c,_=l*h,x=r[0],w=r[1],S=r[2],C=i[0],k=i[1],O=i[2],M=(1-(g+m))*x,E=(f+_)*x,T=(p-b)*x,A=(f-_)*w,I=(1-(d+m))*w,D=(v+y)*w,P=(p+b)*S,L=(v-y)*S,j=(1-(d+g))*S;return t[0]=M,t[1]=E,t[2]=T,t[3]=0,t[4]=A,t[5]=I,t[6]=D,t[7]=0,t[8]=P,t[9]=L,t[10]=j,t[11]=0,t[12]=n[0]+C-(M*C+A*k+P*O),t[13]=n[1]+k-(E*C+I*k+L*O),t[14]=n[2]+O-(T*C+D*k+j*O),t[15]=1,t}function ve(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,l=i+i,u=n*a,c=r*a,h=r*s,d=i*a,f=i*s,p=i*l,g=o*a,v=o*s,m=o*l;return t[0]=1-h-p,t[1]=c+m,t[2]=d-v,t[3]=0,t[4]=c-m,t[5]=1-u-p,t[6]=f+g,t[7]=0,t[8]=d+v,t[9]=f-g,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function me(t,e,n,r,i,o,a){var s=1/(n-e),l=1/(i-r),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}function ye(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var be=ye;function _e(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function xe(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),u=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(i-o)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function we(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*u,t[15]=1,t}var Se=we;function Ce(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=o*u,t[15]=1,t}function ke(t,e,n,r){var i,o,a,s,l,u,h,d,f,p,g=e[0],v=e[1],m=e[2],y=r[0],b=r[1],_=r[2],x=n[0],w=n[1],S=n[2];return Math.abs(g-x)<c.EPSILON&&Math.abs(v-w)<c.EPSILON&&Math.abs(m-S)<c.EPSILON?Wt(t):(h=g-x,d=v-w,f=m-S,i=b*(f*=p=1/Math.hypot(h,d,f))-_*(d*=p),o=_*(h*=p)-y*f,a=y*d-b*h,(p=Math.hypot(i,o,a))?(i*=p=1/p,o*=p,a*=p):(i=0,o=0,a=0),s=d*a-f*o,l=f*i-h*a,u=h*o-d*i,(p=Math.hypot(s,l,u))?(s*=p=1/p,l*=p,u*=p):(s=0,l=0,u=0),t[0]=i,t[1]=s,t[2]=h,t[3]=0,t[4]=o,t[5]=l,t[6]=d,t[7]=0,t[8]=a,t[9]=u,t[10]=f,t[11]=0,t[12]=-(i*g+o*v+a*m),t[13]=-(s*g+l*v+u*m),t[14]=-(h*g+d*v+f*m),t[15]=1,t)}function Oe(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=r[0],l=r[1],u=r[2],c=i-n[0],h=o-n[1],d=a-n[2],f=c*c+h*h+d*d;f>0&&(c*=f=1/Math.sqrt(f),h*=f,d*=f);var p=l*d-u*h,g=u*c-s*d,v=s*h-l*c;return(f=p*p+g*g+v*v)>0&&(p*=f=1/Math.sqrt(f),g*=f,v*=f),t[0]=p,t[1]=g,t[2]=v,t[3]=0,t[4]=h*v-d*g,t[5]=d*p-c*v,t[6]=c*g-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=d,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function Me(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Ee(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Te(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Ae(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function Ie(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function De(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function Pe(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function Le(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],h=t[8],d=t[9],f=t[10],p=t[11],g=t[12],v=t[13],m=t[14],y=t[15],b=e[0],_=e[1],x=e[2],w=e[3],S=e[4],C=e[5],k=e[6],O=e[7],M=e[8],E=e[9],T=e[10],A=e[11],I=e[12],D=e[13],P=e[14],L=e[15];return Math.abs(n-b)<=c.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-_)<=c.EPSILON*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(i-x)<=c.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-w)<=c.EPSILON*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-S)<=c.EPSILON*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(s-C)<=c.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-k)<=c.EPSILON*Math.max(1,Math.abs(l),Math.abs(k))&&Math.abs(u-O)<=c.EPSILON*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(h-M)<=c.EPSILON*Math.max(1,Math.abs(h),Math.abs(M))&&Math.abs(d-E)<=c.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(f-T)<=c.EPSILON*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(p-A)<=c.EPSILON*Math.max(1,Math.abs(p),Math.abs(A))&&Math.abs(g-I)<=c.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-D)<=c.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(m-P)<=c.EPSILON*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-L)<=c.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))}var je=Zt,Ne=Ae,Re=n("YPq+");function Be(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Fe(t){var e=new c.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function ze(t,e,n,r){var i=new c.ARRAY_TYPE(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function Ve(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function $e(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Ge(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function He(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function We(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function Ue(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function Ye(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function Xe(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function qe(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function Ze(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function Ke(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function Je(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function Qe(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}function tn(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.hypot(n,r,i,o)}function en(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o}function nn(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function rn(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function on(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function an(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function sn(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t}function ln(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function un(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],h=e[1],d=e[2],f=e[3];return t[0]=h*u-d*l+f*s,t[1]=-c*u+d*a-f*o,t[2]=c*l-h*a+f*i,t[3]=-c*s+h*o-d*i,t}function cn(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function hn(t,e){var n,r,i,o,a,s;e=e||1;do{a=(n=2*c.RANDOM()-1)*n+(r=2*c.RANDOM()-1)*r}while(a>=1);do{s=(i=2*c.RANDOM()-1)*i+(o=2*c.RANDOM()-1)*o}while(s>=1);var l=Math.sqrt((1-a)/s);return t[0]=e*n,t[1]=e*r,t[2]=e*i*l,t[3]=e*o*l,t}function dn(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}function fn(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*o-l*i,h=u*i+l*r-a*o,d=u*o+a*i-s*r,f=-a*r-s*i-l*o;return t[0]=c*u+f*-a+h*-l-d*-s,t[1]=h*u+f*-s+d*-a-c*-l,t[2]=d*u+f*-l+c*-s-h*-a,t[3]=e[3],t}function pn(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function gn(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function vn(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function mn(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=e[0],s=e[1],l=e[2],u=e[3];return Math.abs(n-a)<=c.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=c.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=c.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=c.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))}var yn,bn=He,_n=We,xn=Ue,wn=tn,Sn=en,Cn=nn,kn=rn,On=(yn=Be(),function(t,e,n,r,i,o){var a,s;for(e||(e=4),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)yn[0]=t[a],yn[1]=t[a+1],yn[2]=t[a+2],yn[3]=t[a+3],i(yn,yn,o),t[a]=yn[0],t[a+1]=yn[1],t[a+2]=yn[2],t[a+3]=yn[3];return t});function Mn(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function En(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function Tn(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function An(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>c.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function In(t,e){var n=ar(t,e);return Math.acos(2*n*n-1)}function Dn(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+a*s+i*u-o*l,t[1]=i*c+a*l+o*s-r*u,t[2]=o*c+a*u+r*l-i*s,t[3]=a*c-r*s-i*l-o*u,t}function Pn(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+a*s,t[1]=i*l+o*s,t[2]=o*l-i*s,t[3]=a*l-r*s,t}function Ln(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-o*s,t[1]=i*l+a*s,t[2]=o*l+r*s,t[3]=a*l-i*s,t}function jn(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=o*l+a*s,t[3]=a*l-o*s,t}function Nn(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function Rn(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=Math.exp(o),l=a>0?s*Math.sin(a)/a:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,t[3]=s*Math.cos(a),t}function Bn(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=a>0?Math.atan2(a,o)/a:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+o*o),t}function Fn(t,e,n){return Bn(t,e),or(t,t,n),Rn(t,t),t}function zn(t,e,n,r){var i,o,a,s,l,u=e[0],h=e[1],d=e[2],f=e[3],p=n[0],g=n[1],v=n[2],m=n[3];return(o=u*p+h*g+d*v+f*m)<0&&(o=-o,p=-p,g=-g,v=-v,m=-m),1-o>c.EPSILON?(i=Math.acos(o),a=Math.sin(i),s=Math.sin((1-r)*i)/a,l=Math.sin(r*i)/a):(s=1-r,l=r),t[0]=s*u+l*p,t[1]=s*h+l*g,t[2]=s*d+l*v,t[3]=s*f+l*m,t}function Vn(t){var e=c.RANDOM(),n=c.RANDOM(),r=c.RANDOM(),i=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=o*Math.sin(2*Math.PI*r),t[3]=o*Math.cos(2*Math.PI*r),t}function $n(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t}function Gn(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Hn(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+i]+e[3*i+o])*n,t[a]=(e[3*a+i]+e[3*i+a])*n}return t}function Wn(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=o*l*c-a*s*u,t[1]=a*s*c+o*l*u,t[2]=a*l*u-o*s*c,t[3]=a*l*c+o*s*u,t}function Un(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Yn,Xn,qn,Zn,Kn,Jn,Qn=Fe,tr=ze,er=Ve,nr=$e,rr=Ge,ir=Dn,or=Je,ar=ln,sr=cn,lr=nn,ur=lr,cr=rn,hr=cr,dr=sn,fr=vn,pr=mn,gr=(Yn=Re.create(),Xn=Re.fromValues(1,0,0),qn=Re.fromValues(0,1,0),function(t,e,n){var r=Re.dot(e,n);return r<-.999999?(Re.cross(Yn,Xn,e),Re.len(Yn)<1e-6&&Re.cross(Yn,qn,e),Re.normalize(Yn,Yn),Tn(t,Yn,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(Re.cross(Yn,e,n),t[0]=Yn[0],t[1]=Yn[1],t[2]=Yn[2],t[3]=1+r,dr(t,t))}),vr=(Zn=Mn(),Kn=Mn(),function(t,e,n,r,i,o){return zn(Zn,e,i,o),zn(Kn,n,r,o),zn(t,Zn,Kn,2*o*(1-o)),t}),mr=(Jn=lt(),function(t,e,n,r){return Jn[0]=n[0],Jn[3]=n[1],Jn[6]=n[2],Jn[1]=r[0],Jn[4]=r[1],Jn[7]=r[2],Jn[2]=-e[0],Jn[5]=-e[1],Jn[8]=-e[2],dr(t,Hn(t,Jn))});function yr(){var t=new c.ARRAY_TYPE(8);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t}function br(t){var e=new c.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e}function _r(t,e,n,r,i,o,a,s){var l=new c.ARRAY_TYPE(8);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=o,l[6]=a,l[7]=s,l}function xr(t,e,n,r,i,o,a){var s=new c.ARRAY_TYPE(8);s[0]=t,s[1]=e,s[2]=n,s[3]=r;var l=.5*i,u=.5*o,h=.5*a;return s[4]=l*r+u*n-h*e,s[5]=u*r+h*t-l*n,s[6]=h*r+l*e-u*t,s[7]=-l*t-u*e-h*n,s}function wr(t,e,n){var r=.5*n[0],i=.5*n[1],o=.5*n[2],a=e[0],s=e[1],l=e[2],u=e[3];return t[0]=a,t[1]=s,t[2]=l,t[3]=u,t[4]=r*u+i*l-o*s,t[5]=i*u+o*a-r*l,t[6]=o*u+r*s-i*a,t[7]=-r*a-i*s-o*l,t}function Sr(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t}function Cr(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function kr(t,e){var n=Mn();fe(n,e);var r=new c.ARRAY_TYPE(3);return he(r,e),wr(t,n,r),t}function Or(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function Mr(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function Er(t,e,n,r,i,o,a,s,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t}var Tr=er;function Ar(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var Ir=er;function Dr(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function Pr(t,e){var n=e[4],r=e[5],i=e[6],o=e[7],a=-e[0],s=-e[1],l=-e[2],u=e[3];return t[0]=2*(n*u+o*a+r*l-i*s),t[1]=2*(r*u+o*s+i*a-n*l),t[2]=2*(i*u+o*l+n*s-r*a),t}function Lr(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=.5*n[0],l=.5*n[1],u=.5*n[2],c=e[4],h=e[5],d=e[6],f=e[7];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=a*s+i*u-o*l+c,t[5]=a*l+o*s-r*u+h,t[6]=a*u+r*l-i*s+d,t[7]=-r*s-i*l-o*u+f,t}function jr(t,e,n){var r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=s*a+c*r+l*o-u*i,d=l*a+c*i+u*r-s*o,f=u*a+c*o+s*i-l*r,p=c*a-s*r-l*i-u*o;return Pn(t,e,n),r=t[0],i=t[1],o=t[2],a=t[3],t[4]=h*a+p*r+d*o-f*i,t[5]=d*a+p*i+f*r-h*o,t[6]=f*a+p*o+h*i-d*r,t[7]=p*a-h*r-d*i-f*o,t}function Nr(t,e,n){var r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=s*a+c*r+l*o-u*i,d=l*a+c*i+u*r-s*o,f=u*a+c*o+s*i-l*r,p=c*a-s*r-l*i-u*o;return Ln(t,e,n),r=t[0],i=t[1],o=t[2],a=t[3],t[4]=h*a+p*r+d*o-f*i,t[5]=d*a+p*i+f*r-h*o,t[6]=f*a+p*o+h*i-d*r,t[7]=p*a-h*r-d*i-f*o,t}function Rr(t,e,n){var r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=s*a+c*r+l*o-u*i,d=l*a+c*i+u*r-s*o,f=u*a+c*o+s*i-l*r,p=c*a-s*r-l*i-u*o;return jn(t,e,n),r=t[0],i=t[1],o=t[2],a=t[3],t[4]=h*a+p*r+d*o-f*i,t[5]=d*a+p*i+f*r-h*o,t[6]=f*a+p*o+h*i-d*r,t[7]=p*a-h*r-d*i-f*o,t}function Br(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],l=e[1],u=e[2],c=e[3];return t[0]=s*a+c*r+l*o-u*i,t[1]=l*a+c*i+u*r-s*o,t[2]=u*a+c*o+s*i-l*r,t[3]=c*a-s*r-l*i-u*o,s=e[4],l=e[5],u=e[6],c=e[7],t[4]=s*a+c*r+l*o-u*i,t[5]=l*a+c*i+u*r-s*o,t[6]=u*a+c*o+s*i-l*r,t[7]=c*a-s*r-l*i-u*o,t}function Fr(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+a*s+i*u-o*l,t[1]=i*c+a*l+o*s-r*u,t[2]=o*c+a*u+r*l-i*s,t[3]=a*c-r*s-i*l-o*u,s=n[4],l=n[5],u=n[6],c=n[7],t[4]=r*c+a*s+i*u-o*l,t[5]=i*c+a*l+o*s-r*u,t[6]=o*c+a*u+r*l-i*s,t[7]=a*c-r*s-i*l-o*u,t}function zr(t,e,n,r){if(Math.abs(r)<c.EPSILON)return Or(t,e);var i=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),a=o*n[0]/i,s=o*n[1]/i,l=o*n[2]/i,u=Math.cos(r),h=e[0],d=e[1],f=e[2],p=e[3];t[0]=h*u+p*a+d*l-f*s,t[1]=d*u+p*s+f*a-h*l,t[2]=f*u+p*l+h*s-d*a,t[3]=p*u-h*a-d*s-f*l;var g=e[4],v=e[5],m=e[6],y=e[7];return t[4]=g*u+y*a+v*l-m*s,t[5]=v*u+y*s+m*a-g*l,t[6]=m*u+y*l+g*s-v*a,t[7]=y*u-g*a-v*s-m*l,t}function Vr(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t}function $r(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[4],l=n[5],u=n[6],c=n[7],h=e[4],d=e[5],f=e[6],p=e[7],g=n[0],v=n[1],m=n[2],y=n[3];return t[0]=r*y+a*g+i*m-o*v,t[1]=i*y+a*v+o*g-r*m,t[2]=o*y+a*m+r*v-i*g,t[3]=a*y-r*g-i*v-o*m,t[4]=r*c+a*s+i*u-o*l+h*y+p*g+d*m-f*v,t[5]=i*c+a*l+o*s-r*u+d*y+p*v+f*g-h*m,t[6]=o*c+a*u+r*l-i*s+f*y+p*m+h*v-d*g,t[7]=a*c-r*s-i*l-o*u+p*y-h*g-d*v-f*m,t}var Gr=$r;function Hr(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t}var Wr=ar;function Ur(t,e,n,r){var i=1-r;return Wr(e,n)<0&&(r=-r),t[0]=e[0]*i+n[0]*r,t[1]=e[1]*i+n[1]*r,t[2]=e[2]*i+n[2]*r,t[3]=e[3]*i+n[3]*r,t[4]=e[4]*i+n[4]*r,t[5]=e[5]*i+n[5]*r,t[6]=e[6]*i+n[6]*r,t[7]=e[7]*i+n[7]*r,t}function Yr(t,e){var n=Kr(e);return t[0]=-e[0]/n,t[1]=-e[1]/n,t[2]=-e[2]/n,t[3]=e[3]/n,t[4]=-e[4]/n,t[5]=-e[5]/n,t[6]=-e[6]/n,t[7]=e[7]/n,t}function Xr(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t}var qr=lr,Zr=qr,Kr=cr,Jr=Kr;function Qr(t,e){var n=Kr(e);if(n>0){n=Math.sqrt(n);var r=e[0]/n,i=e[1]/n,o=e[2]/n,a=e[3]/n,s=e[4],l=e[5],u=e[6],c=e[7],h=r*s+i*l+o*u+a*c;t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=(s-r*h)/n,t[5]=(l-i*h)/n,t[6]=(u-o*h)/n,t[7]=(c-a*h)/n}return t}function ti(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function ei(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]}function ni(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],h=e[0],d=e[1],f=e[2],p=e[3],g=e[4],v=e[5],m=e[6],y=e[7];return Math.abs(n-h)<=c.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-d)<=c.EPSILON*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(i-f)<=c.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(o-p)<=c.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=c.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=c.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-m)<=c.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-y)<=c.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))}var ri=n("SEFl");n.d(e,"glMatrix",function(){return c}),n.d(e,"mat2",function(){return r}),n.d(e,"mat2d",function(){return i}),n.d(e,"mat3",function(){return o}),n.d(e,"mat4",function(){return a}),n.d(e,"quat",function(){return l}),n.d(e,"quat2",function(){return u}),n.d(e,"vec2",function(){return ri}),n.d(e,"vec3",function(){return Re}),n.d(e,"vec4",function(){return s})},ldJr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return e.map(function(e){var n=t.inEdges(e);if(!(null===n||void 0===n?void 0:n.length))return{v:e};var r={sum:0,weight:0};return null===n||void 0===n||n.forEach(function(e){var n=t.edge(e),i=t.node(e.v);r.sum+=n.weight*i.order,r.weight+=n.weight}),{v:e,barycenter:r.sum/r.weight,weight:r.weight}})}},lktj:function(t,e,n){var r=n("Ibhu"),i=n("xnc9");t.exports=Object.keys||function(t){return r(t,i)}},lljM:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("Jsh2"))&&r.__esModule?r:{default:r},o=n("lSAc");var a=function(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e3);var a=t.nodes,s=void 0===a?[]:a,l=t.edges,u=void 0===l?[]:l,c={},h={};s.forEach(function(t,e){var n=(0,o.uniqueId)();t.clusterId=n,c[n]={id:n,nodes:[t]},h[t.id]={node:t,idx:e}});var d=[],f={};(0,i.default)(t,e).forEach(function(t,e){var n=0,r=s[e].id;f[r]={},t.forEach(function(t,e){if(t){n+=t;var i=s[e].id;f[r][i]=t}}),d.push(n)});for(var p=0,g=function(){var t=!1;if(s.forEach(function(e){var n={};Object.keys(f[e.id]).forEach(function(t){var r=f[e.id][t],i=h[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r});var r=-1/0,i=[];if(Object.keys(n).forEach(function(t){r<n[t]?(r=n[t],i=[t]):r===n[t]&&i.push(t)}),1!==i.length||i[0]!==e.clusterId){var o=i.indexOf(e.clusterId);if(o>=0&&i.splice(o,1),i&&i.length){t=!0;var a=c[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var l=Math.floor(Math.random()*i.length),u=c[i[l]];u.nodes.push(e),e.clusterId=u.id}}}),!t)return"break";p++};p<r&&"break"!==g(););Object.keys(c).forEach(function(t){var e=c[t];e.nodes&&e.nodes.length||delete c[t]});var v=[],m={};u.forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=h[e].node.clusterId,a=h[r].node.clusterId,s="".concat(o,"---").concat(a);if(m[s])m[s].weight+=i,m[s].count++;else{var l={source:o,target:a,weight:i,count:1};m[s]=l,v.push(l)}});var y=[];return Object.keys(c).forEach(function(t){y.push(c[t])}),{clusters:y,clusterEdges:v}};e.default=a},m9gC:function(t,e,n){var r=n("RY/4"),i=n("4WTo");t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},mClu:function(t,e,n){var r=n("kM2E");r(r.S+r.F*!n("+E39"),"Object",{defineProperty:n("evD5").f})},mFJn:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n("wbMc")),s=n("1we+"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a.default),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s.Graph),c=function(){return 1},h=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)d(t,e,n,r);for(;r=o.dequeue();)d(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(d(t,e,n,r,!0));break}}return i},d=function(t,e,n,r,i){var o,a,s=[];return null===(o=t.inEdges(r.v))||void 0===o||o.forEach(function(r){var o=t.edge(r),a=t.node(r.v);i&&s.push({v:r.v,w:r.w,in:0,out:0}),void 0===a.out&&(a.out=0),a.out-=o,p(e,n,a)}),null===(a=t.outEdges(r.v))||void 0===a||a.forEach(function(r){var i=t.edge(r),o=r.w,a=t.node(o);void 0===a.in&&(a.in=0),a.in-=i,p(e,n,a)}),t.removeNode(r.v),i?s:void 0},f=function(t,e){var n=new u,r=0,i=0;t.nodes().forEach(function(t){n.setNode(t,{v:t,in:0,out:0})}),t.edges().forEach(function(t){var o=n.edge(t)||0,a=(null===e||void 0===e?void 0:e(t))||1,s=o+a;n.setEdge(t.v,t.w,s),i=Math.max(i,n.node(t.v).out+=a),r=Math.max(r,n.node(t.w).in+=a)});for(var o=[],a=i+r+3,s=0;s<a;s++)o.push(new l);var c=r+1;return n.nodes().forEach(function(t){p(o,c,n.node(t))}),{buckets:o,zeroIdx:c,graph:n}},p=function(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)};e.default=function(t,e){var n;if(t.nodeCount()<=1)return[];var r=f(t,e||c);return null===(n=h(r.graph,r.buckets,r.zeroIdx).map(function(e){return t.outEdges(e.v,e.w)}))||void 0===n?void 0:n.flat()}},mbce:function(t,e,n){var r=n("+E39"),i=n("lktj"),o=n("TcQ7"),a=n("NpIQ").f;t.exports=function(t){return function(e){for(var n,s=o(e),l=i(s),u=l.length,c=0,h=[];u>c;)n=l[c++],r&&!a.call(s,n)||h.push(t?[n,s[n]]:s[n]);return h}}},msXi:function(t,e,n){var r=n("77Pl");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},mtWM:function(t,e,n){t.exports=n("tIFN")},mtrD:function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=97)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},97:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])};r._withStripped=!0;var i={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/button/src/button.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},mvHQ:function(t,e,n){t.exports={default:n("qkKv"),__esModule:!0}},mw3O:function(t,e,n){"use strict";var r=n("CwSZ"),i=n("DDCP"),o=n("XgCd");t.exports={formats:o,parse:i,stringify:r}},mxuM:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("sBfk"),e)},n0T6:function(t,e,n){var r=n("Ibhu"),i=n("xnc9").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},n8ER:function(t,e,n){var r=n("Oy1H").default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(e){d=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof _?e:_,o=Object.create(i.prototype),a=new P(r||[]);return s(o,"_invoke",{value:T(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var g="suspendedStart",v="suspendedYield",m="executing",y="completed",b={};function _(){}function x(){}function w(){}var S={};d(S,u,function(){return this});var C=Object.getPrototypeOf,k=C&&C(C(L([])));k&&k!==o&&a.call(k,u)&&(S=k);var O=w.prototype=_.prototype=Object.create(S);function M(t){["next","throw","return"].forEach(function(e){d(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function n(i,o,s,l){var u=p(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&a.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,s,l)},function(t){n("throw",t,s,l)}):e.resolve(h).then(function(t){c.value=t,s(c)},function(t){return n("throw",t,s,l)})}l(u.arg)}var i;s(this,"_invoke",{value:function(t,r){function o(){return new e(function(e,i){n(t,r,e,i)})}return i=i?i.then(o,o):o()}})}function T(t,n,r){var i=g;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===b)continue;return l}}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=m;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?y:v,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=y,r.method="throw",r.arg=u.arg)}}}function A(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(r(t)+" is not iterable")}return x.prototype=w,s(O,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:x,configurable:!0}),x.displayName=d(w,h,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,d(t,h,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},M(E.prototype),d(E.prototype,c,function(){return this}),n.AsyncIterator=E,n.async=function(t,e,r,i,o){void 0===o&&(o=Promise);var a=new E(f(t,e,r,i),o);return n.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},M(O),d(O,h,"Generator"),d(O,u,function(){return this}),d(O,"toString",function(){return"[object Generator]"}),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=L,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),D(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},nOum:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ComboCombinedLayout=void 0;var a=n("D9Z3"),s=n("w9t0"),l=n("ZE1E"),u=n("tN2E"),c=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.nodes=[],n.edges=[],n.combos=[],n.comboEdges=[],n.comboPadding=10,n.comboTrees=[],n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(t&&0!==t.length){if(1===t.length)return t[0].x=e[0],t[0].y=e[1],void(this.onLayoutEnd&&this.onLayoutEnd());this.initVals(),this.run(),this.onLayoutEnd&&this.onLayoutEnd()}else this.onLayoutEnd&&this.onLayoutEnd()},e.prototype.run=function(){var t,e=this.nodes,n=this.edges,r=this.combos,i=this.comboEdges,s=this.center,c={};e.forEach(function(t){c[t.id]=t});var h={};r.forEach(function(t){h[t.id]=t});var d=this.getInnerGraphs(c),f=[],p=[],g={},v=!0;this.comboTrees.forEach(function(t){var e=d[t.id];if(e){var n=o(o({},t),{x:e.x||h[t.id].x,y:e.y||h[t.id].y,fx:e.fx||h[t.id].fx,fy:e.fy||h[t.id].fy,mass:e.mass||h[t.id].mass,size:e.size});p.push(n),isNaN(n.x)||0===n.x||isNaN(n.y)||0===n.y?(n.x=100*Math.random(),n.y=100*Math.random()):v=!1,f.push(t.id),(0,l.traverseTreeUp)(t,function(e){return e.id!==t.id&&(g[e.id]=t.id),!0})}}),e.forEach(function(t){if(!t.comboId||!h[t.comboId]){var e=o({},t);p.push(e),isNaN(e.x)||0===e.x||isNaN(e.y)||0===e.y?(e.x=100*Math.random(),e.y=100*Math.random()):v=!1,f.push(t.id)}});var m=[];if(n.concat(i).forEach(function(t){var e=g[t.source]||t.source,n=g[t.target]||t.target;e!==n&&f.includes(e)&&f.includes(n)&&m.push({source:e,target:n})}),null===p||void 0===p?void 0:p.length){if(1===p.length)p[0].x=s[0],p[0].y=s[1];else{var y={nodes:p,edges:m},b=this.outerLayout||new u.GForceLayout({gravity:1,factor:4,linkDistance:function(t,e,n){var r,i,o=(((null===(r=e.size)||void 0===r?void 0:r[0])||30)+((null===(i=n.size)||void 0===i?void 0:i[0])||30))/2;return Math.min(1.5*o,700)}}),_=null===(t=b.getType)||void 0===t?void 0:t.call(b);if(b.updateCfg({center:s,kg:5,preventOverlap:!0,animate:!1}),v&&a.FORCE_LAYOUT_TYPE_MAP[_])(p.length<100?new u.MDSLayout:new u.GridLayout).layout(y);b.layout(y)}p.forEach(function(t){var e=d[t.id];if(e)e.visited=!0,e.x=t.x,e.y=t.y,e.nodes.forEach(function(e){e.x+=t.x,e.y+=t.y});else{var n=c[t.id];n&&(n.x=t.x,n.y=t.y)}})}for(var x=Object.keys(d),w=function(t){var e=x[t],n=d[e];if(!n)return"continue";n.nodes.forEach(function(t){n.visited||(t.x+=n.x||0,t.y+=n.y||0),c[t.id]&&(c[t.id].x=t.x,c[t.id].y=t.y)}),h[e]&&(h[e].x=n.x,h[e].y=n.y)},S=x.length-1;S>=0;S--)w(S);return{nodes:e,edges:n,combos:r,comboEdges:i}},e.prototype.getInnerGraphs=function(t){var e=this.comboTrees,n=this.nodeSize,r=this.edges,i=this.comboPadding,a=this.spacing,s={},c=this.innerLayout||new u.ConcentricLayout({type:"concentric",sortBy:"id"});return c.center=[0,0],c.preventOverlap=!0,c.nodeSpacing=a,(e||[]).forEach(function(e){(0,l.traverseTreeUp)(e,function(e){var a,u=(null===i||void 0===i?void 0:i(e))||10;if((0,l.isArray)(u)&&(u=Math.max.apply(Math,u)),null===(a=e.children)||void 0===a?void 0:a.length){var h=e.children.map(function(e){if("combo"===e.itemType)return s[e.id];var n=t[e.id]||{};return o(o({},n),e)}),d=h.map(function(t){return t.id}),f={nodes:h,edges:r.filter(function(t){return d.includes(t.source)&&d.includes(t.target)})},p=1/0;h.forEach(function(t){var e;t.size||(t.size=(null===(e=s[t.id])||void 0===e?void 0:e.size)||(null===n||void 0===n?void 0:n(t))||[30,30]),(0,l.isNumber)(t.size)&&(t.size=[t.size,t.size]),p>t.size[0]&&(p=t.size[0]),p>t.size[1]&&(p=t.size[1])}),c.layout(f);var g=(0,l.getLayoutBBox)(h),v=g.minX,m=g.minY,y=g.maxX,b=g.maxY,_={x:(y+v)/2,y:(b+m)/2};f.nodes.forEach(function(t){t.x-=_.x,t.y-=_.y});var x=Math.max(y-v,p)+2*u,w=Math.max(b-m,p)+2*u;s[e.id]={id:e.id,nodes:h,size:[x,w]}}else if("combo"===e.itemType){var S=u?[2*u,2*u]:[30,30];s[e.id]={id:e.id,nodes:[],size:S}}return!0})}),s},e.prototype.initVals=function(){var t,e,n=this.nodeSize,r=this.spacing;if(e=(0,l.isNumber)(r)?function(){return r}:(0,l.isFunction)(r)?r:function(){return 0},this.spacing=e,n)if((0,l.isFunction)(n))t=function(t){var r=n(t),i=e(t);return(0,l.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+i)/2:((r||10)+i)/2};else if((0,l.isArray)(n)){var i=(n[0]>n[1]?n[0]:n[1])/2;t=function(t){return i+e(t)/2}}else{var o=n/2;t=function(t){return o+e(t)/2}}else t=function(t){var n=e(t);return t.size?(0,l.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+n)/2:(0,l.isObject)(t.size)?((t.size.width>t.size.height?t.size.width:t.size.height)+n)/2:(t.size+n)/2:10+n/2};this.nodeSize=t;var a,s=this.comboPadding;a=(0,l.isNumber)(s)?function(){return s}:(0,l.isArray)(s)?function(){return Math.max.apply(null,s)}:(0,l.isFunction)(s)?s:function(){return 0},this.comboPadding=a},e.prototype.getType=function(){return"comboCombined"},e}(s.Base);e.ComboCombinedLayout=c},ncSy:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("IgWN"),i=function(){function t(t){this.arr=t}return t.prototype.getArr=function(){return this.arr||[]},t.prototype.add=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null===r||void 0===r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]+r[o];return new t(i)}},t.prototype.subtract=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null===r||void 0===r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]-r[o];return new t(i)}},t.prototype.avg=function(e){var n=[];if(0!==e)for(var r in this.arr)n[r]=this.arr[r]/e;return new t(n)},t.prototype.negate=function(){var e=[];for(var n in this.arr)e[n]=-this.arr[n];return new t(e)},t.prototype.squareEuclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null===n||void 0===n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return r}},t.prototype.euclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null===n||void 0===n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return Math.sqrt(r)}console.error("The two vectors are unequal in length.")},t.prototype.normalize=function(){var e=[],n=(0,r.clone)(this.arr);n.sort(function(t,e){return t-e});var i=n[n.length-1],o=n[0];for(var a in this.arr)e[a]=(this.arr[a]-o)/(i-o);return new t(e)},t.prototype.norm2=function(){var t;if(!(null===(t=this.arr)||void 0===t?void 0:t.length))return 0;var e=0;for(var n in this.arr)e+=Math.pow(this.arr[n],2);return Math.sqrt(e)},t.prototype.dot=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null===n||void 0===n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=this.arr[i]*t.arr[i];return r}console.error("The two vectors are unequal in length.")},t.prototype.equal=function(t){var e,n=t.arr;if((null===(e=this.arr)||void 0===e?void 0:e.length)!==(null===n||void 0===n?void 0:n.length))return!1;for(var r in this.arr)if(this.arr[r]!==n[r])return!1;return!0},t}();e.default=i},nvbp:function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce(function(t,e){var i,o,a,s,l;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"==typeof i&&(l=i,t[a]=i={},i[l]=!0),"string"==typeof o&&(l=o,e[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t},{})}},o2t7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"Base",function(){return h}),n.d(r,"Circle",function(){return f}),n.d(r,"Dom",function(){return p}),n.d(r,"Ellipse",function(){return g}),n.d(r,"Image",function(){return v}),n.d(r,"Line",function(){return y}),n.d(r,"Marker",function(){return x}),n.d(r,"Path",function(){return w}),n.d(r,"Polygon",function(){return S}),n.d(r,"Polyline",function(){return C}),n.d(r,"Rect",function(){return k}),n.d(r,"Text",function(){return A});var i=n("TToO"),o=n("i6H2"),a=n("IpCj"),s=n("8ALn"),l=n("qNZ/"),u=n("85Et"),c=n("iaRc"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return c.a},e.prototype.onCanvasChange=function(t){Object(l.b)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,s=e.height,l=this.getHitLineWidth(),u=l/2,c=r-u,h=i-u;return{x:c,y:h,minX:c,minY:h,maxX:r+a+u,maxY:i+s+u,width:a+l,height:s+l}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(s.a)(this),Object(a.a)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,c=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&h.setAttribute(u.b.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&h.setAttribute(u.b.strokeOpacity,l),c&&h.setAttribute(u.b.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(u.b[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(u.b[e],"url(#"+i+")")}else r.setAttribute(u.b[e],n);else r.setAttribute(u.b[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,l=r.shadowColor;(i||o||s||l)&&Object(a.b)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(a.c)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape),d=n("IgWN"),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(d.each)(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):u.b[e]&&r.setAttribute(u.b[e],t)})},e}(h),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(d.each)(e||n,function(t,e){u.b[e]&&r.setAttribute(u.b[e],t)}),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(h),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(d.each)(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):u.b[e]&&r.setAttribute(u.b[e],t)})},e}(h),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(d.each)(e||r,function(t,e){"img"===e?n._setImage(r.img):u.b[e]&&i.setAttribute(u.b[e],t)})},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(d.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(d.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(h),m=n("6zlC"),y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(d.each)(e||n,function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Object(d.isObject)(e)?t.addArrow(n,u.b[i]):t.getDefaultArrow(n,u.b[i]);r.setAttribute(u.b[i],"url(#"+o+")")}else r.removeAttribute(u.b[i]);else u.b[i]&&r.setAttribute(u.b[i],e)})},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return m.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return m.c.pointAt(n,r,i,o,t)},e}(h),b={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},_={get:function(t){return b[t]},register:function(t,e){b[t]=e},remove:function(t){delete b[t]},getAll:function(){return b}},x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(d.isArray)(t)?t.map(function(t){return t.join(" ")}).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=Object(d.isFunction)(o)?o:_.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=_,e}(h),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(d.each)(e||r,function(e,o){if("path"===o&&Object(d.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(d.isObject)(e)?t.addArrow(r,u.b[o]):t.getDefaultArrow(r,u.b[o]);i.setAttribute(u.b[o],"url(#"+a+")")}else i.removeAttribute(u.b[o]);else u.b[o]&&i.setAttribute(u.b[o],e)})},e.prototype._formatPath=function(t){var e=t.map(function(t){return t.join(" ")}).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(h),S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(d.each)(e||n,function(t,e){"points"===e&&Object(d.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):u.b[e]&&r.setAttribute(u.b[e],t)})},e}(h),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(d.each)(e||n,function(t,e){"points"===e&&Object(d.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):u.b[e]&&r.setAttribute(u.b[e],t)})},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(d.isNil)(e)?(this.set("totalLength",m.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Object(d.each)(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),m.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Object(d.each)(t,function(a,s){t[s+1]&&((n=[])[0]=i/e,r=m.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))}),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(h);var k=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(d.each)(e||r,function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&u.b[e]&&i.setAttribute(u.b[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)})},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=function(t){var e=0,n=0,r=0,i=0;return Object(d.isArray)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return Object(d.isArray)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(h),O=n("f3pQ"),M={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},E={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},T={left:"left",start:"left",center:"middle",right:"end",end:"end"},A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),Object(d.each)(e||r,function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a.c)(n):u.b[e]&&i.setAttribute(u.b[e],t)}),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=Object(O.a)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",E[n]||"alphabetic"):t.setAttribute("alignment-baseline",M[n]||"baseline"),t.setAttribute("text-anchor",T[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,l="";Object(d.each)(a,function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+r+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+r+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+r+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+r+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):l+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"}),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(h);n.d(e,"Base",function(){return h}),n.d(e,"Circle",function(){return f}),n.d(e,"Dom",function(){return p}),n.d(e,"Ellipse",function(){return g}),n.d(e,"Image",function(){return v}),n.d(e,"Line",function(){return y}),n.d(e,"Marker",function(){return x}),n.d(e,"Path",function(){return w}),n.d(e,"Polygon",function(){return S}),n.d(e,"Polyline",function(){return C}),n.d(e,"Rect",function(){return k}),n.d(e,"Text",function(){return A})},oEtn:function(t,e,n){"use strict";var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.a=r},oJlt:function(t,e,n){"use strict";var r=n("cGG2"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},oNmr:function(t,e,n){n("9Bbf")("Set")},oQJ3:function(t,e,n){"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},oeOm:function(t,e,n){var r=n("7Doy");t.exports=function(t,e){return new(r(t))(e)}},on7W:function(t,e,n){"use strict";var r=n("NPXF"),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],n=0,a=t.length;n<a;n++){var s=t[n];r(s)?e=i.call(e,o.call(s)):e.push(s)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},orbS:function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=124)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},124:function(t,e,n){"use strict";n.r(e);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t("span",{class:["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:t("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},i=n(0),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/tag/src/tag.vue";var a=o.exports;a.install=function(t){t.component(a.name,a)};e.default=a}})},p1b6:function(t,e,n){"use strict";var r=n("cGG2");t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},p8xL:function(t,e,n){"use strict";var r=n("XgCd"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(e.push({obj:a,prop:u}),n.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,i,o){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return o(e)&&!o(n)&&(a=s(e,r)),o(e)&&o(n)?(n.forEach(function(n,o){if(i.call(e,o)){var a=e[o];a&&"object"==typeof a&&n&&"object"==typeof n?e[o]=t(a,n,r):e.push(n)}else e[o]=n}),e):Object.keys(n).reduce(function(e,o){var a=n[o];return i.call(e,o)?e[o]=t(e[o],a,r):e[o]=a,e},a)}}},pBtG:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},pFYg:function(t,e,n){"use strict";e.__esModule=!0;var r=a(n("Zzip")),i=a(n("5QVw")),o="function"==typeof i.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},pPW7:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("ttyz"),n("BDhv"),n("oNmr"),n("ioQ5"),t.exports=n("FeBl").Set},pf7h:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("lVvd");function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=o,e.leftScale=a,e.transform=function(t,e){for(var n,s,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var d=e[c];switch(d[0]){case"t":i(u,u,[d[1],d[2]]);break;case"s":a(u,u,[d[1],d[2]]);break;case"r":o(u,u,d[1]);break;case"m":n=u,s=u,l=d[1],r.mat3.multiply(n,l,s)}}return u},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),o=s(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},pgii:function(t,e,n){"use strict";var r=n("+N5+").isSpace;t.exports=function(t,e,n,i){var o,a,s,l,u=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(35!==(o=t.src.charCodeAt(u))||u>=c)return!1;for(a=1,o=t.src.charCodeAt(++u);35===o&&u<c&&a<=6;)a++,o=t.src.charCodeAt(++u);return!(a>6||u<c&&!r(o))&&(!!i||(c=t.skipSpacesBack(c,u),(s=t.skipCharsBack(c,35,u))>u&&r(t.src.charCodeAt(s-1))&&(c=s),t.line=e+1,(l=t.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[e,t.line],(l=t.push("inline","",0)).content=t.src.slice(u,c).trim(),l.map=[e,t.line],l.children=[],(l=t.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a),!0))}},ppUw:function(t,e,n){var r,i;r={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax"},i={install:function(t){t.prototype.$cookies=this,t.$cookies=this},config:function(t,e,n,i,o){r.expires=t||"1d",r.path=e?"; path="+e:"; path=/",r.domain=n?"; domain="+n:"",r.secure=i?"; Secure":"",r.sameSite=o?"; SameSite="+o:"; SameSite=Lax"},get:function(t){var e=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(e&&"{"===e.substring(0,1)&&"}"===e.substring(e.length-1,e.length))try{e=JSON.parse(e)}catch(t){return e}return e},set:function(t,e,n,i,o,a,s){if(!t)throw new Error("Cookie name is not find in first argument.");if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(t))throw new Error('Cookie key name illegality, Cannot be set to ["expires","max-age","path","domain","secure","SameSite"]\t current key name: '+t);e&&e.constructor===Object&&(e=JSON.stringify(e));var l="";if((n=void 0==n?r.expires:n)&&0!=n)switch(n.constructor){case Number:l=n===1/0||-1===n?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(n)){var u=n.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(n.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":l="; max-age="+2592e3*+u;break;case"d":l="; max-age="+86400*+u;break;case"h":l="; max-age="+3600*+u;break;case"min":l="; max-age="+60*+u;break;case"s":l="; max-age="+u;break;case"y":l="; max-age="+31104e3*+u;break;default:new Error('unknown exception of "set operation"')}}else l="; expires="+n;break;case Date:l="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+l+(o?"; domain="+o:r.domain)+(i?"; path="+i:r.path)+(void 0==a?r.secure:a?"; Secure":"")+(void 0==s?r.sameSite:s?"; SameSite="+s:""),this},remove:function(t,e,n){return!(!t||!this.isKey(t))&&(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:r.domain)+(e?"; path="+e:r.path)+"; SameSite=Lax",this)},isKey:function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=0;e<t.length;e++)t[e]=decodeURIComponent(t[e]);return t}},t.exports=i,"undefined"!=typeof window&&(window.$cookies=i)},pwgQ:function(t,e,n){var r=n("ZFR3");t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},pxG4:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"q+vg":function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t};var n=Object.prototype.hasOwnProperty},"q/Lo":function(t,e,n){"use strict";t.exports=function(t){var e;t.inlineMode?((e=new t.Token("inline","",0)).content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}},qARP:function(t,e,n){"use strict";var r=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},qCoq:function(t,e,n){"use strict";var r=n("9C8M"),i=n("LIJb");t.exports=n("qo66")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},"qNZ/":function(t,e,n){"use strict";e.a=function(t,e){e.forEach(function(e){e.draw(t)})},e.b=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],l=t.get("el");if("remove"===e){var u=t.get("isClipShape");if(u){var c=l&&l.parentNode,h=c&&c.parentNode;c&&h&&h.removeChild(c)}else l&&l.parentNode&&l.parentNode.removeChild(l)}else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.c)(l,s.indexOf(t));else if("sort"===e){var d=t.get("children");d&&d.length&&Object(i.d)(t,function(t,e){return d.indexOf(t)-d.indexOf(e)?1:0})}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?Object(r.c)(t):"clip"===e?Object(r.a)(t,o):"attr"===e||"add"===e&&t.draw(o)}};var r=n("IpCj"),i=n("8ALn")},qRfI:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},qZxm:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.disp=[],this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}return t.prototype.layout=function(){var t=this.positions,e=[],n=this.iterations,r=this.width/10;this.maxDisplace=r,this.disp=e;for(var i=0;i<n;i++)t.forEach(function(t,n){e[n]={x:0,y:0}}),this.getRepulsion(),this.updatePositions();return t},t.prototype.getRepulsion=function(){var t=this,e=t.positions,n=t.nodes,r=t.disp,i=t.k,o=t.radii||[];e.forEach(function(a,s){r[s]={x:0,y:0},e.forEach(function(e,l){if(s!==l&&o[s]===o[l]){var u=a[0]-e[0],c=a[1]-e[1],h=Math.sqrt(u*u+c*c);if(0===h){h=1;var d=s>l?1:-1;u=.01*d,c=.01*d}if(h<t.nodeSizeFunc(n[s])/2+t.nodeSizeFunc(n[l])/2){var f=i*i/h;r[s].x+=u/h*f,r[s].y+=c/h*f}}})})},t.prototype.updatePositions=function(){var t=this.positions,e=this.disp,n=this.speed,r=this.strictRadial,i=this.focusID,o=this.maxDisplace||this.width/10;r&&e.forEach(function(e,n){var r=t[n][0]-t[i][0],o=t[n][1]-t[i][1],a=Math.sqrt(r*r+o*o),s=o/a,l=-r/a,u=Math.sqrt(e.x*e.x+e.y*e.y),c=Math.acos((s*e.x+l*e.y)/u);c>Math.PI/2&&(c-=Math.PI/2,s*=-1,l*=-1);var h=Math.cos(c)*u;e.x=s*h,e.y=l*h});var a=this.radii;t.forEach(function(s,l){if(l!==i){var u=Math.sqrt(e[l].x*e[l].x+e[l].y*e[l].y);if(u>0&&l!==i){var c=Math.min(o*(n/800),u);if(s[0]+=e[l].x/u*c,s[1]+=e[l].y/u*c,r){var h=s[0]-t[i][0],d=s[1]-t[i][1],f=Math.sqrt(h*h+d*d);h=h/f*a[l],d=d/f*a[l],s[0]=t[i][0]+h,s[1]=t[i][1]+d}}}})},t}();e.default=r},qio6:function(t,e,n){var r=n("evD5"),i=n("77Pl"),o=n("lktj");t.exports=n("+E39")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,l=0;s>l;)r.f(t,n=a[l++],e[n]);return t}},qkKv:function(t,e,n){var r=n("FeBl"),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},qo66:function(t,e,n){"use strict";var r=n("7KvD"),i=n("kM2E"),o=n("06OY"),a=n("S82l"),s=n("hJx8"),l=n("xH/j"),u=n("NWt+"),c=n("2KxR"),h=n("EqjI"),d=n("e6n0"),f=n("evD5").f,p=n("ALrJ")(0),g=n("+E39");t.exports=function(t,e,n,v,m,y){var b=r[t],_=b,x=m?"set":"add",w=_&&_.prototype,S={};return g&&"function"==typeof _&&(y||w.forEach&&!a(function(){(new _).entries().next()}))?(_=e(function(e,n){c(e,_,t,"_c"),e._c=new b,void 0!=n&&u(n,m,e[x],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!y||"clear"!=t)&&s(_.prototype,t,function(n,r){if(c(this,_,t),!e&&y&&!h(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i})}),y||f(_.prototype,"size",{get:function(){return this._c.size}})):(_=v.getConstructor(e,t,m,x),l(_.prototype,n),o.NEED=!0),d(_,t),S[t]=_,i(i.G+i.W+i.F,S),y||v.setStrong(_,t,m),_}},qyJz:function(t,e,n){"use strict";var r=n("+ZMJ"),i=n("kM2E"),o=n("sB3e"),a=n("msXi"),s=n("Mhyx"),l=n("QRG4"),u=n("fBQ2"),c=n("3fs2");i(i.S+i.F*!n("dY0y")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=0,y=c(d);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(n=new f(e=l(d.length));e>m;m++)u(n,m,v?g(d[m],m):d[m]);else for(h=y.call(d),n=new f;!(i=h.next()).done;m++)u(n,m,v?a(h,g,[i.value,m],!0):i.value);return n.length=m,n}})},rRkU:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){n.d(e,"BRIDGE_GRAPH_NAME",function(){return s}),n.d(e,"GraphType",function(){return c}),n.d(e,"HierarchyNodeType",function(){return h}),n.d(e,"InclusionType",function(){return u}),n.d(e,"LAYOUT_CONFIG",function(){return r}),n.d(e,"NodeType",function(){return l}),n.d(e,"ROOT_NAME",function(){return a}),n.d(e,"buildGraph",function(){return oa}),n.d(e,"flatGraph",function(){return aa}),n.d(e,"getEdges",function(){return sa}),n.d(e,"mergeConfig",function(){return i});const r={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function i(t={},e=r){var n,i,o,a;const s=JSON.parse(JSON.stringify(e)),l=(null===(n=null==t?void 0:t.graph)||void 0===n?void 0:n.meta)||{},u=(null===(i=null==t?void 0:t.subScene)||void 0===i?void 0:i.meta)||{},c=(null===(o=null==t?void 0:t.nodeSize)||void 0===o?void 0:o.meta)||{},h=(null===(a=null==t?void 0:t.nodeSize)||void 0===a?void 0:a.node)||{},d=s.nodeSize.bridge;return{graph:{meta:Object.assign(s.graph.meta,l)},subScene:{meta:Object.assign(s.subScene.meta,u)},nodeSize:{meta:Object.assign(s.nodeSize.meta,c),node:Object.assign(s.nodeSize.node,h),bridge:d}}}function o(t){return`◬${t}◬`}const a=o("ROOT"),s=o("BRIDGE_GRAPH");var l,u,c,h;!function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"}(l||(l={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(u||(u={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(c||(c={})),function(t){t[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES"}(h||(h={}));var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function f(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(t,e){return t===e||t!=t&&e!=e},g=function(t,e){for(var n=t.length;n--;)if(p(t[n][0],e))return n;return-1},v=Array.prototype.splice;function m(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}m.prototype.clear=function(){this.__data__=[],this.size=0},m.prototype.delete=function(t){var e=this.__data__,n=g(e,t);return!(n<0||(n==e.length-1?e.pop():v.call(e,n,1),--this.size,0))},m.prototype.get=function(t){var e=this.__data__,n=g(e,t);return n<0?void 0:e[n][1]},m.prototype.has=function(t){return g(this.__data__,t)>-1},m.prototype.set=function(t,e){var n=this.__data__,r=g(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var y,b=m,_="object"==typeof d&&d&&d.Object===Object&&d,x="object"==typeof self&&self&&self.Object===Object&&self,w=_||x||Function("return this")(),S=w.Symbol,C=Object.prototype,k=C.hasOwnProperty,O=C.toString,M=S?S.toStringTag:void 0,E=Object.prototype.toString,T=S?S.toStringTag:void 0,A=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":T&&T in Object(t)?function(t){var e=k.call(t,M),n=t[M];try{t[M]=void 0;var r=!0}catch(t){}var i=O.call(t);return r&&(e?t[M]=n:delete t[M]),i}(t):function(t){return E.call(t)}(t)},I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},D=function(t){if(!I(t))return!1;var e=A(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},P=w["__core-js_shared__"],L=(y=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",j=Function.prototype.toString,N=function(t){if(null!=t){try{return j.call(t)}catch(t){}try{return t+""}catch(t){}}return""},R=/^\[object .+?Constructor\]$/,B=Function.prototype,F=Object.prototype,z=B.toString,V=F.hasOwnProperty,$=RegExp("^"+z.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=function(t){return!(!I(t)||function(t){return!!L&&L in t}(t))&&(D(t)?$:R).test(N(t))},H=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0},W=H(w,"Map"),U=H(Object,"create"),Y=Object.prototype.hasOwnProperty,X=Object.prototype.hasOwnProperty;function q(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}q.prototype.clear=function(){this.__data__=U?U(null):{},this.size=0},q.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},q.prototype.get=function(t){var e=this.__data__;if(U){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Y.call(e,t)?e[t]:void 0},q.prototype.has=function(t){var e=this.__data__;return U?void 0!==e[t]:X.call(e,t)},q.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=U&&void 0===e?"__lodash_hash_undefined__":e,this};var Z=q,K=function(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function J(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}J.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(W||b),string:new Z}},J.prototype.delete=function(t){var e=K(this,t).delete(t);return this.size-=e?1:0,e},J.prototype.get=function(t){return K(this,t).get(t)},J.prototype.has=function(t){return K(this,t).has(t)},J.prototype.set=function(t,e){var n=K(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Q=J;function tt(t){var e=this.__data__=new b(t);this.size=e.size}tt.prototype.clear=function(){this.__data__=new b,this.size=0},tt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},tt.prototype.get=function(t){return this.__data__.get(t)},tt.prototype.has=function(t){return this.__data__.has(t)},tt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof b){var r=n.__data__;if(!W||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Q(r)}return n.set(t,e),this.size=n.size,this};var et=tt,nt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},rt=function(){try{var t=H(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),it=function(t,e,n){"__proto__"==e&&rt?rt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},ot=Object.prototype.hasOwnProperty,at=function(t,e,n){var r=t[e];ot.call(t,e)&&p(r,n)&&(void 0!==n||e in t)||it(t,e,n)},st=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),i?it(n,s,l):at(n,s,l)}return n},lt=function(t){return null!=t&&"object"==typeof t},ut=function(t){return lt(t)&&"[object Arguments]"==A(t)},ct=Object.prototype,ht=ct.hasOwnProperty,dt=ct.propertyIsEnumerable,ft=ut(function(){return arguments}())?ut:function(t){return lt(t)&&ht.call(t,"callee")&&!dt.call(t,"callee")},pt=Array.isArray,gt=function(){return!1},vt=f(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?w.Buffer:void 0,o=(i?i.isBuffer:void 0)||gt;t.exports=o}),mt=/^(?:0|[1-9]\d*)$/,yt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&mt.test(t))&&t>-1&&t%1==0&&t<e},bt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},_t={};_t["[object Float32Array]"]=_t["[object Float64Array]"]=_t["[object Int8Array]"]=_t["[object Int16Array]"]=_t["[object Int32Array]"]=_t["[object Uint8Array]"]=_t["[object Uint8ClampedArray]"]=_t["[object Uint16Array]"]=_t["[object Uint32Array]"]=!0,_t["[object Arguments]"]=_t["[object Array]"]=_t["[object ArrayBuffer]"]=_t["[object Boolean]"]=_t["[object DataView]"]=_t["[object Date]"]=_t["[object Error]"]=_t["[object Function]"]=_t["[object Map]"]=_t["[object Number]"]=_t["[object Object]"]=_t["[object RegExp]"]=_t["[object Set]"]=_t["[object String]"]=_t["[object WeakMap]"]=!1;var xt=function(t){return function(e){return t(e)}},wt=f(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&_.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o}),St=wt&&wt.isTypedArray,Ct=St?xt(St):function(t){return lt(t)&&bt(t.length)&&!!_t[A(t)]},kt=Object.prototype.hasOwnProperty,Ot=function(t,e){var n=pt(t),r=!n&&ft(t),i=!n&&!r&&vt(t),o=!n&&!r&&!i&&Ct(t),a=n||r||i||o,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],l=s.length;for(var u in t)!e&&!kt.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yt(u,l))||s.push(u);return s},Mt=Object.prototype,Et=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mt)},Tt=function(t,e){return function(n){return t(e(n))}},At=Tt(Object.keys,Object),It=Object.prototype.hasOwnProperty,Dt=function(t){if(!Et(t))return At(t);var e=[];for(var n in Object(t))It.call(t,n)&&"constructor"!=n&&e.push(n);return e},Pt=function(t){return null!=t&&bt(t.length)&&!D(t)},Lt=function(t){return Pt(t)?Ot(t):Dt(t)},jt=Object.prototype.hasOwnProperty,Nt=function(t){if(!I(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Et(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n},Rt=function(t){return Pt(t)?Ot(t,!0):Nt(t)},Bt=f(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?w.Buffer:void 0,o=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=o?o(n):new t.constructor(n);return t.copy(r),r}}),Ft=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},zt=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o},Vt=function(){return[]},$t=Object.prototype.propertyIsEnumerable,Gt=Object.getOwnPropertySymbols,Ht=Gt?function(t){return null==t?[]:(t=Object(t),zt(Gt(t),function(e){return $t.call(t,e)}))}:Vt,Wt=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},Ut=Tt(Object.getPrototypeOf,Object),Yt=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Wt(e,Ht(t)),t=Ut(t);return e}:Vt,Xt=function(t,e,n){var r=e(t);return pt(t)?r:Wt(r,n(t))},qt=function(t){return Xt(t,Lt,Ht)},Zt=H(w,"DataView"),Kt=H(w,"Promise"),Jt=H(w,"Set"),Qt=H(w,"WeakMap"),te=N(Zt),ee=N(W),ne=N(Kt),re=N(Jt),ie=N(Qt),oe=A;(Zt&&"[object DataView]"!=oe(new Zt(new ArrayBuffer(1)))||W&&"[object Map]"!=oe(new W)||Kt&&"[object Promise]"!=oe(Kt.resolve())||Jt&&"[object Set]"!=oe(new Jt)||Qt&&"[object WeakMap]"!=oe(new Qt))&&(oe=function(t){var e=A(t),n="[object Object]"==e?t.constructor:void 0,r=n?N(n):"";if(r)switch(r){case te:return"[object DataView]";case ee:return"[object Map]";case ne:return"[object Promise]";case re:return"[object Set]";case ie:return"[object WeakMap]"}return e});var ae=oe,se=Object.prototype.hasOwnProperty,le=w.Uint8Array,ue=function(t){var e=new t.constructor(t.byteLength);return new le(e).set(new le(t)),e},ce=/\w*$/,he=S?S.prototype:void 0,de=he?he.valueOf:void 0,fe=function(t,e){var n=e?ue(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},pe=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return ue(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return function(t,e){var n=e?ue(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fe(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,ce.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Set]":return new r;case"[object Symbol]":return function(t){return de?Object(de.call(t)):{}}(t)}},ge=Object.create,ve=function(){function t(){}return function(e){if(!I(e))return{};if(ge)return ge(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),me=function(t){return"function"!=typeof t.constructor||Et(t)?{}:ve(Ut(t))},ye=wt&&wt.isMap,be=ye?xt(ye):function(t){return lt(t)&&"[object Map]"==ae(t)},_e=wt&&wt.isSet,xe=_e?xt(_e):function(t){return lt(t)&&"[object Set]"==ae(t)},we={};we["[object Arguments]"]=we["[object Array]"]=we["[object ArrayBuffer]"]=we["[object DataView]"]=we["[object Boolean]"]=we["[object Date]"]=we["[object Float32Array]"]=we["[object Float64Array]"]=we["[object Int8Array]"]=we["[object Int16Array]"]=we["[object Int32Array]"]=we["[object Map]"]=we["[object Number]"]=we["[object Object]"]=we["[object RegExp]"]=we["[object Set]"]=we["[object String]"]=we["[object Symbol]"]=we["[object Uint8Array]"]=we["[object Uint8ClampedArray]"]=we["[object Uint16Array]"]=we["[object Uint32Array]"]=!0,we["[object Error]"]=we["[object Function]"]=we["[object WeakMap]"]=!1;var Se=function t(e,n,r,i,o,a){var s,l=1&n,u=2&n,c=4&n;if(r&&(s=o?r(e,i,o,a):r(e)),void 0!==s)return s;if(!I(e))return e;var h=pt(e);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&se.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!l)return Ft(e,s)}else{var d=ae(e),f="[object Function]"==d||"[object GeneratorFunction]"==d;if(vt(e))return Bt(e,l);if("[object Object]"==d||"[object Arguments]"==d||f&&!o){if(s=u||f?{}:me(e),!l)return u?function(t,e){return st(t,Yt(t),e)}(e,function(t,e){return t&&st(e,Rt(e),t)}(s,e)):function(t,e){return st(t,Ht(t),e)}(e,function(t,e){return t&&st(e,Lt(e),t)}(s,e))}else{if(!we[d])return o?e:{};s=pe(e,d,l)}}a||(a=new et);var p=a.get(e);if(p)return p;a.set(e,s),xe(e)?e.forEach(function(i){s.add(t(i,n,r,i,e,a))}):be(e)&&e.forEach(function(i,o){s.set(o,t(i,n,r,o,e,a))});var g=h?void 0:(c?u?function(t){return Xt(t,Rt,Yt)}:qt:u?Rt:Lt)(e);return nt(g||e,function(i,o){g&&(i=e[o=i]),at(s,o,t(i,n,r,o,e,a))}),s},Ce=function(t){return function(){return t}},ke=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var s=o[++r];if(!1===e(i[s],s,i))break}return t},Oe=function(t,e){return t&&ke(t,e,Lt)},Me=function(t,e){return function(e,n){if(null==e)return e;if(!Pt(e))return t(e,n);for(var r=e.length,i=-1,o=Object(e);++i<r&&!1!==n(o[i],i,o););return e}}(Oe),Ee=function(t){return t},Te=function(t){return"function"==typeof t?t:Ee},Ae=function(t,e){return(pt(t)?nt:Me)(t,Te(e))},Ie=Ae;function De(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Q;++e<n;)this.add(t[e])}De.prototype.add=De.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},De.prototype.has=function(t){return this.__data__.has(t)};var Pe=De,Le=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},je=function(t,e){return t.has(e)},Ne=function(t,e,n,r,i,o){var a=1&n,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=2&n?new Pe:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var p=t[h],g=e[h];if(r)var v=a?r(g,p,h,e,t,o):r(p,g,h,t,e,o);if(void 0!==v){if(v)continue;d=!1;break}if(f){if(!Le(e,function(t,e){if(!je(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)})){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d},Re=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n},Be=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},Fe=S?S.prototype:void 0,ze=Fe?Fe.valueOf:void 0,Ve=function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new le(t),new le(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return p(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Re;case"[object Set]":var l=1&r;if(s||(s=Be),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var c=Ne(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(ze)return ze.call(t)==ze.call(e)}return!1},$e=Object.prototype.hasOwnProperty,Ge=Object.prototype.hasOwnProperty,He=function(t,e,n,r,i,o){var a=pt(t),s=pt(e),l=a?"[object Array]":ae(t),u=s?"[object Array]":ae(e),c="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),h="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),d=l==u;if(d&&vt(t)){if(!vt(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new et),a||Ct(t)?Ne(t,e,n,r,i,o):Ve(t,e,l,n,r,i,o);if(!(1&n)){var f=c&&Ge.call(t,"__wrapped__"),p=h&&Ge.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,v=p?e.value():e;return o||(o=new et),i(g,v,n,r,o)}}return!!d&&(o||(o=new et),function(t,e,n,r,i,o){var a=1&n,s=qt(t),l=s.length;if(l!=qt(e).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in e:$e.call(e,c)))return!1}var h=o.get(t),d=o.get(e);if(h&&d)return h==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=a;++u<l;){var g=t[c=s[u]],v=e[c];if(r)var m=a?r(v,g,c,e,t,o):r(g,v,c,t,e,o);if(!(void 0===m?g===v||i(g,v,n,r,o):m)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,r,i,o))},We=function t(e,n,r,i,o){return e===n||(null==e||null==n||!lt(e)&&!lt(n)?e!=e&&n!=n:He(e,n,r,i,t,o))},Ue=function(t){return t==t&&!I(t)},Ye=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},Xe=function(t){var e=function(t){for(var e=Lt(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ue(i)]}return e}(t);return 1==e.length&&e[0][2]?Ye(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var l=(s=n[i])[0],u=t[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in t))return!1}else{var h=new et;if(r)var d=r(u,c,l,t,e,h);if(!(void 0===d?We(c,u,3,r,h):d))return!1}}return!0}(n,t,e)}},qe=function(t){return"symbol"==typeof t||lt(t)&&"[object Symbol]"==A(t)},Ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ke=/^\w*$/,Je=function(t,e){if(pt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!qe(t))||Ke.test(t)||!Ze.test(t)||null!=e&&t in Object(e)};function Qe(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Qe.Cache||Q),n}Qe.Cache=Q;var tn,en=Qe,nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rn=/\\(\\)?/g,on=function(t){var e=en(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nn,function(t,n,r,i){e.push(r?i.replace(rn,"$1"):n||t)}),e},function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(),an=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},sn=S?S.prototype:void 0,ln=sn?sn.toString:void 0,un=function(t){return null==t?"":function t(e){if("string"==typeof e)return e;if(pt(e))return an(e,t)+"";if(qe(e))return ln?ln.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}(t)},cn=function(t,e){return pt(t)?t:Je(t,e)?[t]:on(un(t))},hn=function(t){if("string"==typeof t||qe(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},dn=function(t,e){for(var n=0,r=(e=cn(e,t)).length;null!=t&&n<r;)t=t[hn(e[n++])];return n&&n==r?t:void 0},fn=function(t,e){return null!=t&&e in Object(t)},pn=function(t,e,n){for(var r=-1,i=(e=cn(e,t)).length,o=!1;++r<i;){var a=hn(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&bt(i)&&yt(a,i)&&(pt(t)||ft(t))},gn=function(t,e){return null!=t&&pn(t,e,fn)},vn=function(t,e){return Je(t)&&Ue(e)?Ye(hn(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:dn(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?gn(n,t):We(e,r,3)}},mn=function(t){return function(e){return null==e?void 0:e[t]}},yn=function(t){return Je(t)?mn(hn(t)):function(t){return function(e){return dn(e,t)}}(t)},bn=function(t){return"function"==typeof t?t:null==t?Ee:"object"==typeof t?pt(t)?vn(t[0],t[1]):Xe(t):yn(t)},_n=function(t,e){return(pt(t)?zt:function(t,e){var n=[];return Me(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n})(t,bn(e))},xn=Object.prototype.hasOwnProperty,wn=function(t,e){return null!=t&&xn.call(t,e)},Sn=function(t,e){return null!=t&&pn(t,e,wn)},Cn=Object.prototype.hasOwnProperty,kn=function(t){return void 0===t},On=function(t,e){var n=-1,r=Pt(t)?Array(t.length):[];return Me(t,function(t,i,o){r[++n]=e(t,i,o)}),r},Mn=function(t,e){return(pt(t)?an:On)(t,bn(e))},En=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n},Tn=function(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n},An=function(t,e,n){var r=pt(t)?En:Tn,i=arguments.length<3;return r(t,bn(e),n,i,Me)},In=mn("length"),Dn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Pn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ln="\\ud83c[\\udffb-\\udfff]",jn="[^\\ud800-\\udfff]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",Rn="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="(?:"+Pn+"|"+Ln+")?",Fn="[\\ufe0e\\ufe0f]?"+Bn+"(?:\\u200d(?:"+[jn,Nn,Rn].join("|")+")[\\ufe0e\\ufe0f]?"+Bn+")*",zn="(?:"+[jn+Pn+"?",Pn,Nn,Rn,"[\\ud800-\\udfff]"].join("|")+")",Vn=RegExp(Ln+"(?="+Ln+")|"+zn+Fn,"g"),$n=function(t){return function(t){return Dn.test(t)}(t)?function(t){for(var e=Vn.lastIndex=0;Vn.test(t);)++e;return e}(t):In(t)},Gn=S?S.isConcatSpreadable:void 0,Hn=function(t){return pt(t)||ft(t)||!!(Gn&&t&&t[Gn])},Wn=function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=Hn),o||(o=[]);++a<s;){var l=e[a];n>0&&r(l)?n>1?t(l,n-1,r,i,o):Wt(o,l):i||(o[o.length]=l)}return o},Un=Math.max,Yn=function(t,e,n){return e=Un(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Un(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}},Xn=rt?function(t,e){return rt(t,"toString",{configurable:!0,enumerable:!1,value:Ce(e),writable:!0})}:Ee,qn=Date.now,Zn=function(t){var e=0,n=0;return function(){var r=qn(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Xn),Kn=function(t,e){return Zn(Yn(t,e,Ee),t+"")},Jn=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1},Qn=function(t){return t!=t},tr=function(t,e){return!(null==t||!t.length)&&function(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Jn(t,Qn,n)}(t,e,0)>-1},er=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1},nr=Jt&&1/Be(new Jt([,-0]))[1]==1/0?function(t){return new Jt(t)}:function(){},rr=function(t){return lt(t)&&Pt(t)},ir=Kn(function(t){return function(t,e,n){var r=-1,i=tr,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=er;else if(o>=200){var u=e?null:nr(t);if(u)return Be(u);a=!1,i=je,l=new Pe}else l=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}(Wn(t,1,rr,!0))}),or=function(t){return null==t?[]:function(t,e){return an(e,function(e){return t[e]})}(t,Lt(t))};try{tn={clone:function(t){return Se(t,4)},constant:Ce,each:Ie,filter:_n,has:Sn,isArray:pt,isEmpty:function(t){if(null==t)return!0;if(Pt(t)&&(pt(t)||"string"==typeof t||"function"==typeof t.splice||vt(t)||Ct(t)||ft(t)))return!t.length;var e=ae(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Et(t))return!Dt(t).length;for(var n in t)if(Cn.call(t,n))return!1;return!0},isFunction:D,isUndefined:kn,keys:Lt,map:Mn,reduce:An,size:function(t){if(null==t)return 0;if(Pt(t))return function(t){return"string"==typeof t||!pt(t)&<(t)&&"[object String]"==A(t)}(t)?$n(t):t.length;var e=ae(t);return"[object Map]"==e||"[object Set]"==e?t.size:Dt(t).length},transform:function(t,e,n){var r=pt(t),i=r||vt(t)||Ct(t);if(e=bn(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:I(t)&&D(o)?ve(Ut(t)):{}}return(i?nt:Oe)(t,function(t,r,i){return e(n,t,r,i)}),n},union:ir,values:or}}catch(r){}tn||(tn=window._);var ar=tn,sr=lr;function lr(t){this._isDirected=!ar.has(t,"directed")||t.directed,this._isMultigraph=!!ar.has(t,"multigraph")&&t.multigraph,this._isCompound=!!ar.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=ar.constant(void 0),this._defaultEdgeLabelFn=ar.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function ur(t,e){t[e]?t[e]++:t[e]=1}function cr(t,e){--t[e]||delete t[e]}function hr(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}return i+""+o+""+(ar.isUndefined(r)?"\0":r)}function dr(t,e){return hr(t,e.v,e.w,e.name)}lr.prototype._nodeCount=0,lr.prototype._edgeCount=0,lr.prototype.isDirected=function(){return this._isDirected},lr.prototype.isMultigraph=function(){return this._isMultigraph},lr.prototype.isCompound=function(){return this._isCompound},lr.prototype.setGraph=function(t){return this._label=t,this},lr.prototype.graph=function(){return this._label},lr.prototype.setDefaultNodeLabel=function(t){return ar.isFunction(t)||(t=ar.constant(t)),this._defaultNodeLabelFn=t,this},lr.prototype.nodeCount=function(){return this._nodeCount},lr.prototype.nodes=function(){return ar.keys(this._nodes)},lr.prototype.sources=function(){var t=this;return ar.filter(this.nodes(),function(e){return ar.isEmpty(t._in[e])})},lr.prototype.sinks=function(){var t=this;return ar.filter(this.nodes(),function(e){return ar.isEmpty(t._out[e])})},lr.prototype.setNodes=function(t,e){var n=arguments,r=this;return ar.each(t,function(t){n.length>1?r.setNode(t,e):r.setNode(t)}),this},lr.prototype.setNode=function(t,e){return ar.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},lr.prototype.node=function(t){return this._nodes[t]},lr.prototype.hasNode=function(t){return ar.has(this._nodes,t)},lr.prototype.removeNode=function(t){var e=this;if(ar.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],ar.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),ar.each(ar.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],ar.each(ar.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},lr.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ar.isUndefined(e))e="\0";else{for(var n=e+="";!ar.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},lr.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},lr.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},lr.prototype.children=function(t){if(ar.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return ar.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},lr.prototype.predecessors=function(t){var e=this._preds[t];if(e)return ar.keys(e)},lr.prototype.successors=function(t){var e=this._sucs[t];if(e)return ar.keys(e)},lr.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return ar.union(e,this.successors(t))},lr.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},lr.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;ar.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),ar.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var r={};return this._isCompound&&ar.each(e.nodes(),function(t){e.setParent(t,function t(i){var o=n.parent(i);return void 0===o||e.hasNode(o)?(r[i]=o,o):o in r?r[o]:t(o)}(t))}),e},lr.prototype.setDefaultEdgeLabel=function(t){return ar.isFunction(t)||(t=ar.constant(t)),this._defaultEdgeLabelFn=t,this},lr.prototype.edgeCount=function(){return this._edgeCount},lr.prototype.edges=function(){return ar.values(this._edgeObjs)},lr.prototype.setPath=function(t,e){var n=this,r=arguments;return ar.reduce(t,function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i}),this},lr.prototype.setEdge=function(){var t,e,n,r,i=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(r=arguments[1],i=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,ar.isUndefined(n)||(n=""+n);var a=hr(this._isDirected,t,e,n);if(ar.has(this._edgeLabels,a))return i&&(this._edgeLabels[a]=r),this;if(!ar.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[a]=i?r:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[a]=s,ur(this._preds[e],t),ur(this._sucs[t],e),this._in[e][a]=s,this._out[t][a]=s,this._edgeCount++,this},lr.prototype.edge=function(t,e,n){var r=1===arguments.length?dr(this._isDirected,arguments[0]):hr(this._isDirected,t,e,n);return this._edgeLabels[r]},lr.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?dr(this._isDirected,arguments[0]):hr(this._isDirected,t,e,n);return ar.has(this._edgeLabels,r)},lr.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?dr(this._isDirected,arguments[0]):hr(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],cr(this._preds[e],t),cr(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},lr.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=ar.values(n);return e?ar.filter(r,function(t){return t.v===e}):r}},lr.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=ar.values(n);return e?ar.filter(r,function(t){return t.w===e}):r}},lr.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))};var fr={Graph:sr,version:"2.1.8"},pr={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return ar.map(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return ar.isUndefined(n)||(i.value=n),ar.isUndefined(r)||(i.parent=r),i})}(t),edges:function(t){return ar.map(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return ar.isUndefined(e.name)||(r.name=e.name),ar.isUndefined(n)||(r.value=n),r})}(t)};return ar.isUndefined(t.graph())||(e.value=ar.clone(t.graph())),e},read:function(t){var e=new sr(t.options).setGraph(t.value);return ar.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),ar.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}};var gr=vr;function vr(){this._arr=[],this._keyIndices={}}vr.prototype.size=function(){return this._arr.length},vr.prototype.keys=function(){return this._arr.map(function(t){return t.key})},vr.prototype.has=function(t){return ar.has(this._keyIndices,t)},vr.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},vr.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},vr.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!ar.has(n,t)){var r=this._arr,i=r.length;return n[t]=i,r.push({key:t,priority:e}),this._decrease(i),!0}return!1},vr.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},vr.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},vr.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},vr.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},vr.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e};var mr=function(t,e,n,r){return function(t,e,n,r){var i,o,a={},s=new gr,l=function(t){var e=t.v!==i?t.v:t.w,r=a[e],l=n(t),u=o.distance+l;if(l<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+l);u<r.distance&&(r.distance=u,r.predecessor=i,s.decrease(e,u))};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;a[t]={distance:n},s.add(t,n)});s.size()>0&&(i=s.removeMin(),(o=a[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);return a}(t,String(e),n||yr,r||function(e){return t.outEdges(e)})},yr=ar.constant(1),br=function(t){var e=0,n=[],r={},i=[];function o(a){var s=r[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach(function(t){ar.has(r,t)?r[t].onStack&&(s.lowlink=Math.min(s.lowlink,r[t].index)):(o(t),s.lowlink=Math.min(s.lowlink,r[t].lowlink))}),s.lowlink===s.index){var l,u=[];do{l=n.pop(),r[l].onStack=!1,u.push(l)}while(a!==l);i.push(u)}}return t.nodes().forEach(function(t){ar.has(r,t)||o(t)}),i},_r=ar.constant(1),xr=wr;function wr(t){var e={},n={},r=[];if(ar.each(t.sinks(),function i(o){if(ar.has(n,o))throw new Sr;ar.has(e,o)||(n[o]=!0,e[o]=!0,ar.each(t.predecessors(o),i),delete n[o],r.push(o))}),ar.size(e)!==t.nodeCount())throw new Sr;return r}function Sr(){}wr.CycleException=Sr,Sr.prototype=new Error;var Cr=function(t,e,n){ar.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],o={};return ar.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,r,i,o,a){ar.has(i,n)||(i[n]=!0,r||a.push(n),ar.each(o(n),function(n){t(e,n,r,i,o,a)}),r&&a.push(n))}(t,e,"post"===n,o,r,i)}),i};var kr,Or={Graph:fr.Graph,json:pr,alg:{components:function(t){var e,n={},r=[];function i(r){ar.has(n,r)||(n[r]=!0,e.push(r),ar.each(t.successors(r),i),ar.each(t.predecessors(r),i))}return ar.each(t.nodes(),function(t){e=[],i(t),e.length&&r.push(e)}),r},dijkstra:mr,dijkstraAll:function(t,e,n){return ar.transform(t.nodes(),function(r,i){r[i]=mr(t,i,e,n)},{})},findCycles:function(t){return ar.filter(br(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})},floydWarshall:function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)})})}),r}(t,e||_r,n||function(e){return t.outEdges(e)})},isAcyclic:function(t){try{xr(t)}catch(t){if(t instanceof xr.CycleException)return!1;throw t}return!0},postorder:function(t,e){return Cr(t,e,"post")},preorder:function(t,e){return Cr(t,e,"pre")},prim:function(t,e){var n,r=new sr,i={},o=new gr;function a(t){var r=t.v===n?t.w:t.v,a=o.priority(r);if(void 0!==a){var s=e(t);s<a&&(i[r]=n,o.decrease(r,s))}}if(0===t.nodeCount())return r;ar.each(t.nodes(),function(t){o.add(t,Number.POSITIVE_INFINITY),r.setNode(t)}),o.decrease(t.nodes()[0],0);for(var s=!1;o.size()>0;){if(n=o.removeMin(),ar.has(i,n))r.setEdge(n,i[n]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(n).forEach(a)}return r},tarjan:br,topsort:xr},version:fr.version};try{kr=Or}catch(r){}kr||(kr=window.graphlib);var Mr,Er=kr,Tr=function(t,e,n){if(!I(n))return!1;var r=typeof e;return!!("number"==r?Pt(n)&&yt(e,n.length):"string"==r&&e in n)&&p(n[e],t)},Ar=Object.prototype,Ir=Ar.hasOwnProperty,Dr=Kn(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Tr(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=Rt(o),s=-1,l=a.length;++s<l;){var u=a[s],c=t[u];(void 0===c||p(c,Ar[u])&&!Ir.call(t,u))&&(t[u]=o[u])}return t}),Pr=/^\s+|\s+$/g,Lr=/^[-+]0x[0-9a-f]+$/i,jr=/^0b[01]+$/i,Nr=/^0o[0-7]+$/i,Rr=parseInt,Br=function(t){return t?1/0===(t=function(t){if("number"==typeof t)return t;if(qe(t))return NaN;if(I(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=I(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Pr,"");var n=jr.test(t);return n||Nr.test(t)?Rr(t.slice(2),n?2:8):Lr.test(t)?NaN:+t}(t))||-1/0===t?1.7976931348623157e308*(t<0?-1:1):t==t?t:0:0===t?t:0},Fr=Math.max,zr=function(t){return function(e,n,r){var i=Object(e);if(!Pt(e)){var o=bn(n);e=Lt(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}(function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:function(t){var e=Br(t),n=e%1;return e==e?n?e-n:e:0}(n);return i<0&&(i=Fr(r+i,0)),Jn(t,bn(e),i)}),Vr=function(t){return null!=t&&t.length?Wn(t,1):[]},$r=function(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!qe(a):n(a,s)))var s=a,l=o}return l},Gr=function(t,e){return t>e},Hr=function(t,e,n){(void 0!==n&&!p(t[e],n)||void 0===n&&!(e in t))&&it(t,e,n)},Wr=Function.prototype,Ur=Object.prototype,Yr=Wr.toString,Xr=Ur.hasOwnProperty,qr=Yr.call(Object),Zr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Kr=function(t,e,n,r,i,o,a){var s=Zr(t,n),l=Zr(e,n),u=a.get(l);if(u)Hr(t,n,u);else{var c=o?o(s,l,n+"",t,e,a):void 0,h=void 0===c;if(h){var d=pt(l),f=!d&&vt(l),p=!d&&!f&&Ct(l);c=l,d||f||p?pt(s)?c=s:rr(s)?c=Ft(s):f?(h=!1,c=Bt(l,!0)):p?(h=!1,c=fe(l,!0)):c=[]:function(t){if(!lt(t)||"[object Object]"!=A(t))return!1;var e=Ut(t);if(null===e)return!0;var n=Xr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Yr.call(n)==qr}(l)||ft(l)?(c=s,ft(s)?c=function(t){return st(t,Rt(t))}(s):I(s)&&!D(s)||(c=me(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Hr(t,n,c)}},Jr=function(t){return Kn(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Tr(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r)}return e})}(function(t,e,n){!function t(e,n,r,i,o){e!==n&&ke(n,function(a,s){if(o||(o=new et),I(a))Kr(e,n,s,r,t,i,o);else{var l=i?i(Zr(e,s),a,s+"",e,n,o):void 0;void 0===l&&(l=a),Hr(e,s,l)}},Rt)}(t,e,n)}),Qr=function(t,e){return t<e},ti=function(t,e,n,r){if(!I(t))return t;for(var i=-1,o=(e=cn(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var l=hn(e[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=I(c)?c:yt(e[i+1])?[]:{})}at(s,l,u),s=s[l]}return t},ei=function(t,e){return function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=dn(t,a);n(s,a)&&ti(o,cn(a,t),s)}return o}(t,e,function(e,n){return gn(t,n)})},ni=function(t){return Zn(Yn(t,void 0,Vr),t+"")}(function(t,e){return null==t?{}:ei(t,e)}),ri=Math.ceil,ii=Math.max,oi=function(t,e,n){return n&&"number"!=typeof n&&Tr(t,e,n)&&(e=n=void 0),t=Br(t),void 0===e?(e=t,t=0):e=Br(e),function(t,e,n,r){for(var i=-1,o=ii(ri((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}(t,e,n=void 0===n?t<e?1:-1:Br(n),void 0)},ai=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=qe(t),a=void 0!==e,s=null===e,l=e==e,u=qe(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0},si=function(t,e,n){e=e.length?an(e,function(t){return pt(t)?function(e){return dn(e,1===t.length?t[0]:t)}:t}):[Ee];var r=-1;return e=an(e,xt(bn)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(On(t,function(t,n,i){return{criteria:an(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var l=ai(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})},li=Kn(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Tr(t,e[0],e[1])?e=[]:n>2&&Tr(e[0],e[1],e[2])&&(e=[e[0]]),si(t,Wn(e,1),[])}),ui=0;try{Mr={cloneDeep:function(t){return Se(t,5)},constant:Ce,defaults:Dr,each:Ie,filter:_n,find:zr,flatten:Vr,forEach:Ae,forIn:function(t,e){return null==t?t:ke(t,Te(e),Rt)},has:Sn,isUndefined:kn,last:function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},map:Mn,mapValues:function(t,e){var n={};return e=bn(e),Oe(t,function(t,r,i){it(n,r,e(t,r,i))}),n},max:function(t){return t&&t.length?$r(t,Ee,Gr):void 0},merge:Jr,min:function(t){return t&&t.length?$r(t,Ee,Qr):void 0},minBy:function(t,e){return t&&t.length?$r(t,bn(e),Qr):void 0},now:function(){return w.Date.now()},pick:ni,range:oi,reduce:An,sortBy:li,uniqueId:function(t){var e=++ui;return un(t)+e},values:or,zipObject:function(t,e){return function(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}(t||[],e||[],at)}}}catch(r){}Mr||(Mr=window._);var ci=Mr,hi=di;function di(){var t={};t._next=t._prev=t,this._sentinel=t}function fi(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function pi(t,e){if("_next"!==t&&"_prev"!==t)return e}di.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return fi(e),e},di.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&fi(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},di.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,pi)),n=n._prev;return"["+t.join(", ")+"]"};var gi=Er.Graph,vi=ci.constant(1);function mi(t,e,n,r,i){var o=i?[]:void 0;return ci.forEach(t.inEdges(r.v),function(r){var a=t.edge(r),s=t.node(r.v);i&&o.push({v:r.v,w:r.w}),s.out-=a,yi(e,n,s)}),ci.forEach(t.outEdges(r.v),function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,yi(e,n,a)}),t.removeNode(r.v),o}function yi(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}var bi=function(t){var e="greedy"===t.graph().acyclicer?function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new gi,r=0,i=0;ci.forEach(t.nodes(),function(t){n.setNode(t,{v:t,in:0,out:0})}),ci.forEach(t.edges(),function(t){var o=n.edge(t.v,t.w)||0,a=e(t),s=o+a;n.setEdge(t.v,t.w,s),i=Math.max(i,n.node(t.v).out+=a),r=Math.max(r,n.node(t.w).in+=a)});var o=ci.range(i+r+3).map(function(){return new hi}),a=r+1;return ci.forEach(n.nodes(),function(t){yi(o,a,n.node(t))}),{graph:n,buckets:o,zeroIdx:a}}(t,e||vi),r=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)mi(t,e,n,r);for(;r=o.dequeue();)mi(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(mi(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return ci.flatten(ci.map(r,function(e){return t.outEdges(e.v,e.w)}),!0)}(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},r={};return ci.forEach(t.nodes(),function i(o){ci.has(r,o)||(r[o]=!0,n[o]=!0,ci.forEach(t.outEdges(o),function(t){ci.has(n,t.w)?e.push(t):i(t.w)}),delete n[o])}),e}(t);ci.forEach(e,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,ci.uniqueId("rev"))})},_i=function(t){ci.forEach(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})},xi=Er.Graph,wi={addDummyNode:Si,simplify:function(t){var e=(new xi).setGraph(t.graph());return ci.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),ci.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new xi({multigraph:t.isMultigraph()}).setGraph(t.graph());return ci.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),ci.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=ci.map(t.nodes(),function(e){var n={};return ci.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return ci.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=ci.map(t.nodes(),function(e){var n={};return ci.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return ci.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,l=t.width/2,u=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=ci.map(ci.range(Ci(t)+1),function(){return[]});return ci.forEach(t.nodes(),function(n){var r=t.node(n),i=r.rank;ci.isUndefined(i)||(e[i][r.order]=n)}),e},normalizeRanks:function(t){var e=ci.min(ci.map(t.nodes(),function(e){return t.node(e).rank}));ci.forEach(t.nodes(),function(n){var r=t.node(n);ci.has(r,"rank")&&(r.rank-=e)})},removeEmptyRanks:function(t){var e=ci.min(ci.map(t.nodes(),function(e){return t.node(e).rank})),n=[];ci.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=t.graph().nodeRankFactor;ci.forEach(n,function(e,n){ci.isUndefined(e)&&n%i!=0?--r:r&&ci.forEach(e,function(e){t.node(e).rank+=r})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),Si(t,"border",i,e)},maxRank:Ci,partition:function(t,e){var n={lhs:[],rhs:[]};return ci.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=ci.now();try{return e()}finally{console.log(t+" time: "+(ci.now()-n)+"ms")}},notime:function(t,e){return e()}};function Si(t,e,n,r){var i;do{i=ci.uniqueId(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function Ci(t){return ci.max(ci.map(t.nodes(),function(e){var n=t.node(e).rank;if(!ci.isUndefined(n))return n}))}var ki=function(t){t.graph().dummyChains=[],ci.forEach(t.edges(),function(e){!function(t,e){var n,r,i,o=e.v,a=t.node(o).rank,s=e.w,l=t.node(s).rank,u=e.name,c=t.edge(e),h=c.labelRank;if(l!==a+1){for(t.removeEdge(e),i=0,++a;a<l;++i,++a)c.points=[],r={width:0,height:0,edgeLabel:c,edgeObj:e,rank:a},n=wi.addDummyNode(t,"edge",r,"_d"),a===h&&(r.width=c.width,r.height=c.height,r.dummy="edge-label",r.labelpos=c.labelpos),t.setEdge(o,n,{weight:c.weight},u),0===i&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,s,{weight:c.weight},u)}}(t,e)})},Oi=function(t){ci.forEach(t.graph().dummyChains,function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)})},Mi=function(t){var e={};ci.forEach(t.sources(),function n(r){var i=t.node(r);if(ci.has(e,r))return i.rank;e[r]=!0;var o=ci.min(ci.map(t.outEdges(r),function(e){return n(e.w)-t.edge(e).minlen}));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),i.rank=o})},Ei=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen},Ti=Er.Graph,Ai=Ei,Ii=function(t){var e,n=new Ti({directed:!1}),r=t.nodes()[0],i=t.nodeCount();for(n.setNode(r,{});Di(n,t)<i;)e=Pi(n,t),Li(n,t,n.hasNode(e.v)?Ai(t,e):-Ai(t,e));return n};function Di(t,e){return ci.forEach(t.nodes(),function n(r){ci.forEach(e.nodeEdges(r),function(i){var o=i.v,a=r===o?i.w:o;t.hasNode(a)||Ai(e,i)||(t.setNode(a,{}),t.setEdge(r,a,{}),n(a))})}),t.nodeCount()}function Pi(t,e){return ci.minBy(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return Ai(e,n)})}function Li(t,e,n){ci.forEach(t.nodes(),function(t){e.node(t).rank+=n})}var ji=Ei,Ni=Mi,Ri=Er.alg.preorder,Bi=Er.alg.postorder,Fi=wi.simplify,zi=Vi;function Vi(t){t=Fi(t),Ni(t);var e,n=Ii(t);for(Hi(n),$i(n,t);e=Wi(n);)Yi(n,t,e,Ui(n,t,e))}function $i(t,e){var n=Bi(t,t.nodes());n=n.slice(0,n.length-1),ci.forEach(n,function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=Gi(t,e,n)}(t,e,n)})}function Gi(t,e,n){var r=t.node(n).parent,i=!0,o=e.edge(n,r),a=0;return o||(i=!1,o=e.edge(r,n)),a=o.weight,ci.forEach(e.nodeEdges(n),function(o){var s,l,u=o.v===n,c=u?o.w:o.v;if(c!==r){var h=u===i,d=e.edge(o).weight;if(a+=h?d:-d,s=n,l=c,t.hasEdge(s,l)){var f=t.edge(n,c).cutvalue;a+=h?-f:f}}}),a}function Hi(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,r,i,o){var a=r,s=e.node(i);return n[i]=!0,ci.forEach(e.neighbors(i),function(o){ci.has(n,o)||(r=t(e,n,r,o,i))}),s.low=a,s.lim=r++,o?s.parent=o:delete s.parent,r}(t,{},1,e)}function Wi(t){return ci.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function Ui(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var o=t.node(r),a=t.node(i),s=o,l=!1;o.lim>a.lim&&(s=a,l=!0);var u=ci.filter(e.edges(),function(e){return l===Xi(t,t.node(e.v),s)&&l!==Xi(t,t.node(e.w),s)});return ci.minBy(u,function(t){return ji(e,t)})}function Yi(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),Hi(t),$i(t,e),function(t,e){var n=ci.find(t.nodes(),function(t){return!e.node(t).parent}),r=Ri(t,n);r=r.slice(1),ci.forEach(r,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function Xi(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}Vi.initLowLimValues=Hi,Vi.initCutValues=$i,Vi.calcCutValue=Gi,Vi.leaveEdge=Wi,Vi.enterEdge=Ui,Vi.exchangeEdges=Yi;var qi=Mi,Zi=qi;function Ki(t){zi(t)}var Ji=function(t){var e=wi.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(r,i){var o=t.children(r);o&&o.length&&ci.forEach(o,function(t){n(t,i+1)}),e[r]=i}return ci.forEach(t.children(),function(t){n(t,1)}),e}(t),r=ci.max(ci.values(n))-1,i=2*r+1;t.graph().nestingRoot=e,ci.forEach(t.edges(),function(e){t.edge(e).minlen*=i});var o=function(t){return ci.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;ci.forEach(t.children(),function(a){!function t(e,n,r,i,o,a,s){var l=e.children(s);if(l.length){var u=wi.addBorderNode(e,"_bt"),c=wi.addBorderNode(e,"_bb"),h=e.node(s);e.setParent(u,s),h.borderTop=u,e.setParent(c,s),h.borderBottom=c,ci.forEach(l,function(l){t(e,n,r,i,o,a,l);var h=e.node(l),d=h.borderTop?h.borderTop:l,f=h.borderBottom?h.borderBottom:l,p=h.borderTop?i:2*i,g=d!==f?1:o-a[s]+1;e.setEdge(u,d,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(f,c,{weight:p,minlen:g,nestingEdge:!0})}),e.parent(s)||e.setEdge(n,u,{weight:0,minlen:o+a[s]})}else s!==n&&e.setEdge(n,s,{weight:0,minlen:r})}(t,e,i,o,r,n,a)}),t.graph().nodeRankFactor=i},Qi=function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,ci.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})};function to(t,e,n,r,i,o){var a={width:0,height:0,rank:o,borderType:e},s=i[e][o-1],l=wi.addDummyNode(t,"border",a,n);i[e][o]=l,t.setParent(l,r),s&&t.setEdge(s,l,{weight:1})}var eo=function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||ro(t)},no=function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){ci.forEach(t.nodes(),function(e){oo(t.node(e))}),ci.forEach(t.edges(),function(e){var n=t.edge(e);ci.forEach(n.points,oo),ci.has(n,"y")&&oo(n)})}(t),"lr"!==e&&"rl"!==e||(function(t){ci.forEach(t.nodes(),function(e){ao(t.node(e))}),ci.forEach(t.edges(),function(e){var n=t.edge(e);ci.forEach(n.points,ao),ci.has(n,"x")&&ao(n)})}(t),ro(t))};function ro(t){ci.forEach(t.nodes(),function(e){io(t.node(e))}),ci.forEach(t.edges(),function(e){io(t.edge(e))})}function io(t){var e=t.width;t.width=t.height,t.height=e}function oo(t){t.y=-t.y}function ao(t){var e=t.x;t.x=t.y,t.y=e}var so=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=lo(t,e[r-1],e[r]);return n};function lo(t,e,n){for(var r=ci.zipObject(n,ci.map(n,function(t,e){return e})),i=ci.flatten(ci.map(e,function(e){return ci.sortBy(ci.map(t.outEdges(e),function(e){return{pos:r[e.w],weight:t.edge(e).weight}}),"pos")}),!0),o=1;o<n.length;)o<<=1;var a=2*o-1;o-=1;var s=ci.map(new Array(a),function(){return 0}),l=0;return ci.forEach(i.forEach(function(t){var e=t.pos+o;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;l+=t.weight*n})),l}function uo(t,e,n){for(var r;e.length&&(r=ci.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}var co=function t(e,n,r,i){var o=e.children(n),a=e.node(n),s=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,u={};s&&(o=ci.filter(o,function(t){return t!==s&&t!==l}));var c=function(t,e){return ci.map(e,function(e){var n=t.inEdges(e);if(n.length){var r=ci.reduce(n,function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}})}(e,o);ci.forEach(c,function(n){if(e.children(n.v).length){var o=t(e,n.v,r,i);u[n.v]=o,ci.has(o,"barycenter")&&(a=n,s=o,ci.isUndefined(a.barycenter)?(a.barycenter=s.barycenter,a.weight=s.weight):(a.barycenter=(a.barycenter*a.weight+s.barycenter*s.weight)/(a.weight+s.weight),a.weight+=s.weight))}var a,s});var h=function(t,e){var n={};return ci.forEach(t,function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};ci.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),ci.forEach(e.edges(),function(t){var e=n[t.v],r=n[t.w];ci.isUndefined(e)||ci.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))}),function(t){var e=[];function n(t){return function(e){e.merged||(ci.isUndefined(e.barycenter)||ci.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function r(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var i=t.pop();e.push(i),ci.forEach(i.in.reverse(),n(i)),ci.forEach(i.out,r(i))}return ci.map(ci.filter(e,function(t){return!t.merged}),function(t){return ci.pick(t,["vs","i","barycenter","weight"])})}(ci.filter(n,function(t){return!t.indegree}))}(c,r);!function(t,e){ci.forEach(t,function(t){t.vs=ci.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(h,u);var d=function(t,e){var n,r=wi.partition(t,function(t){return ci.has(t,"barycenter")}),i=r.lhs,o=ci.sortBy(r.rhs,function(t){return-t.i}),a=[],s=0,l=0,u=0;i.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),u=uo(a,o,u),ci.forEach(i,function(t){u+=t.vs.length,a.push(t.vs),s+=t.barycenter*t.weight,l+=t.weight,u=uo(a,o,u)});var c={vs:ci.flatten(a,!0)};return l&&(c.barycenter=s/l,c.weight=l),c}(h,i);if(s&&(d.vs=ci.flatten([s,d.vs,l],!0),e.predecessors(s).length)){var f=e.node(e.predecessors(s)[0]),p=e.node(e.predecessors(l)[0]);ci.has(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+p.order)/(d.weight+2),d.weight+=2}return d},ho=Er.Graph,fo=function(t,e,n){var r=function(t){for(var e;t.hasNode(e=ci.uniqueId("_root")););return e}(t),i=new ho({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(e){return t.node(e)});return ci.forEach(t.nodes(),function(o){var a=t.node(o),s=t.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,s||r),ci.forEach(t[n](o),function(e){var n=e.v===o?e.w:e.v,r=i.edge(n,o),a=ci.isUndefined(r)?0:r.weight;i.setEdge(n,o,{weight:t.edge(e).weight+a})}),ci.has(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i},po=function(t,e,n){var r,i={};ci.forEach(n,function(n){for(var o,a,s=t.parent(n);s;){if((o=t.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=o}})},go=Er.Graph,vo=function(t){var e=wi.maxRank(t),n=mo(t,ci.range(1,e+1),"inEdges"),r=mo(t,ci.range(e-1,-1,-1),"outEdges"),i=function(t){var e={},n=ci.filter(t.nodes(),function(e){return!t.children(e).length}),r=ci.max(ci.map(n,function(e){return t.node(e).rank})),i=ci.map(ci.range(r+1),function(){return[]});var o=ci.sortBy(n,function(e){return t.node(e).rank});return ci.forEach(o,function n(r){if(!ci.has(e,r)){e[r]=!0;var o=t.node(r);i[o.rank].push(r),ci.forEach(t.successors(r),n)}}),i}(t);bo(t,i);for(var o,a=Number.POSITIVE_INFINITY,s=0,l=0;l<4;++s,++l){yo(s%2?n:r,s%4>=2),i=wi.buildLayerMatrix(t);var u=so(t,i);u<a&&(l=0,o=ci.cloneDeep(i),a=u)}bo(t,o)};function mo(t,e,n){return ci.map(e,function(e){return fo(t,e,n)})}function yo(t,e){var n=new go;ci.forEach(t,function(t){var r=t.graph().root,i=co(t,r,n,e);ci.forEach(i.vs,function(e,n){t.node(e).order=n}),po(t,n,i.vs)})}function bo(t,e){ci.forEach(e,function(e){ci.forEach(e,function(e,n){t.node(e).order=n})})}var _o=Er.Graph;function xo(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function wo(t,e,n){if(e>n){var r=e;e=n,n=r}return ci.has(t[e],n)}var So=function(t){var e,n=wi.buildLayerMatrix(t),r=ci.merge(function(t,e){var n={};return ci.reduce(e,function(e,r){var i=0,o=0,a=e.length,s=ci.last(r);return ci.forEach(r,function(e,l){var u=function(t,e){if(t.node(e).dummy)return ci.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),c=u?t.node(u).order:a;(u||e===s)&&(ci.forEach(r.slice(o,l+1),function(e){ci.forEach(t.predecessors(e),function(r){var o=t.node(r),a=o.order;!(a<i||c<a)||o.dummy&&t.node(e).dummy||xo(n,r,e)})}),o=l+1,i=c)}),r}),n}(t,n),function(t,e){var n={};function r(e,r,i,o,a){var s;ci.forEach(ci.range(r,i),function(r){s=e[r],t.node(s).dummy&&ci.forEach(t.predecessors(s),function(e){var r=t.node(e);r.dummy&&(r.order<o||r.order>a)&&xo(n,e,s)})})}return ci.reduce(e,function(e,n){var i,o=-1,a=0;return ci.forEach(n,function(s,l){if("border"===t.node(s).dummy){var u=t.predecessors(s);u.length&&(i=t.node(u[0]).order,r(n,a,l,o,i),a=l,o=i)}r(n,a,n.length,i,e.length)}),n}),n}(t,n)),i={};ci.forEach(["u","d"],function(o){e="u"===o?n:ci.values(n).reverse(),ci.forEach(["l","r"],function(n){"r"===n&&(e=ci.map(e,function(t){return ci.values(t).reverse()}));var a=("u"===o?t.predecessors:t.successors).bind(t),s=function(t,e,n,r){var i={},o={},a={};return ci.forEach(e,function(t){ci.forEach(t,function(t,e){i[t]=t,o[t]=t,a[t]=e})}),ci.forEach(e,function(t){var e=-1;ci.forEach(t,function(t){var s=r(t);if(s.length)for(var l=((s=ci.sortBy(s,function(t){return a[t]})).length-1)/2,u=Math.floor(l),c=Math.ceil(l);u<=c;++u){var h=s[u];o[t]===t&&e<a[h]&&!wo(n,t,h)&&(o[h]=t,o[t]=i[t]=i[h],e=a[h])}})}),{root:i,align:o}}(0,e,r,a),l=function(t,e,n,r,i){var o={},a=function(t,e,n,r){var i=new _o,o=t.graph(),a=function(t,e,n){return function(r,i,o){var a,s=r.node(i),l=r.node(o),u=0;if(u+=s.width/2,ci.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2}if(a&&(u+=n?a:-a),a=0,u+=(s.dummy?e:t)/2,u+=(l.dummy?e:t)/2,u+=l.width/2,ci.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=l.width/2;break;case"r":a=-l.width/2}return a&&(u+=n?a:-a),a=0,u}}(o.nodesep,o.edgesep,r);return ci.forEach(e,function(e){var r;ci.forEach(e,function(e){var o=n[e];if(i.setNode(o),r){var s=n[r],l=i.edge(s,o);i.setEdge(s,o,Math.max(a(t,e,r),l||0))}r=e})}),i}(t,e,n,i),s=i?"borderLeft":"borderRight";function l(t,e){for(var n=a.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return l(function(t){o[t]=a.inEdges(t).reduce(function(t,e){return Math.max(t,o[e.v]+a.edge(e))},0)},a.predecessors.bind(a)),l(function(e){var n=a.outEdges(e).reduce(function(t,e){return Math.min(t,o[e.w]-a.edge(e))},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==s&&(o[e]=Math.max(o[e],n))},a.successors.bind(a)),ci.forEach(r,function(t){o[t]=o[n[t]]}),o}(t,e,s.root,s.align,"r"===n);"r"===n&&(l=ci.mapValues(l,function(t){return-t})),i[o+n]=l})});var o=function(t,e){return ci.minBy(ci.values(e),function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return ci.forIn(e,function(e,i){var o=function(t,e){return t.node(e).width}(t,i)/2;n=Math.max(e+o,n),r=Math.min(e-o,r)}),n-r})}(t,i);return function(t,e){var n=ci.values(e),r=ci.min(n),i=ci.max(n);ci.forEach(["u","d"],function(n){ci.forEach(["l","r"],function(o){var a,s=n+o,l=t[s];if(l!==e){var u=ci.values(l);(a="l"===o?r-ci.min(u):i-ci.max(u))&&(t[s]=ci.mapValues(l,function(t){return t+a}))}})})}(i,o),function(t,e){return ci.mapValues(t.ul,function(n,r){if(e)return t[e.toLowerCase()][r];var i=ci.sortBy(ci.map(t,r));return(i[1]+i[2])/2})}(i,t.graph().align)},Co=wi.normalizeRanks,ko=wi.removeEmptyRanks,Oo=wi,Mo=Er.Graph,Eo=["nodesep","edgesep","ranksep","marginx","marginy"],To={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ao=["acyclicer","ranker","rankdir","align"],Io=["width","height"],Do={width:0,height:0},Po=["minlen","weight","width","height","labeloffset"],Lo={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},jo=["labelpos"];function No(t,e){return ci.mapValues(ci.pick(t,e),Number)}function Ro(t){var e={};return ci.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}var Bo=Er.Graph,Fo={graphlib:Er,layout:function(t,e){var n=e&&e.debugTiming?Oo.time:Oo.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new Mo({multigraph:!0,compound:!0}),n=Ro(t.graph());return e.setGraph(ci.merge({},To,No(n,Eo),ci.pick(n,Ao))),ci.forEach(t.nodes(),function(n){var r=Ro(t.node(n));e.setNode(n,ci.defaults(No(r,Io),Do)),e.setParent(n,t.parent(n))}),ci.forEach(t.edges(),function(n){var r=Ro(t.edge(n));e.setEdge(n,ci.merge({},Lo,No(r,Po),ci.pick(r,jo)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,ci.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){ci.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){bi(t)}),e(" nestingGraph.run",function(){Ji(t)}),e(" rank",function(){!function(t){switch(t.graph().ranker){case"network-simplex":Ki(t);break;case"tight-tree":!function(t){qi(t),Ii(t)}(t);break;case"longest-path":Zi(t);break;default:Ki(t)}}(Oo.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){ci.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};Oo.addDummyNode(t,"edge-proxy",i,"_ep")}})}(t)}),e(" removeEmptyRanks",function(){ko(t)}),e(" nestingGraph.cleanup",function(){Qi(t)}),e(" normalizeRanks",function(){Co(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;ci.forEach(t.nodes(),function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=ci.max(e,r.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){ci.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){ki(t)}),e(" parentDummyChains",function(){!function(t){var e=function(t){var e={},n=0;return ci.forEach(t.children(),function r(i){var o=n;ci.forEach(t.children(i),r),e[i]={low:o,lim:n++}}),e}(t);ci.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],l=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>l||u>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,l=0,u=a[l],c=!0;n!==i.w;){if(r=t.node(n),c){for(;(u=a[l])!==s&&t.node(u).maxRank<r.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&t.node(u=a[l+1]).minRank<=r.rank;)l++;u=a[l]}t.setParent(n,u),n=t.successors(n)[0]}})}(t)}),e(" addBorderSegments",function(){!function(t){ci.forEach(t.children(),function e(n){var r=t.children(n),i=t.node(n);if(r.length&&ci.forEach(r,e),ci.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)to(t,"borderLeft","_bl",n,i,o),to(t,"borderRight","_br",n,i,o)}})}(t)}),e(" order",function(){vo(t)}),e(" insertSelfEdges",function(){!function(t){var e=Oo.buildLayerMatrix(t);ci.forEach(e,function(e){var n=0;ci.forEach(e,function(e,r){var i=t.node(e);i.order=r+n,ci.forEach(i.selfEdges,function(e){Oo.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:r+ ++n,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){eo(t)}),e(" position",function(){!function(t){(function(t){var e=wi.buildLayerMatrix(t),n=t.graph().ranksep,r=0;ci.forEach(e,function(e){var i=ci.max(ci.map(e,function(e){return t.node(e).height}));ci.forEach(e,function(e){t.node(e).y=r+i/2}),r+=i+n})})(t=wi.asNonCompoundGraph(t)),ci.forEach(So(t),function(e,n){t.node(n).x=e})}(t)}),e(" positionSelfEdges",function(){!function(t){ci.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){ci.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),o=t.node(ci.last(n.borderLeft)),a=t.node(ci.last(n.borderRight));n.width=Math.abs(a.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),ci.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){Oi(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){ci.forEach(t.edges(),function(e){var n=t.edge(e);if(ci.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){no(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=t.graph(),a=o.marginx||0,s=o.marginy||0;function l(t){var o=t.x,a=t.y,s=t.width,l=t.height;e=Math.min(e,o-s/2),n=Math.max(n,o+s/2),r=Math.min(r,a-l/2),i=Math.max(i,a+l/2)}ci.forEach(t.nodes(),function(e){l(t.node(e))}),ci.forEach(t.edges(),function(e){var n=t.edge(e);ci.has(n,"x")&&l(n)}),e-=a,r-=s,ci.forEach(t.nodes(),function(n){var i=t.node(n);i.x-=e,i.y-=r}),ci.forEach(t.edges(),function(n){var i=t.edge(n);ci.forEach(i.points,function(t){t.x-=e,t.y-=r}),ci.has(i,"x")&&(i.x-=e),ci.has(i,"y")&&(i.y-=r)}),o.width=n-e+a,o.height=i-r+s}(t)}),e(" assignNodeIntersects",function(){!function(t){ci.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(Oo.intersectRect(o,n)),i.points.push(Oo.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){ci.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){_i(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){ci.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),ci.forEach(t.edges(),function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,ci.has(i,"x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})},debug:{debugOrdering:function(t){var e=wi.buildLayerMatrix(t),n=new Bo({compound:!0,multigraph:!0}).setGraph({});return ci.forEach(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),ci.forEach(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),ci.forEach(e,function(t,e){var r="layer"+e;n.setNode(r,{rank:"same"}),ci.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}},util:{time:wi.time,notime:wi.notime},version:"0.8.5"},zo=Fo.graphlib,Vo=Fo.layout;class $o{constructor(t){this.cardinality=1,this.include=u.UNSPECIFIED,this.isGroupNode=!1,this.parentNode=null,this.type=l.NODE,this.name=t.name,this.attr=t.attr||{},this.inputs=t.inputs,this.path=t.path||[],this.width=t.width,this.height=t.height}}class Go{constructor(){this.nodes={},this.edges=[],this.nodes={},this.edges=[]}}class Ho{constructor(t,e={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=u.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=l.META,this.path=[],this.name=t,this.metaGraph=Xo(t,c.META,e)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(t=>this.metaGraph.node(t))}leaves(){let t,e=[],n=[this];for(;n.length;){let r=n.shift();r.isGroupNode?(t=r.metaGraph).nodes().forEach(e=>n.push(t.node(e))):e.push(r.name)}return e}}class Wo{constructor(t,e){this.v=t,this.w=e,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(t,e){this.baseEdgeList.push(t)}}function Uo(t,e={}){return new Ho(t,e)}function Yo(t,e){return new Wo(t,e)}function Xo(t,e,n){const r=n||{},i=new zo.Graph(r);return i.setGraph({name:t,rankdir:r.rankdir,type:e,align:r.align}),i}class qo{constructor(t={}){this.graphOptions=t,this.index={},this.graphOptions.compound=!0,this.root=Uo(a,this.graphOptions),this.index[a]=this.root}getNodeMap(){return this.index}node(t){return this.index[t]}setNode(t,e){this.index[t]=e}getBridgeGraph(t){const e=this.index[t];if(!e)throw Error("Could not find node in hierarchy: "+t);if(!("metaGraph"in e))return null;const n=e;if(n.bridgeGraph)return n.bridgeGraph;const r=Xo(s,c.BRIDGE,this.graphOptions);if(n.bridgeGraph=r,!(e.parentNode&&"metaGraph"in e.parentNode))return r;const i=e.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(e=>{e.edges().filter(e=>e.v===t||e.w===t).forEach(n=>{const i=n.w===t;e.edge(n).baseEdgeList.forEach(e=>{const[o,a]=i?[e.w,n.v]:[e.v,n.w],s=this.getChildName(t,o),l={v:i?a:s,w:i?s:a};let u=r.edge(l);u||((u=Yo(l.v,l.w)).inbound=i,r.setEdge(l.v,l.w,u)),u.addBaseEdge(e,this)})})}),r}getChildName(t,e){let n=this.index[e];for(;n;){if(n.parentNode&&n.parentNode.name===t)return n.name;n=n.parentNode}throw Error("Could not find immediate child for descendant: "+e)}getPredecessors(t){const e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!0)}getSuccessors(t){const e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!1)}getOneWayEdges(t,e){const n=[];if(!t.parentNode||!t.parentNode.isGroupNode)return n;const r=t.parentNode,i=r.metaGraph,o=this.getBridgeGraph(r.name);return Zo(i,t,e,n),Zo(o,t,e,n),n}}function Zo(t,e,n,r){(n?t.inEdges(e.name):t.outEdges(e.name)).forEach(e=>{const n=t.edge(e);r.push(n)})}class Ko{constructor(t){this.hierarchy=t,this.index={},this.hasSubHierarchy={},this.root=new ta(this.hierarchy.root,this.hierarchy.graphOptions),this.index[t.root.name]=this.root,this.buildSubHierarchy(t.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(t){if(t in this.hasSubHierarchy)return;this.hasSubHierarchy[t]=!0;const e=this.index[t];if(e.node.type!==l.META)return;const n=e,r=n.node.metaGraph,i=n.coreGraph;r.nodes().forEach(t=>{const e=this.getOrCreateRenderNodeByName(t);i.setNode(t,e)}),r.edges().forEach(t=>{const e=r.edge(t),n=new Qo(e);i.setEdge(t.v,t.w,n)});const o=n.node.parentNode;if(!o)return;const a=this.getRenderNodeByName(o.name),s=(t,...e)=>e.concat([t?"IN":"OUT"]).join("~~"),c=this.hierarchy.getBridgeGraph(t);c.edges().forEach(e=>{const n=c.edge(e),h=!!r.node(e.w),[d,f]=h?[e.w,e.v]:[e.v,e.w],p=e=>{const n=h?{v:e,w:t}:{v:t,w:e};return a.coreGraph.edge(n)};let g=p(f);g||(g=p(s(h,f,o.name)));const v=s(h,t),m=s(h,f,t);let y=i.node(m);if(!y){let t=i.node(v);if(!t){const e={name:v,type:l.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:u.UNSPECIFIED,inbound:h,attr:{}};t=new Jo(e),this.index[v]=t,i.setNode(v,t)}const e={name:m,type:l.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:u.UNSPECIFIED,inbound:h,attr:{}};y=new Jo(e),this.index[m]=y,i.setNode(m,y),i.setParent(m,v),t.node.cardinality++}const b=new Qo(n);b.adjoiningMetaEdge=g,h?i.setEdge(m,d,b):i.setEdge(d,m,b)})}getOrCreateRenderNodeByName(t){if(!t)return null;if(t in this.index)return this.index[t];const e=this.getNodeByName(t);return e?(this.index[t]=e.isGroupNode?new ta(e,this.hierarchy.graphOptions):new Jo(e),this.index[t]):null}getRenderNodeByName(t){return this.index[t]}getNodeByName(t){return this.hierarchy.node(t)}}class Jo{constructor(t){this.node=t,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=t.width||0,this.height=t.height||0,this.displayName=t.name,this.attr=t.attr}}class Qo{constructor(t){this.metaEdge=t,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class ta extends Jo{constructor(t,e){super(t);const n=t.metaGraph.graph();e.compound=!0,this.coreGraph=Xo(n.name,c.CORE,e)}}function ea(t,e){t.node.isGroupNode&&function(t,e){const n=i(e);t.coreGraph.nodes().map(e=>t.coreGraph.node(e)).forEach(t=>{var r,i,o,a,s,u;const{height:c,width:h}=t;switch(t.node.type){case l.NODE:Object.assign(t,n.nodeSize.node),t.height=c||n.nodeSize.node.height,t.width=h||n.nodeSize.node.width;break;case l.BRIDGE:Object.assign(t,n.nodeSize.bridge);break;case l.META:t.expanded?ea(t,e):(Object.assign(t,n.nodeSize.meta),t.height=n.nodeSize.meta.height,t.width=n.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+t.node.type)}if(!t.expanded){const n=t.attr;!function(t,e=!1){if(t.coreBox.width=t.width,t.coreBox.height=t.height,!e){const e=`${t.displayName}`.length,n=3;t.width=Math.max(t.coreBox.width,e*n)}}(t,e&&(0===t.node.type&&!!(null===(i=null===(r=null==e?void 0:e.nodeSize)||void 0===r?void 0:r.meta)||void 0===i?void 0:i.width)||1===t.node.type&&(!!(null===(a=null===(o=null==e?void 0:e.nodeSize)||void 0===o?void 0:o.node)||void 0===a?void 0:a.width)||!!n.width)||2===t.node.type&&!!(null===(u=null===(s=null==e?void 0:e.nodeSize)||void 0===s?void 0:s.bridge)||void 0===u?void 0:u.width)))}})}(t,e),t.node.type===l.META&&function(t,e){const n=i(e),r=n.subScene.meta;Object.assign(t,r);const{nodeSep:o,rankSep:a,edgeSep:s,align:u}=n.graph.meta,c={nodesep:o,ranksep:a,edgesep:s,align:u};Object.assign(t.coreBox,function(t,e){const{ranksep:n,nodesep:r,edgesep:i,align:o}=e;Object.assign(t.graph(),{ranksep:n,nodesep:r,edgesep:i,align:o});const a=[];if(t.nodes().forEach(e=>{t.node(e).node.type!==l.BRIDGE&&a.push(e)}),!a.length)return{width:0,height:0};Vo(t);let s=1/0,u=1/0,c=-1/0,h=-1/0;return a.forEach(e=>{const n=t.node(e),r=.5*n.width,i=n.x-r,o=n.x+r;s=i<s?i:s,c=o>c?o:c;const a=.5*n.height,l=n.y-a,d=n.y+a;u=l<u?l:u,h=d>h?d:h}),t.edges().forEach(e=>{const n=t.edge(e),r=t.node(n.metaEdge.v),i=t.node(n.metaEdge.w);if(3===n.points.length&&function(t){let e=na(t[0],t[1]);for(let n=1;n<t.length-1;n++){const r=na(t[n],t[n+1]);if(Math.abs(r-e)>1)return!1;e=r}return!0}(n.points)){if(null!=r){const t=r.expanded?r.x:ra(r);n.points[0].x=t}if(null!=i){const t=i.expanded?i.x:ra(i);n.points[2].x=t}n.points=[n.points[0],n.points[1]]}const o=n.points[n.points.length-2];null!=i&&(n.points[n.points.length-1]=ia(o,i));const a=n.points[1];null!=r&&(n.points[0]=ia(a,r)),n.points.forEach(t=>{s=t.x<s?t.x:s,c=t.x>c?t.x:c,u=t.y<u?t.y:u,h=t.y>h?t.y:h})}),t.nodes().forEach(e=>{const n=t.node(e);n.x-=s,n.y-=u}),t.edges().forEach(e=>{t.edge(e).points.forEach(t=>{t.x-=s,t.y-=u})}),{width:c-s,height:h-u}}(t.coreGraph,c));let h=0;t.coreGraph.nodeCount()>0&&h++;const d=h<=1?0:h;t.coreBox.width+=d+d,t.coreBox.height=r.labelHeight+t.coreBox.height,t.width=t.coreBox.width+r.paddingLeft+r.paddingRight,t.height=t.paddingTop+t.coreBox.height+t.paddingBottom}(t,e)}function na(t,e){const n=e.x-t.x,r=e.y-t.y;return 180*Math.atan(r/n)/Math.PI}function ra(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function ia(t,e){const n=e.expanded?e.x:ra(e),r=e.y,i=t.x-n,o=t.y-r;let a,s,l=e.expanded?e.width:e.coreBox.width,u=e.expanded?e.height:e.coreBox.height;return Math.abs(o)*l/2>Math.abs(i)*u/2?(o<0&&(u=-u),a=0===o?0:u/2*i/o,s=u/2):(i<0&&(l=-l),a=l/2,s=0===i?0:l/2*o/i),{x:n+a,y:r+s}}function oa(t,e,n){var i,o,a,s;const l=t.nodes.filter((t,e,n)=>n.findIndex(e=>e.id===t.id)!==e).map(t=>t.id);if(l.length)throw new Error(`Duplicated ids found: ${l.join(", ")}`);const u=function(t){const e={nodes:[]},n=t.compound,r=Object.keys(n||{}),i=new Map,o=(t,e=[])=>{if(i.has(t))return i.get(t);for(let i=0;i<r.length;i++){let a=r[i];if(n&&-1!==n[a].indexOf(t))return e.unshift(a),o(a,e)}return 0===e.length&&i.set(t,e),e},a=e=>t.edges.filter(t=>t.w===e).map(t=>({name:t.v}));return t.nodes.forEach(t=>{const n=t.id,r=[...o(n),n];let i=a(n);e.nodes.push({name:n,path:r,inputs:i,width:t.width,height:t.height,attr:Object.assign({},t)})}),e}(t),c=function(t,e){const n=(t,e)=>{for(let n of e.values())if(n.includes(t))return!0;return!1},r=(t,e=[])=>{if(0===Object.keys(t).length)return[...new Set(e)];const i=new Map(Object.keys(t).map(e=>[e,t[e]])),o={};for(let[t,r]of i)n(t,i)?o[t]=r:e=e.concat(t,r);return r(o,e)};return r(t).filter(t=>e.includes(t))}(t.compound||{},(null==e?void 0:e.expanded)||[]),h=function(t,e){return function(t){return new Ko(t)}(function(t,e){const{rankDirection:n,align:r}=e,i=new qo({rankdir:n,align:r});return function(t,e){Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n],i=r.path;let o=t.root;o.depth=Math.max(i.length,o.depth);for(let e=0;e<i.length&&(o.depth=Math.max(o.depth,i.length-e),o.cardinality+=r.cardinality,e!==i.length-1);e++){const n=i[e];let a=t.node(n);a||((a=Uo(n,t.graphOptions)).path=r.path.slice(0,e+1),a.parentNode=o,t.setNode(n,a),o.metaGraph.setNode(n,a)),o=a}t.setNode(r.name,r),r.parentNode=o,o.metaGraph.setNode(r.name,r)})}(i,t),function(t,e){const n=t.getNodeMap();let r=[],i=[];const o=(t,e)=>{let n=0;for(;t;)e[n++]=t.name,t=t.parentNode;return n-1};e.edges.forEach(a=>{r=[],i=[];let s=o(e.nodes[a.v],r),l=o(e.nodes[a.w],i);for(;r[s]===i[l];)if(l--,--s<0||l<0)throw Error("No difference found between ancestor paths.");const u=n[r[s+1]],c=r[s],h=i[l];let d=u.metaGraph.edge(c,h);d||(d=Yo(c,h),u.metaGraph.setEdge(c,h,d)),d.addBaseEdge(a,t)})}(i,t),i}(function(t){const e=new Go;return t.nodes.map(t=>new $o(t)).forEach(t=>{e.nodes[t.name]=t,t.inputs.forEach(n=>{!function(t,e,n){n.name!==e.name&&t.edges.push(Object.assign(Object.assign({},n.attr),{v:n.name,w:e.name}))}(e,t,n)})}),e}(t),e))}(u,{rankDirection:(null===(o=null===(i=null==n?void 0:n.graph)||void 0===i?void 0:i.meta)||void 0===o?void 0:o.rankDir)||(null==e?void 0:e.rankDirection)||r.graph.meta.rankDir,align:(null===(s=null===(a=null==n?void 0:n.graph)||void 0===a?void 0:a.meta)||void 0===s?void 0:s.align)||r.graph.meta.align});return function(t,e){c.forEach(e=>{const n=t.getRenderInfoNodes().find(t=>t.displayName===e);let r=n&&n.node&&n.node.name||"";const i=t.getRenderNodeByName(r);if(!i)throw new Error(`No nodes found: ${r}`);i.expanded=!0,t.buildSubHierarchy(r)})}(h),ea(h.root,n),la(h.root)}function aa(t,e=!1){const n=JSON.parse(JSON.stringify(t)),r={nodes:[n],edges:[...n.edges]};return n.nodes.forEach(function t(e){(0===e.type||1===e.type)&&r.nodes.push(e),0===e.type&&(r.edges=r.edges.concat(e.edges)),Array.isArray(e.nodes)&&e.nodes.forEach(t)}),e&&r.nodes.forEach(t=>{const e=r.nodes.find(e=>e.id===t.parentNodeName);if(e){const n=e.x-e.width/2+e.paddingLeft,r=e.y-e.height/2+e.labelHeight+e.paddingTop;e.id!==a&&(t.x+=n,t.y+=r),0===t.type&&t.edges.forEach(e=>{e.points.forEach(e=>{e.x+=t.x-t.width/2+t.paddingLeft,e.y+=t.y-t.height/2+t.labelHeight+t.paddingTop})})}}),r}function sa(t,e,n,r){var i,o;let s=[];const l=(null===(i=n.find(e=>e.id===t))||void 0===i?void 0:i.path)||[],u=(null===(o=n.find(t=>t.id===e))||void 0===o?void 0:o.path)||[],c=[a,...l].slice(0,l.length).reverse(),h=[a,...u].slice(0,u.length);return c.forEach(i=>{const o=n.find(t=>t.id===i);s=s.concat(o.edges.filter(n=>n.baseEdgeList.some(n=>n.v===((null==r?void 0:r.v)||t)&&n.w===((null==r?void 0:r.w)||e))))}),h.filter(t=>!c.includes(t)).forEach(i=>{const o=n.find(t=>t.id===i);s=s.concat(o.edges.filter(n=>n.baseEdgeList.some(n=>n.v===((null==r?void 0:r.v)||t)&&n.w===((null==r?void 0:r.w)||e))))}),s}function la(t){const e=t.coreGraph.nodes().map(e=>t.coreGraph.node(e));return Object.assign(Object.assign({},ua(t)),{expanded:t.expanded,nodes:t.expanded?(n=e,n.map(t=>t.node.type===l.META?la(t):ua(t))):[],edges:t.expanded?function(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:t})=>t.metaEdge).map(({edge:e,renderInfoEdge:n})=>{const r=function(t,e){const n=e.points.map(t=>Object.assign({},t));if(e.adjoiningMetaEdge){const r=e.adjoiningMetaEdge.points,i=e.metaEdge.inbound,o=i?r[r.length-1]:r[0],a=n[i?0:n.length-1],s=t.x-t.width/2,l=t.y-t.height/2,u=o.x-s,c=o.y-l,h=-t.paddingLeft,d=-(t.paddingTop+t.labelHeight);a.x=u+h,a.y=c+d}return n}(t,n);return{adjoiningEdge:n.adjoiningMetaEdge?{w:n.adjoiningMetaEdge.metaEdge.w,v:n.adjoiningMetaEdge.metaEdge.v}:null,inbound:n.metaEdge.inbound,w:e.w,v:e.v,points:r,weight:n.weight,baseEdgeList:n.metaEdge.baseEdgeList,parentNodeName:t.node.name}})}(t):[]});var n}function ua(t){return{id:t.node.name,name:t.node.name,type:t.node.type,cardinality:t.node.cardinality,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,path:t.node.path}}}.call(e,n("DuR2"))},rYzl:function(t,e,n){"use strict";t.exports=function(t){var e,n,r=0,i=t.tokens,o=t.tokens.length;for(e=n=0;e<o;e++)i[e].nesting<0&&r--,i[e].level=r,i[e].nesting>0&&r++,"text"===i[e].type&&e+1<o&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==n&&(i[n]=i[e]),n++);e!==n&&(i.length=n)}},rcBw:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clusterBundle=e.clusterCode=e.fruchtermanBundle=e.fruchtermanCode=void 0,e.fruchtermanCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass Fruchterman {\n @in @out\n u_Data: vec4[];\n @in\n u_K: float;\n @in\n u_K2: float;\n \n @in\n u_Center: vec2;\n @in\n u_Gravity: float;\n @in\n u_ClusterGravity: float;\n @in\n u_Speed: float;\n @in\n u_MaxDisplace: float;\n @in\n u_Clustering: float;\n @in\n u_AttributeArray: vec4[];\n @in\n u_ClusterCenters: vec4[];\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = (xDist * xDist + yDist * yDist) + 0.01;\n let param = this.u_K2 / dist;\n \n if (dist > 0.0) {\n dx += param * xDist;\n dy += param * yDist;\n if (xDist == 0 && yDist == 0) {\n const sign = i < j ? 1 : -1;\n dx += param * sign;\n dy += param * sign;\n }\n }\n }\n }\n return [dx, dy];\n }\n calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // \n let dx = 0, dy = 0;\n const vx = currentNode[0] - this.u_Center[0];\n const vy = currentNode[1] - this.u_Center[1];\n const gf = 0.01 * this.u_K * this.u_Gravity;\n dx = gf * vx;\n dy = gf * vy;\n if (this.u_Clustering == 1) {\n const clusterIdx = int(nodeAttributes[0]);\n const center = this.u_ClusterCenters[clusterIdx];\n const cvx = currentNode[0] - center[0];\n const cvy = currentNode[1] - center[1];\n const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01;\n const parma = this.u_K * this.u_ClusterGravity / dist;\n dx += parma * cvx;\n dy += parma * cvy;\n }\n return [dx, dy];\n }\n calcAttractive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n const arr_offset = int(floor(currentNode[2] + 0.5));\n const length = int(floor(currentNode[3] + 0.5));\n const node_buffer: vec4;\n for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + p;\n // when arr_idx % 4 == 0 update currentNodedx_buffer\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)];\n }\n const float_j = buf_offset == 0 ? node_buffer[0] :\n buf_offset == 1 ? node_buffer[1] :\n buf_offset == 2 ? node_buffer[2] :\n node_buffer[3];\n const nextNode = this.u_Data[int(float_j)];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01;\n let attractiveF = dist / this.u_K;\n \n if (dist > 0.0) {\n dx -= xDist * attractiveF;\n dy -= yDist * attractiveF;\n if (xDist == 0 && yDist == 0) {\n const sign = i < int(float_j) ? 1 : -1;\n dx -= sign * attractiveF;\n dy -= sign * attractiveF;\n }\n }\n }\n return [dx, dy];\n }\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n let dx = 0, dy = 0;\n if (i >= VERTEX_COUNT) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // [gravity, fx, fy, 0]\n const nodeAttributes = this.u_AttributeArray[i];\n\n if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) {\n // the node is fixed\n this.u_Data[i] = [\n nodeAttributes[1],\n nodeAttributes[2],\n currentNode[2],\n currentNode[3]\n ];\n return;\n }\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n dx += repulsive[0];\n dy += repulsive[1];\n // attractive\n const attractive = this.calcAttractive(i, currentNode);\n dx += attractive[0];\n dy += attractive[1];\n // gravity\n const gravity = this.calcGravity(currentNode, nodeAttributes);\n dx -= gravity[0];\n dy -= gravity[1];\n // speed\n dx *= this.u_Speed;\n dy *= this.u_Speed;\n\n // move\n const distLength = sqrt(dx * dx + dy * dy);\n if (distLength > 0.0) {\n const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength);\n this.u_Data[i] = [\n currentNode[0] + dx / distLength * limitedDist,\n currentNode[1] + dy / distLength * limitedDist,\n currentNode[2],\n currentNode[3]\n ];\n }\n }\n}\n",e.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2<f32>","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.clusterCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst VERTEX_COUNT;\nconst CLUSTER_COUNT;\n@numthreads(1, 1, 1)\nclass CalcCenter {\n @in\n u_Data: vec4[];\n @in\n u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...]\n @in @out\n u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...]\n @main\n compute() {\n const i = globalInvocationID.x;\n const center = this.u_ClusterCenters[i];\n let sumx = 0;\n let sumy = 0;\n let count = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n const attributes = this.u_NodeAttributes[j];\n const clusterIdx = int(attributes[0]);\n const vertex = this.u_Data[j];\n if (clusterIdx == i) {\n sumx += vertex.x;\n sumy += vertex.y;\n count += 1;\n }\n }\n this.u_ClusterCenters[i] = [\n sumx / count,\n sumy / count,\n count,\n i\n ];\n }\n}\n",e.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},reIy:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n("LsnM"),o=(r=n("Wb5I"))&&r.__esModule?r:{default:r};var a=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise(function(n,r){var a=new o.default;a.postMessage({_algorithmType:t,data:e}),a.onmessage=function(t){var e=t.data,o=e.data,s=e._algorithmType;i.MESSAGE.SUCCESS===s?n(o):r(),a.terminate()}})}};e.default=a},rnHg:function(t,e,n){"use strict";var r=n("+N5+").assign,i=n("+N5+").unescapeAll,o=n("+N5+").escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(t,e,n,r,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+o(a.content)+"</code>"},a.code_block=function(t,e,n,r,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+o(t[e].content)+"</code></pre>\n"},a.fence=function(t,e,n,r,a){var s,l,u,c,h,d=t[e],f=d.info?i(d.info).trim():"",p="",g="";return f&&(p=(u=f.split(/(\s+)/g))[0],g=u.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,p,g)||o(d.content)).indexOf("<pre")?s+"\n":f?(l=d.attrIndex("class"),c=d.attrs?d.attrs.slice():[],l<0?c.push(["class",n.langPrefix+p]):(c[l]=c[l].slice(),c[l][1]+=" "+n.langPrefix+p),h={attrs:c},"<pre><code"+a.renderAttrs(h)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"},a.image=function(t,e,n,r,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(t,e,n)},a.hardbreak=function(t,e,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(t,e){return o(t[e].content)},a.html_block=function(t,e){return t[e].content},a.html_inline=function(t,e){return t[e].content},s.prototype.renderAttrs=function(t){var e,n,r;if(!t.attrs)return"";for(r="",e=0,n=t.attrs.length;e<n;e++)r+=" "+o(t.attrs[e][0])+'="'+o(t.attrs[e][1])+'"';return r},s.prototype.renderToken=function(t,e,n){var r,i="",o=!1,a=t[e];return a.hidden?"":(a.block&&-1!==a.nesting&&e&&t[e-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&e+1<t.length&&("inline"===(r=t[e+1]).type||r.hidden?o=!1:-1===r.nesting&&r.tag===a.tag&&(o=!1))),i+=o?">\n":">")},s.prototype.renderInline=function(t,e,n){for(var r,i="",o=this.rules,a=0,s=t.length;a<s;a++)void 0!==o[r=t[a].type]?i+=o[r](t,a,e,n,this):i+=this.renderToken(t,a,e);return i},s.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,o=t.length;i<o;i++)"text"===t[i].type?r+=t[i].content:"image"===t[i].type?r+=this.renderInlineAsText(t[i].children,e,n):"softbreak"===t[i].type&&(r+="\n");return r},s.prototype.render=function(t,e,n){var r,i,o,a="",s=this.rules;for(r=0,i=t.length;r<i;r++)"inline"===(o=t[r].type)?a+=this.renderInline(t[r].children,e,n):void 0!==s[o]?a+=s[o](t,r,e,n,this):a+=this.renderToken(t,r,e,n);return a},t.exports=s},ryq5:function(t,e,n){"use strict";var r=n("wzKY").HTML_TAG_RE;t.exports=function(t,e){var n,i,o,a,s,l=t.pos;return!!t.md.options.html&&(o=t.posMax,!(60!==t.src.charCodeAt(l)||l+2>=o)&&(!(33!==(n=t.src.charCodeAt(l+1))&&63!==n&&47!==n&&!function(t){var e=32|t;return e>=97&&e<=122}(n))&&(!!(i=t.src.slice(l).match(r))&&(e||((a=t.push("html_inline","",0)).content=i[0],s=a.content,/^<a[>\s]/i.test(s)&&t.linkLevel++,function(t){return/^<\/a\s*>/i.test(t)}(a.content)&&t.linkLevel--),t.pos+=i[0].length,!0))))}},rzQm:function(t,e,n){var r=n("pwgQ"),i=n("uJO0"),o=n("Y4K9"),a=n("kAgk");t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},s3ue:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=86)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},4:function(t,e){t.exports=n("fPll")},86:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};r._withStripped=!0;var i=n(4),o={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[n.n(i).a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox-group.vue";var l=s.exports;l.install=function(t){t.component(l.name,l)};e.default=l}})},sB3e:function(t,e,n){var r=n("52gC");t.exports=function(t){return Object(r(t))}},sBfk:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceLayout=void 0;var u=s(n("sq6L")),c=l(n("cP7J")),h=n("ZE1E"),d=n("w9t0"),f=n("D9Z3"),p=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.nodeStrength=null,n.edgeStrength=null,n.preventOverlap=!1,n.clusterNodeStrength=null,n.clusterEdgeStrength=null,n.clusterEdgeDistance=null,n.clusterNodeSize=null,n.clusterFociStrength=null,n.linkDistance=50,n.alphaDecay=.028,n.alphaMin=.001,n.alpha=.3,n.collideStrength=1,n.workerEnabled=!1,n.tick=function(){},n.onLayoutEnd=function(){},n.ticking=void 0,e&&n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeStrength:null,edgeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,clustering:!1,clusterNodeStrength:-1,clusterEdgeStrength:.1,clusterEdgeDistance:100,clusterFociStrength:.8,clusterNodeSize:10,tick:function(){},onLayoutEnd:function(){},workerEnabled:!1}},e.prototype.init=function(t){this.nodes=t.nodes||[];var e=t.edges||[];this.edges=e.map(function(t){var e={},n=["targetNode","sourceNode","startPoint","endPoint"];return Object.keys(t).forEach(function(r){n.indexOf(r)>-1||(e[r]=t[r])}),e}),this.ticking=!1},e.prototype.execute=function(t){var e=this,n=e.nodes,r=e.edges;if(!e.ticking){var i=e.forceSimulation,o=e.alphaMin,a=e.alphaDecay,s=e.alpha;if(i){if(t)if(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(n),e.clusterForce.links(r)),i.nodes(n),r&&e.edgeForce)e.edgeForce.links(r);else if(r&&!e.edgeForce){d=u.forceLink().id(function(t){return t.id}).links(r);e.edgeStrength&&d.strength(e.edgeStrength),e.linkDistance&&d.distance(e.linkDistance),e.edgeForce=d,i.force("link",d)}e.preventOverlap&&e.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0}else try{var l=u.forceManyBody();if(e.nodeStrength&&l.strength(e.nodeStrength),i=u.forceSimulation().nodes(n),e.clustering){var h=(0,c.default)();h.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&h.links(r),n&&h.nodes(n),h.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=h,i.force("group",h)}if(i.force("center",u.forceCenter(e.center[0],e.center[1])).force("charge",l).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(i),r){var d=u.forceLink().id(function(t){return t.id}).links(r);e.edgeStrength&&d.strength(e.edgeStrength),e.linkDistance&&d.distance(e.linkDistance),e.edgeForce=d,i.force("link",d)}if(e.workerEnabled&&!g()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){i.stop();for(var p=function(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay());return Math.ceil(i)}(i),v=1;v<=p;v++)i.tick(),postMessage({nodes:n,currentTick:v,totalTicks:p,type:f.LAYOUT_MESSAGE.TICK},void 0);e.ticking=!1}else i.on("tick",function(){e.tick()}).on("end",function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd()}),e.ticking=!0;e.forceSimulation=i,e.ticking=!0}catch(t){e.ticking=!1,console.warn(t)}}},e.prototype.overlapProcess=function(t){var e,n,r=this.nodeSize,i=this.nodeSpacing,o=this.collideStrength;if(n=(0,h.isNumber)(i)?function(){return i}:(0,h.isFunction)(i)?i:function(){return 0},r)if((0,h.isFunction)(r))e=function(t){return r(t)+n(t)};else if((0,h.isArray)(r)){var a=(r[0]>r[1]?r[0]:r[1])/2;e=function(t){return a+n(t)}}else if((0,h.isNumber)(r)){var s=r/2;e=function(t){return s+n(t)}}else e=function(){return 10};else e=function(t){return t.size?(0,h.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+n(t):(0,h.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2+n(t):t.size/2+n(t):10+n(t)};t.force("collisionForce",u.forceCollide(e).strength(o))},e.prototype.updateCfg=function(t){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.forceSimulation=null,Object.assign(this,t)},e.prototype.destroy=function(){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.nodes=null,this.edges=null,this.destroyed=!0},e}(d.Base);function g(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}e.ForceLayout=p},sD9O:function(t,e){var n=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var e,r={},i=n(t).split("\n"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(":"),l=n(a.slice(0,s)).toLowerCase(),u=n(a.slice(s+1));void 0===r[l]?r[l]=u:(e=r[l],"[object Array]"===Object.prototype.toString.call(e)?r[l].push(u):r[l]=[r[l],u])}return r}},sIya:function(t,e,n){"use strict";var r=n("881s"),i=n("+N5+").has,o=n("+N5+").isValidEntityCode,a=n("+N5+").fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;t.exports=function(t,e){var n,u,c,h=t.pos,d=t.posMax;if(38!==t.src.charCodeAt(h))return!1;if(h+1>=d)return!1;if(35===t.src.charCodeAt(h+1)){if(u=t.src.slice(h).match(s))return e||(n="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),(c=t.push("text_special","",0)).content=o(n)?a(n):a(65533),c.markup=u[0],c.info="entity"),t.pos+=u[0].length,!0}else if((u=t.src.slice(h).match(l))&&i(r,u[1]))return e||((c=t.push("text_special","",0)).content=r[u[1]],c.markup=u[0],c.info="entity"),t.pos+=u[0].length,!0;return!1}},sN1u:function(t,e){function n(t){return t.replace(/\n\r?\s*/g,"")}t.exports=function(t){for(var e="",r=0;r<arguments.length;r++)e+=n(t[r])+(arguments[r+1]||"");return e}},sOR5:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},sq6L:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,l=0;for(i=0;i<a;++i)s+=(o=n[i]).x,l+=o.y;for(s=(s/a-t)*r,l=(l/a-e)*r,i=0;i<a;++i)(o=n[i]).x-=s,o.y-=l}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i},i=n("bltL"),o=function(t){return function(){return t}},a=function(t){return 1e-6*(t()-.5)};function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}var u=function(t){var e,n,r,u=1,c=1;function h(){for(var t,o,h,f,p,g,v,m=e.length,y=0;y<c;++y)for(o=Object(i.quadtree)(e,s,l).visitAfter(d),t=0;t<m;++t)h=e[t],g=n[h.index],v=g*g,f=h.x+h.vx,p=h.y+h.vy,o.visit(b);function b(t,e,n,i,o){var s=t.data,l=t.r,c=g+l;if(!s)return e>f+c||i<f-c||n>p+c||o<p-c;if(s.index>h.index){var d=f-s.x-s.vx,m=p-s.y-s.vy,y=d*d+m*m;y<c*c&&(0===d&&(y+=(d=a(r))*d),0===m&&(y+=(m=a(r))*m),y=(c-(y=Math.sqrt(y)))/y*u,h.vx+=(d*=y)*(c=(l*=l)/(v+l)),h.vy+=(m*=y)*c,s.vx-=d*(c=1-c),s.vy-=m*c)}}}function d(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function f(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=o(null==t?1:+t)),h.initialize=function(t,n){e=t,r=n,f()},h.iterations=function(t){return arguments.length?(c=+t,h):c},h.strength=function(t){return arguments.length?(u=+t,h):u},h.radius=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),f(),h):t},h};function c(t){return t.index}function h(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}var d=function(t){var e,n,r,i,s,l,u=c,d=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},f=o(30),p=1;function g(r){for(var i=0,o=t.length;i<p;++i)for(var u,c,h,d,f,g,v,m=0;m<o;++m)c=(u=t[m]).source,d=(h=u.target).x+h.vx-c.x-c.vx||a(l),f=h.y+h.vy-c.y-c.vy||a(l),d*=g=((g=Math.sqrt(d*d+f*f))-n[m])/g*r*e[m],f*=g,h.vx-=d*(v=s[m]),h.vy-=f*v,c.vx+=d*(v=1-v),c.vy+=f*v}function v(){if(r){var o,a,l=r.length,c=t.length,d=new Map(r.map((t,e)=>[u(t,e,r),t]));for(o=0,i=new Array(l);o<c;++o)(a=t[o]).index=o,"object"!=typeof a.source&&(a.source=h(d,a.source)),"object"!=typeof a.target&&(a.target=h(d,a.target)),i[a.source.index]=(i[a.source.index]||0)+1,i[a.target.index]=(i[a.target.index]||0)+1;for(o=0,s=new Array(c);o<c;++o)a=t[o],s[o]=i[a.source.index]/(i[a.source.index]+i[a.target.index]);e=new Array(c),m(),n=new Array(c),y()}}function m(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+d(t[n],n,t)}function y(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+f(t[e],e,t)}return null==t&&(t=[]),g.initialize=function(t,e){r=t,l=e,v()},g.links=function(e){return arguments.length?(t=e,v(),g):t},g.id=function(t){return arguments.length?(u=t,g):u},g.iterations=function(t){return arguments.length?(p=+t,g):p},g.strength=function(t){return arguments.length?(d="function"==typeof t?t:o(+t),m(),g):d},g.distance=function(t){return arguments.length?(f="function"==typeof t?t:o(+t),y(),g):f},g},f={value:function(){}};function p(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new g(r)}function g(t){this._=t}function v(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function m(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=f,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}g.prototype=p.prototype={constructor:g,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=o[a]).type)i[n]=m(i[n],t.name,e);else if(null==e)for(n in i)i[n]=m(i[n],t.name,null);return this}for(;++a<s;)if((n=(t=o[a]).type)&&(n=v(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new g(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var y,b,_=p,x=0,w=0,S=0,C=1e3,k=0,O=0,M=0,E="object"==typeof performance&&performance.now?performance:Date,T="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function A(){return O||(T(I),O=E.now()+M)}function I(){O=0}function D(){this._call=this._time=this._next=null}function P(t,e,n){var r=new D;return r.restart(t,e,n),r}function L(){O=(k=E.now())+M,x=w=0;try{!function(){A(),++x;for(var t,e=y;e;)(t=O-e._time)>=0&&e._call.call(null,t),e=e._next;--x}()}finally{x=0,function(){var t,e,n=y,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:y=e);b=t,N(r)}(),O=0}}function j(){var t=E.now(),e=t-k;e>C&&(M-=e,k=t)}function N(t){x||(w&&(w=clearTimeout(w)),t-O>24?(t<1/0&&(w=setTimeout(L,t-E.now()-M)),S&&(S=clearInterval(S))):(S||(k=E.now(),S=setInterval(j,C)),x=1,T(L)))}D.prototype=P.prototype={constructor:D,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?A():+n)+(null==e?0:+e),this._next||b===this||(b?b._next=this:y=this,b=this),this._call=t,this._time=n,N()},stop:function(){this._call&&(this._call=null,this._time=1/0,N())}};const R=4294967296;function B(t){return t.x}function F(t){return t.y}var z=10,V=Math.PI*(3-Math.sqrt(5)),$=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,l=P(h),u=_("tick","end"),c=function(){let t=1;return()=>(t=(1664525*t+1013904223)%R)/R}();function h(){d(),u.call("tick",e),n<r&&(l.stop(),u.call("end",e))}function d(r){var l,u,c=t.length;void 0===r&&(r=1);for(var h=0;h<r;++h)for(n+=(o-n)*i,s.forEach(function(t){t(n)}),l=0;l<c;++l)null==(u=t[l]).fx?u.x+=u.vx*=a:(u.x=u.fx,u.vx=0),null==u.fy?u.y+=u.vy*=a:(u.y=u.fy,u.vy=0);return e}function f(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=z*Math.sqrt(.5+n),o=n*V;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function p(e){return e.initialize&&e.initialize(t,c),e}return null==t&&(t=[]),f(),e={tick:d,restart:function(){return l.restart(h),e},stop:function(){return l.stop(),e},nodes:function(n){return arguments.length?(t=n,f(),s.forEach(p),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},randomSource:function(t){return arguments.length?(c=t,s.forEach(p),e):c},force:function(t,n){return arguments.length>1?(null==n?s.delete(t):s.set(t,p(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,l,u=0,c=t.length;for(null==r?r=1/0:r*=r,u=0;u<c;++u)(a=(i=e-(s=t[u]).x)*i+(o=n-s.y)*o)<r&&(l=s,r=a);return l},on:function(t,n){return arguments.length>1?(u.on(t,n),e):u.on(t)}}},G=function(){var t,e,n,r,s,l=o(-30),u=1,c=1/0,h=.81;function d(n){var o,a=t.length,s=Object(i.quadtree)(t,B,F).visitAfter(p);for(r=n,o=0;o<a;++o)e=t[o],s.visit(g)}function f(){if(t){var e,n,r=t.length;for(s=new Array(r),e=0;e<r;++e)n=t[e],s[n.index]=+l(n,e,t)}}function p(t){var e,n,r,i,o,a=0,l=0;if(t.length){for(r=i=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(a+=e.value,l+=n,r+=n*e.x,i+=n*e.y);t.x=r/l,t.y=i/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{a+=s[e.data.index]}while(e=e.next)}t.value=a}function g(t,i,o,l){if(!t.value)return!0;var d=t.x-e.x,f=t.y-e.y,p=l-i,g=d*d+f*f;if(p*p/h<g)return g<c&&(0===d&&(g+=(d=a(n))*d),0===f&&(g+=(f=a(n))*f),g<u&&(g=Math.sqrt(u*g)),e.vx+=d*t.value*r/g,e.vy+=f*t.value*r/g),!0;if(!(t.length||g>=c)){(t.data!==e||t.next)&&(0===d&&(g+=(d=a(n))*d),0===f&&(g+=(f=a(n))*f),g<u&&(g=Math.sqrt(u*g)));do{t.data!==e&&(p=s[t.data.index]*r/g,e.vx+=d*p,e.vy+=f*p)}while(t=t.next)}}return d.initialize=function(e,r){t=e,n=r,f()},d.strength=function(t){return arguments.length?(l="function"==typeof t?t:o(+t),f(),d):l},d.distanceMin=function(t){return arguments.length?(u=t*t,d):Math.sqrt(u)},d.distanceMax=function(t){return arguments.length?(c=t*t,d):Math.sqrt(c)},d.theta=function(t){return arguments.length?(h=t*t,d):Math.sqrt(h)},d},H=function(t,e,n){var r,i,a,s=o(.1);function l(t){for(var o=0,s=r.length;o<s;++o){var l=r[o],u=l.x-e||1e-6,c=l.y-n||1e-6,h=Math.sqrt(u*u+c*c),d=(a[o]-h)*i[o]*t/h;l.vx+=u*d,l.vy+=c*d}}function u(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(r[e],e,r),i[e]=isNaN(a[e])?0:+s(r[e],e,r)}}return"function"!=typeof t&&(t=o(+t)),null==e&&(e=0),null==n&&(n=0),l.initialize=function(t){r=t,u()},l.strength=function(t){return arguments.length?(s="function"==typeof t?t:o(+t),u(),l):s},l.radius=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),u(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(n=+t,l):n},l},W=function(t){var e,n,r,i=o(.1);function a(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function s(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=o(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:o(+t),s(),a):i},a.x=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),s(),a):t},a},U=function(t){var e,n,r,i=o(.1);function a(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function s(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=o(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:o(+t),s(),a):i},a.y=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),s(),a):t},a};n.d(e,"forceCenter",function(){return r}),n.d(e,"forceCollide",function(){return u}),n.d(e,"forceLink",function(){return d}),n.d(e,"forceManyBody",function(){return G}),n.d(e,"forceRadial",function(){return H}),n.d(e,"forceSimulation",function(){return $}),n.d(e,"forceX",function(){return W}),n.d(e,"forceY",function(){return U})},t3gJ:function(t,e,n){"use strict";var r,i,o=n("TToO"),a=n("f3pQ"),s=n("JwB+"),l=n("BuFP"),u=n("IgWN"),c=0,h=0,d=0,f=1e3,p=0,g=0,v=0,m="object"==typeof performance&&performance.now?performance:Date,y="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function b(){return g||(y(_),g=m.now()+v)}function _(){g=0}function x(){this._call=this._time=this._next=null}function w(t,e,n){var r=new x;return r.restart(t,e,n),r}function S(){g=(p=m.now())+v,c=h=0;try{!function(){b(),++c;for(var t,e=r;e;)(t=g-e._time)>=0&&e._call.call(null,t),e=e._next;--c}()}finally{c=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,k(o)}(),g=0}}function C(){var t=m.now(),e=t-p;e>f&&(v-=e,p=t)}function k(t){c||(h&&(h=clearTimeout(h)),t-g>24?(t<1/0&&(h=setTimeout(S,t-m.now()-v)),d&&(d=clearInterval(d))):(d||(p=m.now(),d=setInterval(C,f)),c=1,y(S)))}x.prototype=w.prototype={constructor:x,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,k()},stop:function(){this._call&&(this._call=null,this._time=1/0,k())}};var O=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function M(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function E(){}var T="\\s*([+-]?\\d+)\\s*",A="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",I="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D=/^#([0-9a-f]{3})$/,P=/^#([0-9a-f]{6})$/,L=new RegExp("^rgb\\("+[T,T,T]+"\\)$"),j=new RegExp("^rgb\\("+[I,I,I]+"\\)$"),N=new RegExp("^rgba\\("+[T,T,T,A]+"\\)$"),R=new RegExp("^rgba\\("+[I,I,I,A]+"\\)$"),B=new RegExp("^hsl\\("+[A,I,I]+"\\)$"),F=new RegExp("^hsla\\("+[A,I,I,A]+"\\)$"),z={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function V(t){var e;return t=(t+"").trim().toLowerCase(),(e=D.exec(t))?new U((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=P.exec(t))?$(parseInt(e[1],16)):(e=L.exec(t))?new U(e[1],e[2],e[3],1):(e=j.exec(t))?new U(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?G(e[1],e[2],e[3],e[4]):(e=R.exec(t))?G(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=B.exec(t))?Y(e[1],e[2]/100,e[3]/100,1):(e=F.exec(t))?Y(e[1],e[2]/100,e[3]/100,e[4]):z.hasOwnProperty(t)?$(z[t]):"transparent"===t?new U(NaN,NaN,NaN,0):null}function $(t){return new U(t>>16&255,t>>8&255,255&t,1)}function G(t,e,n,r){return r<=0&&(t=e=n=NaN),new U(t,e,n,r)}function H(t){return t instanceof E||(t=V(t)),t?new U((t=t.rgb()).r,t.g,t.b,t.opacity):new U}function W(t,e,n,r){return 1===arguments.length?H(t):new U(t,e,n,null==r?1:r)}function U(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Y(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new q(t,e,n,r)}function X(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof q)return new q(t.h,t.s,t.l,t.opacity);if(t instanceof E||(t=V(t)),!t)return new q;if(t instanceof q)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new q(a,s,l,t.opacity)}(t):new q(t,e,n,null==r?1:r)}function q(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Z(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}O(E,V,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),O(U,W,M(E,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new U(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new U(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),O(q,X,M(E,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new q(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new q(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new U(Z(t>=240?t-240:t+120,i,r),Z(t,i,r),Z(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var K=Math.PI/180,J=180/Math.PI,Q=.95047,tt=1,et=1.08883,nt=4/29,rt=6/29,it=3*rt*rt,ot=rt*rt*rt;function at(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof pt){var e=t.h*K;return new lt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof U||(t=H(t));var n=dt(t.r),r=dt(t.g),i=dt(t.b),o=ut((.4124564*n+.3575761*r+.1804375*i)/Q),a=ut((.2126729*n+.7151522*r+.072175*i)/tt);return new lt(116*a-16,500*(o-a),200*(a-ut((.0193339*n+.119192*r+.9503041*i)/et)),t.opacity)}function st(t,e,n,r){return 1===arguments.length?at(t):new lt(t,e,n,null==r?1:r)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function ut(t){return t>ot?Math.pow(t,1/3):t/it+nt}function ct(t){return t>rt?t*t*t:it*(t-nt)}function ht(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function dt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ft(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof pt)return new pt(t.h,t.c,t.l,t.opacity);t instanceof lt||(t=at(t));var e=Math.atan2(t.b,t.a)*J;return new pt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new pt(t,e,n,null==r?1:r)}function pt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}O(lt,st,M(E,{brighter:function(t){return new lt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new lt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=tt*ct(t),new U(ht(3.2404542*(e=Q*ct(e))-1.5371385*t-.4985314*(n=et*ct(n))),ht(-.969266*e+1.8760108*t+.041556*n),ht(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),O(pt,ft,M(E,{brighter:function(t){return new pt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new pt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return at(this).rgb()}}));var gt=-.14861,vt=1.78277,mt=-.29227,yt=-.90649,bt=1.97294,_t=bt*yt,xt=bt*vt,wt=vt*mt-yt*gt;function St(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Ct)return new Ct(t.h,t.s,t.l,t.opacity);t instanceof U||(t=H(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(wt*r+_t*e-xt*n)/(wt+_t-xt),o=r-i,a=(bt*(n-i)-mt*o)/yt,s=Math.sqrt(a*a+o*o)/(bt*i*(1-i)),l=s?Math.atan2(a,o)*J-120:NaN;return new Ct(l<0?l+360:l,s,i,t.opacity)}(t):new Ct(t,e,n,null==r?1:r)}function Ct(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function kt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}O(Ct,St,M(E,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ct(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ct(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*K,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new U(255*(e+n*(gt*r+vt*i)),255*(e+n*(mt*r+yt*i)),255*(e+n*(bt*r)),this.opacity)}}));var Ot=t=>()=>t;function Mt(t,e){return function(n){return t+n*e}}function Et(t,e){var n=e-t;return n?Mt(t,n>180||n<-180?n-360*Math.round(n/360):n):Ot(isNaN(t)?e:t)}function Tt(t){return 1==(t=+t)?At:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ot(isNaN(e)?n:e)}}function At(t,e){var n=e-t;return n?Mt(t,n):Ot(isNaN(t)?e:t)}var It=function t(e){var n=Tt(e);function r(t,e){var r=n((t=W(t)).r,(e=W(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=At(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Dt(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=W(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}Dt(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return kt((n-r/e)*e,a,i,o,s)}}),Dt(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return kt((n-r/e)*e,i,o,a,s)}});var Pt=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Lt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var jt=function(t,e){return(Lt(e)?Pt:Nt)(t,e)};function Nt(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Vt(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var Rt=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Bt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ft=new RegExp(Bt.source,"g");var zt,Vt=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ot(e):("number"===r?Rt:"string"===r?(n=V(e))?(e=n,It):function(t,e){var n,r,i,o=Bt.lastIndex=Ft.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Bt.exec(t))&&(r=Ft.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Rt(n,r)})),o=Ft.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}:e instanceof V?It:e instanceof Date?function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}:Lt(e)?Pt:Array.isArray(e)?Nt:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Vt(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}:Rt)(t,e)},$t=180/Math.PI,Gt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ht=function(t,e,n,r,i,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*$t,skewX:Math.atan(l)*$t,scaleX:a,scaleY:s}};function Wt(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,r,i,o,a,s){if(t!==i||r!==o){var l=a.push("translate(",null,e,null,n);s.push({i:l-4,x:Rt(t,i)},{i:l-2,x:Rt(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Rt(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Rt(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Rt(t,n)},{i:s-2,x:Rt(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}Wt(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Gt:Ht(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Wt(function(t){return null==t?Gt:(zt||(zt=document.createElementNS("http://www.w3.org/2000/svg","g")),zt.setAttribute("transform",t),(t=zt.transform.baseVal.consolidate())?(t=t.matrix,Ht(t.a,t.b,t.c,t.d,t.e,t.f)):Gt)},", ",")",")");var Ut=1e-12;function Yt(t){return((t=Math.exp(t))+1/t)/2}(function t(e,n,r){function i(t,i){var o,a,s=t[0],l=t[1],u=t[2],c=i[0],h=i[1],d=i[2],f=c-s,p=h-l,g=f*f+p*p;if(g<Ut)a=Math.log(d/u)/e,o=function(t){return[s+t*f,l+t*p,u*Math.exp(e*t*a)]};else{var v=Math.sqrt(g),m=(d*d-u*u+r*g)/(2*u*n*v),y=(d*d-u*u-r*g)/(2*d*n*v),b=Math.log(Math.sqrt(m*m+1)-m),_=Math.log(Math.sqrt(y*y+1)-y);a=(_-b)/e,o=function(t){var r,i=t*a,o=Yt(b),c=u/(n*v)*(o*(r=e*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[s+c*f,l+c*p,u*o/Yt(e*i+b)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i})(Math.SQRT2,2,4);function Xt(t){return function(e,n){var r=t((e=X(e)).h,(n=X(n)).h),i=At(e.s,n.s),o=At(e.l,n.l),a=At(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}Xt(Et),Xt(At);function qt(t){return function(e,n){var r=t((e=ft(e)).h,(n=ft(n)).h),i=At(e.c,n.c),o=At(e.l,n.l),a=At(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}qt(Et),qt(At);function Zt(t){return function e(n){function r(e,r){var i=t((e=St(e)).h,(r=St(r)).h),o=At(e.s,r.s),a=At(e.l,r.l),s=At(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}Zt(Et),Zt(At);var Kt=n("V9uW"),Jt=n("TnYd"),Qt=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},te=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},ee=[1,0,0,0,1,0,0,0,1];function ne(t,e,n){var r,i=e.startTime;if(n<i+e.delay||e._paused)return!1;var o=e.duration,a=e.easing,s=Object(Kt.a)(a);if(n=n-i-e.delay,e.repeat)r=s(r=n%o/o);else{if(!((r=n/o)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=s(r)}if(e.onFrame){var l=e.onFrame(r);t.attr(l)}else!function(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var s in o)if(!Object(u.isEqual)(i[s],o[s]))if("path"===s){var l=o[s],c=i[s];l.length>c.length?(l=Jt.parsePathString(o[s]),c=Jt.parsePathString(i[s]),c=Jt.fillPathByDiff(c,l),c=Jt.formatPath(c,l),e.fromAttrs.path=c,e.toAttrs.path=l):e.pathFormatted||(l=Jt.parsePathString(o[s]),c=Jt.parsePathString(i[s]),c=Jt.formatPath(c,l),e.fromAttrs.path=c,e.toAttrs.path=l,e.pathFormatted=!0),r[s]=[];for(var h=0;h<l.length;h++){for(var d=l[h],f=c[h],p=[],g=0;g<d.length;g++)Object(u.isNumber)(d[g])&&f&&Object(u.isNumber)(f[g])?(a=Vt(f[g],d[g]),p.push(a(n))):p.push(d[g]);r[s].push(p)}}else if("matrix"===s){var v=jt(i[s]||ee,o[s]||ee)(n);r[s]=v}else Qt(s)&&te(o[s])?r[s]=o[s]:Object(u.isFunction)(o[s])||(a=Vt(i[s],o[s]),r[s]=a(n));t.attr(r)}}(t,e,r);return!1}var re=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=w(function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],ne(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}})},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach(function(e){e.stopAnimate(t)}),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),ie=n("Y1ED"),oe=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ae(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function se(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Object(l.g)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var le=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(l.a)(oe,function(n){e.addEventListener(n,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(l.a)(oe,function(n){e.removeEventListener(n,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new ie.a(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,u=a.clientX-t.clientX,c=a.clientY-t.clientY;l>120||u*u+c*c>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,ae(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||se(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{ae(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),ue=Object(a.a)(),ce=ue&&"firefox"===ue.name,he=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(o.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(l.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new le({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new re(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");l.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");l.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(ce&&!Object(l.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(l.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(s.a);e.a=he},t4zo:function(t,e,n){(function(n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function e(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){s(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):r(l.href)?e(t,n,a):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){i(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),n);else if(r(t))e(t,n,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){i(a)})}}:function(t,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,r);var s="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var h=o.URL||o.webkitURL,d=h.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});o.saveAs=s.saveAs=s,void 0!==t&&(t.exports=s)})?r.apply(e,i):r)||(t.exports=o)}).call(e,n("DuR2"))},t8qj:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},t8x9:function(t,e,n){var r=n("77Pl"),i=n("lOnJ"),o=n("dSzd")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},tBlf:function(t,e,n){"use strict";t.exports=function(t,e,n){var r,i,o,a,s=-1,l=t.posMax,u=t.pos;for(t.pos=e+1,r=1;t.pos<l;){if(93===(o=t.src.charCodeAt(t.pos))&&0===--r){i=!0;break}if(a=t.pos,t.md.inline.skipToken(t),91===o)if(a===t.pos-1)r++;else if(n)return t.pos=u,-1}return i&&(s=t.pos),t.pos=u,s}},tIFN:function(t,e,n){"use strict";var r=n("cGG2"),i=n("JP+z"),o=n("XmWM"),a=n("DUeU");function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var l=s(n("KCLY"));l.Axios=o,l.create=function(t){return s(a(l.defaults,t))},l.Cancel=n("dVOP"),l.CancelToken=n("cWxy"),l.isCancel=n("pBtG"),l.all=function(t){return Promise.all(t)},l.spread=n("pxG4"),l.isAxiosError=n("SLDG"),t.exports=l,t.exports.default=l},tN2E:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=e.ForceAtlas2Layout=e.ComboCombinedLayout=e.ComboForceLayout=e.GForceGPULayout=e.FruchtermanGPULayout=e.FruchtermanLayout=e.MDSLayout=e.ConcentricLayout=e.RadialLayout=e.DagreCompoundLayout=e.DagreLayout=e.CircularLayout=e.ForceLayout=e.Force2Layout=e.GForceLayout=e.RandomLayout=e.GridLayout=e.Layouts=e.Layout=void 0;var o=n("Upny");Object.defineProperty(e,"GridLayout",{enumerable:!0,get:function(){return o.GridLayout}});var a=n("VWzN");Object.defineProperty(e,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var s=n("9938");Object.defineProperty(e,"GForceLayout",{enumerable:!0,get:function(){return s.GForceLayout}});var l=n("CLuh");Object.defineProperty(e,"Force2Layout",{enumerable:!0,get:function(){return l.Force2Layout}});var u=n("mxuM");Object.defineProperty(e,"ForceLayout",{enumerable:!0,get:function(){return u.ForceLayout}});var c=n("Rq7w");Object.defineProperty(e,"CircularLayout",{enumerable:!0,get:function(){return c.CircularLayout}});var h=n("Cq/5");Object.defineProperty(e,"DagreLayout",{enumerable:!0,get:function(){return h.DagreLayout}});var d=n("0IlV");Object.defineProperty(e,"DagreCompoundLayout",{enumerable:!0,get:function(){return d.DagreCompoundLayout}});var f=n("uJhO");Object.defineProperty(e,"RadialLayout",{enumerable:!0,get:function(){return f.RadialLayout}});var p=n("5XWd");Object.defineProperty(e,"ConcentricLayout",{enumerable:!0,get:function(){return p.ConcentricLayout}});var g=n("6D6L");Object.defineProperty(e,"MDSLayout",{enumerable:!0,get:function(){return g.MDSLayout}});var v=n("Fg8h");Object.defineProperty(e,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var m=n("COaM");Object.defineProperty(e,"FruchtermanGPULayout",{enumerable:!0,get:function(){return m.FruchtermanGPULayout}});var y=n("ZoBt");Object.defineProperty(e,"GForceGPULayout",{enumerable:!0,get:function(){return y.GForceGPULayout}});var b=n("C3+6");Object.defineProperty(e,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var _=n("nOum");Object.defineProperty(e,"ComboCombinedLayout",{enumerable:!0,get:function(){return _.ComboCombinedLayout}});var x=n("5tg8");Object.defineProperty(e,"ForceAtlas2Layout",{enumerable:!0,get:function(){return x.ForceAtlas2Layout}});var w=n("Iker");Object.defineProperty(e,"ERLayout",{enumerable:!0,get:function(){return w.ERLayout}});var S=n("fCEa");Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return S.Layout}}),Object.defineProperty(e,"Layouts",{enumerable:!0,get:function(){return S.Layouts}}),i(n("IjT6"),e)},tNJR:function(t,e,n){"use strict";var r=n("+N5+").isSpace;t.exports=function(t,e,n,i){var o,a,s,l,u=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(42!==(o=t.src.charCodeAt(u++))&&45!==o&&95!==o)return!1;for(a=1;u<c;){if((s=t.src.charCodeAt(u++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(!!i||(t.line=e+1,(l=t.push("hr","hr",0)).map=[e,t.line],l.markup=Array(a+1).join(String.fromCharCode(o)),!0))}},tZ0v:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("IgWN"),i=n("BIhM"),o=function(){function t(t,e,n,r,o){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||i.VACANT_NODE_LABEL,edgeLabel:r||i.VACANT_EDGE_LABEL,nodeLabel2:o||i.VACANT_NODE_LABEL}}return t.prototype.equalTo=function(t){return this.fromNode===t.formNode&&this.toNode===t.toNode&&this.nodeEdgeNodeLabel===t.nodeEdgeNodeLabel},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t}(),a=function(){function t(){this.rmpath=[],this.dfsEdgeList=[]}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(this.dfsEdgeList[n]!==t[n])return!1;return!0},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t.prototype.pushBack=function(t,e,n,r,i){return this.dfsEdgeList.push(new o(t,e,n,r,i)),this.dfsEdgeList},t.prototype.toGraph=function(t,e){void 0===t&&(t=i.VACANT_GRAPH_ID),void 0===e&&(e=!1);var n=new i.Graph(t,!0,e);return this.dfsEdgeList.forEach(function(t){var e=t.fromNode,r=t.toNode,o=t.nodeEdgeNodeLabel,a=o.nodeLabel1,s=o.edgeLabel,l=o.nodeLabel2;a!==i.VACANT_NODE_LABEL&&n.addNode(e,a),l!==i.VACANT_NODE_LABEL&&n.addNode(r,l),a!==i.VACANT_NODE_LABEL&&l!==a&&n.addEdge(void 0,e,r,s)}),n},t.prototype.buildRmpath=function(){this.rmpath=[];for(var t=void 0,e=this.dfsEdgeList.length-1;e>=0;e--){var n=this.dfsEdgeList[e],r=n.fromNode,i=n.toNode;r<i&&(void 0===t||i===t)&&(this.rmpath.push(e),t=r)}return this.rmpath},t.prototype.getNodeNum=function(){var t={};return this.dfsEdgeList.forEach(function(e){t[e.fromNode]||(t[e.fromNode]=!0),t[e.toNode]||(t[e.toNode]=!0)}),Object.keys(t).length},t}(),s=function(){function t(t){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],t){for(;t;){var e=t.edge;this.edges.push(e),this.nodesUsed[e.from]=1,this.nodesUsed[e.to]=1,this.edgesUsed[e.id]=1,t=t.preNode}this.edges=this.edges.reverse()}}return t.prototype.hasNode=function(t){return 1===this.nodesUsed[t.id]},t.prototype.hasEdge=function(t){return 1===this.edgesUsed[t.id]},t}(),l=function(){function t(t){var e=t.graphs,n=t.minSupport,r=void 0===n?2:n,i=t.minNodeNum,o=void 0===i?1:i,s=t.maxNodeNum,l=void 0===s?4:s,u=t.top,c=void 0===u?10:u,h=t.directed,d=void 0!==h&&h,f=t.verbose,p=void 0!==f&&f;this.graphs=e,this.dfsCode=new a,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=r,this.top=c,this.directed=d,this.counter=0,this.maxNodeNum=l,this.minNodeNum=o,this.verbose=p,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[]}return t.prototype.findForwardRootEdges=function(t,e){var n=this,r=[],i=t.nodeMap;return e.edges.forEach(function(t){(n.directed||e.label<=i[t.to].label)&&r.push(t)}),r},t.prototype.findBackwardEdge=function(t,e,n,r){if(!this.directed&&e===n)return null;for(var i=t.nodeMap,o=i[n.to].edges,a=o.length,s=0;s<a;s++){var l=o[s];if(!r.hasEdge(l)&&l.to===e.from)if(this.directed){if(i[e.from].label<i[n.to].label||i[e.from].label===i[n.to].label&&e.label<=l.label)return l}else if(e.label<l.label||e.label===l.label&&i[e.to].label<=i[n.to].label)return l}return null},t.prototype.findForwardPureEdges=function(t,e,n,r){for(var i=[],o=e.to,a=t.nodeMap[o].edges,s=a.length,l=0;l<s;l++){var u=a[l],c=t.nodeMap[u.to];n<=c.label&&!r.hasNode(c)&&i.push(u)}return i},t.prototype.findForwardRmpathEdges=function(t,e,n,r){for(var i=[],o=t.nodeMap,a=o[e.to].label,s=o[e.from].edges,l=s.length,u=0;u<l;u++){var c=s[u],h=o[c.to].label;e.to===c.to||n>h||r.hasNode(o[c.to])||(e.label<c.label||e.label===c.label&&a<=h)&&i.push(c)}return i},t.prototype.getSupport=function(t){var e={};return t.forEach(function(t){e[t.graphId]||(e[t.graphId]=!0)}),Object.keys(e).length},t.prototype.findMinLabel=function(t){var e=void 0;return Object.keys(t).forEach(function(n){var r=t[n],i=r.nodeLabel1,o=r.edgeLabel,a=r.nodeLabel2;e?(i<e.nodeLabel1||i===e.nodeLabel1&&o<e.edgeLabel||i===e.nodeLabel1&&o===e.edgeLabel&&a<e.nodeLabel2)&&(e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a}):e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a}}),e},t.prototype.isMin=function(){var t=this,e=this.dfsCode;if(this.verbose&&console.log("isMin checking",e),1===e.dfsEdgeList.length)return!0;var n=this.directed,r=e.toGraph(i.VACANT_GRAPH_ID,n),l=r.nodeMap,u=new a,c={};r.nodes.forEach(function(e){t.findForwardRootEdges(r,e).forEach(function(t){var n=l[t.to],i="".concat(e.label,"-").concat(t.label,"-").concat(n.label);c[i]||(c[i]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:n.label});var o={graphId:r.id,edge:t,preNode:null};c[i].projected.push(o)})});var h=this.findMinLabel(c);if(h){u.dfsEdgeList.push(new o(0,1,h.nodeLabel1,h.edgeLabel,h.nodeLabel2));var d="".concat(h.nodeLabel1,"-").concat(h.edgeLabel,"-").concat(h.nodeLabel2);return function a(c){for(var h=u.buildRmpath(),d=u.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,f=u.dfsEdgeList[h[0]].toNode,p={},g=!1,v=0,m=n?-1:0,y=function(e){if(g)return"break";c.forEach(function(n){var i=new s(n),o=t.findBackwardEdge(r,i.edges[h[e]],i.edges[h[0]],i);o&&(p[o.label]||(p[o.label]={projected:[],edgeLabel:o.label}),p[o.label].projected.push({graphId:r.id,edge:p,preNode:n}),v=u.dfsEdgeList[h[e]].fromNode,g=!0)})},b=h.length-1;b>m&&"break"!==y(b);b--);if(g){var _=t.findMinLabel(p);u.dfsEdgeList.push(new o(f,v,i.VACANT_NODE_LABEL,_.edgeLabel,i.VACANT_NODE_LABEL));var x=u.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[x]===u.dfsEdgeList[x]&&a(p[_.edgeLabel].projected)}var w={};g=!1;var S=0;c.forEach(function(e){var n=new s(e),i=t.findForwardPureEdges(r,n.edges[h[0]],d,n);i.length>0&&(g=!0,S=f,i.forEach(function(t){var n="".concat(t.label,"-").concat(l[t.to].label);w[n]||(w[n]={projected:[],edgeLabel:t.label,nodeLabel2:l[t.to].label}),w[n].projected.push({graphId:r.id,edge:t,preNode:e})}))});var C=h.length,k=function(e){if(g)return"break";var n=h[e];c.forEach(function(e){var i=new s(e),o=t.findForwardRmpathEdges(r,i.edges[n],d,i);o.length>0&&(g=!0,S=u.dfsEdgeList[n].fromNode,o.forEach(function(t){var n="".concat(t.label,"-").concat(l[t.to].label);w[n]||(w[n]={projected:[],edgeLabel:t.label,nodeLabel2:l[t.to].label}),w[n].projected.push({graphId:r.id,edge:t,preNode:e})}))})};for(b=0;b<C&&"break"!==k(b);b++);if(!g)return!0;var O=t.findMinLabel(w);u.dfsEdgeList.push(new o(S,f+1,i.VACANT_NODE_LABEL,O.edgeLabel,O.nodeLabel2));var M=u.dfsEdgeList.length-1;return e.dfsEdgeList[M]===u.dfsEdgeList[M]&&a(w["".concat(O.edgeLabel,"-").concat(O.nodeLabel2)].projected)}(c[d].projected)}},t.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var t=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push((0,r.clone)(t))}},t.prototype.subGraphMining=function(t){var e=this;if(!(this.getSupport(t)<this.minSupport)&&this.isMin()){this.report();var n=this.dfsCode.getNodeNum(),r=this.dfsCode.buildRmpath(),a=this.dfsCode.dfsEdgeList[r[0]].toNode,l=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,u={},c={};t.forEach(function(t){for(var i=e.graphs[t.graphId],o=i.nodeMap,h=new s(t),d=r.length-1;d>=0;d--){var f=e.findBackwardEdge(i,h.edges[r[d]],h.edges[r[0]],h);if(f){var p="".concat(e.dfsCode.dfsEdgeList[r[d]].fromNode,"-").concat(f.label);c[p]||(c[p]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[d]].fromNode,edgeLabel:f.label}),c[p].projected.push({graphId:t.graphId,edge:f,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(i,h.edges[r[0]],l,h).forEach(function(e){var n="".concat(a,"-").concat(e.label,"-").concat(o[e.to].label);u[n]||(u[n]={projected:[],fromNodeId:a,edgeLabel:e.label,nodeLabel2:o[e.to].label}),u[n].projected.push({graphId:t.graphId,edge:e,preNode:t})});var g=function(n){e.findForwardRmpathEdges(i,h.edges[r[n]],l,h).forEach(function(i){var a="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(o[i.to].label);u[a]||(u[a]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:o[i.to].label}),u[a].projected.push({graphId:t.graphId,edge:i,preNode:t})})};for(d=0;d<r.length;d++)g(d)}}),Object.keys(c).forEach(function(t){var n=c[t],r=n.toNodeId,i=n.edgeLabel;e.dfsCode.dfsEdgeList.push(new o(a,r,"-1",i,"-1")),e.subGraphMining(c[t].projected),e.dfsCode.dfsEdgeList.pop()}),Object.keys(u).forEach(function(t){var n=u[t],r=n.fromNodeId,s=n.edgeLabel,l=n.nodeLabel2;e.dfsCode.dfsEdgeList.push(new o(r,a+1,i.VACANT_NODE_LABEL,s,l)),e.subGraphMining(u[t].projected),e.dfsCode.dfsEdgeList.pop()})}},t.prototype.generate1EdgeFrequentSubGraphs=function(){var t=this.graphs,e=this.directed,n=this.minSupport,r=this.frequentSize1Subgraphs,i={},o={},a={},s={};return Object.keys(t).forEach(function(n){var r=t[n],l=r.nodeMap;r.nodes.forEach(function(t,r){var u=t.label,c="".concat(n,"-").concat(u);if(!a[c]){var h=i[u]||0;h++,i[u]=h}a[c]={graphKey:n,label:u},t.edges.forEach(function(t){var r=u,i=l[t.to].label;if(!e&&r>i){var a=i;i=r,r=a}var c=t.label,h="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),d="".concat(r,"-").concat(c,"-").concat(i);if(!o[d]){var f=o[d]||0;f++,o[d]=f}s[h]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}})})}),Object.keys(i).forEach(function(t){if(!(i[t]<n)){var e={nodes:[],edges:[]};e.nodes.push({id:"0",label:t}),r.push(e)}}),r},t.prototype.run=function(){var t=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var e=this.graphs,n=(this.directed,{});Object.keys(e).forEach(function(r){var i=e[r],o=i.nodeMap;i.nodes.forEach(function(e){t.findForwardRootEdges(i,e).forEach(function(t){var i=o[t.to],a="".concat(e.label,"-").concat(t.label,"-").concat(i.label);n[a]||(n[a]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:i.label});var s={graphId:r,edge:t,preNode:null};n[a].projected.push(s)})})}),Object.keys(n).forEach(function(e){var r=n[e],i=r.projected,a=r.nodeLabel1,s=r.edgeLabel,l=r.nodeLabel2;t.dfsCode.dfsEdgeList.push(new o(0,1,a,s,l)),t.subGraphMining(i),t.dfsCode.dfsEdgeList.pop()})}},t}(),u=function(t){var e=t.graphs,n=t.directed,r=void 0!==n&&n,o=t.nodeLabelProp,a=void 0===o?"cluster":o,s=t.edgeLabelProp,u=void 0===s?"cluster":s,c=function(t,e,n,r){var o={};return Object.keys(t).forEach(function(a,s){var l=t[a],u=new i.Graph(s,!0,e),c={};l.nodes.forEach(function(t,e){u.addNode(e,t[n]),c[t.id]=e}),l.edges.forEach(function(t,e){var n=c[t.source],i=c[t.target];u.addEdge(-1,n,i,t[r])}),u&&u.getNodeNum()&&(o[u.id]=u)}),o}(e,r,a,u),h=t.minSupport,d=t.maxNodeNum,f=t.minNodeNum,p=t.verbose,g=t.top,v=new l({graphs:c,minSupport:h,maxNodeNum:d,minNodeNum:f,top:g,verbose:p,directed:r});return v.run(),function(t,e,n){var r=[];return t.forEach(function(t){var i={nodes:[],edges:[]};t.nodes.forEach(function(t){var n;i.nodes.push(((n={id:"".concat(t.id)})[e]=t.label,n))}),t.edges.forEach(function(t){var e;i.edges.push(((e={source:"".concat(t.from),target:"".concat(t.to)})[n]=t.label,e))}),r.push(i)}),r}(v.frequentSubgraphs,a,u)};e.default=u},ttyz:function(t,e,n){"use strict";var r=n("9C8M"),i=n("LIJb");t.exports=n("qo66")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},u8ag:function(t,e,n){"use strict";var r=n("+N5+").normalizeReference,i=n("+N5+").isSpace;t.exports=function(t,e,n,o){var a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w=0,S=t.bMarks[e]+t.tShift[e],C=t.eMarks[e],k=e+1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(S))return!1;for(;++S<C;)if(93===t.src.charCodeAt(S)&&92!==t.src.charCodeAt(S-1)){if(S+1===C)return!1;if(58!==t.src.charCodeAt(S+1))return!1;break}for(u=t.lineMax,_=t.md.block.ruler.getRules("reference"),g=t.parentType,t.parentType="reference";k<u&&!t.isEmpty(k);k++)if(!(t.sCount[k]-t.blkIndent>3||t.sCount[k]<0)){for(b=!1,h=0,d=_.length;h<d;h++)if(_[h](t,k,u,!0)){b=!0;break}if(b)break}for(C=(y=t.getLines(e,k,t.blkIndent,!1).trim()).length,S=1;S<C;S++){if(91===(a=y.charCodeAt(S)))return!1;if(93===a){p=S;break}10===a?w++:92===a&&++S<C&&10===y.charCodeAt(S)&&w++}if(p<0||58!==y.charCodeAt(p+1))return!1;for(S=p+2;S<C;S++)if(10===(a=y.charCodeAt(S)))w++;else if(!i(a))break;if(!(v=t.md.helpers.parseLinkDestination(y,S,C)).ok)return!1;if(c=t.md.normalizeLink(v.str),!t.md.validateLink(c))return!1;for(s=S=v.pos,l=w+=v.lines,m=S;S<C;S++)if(10===(a=y.charCodeAt(S)))w++;else if(!i(a))break;for(v=t.md.helpers.parseLinkTitle(y,S,C),S<C&&m!==S&&v.ok?(x=v.str,S=v.pos,w+=v.lines):(x="",S=s,w=l);S<C&&(a=y.charCodeAt(S),i(a));)S++;if(S<C&&10!==y.charCodeAt(S)&&x)for(x="",S=s,w=l;S<C&&(a=y.charCodeAt(S),i(a));)S++;return!(S<C&&10!==y.charCodeAt(S))&&(!!(f=r(y.slice(1,p)))&&(!!o||(void 0===t.env.references&&(t.env.references={}),void 0===t.env.references[f]&&(t.env.references[f]={title:x,href:c}),t.parentType=g,t.line=e+w+1,!0)))}},uJO0:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},uJhO:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("2F+n"),e)},uLhX:function(t,e,n){var r=n("NkRn"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},uSER:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pageRankAsync=e.minimumSpanningTreeAsync=e.louvainAsync=e.labelPropagationAsync=e.getOutDegreeAsync=e.getNeighborsAsync=e.getInDegreeAsync=e.getDegreeAsync=e.getAdjMatrixAsync=e.floydWarshallAsync=e.findShortestPathAsync=e.findAllPathAsync=e.dijkstraAsync=e.detectCycleAsync=e.detectAllUndirectedCycleAsync=e.detectAllDirectedCycleAsync=e.detectAllCyclesAsync=e.connectedComponentAsync=e.GADDIAsync=void 0;var r,i=(r=n("reIy"))&&r.__esModule?r:{default:r},o=n("LsnM");e.getAdjMatrixAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getAdjMatrix).apply(void 0,[t,e])};e.connectedComponentAsync=function(t,e){return(0,i.default)(o.ALGORITHM.connectedComponent).apply(void 0,[t,e])};e.getDegreeAsync=function(t){return(0,i.default)(o.ALGORITHM.getDegree)(t)};e.getInDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getInDegree)(t,e)};e.getOutDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getOutDegree)(t,e)};e.detectCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectCycle)(t)};e.detectAllCyclesAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllCycles)(t)};e.detectAllDirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllDirectedCycle)(t)};e.detectAllUndirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllUndirectedCycle)(t)};e.dijkstraAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.dijkstra).apply(void 0,[t,e,n,r])};e.findAllPathAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.findAllPath).apply(void 0,[t,e,n,r])};e.findShortestPathAsync=function(t,e,n,r,a){return(0,i.default)(o.ALGORITHM.findShortestPath).apply(void 0,[t,e,n,r,a])};e.floydWarshallAsync=function(t,e){return(0,i.default)(o.ALGORITHM.floydWarshall).apply(void 0,[t,e])};e.labelPropagationAsync=function(t,e,n,r){return void 0===r&&(r=1e3),(0,i.default)(o.ALGORITHM.labelPropagation)(t,e,n,r)};e.louvainAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.louvain)(t,e,n,r)};e.minimumSpanningTreeAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.minimumSpanningTree).apply(void 0,[t,e,n])};e.pageRankAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.pageRank).apply(void 0,[t,e,n])};e.getNeighborsAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.getNeighbors).apply(void 0,[t,e,n])};e.GADDIAsync=function(t,e,n,r,a,s,l){return void 0===n&&(n=!1),void 0===s&&(s="cluster"),void 0===l&&(l="cluster"),(0,i.default)(o.ALGORITHM.GADDI).apply(void 0,[t,e,n,r,a,s,l])}},"uX+9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("+ZTV"),i=function(t,e,n,o,a,s,l){var u=t.children(l);if(null===u||void 0===u?void 0:u.length){var c=(0,r.addBorderNode)(t,"_bt"),h=(0,r.addBorderNode)(t,"_bb"),d=t.node(l);t.setParent(c,l),d.borderTop=c,t.setParent(h,l),d.borderBottom=h,null===u||void 0===u||u.forEach(function(r){i(t,e,n,o,a,s,r);var u=t.node(r),d=u.borderTop?u.borderTop:r,f=u.borderBottom?u.borderBottom:r,p=u.borderTop?o:2*o,g=d!==f?1:a-s[l]+1;t.setEdge(c,d,{minlen:g,weight:p,nestingEdge:!0}),t.setEdge(f,h,{minlen:g,weight:p,nestingEdge:!0})}),t.parent(l)||t.setEdge(e,c,{weight:0,minlen:a+s[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})},o=function(t){var e,n={},r=function(e,i){var o=t.children(e);null===o||void 0===o||o.forEach(function(t){return r(t,i+1)}),n[e]=i};return null===(e=t.children())||void 0===e||e.forEach(function(t){return r(t,1)}),n},a=function(t){var e=0;return t.edges().forEach(function(n){e+=t.edge(n).weight}),e};e.default={run:function(t){var e,n=(0,r.addDummyNode)(t,"root",{},"_root"),s=o(t),l=Math.max.apply(Math,Object.values(s));Math.abs(l)===1/0&&(l=1);var u=l-1,c=2*u+1;t.graph().nestingRoot=n,t.edges().forEach(function(e){t.edge(e).minlen*=c});var h=a(t)+1;null===(e=t.children())||void 0===e||e.forEach(function(e){i(t,n,c,h,u,s,e)}),t.graph().nodeRankFactor=c},cleanup:function(t){var e=t.graph();e.nestingRoot&&t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach(function(e){t.edge(e).nestingEdge&&t.removeEdgeObj(e)})}}},uY1a:function(t,e){t.exports=function(t,e,n,r){var i,o=0;return"boolean"!=typeof e&&(r=n,n=e,e=void 0),function(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>t?u():!0!==e&&(i=setTimeout(r?function(){i=void 0}:u,void 0===r?t-s:t))}}},"uaD/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findShortestPath=e.findAllPath=void 0;var r,i=(r=n("2j9C"))&&r.__esModule?r:{default:r},o=n("lSAc");e.findShortestPath=function(t,e,n,r,o){var a=(0,i.default)(t,e,r,o),s=a.length,l=a.path,u=a.allPath;return{length:s[n],path:l[n],allPath:u[n]}};e.findAllPath=function(t,e,n,r){var i;if(e===n)return[[e]];var a=t.edges,s=void 0===a?[]:a,l=[e],u=((i={})[e]=!0,i),c=[],h=[],d=r?(0,o.getNeighbors)(e,s,"target"):(0,o.getNeighbors)(e,s);for(c.push(d);l.length>0&&c.length>0;){var f=c[c.length-1];if(f.length){var p=f.shift();if(p&&(l.push(p),u[p]=!0,d=r?(0,o.getNeighbors)(p,s,"target"):(0,o.getNeighbors)(p,s),c.push(d.filter(function(t){return!u[t]}))),l[l.length-1]===n){var g=l.map(function(t){return t});h.push(g),v=l.pop(),u[v]=!1,c.pop()}}else{var v=l.pop();u[v]=!1,c.pop()}}return h}},uiO5:function(t,e,n){"use strict";t.exports=function(t){var e,n,r,i=t.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(e=i[n]).type&&t.md.inline.parse(e.content,t.md,t.env,e.children)}},ujcs:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*g}},ujtc:function(t,e,n){"use strict";var r=n("+N5+").unescapeAll;t.exports=function(t,e,n){var i,o,a=e,s={ok:!1,pos:0,lines:0,str:""};if(60===t.charCodeAt(a)){for(a++;a<n;){if(10===(i=t.charCodeAt(a)))return s;if(60===i)return s;if(62===i)return s.pos=a+1,s.str=r(t.slice(e+1,a)),s.ok=!0,s;92===i&&a+1<n?a+=2:a++}return s}for(o=0;a<n&&32!==(i=t.charCodeAt(a))&&!(i<32||127===i);)if(92===i&&a+1<n){if(32===t.charCodeAt(a+1))break;a+=2}else{if(40===i&&++o>32)return s;if(41===i){if(0===o)break;o--}a++}return e===a?s:0!==o?s:(s.str=r(t.slice(e,a)),s.pos=a,s.ok=!0,s)}},ukGi:function(t,e,n){"use strict";var r=n("+N5+"),i=n("CzOf"),o=n("rnHg"),a=n("MHwQ"),s=n("SFHI"),l=n("9v3E"),u=n("v+HC"),c=n("HxqY"),h=n("xCWu"),d={default:n("eHQZ"),zero:n("oQJ3"),commonmark:n("TMZu")},f=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function g(t){var e=t.trim().toLowerCase();return!f.test(e)||!!p.test(e)}var v=["http:","https:","mailto:"];function m(t){var e=c.parse(t,!0);if(e.hostname&&(!e.protocol||v.indexOf(e.protocol)>=0))try{e.hostname=h.toASCII(e.hostname)}catch(t){}return c.encode(c.format(e))}function y(t){var e=c.parse(t,!0);if(e.hostname&&(!e.protocol||v.indexOf(e.protocol)>=0))try{e.hostname=h.toUnicode(e.hostname)}catch(t){}return c.decode(c.format(e),c.decode.defaultChars+"%")}function b(t,e){if(!(this instanceof b))return new b(t,e);e||r.isString(t)||(e=t||{},t="default"),this.inline=new l,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new u,this.validateLink=g,this.normalizeLink=m,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(t),e&&this.set(e)}b.prototype.set=function(t){return r.assign(this.options,t),this},b.prototype.configure=function(t){var e,n=this;if(r.isString(t)&&!(t=d[e=t]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2)}),this},b.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(t){return n.indexOf(t)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(t){return n.indexOf(t)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},b.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},b.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},b.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)},t.exports=b},uqUo:function(t,e,n){var r=n("kM2E"),i=n("FeBl"),o=n("S82l");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},urW8:function(t,e,n){"use strict";e.__esModule=!0,e.i18n=e.use=e.t=void 0;var r=a(n("Vi3T")),i=a(n("7+uW")),o=a(n("i3rX"));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n("SvnF")).default)(i.default),l=r.default,u=!1,c=function(){var t=Object.getPrototypeOf(this||i.default).$t;if("function"==typeof t&&i.default.locale)return u||(u=!0,i.default.locale(i.default.config.lang,(0,o.default)(l,i.default.locale(i.default.config.lang)||{},{clone:!0}))),t.apply(this,arguments)},h=e.t=function(t,e){var n=c.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=t.split("."),i=l,o=0,a=r.length;o<a;o++){if(n=i[r[o]],o===a-1)return s(n,e);if(!n)return"";i=n}return""},d=e.use=function(t){l=t||l},f=e.i18n=function(t){c=t||c};e.default={use:d,t:h,i18n:f}},"us/S":function(t,e,n){t.exports={default:n("Xd32"),__esModule:!0}},"v+HC":function(t,e,n){"use strict";function r(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function i(t){return Object.prototype.toString.call(t)}function o(t){return"[object Function]"===i(t)}function a(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var l={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&":"===t[e-3]?0:e>=3&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function h(t){var e=t.re=n("CoRl")(t.__opts__),r=t.__tlds__.slice();function s(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push(u),r.push(e.src_xn),e.src_tlds=r.join("|"),e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var l=[];function c(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach(function(e){var n=t.__schemas__[e];if(null!==n){var r,a={validate:null,link:null};if(t.__compiled__[e]=a,"[object Object]"===i(n))return!function(t){return"[object RegExp]"===i(t)}(n.validate)?o(n.validate)?a.validate=n.validate:c(e,n):a.validate=(r=n.validate,function(t,e){var n=t.slice(e);return r.test(n)?n.match(r)[0].length:0}),void(o(n.normalize)?a.normalize=n.normalize:n.normalize?c(e,n):a.normalize=function(t,e){e.normalize(t)});!function(t){return"[object String]"===i(t)}(n)?c(e,n):l.push(e)}}),l.forEach(function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)}),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var h=Object.keys(t.__compiled__).filter(function(e){return e.length>0&&t.__compiled__[e]}).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+h+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+h+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),function(t){t.__index__=-1,t.__text_cache__=""}(t)}function d(t,e){var n=new function(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function f(t,e){if(!(this instanceof f))return new f(t,e);var n;e||(n=t,Object.keys(n||{}).reduce(function(t,e){return t||s.hasOwnProperty(e)},!1)&&(e=t,t={})),this.__opts__=r({},s,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,t),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},h(this)}f.prototype.add=function(t,e){return this.__schemas__[t]=e,h(this),this},f.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},f.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,i,o,a,s,l;if(this.re.schema_test.test(t))for((s=this.re.schema_search).lastIndex=0;null!==(e=s.exec(t));)if(i=this.testSchemaAt(t,e[2],s.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&null!==(r=t.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},f.prototype.pretest=function(t){return this.re.pretest.test(t)},f.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},f.prototype.match=function(t){var e=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(d(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(d(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},f.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var e=this.re.schema_at_start.exec(t);if(!e)return null;var n=this.testSchemaAt(t,e[2],e[0].length);return n?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+n,d(this,0)):null},f.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(t,e,n){return t!==n[e-1]}).reverse(),h(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,h(this),this)},f.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},f.prototype.onCompile=function(){},t.exports=f},"v/lF":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=t.nodes().filter(function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length)}).map(function(e){return t.node(e).rank}),r=Math.max.apply(Math,n),i=[],o=0;o<r+1;o++)i[o]=[];null===e||void 0===e||e.forEach(function(e){var n=t.node(e);!n||null!==n&&void 0!==n&&n.dummy||isNaN(n.rank)||(n.fixorder=i[n.rank].length,i[n.rank].push(e))})}},"vFc/":function(t,e,n){var r=n("TcQ7"),i=n("QRG4"),o=n("fkB2");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},"vIB/":function(t,e,n){"use strict";var r=n("O4g8"),i=n("kM2E"),o=n("880/"),a=n("hJx8"),s=n("/bQp"),l=n("94VQ"),u=n("e6n0"),c=n("PzxK"),h=n("dSzd")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,p,g,v,m){l(n,e,p);var y,b,_,x=function(t){if(!d&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==g,C=!1,k=t.prototype,O=k[h]||k["@@iterator"]||g&&k[g],M=O||x(g),E=g?S?x("entries"):M:void 0,T="Array"==e&&k.entries||O;if(T&&(_=c(T.call(new t)))!==Object.prototype&&_.next&&(u(_,w,!0),r||"function"==typeof _[h]||a(_,h,f)),S&&O&&"values"!==O.name&&(C=!0,M=function(){return O.call(this)}),r&&!m||!d&&!C&&k[h]||a(k,h,M),s[e]=M,s[w]=f,g)if(y={values:S?M:x("values"),keys:v?M:x("keys"),entries:E},m)for(b in y)b in k||o(k,b,y[b]);else i(i.P+i.F*(d||C),e,y);return y}},vImi:function(t,e,n){var r=n("Y/tY");function i(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),a=o.length,s=0;s<a;s++){var l=o[s],u=e[l];-1===u.distance&&(u.distance=e[i].distance+1,u.parent=i,n.unshift(l))}return e}function o(t,e){return function(n){return e(t(n))}}function a(t,e){for(var n=[e[t].parent,t],i=r[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=o(r[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}t.exports=function(t){for(var e=i(t),n={},r=Object.keys(e),o=r.length,s=0;s<o;s++){var l=r[s];null!==e[l].parent&&(n[l]=a(l,e))}return n}},vVQx:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.LinkedListNode=void 0;var r=function(t,e){return t===e},i=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e}return t.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},t}();e.LinkedListNode=i;var o=function(){function t(t){void 0===t&&(t=r),this.head=null,this.tail=null,this.compare=t}return t.prototype.prepend=function(t){var e=new i(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new i(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare(this.tail.value,t)&&(this.tail=n),e},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;for(var o=this.head;o;){if(i&&i(o.value))return o;if(void 0!==n&&this.compare(o.value,n))return o;o=o.next}return null},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},t.prototype.fromArray=function(t){var e=this;return t.forEach(function(t){return e.append(t)}),this},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map(function(e){return e.toString(t)}).toString()},t}();e.default=o},vi0E:function(t,e,n){var r=n("f931")(Object.getPrototypeOf,Object);t.exports=r},vrXp:function(t,e,n){"use strict";var r=n("TToO"),i=n("i6H2");function o(t,e,n){var r=t.getTotalMatrix();if(r){var o=function(t,e){if(e){var n=Object(i.invert)(e);return Object(i.multiplyVec2)(n,t)}return t}([e,n,1],r);return[o[0],o[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(i.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=o(t,e,n),a=r[0],s=r[1];if(t.isClipped(a,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}var s=n("3BVV"),l=n("SodV"),u=n("PDVq"),c=n("gosJ"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return l.a},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(u.d)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?function t(e,n,r){if(!a(e,n,r))return null;for(var i=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())i=t(u,n,r);else if(a(u,n,r)){var c=u,h=o(u,n,r),d=h[0],f=h[1];c.isInShape(d,f)&&(i=u)}if(i)break}return i}(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=Object(c.f)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=Object(c.g)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(u.a)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(c.a)(t,this),Object(c.d)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Object(c.a)(t,this),Object(c.b)(this,n,r),Object(c.d)(t,n,r),t.restore()):e.length&&Object(c.c)(e),Object(u.c)(e,function(t){t.get("hasChanged")&&t.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame"),n=this.get("drawFrameCallback");e||(e=Object(u.n)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),n&&n()}),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(i.AbstractCanvas);e.a=h},w9t0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;var r=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return t.prototype.layout=function(t){return this.init(t),this.execute(!0)},t.prototype.init=function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[],this.comboEdges=t.comboEdges||[],this.hiddenNodes=t.hiddenNodes||[],this.hiddenEdges=t.hiddenEdges||[],this.hiddenCombos=t.hiddenCombos||[],this.vedges=t.vedges||[]},t.prototype.execute=function(t){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(t){t&&Object.assign(this,t)},t.prototype.getType=function(){return"base"},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},t}();e.Base=r},wHEO:function(t,e,n){"use strict";var r=n("IgWN"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;var a=function(t){var e=t||[];return Object(r.isArray)(e)?e:Object(r.isString)(e)?(e=e.match(i),Object(r.each)(e,function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,function(e,n){isNaN(e)||(t[n]=+e)}),e[n]=t}),e):void 0},s=n("lVvd");var l=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var l,u,c,h=function(t,e,n,r){var i,o,a,l,u,c,h,d=[],f=!!r;if(f){a=r[0],l=r[1];for(var p=0,g=t.length;p<g;p+=1){var v=t[p];a=s.vec2.min([0,0],a,v),l=s.vec2.max([0,0],l,v)}}p=0;for(var m=t.length;p<m;p+=1)if(v=t[p],0!==p||n)if(p!==m-1||n){i=t[[p?p-1:m-1,p-1][n?0:1]],o=t[n?(p+1)%m:p+1];var y=[0,0];y=s.vec2.sub(y,o,i),y=s.vec2.scale(y,y,e);var b=s.vec2.distance(v,i),_=s.vec2.distance(v,o),x=b+_;0!==x&&(b/=x,_/=x);var w=s.vec2.scale([0,0],y,-b),S=s.vec2.scale([0,0],y,_);c=s.vec2.add([0,0],v,w),u=s.vec2.add([0,0],v,S),u=s.vec2.min([0,0],u,s.vec2.max([0,0],o,v)),u=s.vec2.max([0,0],u,s.vec2.min([0,0],o,v)),w=s.vec2.sub([0,0],u,v),w=s.vec2.scale([0,0],w,-b/_),c=s.vec2.add([0,0],v,w),c=s.vec2.min([0,0],c,s.vec2.max([0,0],i,v)),c=s.vec2.max([0,0],c,s.vec2.min([0,0],i,v)),S=s.vec2.sub([0,0],v,c),S=s.vec2.scale([0,0],S,_/b),u=s.vec2.add([0,0],v,S),f&&(c=s.vec2.max([0,0],c,a),c=s.vec2.min([0,0],c,l),u=s.vec2.max([0,0],u,a),u=s.vec2.min([0,0],u,l)),d.push(h),d.push(c),h=u}else c=v,d.push(h),d.push(c);else h=v;return n&&d.push(d.shift()),d}(i,.4,r,n),d=i.length,f=[];for(o=0;o<d-1;o+=1)l=h[2*o],u=h[2*o+1],c=i[o+1],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return r&&(l=h[d],u=h[d+1],c=i[0],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),f};function u(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}function c(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var l=u(o,a/(1-a*s));i.push(l.left),o=l.right}return i.push(o),i.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r}function h(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var l=o.reduce(function(e,r,i){return i===n?e.concat(t[n]):e.concat(c(t[i],t[i+1],r))},[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l}function d(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var f=function(t,e){var n,i,o=t.length,a=e.length,s=0;if(0===o||0===a)return null;for(var l=[],u=0;u<=o;u++)l[u]=[],l[u][0]={min:u};for(var c=0;c<=a;c++)l[0][c]={min:c};for(u=1;u<=o;u++){n=t[u-1];for(c=1;c<=a;c++){i=e[c-1],s=Object(r.isEqual)(n,i)?0:1;var h=l[u-1][c].min+1,f=l[u][c-1].min+1,p=l[u-1][c-1].min+s;l[u][c]=d(h,f,p)}}return l};function p(t,e){var n=f(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i]!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=a;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}if((r=t.length)<i)for(l=0;l<i-r;l++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}function g(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function v(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=g(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function m(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=g(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=v(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=v(n,t[r-1],2)}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=v(n,t[r-1],1)}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t}function y(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}var b="\t\n\v\f\r \u2028\u2029",_=new RegExp("([a-z])["+b+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+b+"]*,?["+b+"]*)+)","ig"),x=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+b+"]*,?["+b+"]*","ig");function w(t){if(!t)return null;if(Object(r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(_,function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(x,function(t,e){e&&o.push(+e)}),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""}),n}var S=/[a-z]/;function C(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function k(t){var e=w(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(S.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,l=0,u=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(l=a=+h[1],u=s=+h[2],c++,o[0]=["M",a,s]);r=c;for(var d=e.length;r<d;r++){var f=e[r],p=o[r-1],g=[],v=(i=f[0]).toUpperCase();if(i!==v)switch(g[0]=v,v){case"A":g[1]=f[1],g[2]=f[2],g[3]=f[3],g[4]=f[4],g[5]=f[5],g[6]=+f[6]+a,g[7]=+f[7]+s;break;case"V":g[1]=+f[1]+s;break;case"H":g[1]=+f[1]+a;break;case"M":l=+f[1]+a,u=+f[2]+s,g[1]=l,g[2]=u;break;default:for(var m=1,y=f.length;m<y;m++)g[m]=+f[m]+(m%2?a:s)}else g=e[r];switch(v){case"Z":a=+l,s=+u;break;case"H":g=["L",a=g[1],s];break;case"V":g=["L",a,s=g[1]];break;case"T":a=g[1],s=g[2];var b=C([p[1],p[2]],[p[3],p[4]]);g=["Q",b[0],b[1],a,s];break;case"S":a=g[g.length-2],s=g[g.length-1];var _=p.length,x=C([p[_-4],p[_-3]],[p[_-2],p[_-1]]);g=["C",x[0],x[1],g[1],g[2],a,s];break;case"M":l=g[g.length-2],u=g[g.length-1];break;default:a=g[g.length-2],s=g[g.length-1]}o.push(g)}return o}var O=2*Math.PI,M=function(t,e,n,r,i,o,a){var s=t.x,l=t.y;return{x:r*(s*=e)-i*(l*=n)+o,y:i*s+r*l+a}},E=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:o+a*n,y:a-o*n},{x:o,y:a}]},T=function(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},A=function(t){var e=t.px,n=t.py,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=t.xAxisRotation,l=void 0===s?0:s,u=t.largeArcFlag,c=void 0===u?0:u,h=t.sweepFlag,d=void 0===h?0:h,f=[];if(0===o||0===a)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var p=Math.sin(l*O/360),g=Math.cos(l*O/360),v=g*(e-r)/2+p*(n-i)/2,m=-p*(e-r)/2+g*(n-i)/2;if(0===v&&0===m)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];o=Math.abs(o),a=Math.abs(a);var y=Math.pow(v,2)/Math.pow(o,2)+Math.pow(m,2)/Math.pow(a,2);y>1&&(o*=Math.sqrt(y),a*=Math.sqrt(y));var b=function(t,e,n,r,i,o,a,s,l,u,c,h){var d=Math.pow(i,2),f=Math.pow(o,2),p=Math.pow(c,2),g=Math.pow(h,2),v=d*f-d*g-f*p;v<0&&(v=0),v/=d*g+f*p;var m=(v=Math.sqrt(v)*(a===s?-1:1))*i/o*h,y=v*-o/i*c,b=u*m-l*y+(t+n)/2,_=l*m+u*y+(e+r)/2,x=(c-m)/i,w=(h-y)/o,S=(-c-m)/i,C=(-h-y)/o,k=T(1,0,x,w),M=T(x,w,S,C);return 0===s&&M>0&&(M-=O),1===s&&M<0&&(M+=O),[b,_,k,M]}(e,n,r,i,o,a,c,d,p,g,v,m),_=b[0],x=b[1],w=b[2],S=b[3],C=Math.abs(S)/(O/4);Math.abs(1-C)<1e-7&&(C=1);var k=Math.max(Math.ceil(C),1);S/=k;for(var A=0;A<k;A++)f.push(E(w,S)),w+=S;return f.map(function(t){var e=M(t[0],o,a,g,p,_,x),n=e.x,r=e.y,i=M(t[1],o,a,g,p,_,x),s=i.x,l=i.y,u=M(t[2],o,a,g,p,_,x);return{x1:n,y1:r,x2:s,y2:l,x:u.x,y:u.y}})};function I(t,e,n,r){return[t,e,n,r,n,r]}function D(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),r=n[0],i=n[1];switch(t[0]){case"M":return e.x=r,e.y=i,t;case"A":return["C"].concat(function(t,e,n,r,i,o,a,s,l){return A({px:t,py:e,cx:s,cy:l,rx:n,ry:r,xAxisRotation:i,largeArcFlag:o,sweepFlag:a}).reduce(function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.x,s=e.y;return t.push(n,r,i,o,a,s),t},[])}.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=r,e.qy=i,["C"].concat(function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(I(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat(I(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat(I(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat(I(e.x1,e.y1,e.x,e.y))}return t}function P(t,e){void 0===e&&(e=!1);for(var n,r,i=k(t),o={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},a=[],s="",l=i.length,u=[],c=0;c<l;c+=1)i[c]&&(s=i[c][0]),a[c]=s,i[c]=D(i[c],o),L(i,a,c),l=i.length,"Z"===s&&u.push(c),r=(n=i[c]).length,o.x1=+n[r-2],o.y1=+n[r-1],o.x2=+n[r-4]||o.x1,o.y2=+n[r-3]||o.y1;return e?[i,u]:i}function L(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var j=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},N=function(t,e,n,r,i,o,a,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=u*c[f]+u,g=j(p,t,n,i,a),v=j(p,e,r,o,s),m=g*g+v*v;d+=h[f]*Math.sqrt(m)}return u*d},R=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),d=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:u,y:c}}}},B=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},F=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:y(t,e,n,r),vb:[t,e,n,r].join(" ")}},z=function(t,e,n,i,o,a,s,l){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,l]);var u=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&d.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&d.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,_=d.length,x=_;_--;)b=1-(h=d[_]),f[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][x]=t,f[1][x]=e,f[0][x+1]=a,f[1][x+1]=s,f[0].length=f[1].length=x+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}}.apply(null,t);return F(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},V=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(o-2*r+e),v=n+2*l*(i-n)+d*(a-2*i+n),m=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},$=function(t,e,n){if(!function(t,e){return t=F(t),e=F(e),B(e,t.x,t.y)||B(e,t.x2,t.y)||B(e,t.x,t.y2)||B(e,t.x2,t.y2)||B(t,e.x,e.y)||B(t,e.x2,e.y)||B(t,e.x,e.y2)||B(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(z(t),z(e)))return n?0:[];for(var r=~~(N.apply(0,t)/8),i=~~(N.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u<r+1;u++){var c=V.apply(0,t.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=V.apply(0,e.concat(u/i));a.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var h=0;h<i;h++){var d=o[u],f=o[u+1],p=a[h],g=a[h+1],v=Math.abs(f.x-d.x)<.001?"y":"x",m=Math.abs(g.x-p.x)<.001?"y":"x",y=R(d.x,d.y,f.x,f.y,p.x,p.y,g.x,g.y);if(y){if(s[y.x.toFixed(4)]===y.y.toFixed(4))continue;s[y.x.toFixed(4)]=y.y.toFixed(4);var b=d.t+Math.abs((y[v]-d[v])/(f[v]-d[v]))*(f.t-d.t),_=p.t+Math.abs((y[m]-p[m])/(g[m]-p[m]))*(g.t-p.t);b>=0&&b<=1&&_>=0&&_<=1&&(n?l++:l.push({x:y.x,y:y.y,t1:b,t2:_}))}}return l},G=function(t,e,n){var r,i,o,a,s,l,u,c,h,d;t=P(t),e=P(e);for(var f=n?0:[],p=0,g=t.length;p<g;p++){var v=t[p];if("M"===v[0])r=s=v[1],i=l=v[2];else{"C"===v[0]?(r=(h=[r,i].concat(v.slice(1)))[6],i=h[7]):(h=[r,i,r,i,s,l,s,l],r=s,i=l);for(var m=0,y=e.length;m<y;m++){var b=e[m];if("M"===b[0])o=u=b[1],a=c=b[2];else{"C"===b[0]?(o=(d=[o,a].concat(b.slice(1)))[6],a=d[7]):(d=[o,a,o,a,u,c,u,c],o=u,a=c);var _=$(h,d,n);if(n)f+=_;else{for(var x=0,w=_.length;x<w;x++)_[x].segment1=p,_[x].segment2=m,_[x].bez1=h,_[x].bez2=d;f=f.concat(_)}}}}}return f};function H(t,e){return G(t,e)}var W=/,?([a-z]),?/gi;function U(t){return t.join(",").replace(W,"$1")}function Y(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function X(t,e){return Y(t)*Y(e)?(t[0]*e[0]+t[1]*e[1])/(Y(t)*Y(e)):1}function q(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(X(t,e))}function Z(t,e){return t[0]===e[0]&&t[1]===e[1]}function K(t,e){var n=e[1],i=e[2],o=Object(r.mod)(Object(r.toRadian)(e[3]),2*Math.PI),a=e[4],s=e[5],l=t[0],u=t[1],c=e[6],h=e[7],d=Math.cos(o)*(l-c)/2+Math.sin(o)*(u-h)/2,f=-1*Math.sin(o)*(l-c)/2+Math.cos(o)*(u-h)/2,p=d*d/(n*n)+f*f/(i*i);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var g=n*n*(f*f)+i*i*(d*d),v=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===s&&(v*=-1),isNaN(v)&&(v=0);var m=i?v*n*f/i:0,y=n?v*-i*d/n:0,b=(l+c)/2+Math.cos(o)*m-Math.sin(o)*y,_=(u+h)/2+Math.sin(o)*m+Math.cos(o)*y,x=[(d-m)/n,(f-y)/i],w=[(-1*d-m)/n,(-1*f-y)/i],S=q([1,0],x),C=q(x,w);return X(x,w)<=-1&&(C=Math.PI),X(x,w)>=1&&(C=0),0===s&&C>0&&(C-=2*Math.PI),1===s&&C<0&&(C+=2*Math.PI),{cx:b,cy:_,rx:Z(t,[c,h])?0:n,ry:Z(t,[c,h])?0:i,startAngle:S,endAngle:S+C,xRotation:o,arcFlag:a,sweepFlag:s}}function J(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function Q(t){for(var e=[],n=null,r=null,i=null,o=0,s=(t=a(t)).length,l=0;l<s;l++){var u=t[l];r=t[l+1];var c=u[0],h={command:c,prePoint:n,params:u,startTangent:null,endTangent:null};switch(c){case"M":i=[u[1],u[2]],o=l;break;case"A":var d=K(n,u);h.arcParams=d}if("Z"===c)n=i,r=t[o+1];else{var f=u.length;n=[u[f-2],u[f-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),h.currentPoint=n,e[o]&&Z(n,e[o].currentPoint)&&(e[o].prePoint=h.prePoint);var p=r?[r[r.length-2],r[r.length-1]]:null;h.nextPoint=p;var g=h.prePoint;if(["L","H","V"].includes(c))h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===c){var v=[u[1],u[2]];h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===c){v=J((b=e[l-1]).currentPoint,g);"Q"===b.command?(h.command="Q",h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]):(h.command="TL",h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===c){var m=[u[1],u[2]],y=[u[3],u[4]];h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]],0===h.startTangent[0]&&0===h.startTangent[1]&&(h.startTangent=[m[0]-y[0],m[1]-y[1]]),0===h.endTangent[0]&&0===h.endTangent[1]&&(h.endTangent=[y[0]-m[0],y[1]-m[1]])}else if("S"===c){var b;m=J((b=e[l-1]).currentPoint,g),y=[u[1],u[2]];"C"===b.command?(h.command="C",h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]]):(h.command="SQ",h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]])}else if("A"===c){var _=.001,x=h.arcParams||{},w=x.cx,S=void 0===w?0:w,C=x.cy,k=void 0===C?0:C,O=x.rx,M=void 0===O?0:O,E=x.ry,T=void 0===E?0:E,A=x.sweepFlag,I=void 0===A?0:A,D=x.startAngle,P=void 0===D?0:D,L=x.endAngle,j=void 0===L?0:L;0===I&&(_*=-1);var N=M*Math.cos(P-_)+S,R=T*Math.sin(P-_)+k;h.startTangent=[N-i[0],R-i[1]];var B=M*Math.cos(P+j+_)+S,F=T*Math.sin(P+j-_)+k;h.endTangent=[g[0]-B,g[1]-F]}e.push(h)}return e}var tt=function(t,e,n){return t>=e&&t<=n};function et(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,l=r.x-n.x,u=r.y-n.y,c=a*u-s*l,h=null;if(c*c>.001*(a*a+s*s)*(l*l+u*u)){var d=(i*u-o*l)/c,f=(i*s-o*a)/c;tt(d,0,1)&&tt(f,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h}var nt=1e-6;function rt(t){return Math.abs(t)<nt?0:t<0?-1:1}function it(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function ot(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(it(a,s,[e,n]))return!0;rt(a[1]-n)>0!=rt(s[1]-n)>0&&rt(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function at(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function st(t){var e=t.map(function(t){return t[0]}),n=t.map(function(t){return t[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function lt(t,e){if(t.length<2||e.length<2)return!1;var n,i,o=st(t),a=st(e);if(n=o,(i=a).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY)return!1;var s=!1;if(Object(r.each)(e,function(e){if(ot(t,e[0],e[1]))return s=!0,!1}),s)return!0;if(Object(r.each)(t,function(t){if(ot(e,t[0],t[1]))return s=!0,!1}),s)return!0;var l=at(t),u=at(e),c=!1;return Object(r.each)(u,function(t){if(function(t,e){var n=!1;return Object(r.each)(t,function(t){if(et(t.from,t.to,e.from,e.to))return n=!0,!1}),n}(l,t))return c=!0,!1}),c}n.d(e,!1,function(){return a}),n.d(e,"a",function(){return l}),n.d(e,!1,function(){return h}),n.d(e,!1,function(){return p}),n.d(e,!1,function(){return m}),n.d(e,!1,function(){return H}),n.d(e,!1,function(){return U}),n.d(e,"b",function(){return w}),n.d(e,!1,function(){return P}),n.d(e,"c",function(){return k}),n.d(e,!1,function(){return y}),n.d(e,!1,function(){return K}),n.d(e,"d",function(){return Q}),n.d(e,!1,function(){return et}),n.d(e,!1,function(){return lt}),n.d(e,!1,function(){return ot})},wRLm:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secondReg=e.dateReg=void 0;e.secondReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;e.dateReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/},wUZ8:function(t,e,n){"use strict";e.__esModule=!0,e.default={el:{colorpicker:{confirm:"OK",clear:"Clear"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:""},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}}},wbMc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if("next"!==t&&"prev"!==t)return e},i=function(t){t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev},o=function(){function t(){var t={};t.prev=t,t.next=t.prev,this.shortcut=t}return t.prototype.dequeue=function(){var t=this.shortcut,e=t.prev;if(e&&e!==t)return i(e),e},t.prototype.enqueue=function(t){var e=this.shortcut;t.prev&&t.next&&i(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e},t.prototype.toString=function(){for(var t=[],e=this.shortcut,n=e.prev;n!==e;)t.push(JSON.stringify(n,r)),n=null===n||void 0===n?void 0:n.prev;return"[".concat(t.join(", "),"]")},t}();e.default=o},woOf:function(t,e,n){t.exports={default:n("V3tA"),__esModule:!0}},wzKY:function(t,e,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+i+")");t.exports.HTML_TAG_RE=o,t.exports.HTML_OPEN_CLOSE_TAG_RE=a},xCWu:function(t,e,n){(function(t,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,u=36,c=1,h=26,d=38,f=700,p=72,g=128,v="-",m=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=u-c,w=Math.floor,S=String.fromCharCode;function C(t){throw new RangeError(_[t])}function k(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function O(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+k((t=t.replace(b,".")).split("."),e).join(".")}function M(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function E(t){return k(t,function(t){var e="";return t>65535&&(e+=S((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=S(t)}).join("")}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,n){var r=0;for(t=n?w(t/f):t>>1,t+=w(t/e);t>x*h>>1;r+=u)t=w(t/x);return w(r+(x+1)*t/(t+d))}function I(t){var e,n,r,i,o,a,s,d,f,m,y,b=[],_=t.length,x=0,S=g,k=p;for((n=t.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&C("not-basic"),b.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<_;){for(o=x,a=1,s=u;i>=_&&C("invalid-input"),((d=(y=t.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:u)>=u||d>w((l-x)/a))&&C("overflow"),x+=d*a,!(d<(f=s<=k?c:s>=k+h?h:s-k));s+=u)a>w(l/(m=u-f))&&C("overflow"),a*=m;k=A(x-o,e=b.length+1,0==o),w(x/e)>l-S&&C("overflow"),S+=w(x/e),x%=e,b.splice(x++,0,S)}return E(b)}function D(t){var e,n,r,i,o,a,s,d,f,m,y,b,_,x,k,O=[];for(b=(t=M(t)).length,e=g,n=0,o=p,a=0;a<b;++a)(y=t[a])<128&&O.push(S(y));for(r=i=O.length,i&&O.push(v);r<b;){for(s=l,a=0;a<b;++a)(y=t[a])>=e&&y<s&&(s=y);for(s-e>w((l-n)/(_=r+1))&&C("overflow"),n+=(s-e)*_,e=s,a=0;a<b;++a)if((y=t[a])<e&&++n>l&&C("overflow"),y==e){for(d=n,f=u;!(d<(m=f<=o?c:f>=o+h?h:f-o));f+=u)k=d-m,x=u-m,O.push(S(T(m+k%x,0))),d=w(k/x);O.push(S(T(d,0))),o=A(n,_,r==i),n=0,++r}++n,++e}return O.join("")}s={version:"1.4.1",ucs2:{decode:M,encode:E},decode:I,encode:D,toASCII:function(t){return O(t,function(t){return y.test(t)?"xn--"+D(t):t})},toUnicode:function(t){return O(t,function(t){return m.test(t)?I(t.slice(4).toLowerCase()):t})}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(e,n("3IRH")(t),n("DuR2"))},xGkn:function(t,e,n){"use strict";var r=n("4mcu"),i=n("EGZi"),o=n("/bQp"),a=n("TcQ7");t.exports=n("vIB/")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"xH/j":function(t,e,n){var r=n("hJx8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},xLtR:function(t,e,n){"use strict";var r=n("cGG2"),i=n("TNV1"),o=n("pBtG"),a=n("KCLY");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},xnc9:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},xyVx:function(t,e,n){"use strict";t.exports=function(t,e,n){var r,i,o,a,s,l,u,c,h,d,f=e+1,p=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;for(d=t.parentType,t.parentType="paragraph";f<n&&!t.isEmpty(f);f++)if(!(t.sCount[f]-t.blkIndent>3)){if(t.sCount[f]>=t.blkIndent&&(l=t.bMarks[f]+t.tShift[f])<(u=t.eMarks[f])&&(45===(h=t.src.charCodeAt(l))||61===h)&&(l=t.skipChars(l,h),(l=t.skipSpaces(l))>=u)){c=61===h?1:2;break}if(!(t.sCount[f]<0)){for(i=!1,o=0,a=p.length;o<a;o++)if(p[o](t,f,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=t.getLines(e,f,t.blkIndent,!1).trim(),t.line=f+1,(s=t.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(h),s.map=[e,t.line],(s=t.push("inline","",0)).content=r,s.map=[e,t.line-1],s.children=[],(s=t.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(h),t.parentType=d,!0)}},"y+7x":function(t,e,n){"use strict";e.__esModule=!0;var r=n("urW8");e.default={methods:{t:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.t.apply(this,e)}}}},yJKB:function(t,e,n){"use strict";var r=n("TToO"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(n("JwB+").a);e.a=i},yKiC:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toNumber=e.isNaN=e.isNumber=void 0;e.isNumber=function(t){return"number"==typeof t};e.isNaN=function(t){return Number.isNaN(Number(t))};e.toNumber=function(t){var n=parseFloat(t);return(0,e.isNaN)(n)?t:n}},yO1k:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("+ZTV"),i=function(t,e,n,i,o,a){var s={rank:a,borderType:e,width:0,height:0},l=o[e][a-1],u=(0,r.addDummyNode)(t,"border",s,n);o[e][a]=u,t.setParent(u,i),l&&t.setEdge(l,u,{weight:1})};e.default=function(t){var e,n=function(e){var r=t.children(e),o=t.node(e);if((null===r||void 0===r?void 0:r.length)&&r.forEach(function(t){return n(t)}),o.hasOwnProperty("minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,s=o.maxRank+1;a<s;a+=1)i(t,"borderLeft","_bl",e,o,a),i(t,"borderRight","_br",e,o,a)}};null===(e=t.children())||void 0===e||e.forEach(function(t){return n(t)})}},yWcq:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("e9Fv")),o=r(n("6OHT")),a=r(n("7rlq")),s=r(n("6KJJ")),l=r(n("9Qp/")),u=n("ZE1E"),c=n("3MGd"),h=n("+ZTV"),d=function(t,e,n){return e.map(function(e){return(0,a.default)(t,e,n)})},f=function(t,e,n,r){var i=new c.Graph;null===t||void 0===t||t.forEach(function(t){for(var o,a=t.graph().root,u=(0,l.default)(t,a,i,e,n,r),c=0;c<(null===(o=u.vs)||void 0===o?void 0:o.length);c++){var h=t.node(u.vs[c]);h&&(h.order=c)}(0,s.default)(t,i,u.vs)})},p=function(t,e){null===e||void 0===e||e.forEach(function(e){null===e||void 0===e||e.forEach(function(e,n){t.node(e).order=n})})};e.default=function(t,e){for(var n=(0,h.maxRank)(t),r=[],a=[],s=1;s<n+1;s++)r.push(s);for(s=n-1;s>-1;s--)a.push(s);var l=d(t,r,"inEdges"),c=d(t,a,"outEdges"),g=(0,i.default)(t);p(t,g);for(var v,m=Number.POSITIVE_INFINITY,y=(s=0,0);y<4;++s,++y)f(s%2?l:c,s%4>=2,!1,e),g=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,g))<m&&(y=0,v=(0,u.clone)(g),m=b);g=(0,i.default)(t),p(t,g);for(s=0,y=0;y<4;++s,++y){var b;f(s%2?l:c,s%4>=2,!0,e),g=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,g))<m&&(y=0,v=(0,u.clone)(g),m=b)}p(t,v)}},ylDJ:function(t,e,n){"use strict";e.__esModule=!0,e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.noop=function(){},e.hasOwn=function(t,e){return l.call(t,e)},e.toObject=function(t){for(var e={},n=0;n<t.length;n++)t[n]&&u(e,t[n]);return e},e.getPropByPath=function(t,e,n){for(var r=t,i=(e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0,a=i.length;o<a-1&&(r||n);++o){var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}},e.rafThrottle=function(t){var e=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];e||(e=!0,window.requestAnimationFrame(function(r){t.apply(n,i),e=!1}))}},e.objToArray=function(t){if(Array.isArray(t))return t;return f(t)?[]:[t]};var i,o=n("7+uW"),a=(i=o)&&i.__esModule?i:{default:i},s=n("835U");var l=Object.prototype.hasOwnProperty;function u(t,e){for(var n in e)t[n]=e[n];return t}e.getValueByPath=function(t,e){for(var n=(e=e||"").split("."),r=t,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};e.generateId=function(){return Math.floor(1e4*Math.random())},e.valueEquals=function(t,e){if(t===e)return!0;if(!(t instanceof Array))return!1;if(!(e instanceof Array))return!1;if(t.length!==e.length)return!1;for(var n=0;n!==t.length;++n)if(t[n]!==e[n])return!1;return!0},e.escapeRegexpString=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var c=e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1},h=(e.arrayFind=function(t,e){var n=c(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},e.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if("object"!==(void 0===t?"undefined":r(t)))return t;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach(function(n){var r=t[n];n&&r&&e.forEach(function(e){t[e+n]=r})}),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()},e.capitalize=function(t){return(0,s.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,s.isObject)(t),r=(0,s.isObject)(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}),d=e.arrayEquals=function(t,e){if(t=t||[],e=e||[],t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!h(t[n],e[n]))return!1;return!0},f=(e.isEqual=function(t,e){return Array.isArray(t)&&Array.isArray(e)?d(t,e):h(t,e)},e.isEmpty=function(t){if(null==t)return!0;if("boolean"==typeof t)return!1;if("number"==typeof t)return!t;if(t instanceof Error)return""===t.message;switch(Object.prototype.toString.call(t)){case"[object String]":case"[object Array]":return!t.length;case"[object File]":case"[object Map]":case"[object Set]":return!t.size;case"[object Object]":return!Object.keys(t).length}return!1})},"z+gd":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},a=2;var s=20,l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&u()}function l(){o(s)}function u(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,e);i=t}return u}(this.refresh.bind(this),s)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;l.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},f=b(0,0,0,0);function p(t){return parseFloat(t)||0}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+p(t["border-"+n+"-width"])},0)}function v(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var r=d(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=p(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=g(r,"left","right")+o),Math.round(l+a)!==n&&(l-=g(r,"top","bottom")+a)),!function(t){return t===d(t).document.documentElement}(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return b(i.left,i.top,s,l)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"==typeof t.getBBox};function y(t){return r?m(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):v(t):f}function b(t,e,n,r){return{x:t,y:e,width:n,height:r}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=y(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),x=function(){return function(t,e){var n,r,i,o,a,s,l,u=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),h(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);h(this,{target:t,contentRect:u})}}(),w=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new x(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,C=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(e,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){C.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}});var k=void 0!==i.ResizeObserver?i.ResizeObserver:C;e.default=k}.call(e,n("DuR2"))},"z/wH":function(t,e){var n=[],r=[],i="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function o(t,e){if(e=e||{},void 0===t)throw new Error(i);var o,a=!0===e.prepend?"prepend":"append",s=void 0!==e.container?e.container:document.querySelector("head"),l=n.indexOf(s);return-1===l&&(l=n.push(s)-1,r[l]={}),void 0!==r[l]&&void 0!==r[l][a]?o=r[l][a]:(o=r[l][a]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===a?s.insertBefore(o,s.childNodes[0]):s.appendChild(o)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),o.styleSheet?o.styleSheet.cssText+=t:o.textContent+=t,o}t.exports=o,t.exports.insertCss=o},z4hc:function(t,e,n){var r=n("aCM0"),i=n("Rh28"),o=n("UnEC"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},z7gM:function(t,e,n){"use strict";for(var r=n("+N5+").isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){i[t.charCodeAt(0)]=1}),t.exports=function(t,e){var n,o,a,s,l,u=t.pos,c=t.posMax;if(92!==t.src.charCodeAt(u))return!1;if(++u>=c)return!1;if(10===(n=t.src.charCodeAt(u))){for(e||t.push("hardbreak","br",0),u++;u<c&&(n=t.src.charCodeAt(u),r(n));)u++;return t.pos=u,!0}return s=t.src[u],n>=55296&&n<=56319&&u+1<c&&(o=t.src.charCodeAt(u+1))>=56320&&o<=57343&&(s+=t.src[u+1],u++),a="\\"+s,e||(l=t.push("text_special","",0),n<256&&0!==i[n]?l.content=s:l.content=a,l.markup=a,l.info="escape"),t.pos=u+1,!0}},"zAL+":function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=99)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},99:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-button-group"},[this._t("default")],2)};r._withStripped=!0;var i={name:"ElButtonGroup"},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/button/src/button-group.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},zL8q:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=45)}([function(t,e){t.exports=n("AMCD")},function(t,e){t.exports=n("2kvA")},function(t,e){t.exports=n("ylDJ")},function(t,e){t.exports=n("fPll")},function(t,e){t.exports=n("y+7x")},function(t,e){t.exports=n("fKx3")},function(t,e){t.exports=n("7+uW")},function(t,e){t.exports=n("jmaC")},function(t,e){t.exports=n("HJMx")},function(t,e){t.exports=n("aW5l")},function(t,e){t.exports=n("ISYW")},function(t,e){t.exports=n("mtrD")},function(t,e){t.exports=n("02w1")},function(t,e){t.exports=n("7J9s")},function(t,e){t.exports=n("ON3O")},function(t,e){t.exports=n("urW8")},function(t,e){t.exports=n("EKTV")},function(t,e){t.exports=n("fEB+")},function(t,e){t.exports=n("835U")},function(t,e){t.exports=n("E/in")},function(t,e){t.exports=n("eNfa")},function(t,e){t.exports=n("Zcwg")},function(t,e){t.exports=n("1oZe")},function(t,e){t.exports=n("fUqW")},function(t,e){t.exports=n("nvbp")},function(t,e){t.exports=n("uY1a")},function(t,e){t.exports=n("aMwW")},function(t,e){t.exports=n("zTCi")},function(t,e){t.exports=n("zAL+")},function(t,e){t.exports=n("orbS")},function(t,e){t.exports=n("6Twh")},function(t,e){t.exports=n("s3ue")},function(t,e){t.exports=n("H8dH")},function(t,e){t.exports=n("GegP")},function(t,e){t.exports=n("hyEB")},function(t,e){t.exports=n("HzcN")},function(t,e){t.exports=n("e0Bm")},function(t,e){t.exports=n("STLj")},function(t,e){t.exports=n("3fo+")},function(t,e){t.exports=n("DQJY")},function(t,e){t.exports=n("jwfv")},function(t,e){t.exports=n("0kY3")},function(t,e){t.exports=n("kNJA")},function(t,e){t.exports=n("RDoK")},function(t,e){t.exports=n("SXzR")},function(t,e,n){t.exports=n(46)},function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"el-pager",on:{click:t.onPagerClick}},[t.pageCount>0?n("li",{staticClass:"number",class:{active:1===t.currentPage,disabled:t.disabled}},[t._v("1")]):t._e(),t.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[t.quickprevIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("left")},mouseleave:function(e){t.quickprevIconClass="el-icon-more"}}}):t._e(),t._l(t.pagers,function(e){return n("li",{key:e,staticClass:"number",class:{active:t.currentPage===e,disabled:t.disabled}},[t._v(t._s(e))])}),t.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[t.quicknextIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("right")},mouseleave:function(e){t.quicknextIconClass="el-icon-more"}}}):t._e(),t.pageCount>1?n("li",{staticClass:"number",class:{active:t.currentPage===t.pageCount,disabled:t.disabled}},[t._v(t._s(t.pageCount))]):t._e()],2)};function i(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}r._withStripped=!0;var o=i({name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(t){t||(this.quickprevIconClass="el-icon-more")},showNextMore:function(t){t||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(t){var e=t.target;if("UL"!==e.tagName&&!this.disabled){var n=Number(t.target.textContent),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==e.className.indexOf("more")&&(-1!==e.className.indexOf("quickprev")?n=i-o:-1!==e.className.indexOf("quicknext")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(t){this.disabled||("left"===t?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var t=this.pagerCount,e=(t-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,o=!1;r>t&&(n>t-e&&(i=!0),n<r-e&&(o=!0));var a=[];if(i&&!o)for(var s=r-(t-2);s<r;s++)a.push(s);else if(!i&&o)for(var l=2;l<t;l++)a.push(l);else if(i&&o)for(var u=Math.floor(t/2)-1,c=n-u;c<=n+u;c++)a.push(c);else for(var h=2;h<r;h++)a.push(h);return this.showPrevMore=i,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},r,[],!1,null,null,null);o.options.__file="packages/pagination/src/pager.vue";var a=o.exports,s=n(36),l=n.n(s),u=n(37),c=n.n(u),h=n(8),d=n.n(h),f=n(4),p=n.n(f),g=n(2),v={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(t){return(0|t)===t&&t>4&&t<22&&t%2==1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(t){var e=this.layout;if(!e)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=t("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:t("prev"),jumper:t("jumper"),pager:t("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:t("next"),sizes:t("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:t("slot",[this.$slots.default?this.$slots.default:""]),total:t("total")},i=e.split(",").map(function(t){return t.trim()}),o=t("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],i.forEach(function(t){"->"!==t?a?o.children.push(r[t]):n.children.push(r[t]):a=!0}),a&&n.children.unshift(o),n},components:{Prev:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?t("span",[this.$parent.prevText]):t("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?t("span",[this.$parent.nextText]):t("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[p.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(t,e){Object(g.valueEquals)(t,e)||Array.isArray(t)&&(this.$parent.internalPageSize=t.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(t){var e=this;return t("span",{class:"el-pagination__sizes"},[t("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map(function(n){return t("el-option",{attrs:{value:n,label:n+e.t("el.pagination.pagesize")}})})])])},components:{ElSelect:l.a,ElOption:c.a},methods:{handleChange:function(t){t!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=t=parseInt(t,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",t),this.$parent.$emit("size-change",t))}}},Jumper:{mixins:[p.a],components:{ElInput:d.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(t){var e=t.keyCode,n=t.target;13===e&&this.handleChange(n.value)},handleInput:function(t){this.userInput=t},handleChange:function(t){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(t),this.$parent.emitChange(),this.userInput=null}},render:function(t){return t("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),t("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[p.a],render:function(t){return"number"==typeof this.$parent.total?t("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:a},methods:{handleCurrentChange:function(t){this.internalCurrentPage=this.getValidCurrentPage(t),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var t=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var t=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(t){t=parseInt(t,10);var e=void 0;return"number"==typeof this.internalPageCount?t<1?e=1:t>this.internalPageCount&&(e=this.internalPageCount):(isNaN(t)||t<1)&&(e=1),void 0===e&&isNaN(t)?e=1:0===e&&(e=1),void 0===e?t:e},emitChange:function(){var t=this;this.$nextTick(function(){(t.internalCurrentPage!==t.lastEmittedPage||t.userChangePageSize)&&(t.$emit("current-change",t.internalCurrentPage),t.lastEmittedPage=t.internalCurrentPage,t.userChangePageSize=!1)})}},computed:{internalPageCount:function(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(t){this.internalCurrentPage=this.getValidCurrentPage(t)}},pageSize:{immediate:!0,handler:function(t){this.internalPageSize=isNaN(t)?10:t}},internalCurrentPage:{immediate:!0,handler:function(t){this.$emit("update:currentPage",t),this.lastEmittedPage=-1}},internalPageCount:function(t){var e=this.internalCurrentPage;t>0&&0===e?this.internalCurrentPage=1:e>t&&(this.internalCurrentPage=0===t?1:t,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(t){t.component(v.name,v)}},m=v,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{key:t.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":t.fullscreen,"el-dialog--center":t.center},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[t._t("title",[n("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:t.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2),t.rendered?n("div",{staticClass:"el-dialog__body"},[t._t("default")],2):t._e(),t.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[t._t("footer")],2):t._e()])])])};y._withStripped=!0;var b=n(13),_=n.n(b),x=n(9),w=n.n(x),S=n(3),C=n.n(S),k=i({name:"ElDialog",mixins:[_.a,C.a,w.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(function(){e.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick(function(){e.key++}))}},computed:{style:function(){var t={};return this.fullscreen||(t.marginTop=this.top,this.width&&(t.width=this.width)),t}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},y,[],!1,null,null,null);k.options.__file="packages/dialog/src/component.vue";var O=k.exports;O.install=function(t){t.component(O.name,O)};var M=O,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":t.suggestionVisible,"aria-owns":t.id}},[n("el-input",t._b({ref:"input",on:{input:t.handleInput,change:t.handleChange,focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex-1)},function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex+1)},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleKeyEnter(e):null},function(e){return"button"in e||!t._k(e.keyCode,"tab",9,e.key,"Tab")?t.close(e):null}]}},"el-input",[t.$props,t.$attrs],!1),[t.$slots.prepend?n("template",{slot:"prepend"},[t._t("prepend")],2):t._e(),t.$slots.append?n("template",{slot:"append"},[t._t("append")],2):t._e(),t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),t.$slots.suffix?n("template",{slot:"suffix"},[t._t("suffix")],2):t._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[t.popperClass?t.popperClass:""],attrs:{"visible-arrow":"","popper-options":t.popperOptions,"append-to-body":t.popperAppendToBody,placement:t.placement,id:t.id}},t._l(t.suggestions,function(e,r){return n("li",{key:r,class:{highlighted:t.highlightedIndex===r},attrs:{id:t.id+"-item-"+r,role:"option","aria-selected":t.highlightedIndex===r},on:{click:function(n){t.select(e)}}},[t._t("default",[t._v("\n "+t._s(e[t.valueKey])+"\n ")],{item:e})],2)}),0)],1)};E._withStripped=!0;var T=n(14),A=n.n(T),I=n(10),D=n.n(I),P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!t.parent.hideLoading&&t.parent.loading},style:{width:t.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!t.parent.hideLoading&&t.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):t._t("default")],2)],1)])};P._withStripped=!0;var L=n(5),j=n.n(L),N=n(17),R=n.n(N),B=i({components:{ElScrollbar:R.a},mixins:[j.a,C.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(t){this.dispatch("ElAutocomplete","item-click",t)}},updated:function(){var t=this;this.$nextTick(function(e){t.popperJS&&t.updatePopper()})},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var t=this;this.$on("visible",function(e,n){t.dropdownWidth=n+"px",t.showPopper=e})}},P,[],!1,null,null,null);B.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var F=B.exports,z=n(22),V=n.n(z),$=i({name:"ElAutocomplete",mixins:[C.a,V()("input"),w.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:d.a,ElAutocompleteSuggestions:F},directives:{Clickoutside:D.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var t=this.suggestions;return(Array.isArray(t)&&t.length>0||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(g.generateId)()}},watch:{suggestionVisible:function(t){var e=this.getInput();e&&this.broadcast("ElAutocompleteSuggestions","visible",[t,e.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(t){var e=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(t,function(t){e.loading=!1,e.suggestionDisabled||(Array.isArray(t)?(e.suggestions=t,e.highlightedIndex=e.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))}))},handleInput:function(t){if(this.$emit("input",t),this.suggestionDisabled=!1,!this.triggerOnFocus&&!t)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(t)},handleChange:function(t){this.$emit("change",t)},handleFocus:function(t){this.activated=!0,this.$emit("focus",t),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(t){this.$emit("blur",t)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(t){this.activated=!1},handleKeyEnter:function(t){var e=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(t.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick(function(t){e.suggestions=[],e.highlightedIndex=-1}))},select:function(t){var e=this;this.$emit("input",t[this.valueKey]),this.$emit("select",t),this.$nextTick(function(t){e.suggestions=[],e.highlightedIndex=-1})},highlight:function(t){if(this.suggestionVisible&&!this.loading)if(t<0)this.highlightedIndex=-1;else{t>=this.suggestions.length&&(t=this.suggestions.length-1);var e=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=e.querySelectorAll(".el-autocomplete-suggestion__list li")[t],r=e.scrollTop,i=n.offsetTop;i+n.scrollHeight>r+e.clientHeight&&(e.scrollTop+=n.scrollHeight),i<r&&(e.scrollTop-=n.scrollHeight),this.highlightedIndex=t,this.getInput().setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var t=this;this.debouncedGetData=A()(this.debounce,this.getData),this.$on("item-click",function(e){t.select(e)});var e=this.getInput();e.setAttribute("role","textbox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls","id"),e.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},E,[],!1,null,null,null);$.options.__file="packages/autocomplete/src/autocomplete.vue";var G=$.exports;G.install=function(t){t.component(G.name,G)};var H=G,W=n(11),U=n.n(W),Y=n(28),X=n.n(Y),q=i({name:"ElDropdown",componentName:"ElDropdown",mixins:[C.a,w.a],directives:{Clickoutside:D.a},components:{ElButton:U.a,ElButtonGroup:X.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(g.generateId)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(t){this.broadcast("ElDropdownMenu","visible",t),this.$emit("visible-change",t)},focusing:function(t){var e=this.$el.querySelector(".el-dropdown-selfdefine");e&&(t?e.className+=" focusing":e.className=e.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var t=this;this.triggerElm.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.visible=!0},"click"===this.trigger?0:this.showTimeout))},hide:function(){var t=this;this.triggerElm.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.visible=!1},"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.triggerElm.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(t){var e=t.keyCode;[38,40].indexOf(e)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),t.preventDefault(),t.stopPropagation()):13===e?this.handleClick():[9,27].indexOf(e)>-1&&this.hide()},handleItemKeyDown:function(t){var e=t.keyCode,n=t.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(e)>-1?(o=38===e?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),t.preventDefault(),t.stopPropagation()):13===e?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(e)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(t){this.removeTabindex(),t.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach(function(t){t.setAttribute("tabindex","-1")})},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var t=this,e=this.trigger,n=this.show,r=this.hide,i=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),l.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",function(){t.focusing=!0}),this.triggerElm.addEventListener("blur",function(){t.focusing=!1}),this.triggerElm.addEventListener("click",function(){t.focusing=!1})),"hover"===e?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",r)):"click"===e&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(t,e){this.hideOnClick&&(this.visible=!1),this.$emit("command",t,e)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(t){var e=this,n=this.hide,r=this.splitButton,i=this.type,o=this.dropdownSize,a=r?t("el-button-group",[t("el-button",{attrs:{type:i,size:o},nativeOn:{click:function(t){e.$emit("click",t),n()}}},[this.$slots.default]),t("el-button",{ref:"trigger",attrs:{type:i,size:o},class:"el-dropdown__caret-button"},[t("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]):this.$slots.default;return t("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}]},[a,this.$slots.dropdown])}},void 0,void 0,!1,null,null,null);q.options.__file="packages/dropdown/src/dropdown.vue";var Z=q.exports;Z.install=function(t){t.component(Z.name,Z)};var K=Z,J=function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":this.doDestroy}},[e("ul",{directives:[{name:"show",rawName:"v-show",value:this.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[this.size&&"el-dropdown-menu--"+this.size]},[this._t("default")],2)])};J._withStripped=!0;var Q=i({name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[j.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var t=this;this.$on("updatePopper",function(){t.showPopper&&t.updatePopper()}),this.$on("visible",function(e){t.showPopper=e})},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(t){this.currentPlacement=t}}}},J,[],!1,null,null,null);Q.options.__file="packages/dropdown/src/dropdown-menu.vue";var tt=Q.exports;tt.install=function(t){t.component(tt.name,tt)};var et=tt,nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":t.disabled,"el-dropdown-menu__item--divided":t.divided},attrs:{"aria-disabled":t.disabled,tabindex:t.disabled?null:-1},on:{click:t.handleClick}},[t.icon?n("i",{class:t.icon}):t._e(),t._t("default")],2)};nt._withStripped=!0;var rt=i({name:"ElDropdownItem",mixins:[C.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(t){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},nt,[],!1,null,null,null);rt.options.__file="packages/dropdown/src/dropdown-item.vue";var it=rt.exports;it.install=function(t){t.component(it.name,it)};var ot=it,at=at||{};at.Utils=at.Utils||{},at.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(at.Utils.attemptFocus(n)||at.Utils.focusFirstDescendant(n))return!0}return!1},at.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(at.Utils.attemptFocus(n)||at.Utils.focusLastDescendant(n))return!0}return!1},at.Utils.attemptFocus=function(t){if(!at.Utils.isFocusable(t))return!1;at.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return at.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},at.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},at.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},at.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var st=at.Utils,lt=function(t,e){this.domNode=e,this.parent=t,this.subMenuItems=[],this.subIndex=0,this.init()};lt.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},lt.prototype.gotoSubIndex=function(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t},lt.prototype.addListeners=function(){var t=this,e=st.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,function(r){r.addEventListener("keydown",function(r){var i=!1;switch(r.keyCode){case e.down:t.gotoSubIndex(t.subIndex+1),i=!0;break;case e.up:t.gotoSubIndex(t.subIndex-1),i=!0;break;case e.tab:st.triggerEvent(n,"mouseleave");break;case e.enter:case e.space:i=!0,r.currentTarget.click()}return i&&(r.preventDefault(),r.stopPropagation()),!1})})};var ut=lt,ct=function(t){this.domNode=t,this.submenu=null,this.init()};ct.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var t=this.domNode.querySelector(".el-menu");t&&(this.submenu=new ut(this,t)),this.addListeners()},ct.prototype.addListeners=function(){var t=this,e=st.keys;this.domNode.addEventListener("keydown",function(n){var r=!1;switch(n.keyCode){case e.down:st.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(0),r=!0;break;case e.up:st.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(t.submenu.subMenuItems.length-1),r=!0;break;case e.tab:st.triggerEvent(n.currentTarget,"mouseleave");break;case e.enter:case e.space:r=!0,n.currentTarget.click()}r&&n.preventDefault()})};var ht=ct,dt=function(t){this.domNode=t,this.init()};dt.prototype.init=function(){var t=this.domNode.childNodes;[].filter.call(t,function(t){return 1===t.nodeType}).forEach(function(t){new ht(t)})};var ft=dt,pt=n(1),gt=i({name:"ElMenu",render:function(t){var e=t("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?t("el-menu-collapse-transition",[e]):e},componentName:"ElMenu",mixins:[C.a,w.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(t,e){return t("transition",{props:{mode:"out-in"},on:{beforeEnter:function(t){t.style.opacity=.2},enter:function(t){Object(pt.addClass)(t,"el-opacity-transition"),t.style.opacity=1},afterEnter:function(t){Object(pt.removeClass)(t,"el-opacity-transition"),t.style.opacity=""},beforeLeave:function(t){t.dataset||(t.dataset={}),Object(pt.hasClass)(t,"el-menu--collapse")?(Object(pt.removeClass)(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(pt.addClass)(t,"el-menu--collapse")):(Object(pt.addClass)(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(pt.removeClass)(t,"el-menu--collapse")),t.style.width=t.scrollWidth+"px",t.style.overflow="hidden"},leave:function(t){Object(pt.addClass)(t,"horizontal-collapse-transition"),t.style.width=t.dataset.scrollWidth+"px"}}},e.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(t){this.items[t]||(this.activeIndex=null),this.updateActiveIndex(t)},defaultOpeneds:function(t){this.collapse||(this.openedMenus=t)},collapse:function(t){t&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",t)}},methods:{updateActiveIndex:function(t){var e=this.items[t]||this.items[this.activeIndex]||this.items[this.defaultActive];e?(this.activeIndex=e.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(t){if(t=t.replace("#",""),/^[0-9a-fA-F]{3}$/.test(t)){t=t.split("");for(var e=2;e>=0;e--)t.splice(e,0,t[e]);t=t.join("")}return/^[0-9a-fA-F]{6}$/.test(t)?{red:parseInt(t.slice(0,2),16),green:parseInt(t.slice(2,4),16),blue:parseInt(t.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(t,e){var n=this.getColorChannels(t),r=n.red,i=n.green,o=n.blue;return e>0?(r*=1-e,i*=1-e,o*=1-e):(r+=(255-r)*e,i+=(255-i)*e,o+=(255-o)*e),"rgb("+Math.round(r)+", "+Math.round(i)+", "+Math.round(o)+")"},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},openMenu:function(t,e){var n=this.openedMenus;-1===n.indexOf(t)&&(this.uniqueOpened&&(this.openedMenus=n.filter(function(t){return-1!==e.indexOf(t)})),this.openedMenus.push(t))},closeMenu:function(t){var e=this.openedMenus.indexOf(t);-1!==e&&this.openedMenus.splice(e,1)},handleSubmenuClick:function(t){var e=t.index,n=t.indexPath;-1!==this.openedMenus.indexOf(e)?(this.closeMenu(e),this.$emit("close",e,n)):(this.openMenu(e,n),this.$emit("open",e,n))},handleItemClick:function(t){var e=this,n=t.index,r=t.indexPath,i=this.activeIndex,o=null!==t.index;o&&(this.activeIndex=t.index),this.$emit("select",n,r,t),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(t,function(t){if(e.activeIndex=i,t){if("NavigationDuplicated"===t.name)return;console.error(t)}})},initOpenedMenu:function(){var t=this,e=this.activeIndex,n=this.items[e];n&&"horizontal"!==this.mode&&!this.collapse&&n.indexPath.forEach(function(e){var n=t.submenus[e];n&&t.openMenu(e,n.indexPath)})},routeToItem:function(t,e){var n=t.route||t.index;try{this.$router.push(n,function(){},e)}catch(t){console.error(t)}},open:function(t){var e=this,n=this.submenus[t.toString()].indexPath;n.forEach(function(t){return e.openMenu(t,n)})},close:function(t){this.closeMenu(t)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new ft(this.$el),this.$watch("items",this.updateActiveIndex)}},void 0,void 0,!1,null,null,null);gt.options.__file="packages/menu/src/menu.vue";var vt=gt.exports;vt.install=function(t){t.component(vt.name,vt)};var mt=vt,yt=n(21),bt=n.n(yt),_t={inject:["rootMenu"],computed:{indexPath:function(){for(var t=[this.index],e=this.$parent;"ElMenu"!==e.$options.componentName;)e.index&&t.unshift(e.index),e=e.$parent;return t},parentMenu:function(){for(var t=this.$parent;t&&-1===["ElMenu","ElSubmenu"].indexOf(t.$options.componentName);)t=t.$parent;return t},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var t=20,e=this.$parent;if(this.rootMenu.collapse)t=20;else for(;e&&"ElMenu"!==e.$options.componentName;)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return{paddingLeft:t+"px"}}}},xt={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:j.a.props.offset,boundariesPadding:j.a.props.boundariesPadding,popperOptions:j.a.props.popperOptions},data:j.a.data,methods:j.a.methods,beforeDestroy:j.a.beforeDestroy,deactivated:j.a.deactivated},wt=i({name:"ElSubmenu",componentName:"ElSubmenu",mixins:[_t,C.a,xt],components:{ElCollapseTransition:bt.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(t){var e=this;this.isMenuPopup&&this.$nextTick(function(t){e.updatePopper()})}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var t=!1,e=this.submenus,n=this.items;return Object.keys(n).forEach(function(e){n[e].active&&(t=!0)}),Object.keys(e).forEach(function(n){e[n].active&&(t=!0)}),t},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){for(var t=!0,e=this.$parent;e&&e!==this.rootMenu;){if(["ElSubmenu","ElMenuItemGroup"].indexOf(e.$options.componentName)>-1){t=!1;break}e=e.$parent}return t}},methods:{handleCollapseToggle:function(t){t?this.initPopper():this.doDestroy()},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},handleClick:function(){var t=this.rootMenu,e=this.disabled;"hover"===t.menuTrigger&&"horizontal"===t.mode||t.collapse&&"vertical"===t.mode||e||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==t.type||t.relatedTarget){var r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.rootMenu.openMenu(e.index,e.indexPath)},n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){!t.mouseInChild&&t.rootMenu.closeMenu(t.index)},this.hideTimeout),this.appendToBody&&e&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var t=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",function(){t.mouseInChild=!0,clearTimeout(t.timeout)}),this.$on("mouse-leave-child",function(){t.mouseInChild=!1,clearTimeout(t.timeout)})},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(t){var e=this,n=this.active,r=this.opened,i=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,u=this.menuTransitionName,c=this.mode,h=this.disabled,d=this.popperClass,f=this.$slots,p=this.isFirstLevel,g=t("transition",{attrs:{name:u}},[t("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+c,d],on:{mouseenter:function(t){return e.handleMouseenter(t,100)},mouseleave:function(){return e.handleMouseleave(!0)},focus:function(t){return e.handleMouseenter(t,100)}}},[t("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[f.default])])]),v=t("el-collapse-transition",[t("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[f.default])]),m="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return t("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":h},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return e.handleMouseleave(!1)},focus:this.handleMouseenter}},[t("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,o,{backgroundColor:a}]},[f.title,t("i",{class:["el-submenu__icon-arrow",m]})]),this.isMenuPopup?g:v])}},void 0,void 0,!1,null,null,null);wt.options.__file="packages/menu/src/submenu.vue";var St=wt.exports;St.install=function(t){t.component(St.name,St)};var Ct=St,kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-menu-item",class:{"is-active":t.active,"is-disabled":t.disabled},style:[t.paddingStyle,t.itemStyle,{backgroundColor:t.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:t.handleClick,mouseenter:t.onMouseEnter,focus:t.onMouseEnter,blur:t.onMouseLeave,mouseleave:t.onMouseLeave}},["ElMenu"===t.parentMenu.$options.componentName&&t.rootMenu.collapse&&t.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[t._t("default")],2)]):[t._t("default"),t._t("title")]],2)};kt._withStripped=!0;var Ot=n(26),Mt=n.n(Ot),Et=i({name:"ElMenuItem",componentName:"ElMenuItem",mixins:[_t,C.a],components:{ElTooltip:Mt.a},props:{index:{default:null,validator:function(t){return"string"==typeof t||null===t}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var t={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(t.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),t},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},kt,[],!1,null,null,null);Et.options.__file="packages/menu/src/menu-item.vue";var Tt=Et.exports;Tt.install=function(t){t.component(Tt.name,Tt)};var At=Tt,It=function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"el-menu-item-group"},[e("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:this.levelPadding+"px"}},[this.$slots.title?this._t("title"):[this._v(this._s(this.title))]],2),e("ul",[this._t("default")],2)])};It._withStripped=!0;var Dt=i({name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var t=20,e=this.$parent;if(this.rootMenu.collapse)return 20;for(;e&&"ElMenu"!==e.$options.componentName;)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return t}}},It,[],!1,null,null,null);Dt.options.__file="packages/menu/src/menu-item-group.vue";var Pt=Dt.exports;Pt.install=function(t){t.component(Pt.name,Pt)};var Lt=Pt,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)};jt._withStripped=!0;var Nt=void 0,Rt="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",Bt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Ft(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Nt||(Nt=document.createElement("textarea"),document.body.appendChild(Nt));var r=function(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:Bt.map(function(t){return t+":"+e.getPropertyValue(t)}).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;Nt.setAttribute("style",s+";"+Rt),Nt.value=t.value||t.placeholder||"";var l=Nt.scrollHeight,u={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),Nt.value="";var c=Nt.scrollHeight-i;if(null!==e){var h=c*e;"border-box"===a&&(h=h+i+o),l=Math.max(h,l),u.minHeight=h+"px"}if(null!==n){var d=c*n;"border-box"===a&&(d=d+i+o),l=Math.min(d,l)}return u.height=l+"px",Nt.parentNode&&Nt.parentNode.removeChild(Nt),Nt=null,u}var zt=n(7),Vt=n.n(zt),$t=n(19),Gt=i({name:"ElInput",componentName:"ElInput",mixins:[C.a,w.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return Vt()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick(function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=Ft(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:Ft(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(t){var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object($t.isKorean)(n)},handleCompositionEnd:function(t){this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"}[t];this.$slots[i]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+i).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){this.passwordVisible=!this.passwordVisible,this.focus()},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},jt,[],!1,null,null,null);Gt.options.__file="packages/input/src/input.vue";var Ht=Gt.exports;Ht.install=function(t){t.component(Ht.name,Ht)};var Wt=Ht,Ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.decrease(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.increase(e):null}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.increase(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.decrease(e)):null}]}})],1)};Ut._withStripped=!0;var Yt={bind:function(t,e,n){var r=null,i=void 0,o=function(){return n.context[e.expression].apply()},a=function(){Date.now()-i<100&&o(),clearInterval(r),r=null};Object(pt.on)(t,"mousedown",function(t){0===t.button&&(i=Date.now(),Object(pt.once)(document,"mouseup",a),clearInterval(r),r=setInterval(o,100))})}},Xt=i({name:"ElInputNumber",mixins:[V()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:Yt},components:{ElInput:d.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},Ut,[],!1,null,null,null);Xt.options.__file="packages/input-number/src/input-number.vue";var qt=Xt.exports;qt.install=function(t){t.component(qt.name,qt)};var Zt=qt,Kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};Kt._withStripped=!0;var Jt=i({name:"ElRadio",mixins:[C.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick(function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)})}}},Kt,[],!1,null,null,null);Jt.options.__file="packages/radio/src/radio.vue";var Qt=Jt.exports;Qt.install=function(t){t.component(Qt.name,Qt)};var te=Qt,ee=function(){var t=this.$createElement;return(this._self._c||t)(this._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:this.handleKeydown}},[this._t("default")],2)};ee._withStripped=!0;var ne=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),re=i({name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[C.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){return(this.$vnode.data||{}).tag||"div"},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var t=this;this.$on("handleChange",function(e){t.$emit("change",e)})},mounted:function(){var t=this.$el.querySelectorAll("[type=radio]"),e=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(t,function(t){return t.checked})&&e&&(e.tabIndex=0)},methods:{handleKeydown:function(t){var e=t.target,n="INPUT"===e.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,o=[].indexOf.call(r,e),a=this.$el.querySelectorAll("[role=radio]");switch(t.keyCode){case ne.LEFT:case ne.UP:t.stopPropagation(),t.preventDefault(),0===o?(a[i-1].click(),a[i-1].focus()):(a[o-1].click(),a[o-1].focus());break;case ne.RIGHT:case ne.DOWN:o===i-1?(t.stopPropagation(),t.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus())}}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[this.value])}}},ee,[],!1,null,null,null);re.options.__file="packages/radio/src/radio-group.vue";var ie=re.exports;ie.install=function(t){t.component(ie.name,ie)};var oe=ie,ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio-button",class:[t.size?"el-radio-button--"+t.size:"",{"is-active":t.value===t.label},{"is-disabled":t.isDisabled},{"is-focus":t.focus}],attrs:{role:"radio","aria-checked":t.value===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.value=t.isDisabled?t.value:t.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.value,t.label)},on:{change:[function(e){t.value=t.label},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:t.value===t.label?t.activeStyle:null,on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};ae._withStripped=!0;var se=i({name:"ElRadioButton",mixins:[C.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(t){this._radioGroup.$emit("input",t)}},_radioGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return t;t=t.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick(function(){t.dispatch("ElRadioGroup","handleChange",t.value)})}}},ae,[],!1,null,null,null);se.options.__file="packages/radio/src/radio-button.vue";var le=se.exports;le.install=function(t){t.component(le.name,le)};var ue=le,ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};ce._withStripped=!0;var he=i({name:"ElCheckbox",mixins:[C.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick(function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},ce,[],!1,null,null,null);he.options.__file="packages/checkbox/src/checkbox.vue";var de=he.exports;de.install=function(t){t.component(de.name,de)};var fe=de,pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox-button",class:[t.size?"el-checkbox-button--"+t.size:"",{"is-disabled":t.isDisabled},{"is-checked":t.isChecked},{"is-focus":t.focus}],attrs:{role:"checkbox","aria-checked":t.isChecked,"aria-disabled":t.isDisabled}},[t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox-button__inner",style:t.isChecked?t.activeStyle:null},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])};pe._withStripped=!0;var ge=i({name:"ElCheckboxButton",mixins:[C.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):void 0!==this.value?this.$emit("input",t):this.selfModel=t}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return t;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick(function(){e._checkboxGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()}},pe,[],!1,null,null,null);ge.options.__file="packages/checkbox/src/checkbox-button.vue";var ve=ge.exports;ve.install=function(t){t.component(ve.name,ve)};var me=ve,ye=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};ye._withStripped=!0;var be=i({name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[C.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},ye,[],!1,null,null,null);be.options.__file="packages/checkbox/src/checkbox-group.vue";var _e=be.exports;_e.install=function(t){t.component(_e.name,_e)};var xe=_e,we=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-switch",class:{"is-disabled":t.switchDisabled,"is-checked":t.checked},attrs:{role:"switch","aria-checked":t.checked,"aria-disabled":t.switchDisabled},on:{click:function(e){return e.preventDefault(),t.switchValue(e)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:t.id,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:t.switchDisabled},on:{change:t.handleChange,keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.switchValue(e):null}}}),t.inactiveIconClass||t.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",t.checked?"":"is-active"]},[t.inactiveIconClass?n("i",{class:[t.inactiveIconClass]}):t._e(),!t.inactiveIconClass&&t.inactiveText?n("span",{attrs:{"aria-hidden":t.checked}},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:t.coreWidth+"px"}}),t.activeIconClass||t.activeText?n("span",{class:["el-switch__label","el-switch__label--right",t.checked?"is-active":""]},[t.activeIconClass?n("i",{class:[t.activeIconClass]}):t._e(),!t.activeIconClass&&t.activeText?n("span",{attrs:{"aria-hidden":!t.checked}},[t._v(t._s(t.activeText))]):t._e()]):t._e()])};we._withStripped=!0;var Se=i({name:"ElSwitch",mixins:[V()("input"),w.a,C.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(t){var e=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick(function(){e.$refs.input.checked=e.checked})},setBackgroundColor:function(){var t=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=t,this.$refs.core.style.backgroundColor=t},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},we,[],!1,null,null,null);Se.options.__file="packages/switch/src/component.vue";var Ce=Se.exports;Ce.install=function(t){t.component(Ce.name,Ce)};var ke=Ce,Oe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])}),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.navigateOptions("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?t.deletePrevTag(e):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{keyup:function(e){return t.debouncedOnInputChange(e)},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("prev")},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.selectOption(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],paste:function(e){return t.debouncedOnInputChange(e)},mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)};Oe._withStripped=!0;var Me=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};Me._withStripped=!0;var Ee=i({name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[j.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){t.$parent.visible&&t.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},Me,[],!1,null,null,null);Ee.options.__file="packages/select/src/select-dropdown.vue";var Te=Ee.exports,Ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)};Ae._withStripped=!0;var Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De=i({mixins:[C.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":Ie(t))&&"object"===(void 0===e?"undefined":Ie(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(g.getValueByPath)(t,n)===Object(g.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some(function(t){return Object(g.getValueByPath)(t,n)===Object(g.getValueByPath)(e,n)})}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(g.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Ae,[],!1,null,null,null);De.options.__file="packages/select/src/option.vue";var Pe=De.exports,Le=n(29),je=n.n(Le),Ne=n(12),Re=n(27),Be=n.n(Re),Fe=i({mixins:[C.a,p.a,V()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(t){return t.visible}).every(function(t){return t.disabled})}},watch:{hoverIndex:function(t){var e=this;"number"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach(function(t){t.hover=e.hoverOption===t})}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick(function(){return e.scrollToOption(e.hoverOption)})}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(g.isIE)()&&!Object(g.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter(function(t){return!t.created}).some(function(e){return e.currentLabel===t.query});return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:d.a,ElSelectMenu:Te,ElOption:Pe,ElTag:je.a,ElScrollbar:R.a},directives:{Clickoutside:D.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick(function(){t.resetInputHeight()})},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(g.valueEquals)(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick(function(){t.broadcast("ElSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick(function(t){return e.handleQueryChange(n)});else{var r=n[n.length-1]||"";this.isOnComposition=!Object($t.isKorean)(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick(function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");Be()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick(function(){return t.scrollToOption(t.selected)})},emitChange:function(t){Object(g.valueEquals)(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(g.getValueByPath)(a.value,this.valueKey)===Object(g.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s={value:t,currentLabel:n||r||i?"":t};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(e){n.push(t.getOption(e))}),this.selected=n,this.$nextTick(function(){t.resetInputHeight()})},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout(function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)},50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,function(t){return"INPUT"===t.tagName})[0],r=t.$refs.tags,i=t.initialInputHeight||40;n.style.height=0===t.selected.length?i+"px":Math.max(r?r.clientHeight+(r.clientHeight>i?6:0):0,i)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var t=this;setTimeout(function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(function(e){return t.options.indexOf(e)})):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)},300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(t)})},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if("[object object]"===Object.prototype.toString.call(e).toLowerCase()){var n=this.valueKey,r=-1;return t.some(function(t,i){return Object(g.getValueByPath)(t,n)===Object(g.getValueByPath)(e,n)&&(r=i,!0)}),r}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(g.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=A()(this.debounce,function(){t.onInputChange()}),this.debouncedQueryChange=A()(this.debounce,function(e){t.handleQueryChange(e.target.value)}),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(Ne.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n=e.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(Ne.removeResizeListener)(this.$el,this.handleResize)}},Oe,[],!1,null,null,null);Fe.options.__file="packages/select/src/select.vue";var ze=Fe.exports;ze.install=function(t){t.component(ze.name,ze)};var Ve=ze;Pe.install=function(t){t.component(Pe.name,Pe)};var $e=Pe,Ge=function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{directives:[{name:"show",rawName:"v-show",value:this.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[e("li",{staticClass:"el-select-group__title"},[this._v(this._s(this.label))]),e("li",[e("ul",{staticClass:"el-select-group"},[this._t("default")],2)])])};Ge._withStripped=!0;var He=i({mixins:[C.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(t){this.broadcast("ElOption","handleGroupDisabled",t)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some(function(t){return!0===t.visible})}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},Ge,[],!1,null,null,null);He.options.__file="packages/select/src/option-group.vue";var We=He.exports;We.install=function(t){t.component(We.name,We)};var Ue=We,Ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])};Ye._withStripped=!0;var Xe=i({name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},Ye,[],!1,null,null,null);Xe.options.__file="packages/button/src/button.vue";var qe=Xe.exports;qe.install=function(t){t.component(qe.name,qe)};var Ze=qe,Ke=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-button-group"},[this._t("default")],2)};Ke._withStripped=!0;var Je=i({name:"ElButtonGroup"},Ke,[],!1,null,null,null);Je.options.__file="packages/button/src/button-group.vue";var Qe=Je.exports;Qe.install=function(t){t.component(Qe.name,Qe)};var tn=Qe,en=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-table",class:[{"el-table--fit":t.fit,"el-table--striped":t.stripe,"el-table--border":t.border||t.isGroup,"el-table--hidden":t.isHidden,"el-table--group":t.isGroup,"el-table--fluid-height":t.maxHeight,"el-table--scrollable-x":t.layout.scrollX,"el-table--scrollable-y":t.layout.scrollY,"el-table--enable-row-hover":!t.store.states.isComplex,"el-table--enable-row-transition":0!==(t.store.states.data||[]).length&&(t.store.states.data||[]).length<100},t.tableSize?"el-table--"+t.tableSize:""],on:{mouseleave:function(e){t.handleMouseLeave(e)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[t._t("default")],2),t.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"default-sort":t.defaultSort}})],1):t._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[t.layout.scrollX?"is-scrolling-"+t.scrollPosition:"is-scrolling-none"],style:[t.bodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{context:t.context,store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.data&&0!==t.data.length?t._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:t.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[t._t("empty",[t._v(t._s(t.emptyText||t.t("el.table.emptyText")))])],2)]),t.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[t._t("append")],2):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,"default-sort":t.defaultSort}})],1):t._e(),t.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:t.layout.fixedWidth?t.layout.fixedWidth+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"left",store:t.store,stripe:t.stripe,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"row-style":t.rowStyle}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:t.layout.rightFixedWidth?t.layout.rightFixedWidth+"px":"",right:t.layout.scrollY?(t.border?t.layout.gutterWidth:t.layout.gutterWidth||0)+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"right",store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:t.layout.scrollY?t.layout.gutterWidth+"px":"0",height:t.layout.headerHeight+"px"}}):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])};en._withStripped=!0;var nn=n(16),rn=n.n(nn),on=n(35),an=n(38),sn=n.n(an),ln="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,un={bind:function(t,e){var n,r;n=t,r=e.value,n&&n.addEventListener&&n.addEventListener(ln?"DOMMouseScroll":"mousewheel",function(t){var e=sn()(t);r&&r.apply(this,[t,e])})}},cn=n(6),hn=n.n(cn),dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn=function(t){for(var e=t.target;e&&"HTML"!==e.tagName.toUpperCase();){if("TD"===e.tagName.toUpperCase())return e;e=e.parentNode}return null},pn=function(t){return null!==t&&"object"===(void 0===t?"undefined":dn(t))},gn=function(t,e,n,r,i){if(!e&&!r&&(!i||Array.isArray(i)&&!i.length))return t;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map(function(e){return"string"==typeof e?Object(g.getValueByPath)(n,e):e(n,r,t)})):("$key"!==e&&pn(n)&&"$value"in n&&(n=n.$value),[pn(n)?Object(g.getValueByPath)(n,e):n])};return t.map(function(t,e){return{value:t,index:e,key:o?o(t,e):null}}).sort(function(t,e){var i=function(t,e){if(r)return r(t.value,e.value);for(var n=0,i=t.key.length;n<i;n++){if(t.key[n]<e.key[n])return-1;if(t.key[n]>e.key[n])return 1}return 0}(t,e);return i||(i=t.index-e.index),i*n}).map(function(t){return t.value})},vn=function(t,e){var n=null;return t.columns.forEach(function(t){t.id===e&&(n=t)}),n},mn=function(t,e){var n=(e.className||"").match(/el-table_[^\s]+/gm);return n?vn(t,n[0]):null},yn=function(t,e){if(!t)throw new Error("row is required when get row identity");if("string"==typeof e){if(e.indexOf(".")<0)return t[e];for(var n=e.split("."),r=t,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"==typeof e)return e.call(null,t)},bn=function(t,e){var n={};return(t||[]).forEach(function(t,r){n[yn(t,e)]={row:t,index:r}}),n};function _n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function xn(t){return void 0!==t&&(t=parseInt(t,10),isNaN(t)&&(t=null)),t}function wn(t){return"number"==typeof t?t:"string"==typeof t?/^\d+(?:px)?$/.test(t)?parseInt(t,10):t:null}function Sn(t,e,n){var r=!1,i=t.indexOf(e),o=-1!==i,a=function(){t.push(e),r=!0},s=function(){t.splice(i,1),r=!0};return"boolean"==typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function Cn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(t){return!(Array.isArray(t)&&t.length)};t.forEach(function(t){if(t[r])e(t,null,0);else{var o=t[n];i(o)||function t(o,a,s){e(o,a,s),a.forEach(function(o){if(o[r])e(o,null,s+1);else{var a=o[n];i(a)||t(o,a,s+1)}})}(t,o,0)}})}var kn={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.rowKey,i=t.defaultExpandAll,o=t.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=bn(o,r);this.states.expandRows=n.reduce(function(t,e){var n=yn(e,r);return a[n]&&t.push(e),t},[])}else this.states.expandRows=[]},toggleRowExpansion:function(t,e){Sn(this.states.expandRows,t,e)&&(this.table.$emit("expand-change",t,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(t){this.assertRowKey();var e=this.states,n=e.data,r=e.rowKey,i=bn(n,r);this.states.expandRows=t.reduce(function(t,e){var n=i[e];return n&&t.push(n.row),t},[])},isRowExpanded:function(t){var e=this.states,n=e.expandRows,r=void 0===n?[]:n,i=e.rowKey;return i?!!bn(r,i)[yn(t,i)]:-1!==r.indexOf(t)}}},On={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(t){this.assertRowKey(),this.states._currentRowKey=t,this.setCurrentRowByKey(t)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(t){var e=this.states,n=e.data,r=void 0===n?[]:n,i=e.rowKey,o=null;i&&(o=Object(g.arrayFind)(r,function(e){return yn(e,i)===t})),e.currentRow=o},updateCurrentRow:function(t){var e=this.states,n=this.table,r=e.currentRow;if(t&&t!==r)return e.currentRow=t,void n.$emit("current-change",t,r);!t&&r&&(e.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var t=this.states,e=this.table,n=t.rowKey,r=t._currentRowKey,i=t.data||[],o=t.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=yn(o,n);this.setCurrentRowByKey(a)}else t.currentRow=null;null===t.currentRow&&e.$emit("current-change",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},Mn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},En={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var t=this.states.data||[];return this.normalize(t)},normalizedLazyNode:function(){var t=this.states,e=t.rowKey,n=t.lazyTreeNodeMap,r=t.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach(function(t){if(n[t].length){var i={children:[]};n[t].forEach(function(t){var n=yn(t,e);i.children.push(n),t[r]&&!o[n]&&(o[n]={children:[]})}),o[t]=i}}),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(t){var e=this.states,n=e.childrenColumnName,r=e.lazyColumnIdentifier,i=e.rowKey,o=e.lazy,a={};return Cn(t,function(t,e,n){var r=yn(t,i);Array.isArray(e)?a[r]={children:e.map(function(t){return yn(t,i)}),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})},n,r),a},updateTreeData:function(){var t=this.normalizedData,e=this.normalizedLazyNode,n=Object.keys(t),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,l=i.lazy,u=[],c=function(t,e){var n=a||s&&-1!==s.indexOf(e);return!!(t&&t.expanded||n)};n.forEach(function(e){var n=o[e],i=Mn({},t[e]);if(i.expanded=c(n,e),i.lazy){var a=n||{},s=a.loaded,l=void 0!==s&&s,h=a.loading,d=void 0!==h&&h;i.loaded=!!l,i.loading=!!d,u.push(e)}r[e]=i});var h=Object.keys(e);l&&h.length&&u.length&&h.forEach(function(t){var n=o[t],i=e[t].children;if(-1!==u.indexOf(t)){if(0!==r[t].children.length)throw new Error("[ElTable]children must be an empty array.");r[t].children=i}else{var a=n||{},s=a.loaded,l=void 0!==s&&s,h=a.loading,d=void 0!==h&&h;r[t]={lazy:!0,loaded:!!l,loading:!!d,expanded:c(n,t),children:i,level:""}}})}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(t){this.states.expandRowKeys=t,this.updateTreeData()},toggleTreeExpansion:function(t,e){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=yn(t,r),a=o&&i[o];if(o&&a&&"expanded"in a){var s=a.expanded;e=void 0===e?!a.expanded:e,i[o].expanded=e,s!==e&&this.table.$emit("expand-change",t,e),this.updateTableScrollY()}},loadOrToggle:function(t){this.assertRowKey();var e=this.states,n=e.lazy,r=e.treeData,i=e.rowKey,o=yn(t,i),a=r[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(t,o,a):this.toggleTreeExpansion(t)},loadData:function(t,e,n){var r=this,i=this.table.load,o=this.states,a=o.lazyTreeNodeMap,s=o.treeData;i&&!s[e].loaded&&(s[e].loading=!0,i(t,n,function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");s[e].loading=!1,s[e].loaded=!0,s[e].expanded=!0,n.length&&r.$set(a,e,n),r.table.$emit("expand-change",t,!0)}))}}},Tn=function t(e){var n=[];return e.forEach(function(e){e.children?n.push.apply(n,t(e.children)):n.push(e)}),n},An=hn.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[kn,On,En],methods:{assertRowKey:function(){if(!this.states.rowKey)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var t=this.states,e=t._columns||[];t.fixedColumns=e.filter(function(t){return!0===t.fixed||"left"===t.fixed}),t.rightFixedColumns=e.filter(function(t){return"right"===t.fixed}),t.fixedColumns.length>0&&e[0]&&"selection"===e[0].type&&!e[0].fixed&&(e[0].fixed=!0,t.fixedColumns.unshift(e[0]));var n=e.filter(function(t){return!t.fixed});t.originColumns=[].concat(t.fixedColumns).concat(n).concat(t.rightFixedColumns);var r=Tn(n),i=Tn(t.fixedColumns),o=Tn(t.rightFixedColumns);t.leafColumnsLength=r.length,t.fixedLeafColumnsLength=i.length,t.rightFixedLeafColumnsLength=o.length,t.columns=[].concat(i).concat(r).concat(o),t.isComplex=t.fixedColumns.length>0||t.rightFixedColumns.length>0},scheduleLayout:function(t){t&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(t){var e=this.states.selection;return(void 0===e?[]:e).indexOf(t)>-1},clearSelection:function(){var t=this.states;t.isAllSelected=!1,t.selection.length&&(t.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var t=this.states,e=t.data,n=t.rowKey,r=t.selection,i=void 0;if(n){i=[];var o=bn(r,n),a=bn(e,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter(function(t){return-1===e.indexOf(t)});if(i.length){var l=r.filter(function(t){return-1===i.indexOf(t)});t.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Sn(this.states.selection,t,e)){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,t),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.selection,i=t.selectOnIndeterminate?!t.isAllSelected:!(t.isAllSelected||r.length);t.isAllSelected=i;var o=!1;n.forEach(function(e,n){t.selectable?t.selectable.call(null,e,n)&&Sn(r,e,i)&&(o=!0):Sn(r,e,i)&&(o=!0)}),o&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.data,i=bn(e,n);r.forEach(function(t){var r=yn(t,n),o=i[r];o&&(e[o.index]=t)})},updateAllSelected:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.selectable,i=t.data||[];if(0!==i.length){var o=void 0;n&&(o=bn(e,n));for(var a,s=!0,l=0,u=0,c=i.length;u<c;u++){var h=i[u],d=r&&r.call(null,h,u);if(a=h,o?o[yn(a,n)]:-1!==e.indexOf(a))l++;else if(!r||d){s=!1;break}}0===l&&(s=!1),t.isAllSelected=s}else t.isAllSelected=!1},updateFilters:function(t,e){Array.isArray(t)||(t=[t]);var n=this.states,r={};return t.forEach(function(t){n.filters[t.id]=e,r[t.columnKey||t.id]=e}),r},updateSort:function(t,e,n){this.states.sortingColumn&&this.states.sortingColumn!==t&&(this.states.sortingColumn.order=null),this.states.sortingColumn=t,this.states.sortProp=e,this.states.sortOrder=n},execFilter:function(){var t=this,e=this.states,n=e._data,r=e.filters,i=n;Object.keys(r).forEach(function(n){var r=e.filters[n];if(r&&0!==r.length){var o=vn(t.states,n);o&&o.filterMethod&&(i=i.filter(function(t){return r.some(function(e){return o.filterMethod.call(null,e,t,o)})}))}}),e.filteredData=i},execSort:function(){var t=this.states;t.data=function(t,e){var n=e.sortingColumn;return n&&"string"!=typeof n.sortable?gn(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy):t}(t.filteredData,t)},execQuery:function(t){t&&t.filter||this.execFilter(),this.execSort()},clearFilter:function(t){var e=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=Vt()(a,r.filterPanels)),i&&(a=Vt()(a,i.filterPanels)),o&&(a=Vt()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"==typeof t&&(t=[t]),Array.isArray(t)){var l=t.map(function(t){return function(t,e){for(var n=null,r=0;r<t.columns.length;r++){var i=t.columns[r];if(i.columnKey===e){n=i;break}}return n}(e,t)});s.forEach(function(t){l.find(function(e){return e.id===t})&&(a[t].filteredValue=[])}),this.commit("filterChange",{column:l,values:[],silent:!0,multi:!0})}else s.forEach(function(t){a[t].filteredValue=[]}),e.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){this.states.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(t){this.setExpandRowKeys(t),this.updateTreeExpandKeys(t)},toggleRowExpansionAdapter:function(t,e){this.states.columns.some(function(t){return"expand"===t.type})?this.toggleRowExpansion(t,e):this.toggleTreeExpansion(t,e)}}});An.prototype.mutations={setData:function(t,e){var n=t._data!==e;t._data=e,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),t.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(t,e,n,r){var i=t._columns;r&&((i=r.children)||(i=r.children=[])),void 0!==n?i.splice(n,0,e):i.push(e),"selection"===e.type&&(t.selectable=e.selectable,t.reserveSelection=e.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(t,e,n){var r=t._columns;n&&((r=n.children)||(r=n.children=[])),r&&r.splice(r.indexOf(e),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(t,e){var n=e.prop,r=e.order,i=e.init;if(n){var o=Object(g.arrayFind)(t.columns,function(t){return t.property===n});o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,e){var n=t.sortingColumn,r=t.sortProp,i=t.sortOrder;null===i&&(t.sortingColumn=null,t.sortProp=null);this.execQuery({filter:!0}),e&&(e.silent||e.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(t,e){var n=e.column,r=e.values,i=e.silent,o=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(t,e){this.toggleRowSelection(e),this.updateAllSelected()},setHoverRow:function(t,e){t.hoverRow=e},setCurrentRow:function(t,e){this.updateCurrentRow(e)}},An.prototype.commit=function(t){var e=this.mutations;if(!e[t])throw new Error("Action not found: "+t);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e[t].apply(this,[this.states].concat(r))},An.prototype.updateTableScrollY=function(){hn.a.nextTick(this.table.updateScrollY)};var In=An;function Dn(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n],i=void 0;"string"==typeof r?i=function(){return this.store.states[r]}:"function"==typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(e[n]=i)}),e}var Pn=n(30),Ln=n.n(Pn);var jn=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=Ln()(),e)e.hasOwnProperty(n)&&(this[n]=e[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return t.prototype.updateScrollY=function(){if(null===this.height)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var e=t.querySelector(".el-table__body"),n=this.scrollY,r=e.offsetHeight>this.bodyHeight;return this.scrollY=r,n!==r}return!1},t.prototype.setHeight=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!hn.a.prototype.$isServer){var r=this.table.$el;if(t=wn(t),this.height=t,!r&&(t||0===t))return hn.a.nextTick(function(){return e.setHeight(t,n)});"number"==typeof t?(r.style[n]=t+"px",this.updateElsHeight()):"string"==typeof t&&(r.style[n]=t,this.updateElsHeight())}},t.prototype.setMaxHeight=function(t){this.setHeight(t,"max-height")},t.prototype.getFlattenColumns=function(){var t=[];return this.table.columns.forEach(function(e){e.isColumnGroup?t.push.apply(t,e.columns):t.push(e)}),t},t.prototype.updateElsHeight=function(){var t=this;if(!this.table.$ready)return hn.a.nextTick(function(){return t.updateElsHeight()});var e=this.table.$refs,n=e.headerWrapper,r=e.appendWrapper,i=e.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return hn.a.nextTick(function(){return t.updateElsHeight()});var l=this.tableHeight=this.table.$el.clientHeight,u=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-u+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var c=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(c?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},t.prototype.headerDisplayNone=function(t){if(!t)return!0;for(var e=t;"DIV"!==e.tagName;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},t.prototype.updateColumnsWidth=function(){if(!hn.a.prototype.$isServer){var t=this.fit,e=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter(function(t){return"number"!=typeof t.width});if(r.forEach(function(t){"number"==typeof t.width&&t.realWidth&&(t.realWidth=null)}),i.length>0&&t){r.forEach(function(t){n+=t.width||t.minWidth||80});var o=this.scrollY?this.gutterWidth:0;if(n<=e-o){this.scrollX=!1;var a=e-o-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=a/i.reduce(function(t,e){return t+(e.minWidth||80)},0),l=0;i.forEach(function(t,e){if(0!==e){var n=Math.floor((t.minWidth||80)*s);l+=n,t.realWidth=(t.minWidth||80)+n}}),i[0].realWidth=(i[0].minWidth||80)+a-l}}else this.scrollX=!0,i.forEach(function(t){t.realWidth=t.minWidth});this.bodyWidth=Math.max(n,e),this.table.resizeState.width=this.bodyWidth}else r.forEach(function(t){t.width||t.minWidth?t.realWidth=t.width||t.minWidth:t.realWidth=80,n+=t.realWidth}),this.scrollX=n>e,this.bodyWidth=n;var u=this.store.states.fixedColumns;if(u.length>0){var c=0;u.forEach(function(t){c+=t.realWidth||t.width}),this.fixedWidth=c}var h=this.store.states.rightFixedColumns;if(h.length>0){var d=0;h.forEach(function(t){d+=t.realWidth||t.width}),this.rightFixedWidth=d}this.notifyObservers("columns")}},t.prototype.addObserver=function(t){this.observers.push(t)},t.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);-1!==e&&this.observers.splice(e,1)},t.prototype.notifyObservers=function(t){var e=this;this.observers.forEach(function(n){switch(t){case"columns":n.onColumnsChange(e);break;case"scrollable":n.onScrollableChange(e);break;default:throw new Error("Table Layout don't have event "+t+".")}})},t}(),Nn={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var t=this.layout;if(!t&&this.table&&(t=this.table.layout),!t)throw new Error("Can not find table layout.");return t}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(t){var e=this.$el.querySelectorAll("colgroup > col");if(e.length){var n={};t.getFlattenColumns().forEach(function(t){n[t.id]=t});for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.getAttribute("name"),s=n[a];s&&o.setAttribute("width",s.realWidth||s.width)}}},onScrollableChange:function(t){for(var e=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=e.length;n<r;n++){e[n].setAttribute("width",t.scrollY?t.gutterWidth:"0")}for(var i=this.$el.querySelectorAll("th.gutter"),o=0,a=i.length;o<a;o++){var s=i[o];s.style.width=t.scrollY?t.gutterWidth+"px":"0",s.style.display=t.scrollY?"":"none"}}}},Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fn={name:"ElTableBody",mixins:[Nn],components:{ElCheckbox:rn.a,ElTooltip:Mt.a},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(t){var e=this,n=this.data||[];return t("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map(function(e){return t("col",{attrs:{name:e.id},key:e.id})})]),t("tbody",[n.reduce(function(t,n){return t.concat(e.wrappedRowRender(n,t.length))},[]),t("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Bn({table:function(){return this.$parent}},Dn({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length},hasExpandColumn:function(t){return t.columns.some(function(t){return"expand"===t.type})}}),{firstDefaultColumnIndex:function(){return Object(g.arrayFindIndex)(this.columns,function(t){return"default"===t.type})}}),watch:{"store.states.hoverRow":function(t,e){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(t){return setTimeout(t,16)}),r(function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[e],o=r[t];i&&Object(pt.removeClass)(i,"hover-row"),o&&Object(pt.addClass)(o,"hover-row")})}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=A()(50,function(t){return t.handleShowPopper()})},methods:{getKeyOfRow:function(t,e){var n=this.table.rowKey;return n?yn(t,n):e},isColumnHidden:function(t){return!0===this.fixed||"left"===this.fixed?t>=this.leftFixedLeafCount:"right"===this.fixed?t<this.columnsCount-this.rightFixedLeafCount:t<this.leftFixedLeafCount||t>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(t,e,n,r){var i=1,o=1,a=this.table.spanMethod;if("function"==typeof a){var s=a({row:t,column:e,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):"object"===(void 0===s?"undefined":Rn(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,colspan:o}},getRowStyle:function(t,e){var n=this.table.rowStyle;return"function"==typeof n?n.call(null,{row:t,rowIndex:e}):n||null},getRowClass:function(t,e){var n=["el-table__row"];this.table.highlightCurrentRow&&t===this.store.states.currentRow&&n.push("current-row"),this.stripe&&e%2==1&&n.push("el-table__row--striped");var r=this.table.rowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{row:t,rowIndex:e})),this.store.states.expandRows.indexOf(t)>-1&&n.push("expanded"),n},getCellStyle:function(t,e,n,r){var i=this.table.cellStyle;return"function"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getCellClass:function(t,e,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(e)&&i.push("is-hidden");var o=this.table.cellClassName;return"string"==typeof o?i.push(o):"function"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.join(" ")},getColspanRealWidth:function(t,e,n){return e<1?t[n].realWidth:t.map(function(t){return t.realWidth}).slice(n,n+e).reduce(function(t,e){return t+e},-1)},handleCellMouseEnter:function(t,e){var n=this.table,r=fn(t);if(r){var i=mn(n,r),o=n.hoverState={cell:r,column:i,row:e};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,t)}var a=t.target.querySelector(".cell");if(Object(pt.hasClass)(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();if(s.setStart(a,0),s.setEnd(a,a.childNodes.length),(s.getBoundingClientRect().width+((parseInt(Object(pt.getStyle)(a,"paddingLeft"),10)||0)+(parseInt(Object(pt.getStyle)(a,"paddingRight"),10)||0))>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var l=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,l.referenceElm=r,l.$refs.popper&&(l.$refs.popper.style.display="none"),l.doDestroy(),l.setExpectedState(!0),this.activateTooltip(l)}}},handleCellMouseLeave:function(t){var e=this.$refs.tooltip;if(e&&(e.setExpectedState(!1),e.handleClosePopper()),fn(t)){var n=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",n.row,n.column,n.cell,t)}},handleMouseEnter:A()(30,function(t){this.store.commit("setHoverRow",t)}),handleMouseLeave:A()(30,function(){this.store.commit("setHoverRow",null)}),handleContextMenu:function(t,e){this.handleEvent(t,e,"contextmenu")},handleDoubleClick:function(t,e){this.handleEvent(t,e,"dblclick")},handleClick:function(t,e){this.store.commit("setCurrentRow",e),this.handleEvent(t,e,"click")},handleEvent:function(t,e,n){var r=this.table,i=fn(t),o=void 0;i&&(o=mn(r,i))&&r.$emit("cell-"+n,e,o,i,t),r.$emit("row-"+n,e,o,t)},rowRender:function(t,e,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,l=a.map(function(t,e){return r.isColumnHidden(e)}),u=this.getRowClass(t,e),c=!0;return n&&(u.push("el-table__row--level-"+n.level),c=n.display),i("tr",{style:[c?null:{display:"none"},this.getRowStyle(t,e)],class:u,key:this.getKeyOfRow(t,e),on:{dblclick:function(e){return r.handleDoubleClick(e,t)},click:function(e){return r.handleClick(e,t)},contextmenu:function(e){return r.handleContextMenu(e,t)},mouseenter:function(t){return r.handleMouseEnter(e)},mouseleave:this.handleMouseLeave}},[a.map(function(u,c){var h=r.getSpan(t,u,e,c),d=h.rowspan,f=h.colspan;if(!d||!f)return null;var p=Bn({},u);p.realWidth=r.getColspanRealWidth(a,f,c);var g={store:r.store,_self:r.context||r.table.$vnode.context,column:p,row:t,$index:e};return c===s&&n&&(g.treeNode={indent:n.level*o,level:n.level},"boolean"==typeof n.expanded&&(g.treeNode.expanded=n.expanded,"loading"in n&&(g.treeNode.loading=n.loading),"noLazyChildren"in n&&(g.treeNode.noLazyChildren=n.noLazyChildren))),i("td",{style:r.getCellStyle(e,c,t,u),class:r.getCellClass(e,c,t,u),attrs:{rowspan:d,colspan:f},on:{mouseenter:function(e){return r.handleCellMouseEnter(e,t)},mouseleave:r.handleCellMouseLeave}},[u.renderCell.call(r._renderProxy,r.$createElement,g,l[c])])})])},wrappedRowRender:function(t,e){var n=this,r=this.$createElement,i=this.store,o=i.isRowExpanded,a=i.assertRowKey,s=i.states,l=s.treeData,u=s.lazyTreeNodeMap,c=s.childrenColumnName,h=s.rowKey;if(this.hasExpandColumn&&o(t)){var d=this.table.renderExpanded,f=this.rowRender(t,e);return d?[[f,r("tr",{key:"expanded-row__"+f.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[d(this.$createElement,{row:t,$index:e,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),f)}if(Object.keys(l).length){a();var p=yn(t,h),g=l[p],v=null;g&&(v={expanded:g.expanded,level:g.level,display:!0},"boolean"==typeof g.lazy&&("boolean"==typeof g.loaded&&g.loaded&&(v.noLazyChildren=!(g.children&&g.children.length)),v.loading=g.loading));var m=[this.rowRender(t,e,v)];if(g){var y=0;g.display=!0,function t(r,i){r&&r.length&&i&&r.forEach(function(r){var o={display:i.display&&i.expanded,level:i.level+1},a=yn(r,h);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if((g=Bn({},l[a]))&&(o.expanded=g.expanded,g.level=g.level||o.level,g.display=!(!g.expanded||!o.display),"boolean"==typeof g.lazy&&("boolean"==typeof g.loaded&&g.loaded&&(o.noLazyChildren=!(g.children&&g.children.length)),o.loading=g.loading)),y++,m.push(n.rowRender(r,e+y,o)),g){var s=u[a]||r[c];t(s,g)}})}(u[p]||t[c],g)}return m}return this.rowRender(t,e)}}},zn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"}},[t.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:t.filteredValue,callback:function(e){t.filteredValue=e},expression:"filteredValue"}},t._l(t.filters,function(e){return n("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.text))])}),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===t.filteredValue.length},attrs:{disabled:0===t.filteredValue.length},on:{click:t.handleConfirm}},[t._v(t._s(t.t("el.table.confirmFilter")))]),n("button",{on:{click:t.handleReset}},[t._v(t._s(t.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===t.filterValue||null===t.filterValue},on:{click:function(e){t.handleSelect(null)}}},[t._v(t._s(t.t("el.table.clearFilter")))]),t._l(t.filters,function(e){return n("li",{key:e.value,staticClass:"el-table-filter__list-item",class:{"is-active":t.isActive(e)},attrs:{label:e.value},on:{click:function(n){t.handleSelect(e.value)}}},[t._v(t._s(e.text))])})],2)])])};zn._withStripped=!0;var Vn=[];!hn.a.prototype.$isServer&&document.addEventListener("click",function(t){Vn.forEach(function(e){var n=t.target;e&&e.$el&&(n===e.$el||e.$el.contains(n)||e.handleOutsideClick&&e.handleOutsideClick(t))})});var $n=function(t){t&&Vn.push(t)},Gn=function(t){-1!==Vn.indexOf(t)&&Vn.splice(t,1)},Hn=n(31),Wn=n.n(Hn),Un=i({name:"ElTableFilterPanel",mixins:[j.a,p.a],directives:{Clickoutside:D.a},components:{ElCheckbox:rn.a,ElCheckboxGroup:Wn.a,ElScrollbar:R.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(t){return t.value===this.filterValue},handleOutsideClick:function(){var t=this;setTimeout(function(){t.showPopper=!1},16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(t){this.filterValue=t,void 0!==t&&null!==t?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(t){this.table.store.commit("filterChange",{column:this.column,values:t}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(t){this.filteredValue&&(void 0!==t&&null!==t?this.filteredValue.splice(0,1,t):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(t){this.column&&(this.column.filteredValue=t)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var t=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",function(){t.updatePopper()}),this.$watch("showPopper",function(e){t.column&&(t.column.filterOpened=e),e?$n(t):Gn(t)})},watch:{showPopper:function(t){!0===t&&parseInt(this.popperJS._popper.style.zIndex,10)<b.PopupManager.zIndex&&(this.popperJS._popper.style.zIndex=b.PopupManager.nextZIndex())}}},zn,[],!1,null,null,null);Un.options.__file="packages/table/src/filter-panel.vue";var Yn=Un.exports,Xn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qn=function(t){var e=1;t.forEach(function(t){t.level=1,function t(n,r){if(r&&(n.level=r.level+1,e<n.level&&(e=n.level)),n.children){var i=0;n.children.forEach(function(e){t(e,n),i+=e.colSpan}),n.colSpan=i}else n.colSpan=1}(t)});for(var n=[],r=0;r<e;r++)n.push([]);return function t(e){var n=[];return e.forEach(function(e){e.children?(n.push(e),n.push.apply(n,t(e.children))):n.push(e)}),n}(t).forEach(function(t){t.children?t.rowSpan=1:t.rowSpan=e-t.level+1,n[t.level-1].push(t)}),n},Zn={name:"ElTableHeader",mixins:[Nn],render:function(t){var e=this,n=this.store.states.originColumns,r=qn(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),t("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map(function(e){return t("col",{attrs:{name:e.id},key:e.id})}),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,function(n,r){return t("tr",{style:e.getHeaderRowStyle(r),class:e.getHeaderRowClass(r)},[n.map(function(i,o){return t("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(t){return e.handleMouseMove(t,i)},mouseout:e.handleMouseOut,mousedown:function(t){return e.handleMouseDown(t,i)},click:function(t){return e.handleHeaderClick(t,i)},contextmenu:function(t){return e.handleHeaderContextMenu(t,i)}},style:e.getHeaderCellStyle(r,o,n,i),class:e.getHeaderCellClass(r,o,n,i),key:i.id},[t("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(e._renderProxy,t,{column:i,$index:o,store:e.store,_self:e.$parent.$vnode.context}):i.label,i.sortable?t("span",{class:"caret-wrapper",on:{click:function(t){return e.handleSortClick(t,i)}}},[t("i",{class:"sort-caret ascending",on:{click:function(t){return e.handleSortClick(t,i,"ascending")}}}),t("i",{class:"sort-caret descending",on:{click:function(t){return e.handleSortClick(t,i,"descending")}}})]):"",i.filterable?t("span",{class:"el-table__column-filter-trigger",on:{click:function(t){return e.handleFilterClick(t,i)}}},[t("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])}),e.hasGutter?t("th",{class:"gutter"}):""])})])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:rn.a},computed:Xn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Dn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var t=this;this.$nextTick(function(){var e=t.defaultSort,n=e.prop,r=e.order;t.store.commit("sort",{prop:n,order:r,init:!0})})},beforeDestroy:function(){var t=this.filterPanels;for(var e in t)t.hasOwnProperty(e)&&t[e]&&t[e].$destroy(!0)},methods:{isCellHidden:function(t,e){for(var n=0,r=0;r<t;r++)n+=e[r].colSpan;var i=n+e[t].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(t){var e=this.table.headerRowStyle;return"function"==typeof e?e.call(null,{rowIndex:t}):e},getHeaderRowClass:function(t){var e=[],n=this.table.headerRowClassName;return"string"==typeof n?e.push(n):"function"==typeof n&&e.push(n.call(null,{rowIndex:t})),e.join(" ")},getHeaderCellStyle:function(t,e,n,r){var i=this.table.headerCellStyle;return"function"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getHeaderCellClass:function(t,e,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===t&&this.isCellHidden(e,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var o=this.table.headerCellClassName;return"string"==typeof o?i.push(o):"function"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.join(" ")},toggleAllSelection:function(t){t.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(t,e){t.stopPropagation();var n=t.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(pt.hasClass)(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,o=this.filterPanels[e.id];o&&e.filterOpened?o.showPopper=!1:(o||(o=new hn.a(Yn),this.filterPanels[e.id]=o,e.filterPlacement&&(o.placement=e.filterPlacement),o.table=i,o.cell=r,o.column=e,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout(function(){o.showPopper=!0},16))}},handleHeaderClick:function(t,e){!e.filters&&e.sortable?this.handleSortClick(t,e):e.filterable&&!e.sortable&&this.handleFilterClick(t,e),this.$parent.$emit("header-click",e,t)},handleHeaderContextMenu:function(t,e){this.$parent.$emit("header-contextmenu",e,t)},handleMouseDown:function(t,e){var n=this;if(!this.$isServer&&!(e.children&&e.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el.getBoundingClientRect().left,o=this.$el.querySelector("th."+e.id),a=o.getBoundingClientRect(),s=a.left-i+30;Object(pt.addClass)(o,"noclick"),this.dragState={startMouseLeft:t.clientX,startLeft:a.right-i,startColumnLeft:a.left-i,tableLeft:i};var l=r.$refs.resizeProxy;l.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(t){var e=t.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+e;l.style.left=Math.max(s,r)+"px"};document.addEventListener("mousemove",u),document.addEventListener("mouseup",function i(){if(n.dragging){var a=n.dragState,s=a.startColumnLeft,c=a.startLeft,h=parseInt(l.style.left,10)-s;e.width=e.realWidth=h,r.$emit("header-dragend",e.width,c-s,e,t),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout(function(){Object(pt.removeClass)(o,"noclick")},0)})}},handleMouseMove:function(t,e){if(!(e.children&&e.children.length>0)){for(var n=t.target;n&&"TH"!==n.tagName;)n=n.parentNode;if(e&&e.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-t.pageX<8?(i.cursor="col-resize",Object(pt.hasClass)(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=e):this.dragging||(i.cursor="",Object(pt.hasClass)(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(t){var e=t.order,n=t.sortOrders;if(""===e)return n[0];var r=n.indexOf(e||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(t,e,n){t.stopPropagation();for(var r=e.order===n?null:n||this.toggleOrder(e),i=t.target;i&&"TH"!==i.tagName;)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(pt.hasClass)(i,"noclick"))Object(pt.removeClass)(i,"noclick");else if(e.sortable){var o=this.store.states,a=o.sortProp,s=void 0,l=o.sortingColumn;(l!==e||l===e&&null===l.order)&&(l&&(l.order=null),o.sortingColumn=e,a=e.property),s=e.order=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Kn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jn={name:"ElTableFooter",mixins:[Nn],render:function(t){var e=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach(function(t,r){if(0!==r){var i=e.store.states.data.map(function(e){return Number(e[t.property])}),o=[],a=!0;i.forEach(function(t){if(!isNaN(t)){a=!1;var e=(""+t).split(".")[1];o.push(e?e.length:0)}});var s=Math.max.apply(null,o);n[r]=a?"":i.reduce(function(t,e){var n=Number(e);return isNaN(n)?t:parseFloat((t+e).toFixed(Math.min(s,20)))},0)}else n[r]=e.sumText}),t("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map(function(e){return t("col",{attrs:{name:e.id},key:e.id})}),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("tbody",{class:[{"has-gutter":this.hasGutter}]},[t("tr",[this.columns.map(function(r,i){return t("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:e.getRowClasses(r,i)},[t("div",{class:["cell",r.labelClassName]},[n[i]])])}),this.hasGutter?t("th",{class:"gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Kn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Dn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),methods:{isCellHidden:function(t,e,n){if(!0===this.fixed||"left"===this.fixed)return t>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<t;i++)r+=e[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(t<this.leftFixedCount||t>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(t,e){var n=[t.id,t.align,t.labelClassName];return t.className&&n.push(t.className),this.isCellHidden(e,this.columns,t)&&n.push("is-hidden"),t.children||n.push("is-leaf"),n}}},Qn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tr=1,er=i({name:"ElTable",mixins:[p.a,w.a],directives:{Mousewheel:un},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:Zn,TableFooter:Jn,TableBody:Fn,ElCheckbox:rn.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(t){this.store.commit("setCurrentRow",t)},toggleRowSelection:function(t,e){this.store.toggleRowSelection(t,e,!1),this.store.updateAllSelected()},toggleRowExpansion:function(t,e){this.store.toggleRowExpansionAdapter(t,e)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(t){this.store.clearFilter(t)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){this.layout.updateScrollY()&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(t,e){var n=this.bodyWrapper;if(Math.abs(e.spinY)>0){var r=n.scrollTop;e.pixelY<0&&0!==r&&t.preventDefault(),e.pixelY>0&&n.scrollHeight-n.clientHeight>r&&t.preventDefault(),n.scrollTop+=Math.ceil(e.pixelY/5)}else n.scrollLeft+=Math.ceil(e.pixelX/5)},handleHeaderFooterMousewheel:function(t,e){var n=e.pixelX,r=e.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=e.pixelX/5)},syncPostion:Object(on.throttle)(20,function(){var t=this.bodyWrapper,e=t.scrollLeft,n=t.scrollTop,r=t.offsetWidth,i=t.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,l=o.fixedBodyWrapper,u=o.rightFixedBodyWrapper;a&&(a.scrollLeft=e),s&&(s.scrollLeft=e),l&&(l.scrollTop=n),u&&(u.scrollTop=n);var c=i-r-1;this.scrollPosition=e>=c?"right":0===e?"left":"middle"}),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Ne.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Ne.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var t=!1,e=this.$el,n=this.resizeState,r=n.width,i=n.height,o=e.offsetWidth;r!==o&&(t=!0);var a=e.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==a&&(t=!0),t&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(t,e){this.store.commit("sort",{prop:t,order:e})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Qn({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var t=this.layout,e=t.bodyWidth,n=t.scrollY,r=t.gutterWidth;return e?e-(n?r:0)+"px":""},bodyHeight:function(){var t=this.layout,e=t.headerHeight,n=void 0===e?0:e,r=t.bodyHeight,i=t.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var a=wn(this.maxHeight);if("number"==typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var t=wn(this.maxHeight);if("number"==typeof t)return t=this.layout.scrollX?t-this.layout.gutterWidth:t,this.showHeader&&(t-=this.layout.headerHeight),{"max-height":(t-=this.layout.footerHeight)+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var t="100%";return this.layout.appendHeight&&(t="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:t}}},Dn({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(t){this.layout.setHeight(t)}},maxHeight:{immediate:!0,handler:function(t){this.layout.setMaxHeight(t)}},currentRowKey:{immediate:!0,handler:function(t){this.rowKey&&this.store.setCurrentRowKey(t)}},data:{immediate:!0,handler:function(t){this.store.commit("setData",t)}},expandRowKeys:{immediate:!0,handler:function(t){t&&this.store.setExpandRowKeysAdapter(t)}}},created:function(){var t=this;this.tableId="el-table_"+tr++,this.debouncedUpdateLayout=Object(on.debounce)(50,function(){return t.doLayout()})},mounted:function(){var t=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach(function(e){e.filteredValue&&e.filteredValue.length&&t.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})}),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var t=this.treeProps,e=t.hasChildren,n=void 0===e?"hasChildren":e,r=t.children,i=void 0===r?"children":r;return this.store=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Table is required.");var n=new In;return n.table=t,n.toggleAllSelection=A()(10,n._toggleAllSelection),Object.keys(e).forEach(function(t){n.states[t]=e[t]}),n}(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i}),{layout:new jn({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader}),isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},en,[],!1,null,null,null);er.options.__file="packages/table/src/table.vue";var nr=er.exports;nr.install=function(t){t.component(nr.name,nr)};var rr=nr,ir={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},or={selection:{renderHeader:function(t,e){var n=e.store;return t("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(t,e){var n=e.row,r=e.column,i=e.store,o=e.$index;return t("el-checkbox",{nativeOn:{click:function(t){return t.stopPropagation()}},attrs:{value:i.isSelected(n),disabled:!!r.selectable&&!r.selectable.call(null,n,o)},on:{input:function(){i.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(t,e){return e.column.label||"#"},renderCell:function(t,e){var n=e.$index,r=n+1,i=e.column.index;return"number"==typeof i?r=n+i:"function"==typeof i&&(r=i(n)),t("div",[r])},sortable:!1},expand:{renderHeader:function(t,e){return e.column.label||""},renderCell:function(t,e){var n=e.row,r=e.store,i=["el-table__expand-icon"];r.states.expandRows.indexOf(n)>-1&&i.push("el-table__expand-icon--expanded");return t("div",{class:i,on:{click:function(t){t.stopPropagation(),r.toggleRowExpansion(n)}}},[t("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function ar(t,e){var n=e.row,r=e.column,i=e.$index,o=r.property,a=o&&Object(g.getPropByPath)(n,o).v;return r&&r.formatter?r.formatter(n,r,a,i):a}var sr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lr=1,ur={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(t){return t.every(function(t){return["ascending","descending",null].indexOf(t)>-1})}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var t=this.$parent;t&&!t.tableId;)t=t.$parent;return t},columnOrTableParent:function(){for(var t=this.$parent;t&&!t.tableId&&!t.columnId;)t=t.$parent;return t},realWidth:function(){return xn(this.width)},realMinWidth:function(){return void 0!==(t=this.minWidth)&&(t=xn(t),isNaN(t)&&(t=80)),t;var t},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce(function(e,n){return Array.isArray(n)&&n.forEach(function(n){e[n]=t[n]}),e},{})},getColumnElIndex:function(t,e){return[].indexOf.call(t,e)},setColumnWidth:function(t){return this.realWidth&&(t.width=this.realWidth),this.realMinWidth&&(t.minWidth=this.realMinWidth),t.minWidth||(t.minWidth=80),t.realWidth=void 0===t.width?t.minWidth:t.width,t},setColumnForcedProps:function(t){var e=t.type,n=or[e]||{};return Object.keys(n).forEach(function(e){var r=n[e];void 0!==r&&(t[e]="className"===e?t[e]+" "+r:r)}),t},setColumnRenders:function(t){var e=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==t.type&&(t.renderHeader=function(n,r){var i=e.$scopedSlots.header;return i?i(r):t.label});var n=t.renderCell;return"expand"===t.type?(t.renderCell=function(t,e){return t("div",{class:"cell"},[n(t,e)])},this.owner.renderExpanded=function(t,n){return e.$scopedSlots.default?e.$scopedSlots.default(n):e.$slots.default}):(n=n||ar,t.renderCell=function(r,i){var o=null;o=e.$scopedSlots.default?e.$scopedSlots.default(i):n(r,i);var a=function(t,e){var n=e.row,r=e.treeNode,i=e.store;if(!r)return null;var o=[];if(r.indent&&o.push(t("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!=typeof r.expanded||r.noLazyChildren)o.push(t("span",{class:"el-table__placeholder"}));else{var a=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],s=["el-icon-arrow-right"];r.loading&&(s=["el-icon-loading"]),o.push(t("div",{class:a,on:{click:function(t){t.stopPropagation(),i.loadOrToggle(n)}}},[t("i",{class:s})]))}return o}(r,i),s={class:"cell",style:{}};return t.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",s,[a,o])}),t},registerNormalWatchers:function(){var t=this,e={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},n=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"].reduce(function(t,e){return t[e]=e,t},e);Object.keys(n).forEach(function(n){var r=e[n];t.$watch(n,function(e){t.columnConfig[r]=e})})},registerComplexWatchers:function(){var t=this,e={realWidth:"width",realMinWidth:"minWidth"},n=["fixed"].reduce(function(t,e){return t[e]=e,t},e);Object.keys(n).forEach(function(n){var r=e[n];t.$watch(n,function(e){t.columnConfig[r]=e;var n="fixed"===r;t.owner.store.scheduleLayout(n)})})}},components:{ElCheckbox:rn.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var t=this.columnOrTableParent;this.isSubColumn=this.owner!==t,this.columnId=(t.tableId||t.columnId)+"_column_"+lr++;var e=this.type||"default",n=""===this.sortable||this.sortable,r=sr({},ir[e],{id:this.columnId,type:e,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=this.getPropsData(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);i=function(t,e){var n={},r=void 0;for(r in t)n[r]=t[r];for(r in e)if(_n(e,r)){var i=e[r];void 0!==i&&(n[r]=i)}return n}(r,i),i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps)(i),this.columnConfig=i,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var t=this.owner,e=this.columnOrTableParent,n=this.isSubColumn?e.$el.children:e.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);t.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?e.columnConfig:null)},destroyed:function(){if(this.$parent){var t=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?t.columnConfig:null)}},render:function(t){return t("div",this.$slots.default)},install:function(t){t.component(ur.name,ur)}},cr=ur,hr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+t.type,t.pickerSize?"el-range-editor--"+t.pickerSize:"",t.pickerDisabled?"is-disabled":"",t.pickerVisible?"is-active":""],on:{click:t.handleRangeClick,mouseenter:t.handleMouseEnter,mouseleave:function(e){t.showClose=!1},keydown:t.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",t.triggerClass]}),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.startPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[0]},domProps:{value:t.displayValue&&t.displayValue[0]},on:{input:t.handleStartInput,change:t.handleStartChange,focus:t.handleFocus}},"input",t.firstInputId,!1)),t._t("range-separator",[n("span",{staticClass:"el-range-separator"},[t._v(t._s(t.rangeSeparator))])]),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.endPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[1]},domProps:{value:t.displayValue&&t.displayValue[1]},on:{input:t.handleEndInput,change:t.handleEndChange,focus:t.handleFocus}},"input",t.secondInputId,!1)),t.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[t.showClose?""+t.clearIcon:""],on:{click:t.handleClickIcon}}):t._e()],2):n("el-input",t._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+t.type,attrs:{readonly:!t.editable||t.readonly||"dates"===t.type||"week"===t.type,disabled:t.pickerDisabled,size:t.pickerSize,name:t.name,placeholder:t.placeholder,value:t.displayValue,validateEvent:!1},on:{focus:t.handleFocus,input:function(e){return t.userInput=e},change:t.handleChange},nativeOn:{keydown:function(e){return t.handleKeydown(e)},mouseenter:function(e){return t.handleMouseEnter(e)},mouseleave:function(e){t.showClose=!1}}},"el-input",t.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:t.triggerClass,attrs:{slot:"prefix"},on:{click:t.handleFocus},slot:"prefix"}),t.haveTrigger?n("i",{staticClass:"el-input__icon",class:[t.showClose?""+t.clearIcon:""],attrs:{slot:"suffix"},on:{click:t.handleClickIcon},slot:"suffix"}):t._e()])};hr._withStripped=!0;var dr=n(0),fr={props:{appendToBody:j.a.props.appendToBody,offset:j.a.props.offset,boundariesPadding:j.a.props.boundariesPadding,arrowOffset:j.a.props.arrowOffset},methods:j.a.methods,data:function(){return Vt()({visibleArrow:!0},j.a.data)},beforeDestroy:j.a.beforeDestroy},pr={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},gr=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],vr=function(t,e){return"timestamp"===e?t.getTime():Object(dr.formatDate)(t,e)},mr=function(t,e){return"timestamp"===e?new Date(Number(t)):Object(dr.parseDate)(t,e)},yr=function(t,e){if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(n&&r)return[vr(n,e),vr(r,e)]}return""},br=function(t,e,n){if(Array.isArray(t)||(t=t.split(n)),2===t.length){var r=t[0],i=t[1];return[mr(r,e),mr(i,e)]}return[]},_r={default:{formatter:function(t){return t?""+t:""},parser:function(t){return void 0===t||""===t?null:t}},week:{formatter:function(t,e){var n=Object(dr.getWeekNumber)(t),r=t.getMonth(),i=new Date(t);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(dr.formatDate)(i,e);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n)},parser:function(t,e){return _r.date.parser(t,e)}},date:{formatter:vr,parser:mr},datetime:{formatter:vr,parser:mr},daterange:{formatter:yr,parser:br},monthrange:{formatter:yr,parser:br},datetimerange:{formatter:yr,parser:br},timerange:{formatter:yr,parser:br},time:{formatter:vr,parser:mr},month:{formatter:vr,parser:mr},year:{formatter:vr,parser:mr},number:{formatter:function(t){return t?""+t:""},parser:function(t){var e=Number(t);return isNaN(t)?null:e}},dates:{formatter:function(t,e){return t.map(function(t){return vr(t,e)})},parser:function(t,e){return("string"==typeof t?t.split(", "):t).map(function(t){return t instanceof Date?t:mr(t,e)})}}},xr={left:"bottom-start",center:"bottom",right:"bottom-end"},wr=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";return t?(0,(_r[n]||_r.default).parser)(t,e||pr[n],r):null},Sr=function(t,e,n){return t?(0,(_r[n]||_r.default).formatter)(t,e||pr[n]):null},Cr=function(t,e){var n=function(t,e){var n=t instanceof Date,r=e instanceof Date;return n&&r?t.getTime()===e.getTime():!n&&!r&&t===e},r=t instanceof Array,i=e instanceof Array;return r&&i?t.length===e.length&&t.every(function(t,r){return n(t,e[r])}):!r&&!i&&n(t,e)},kr=function(t){return"string"==typeof t||t instanceof String},Or=function(t){return null===t||void 0===t||kr(t)||Array.isArray(t)&&2===t.length&&t.every(kr)},Mr=i({mixins:[C.a,fr],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:Or},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:Or},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:d.a},directives:{Clickoutside:D.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(t){this.readonly||this.pickerDisabled||(t?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(t){this.picker&&(this.picker.value=t)}},defaultValue:function(t){this.picker&&(this.picker.defaultValue=t)},value:function(t,e){Cr(t,e)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",t)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var t=this.$refs.reference;return t.$el||t},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var t=this.value;if(Array.isArray(t)){for(var e=0,n=t.length;e<n;e++)if(t[e])return!1}else if(t)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return void 0!==this.showTrigger?this.showTrigger:-1!==gr.indexOf(this.type)},displayValue:function(){var t=Sr(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||t&&t[0]||"",this.userInput[1]||t&&t[1]||""]:null!==this.userInput?this.userInput:t?"dates"===this.type?t.join(", "):t:""},parsedValue:function(){return this.value?"time-select"===this.type?this.value:Object(dr.isDateObject)(this.value)||Array.isArray(this.value)&&this.value.every(dr.isDateObject)?this.value:this.valueFormat?wr(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map(function(t){return new Date(t)}):new Date(this.value):this.value},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var t={},e=void 0;return(e=this.ranged?this.id&&this.id[0]:this.id)&&(t.id=e),t},secondInputId:function(){var t={},e=void 0;return this.ranged&&(e=this.id&&this.id[1]),e&&(t.id=e),t}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=xr[this.align]||xr.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach(function(t){return t.blur()})},parseValue:function(t){var e=Object(dr.isDateObject)(t)||Array.isArray(t)&&t.every(dr.isDateObject);return this.valueFormat&&!e&&wr(t,this.valueFormat,this.type,this.rangeSeparator)||t},formatToValue:function(t){var e=Object(dr.isDateObject)(t)||Array.isArray(t)&&t.every(dr.isDateObject);return this.valueFormat&&e?Sr(t,this.valueFormat,this.type,this.rangeSeparator):t},parseString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return wr(t,this.format,e)},formatToString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return Sr(t,this.format,e)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var t=this.parseString(this.displayValue);t&&(this.picker.value=t,this.isValidValue(t)&&(this.emitInput(t),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(t){this.userInput?this.userInput=[t.target.value,this.userInput[1]]:this.userInput=[t.target.value,null]},handleEndInput:function(t){this.userInput?this.userInput=[this.userInput[0],t.target.value]:this.userInput=[null,t.target.value]},handleStartChange:function(t){var e=this.parseString(this.userInput&&this.userInput[0]);if(e){this.userInput=[this.formatToString(e),this.displayValue[1]];var n=[e,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(t){var e=this.parseString(this.userInput&&this.userInput[1]);if(e){this.userInput=[this.displayValue[0],this.formatToString(e)];var n=[this.picker.value&&this.picker.value[0],e];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(t){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,t.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"==typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var t=wr(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(t)}},handleFieldReset:function(t){this.userInput=""===t?null:t},handleFocus:function(){var t=this.type;-1===gr.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(t){var e=this,n=t.keyCode;return 27===n?(this.pickerVisible=!1,void t.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void t.stopPropagation()):void(this.userInput?t.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(t)):void(this.ranged?setTimeout(function(){-1===e.refInput.indexOf(document.activeElement)&&(e.pickerVisible=!1,e.blur(),t.stopPropagation())},0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),t.stopPropagation()))},handleRangeClick:function(){var t=this.type;-1===gr.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var t=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick(function(){t.picker.adjustSpinners&&t.picker.adjustSpinners()}))},mountPicker:function(){var t=this;this.picker=new hn.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",function(e){t.picker.format=e});var e=function(){var e=t.pickerOptions;if(e&&e.selectableRange){var n=e.selectableRange,r=_r.datetimerange.parser,i=pr.timerange;n=Array.isArray(n)?n:[n],t.picker.selectableRange=n.map(function(e){return r(e,i,t.rangeSeparator)})}for(var o in e)e.hasOwnProperty(o)&&"selectableRange"!==o&&(t.picker[o]=e[o]);t.format&&(t.picker.format=t.format)};e(),this.unwatchPickerOptions=this.$watch("pickerOptions",function(){return e()},{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.userInput=null,t.pickerVisible=t.picker.visible=n,t.emitInput(e),t.picker.resetView&&t.picker.resetView()}),this.picker.$on("select-range",function(e,n,r){0!==t.refInput.length&&(r&&"min"!==r?"max"===r&&(t.refInput[1].setSelectionRange(e,n),t.refInput[1].focus()):(t.refInput[0].setSelectionRange(e,n),t.refInput[0].focus()))})},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"==typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(t){Cr(t,this.valueOnOpen)||(this.$emit("change",t),this.valueOnOpen=t,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",t))},emitInput:function(t){var e=this.formatToValue(t);Cr(this.value,e)||this.$emit("input",e)},isValidValue:function(t){return this.picker||this.mountPicker(),!this.picker.isValidValue||t&&this.picker.isValidValue(t)}}},hr,[],!1,null,null,null);Mr.options.__file="packages/date-picker/src/picker.vue";var Er=Mr.exports,Tr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":t.handleEnter,"after-leave":t.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])}),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:t.t("el.datepicker.selectDate"),value:t.visibleDate,size:"small"},on:{input:function(e){return t.userInputDate=e},change:t.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:t.t("el.datepicker.selectTime"),value:t.visibleTime,size:"small"},on:{focus:function(e){t.timePickerVisible=!0},input:function(e){return t.userInputTime=e},change:t.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.timePickerVisible},on:{pick:t.handleTimePick,mounted:t.proxyTimePickerDataProperties}})],1)]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==t.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===t.currentView||"month"===t.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevYear")},on:{click:t.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevMonth")},on:{click:t.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:t.showYearPicker}},[t._v(t._s(t.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===t.currentView},attrs:{role:"button"},on:{click:t.showMonthPicker}},[t._v(t._s(t.t("el.datepicker.month"+(t.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextYear")},on:{click:t.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextMonth")},on:{click:t.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":t.selectionMode,"first-day-of-week":t.firstDayOfWeek,value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"cell-class-name":t.cellClassName,"disabled-date":t.disabledDate},on:{pick:t.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===t.currentView,expression:"currentView === 'year'"}],attrs:{value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===t.currentView,expression:"currentView === 'month'"}],attrs:{value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.footerVisible&&"date"===t.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==t.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.changeToNow}},[t._v("\n "+t._s(t.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:t.confirm}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1)])])};Tr._withStripped=!0;var Ar=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":t.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":t.useArrow,"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,date:t.date},on:{change:t.handleChange,"select-range":t.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:t.handleCancel}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!t.disabled},attrs:{type:"button"},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])};Ar._withStripped=!0;var Ir=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":t.showSeconds}},[t.arrowControl?t._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("hours")},mousemove:function(e){t.adjustCurrentSpinner("hours")}}},t._l(t.hoursList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.hours,disabled:e},on:{click:function(n){t.handleClick("hours",{value:r,disabled:e})}}},[t._v(t._s(("0"+(t.amPmMode?r%12||12:r)).slice(-2))+t._s(t.amPm(r)))])}),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("minutes")},mousemove:function(e){t.adjustCurrentSpinner("minutes")}}},t._l(t.minutesList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.minutes,disabled:!e},on:{click:function(e){t.handleClick("minutes",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])}),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("seconds")},mousemove:function(e){t.adjustCurrentSpinner("seconds")}}},t._l(60,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.seconds},on:{click:function(e){t.handleClick("seconds",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])}),0)],t.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},t._l(t.arrowHourList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.hours,disabled:t.hoursList[e]}},[t._v(t._s(void 0===e?"":("0"+(t.amPmMode?e%12||12:e)).slice(-2)+t.amPm(e)))])}),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},t._l(t.arrowMinuteList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.minutes}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])}),0)]),t.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},t._l(t.arrowSecondList,function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.seconds}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])}),0)]):t._e()]:t._e()],2)};Ir._withStripped=!0;var Dr=i({components:{ElScrollbar:R.a},directives:{repeatClick:Yt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(dr.getRangeHours)(this.selectableRange)},minutesList:function(){return Object(dr.getRangeMinutes)(this.selectableRange,this.hours)},arrowHourList:function(){var t=this.hours;return[t>0?t-1:void 0,t,t<23?t+1:void 0]},arrowMinuteList:function(){var t=this.minutes;return[t>0?t-1:void 0,t,t<59?t+1:void 0]},arrowSecondList:function(){var t=this.seconds;return[t>0?t-1:void 0,t,t<59?t+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var t=this;this.$nextTick(function(){!t.arrowControl&&t.bindScrollEvent()})},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(t,e){switch(t){case"hours":this.$emit("change",Object(dr.modifyTime)(this.date,e,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(dr.modifyTime)(this.date,this.hours,e,this.seconds));break;case"seconds":this.$emit("change",Object(dr.modifyTime)(this.date,this.hours,this.minutes,e))}},handleClick:function(t,e){var n=e.value;e.disabled||(this.modifyDateField(t,n),this.emitSelectRange(t),this.adjustSpinner(t,n))},emitSelectRange:function(t){"hours"===t?this.$emit("select-range",0,2):"minutes"===t?this.$emit("select-range",3,5):"seconds"===t&&this.$emit("select-range",6,8),this.currentScrollbar=t},bindScrollEvent:function(){var t=this,e=function(e){t.$refs[e].wrap.onscroll=function(n){t.handleScroll(e,n)}};e("hours"),e("minutes"),e("seconds")},handleScroll:function(t){var e=Math.min(Math.round((this.$refs[t].wrap.scrollTop-(.5*this.scrollBarHeight(t)-10)/this.typeItemHeight(t)+3)/this.typeItemHeight(t)),"hours"===t?23:59);this.modifyDateField(t,e)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(t){this.adjustSpinner(t,this[t])},adjustSpinner:function(t,e){if(!this.arrowControl){var n=this.$refs[t].wrap;n&&(n.scrollTop=Math.max(0,e*this.typeItemHeight(t)))}},scrollDown:function(t){var e=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(t);t=t>0?1:-1;for(var a=r.length;a--&&o;)r[i=(i+t+r.length)%r.length]||o--;if(r[i])return}else i=(i+t+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick(function(){return e.emitSelectRange(e.currentScrollbar)})},amPm:function(t){if(!("a"===this.amPmMode.toLowerCase()))return"";var e="A"===this.amPmMode,n=t<12?" am":" pm";return e&&(n=n.toUpperCase()),n},typeItemHeight:function(t){return this.$refs[t].$el.querySelector("li").offsetHeight},scrollBarHeight:function(t){return this.$refs[t].$el.offsetHeight}}},Ir,[],!1,null,null,null);Dr.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Pr=Dr.exports,Lr=i({mixins:[p.a],components:{TimeSpinner:Pr},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(t){var e=this;t?(this.oldValue=this.value,this.$nextTick(function(){return e.$refs.spinner.emitSelectRange("hours")})):this.needInitAdjust=!0},value:function(t){var e=this,n=void 0;t instanceof Date?n=Object(dr.limitTimeRange)(t,this.selectableRange,this.format):t||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick(function(t){return e.adjustSpinners()}),this.needInitAdjust=!1)},selectableRange:function(t){this.$refs.spinner.selectableRange=t},defaultValue:function(t){Object(dr.isDate)(this.value)||(this.date=t?new Date(t):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(t){this.visible&&(this.date=Object(dr.clearMilliseconds)(t),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(t,e){this.$emit("select-range",t,e),this.selectionRange=[t,e]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(!e){var n=Object(dr.clearMilliseconds)(Object(dr.limitTimeRange)(this.date,this.selectableRange,this.format));this.$emit("pick",n,t,e)}},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.$refs.spinner.scrollDown(i),void t.preventDefault()}},isValidValue:function(t){return Object(dr.timeWithinRange)(t,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(t){var e=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(e.indexOf(this.selectionRange[0])+t+e.length)%e.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var t=this;this.$nextTick(function(){return t.handleConfirm(!0,!0)}),this.$emit("mounted")}},Ar,[],!1,null,null,null);Lr.options.__file="packages/date-picker/src/panel/time.vue";var jr=Lr.exports,Nr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-year-table",on:{click:t.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+0)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+1)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+1))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+2)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+2))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+3)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+4)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+4))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+5)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+5))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+6)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+6))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+7)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+8)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+8))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+9)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+9))])]),n("td"),n("td")])])])};Nr._withStripped=!0;var Rr=i({props:{disabledDate:{},value:{},defaultValue:{validator:function(t){return null===t||t instanceof Date&&Object(dr.isDate)(t)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(t){var e={},n=new Date;return e.disabled="function"==typeof this.disabledDate&&function(t){var e=Object(dr.getDayCountOfYear)(t),n=new Date(t,0,1);return Object(dr.range)(e).map(function(t){return Object(dr.nextDate)(n,t)})}(t).every(this.disabledDate),e.current=Object(g.arrayFindIndex)(Object(g.coerceTruthyValueToArray)(this.value),function(e){return e.getFullYear()===t})>=0,e.today=n.getFullYear()===t,e.default=this.defaultValue&&this.defaultValue.getFullYear()===t,e},handleYearTableClick:function(t){var e=t.target;if("A"===e.tagName){if(Object(pt.hasClass)(e.parentNode,"disabled"))return;var n=e.textContent||e.innerText;this.$emit("pick",Number(n))}}}},Nr,[],!1,null,null,null);Rr.options.__file="packages/date-picker/src/basic/year-table.vue";var Br=Rr.exports,Fr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-month-table",on:{click:t.handleMonthTableClick,mousemove:t.handleMouseMove}},[n("tbody",t._l(t.rows,function(e,r){return n("tr",{key:r},t._l(e,function(e,r){return n("td",{key:r,class:t.getCellStyle(e)},[n("div",[n("a",{staticClass:"cell"},[t._v(t._s(t.t("el.datepicker.months."+t.months[e.text])))])])])}),0)}),0)])};Fr._withStripped=!0;var zr=function(t){return new Date(t.getFullYear(),t.getMonth())},Vr=function(t){return"number"==typeof t||"string"==typeof t?zr(new Date(t)).getTime():t instanceof Date?zr(t).getTime():NaN},$r=i({props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(t){return null===t||Object(dr.isDate)(t)||Array.isArray(t)&&t.every(dr.isDate)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[p.a],watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){Vr(t)!==Vr(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){Vr(t)!==Vr(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.date.getFullYear()===n.getFullYear()&&Number(t.text)===n.getMonth()},getCellStyle:function(t){var e=this,n={},r=this.date.getFullYear(),i=new Date,o=t.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"==typeof this.disabledDate&&function(t,e){var n=Object(dr.getDayCountOfMonth)(t,e),r=new Date(t,e,1);return Object(dr.range)(n).map(function(t){return Object(dr.nextDate)(r,t)})}(r,o).every(this.disabledDate),n.current=Object(g.arrayFindIndex)(Object(g.coerceTruthyValueToArray)(this.value),function(t){return t.getFullYear()===r&&t.getMonth()===o})>=0,n.today=i.getFullYear()===r&&i.getMonth()===o,n.default=a.some(function(n){return e.cellMatchesDate(t,n)}),t.inRange&&(n["in-range"]=!0,t.start&&(n["start-date"]=!0),t.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(t){var e=this.date.getFullYear();return new Date(e,t,1)},markRange:function(t,e){t=Vr(t),e=Vr(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,l=a.length;s<l;s++){var u=a[s],c=4*i+s,h=new Date(this.date.getFullYear(),c).getTime();u.inRange=t&&h>=t&&h<=e,u.start=t&&h===t,u.end=e&&h===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(t){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName&&!Object(pt.hasClass)(e,"disabled")){var n=e.cellIndex,r=4*e.parentNode.rowIndex+n,i=this.getMonthOfCell(r);"range"===this.selectionMode?this.rangeState.selecting?(i>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:i}):this.$emit("pick",{minDate:i,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:i,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",r)}}},computed:{rows:function(){for(var t=this,e=this.tableRows,n=this.disabledDate,r=[],i=Vr(new Date),o=0;o<3;o++)for(var a=e[o],s=function(e){var s=a[e];s||(s={row:o,column:e,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*o+e,u=new Date(t.date.getFullYear(),l).getTime();s.inRange=u>=Vr(t.minDate)&&u<=Vr(t.maxDate),s.start=t.minDate&&u===Vr(t.minDate),s.end=t.maxDate&&u===Vr(t.maxDate),u===i&&(s.type="today"),s.text=l;var c=new Date(u);s.disabled="function"==typeof n&&n(c),s.selected=Object(g.arrayFind)(r,function(t){return t.getTime()===c.getTime()}),t.$set(a,e,s)},l=0;l<4;l++)s(l);return e}}},Fr,[],!1,null,null,null);$r.options.__file="packages/date-picker/src/basic/month-table.vue";var Gr=$r.exports,Hr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===t.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:t.handleClick,mousemove:t.handleMouseMove}},[n("tbody",[n("tr",[t.showWeekNumber?n("th",[t._v(t._s(t.t("el.datepicker.week")))]):t._e(),t._l(t.WEEKS,function(e,r){return n("th",{key:r},[t._v(t._s(t.t("el.datepicker.weeks."+e)))])})],2),t._l(t.rows,function(e,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:t.isWeekActive(e[1])}},t._l(e,function(e,r){return n("td",{key:r,class:t.getCellClasses(e)},[n("div",[n("span",[t._v("\n "+t._s(e.text)+"\n ")])])])}),0)})],2)])};Hr._withStripped=!0;var Wr=["sun","mon","tue","wed","thu","fri","sat"],Ur=function(t){return"number"==typeof t||"string"==typeof t?Object(dr.clearTime)(new Date(t)).getTime():t instanceof Date?Object(dr.clearTime)(t).getTime():NaN},Yr=i({mixins:[p.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(t){return t>=1&&t<=7}},value:{},defaultValue:{validator:function(t){return null===t||Object(dr.isDate)(t)||Array.isArray(t)&&t.every(dr.isDate)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var t=this.firstDayOfWeek;return t>3?7-t:-t},WEEKS:function(){var t=this.firstDayOfWeek;return Wr.concat(Wr).slice(t,t+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(dr.getStartDateOfMonth)(this.year,this.month)},rows:function(){var t=this,e=new Date(this.year,this.month,1),n=Object(dr.getFirstDayOfMonth)(e),r=Object(dr.getDayCountOfMonth)(e.getFullYear(),e.getMonth()),i=Object(dr.getDayCountOfMonth)(e.getFullYear(),0===e.getMonth()?11:e.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,l=this.startDate,u=this.disabledDate,c=this.cellClassName,h="dates"===this.selectionMode?Object(g.coerceTruthyValueToArray)(this.value):[],d=Ur(new Date),f=0;f<6;f++){var p=a[f];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(dr.getWeekNumber)(Object(dr.nextDate)(l,7*f+1))}));for(var v=function(e){var a=p[t.showWeekNumber?e+1:e];a||(a={row:f,column:e,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var v=7*f+e,m=Object(dr.nextDate)(l,v-o).getTime();if(a.inRange=m>=Ur(t.minDate)&&m<=Ur(t.maxDate),a.start=t.minDate&&m===Ur(t.minDate),a.end=t.maxDate&&m===Ur(t.maxDate),m===d&&(a.type="today"),f>=0&&f<=1){var y=n+o<0?7+n+o:n+o;e+7*f>=y?a.text=s++:(a.text=i-(y-e%7)+1+7*f,a.type="prev-month")}else s<=r?a.text=s++:(a.text=s++-r,a.type="next-month");var b=new Date(m);a.disabled="function"==typeof u&&u(b),a.selected=Object(g.arrayFind)(h,function(t){return t.getTime()===b.getTime()}),a.customClass="function"==typeof c&&c(b),t.$set(p,t.showWeekNumber?e+1:e,a)},m=0;m<7;m++)v(m);if("week"===this.selectionMode){var y=this.showWeekNumber?1:0,b=this.showWeekNumber?7:6,_=this.isWeekActive(p[y+1]);p[y].inRange=_,p[y].start=_,p[b].inRange=_,p[b].end=_}}return a}},watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){Ur(t)!==Ur(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){Ur(t)!==Ur(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(t.text)===n.getDate()},getCellClasses:function(t){var e=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==t.type&&"today"!==t.type||t.disabled?i.push(t.type):(i.push("available"),"today"===t.type&&i.push("today")),"normal"===t.type&&r.some(function(n){return e.cellMatchesDate(t,n)})&&i.push("default"),"day"!==n||"normal"!==t.type&&"today"!==t.type||!this.cellMatchesDate(t,this.value)||i.push("current"),!t.inRange||"normal"!==t.type&&"today"!==t.type&&"week"!==this.selectionMode||(i.push("in-range"),t.start&&i.push("start-date"),t.end&&i.push("end-date")),t.disabled&&i.push("disabled"),t.selected&&i.push("selected"),t.customClass&&i.push(t.customClass),i.join(" ")},getDateOfCell:function(t,e){var n=7*t+(e-(this.showWeekNumber?1:0))-this.offsetDay;return Object(dr.nextDate)(this.startDate,n)},isWeekActive:function(t){if("week"!==this.selectionMode)return!1;var e=new Date(this.year,this.month,1),n=e.getFullYear(),r=e.getMonth();if("prev-month"===t.type&&(e.setMonth(0===r?11:r-1),e.setFullYear(0===r?n-1:n)),"next-month"===t.type&&(e.setMonth(11===r?0:r+1),e.setFullYear(11===r?n+1:n)),e.setDate(parseInt(t.text,10)),Object(dr.isDate)(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return Object(dr.prevDate)(this.value,i).getTime()===e.getTime()}return!1},markRange:function(t,e){t=Ur(t),e=Ur(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.startDate,i=this.rows,o=0,a=i.length;o<a;o++)for(var s=i[o],l=0,u=s.length;l<u;l++)if(!this.showWeekNumber||0!==l){var c=s[l],h=7*o+l+(this.showWeekNumber?-1:0),d=Object(dr.nextDate)(r,h-this.offsetDay).getTime();c.inRange=t&&d>=t&&d<=e,c.start=t&&d===t,c.end=e&&d===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(t){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r="week"===this.selectionMode?1:e.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var o,a,s,l=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(l>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:l}):this.$emit("pick",{minDate:l,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:l,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",l);else if("week"===this.selectionMode){var u=Object(dr.getWeekNumber)(l),c=l.getFullYear()+"w"+u;this.$emit("pick",{year:l.getFullYear(),week:u,value:c,date:l})}else if("dates"===this.selectionMode){var h=this.value||[],d=i.selected?(o=h,(s="function"==typeof(a=function(t){return t.getTime()===l.getTime()})?Object(g.arrayFindIndex)(o,a):o.indexOf(a))>=0?[].concat(o.slice(0,s),o.slice(s+1)):o):[].concat(h,[l]);this.$emit("pick",d)}}}}}},Hr,[],!1,null,null,null);Yr.options.__file="packages/date-picker/src/basic/date-table.vue";var Xr=Yr.exports,qr=i({mixins:[p.a],directives:{Clickoutside:D.a},watch:{showTime:function(t){var e=this;t&&this.$nextTick(function(t){var n=e.$refs.input.$el;n&&(e.pickerWidth=n.getBoundingClientRect().width+10)})},value:function(t){"dates"===this.selectionMode&&this.value||(Object(dr.isDate)(t)?this.date=new Date(t):this.date=this.getDefaultValue())},defaultValue:function(t){Object(dr.isDate)(this.value)||(this.date=t?new Date(t):new Date)},timePickerVisible:function(t){var e=this;t&&this.$nextTick(function(){return e.$refs.timepicker.adjustSpinners()})},selectionMode:function(t){"month"===t?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===t&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var t,e=this,n=function(t){e.$refs.timepicker.value=t},r=function(t){e.$refs.timepicker.date=t},i=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),t=this.timeFormat,e.$refs.timepicker.format=t,n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)if(Array.isArray(t)){var o=t.map(function(t){return e.showTime?Object(dr.clearMilliseconds)(t):Object(dr.clearTime)(t)});this.$emit.apply(this,["pick",o].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(dr.clearMilliseconds)(t):Object(dr.clearTime)(t)].concat(r));else this.$emit.apply(this,["pick",t].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(dr.prevMonth)(this.date)},nextMonth:function(){this.date=Object(dr.nextMonth)(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(dr.prevYear)(this.date,10):this.date=Object(dr.prevYear)(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(dr.nextYear)(this.date,10):this.date=Object(dr.nextYear)(this.date)},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleTimePick:function(t,e,n){if(Object(dr.isDate)(t)){var r=this.value?Object(dr.modifyTime)(this.value,t.getHours(),t.getMinutes(),t.getSeconds()):Object(dr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(t,!0);n||(this.timePickerVisible=e)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(t){"month"===this.selectionMode?(this.date=Object(dr.modifyDate)(this.date,this.year,t,1),this.emit(this.date)):(this.date=Object(dr.changeYearMonthAndClampDate)(this.date,this.year,t),this.currentView="date")},handleDatePick:function(t){if("day"===this.selectionMode){var e=this.value?Object(dr.modifyDate)(this.value,t.getFullYear(),t.getMonth(),t.getDate()):Object(dr.modifyWithTimeString)(t,this.defaultTime);this.checkDateWithinRange(e)||(e=Object(dr.modifyDate)(this.selectableRange[0][0],t.getFullYear(),t.getMonth(),t.getDate())),this.date=e,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(t.date):"dates"===this.selectionMode&&this.emit(t,!0)},handleYearPick:function(t){"year"===this.selectionMode?(this.date=Object(dr.modifyDate)(this.date,t,0,1),this.emit(this.date)):(this.date=Object(dr.changeYearMonthAndClampDate)(this.date,t,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var t=this.value?this.value:Object(dr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=new Date(t),this.emit(t)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(t){var e=t.keyCode;this.visible&&!this.timePickerVisible&&(-1!==[38,40,37,39].indexOf(e)&&(this.handleKeyControl(e),t.stopPropagation(),t.preventDefault()),13===e&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(t){for(var e={year:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setFullYear(t.getFullYear()+e)}},month:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setMonth(t.getMonth()+e)}},week:{38:-1,40:1,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+7*e)}},day:{38:-7,40:7,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+e)}}},n=this.selectionMode,r=this.date.getTime(),i=new Date(this.date.getTime());Math.abs(r-i.getTime())<=31536e6;){var o=e[n];if(o.offset(i,o[t]),"function"!=typeof this.disabledDate||!this.disabledDate(i)){this.date=i,this.$emit("pick",i,!0);break}}},handleVisibleTimeChange:function(t){var e=Object(dr.parseDate)(t,this.timeFormat);e&&this.checkDateWithinRange(e)&&(this.date=Object(dr.modifyDate)(e,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(t){var e=Object(dr.parseDate)(t,this.dateFormat);if(e){if("function"==typeof this.disabledDate&&this.disabledDate(e))return;this.date=Object(dr.modifyTime)(e,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(t){return t&&!isNaN(t)&&("function"!=typeof this.disabledDate||!this.disabledDate(t))&&this.checkDateWithinRange(t)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(t){return!(this.selectableRange.length>0)||Object(dr.timeWithinRange)(t,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:jr,YearTable:Br,MonthTable:Gr,DateTable:Xr,ElInput:d.a,ElButton:U.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(dr.getWeekNumber)(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(dr.formatDate)(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(dr.formatDate)(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var t=this.t("el.datepicker.year");if("year"===this.currentView){var e=10*Math.floor(this.year/10);return t?e+" "+t+" - "+(e+9)+" "+t:e+" - "+(e+9)}return this.year+" "+t},timeFormat:function(){return this.format?Object(dr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(dr.extractDateFormat)(this.format):"yyyy-MM-dd"}}},Tr,[],!1,null,null,null);qr.options.__file="packages/date-picker/src/panel/date.vue";var Zr=qr.exports,Kr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])}),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startDate"),value:t.minVisibleDate},on:{input:function(e){return t.handleDateInput(e,"min")},change:function(e){return t.handleDateChange(e,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startTime"),value:t.minVisibleTime},on:{focus:function(e){t.minTimePickerVisible=!0},input:function(e){return t.handleTimeInput(e,"min")},change:function(e){return t.handleTimeChange(e,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.minTimePickerVisible},on:{pick:t.handleMinTimePick,mounted:function(e){t.$refs.minTimePicker.format=t.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endDate"),value:t.maxVisibleDate,readonly:!t.minDate},on:{input:function(e){return t.handleDateInput(e,"max")},change:function(e){return t.handleDateChange(e,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endTime"),value:t.maxVisibleTime,readonly:!t.minDate},on:{focus:function(e){t.minDate&&(t.maxTimePickerVisible=!0)},input:function(e){return t.handleTimeInput(e,"max")},change:function(e){return t.handleTimeChange(e,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.maxTimePickerVisible},on:{pick:t.handleMaxTimePick,mounted:function(e){t.$refs.maxTimePicker.format=t.timeFormat}}})],1)])]):t._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevMonth}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.leftNextMonth}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.rightPrevMonth}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:t.rightNextMonth}}),n("div",[t._v(t._s(t.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2),t.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.handleClear}},[t._v("\n "+t._s(t.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm(!1)}}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1):t._e()])])};Kr._withStripped=!0;var Jr=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(dr.nextDate)(new Date(t),1)]:[new Date,Object(dr.nextDate)(new Date,1)]},Qr=i({mixins:[p.a],directives:{Clickoutside:D.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(dr.formatDate)(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(dr.formatDate)(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(dr.formatDate)(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(dr.formatDate)(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(dr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(dr.extractDateFormat)(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var t=(this.leftMonth+1)%12,e=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+e,t)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(dr.nextMonth)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(t){var e=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick(function(){if(e.$refs.maxTimePicker&&e.maxDate&&e.maxDate<e.minDate){e.$refs.maxTimePicker.selectableRange=[[Object(dr.parseDate)(Object(dr.formatDate)(e.minDate,"HH:mm:ss"),"HH:mm:ss"),Object(dr.parseDate)("23:59:59","HH:mm:ss")]]}}),t&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=t,this.$refs.minTimePicker.value=t)},maxDate:function(t){this.dateUserInput.max=null,this.timeUserInput.max=null,t&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=t,this.$refs.maxTimePicker.value=t)},minTimePickerVisible:function(t){var e=this;t&&this.$nextTick(function(){e.$refs.minTimePicker.date=e.minDate,e.$refs.minTimePicker.value=e.minDate,e.$refs.minTimePicker.adjustSpinners()})},maxTimePickerVisible:function(t){var e=this;t&&this.$nextTick(function(){e.$refs.maxTimePicker.date=e.maxDate,e.$refs.maxTimePicker.value=e.maxDate,e.$refs.maxTimePicker.adjustSpinners()})},value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(dr.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(dr.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=e===r&&n===i?Object(dr.nextMonth)(this.maxDate):this.maxDate}else this.rightDate=Object(dr.nextMonth)(this.leftDate);else this.leftDate=Jr(this.defaultValue)[0],this.rightDate=Object(dr.nextMonth)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=Jr(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&this.unlinkPanels?r:Object(dr.nextMonth)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Jr(this.defaultValue)[0],this.rightDate=Object(dr.nextMonth)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleDateInput:function(t,e){if(this.dateUserInput[e]=t,t.length===this.dateFormat.length){var n=Object(dr.parseDate)(t,this.dateFormat);if(n){if("function"==typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===e?(this.minDate=Object(dr.modifyDate)(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(dr.nextMonth)(this.leftDate))):(this.maxDate=Object(dr.modifyDate)(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(dr.prevMonth)(n)))}}},handleDateChange:function(t,e){var n=Object(dr.parseDate)(t,this.dateFormat);n&&("min"===e?(this.minDate=Object(dr.modifyDate)(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(dr.modifyDate)(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(t,e){var n=this;if(this.timeUserInput[e]=t,t.length===this.timeFormat.length){var r=Object(dr.parseDate)(t,this.timeFormat);r&&("min"===e?(this.minDate=Object(dr.modifyTime)(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick(function(t){return n.$refs.minTimePicker.adjustSpinners()})):(this.maxDate=Object(dr.modifyTime)(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick(function(t){return n.$refs.maxTimePicker.adjustSpinners()})))}},handleTimeChange:function(t,e){var n=Object(dr.parseDate)(t,this.timeFormat);n&&("min"===e?(this.minDate=Object(dr.modifyTime)(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(dr.modifyTime)(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(dr.modifyWithTimeString)(t.minDate,r[0]),o=Object(dr.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout(function(){e.maxDate=o,e.minDate=i},10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleMinTimePick:function(t,e,n){this.minDate=this.minDate||new Date,t&&(this.minDate=Object(dr.modifyTime)(this.minDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.minTimePickerVisible=e),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(t,e,n){this.maxDate&&t&&(this.maxDate=Object(dr.modifyTime)(this.maxDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.maxTimePickerVisible=e),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(dr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(dr.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(dr.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(dr.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(dr.nextYear)(this.rightDate):(this.leftDate=Object(dr.nextYear)(this.leftDate),this.rightDate=Object(dr.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(dr.nextMonth)(this.rightDate):(this.leftDate=Object(dr.nextMonth)(this.leftDate),this.rightDate=Object(dr.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(dr.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(dr.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(dr.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(dr.prevMonth)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(dr.isDate)(t[0])&&Object(dr.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:jr,DateTable:Xr,ElInput:d.a,ElButton:U.a}},Kr,[],!1,null,null,null);Qr.options.__file="packages/date-picker/src/panel/date-range.vue";var ti=Qr.exports,ei=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])}),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("div",[t._v(t._s(t.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2)])])};ei._withStripped=!0;var ni=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(dr.nextMonth)(new Date(t))]:[new Date,Object(dr.nextMonth)(new Date)]},ri=i({mixins:[p.a],directives:{Clickoutside:D.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(dr.nextYear)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(dr.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(dr.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=e===n?Object(dr.nextYear)(this.maxDate):this.maxDate}else this.rightDate=Object(dr.nextYear)(this.leftDate);else this.leftDate=ni(this.defaultValue)[0],this.rightDate=Object(dr.nextYear)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=ni(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(dr.nextYear)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ni(this.defaultValue)[0],this.rightDate=Object(dr.nextYear)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(dr.modifyWithTimeString)(t.minDate,r[0]),o=Object(dr.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout(function(){e.maxDate=o,e.minDate=i},10),n&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},leftPrevYear:function(){this.leftDate=Object(dr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(dr.prevYear)(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(dr.nextYear)(this.leftDate)),this.rightDate=Object(dr.nextYear)(this.rightDate)},leftNextYear:function(){this.leftDate=Object(dr.nextYear)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(dr.prevYear)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(dr.isDate)(t[0])&&Object(dr.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(dr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:Gr,ElInput:d.a,ElButton:U.a}},ei,[],!1,null,null,null);ri.options.__file="packages/date-picker/src/panel/month-range.vue";var ii=ri.exports,oi=function(t){return"daterange"===t||"datetimerange"===t?ti:"monthrange"===t?ii:Zr},ai={mixins:[Er],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(t){this.picker?(this.unmountPicker(),this.panel=oi(t),this.mountPicker()):this.panel=oi(t)}},created:function(){this.panel=oi(this.type)},install:function(t){t.component(ai.name,ai)}},si=ai,li=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:t.popperClass,style:{width:t.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},t._l(t.items,function(e){return n("div",{key:e.value,staticClass:"time-select-item",class:{selected:t.value===e.value,disabled:e.disabled,default:e.value===t.defaultValue},attrs:{disabled:e.disabled},on:{click:function(n){t.handleClick(e)}}},[t._v(t._s(e.value))])}),0)],1)])};li._withStripped=!0;var ui=function(t){var e=(t||"").split(":");return e.length>=2?{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}:null},ci=function(t,e){var n=ui(t),r=ui(e),i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},hi=function(t,e){var n=ui(t),r=ui(e),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,function(t){return(t.hours<10?"0"+t.hours:t.hours)+":"+(t.minutes<10?"0"+t.minutes:t.minutes)}(i)},di=i({components:{ElScrollbar:R.a},watch:{value:function(t){var e=this;t&&this.$nextTick(function(){return e.scrollToOption()})}},methods:{handleClick:function(t){t.disabled||this.$emit("pick",t.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",e=this.$refs.popper.querySelector(".el-picker-panel__content");Be()(e,e.querySelector(t))},handleMenuEnter:function(){var t=this,e=-1!==this.items.map(function(t){return t.value}).indexOf(this.value),n=-1!==this.items.map(function(t){return t.value}).indexOf(this.defaultValue),r=(e?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick(function(){return t.scrollToOption(r)})},scrollDown:function(t){for(var e=this.items,n=e.length,r=e.length,i=e.map(function(t){return t.value}).indexOf(this.value);r--;)if(!e[i=(i+t+n)%n].disabled)return void this.$emit("pick",e[i].value,!0)},isValidValue:function(t){return-1!==this.items.filter(function(t){return!t.disabled}).map(function(t){return t.value}).indexOf(t)},handleKeydown:function(t){var e=t.keyCode;if(38===e||40===e){var n={40:1,38:-1}[e.toString()];return this.scrollDown(n),void t.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var t=this.start,e=this.end,n=this.step,r=[];if(t&&e&&n)for(var i=t;ci(i,e)<=0;)r.push({value:i,disabled:ci(i,this.minTime||"-1:-1")<=0||ci(i,this.maxTime||"100:100")>=0}),i=hi(i,n);return r}}},li,[],!1,null,null,null);di.options.__file="packages/date-picker/src/panel/time-select.vue";var fi=di.exports,pi={mixins:[Er],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=fi},install:function(t){t.component(pi.name,pi)}},gi=pi,vi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.minDate},on:{change:t.handleMinChange,"select-range":t.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.maxDate},on:{change:t.handleMaxChange,"select-range":t.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(e){t.handleCancel()}}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])};vi._withStripped=!0;var mi=Object(dr.parseDate)("00:00:00","HH:mm:ss"),yi=Object(dr.parseDate)("23:59:59","HH:mm:ss"),bi=function(t){return Object(dr.modifyDate)(yi,t.getFullYear(),t.getMonth(),t.getDate())},_i=function(t,e){return new Date(Math.min(t.getTime()+e,bi(t).getTime()))},xi=i({mixins:[p.a],components:{TimeSpinner:Pr},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(t){Array.isArray(t)?(this.minDate=new Date(t[0]),this.maxDate=new Date(t[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=_i(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=_i(new Date,36e5))},visible:function(t){var e=this;t&&(this.oldValue=this.value,this.$nextTick(function(){return e.$refs.minSpinner.emitSelectRange("hours")}))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(t){this.minDate=Object(dr.clearMilliseconds)(t),this.handleChange()},handleMaxChange:function(t){this.maxDate=Object(dr.clearMilliseconds)(t),this.handleChange()},handleChange:function(){var t;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(t=this.minDate,Object(dr.modifyDate)(mi,t.getFullYear(),t.getMonth(),t.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,bi(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(t,e){this.$emit("select-range",t,e,"min"),this.selectionRange=[t,e]},setMaxSelectionRange:function(t,e){this.$emit("select-range",t,e,"max"),this.selectionRange=[t+this.offset,e+this.offset]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(dr.limitTimeRange)(this.minDate,e,this.format),this.maxDate=Object(dr.limitTimeRange)(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],t)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(t){var e=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(e.indexOf(this.selectionRange[0])+t+e.length)%e.length,i=e.length/2;r<i?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-i])},isValidValue:function(t){return Array.isArray(t)&&Object(dr.timeWithinRange)(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(dr.timeWithinRange)(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.spinner.scrollDown(i),void t.preventDefault()}}}},vi,[],!1,null,null,null);xi.options.__file="packages/date-picker/src/panel/time-range.vue";var wi=xi.exports,Si={mixins:[Er],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(t){this.picker?(this.unmountPicker(),this.type=t?"timerange":"time",this.panel=t?wi:jr,this.mountPicker()):(this.type=t?"timerange":"time",this.panel=t?wi:jr)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?wi:jr},install:function(t){t.component(Si.name,Si)}},Ci=Si,ki=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)};ki._withStripped=!0;var Oi=i({name:"ElPopover",mixins:[j.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(g.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(pt.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(pt.on)(e,"focusin",function(){t.handleFocus();var n=e.__vue__;n&&"function"==typeof n.focus&&n.focus()}),Object(pt.on)(n,"focusin",this.handleFocus),Object(pt.on)(e,"focusout",this.handleBlur),Object(pt.on)(n,"focusout",this.handleBlur)),Object(pt.on)(e,"keydown",this.handleKeydown),Object(pt.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(pt.on)(e,"click",this.doToggle),Object(pt.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(pt.on)(e,"mouseenter",this.handleMouseEnter),Object(pt.on)(n,"mouseenter",this.handleMouseEnter),Object(pt.on)(e,"mouseleave",this.handleMouseLeave),Object(pt.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(pt.on)(e,"focusin",this.doShow),Object(pt.on)(e,"focusout",this.doClose)):(Object(pt.on)(e,"mousedown",this.doShow),Object(pt.on)(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(pt.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(pt.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(pt.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(function(){t.showPopper=!0},this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(function(){t.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(pt.off)(t,"click",this.doToggle),Object(pt.off)(t,"mouseup",this.doClose),Object(pt.off)(t,"mousedown",this.doShow),Object(pt.off)(t,"focusin",this.doShow),Object(pt.off)(t,"focusout",this.doClose),Object(pt.off)(t,"mousedown",this.doShow),Object(pt.off)(t,"mouseup",this.doClose),Object(pt.off)(t,"mouseleave",this.handleMouseLeave),Object(pt.off)(t,"mouseenter",this.handleMouseEnter),Object(pt.off)(document,"click",this.handleDocumentClick)}},ki,[],!1,null,null,null);Oi.options.__file="packages/popover/src/main.vue";var Mi=Oi.exports,Ei=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},Ti={bind:function(t,e,n){Ei(t,e,n)},inserted:function(t,e,n){Ei(t,e,n)}};hn.a.directive("popover",Ti),Mi.install=function(t){t.directive("popover",Ti),t.component(Mi.name,Mi)},Mi.directive=Ti;var Ai=Mi,Ii={name:"ElTooltip",mixins:[j.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(g.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new hn.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=A()(200,function(){return t.handleClosePopper()}))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(pt.on)(this.referenceElm,"mouseenter",this.show),Object(pt.on)(this.referenceElm,"mouseleave",this.hide),Object(pt.on)(this.referenceElm,"focus",function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()}),Object(pt.on)(this.referenceElm,"blur",this.handleBlur),Object(pt.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){t.value&&t.updatePopper()})},watch:{focusing:function(t){t?Object(pt.addClass)(this.referenceElm,"focusing"):Object(pt.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.showPopper=!0},this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout(function(){t.showPopper=!1},this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)t[n]&&t[n].tag&&(e=t[n]);return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(pt.off)(t,"mouseenter",this.show),Object(pt.off)(t,"mouseleave",this.hide),Object(pt.off)(t,"focus",this.handleFocus),Object(pt.off)(t,"blur",this.handleBlur),Object(pt.off)(t,"click",this.removeFocusing))},install:function(t){t.component(Ii.name,Ii)}},Di=Ii,Pi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{staticClass:"el-message-box",class:[t.customClass,t.center&&"el-message-box--center"]},[null!==t.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[t.icon&&t.center?n("div",{class:["el-message-box__status",t.icon]}):t._e(),n("span",[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.handleAction(t.distinguishCancelAndClose?"close":"cancel")},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction(t.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):t._e()]):t._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[t.icon&&!t.center&&""!==t.message?n("div",{class:["el-message-box__status",t.icon]}):t._e(),""!==t.message?n("div",{staticClass:"el-message-box__message"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2):t._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:t.inputType,placeholder:t.inputPlaceholder},nativeOn:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleInputEnter(e):null}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:t.editorErrorMessage?"visible":"hidden"}},[t._v(t._s(t.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[t.showCancelButton?n("el-button",{class:[t.cancelButtonClasses],attrs:{loading:t.cancelButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("cancel")}},nativeOn:{click:function(e){t.handleAction("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.t("el.messagebox.cancel"))+"\n ")]):t._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[t.confirmButtonClasses],attrs:{loading:t.confirmButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("confirm")}},nativeOn:{click:function(e){t.handleAction("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.t("el.messagebox.confirm"))+"\n ")])],1)])])])};Pi._withStripped=!0;var Li=n(15),ji=n.n(Li),Ni=n(39),Ri=n.n(Ni),Bi=void 0,Fi={success:"success",info:"info",warning:"warning",error:"error"},zi=i({mixins:[_.a,p.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:d.a,ElButton:U.a},computed:{icon:function(){var t=this.type;return this.iconClass||(t&&Fi[t]?"el-icon-"+Fi[t]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var t=this,e=this.uid;return function(){t.$nextTick(function(){e===t.uid&&t.doClose()})}},doClose:function(){var t=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),Bi.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout(function(){t.action&&t.callback(t.action,t)}))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(t){("prompt"!==this.$type||"confirm"!==t||this.validate())&&(this.action=t,"function"==typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(t,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var t=this.inputPattern;if(t&&!t.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(Li.t)("el.messagebox.error"),Object(pt.addClass)(this.getInputElement(),"invalid"),!1;var e=this.inputValidator;if("function"==typeof e){var n=e(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(Li.t)("el.messagebox.error"),Object(pt.addClass)(this.getInputElement(),"invalid"),!1;if("string"==typeof n)return this.editorErrorMessage=n,Object(pt.addClass)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(pt.removeClass)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var t=this.$el.querySelector(".el-message-box__btns .el-button"),e=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return t||e},getInputElement:function(){var t=this.$refs.input.$refs;return t.input||t.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(t){var e=this;this.$nextTick(function(n){"prompt"===e.$type&&null!==t&&e.validate()})}},visible:function(t){var e=this;t&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick(function(){e.$refs.confirm.$el.focus()}),this.focusAfterClosed=document.activeElement,Bi=new Ri.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(t?setTimeout(function(){e.$refs.input&&e.$refs.input.$el&&e.getInputElement().focus()},500):(this.editorErrorMessage="",Object(pt.removeClass)(this.getInputElement(),"invalid")))}},mounted:function(){var t=this;this.$nextTick(function(){t.closeOnHashChange&&window.addEventListener("hashchange",t.close)})},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout(function(){Bi.closeDialog()})},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Pi,[],!1,null,null,null);zi.options.__file="packages/message-box/src/main.vue";var Vi=zi.exports,$i=n(23),Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hi={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},Wi=hn.a.extend(Vi),Ui=void 0,Yi=void 0,Xi=[],qi=function(t){if(Ui){var e=Ui.callback;"function"==typeof e&&(Yi.showInput?e(Yi.inputValue,t):e(t)),Ui.resolve&&("confirm"===t?Yi.showInput?Ui.resolve({value:Yi.inputValue,action:t}):Ui.resolve(t):!Ui.reject||"cancel"!==t&&"close"!==t||Ui.reject(t))}},Zi=function t(){if(Yi||((Yi=new Wi({el:document.createElement("div")})).callback=qi),Yi.action="",(!Yi.visible||Yi.closeTimer)&&Xi.length>0){var e=(Ui=Xi.shift()).options;for(var n in e)e.hasOwnProperty(n)&&(Yi[n]=e[n]);void 0===e.callback&&(Yi.callback=qi);var r=Yi.callback;Yi.callback=function(e,n){r(e,n),t()},Object($i.isVNode)(Yi.message)?(Yi.$slots.default=[Yi.message],Yi.message=null):delete Yi.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach(function(t){void 0===Yi[t]&&(Yi[t]=!0)}),document.body.appendChild(Yi.$el),hn.a.nextTick(function(){Yi.visible=!0})}},Ki=function t(e,n){if(!hn.a.prototype.$isServer){if("string"==typeof e||Object($i.isVNode)(e)?(e={message:e},"string"==typeof arguments[1]&&(e.title=arguments[1])):e.callback&&!n&&(n=e.callback),"undefined"!=typeof Promise)return new Promise(function(r,i){Xi.push({options:Vt()({},Hi,t.defaults,e),callback:n,resolve:r,reject:i}),Zi()});Xi.push({options:Vt()({},Hi,t.defaults,e),callback:n}),Zi()}};Ki.setDefaults=function(t){Ki.defaults=t},Ki.alert=function(t,e,n){return"object"===(void 0===e?"undefined":Gi(e))?(n=e,e=""):void 0===e&&(e=""),Ki(Vt()({title:e,message:t,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Ki.confirm=function(t,e,n){return"object"===(void 0===e?"undefined":Gi(e))?(n=e,e=""):void 0===e&&(e=""),Ki(Vt()({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},Ki.prompt=function(t,e,n){return"object"===(void 0===e?"undefined":Gi(e))?(n=e,e=""):void 0===e&&(e=""),Ki(Vt()({title:e,message:t,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Ki.close=function(){Yi.doClose(),Yi.visible=!1,Xi=[],Ui=null};var Ji=Ki,Qi=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[this._t("default")],2)};Qi._withStripped=!0;var to=i({name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var t=this.$el.querySelectorAll(".el-breadcrumb__item");t.length&&t[t.length-1].setAttribute("aria-current","page")}},Qi,[],!1,null,null,null);to.options.__file="packages/breadcrumb/src/breadcrumb.vue";var eo=to.exports;eo.install=function(t){t.component(eo.name,eo)};var no=eo,ro=function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"el-breadcrumb__item"},[e("span",{ref:"link",class:["el-breadcrumb__inner",this.to?"is-link":""],attrs:{role:"link"}},[this._t("default")],2),this.separatorClass?e("i",{staticClass:"el-breadcrumb__separator",class:this.separatorClass}):e("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[this._v(this._s(this.separator))])])};ro._withStripped=!0;var io=i({name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var t=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var e=this.$refs.link;e.setAttribute("role","link"),e.addEventListener("click",function(e){var n=t.to,r=t.$router;n&&r&&(t.replace?r.replace(n):r.push(n))})}},ro,[],!1,null,null,null);io.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var oo=io.exports;oo.install=function(t){t.component(oo.name,oo)};var ao=oo,so=function(){var t=this.$createElement;return(this._self._c||t)("form",{staticClass:"el-form",class:[this.labelPosition?"el-form--label-"+this.labelPosition:"",{"el-form--inline":this.inline}]},[this._t("default")],2)};so._withStripped=!0;var lo=i({name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach(function(t){t.removeValidateEvents(),t.addValidateEvents()}),this.validateOnRuleChange&&this.validate(function(){})}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var t=Math.max.apply(Math,this.potentialLabelWidthArr);return t?t+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var t=this;this.$on("el.form.addField",function(e){e&&t.fields.push(e)}),this.$on("el.form.removeField",function(e){e.prop&&t.fields.splice(t.fields.indexOf(e),1)})},methods:{resetFields:function(){this.model?this.fields.forEach(function(t){t.resetField()}):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(t.length?"string"==typeof t?this.fields.filter(function(e){return t===e.prop}):this.fields.filter(function(e){return t.indexOf(e.prop)>-1}):this.fields).forEach(function(t){t.clearValidate()})},validate:function(t){var e=this;if(this.model){var n=void 0;"function"!=typeof t&&window.Promise&&(n=new window.Promise(function(e,n){t=function(t){t?e(t):n(t)}}));var r=!0,i=0;0===this.fields.length&&t&&t(!0);var o={};return this.fields.forEach(function(n){n.validate("",function(n,a){n&&(r=!1),o=Vt()({},o,a),"function"==typeof t&&++i===e.fields.length&&t(r,o)})}),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(t,e){t=[].concat(t);var n=this.fields.filter(function(e){return-1!==t.indexOf(e.prop)});n.length?n.forEach(function(t){t.validate("",e)}):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(t){var e=this.potentialLabelWidthArr.indexOf(t);if(-1===e)throw new Error("[ElementForm]unpected width ",t);return e},registerLabelWidth:function(t,e){if(t&&e){var n=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(n,1,t)}else t&&this.potentialLabelWidthArr.push(t)},deregisterLabelWidth:function(t){var e=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(e,1)}}},so,[],!1,null,null,null);lo.options.__file="packages/form/src/form.vue";var uo=lo.exports;uo.install=function(t){t.component(uo.name,uo)};var co=uo,ho=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":t.elForm&&t.elForm.statusIcon,"is-error":"error"===t.validateState,"is-validating":"validating"===t.validateState,"is-success":"success"===t.validateState,"is-required":t.isRequired||t.required,"is-no-asterisk":t.elForm&&t.elForm.hideRequiredAsterisk},t.sizeClass?"el-form-item--"+t.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":t.labelStyle&&"auto"===t.labelStyle.width,"update-all":"auto"===t.form.labelWidth}},[t.label||t.$slots.label?n("label",{staticClass:"el-form-item__label",style:t.labelStyle,attrs:{for:t.labelFor}},[t._t("label",[t._v(t._s(t.label+t.form.labelSuffix))])],2):t._e()]),n("div",{staticClass:"el-form-item__content",style:t.contentStyle},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===t.validateState&&t.showMessage&&t.form.showMessage?t._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"==typeof t.inlineMessage?t.inlineMessage:t.elForm&&t.elForm.inlineMessage||!1}},[t._v("\n "+t._s(t.validateMessage)+"\n ")])],{error:t.validateMessage}):t._e()],2)],2)],1)};ho._withStripped=!0;var fo=n(40),po=n.n(fo),go=i({props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var t=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return t("div",{class:"el-form-item__label-wrap",style:r},[e])}return e[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var t=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(t))}return 0},updateLabelWidth:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===t?this.computedWidth=this.getLabelWidth():"remove"===t&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(t,e){this.updateAll&&(this.elForm.registerLabelWidth(t,e),this.elFormItem.updateComputedLabelWidth(t))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},void 0,void 0,!1,null,null,null);go.options.__file="packages/form/src/label-wrap.vue";var vo=go.exports,mo=i({name:"ElFormItem",componentName:"ElFormItem",mixins:[C.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:vo},watch:{error:{immediate:!0,handler:function(t){this.validateMessage=t,this.validateState=t?"error":""}},validateStatus:function(t){this.validateState=t}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var t={};if("top"===this.form.labelPosition)return t;var e=this.labelWidth||this.form.labelWidth;return e&&(t.width=e),t},contentStyle:function(){var t={},e=this.label;if("top"===this.form.labelPosition||this.form.inline)return t;if(!e&&!this.labelWidth&&this.isNested)return t;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?t.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(t.marginLeft=this.elForm.autoLabelWidth):t.marginLeft=n,t},form:function(){for(var t=this.$parent,e=t.$options.componentName;"ElForm"!==e;)"ElFormItem"===e&&(this.isNested=!0),e=(t=t.$parent).$options.componentName;return t},fieldValue:function(){var t=this.form.model;if(t&&this.prop){var e=this.prop;return-1!==e.indexOf(":")&&(e=e.replace(/:/,".")),Object(g.getPropByPath)(t,e,!0).v}},isRequired:function(){var t=this.getRules(),e=!1;return t&&t.length&&t.every(function(t){return!t.required||(e=!0,!1)}),e},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.noop;this.validateDisabled=!1;var r=this.getFilteredRule(t);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach(function(t){delete t.trigger}),i[this.prop]=r;var o=new po.a(i),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},function(t,r){e.validateState=t?"error":"success",e.validateMessage=t?t[0].message:"",n(e.validateMessage,r),e.elForm&&e.elForm.$emit("validate",e.prop,!t,e.validateMessage||null)})},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var t=this;this.validateState="",this.validateMessage="";var e=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(g.getPropByPath)(e,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick(function(){t.validateDisabled=!1}),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var t=this.form.rules,e=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(g.getPropByPath)(t,this.prop||"");return t=t?r.o[this.prop||""]||r.v:[],[].concat(e||t||[]).concat(n)},getFilteredRule:function(t){return this.getRules().filter(function(e){return!e.trigger||""===t||(Array.isArray(e.trigger)?e.trigger.indexOf(t)>-1:e.trigger===t)}).map(function(t){return Vt()({},t)})},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(t){this.computedLabelWidth=t?t+"px":""},addValidateEvents:function(){(this.getRules().length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var t=this.fieldValue;Array.isArray(t)&&(t=[].concat(t)),Object.defineProperty(this,"initialValue",{value:t}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},ho,[],!1,null,null,null);mo.options.__file="packages/form/src/form-item.vue";var yo=mo.exports;yo.install=function(t){t.component(yo.name,yo)};var bo=yo,_o=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-tabs__active-bar",class:"is-"+this.rootTabs.tabPosition,style:this.barStyle})};_o._withStripped=!0;var xo=i({name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var t=this,e={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===i?"x":"y",a=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,function(t){return t.toUpperCase()})};this.tabs.every(function(e,o){var s=Object(g.arrayFind)(t.$parent.$refs.tabs||[],function(t){return t.id.replace("tab-","")===e.paneName});if(!s)return!1;if(e.active){r=s["client"+a(i)];var l=window.getComputedStyle(s);return"width"===i&&t.tabs.length>1&&(r-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===i&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+a(i)],!0});var s="translate"+a(o)+"("+n+"px)";return e[i]=r+"px",e.transform=s,e.msTransform=s,e.webkitTransform=s,e}}}},_o,[],!1,null,null,null);function wo(){}xo.options.__file="packages/tabs/src/tab-bar.vue";var So=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,function(t){return t.toUpperCase()})},Co=i({name:"TabNav",components:{TabBar:xo.exports},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:wo},onTabRemove:{type:Function,default:wo},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){return{transform:"translate"+(-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y")+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var t=this.$refs.navScroll["offset"+So(this.sizeName)],e=this.navOffset;if(e){var n=e>t?e-t:0;this.navOffset=n}},scrollNext:function(){var t=this.$refs.nav["offset"+So(this.sizeName)],e=this.$refs.navScroll["offset"+So(this.sizeName)],n=this.navOffset;if(!(t-n<=e)){var r=t-n>2*e?n+e:t-e;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var t=this.$refs.nav,e=this.$el.querySelector(".is-active");if(e){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=r?t.offsetWidth-o.width:t.offsetHeight-o.height,s=this.navOffset,l=s;r?(i.left<o.left&&(l=s-(o.left-i.left)),i.right>o.right&&(l=s+i.right-o.right)):(i.top<o.top&&(l=s-(o.top-i.top)),i.bottom>o.bottom&&(l=s+(i.bottom-o.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,a)}}},update:function(){if(this.$refs.nav){var t=this.sizeName,e=this.$refs.nav["offset"+So(t)],n=this.$refs.navScroll["offset"+So(t)],r=this.navOffset;if(n<e){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<e,e-i<n&&(this.navOffset=e-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(t){var e=t.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(e)&&(i=t.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,t.target),i[n=37===e||38===e?0===r?i.length-1:r-1:r<i.length-1?r+1:0].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var t=this,e=document.visibilityState;"hidden"===e?this.focusable=!1:"visible"===e&&setTimeout(function(){t.focusable=!0},50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var t=this;setTimeout(function(){t.focusable=!0},50)}},updated:function(){this.update()},render:function(t){var e=this,n=this.type,r=this.panes,i=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,l=this.navStyle,u=this.scrollable,c=this.scrollNext,h=this.scrollPrev,d=this.changeTab,f=this.setFocus,p=this.removeFocus,g=u?[t("span",{class:["el-tabs__nav-prev",u.prev?"":"is-disabled"],on:{click:h}},[t("i",{class:"el-icon-arrow-left"})]),t("span",{class:["el-tabs__nav-next",u.next?"":"is-disabled"],on:{click:c}},[t("i",{class:"el-icon-arrow-right"})])]:null,v=this._l(r,function(n,r){var o,l=n.name||n.index||r,u=n.isClosable||i;n.index=""+r;var c=u?t("span",{class:"el-icon-close",on:{click:function(t){s(n,t)}}}):null,h=n.$slots.label||n.label,d=n.active?0:-1;return t("div",{class:(o={"el-tabs__item":!0},o["is-"+e.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=u,o["is-focus"]=e.isFocus,o),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){f()},blur:function(){p()},click:function(t){p(),a(n,l,t)},keydown:function(t){!u||46!==t.keyCode&&8!==t.keyCode||s(n,t)}}},[h,c])});return t("div",{class:["el-tabs__nav-wrap",u?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[g,t("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[t("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:l,attrs:{role:"tablist"},on:{keydown:d}},[n?null:t("tab-bar",{attrs:{tabs:r}}),v])])])},mounted:function(){var t=this;Object(Ne.addResizeListener)(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout(function(){t.scrollToActiveTab()},0)},beforeDestroy:function(){this.$el&&this.update&&Object(Ne.removeResizeListener)(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},void 0,void 0,!1,null,null,null);Co.options.__file="packages/tabs/src/tab-nav.vue";var ko=i({name:"ElTabs",components:{TabNav:Co.exports},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(t){this.setCurrentName(t)},value:function(t){this.setCurrentName(t)},currentName:function(t){var e=this;this.$refs.nav&&this.$nextTick(function(){e.$refs.nav.$nextTick(function(t){e.$refs.nav.scrollToActiveTab()})})}},methods:{calcPaneInstances:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter(function(t){return t.tag&&t.componentOptions&&"ElTabPane"===t.componentOptions.Ctor.options.name}).map(function(t){return t.componentInstance}),r=!(n.length===this.panes.length&&n.every(function(e,n){return e===t.panes[n]}));(e||r)&&(this.panes=n)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(t,e,n){t.disabled||(this.setCurrentName(e),this.$emit("tab-click",t,n))},handleTabRemove:function(t,e){t.disabled||(e.stopPropagation(),this.$emit("edit",t.name,"remove"),this.$emit("tab-remove",t.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(t){var e=this,n=function(){e.currentName=t,e.$emit("input",t)};if(this.currentName!==t&&this.beforeLeave){var r=this.beforeLeave(t,this.currentName);r&&r.then?r.then(function(){n(),e.$refs.nav&&e.$refs.nav.removeFocus()},function(){}):!1!==r&&n()}else n()}},render:function(t){var e,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,l=this.editable,u=this.addable,c=this.tabPosition,h=this.stretch,d=t("div",{class:["el-tabs__header","is-"+c]},[l||u?t("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(t){13===t.keyCode&&o()}},attrs:{tabindex:"0"}},[t("i",{class:"el-icon-plus"})]):null,t("tab-nav",{props:{currentName:a,onTabClick:r,onTabRemove:i,editable:l,type:n,panes:s,stretch:h},ref:"nav"})]),f=t("div",{class:"el-tabs__content"},[this.$slots.default]);return t("div",{class:(e={"el-tabs":!0,"el-tabs--card":"card"===n},e["el-tabs--"+c]=!0,e["el-tabs--border-card"]="border-card"===n,e)},["bottom"!==c?[d,f]:[f,d]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},void 0,void 0,!1,null,null,null);ko.options.__file="packages/tabs/src/tabs.vue";var Oo=ko.exports;Oo.install=function(t){t.component(Oo.name,Oo)};var Mo=Oo,Eo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.lazy||t.loaded||t.active?n("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!t.active,id:"pane-"+t.paneName,"aria-labelledby":"tab-"+t.paneName}},[t._t("default")],2):t._e()};Eo._withStripped=!0;var To=i({name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var t=this.$parent.currentName===(this.name||this.index);return t&&(this.loaded=!0),t},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},Eo,[],!1,null,null,null);To.options.__file="packages/tabs/src/tab-pane.vue";var Ao=To.exports;Ao.install=function(t){t.component(Ao.name,Ao)};var Io=Ao,Do=i({name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t("span",{class:["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:t("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},void 0,void 0,!1,null,null,null);Do.options.__file="packages/tag/src/tag.vue";var Po=Do.exports;Po.install=function(t){t.component(Po.name,Po)};var Lo=Po,jo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":t.highlightCurrent,"is-dragging":!!t.dragState.draggingNode,"is-drop-not-allow":!t.dragState.allowDrop,"is-drop-inner":"inner"===t.dragState.dropType},attrs:{role:"tree"}},[t._l(t.root.childNodes,function(e){return n("el-tree-node",{key:t.getNodeKey(e),attrs:{node:e,props:t.props,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent},on:{"node-expand":t.handleNodeExpand}})}),t.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[t._v(t._s(t.emptyText))])]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)};jo._withStripped=!0;var No="$treeNodeId",Ro=function(t,e){e&&!e[No]&&Object.defineProperty(e,No,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},Bo=function(t,e){return t?e[t]:e[No]},Fo=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var zo=function(t){for(var e=!0,n=!0,r=!0,i=0,o=t.length;i<o;i++){var a=t[i];(!0!==a.checked||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},Vo=function t(e){if(0!==e.childNodes.length){var n=zo(e.childNodes),r=n.all,i=n.none,o=n.half;r?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);var a=e.parent;a&&0!==a.level&&(e.store.checkStrictly||t(a))}},$o=function(t,e){var n=t.store.props,r=t.data||{},i=n[e];if("function"==typeof i)return i(r,t);if("string"==typeof i)return r[i];if(void 0===i){var o=r[e];return void 0===o?"":o}},Go=0,Ho=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=Go++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,e)e.hasOwnProperty(n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&void 0!==i.isLeaf){var o=$o(this,"isLeaf");"boolean"==typeof o&&(this.isLeafByUser=o)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||Ro(this,this.data),this.data){var a=r.defaultExpandedKeys,s=r.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return t.prototype.setData=function(t){Array.isArray(t)||Ro(this,t),this.data=t,this.childNodes=[];for(var e=void 0,n=0,r=(e=0===this.level&&this.data instanceof Array?this.data:$o(this,"children")||[]).length;n<r;n++)this.insertChild({data:e[n]})},t.prototype.contains=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function n(r){for(var i=r.childNodes||[],o=!1,a=0,s=i.length;a<s;a++){var l=i[a];if(l===t||e&&n(l)){o=!0;break}}return o}(this)},t.prototype.remove=function(){var t=this.parent;t&&t.removeChild(this)},t.prototype.insertChild=function(e,n,r){if(!e)throw new Error("insertChild error: child is required.");if(!(e instanceof t)){if(!r){var i=this.getChildren(!0);-1===i.indexOf(e.data)&&(void 0===n||n<0?i.push(e.data):i.splice(n,0,e.data))}Vt()(e,{parent:this,store:this.store}),e=new t(e)}e.level=this.level+1,void 0===n||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()},t.prototype.insertBefore=function(t,e){var n=void 0;e&&(n=this.childNodes.indexOf(e)),this.insertChild(t,n)},t.prototype.insertAfter=function(t,e){var n=void 0;e&&-1!==(n=this.childNodes.indexOf(e))&&(n+=1),this.insertChild(t,n)},t.prototype.removeChild=function(t){var e=this.getChildren()||[],n=e.indexOf(t.data);n>-1&&e.splice(n,1);var r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},t.prototype.removeChildByData=function(t){for(var e=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===t){e=this.childNodes[n];break}e&&this.removeChild(e)},t.prototype.expand=function(t,e){var n=this,r=function(){if(e)for(var r=n.parent;r.level>0;)r.expanded=!0,r=r.parent;n.expanded=!0,t&&t()};this.shouldLoadData()?this.loadData(function(t){t instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||Vo(n),r())}):r()},t.prototype.doCreateChildren=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach(function(t){e.insertChild(Vt()({data:t},n),void 0,!0)})},t.prototype.collapse=function(){this.expanded=!1},t.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},t.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||void 0===this.isLeafByUser){var t=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!t||0===t.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},t.prototype.setChecked=function(t,e,n,r){var i=this;if(this.indeterminate="half"===t,this.checked=!0===t,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=zo(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,t=!1);var l=function(){if(e){for(var n=i.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];r=r||!1!==t;var l=s.disabled?s.checked:r;s.setChecked(l,e,!0,r)}var u=zo(n),c=u.half,h=u.all;h||(i.checked=h,i.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData(function(){l(),Vo(i)},{checked:!1!==t});l()}var u=this.parent;u&&0!==u.level&&(n||Vo(u))}},t.prototype.getChildren=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var e=this.data;if(!e)return null;var n=this.store.props,r="children";return n&&(r=n.children||"children"),void 0===e[r]&&(e[r]=null),t&&!e[r]&&(e[r]=[]),e[r]},t.prototype.updateChildren=function(){var t=this,e=this.getChildren()||[],n=this.childNodes.map(function(t){return t.data}),r={},i=[];e.forEach(function(t,e){var o=t[No];!!o&&Object(g.arrayFindIndex)(n,function(t){return t[No]===o})>=0?r[o]={index:e,data:t}:i.push({index:e,data:t})}),this.store.lazy||n.forEach(function(e){r[e[No]]||t.removeChildByData(e)}),i.forEach(function(e){var n=e.index,r=e.data;t.insertChild({data:r},n)}),this.updateLeafState()},t.prototype.loadData=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)t&&t.call(this);else{this.loading=!0;this.store.load(this,function(r){e.loaded=!0,e.loading=!1,e.childNodes=[],e.doCreateChildren(r,n),e.updateLeafState(),t&&t.call(e,r)})}},Fo(t,[{key:"label",get:function(){return $o(this,"label")}},{key:"key",get:function(){var t=this.store.key;return this.data?this.data[t]:null}},{key:"disabled",get:function(){return $o(this,"disabled")}},{key:"nextSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return t.childNodes[e+1]}return null}},{key:"previousSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return e>0?t.childNodes[e-1]:null}return null}}]),t}(),Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var Uo=function(){function t(e){var n=this;for(var r in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.currentNode=null,this.currentNodeKey=null,e)e.hasOwnProperty(r)&&(this[r]=e[r]);(this.nodesMap={},this.root=new Ho({data:this.data,store:this}),this.lazy&&this.load)?(0,this.load)(this.root,function(t){n.root.doCreateChildren(t),n._initDefaultCheckedNodes()}):this._initDefaultCheckedNodes()}return t.prototype.filter=function(t){var e=this.filterNodeMethod,n=this.lazy;!function r(i){var o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(function(n){n.visible=e.call(n,t,n.data,n),r(n)}),!i.visible&&o.length){var a;a=!o.some(function(t){return t.visible}),i.root?i.root.visible=!1===a:i.visible=!1===a}t&&(!i.visible||i.isLeaf||n||i.expand())}(this)},t.prototype.setData=function(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()},t.prototype.getNode=function(t){if(t instanceof Ho)return t;var e="object"!==(void 0===t?"undefined":Wo(t))?t:Bo(this.key,t);return this.nodesMap[e]||null},t.prototype.insertBefore=function(t,e){var n=this.getNode(e);n.parent.insertBefore({data:t},n)},t.prototype.insertAfter=function(t,e){var n=this.getNode(e);n.parent.insertAfter({data:t},n)},t.prototype.remove=function(t){var e=this.getNode(t);e&&e.parent&&(e===this.currentNode&&(this.currentNode=null),e.parent.removeChild(e))},t.prototype.append=function(t,e){var n=e?this.getNode(e):this.root;n&&n.insertChild({data:t})},t.prototype._initDefaultCheckedNodes=function(){var t=this,e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(function(e){var r=n[e];r&&r.setChecked(!0,!t.checkStrictly)})},t.prototype._initDefaultCheckedNode=function(t){-1!==(this.defaultCheckedKeys||[]).indexOf(t.key)&&t.setChecked(!0,!this.checkStrictly)},t.prototype.setDefaultCheckedKey=function(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())},t.prototype.registerNode=function(t){this.key&&t&&t.data&&(void 0!==t.key&&(this.nodesMap[t.key]=t))},t.prototype.deregisterNode=function(t){var e=this;this.key&&t&&t.data&&(t.childNodes.forEach(function(t){e.deregisterNode(t)}),delete this.nodesMap[t.key])},t.prototype.getCheckedNodes=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return function r(i){(i.root?i.root.childNodes:i.childNodes).forEach(function(i){(i.checked||e&&i.indeterminate)&&(!t||t&&i.isLeaf)&&n.push(i.data),r(i)})}(this),n},t.prototype.getCheckedKeys=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(e).map(function(e){return(e||{})[t.key]})},t.prototype.getHalfCheckedNodes=function(){var t=[];return function e(n){(n.root?n.root.childNodes:n.childNodes).forEach(function(n){n.indeterminate&&t.push(n.data),e(n)})}(this),t},t.prototype.getHalfCheckedKeys=function(){var t=this;return this.getHalfCheckedNodes().map(function(e){return(e||{})[t.key]})},t.prototype._getAllNodes=function(){var t=[],e=this.nodesMap;for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},t.prototype.updateChildren=function(t,e){var n=this.nodesMap[t];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var o=r[i];this.remove(o.data)}for(var a=0,s=e.length;a<s;a++){var l=e[a];this.append(l,n.data)}}},t.prototype._setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort(function(t,e){return e.level-t.level}),i=Object.create(null),o=Object.keys(n);r.forEach(function(t){return t.setChecked(!1,!1)});for(var a=0,s=r.length;a<s;a++){var l=r[a],u=l.data[t].toString();if(o.indexOf(u)>-1){for(var c=l.parent;c&&c.level>0;)i[c.data[t]]=!0,c=c.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),e&&function(){l.setChecked(!1,!1);!function t(e){e.childNodes.forEach(function(e){e.isLeaf||e.setChecked(!1,!1),t(e)})}(l)}())}else l.checked&&!i[u]&&l.setChecked(!1,!1)}},t.prototype.setCheckedNodes=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};t.forEach(function(t){r[(t||{})[n]]=!0}),this._setCheckedKeys(n,e,r)},t.prototype.setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=t;var n=this.key,r={};t.forEach(function(t){r[t]=!0}),this._setCheckedKeys(n,e,r)},t.prototype.setDefaultExpandedKeys=function(t){var e=this;t=t||[],this.defaultExpandedKeys=t,t.forEach(function(t){var n=e.getNode(t);n&&n.expand(null,e.autoExpandParent)})},t.prototype.setChecked=function(t,e,n){var r=this.getNode(t);r&&r.setChecked(!!e,n)},t.prototype.getCurrentNode=function(){return this.currentNode},t.prototype.setCurrentNode=function(t){var e=this.currentNode;e&&(e.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0},t.prototype.setUserCurrentNode=function(t){var e=t[this.key],n=this.nodesMap[e];this.setCurrentNode(n)},t.prototype.setCurrentNodeKey=function(t){if(null===t||void 0===t)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var e=this.getNode(t);e&&this.setCurrentNode(e)},t}(),Yo=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":e.expanded,"is-current":e.node.isCurrent,"is-hidden":!e.node.visible,"is-focusable":!e.node.disabled,"is-checked":!e.node.disabled&&e.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.draggable},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)},contextmenu:function(e){return t.handleContextMenu(e)},dragstart:function(t){return t.stopPropagation(),e.handleDragStart(t)},dragover:function(t){return t.stopPropagation(),e.handleDragOver(t)},dragend:function(t){return t.stopPropagation(),e.handleDragEnd(t)},drop:function(t){return t.stopPropagation(),e.handleDrop(t)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(e.node.level-1)*e.tree.indent+"px"}},[r("span",{class:[{"is-leaf":e.node.isLeaf,expanded:!e.node.isLeaf&&e.expanded},"el-tree-node__expand-icon",e.tree.iconClass?e.tree.iconClass:"el-icon-caret-right"],on:{click:function(t){return t.stopPropagation(),e.handleExpandIconClick(t)}}}),e.showCheckbox?r("el-checkbox",{attrs:{indeterminate:e.node.indeterminate,disabled:!!e.node.disabled},on:{change:e.handleCheckChange},nativeOn:{click:function(t){t.stopPropagation()}},model:{value:e.node.checked,callback:function(t){e.$set(e.node,"checked",t)},expression:"node.checked"}}):e._e(),e.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),r("node-content",{attrs:{node:e.node}})],1),r("el-collapse-transition",[!e.renderAfterExpand||e.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:e.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":e.expanded}},e._l(e.node.childNodes,function(t){return r("el-tree-node",{key:e.getNodeKey(t),attrs:{"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t},on:{"node-expand":e.handleChildNodeExpand}})}),1):e._e()])],1)};Yo._withStripped=!0;var Xo=i({name:"ElTreeNode",componentName:"ElTreeNode",mixins:[C.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:bt.a,ElCheckbox:rn.a,NodeContent:{props:{node:{required:!0}},render:function(t){var e=this.$parent,n=e.tree,r=this.node,i=r.data,o=r.store;return e.renderContent?e.renderContent.call(e._renderProxy,t,{_self:n.$vnode.context,node:r,data:i,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):t("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(t){this.handleSelectChange(this.node.checked,t)},"node.checked":function(t){this.handleSelectChange(t,this.node.indeterminate)},"node.expanded":function(t){var e=this;this.$nextTick(function(){return e.expanded=t}),t&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(t){return Bo(this.tree.nodeKey,t.data)},handleSelectChange:function(t,e){this.oldChecked!==t&&this.oldIndeterminate!==e&&this.tree.$emit("check-change",this.node.data,t,e),this.oldChecked=t,this.indeterminate=e},handleClick:function(){var t=this.tree.store;t.setCurrentNode(this.node),this.tree.$emit("current-change",t.currentNode?t.currentNode.data:null,t.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(t){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(t.stopPropagation(),t.preventDefault()),this.tree.$emit("node-contextmenu",t,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(t,e){var n=this;this.node.setChecked(e.target.checked,!this.tree.checkStrictly),this.$nextTick(function(){var t=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})},handleChildNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.tree.$emit("node-expand",t,e,n)},handleDragStart:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",t,this)},handleDragOver:function(t){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",t,this),t.preventDefault())},handleDrop:function(t){t.preventDefault()},handleDragEnd:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",t,this)}},created:function(){var t=this,e=this.$parent;e.isTree?this.tree=e:this.tree=e.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=(n.props||{}).children||"children";this.$watch("node.data."+r,function(){t.node.updateChildren()}),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",function(e){t.node!==e&&t.node.collapse()})}},Yo,[],!1,null,null,null);Xo.options.__file="packages/tree/src/tree-node.vue";var qo=Xo.exports,Zo=i({name:"ElTree",mixins:[C.a],components:{ElTreeNode:qo},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(Li.t)("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(t){this.data=t},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var t=this.root.childNodes;return!t||0===t.length||t.every(function(t){return!t.visible})}},watch:{defaultCheckedKeys:function(t){this.store.setDefaultCheckedKey(t)},defaultExpandedKeys:function(t){this.store.defaultExpandedKeys=t,this.store.setDefaultExpandedKeys(t)},data:function(t){this.store.setData(t)},checkboxItems:function(t){Array.prototype.forEach.call(t,function(t){t.setAttribute("tabindex",-1)})},checkStrictly:function(t){this.store.checkStrictly=t}},methods:{filter:function(t){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(t)},getNodeKey:function(t){return Bo(this.nodeKey,t.data)},getNodePath:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var e=this.store.getNode(t);if(!e)return[];for(var n=[e.data],r=e.parent;r&&r!==this.root;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(t,e){return this.store.getCheckedNodes(t,e)},getCheckedKeys:function(t){return this.store.getCheckedKeys(t)},getCurrentNode:function(){var t=this.store.getCurrentNode();return t?t.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var t=this.getCurrentNode();return t?t[this.nodeKey]:null},setCheckedNodes:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(t,e)},setCheckedKeys:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(t,e)},setChecked:function(t,e,n){this.store.setChecked(t,e,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(t)},setCurrentKey:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(t)},getNode:function(t){return this.store.getNode(t)},remove:function(t){this.store.remove(t)},append:function(t,e){this.store.append(t,e)},insertBefore:function(t,e){this.store.insertBefore(t,e)},insertAfter:function(t,e){this.store.insertAfter(t,e)},handleNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.$emit("node-expand",t,e,n)},updateKeyChildren:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(t,e)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var t=this.$el.querySelectorAll(".is-checked[role=treeitem]");t.length?t[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(t){var e=t.target;if(-1!==e.className.indexOf("el-tree-node")){var n=t.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(e),i=void 0;[38,40].indexOf(n)>-1&&(t.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(t.preventDefault(),e.click());var o=e.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(t.preventDefault(),o.click())}}},created:function(){var t=this;this.isTree=!0,this.store=new Uo({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var e=this.dragState;this.$on("tree-node-drag-start",function(n,r){if("function"==typeof t.allowDrag&&!t.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(t){}e.draggingNode=r,t.$emit("node-drag-start",r.node,n)}),this.$on("tree-node-drag-over",function(n,r){var i=function(t,e){for(var n=t;n&&"BODY"!==n.tagName;){if(n.__vue__&&n.__vue__.$options.name===e)return n.__vue__;n=n.parentNode}return null}(n.target,"ElTreeNode"),o=e.dropNode;o&&o!==i&&Object(pt.removeClass)(o.$el,"is-drop-inner");var a=e.draggingNode;if(a&&i){var s=!0,l=!0,u=!0,c=!0;"function"==typeof t.allowDrop&&(s=t.allowDrop(a.node,i.node,"prev"),c=l=t.allowDrop(a.node,i.node,"inner"),u=t.allowDrop(a.node,i.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||u)&&o!==i&&(o&&t.$emit("node-drag-leave",a.node,o.node,n),t.$emit("node-drag-enter",a.node,i.node,n)),(s||l||u)&&(e.dropNode=i),i.node.nextSibling===a.node&&(u=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(l=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,l=!1,u=!1);var h=i.$el.getBoundingClientRect(),d=t.$el.getBoundingClientRect(),f=void 0,p=s?l?.25:u?.45:1:-1,g=u?l?.75:s?.55:0:1,v=-9999,m=n.clientY-h.top;f=m<h.height*p?"before":m>h.height*g?"after":l?"inner":"none";var y=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),b=t.$refs.dropIndicator;"before"===f?v=y.top-d.top:"after"===f&&(v=y.bottom-d.top),b.style.top=v+"px",b.style.left=y.right-d.left+"px","inner"===f?Object(pt.addClass)(i.$el,"is-drop-inner"):Object(pt.removeClass)(i.$el,"is-drop-inner"),e.showDropIndicator="before"===f||"after"===f,e.allowDrop=e.showDropIndicator||c,e.dropType=f,t.$emit("node-drag-over",a.node,i.node,n)}}),this.$on("tree-node-drag-end",function(n){var r=e.draggingNode,i=e.dropType,o=e.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&o){var a={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?o.node.parent.insertBefore(a,o.node):"after"===i?o.node.parent.insertAfter(a,o.node):"inner"===i&&o.node.insertChild(a),"none"!==i&&t.store.registerNode(a),Object(pt.removeClass)(o.$el,"is-drop-inner"),t.$emit("node-drag-end",r.node,o.node,i,n),"none"!==i&&t.$emit("node-drop",r.node,o.node,i,n)}r&&!o&&t.$emit("node-drag-end",r.node,null,i,n),e.showDropIndicator=!1,e.draggingNode=null,e.dropNode=null,e.allowDrop=!0})},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},jo,[],!1,null,null,null);Zo.options.__file="packages/tree/src/tree.vue";var Ko=Zo.exports;Ko.install=function(t){t.component(Ko.name,Ko)};var Jo=Ko,Qo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-alert",class:[t.typeClass,t.center?"is-center":"","is-"+t.effect],attrs:{role:"alert"}},[t.showIcon?n("i",{staticClass:"el-alert__icon",class:[t.iconClass,t.isBigIcon]}):t._e(),n("div",{staticClass:"el-alert__content"},[t.title||t.$slots.title?n("span",{staticClass:"el-alert__title",class:[t.isBoldTitle]},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t.$slots.default&&!t.description?n("p",{staticClass:"el-alert__description"},[t._t("default")],2):t._e(),t.description&&!t.$slots.default?n("p",{staticClass:"el-alert__description"},[t._v(t._s(t.description))]):t._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:t.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==t.closeText,"el-icon-close":""===t.closeText},on:{click:function(e){t.close()}}},[t._v(t._s(t.closeText))])])])])};Qo._withStripped=!0;var ta={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},ea=i({name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(t){return-1!==["light","dark"].indexOf(t)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return ta[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Qo,[],!1,null,null,null);ea.options.__file="packages/alert/src/main.vue";var na=ea.exports;na.install=function(t){t.component(na.name,na)};var ra=na,ia=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-notification",t.customClass,t.horizontalClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(e){t.clearTimer()},mouseleave:function(e){t.startTimer()},click:t.click}},[t.type||t.iconClass?n("i",{staticClass:"el-notification__icon",class:[t.typeClass,t.iconClass]}):t._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":t.typeClass||t.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:t._s(t.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.message,expression:"message"}],staticClass:"el-notification__content"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2),t.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(e){return e.stopPropagation(),t.close(e)}}}):t._e()])])])};ia._withStripped=!0;var oa={success:"success",info:"info",warning:"warning",error:"error"},aa=i({data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&oa[this.type]?"el-icon-"+oa[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var t;return(t={})[this.verticalProperty]=this.verticalOffset+"px",t}},watch:{closed:function(t){t&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"==typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout(function(){t.closed||t.close()},this.duration))},keydown:function(t){46===t.keyCode||8===t.keyCode?this.clearTimer():27===t.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var t=this;this.duration>0&&(this.timer=setTimeout(function(){t.closed||t.close()},this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},ia,[],!1,null,null,null);aa.options.__file="packages/notification/src/main.vue";var sa=aa.exports,la=hn.a.extend(sa),ua=void 0,ca=[],ha=1,da=function t(e){if(!hn.a.prototype.$isServer){var n=(e=Vt()({},e)).onClose,r="notification_"+ha++,i=e.position||"top-right";e.onClose=function(){t.close(r,n)},ua=new la({data:e}),Object($i.isVNode)(e.message)&&(ua.$slots.default=[e.message],e.message="REPLACED_BY_VNODE"),ua.id=r,ua.$mount(),document.body.appendChild(ua.$el),ua.visible=!0,ua.dom=ua.$el,ua.dom.style.zIndex=b.PopupManager.nextZIndex();var o=e.offset||0;return ca.filter(function(t){return t.position===i}).forEach(function(t){o+=t.$el.offsetHeight+16}),o+=16,ua.verticalOffset=o,ca.push(ua),ua}};["success","warning","info","error"].forEach(function(t){da[t]=function(e){return("string"==typeof e||Object($i.isVNode)(e))&&(e={message:e}),e.type=t,da(e)}}),da.close=function(t,e){var n=-1,r=ca.length,i=ca.filter(function(e,r){return e.id===t&&(n=r,!0)})[0];if(i&&("function"==typeof e&&e(i),ca.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)ca[s].position===o&&(ca[s].dom.style[i.verticalProperty]=parseInt(ca[s].dom.style[i.verticalProperty],10)-a-16+"px")},da.closeAll=function(){for(var t=ca.length-1;t>=0;t--)ca[t].close()};var fa=da,pa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-slider",class:{"is-vertical":t.vertical,"el-slider--with-input":t.showInput},attrs:{role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.vertical?"vertical":"horizontal","aria-disabled":t.sliderDisabled}},[t.showInput&&!t.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:t.step,disabled:t.sliderDisabled,controls:t.showInputControls,min:t.min,max:t.max,debounce:t.debounce,size:t.inputSize},on:{change:t.emitChange},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}):t._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":t.showInput,disabled:t.sliderDisabled},style:t.runwayStyle,on:{click:t.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:t.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}),t.range?n("slider-button",{ref:"button2",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.secondValue,callback:function(e){t.secondValue=e},expression:"secondValue"}}):t._e(),t._l(t.stops,function(e,r){return t.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:t.getStopStyle(e)}):t._e()}),t.markList.length>0?[n("div",t._l(t.markList,function(e,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:t.getStopStyle(e.position)})}),0),n("div",{staticClass:"el-slider__marks"},t._l(t.markList,function(e,r){return n("slider-marker",{key:r,style:t.getStopStyle(e.position),attrs:{mark:e.mark}})}),1)]:t._e()],2)],1)};pa._withStripped=!0;var ga=n(41),va=n.n(ga),ma=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:t.hovering,dragging:t.dragging},style:t.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.handleMouseEnter,blur:t.handleMouseLeave,keydown:[function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:t.onLeftKeyDown(e):null},function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:t.onRightKeyDown(e):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.onLeftKeyDown(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.onRightKeyDown(e)):null}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":t.tooltipClass,disabled:!t.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:t.hovering,dragging:t.dragging}})])],1)};ma._withStripped=!0;var ya=i({name:"ElSliderButton",components:{ElTooltip:Mt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(t){this.$parent.dragging=t}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(t){this.dragging=!0,this.isClick=!0,"touchstart"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?this.startY=t.clientY:this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var e=0;"touchmove"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?(this.currentY=t.clientY,e=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=t.clientX,e=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){var t=this;this.dragging&&(setTimeout(function(){t.dragging=!1,t.hideTooltip(),t.isClick||(t.setPosition(t.newPosition),t.$parent.emitChange())},0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){var e=this;if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var n=100/((this.max-this.min)/this.step),r=Math.round(t/n)*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick(function(){e.displayTooltip(),e.$refs.tooltip&&e.$refs.tooltip.updatePopper()}),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},ma,[],!1,null,null,null);ya.options.__file="packages/slider/src/button.vue";var ba=ya.exports,_a={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var t=arguments[0],e="string"==typeof this.mark?this.mark:this.mark.label;return t("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[e])}},xa=i({name:"ElSlider",mixins:[C.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:va.a,SliderButton:ba,SliderMarker:_a},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(t,e){this.dragging||Array.isArray(t)&&Array.isArray(e)&&t.every(function(t,n){return t===e[n]})||this.setValues()},dragging:function(t){t||this.setValues()},firstValue:function(t){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",t)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var t=this;return this.range?![this.minValue,this.maxValue].every(function(e,n){return e===t.oldValue[n]}):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var t=this.value;this.range&&Array.isArray(t)?t[1]<this.min?this.$emit("input",[this.min,this.min]):t[0]>this.max?this.$emit("input",[this.max,this.max]):t[0]<this.min?this.$emit("input",[this.min,t[1]]):t[1]>this.max?this.$emit("input",[t[0],this.max]):(this.firstValue=t[0],this.secondValue=t[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=t.slice())):this.range||"number"!=typeof t||isNaN(t)||(t<this.min?this.$emit("input",this.min):t>this.max?this.$emit("input",this.max):(this.firstValue=t,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",t),this.oldValue=t)))}},setPosition:function(t){var e=this.min+t*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-e)<Math.abs(this.maxValue-e)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(t)}else this.$refs.button1.setPosition(t)},onSliderClick:function(t){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var e=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((e-t.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((t.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var t=this;this.$nextTick(function(){t.$emit("change",t.range?[t.minValue,t.maxValue]:t.value)})},getStopStyle:function(t){return this.vertical?{bottom:t+"%"}:{left:t+"%"}}},computed:{stops:function(){var t=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var e=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<e;i++)r.push(i*n);return this.range?r.filter(function(e){return e<100*(t.minValue-t.min)/(t.max-t.min)||e>100*(t.maxValue-t.min)/(t.max-t.min)}):r.filter(function(e){return e>100*(t.firstValue-t.min)/(t.max-t.min)})},markList:function(){var t=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort(function(t,e){return t-e}).filter(function(e){return e<=t.max&&e>=t.min}).map(function(e){return{point:e,position:100*(e-t.min)/(t.max-t.min),mark:t.marks[e]}}):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var t=[this.min,this.max,this.step].map(function(t){var e=(""+t).split(".")[1];return e?e.length:0});return Math.max.apply(null,t)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var t=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],t=this.firstValue+"-"+this.secondValue):("number"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,t=this.firstValue),this.$el.setAttribute("aria-valuetext",t),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},pa,[],!1,null,null,null);xa.options.__file="packages/slider/src/main.vue";var wa=xa.exports;wa.install=function(t){t.component(wa.name,wa)};var Sa=wa,Ca=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])};Ca._withStripped=!0;var ka=i({data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(t){this.text=t}}},Ca,[],!1,null,null,null);ka.options.__file="packages/loading/src/loading.vue";var Oa=ka.exports,Ma=n(32),Ea=n.n(Ma),Ta=hn.a.extend(Oa),Aa={install:function(t){if(!t.prototype.$isServer){var e=function(e,r){r.value?t.nextTick(function(){r.modifiers.fullscreen?(e.originalPosition=Object(pt.getStyle)(document.body,"position"),e.originalOverflow=Object(pt.getStyle)(document.body,"overflow"),e.maskStyle.zIndex=b.PopupManager.nextZIndex(),Object(pt.addClass)(e.mask,"is-fullscreen"),n(document.body,e,r)):(Object(pt.removeClass)(e.mask,"is-fullscreen"),r.modifiers.body?(e.originalPosition=Object(pt.getStyle)(document.body,"position"),["top","left"].forEach(function(t){var n="top"===t?"scrollTop":"scrollLeft";e.maskStyle[t]=e.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-parseInt(Object(pt.getStyle)(document.body,"margin-"+t),10)+"px"}),["height","width"].forEach(function(t){e.maskStyle[t]=e.getBoundingClientRect()[t]+"px"}),n(document.body,e,r)):(e.originalPosition=Object(pt.getStyle)(e,"position"),n(e,e,r)))}):(Ea()(e.instance,function(t){if(e.instance.hiding){e.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:e;Object(pt.removeClass)(n,"el-loading-parent--relative"),Object(pt.removeClass)(n,"el-loading-parent--hidden"),e.instance.hiding=!1}},300,!0),e.instance.visible=!1,e.instance.hiding=!0)},n=function(e,n,r){n.domVisible||"none"===Object(pt.getStyle)(n,"display")||"hidden"===Object(pt.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach(function(t){n.mask.style[t]=n.maskStyle[t]}),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(pt.addClass)(e,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(pt.addClass)(e,"el-loading-parent--hidden"),n.domVisible=!0,e.appendChild(n.mask),t.nextTick(function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0}),n.domInserted=!0)};t.directive("loading",{bind:function(t,n,r){var i=t.getAttribute("element-loading-text"),o=t.getAttribute("element-loading-spinner"),a=t.getAttribute("element-loading-background"),s=t.getAttribute("element-loading-custom-class"),l=r.context,u=new Ta({el:document.createElement("div"),data:{text:l&&l[i]||i,spinner:l&&l[o]||o,background:l&&l[a]||a,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});t.instance=u,t.mask=u.$el,t.maskStyle={},n.value&&e(t,n)},update:function(t,n){t.instance.setText(t.getAttribute("element-loading-text")),n.oldValue!==n.value&&e(t,n)},unbind:function(t,n){t.domInserted&&(t.mask&&t.mask.parentNode&&t.mask.parentNode.removeChild(t.mask),e(t,{value:!1,modifiers:n.modifiers})),t.instance&&t.instance.$destroy()}})}}},Ia=Aa,Da=hn.a.extend(Oa),Pa={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},La=void 0;Da.prototype.originalPosition="",Da.prototype.originalOverflow="",Da.prototype.close=function(){var t=this;this.fullscreen&&(La=void 0),Ea()(this,function(e){var n=t.fullscreen||t.body?document.body:t.target;Object(pt.removeClass)(n,"el-loading-parent--relative"),Object(pt.removeClass)(n,"el-loading-parent--hidden"),t.$el&&t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el),t.$destroy()},300),this.visible=!1};var ja=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!hn.a.prototype.$isServer){if("string"==typeof(t=Vt()({},Pa,t)).target&&(t.target=document.querySelector(t.target)),t.target=t.target||document.body,t.target!==document.body?t.fullscreen=!1:t.body=!0,t.fullscreen&&La)return La;var e=t.body?document.body:t.target,n=new Da({el:document.createElement("div"),data:t});return function(t,e,n){var r={};t.fullscreen?(n.originalPosition=Object(pt.getStyle)(document.body,"position"),n.originalOverflow=Object(pt.getStyle)(document.body,"overflow"),r.zIndex=b.PopupManager.nextZIndex()):t.body?(n.originalPosition=Object(pt.getStyle)(document.body,"position"),["top","left"].forEach(function(e){var n="top"===e?"scrollTop":"scrollLeft";r[e]=t.target.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]+"px"}),["height","width"].forEach(function(e){r[e]=t.target.getBoundingClientRect()[e]+"px"})):n.originalPosition=Object(pt.getStyle)(e,"position"),Object.keys(r).forEach(function(t){n.$el.style[t]=r[t]})}(t,e,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(pt.addClass)(e,"el-loading-parent--relative"),t.fullscreen&&t.lock&&Object(pt.addClass)(e,"el-loading-parent--hidden"),e.appendChild(n.$el),hn.a.nextTick(function(){n.visible=!0}),t.fullscreen&&(La=n),n}},Na={install:function(t){t.use(Ia),t.prototype.$loading=ja},directive:Ia,service:ja},Ra=function(){var t=this.$createElement;return(this._self._c||t)("i",{class:"el-icon-"+this.name})};Ra._withStripped=!0;var Ba=i({name:"ElIcon",props:{name:String}},Ra,[],!1,null,null,null);Ba.options.__file="packages/icon/src/icon.vue";var Fa=Ba.exports;Fa.install=function(t){t.component(Fa.name,Fa)};var za=Fa,Va={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var t={};return this.gutter&&(t.marginLeft="-"+this.gutter/2+"px",t.marginRight=t.marginLeft),t}},render:function(t){return t(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(t){t.component(Va.name,Va)}},$a=Va,Ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ha={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var t=this.$parent;t&&"ElRow"!==t.$options.componentName;)t=t.$parent;return t?t.gutter:0}},render:function(t){var e=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.paddingLeft),["span","offset","pull","push"].forEach(function(t){(e[t]||0===e[t])&&n.push("span"!==t?"el-col-"+t+"-"+e[t]:"el-col-"+e[t])}),["xs","sm","md","lg","xl"].forEach(function(t){if("number"==typeof e[t])n.push("el-col-"+t+"-"+e[t]);else if("object"===Ga(e[t])){var r=e[t];Object.keys(r).forEach(function(e){n.push("span"!==e?"el-col-"+t+"-"+e+"-"+r[e]:"el-col-"+t+"-"+r[e])})}}),t(this.tag,{class:["el-col",n],style:r},this.$slots.default)},install:function(t){t.component(Ha.name,Ha)}},Wa=Ha,Ua=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition-group",{class:["el-upload-list","el-upload-list--"+t.listType,{"is-disabled":t.disabled}],attrs:{tag:"ul",name:"el-list"}},t._l(t.files,function(e){return n("li",{key:e.uid,class:["el-upload-list__item","is-"+e.status,t.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&t._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!t.disabled&&t.$emit("remove",e)},focus:function(e){t.focusing=!0},blur:function(e){t.focusing=!1},click:function(e){t.focusing=!1}}},[t._t("default",["uploading"!==e.status&&["picture-card","picture"].indexOf(t.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.url,alt:""}}):t._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){t.handleClick(e)}}},[n("i",{staticClass:"el-icon-document"}),t._v(t._s(e.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===t.listType,"el-icon-check":["picture-card","picture"].indexOf(t.listType)>-1}})]),t.disabled?t._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){t.$emit("remove",e)}}}),t.disabled?t._e():n("i",{staticClass:"el-icon-close-tip"},[t._v(t._s(t.t("el.upload.deleteTip")))]),"uploading"===e.status?n("el-progress",{attrs:{type:"picture-card"===t.listType?"circle":"line","stroke-width":"picture-card"===t.listType?6:2,percentage:t.parsePercentage(e.percentage)}}):t._e(),"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-actions"},[t.handlePreview&&"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){t.handlePreview(e)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):t._e(),t.disabled?t._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){t.$emit("remove",e)}}},[n("i",{staticClass:"el-icon-delete"})])]):t._e()],{file:e})],2)}),0)};Ua._withStripped=!0;var Ya=n(33),Xa=n.n(Ya),qa=i({name:"ElUploadList",mixins:[p.a],data:function(){return{focusing:!1}},components:{ElProgress:Xa.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(t){return parseInt(t,10)},handleClick:function(t){this.handlePreview&&this.handlePreview(t)}}},Ua,[],!1,null,null,null);qa.options.__file="packages/upload/src/upload-list.vue";var Za=qa.exports,Ka=n(24),Ja=n.n(Ka);var Qa=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-upload-dragger",class:{"is-dragover":t.dragover},on:{drop:function(e){return e.preventDefault(),t.onDrop(e)},dragover:function(e){return e.preventDefault(),t.onDragover(e)},dragleave:function(e){e.preventDefault(),t.dragover=!1}}},[t._t("default")],2)};Qa._withStripped=!0;var ts=i({name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(t){if(!this.disabled&&this.uploader){var e=this.uploader.accept;this.dragover=!1,e?this.$emit("file",[].slice.call(t.dataTransfer.files).filter(function(t){var n=t.type,r=t.name,i=r.indexOf(".")>-1?"."+r.split(".").pop():"",o=n.replace(/\/.*$/,"");return e.split(",").map(function(t){return t.trim()}).filter(function(t){return t}).some(function(t){return/\..+$/.test(t)?i===t:/\/\*$/.test(t)?o===t.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(t)&&n===t})})):this.$emit("file",t.dataTransfer.files)}}}},Qa,[],!1,null,null,null);ts.options.__file="packages/upload/src/upload-dragger.vue";var es=i({inject:["uploader"],components:{UploadDragger:ts.exports},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:function(t){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,n=t.action;e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var r=new FormData;t.data&&Object.keys(t.data).forEach(function(e){r.append(e,t.data[e])}),r.append(t.filename,t.file,t.file.name),e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=300)return t.onError(function(t,e,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+t+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=t,i}(n,0,e));t.onSuccess(function(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(t){return e}}(e))},e.open("post",n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var i=t.headers||{};for(var o in i)i.hasOwnProperty(o)&&null!==i[o]&&e.setRequestHeader(o,i[o]);return e.send(r),e}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(t){return-1!==t.indexOf("image")},handleChange:function(t){var e=t.target.files;e&&this.uploadFiles(e)},uploadFiles:function(t){var e=this;if(this.limit&&this.fileList.length+t.length>this.limit)this.onExceed&&this.onExceed(t,this.fileList);else{var n=Array.prototype.slice.call(t);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach(function(t){e.onStart(t),e.autoUpload&&e.upload(t)})}},upload:function(t){var e=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(t);var n=this.beforeUpload(t);n&&n.then?n.then(function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],t.name,{type:t.type})),t)t.hasOwnProperty(i)&&(n[i]=t[i]);e.post(n)}else e.post(t)},function(){e.onRemove(null,t)}):!1!==n?this.post(t):this.onRemove(null,t)},abort:function(t){var e=this.reqs;if(t){var n=t;t.uid&&(n=t.uid),e[n]&&e[n].abort()}else Object.keys(e).forEach(function(t){e[t]&&e[t].abort(),delete e[t]})},post:function(t){var e=this,n=t.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:t,data:this.data,filename:this.name,action:this.action,onProgress:function(n){e.onProgress(n,t)},onSuccess:function(r){e.onSuccess(r,t),delete e.reqs[n]},onError:function(r){e.onError(r,t),delete e.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(t){t.target===t.currentTarget&&(13!==t.keyCode&&32!==t.keyCode||this.handleClick())}},render:function(t){var e=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,l=this.uploadFiles,u=this.disabled,c={class:{"el-upload":!0},on:{click:e,keydown:this.handleKeydown}};return c.class["el-upload--"+s]=!0,t("div",Ja()([c,{attrs:{tabindex:"0"}}]),[n?t("upload-dragger",{attrs:{disabled:u},on:{file:l}},[this.$slots.default]):this.$slots.default,t("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:o,accept:a},ref:"input",on:{change:i}})])}},void 0,void 0,!1,null,null,null);es.options.__file="packages/upload/src/upload.vue";var ns=es.exports;function rs(){}var is=i({name:"ElUpload",mixins:[w.a],components:{ElProgress:Xa.a,UploadList:Za,Upload:ns},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:rs},onChange:{type:Function,default:rs},onPreview:{type:Function},onSuccess:{type:Function,default:rs},onProgress:{type:Function,default:rs},onError:{type:Function,default:rs},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:rs}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(t){"picture-card"!==t&&"picture"!==t||(this.uploadFiles=this.uploadFiles.map(function(t){if(!t.url&&t.raw)try{t.url=URL.createObjectURL(t.raw)}catch(t){console.error("[Element Error][Upload]",t)}return t}))},fileList:{immediate:!0,handler:function(t){var e=this;this.uploadFiles=t.map(function(t){return t.uid=t.uid||Date.now()+e.tempIndex++,t.status=t.status||"success",t})}}},methods:{handleStart:function(t){t.uid=Date.now()+this.tempIndex++;var e={status:"ready",name:t.name,size:t.size,percentage:0,uid:t.uid,raw:t};if("picture-card"===this.listType||"picture"===this.listType)try{e.url=URL.createObjectURL(t)}catch(t){return void console.error("[Element Error][Upload]",t)}this.uploadFiles.push(e),this.onChange(e,this.uploadFiles)},handleProgress:function(t,e){var n=this.getFile(e);this.onProgress(t,n,this.uploadFiles),n.status="uploading",n.percentage=t.percent||0},handleSuccess:function(t,e){var n=this.getFile(e);n&&(n.status="success",n.response=t,this.onSuccess(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(t,e){var n=this.getFile(e),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(t,e){var n=this;e&&(t=this.getFile(e));var r=function(){n.abort(t);var e=n.uploadFiles;e.splice(e.indexOf(t),1),n.onRemove(t,e)};if(this.beforeRemove){if("function"==typeof this.beforeRemove){var i=this.beforeRemove(t,this.uploadFiles);i&&i.then?i.then(function(){r()},rs):!1!==i&&r()}}else r()},getFile:function(t){var e=void 0;return this.uploadFiles.every(function(n){return!(e=t.uid===n.uid?n:null)}),e},abort:function(t){this.$refs["upload-inner"].abort(t)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var t=this;this.uploadFiles.filter(function(t){return"ready"===t.status}).forEach(function(e){t.$refs["upload-inner"].upload(e.raw)})},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach(function(t){t.url&&0===t.url.indexOf("blob:")&&URL.revokeObjectURL(t.url)})},render:function(t){var e=this,n=void 0;this.showFileList&&(n=t(Za,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(t){if(e.$scopedSlots.file)return e.$scopedSlots.file({file:t.file})}]));var r=t("upload",{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},[this.$slots.trigger||this.$slots.default]);return t("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[r,this.$slots.default]:r,this.$slots.tip,"picture-card"!==this.listType?n:""])}},void 0,void 0,!1,null,null,null);is.options.__file="packages/upload/src/index.vue";var os=is.exports;os.install=function(t){t.component(os.name,os)};var as=os,ss=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:"#e5e9f2","stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px"}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])};ss._withStripped=!0;var ls=i({name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"==typeof this.color?this.color(t):"string"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort(function(t,e){return t.percentage-e.percentage}),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map(function(t,n){return"string"==typeof t?{color:t,percentage:(n+1)*e}:t})}}},ss,[],!1,null,null,null);ls.options.__file="packages/progress/src/progress.vue";var us=ls.exports;us.install=function(t){t.component(us.name,us)};var cs=us,hs=function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"el-spinner"},[e("svg",{staticClass:"el-spinner-inner",style:{width:this.radius/2+"px",height:this.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:this.strokeColor,"stroke-width":this.strokeWidth}})])])};hs._withStripped=!0;var ds=i({name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},hs,[],!1,null,null,null);ds.options.__file="packages/spinner/src/spinner.vue";var fs=ds.exports;fs.install=function(t){t.component(fs.name,fs)};var ps=fs,gs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-message",t.type&&!t.iconClass?"el-message--"+t.type:"",t.center?"is-center":"",t.showClose?"is-closable":"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.iconClass?n("i",{class:t.iconClass}):n("i",{class:t.typeClass}),t._t("default",[t.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:t._s(t.message)}}):n("p",{staticClass:"el-message__content"},[t._v(t._s(t.message))])]),t.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:t.close}}):t._e()],2)])};gs._withStripped=!0;var vs={success:"success",info:"info",warning:"warning",error:"error"},ms=i({data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+vs[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(t){t&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout(function(){t.closed||t.close()},this.duration))},keydown:function(t){27===t.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},gs,[],!1,null,null,null);ms.options.__file="packages/message/src/main.vue";var ys=ms.exports,bs=hn.a.extend(ys),_s=void 0,xs=[],ws=1,Ss=function t(e){if(!hn.a.prototype.$isServer){"string"==typeof(e=e||{})&&(e={message:e});var n=e.onClose,r="message_"+ws++;e.onClose=function(){t.close(r,n)},(_s=new bs({data:e})).id=r,Object($i.isVNode)(_s.message)&&(_s.$slots.default=[_s.message],_s.message=null),_s.$mount(),document.body.appendChild(_s.$el);var i=e.offset||20;return xs.forEach(function(t){i+=t.$el.offsetHeight+16}),_s.verticalOffset=i,_s.visible=!0,_s.$el.style.zIndex=b.PopupManager.nextZIndex(),xs.push(_s),_s}};["success","warning","info","error"].forEach(function(t){Ss[t]=function(e){return"string"==typeof e&&(e={message:e}),e.type=t,Ss(e)}}),Ss.close=function(t,e){for(var n=xs.length,r=-1,i=void 0,o=0;o<n;o++)if(t===xs[o].id){i=xs[o].$el.offsetHeight,r=o,"function"==typeof e&&e(xs[o]),xs.splice(o,1);break}if(!(n<=1||-1===r||r>xs.length-1))for(var a=r;a<n-1;a++){var s=xs[a].$el;s.style.top=parseInt(s.style.top,10)-i-16+"px"}},Ss.closeAll=function(){for(var t=xs.length-1;t>=0;t--)xs[t].close()};var Cs=Ss,ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-badge"},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!t.hidden&&(t.content||0===t.content||t.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+t.type,{"is-fixed":t.$slots.default,"is-dot":t.isDot}],domProps:{textContent:t._s(t.content)}})])],2)};ks._withStripped=!0;var Os=i({name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(t){return["primary","success","warning","info","danger"].indexOf(t)>-1}}},computed:{content:function(){if(!this.isDot){var t=this.value,e=this.max;return"number"==typeof t&&"number"==typeof e&&e<t?e+"+":t}}}},ks,[],!1,null,null,null);Os.options.__file="packages/badge/src/main.vue";var Ms=Os.exports;Ms.install=function(t){t.component(Ms.name,Ms)};var Es=Ms,Ts=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-card",class:t.shadow?"is-"+t.shadow+"-shadow":"is-always-shadow"},[t.$slots.header||t.header?n("div",{staticClass:"el-card__header"},[t._t("header",[t._v(t._s(t.header))])],2):t._e(),n("div",{staticClass:"el-card__body",style:t.bodyStyle},[t._t("default")],2)])};Ts._withStripped=!0;var As=i({name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},Ts,[],!1,null,null,null);As.options.__file="packages/card/src/main.vue";var Is=As.exports;Is.install=function(t){t.component(Is.name,Is)};var Ds=Is,Ps=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":t.currentValue,"aria-valuetext":t.text,"aria-valuemin":"0","aria-valuemax":t.max,tabindex:"0"},on:{keydown:t.handleKey}},[t._l(t.max,function(e,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:t.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){t.setCurrentValue(e,n)},mouseleave:t.resetCurrentValue,click:function(n){t.selectValue(e)}}},[n("i",{staticClass:"el-rate__icon",class:[t.classes[e-1],{hover:t.hoverIndex===e}],style:t.getIconStyle(e)},[t.showDecimalIcon(e)?n("i",{staticClass:"el-rate__decimal",class:t.decimalIconClass,style:t.decimalStyle}):t._e()])])}),t.showText||t.showScore?n("span",{staticClass:"el-rate__text",style:{color:t.textColor}},[t._v(t._s(t.text))]):t._e()],2)};Ps._withStripped=!0;var Ls=n(18),js=i({name:"ElRate",mixins:[w.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var t="";return this.showScore?t=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(t=this.texts[Math.ceil(this.currentValue)-1]),t},decimalStyle:function(){var t="";return this.rateDisabled?t=this.valueDecimal+"%":this.allowHalf&&(t="50%"),{color:this.activeColor,width:t}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var t;return Array.isArray(this.iconClasses)?((t={})[this.lowThreshold]=this.iconClasses[0],t[this.highThreshold]={value:this.iconClasses[1],excluded:!0},t[this.max]=this.iconClasses[2],t):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var t;return Array.isArray(this.colors)?((t={})[this.lowThreshold]=this.colors[0],t[this.highThreshold]={value:this.colors[1],excluded:!0},t[this.max]=this.colors[2],t):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var t=[],e=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;e<n;e++)t.push(this.activeClass);for(;e<this.max;e++)t.push(this.voidClass);return t},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){this.currentValue=t,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(t,e){var n=Object.keys(e).filter(function(n){var r=e[n];return!!Object(Ls.isObject)(r)&&r.excluded?t<n:t<=n}).sort(function(t,e){return t-e}),r=e[n[0]];return Object(Ls.isObject)(r)?r.value:r||""},showDecimalIcon:function(t){var e=this.rateDisabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&t-.5<=this.currentValue&&t>this.currentValue;return e||n},getIconStyle:function(t){var e=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:t<=this.currentValue?this.activeColor:e}},selectValue:function(t){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",t),this.$emit("change",t)))},handleKey:function(t){if(!this.rateDisabled){var e=this.currentValue,n=t.keyCode;38===n||39===n?(this.allowHalf?e+=.5:e+=1,t.stopPropagation(),t.preventDefault()):37!==n&&40!==n||(this.allowHalf?e-=.5:e-=1,t.stopPropagation(),t.preventDefault()),e=(e=e<0?0:e)>this.max?this.max:e,this.$emit("input",e),this.$emit("change",e)}},setCurrentValue:function(t,e){if(!this.rateDisabled){if(this.allowHalf){var n=e.target;Object(pt.hasClass)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(pt.hasClass)(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*e.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?t-.5:t}else this.currentValue=t;this.hoverIndex=t}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},Ps,[],!1,null,null,null);js.options.__file="packages/rate/src/main.vue";var Ns=js.exports;Ns.install=function(t){t.component(Ns.name,Ns)};var Rs=Ns,Bs=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-steps",class:[!this.simple&&"el-steps--"+this.direction,this.simple&&"el-steps--simple"]},[this._t("default")],2)};Bs._withStripped=!0;var Fs=i({name:"ElSteps",mixins:[w.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(t,e){this.$emit("change",t,e)},steps:function(t){t.forEach(function(t,e){t.index=e})}}},Bs,[],!1,null,null,null);Fs.options.__file="packages/steps/src/steps.vue";var zs=Fs.exports;zs.install=function(t){t.component(zs.name,zs)};var Vs=zs,$s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-step",class:[!t.isSimple&&"is-"+t.$parent.direction,t.isSimple&&"is-simple",t.isLast&&!t.space&&!t.isCenter&&"is-flex",t.isCenter&&!t.isVertical&&!t.isSimple&&"is-center"],style:t.style},[n("div",{staticClass:"el-step__head",class:"is-"+t.currentStatus},[n("div",{staticClass:"el-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:t.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",[t.icon?n("i",{staticClass:"el-step__icon-inner",class:[t.icon]}):t._e(),t.icon||t.isSimple?t._e():n("div",{staticClass:"el-step__icon-inner"},[t._v(t._s(t.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",[t._v(t._s(t.title))])],2),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",[t._v(t._s(t.description))])],2)])])};$s._withStripped=!0;var Gs=i({name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var t=this.isSimple,e=this.$parent.space;return t?"":e},style:function(){var t={},e=this.$parent.steps.length,n="number"==typeof this.space?this.space+"px":this.space?this.space:100/(e-(this.isCenter?0:1))+"%";return t.flexBasis=n,this.isVertical?t:(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px",t)}},methods:{updateStatus:function(t){var e=this.$parent.$children[this.index-1];t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",e&&e.calcProgress(this.internalStatus)},calcProgress:function(t){var e=100,n={};n.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=e+"%":n.width=e+"%",this.lineStyle=n}},mounted:function(){var t=this,e=this.$watch("index",function(n){t.$watch("$parent.active",t.updateStatus,{immediate:!0}),t.$watch("$parent.processStatus",function(){var e=t.$parent.active;t.updateStatus(e)},{immediate:!0}),e()})}},$s,[],!1,null,null,null);Gs.options.__file="packages/steps/src/step.vue";var Hs=Gs.exports;Hs.install=function(t){t.component(Hs.name,Hs)};var Ws=Hs,Us=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.carouselClasses,on:{mouseenter:function(e){return e.stopPropagation(),t.handleMouseEnter(e)},mouseleave:function(e){return e.stopPropagation(),t.handleMouseLeave(e)}}},[n("div",{staticClass:"el-carousel__container",style:{height:t.height}},[t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("left")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):t._e(),t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex<t.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("right")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):t._e(),t._t("default")],2),"none"!==t.indicatorPosition?n("ul",{class:t.indicatorsClasses},t._l(t.items,function(e,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+t.direction,{"is-active":r===t.activeIndex}],on:{mouseenter:function(e){t.throttledIndicatorHover(r)},click:function(e){e.stopPropagation(),t.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[t.hasLabel?n("span",[t._v(t._s(e.label))]):t._e()])])}),0):t._e()])};Us._withStripped=!0;var Ys=n(25),Xs=n.n(Ys),qs=i({name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some(function(t){return t.label.toString().length>0})},carouselClasses:function(){var t=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&t.push("el-carousel--card"),t},indicatorsClasses:function(){var t=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&t.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||t.push("el-carousel__indicators--outside"),t}},watch:{items:function(t){t.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(t,e){this.resetItemPosition(e),e>-1&&this.$emit("change",t,e)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(t,e){var n=this.items.length;return e===n-1&&t.inStage&&this.items[0].active||t.inStage&&this.items[e+1]&&this.items[e+1].active?"left":!!(0===e&&t.inStage&&this.items[n-1].active||t.inStage&&this.items[e-1]&&this.items[e-1].active)&&"right"},handleButtonEnter:function(t){var e=this;"vertical"!==this.direction&&this.items.forEach(function(n,r){t===e.itemInStage(n,r)&&(n.hover=!0)})},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach(function(t){t.hover=!1})},updateItems:function(){this.items=this.$children.filter(function(t){return"ElCarouselItem"===t.$options.name})},resetItemPosition:function(t){var e=this;this.items.forEach(function(n,r){n.translateItem(r,e.activeIndex,t)})},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},setActiveItem:function(t){if("string"==typeof t){var e=this.items.filter(function(e){return e.name===t});e.length>0&&(t=this.items.indexOf(e[0]))}if(t=Number(t),isNaN(t)||t!==Math.floor(t))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=t<0?this.loop?n-1:0:t>=n?this.loop?0:n-1:t,r===this.activeIndex&&this.resetItemPosition(r)}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(t){this.activeIndex=t},handleIndicatorHover:function(t){"hover"===this.trigger&&t!==this.activeIndex&&(this.activeIndex=t)}},created:function(){var t=this;this.throttledArrowClick=Xs()(300,!0,function(e){t.setActiveItem(e)}),this.throttledIndicatorHover=Xs()(300,function(e){t.handleIndicatorHover(e)})},mounted:function(){var t=this;this.updateItems(),this.$nextTick(function(){Object(Ne.addResizeListener)(t.$el,t.resetItemPosition),t.initialIndex<t.items.length&&t.initialIndex>=0&&(t.activeIndex=t.initialIndex),t.startTimer()})},beforeDestroy:function(){this.$el&&Object(Ne.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},Us,[],!1,null,null,null);qs.options.__file="packages/carousel/src/main.vue";var Zs=qs.exports;Zs.install=function(t){t.component(Zs.name,Zs)};var Ks=Zs,Js={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var Qs={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Js[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:function(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(pt.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(pt.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(pt.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(pt.off)(document,"mouseup",this.mouseUpDocumentHandler)}},tl={name:"ElScrollbar",components:{Bar:Qs},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=Ln()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(g.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var o=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[o]]);return t("div",{class:"el-scrollbar"},this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,t(Qs,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(Qs,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})])},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(Ne.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Ne.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(tl.name,tl)}},el=tl,nl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":t.active,"el-carousel__item--card":"card"===t.$parent.type,"is-in-stage":t.inStage,"is-hover":t.hover,"is-animating":t.animating},style:t.itemStyle,on:{click:t.handleItemClick}},["card"===t.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.active,expression:"!active"}],staticClass:"el-carousel__mask"}):t._e(),t._t("default")],2)};nl._withStripped=!0;var rl=i({name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(t,e,n){return 0===e&&t===n-1?-1:e===n-1&&0===t?n:t<e-1&&e-t>=n/2?n+1:t>e+1&&t-e>=n/2?-2:t},calcCardTranslate:function(t,e){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(t-e)+1)/4:t<e?-1.83*n/4:3.83*n/4},calcTranslate:function(t,e,n){return this.$parent.$el[n?"offsetHeight":"offsetWidth"]*(t-e)},translateItem:function(t,e,n){var r=this.$parent.type,i=this.parentDirection,o=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=t===e||t===n),t!==e&&o>2&&this.$parent.loop&&(t=this.processIndex(t,e,o)),"card"===r)"vertical"===i&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(t-e))<=1,this.active=t===e,this.translate=this.calcCardTranslate(t,e),this.scale=this.active?1:.83;else{this.active=t===e;var a="vertical"===i;this.translate=this.calcTranslate(t,e,a)}this.ready=!0},handleItemClick:function(){var t=this.$parent;if(t&&"card"===t.type){var e=t.items.indexOf(this);t.setActiveItem(e)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var t={transform:("vertical"===this.parentDirection?"translateY":"translateX")+"("+this.translate+"px) scale("+this.scale+")"};return Object(g.autoprefixer)(t)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},nl,[],!1,null,null,null);rl.options.__file="packages/carousel/src/item.vue";var il=rl.exports;il.install=function(t){t.component(il.name,il)};var ol=il,al=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[this._t("default")],2)};al._withStripped=!0;var sl=i({name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(t){this.activeNames=[].concat(t)}},methods:{setActiveNames:function(t){t=[].concat(t);var e=this.accordion?t[0]:t;this.activeNames=t,this.$emit("input",e),this.$emit("change",e)},handleItemClick:function(t){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==t.name?t.name:"");else{var e=this.activeNames.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),this.setActiveNames(e)}}},created:function(){this.$on("item-click",this.handleItemClick)}},al,[],!1,null,null,null);sl.options.__file="packages/collapse/src/collapse.vue";var ll=sl.exports;ll.install=function(t){t.component(ll.name,ll)};var ul=ll,cl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-collapse-item",class:{"is-active":t.isActive,"is-disabled":t.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":t.isActive,"aria-controls":"el-collapse-content-"+t.id,"aria-describedby":"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:t.focusing,"is-active":t.isActive},attrs:{role:"button",id:"el-collapse-head-"+t.id,tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(e){return"button"in e||!t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.stopPropagation(),t.handleEnterClick(e)):null},focus:t.handleFocus,blur:function(e){t.focusing=!1}}},[t._t("title",[t._v(t._s(t.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":t.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!t.isActive,"aria-labelledby":"el-collapse-head-"+t.id,id:"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__content"},[t._t("default")],2)])])],1)};cl._withStripped=!0;var hl=i({name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[C.a],components:{ElCollapseTransition:bt.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(g.generateId)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var t=this;setTimeout(function(){t.isClick?t.isClick=!1:t.focusing=!0},50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},cl,[],!1,null,null,null);hl.options.__file="packages/collapse/src/collapse-item.vue";var dl=hl.exports;dl.install=function(t){t.component(dl.name,dl)};var fl=dl,pl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return t.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",t.realSize&&"el-cascader--"+t.realSize,{"is-disabled":t.isDisabled}],on:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1},click:function(){return t.toggleDropDownVisible(!t.readonly||void 0)},keydown:t.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":t.dropDownVisible},attrs:{size:t.realSize,placeholder:t.placeholder,readonly:t.readonly,disabled:t.isDisabled,"validate-event":!1},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.handleInput},model:{value:t.multiple?t.presentText:t.inputValue,callback:function(e){t.multiple?t.presentText:t.inputValue=e},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[t.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(e){return e.stopPropagation(),t.handleClear(e)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",t.dropDownVisible&&"is-reverse"],on:{click:function(e){e.stopPropagation(),t.toggleDropDownVisible()}}})])],2),t.multiple?n("div",{staticClass:"el-cascader__tags"},[t._l(t.presentTags,function(e,r){return n("el-tag",{key:e.key,attrs:{type:"info",size:t.tagSize,hit:e.hitState,closable:e.closable,"disable-transitions":""},on:{close:function(e){t.deleteTag(r)}}},[n("span",[t._v(t._s(e.text))])])}),t.filterable&&!t.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:t.presentTags.length?"":t.placeholder},domProps:{value:t.inputValue},on:{input:[function(e){e.target.composing||(t.inputValue=e.target.value.trim())},function(e){return t.handleInput(t.inputValue,e)}],click:function(e){e.stopPropagation(),t.toggleDropDownVisible(!0)},keydown:function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?t.handleDelete(e):null},blur:function(e){t.$forceUpdate()}}}):t._e()],2):t._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",t.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!t.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:t.options,props:t.config,border:!1,"render-label":t.$scopedSlots.default},on:{"expand-change":t.handleExpandChange,close:function(e){t.toggleDropDownVisible(!1)}},model:{value:t.checkedValue,callback:function(e){t.checkedValue=e},expression:"checkedValue"}}),t.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(e){return t.handleSuggestionKeyDown(e)}}},[t.suggestions.length?t._l(t.suggestions,function(e,r){return n("li",{key:e.uid,class:["el-cascader__suggestion-item",e.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(e){t.handleSuggestionClick(r)}}},[n("span",[t._v(t._s(e.text))]),e.checked?n("i",{staticClass:"el-icon-check"}):t._e()])}):t._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[t._v(t._s(t.t("el.cascader.noMatch")))])])],2):t._e()],1)])],1)};pl._withStripped=!0;var gl=n(42),vl=n.n(gl),ml=n(34),yl=n.n(ml),bl=yl.a.keys,_l={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},xl={props:{placement:{type:String,default:"bottom-start"},appendToBody:j.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:j.a.props.arrowOffset,offset:j.a.props.offset,boundariesPadding:j.a.props.boundariesPadding,popperOptions:j.a.props.popperOptions},methods:j.a.methods,data:j.a.data,beforeDestroy:j.a.beforeDestroy},wl={medium:36,small:32,mini:28},Sl=i({name:"ElCascader",directives:{Clickoutside:D.a},mixins:[xl,C.a,p.a,w.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:d.a,ElTag:je.a,ElScrollbar:R.a,ElCascaderPanel:vl.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(Li.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value||null,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var t=(this.elFormItem||{}).elFormItemSize;return this.size||t||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var t=this.props||{},e=this.$attrs;return Object.keys(_l).forEach(function(n){var r=_l[n],i=r.newProp,o=r.type,a=e[n]||e[Object(g.kebabCase)(n)];Object($t.isDef)(n)&&!Object($t.isDef)(t[i])&&(o===Boolean&&""===a&&(a=!0),t[i]=a)}),t},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter(function(t){return!t.isDisabled}).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(t){Object(g.isEqual)(t,this.checkedValue)||(this.checkedValue=t,this.computePresentContent())},checkedValue:function(t){var e=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,o=r.multiple;Object(g.isEqual)(t,e)&&!Object(Ls.isUndefined)(e)||(this.computePresentContent(),o||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",[t]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(t){this.inputValue=t},presentTags:function(t,e){this.multiple&&(t.length||e.length)&&this.$nextTick(this.updateStyle)},filtering:function(t){this.$nextTick(this.updatePopper)}},mounted:function(){var t=this,e=this.$refs.input;e&&e.$el&&(this.inputInitialHeight=e.$el.offsetHeight||wl[this.realSize]||40),Object(g.isEmpty)(this.value)||this.computePresentContent(),this.filterHandler=A()(this.debounce,function(){var e=t.inputValue;if(e){var n=t.beforeFilter(e);n&&n.then?n.then(t.getSuggestions):!1!==n?t.getSuggestions():t.filtering=!1}else t.filtering=!1}),Object(Ne.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Ne.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(t){var e=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;(t=Object($t.isDef)(t)?t:!n)!==n&&(this.dropDownVisible=t,t&&this.$nextTick(function(){e.updatePopper(),e.panel.scrollIntoView()}),r.$refs.input.setAttribute("aria-expanded",t),this.$emit("visible-change",t))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(t){switch(t.keyCode){case bl.enter:this.toggleDropDownVisible();break;case bl.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),t.preventDefault();break;case bl.esc:case bl.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(t){this.$emit("focus",t)},handleBlur:function(t){this.$emit("blur",t)},handleInput:function(t,e){!this.dropDownVisible&&this.toggleDropDownVisible(!0),e&&e.isComposing||(t?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(t){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",t),this.$emit("active-item-change",t)},focusFirstNode:function(){var t=this;this.$nextTick(function(){var e=t.filtering,n=t.$refs,r=n.popper,i=n.suggestionPanel,o=null;e&&i?o=i.$el.querySelector(".el-cascader__suggestion-item"):o=r.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]');o&&(o.focus(),!e&&o.click())})},computePresentContent:function(){var t=this;this.$nextTick(function(){t.config.multiple?(t.computePresentTags(),t.presentText=t.presentTags.length?" ":null):t.computePresentText()})},computePresentText:function(){var t=this.checkedValue,e=this.config;if(!Object(g.isEmpty)(t)){var n=this.panel.getNodeByValue(t);if(n&&(e.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var t=this.isDisabled,e=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,o=this.getCheckedNodes(e),a=[],s=function(e){return{node:e,key:e.uid,text:e.getText(n,r),hitState:!1,closable:!t&&!e.isDisabled}};if(o.length){var l=o[0],u=o.slice(1),c=u.length;a.push(s(l)),c&&(i?a.push({key:-1,text:"+ "+c,closable:!1}):u.forEach(function(t){return a.push(s(t))}))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var t=this,e=this.filterMethod;Object(Ls.isFunction)(e)||(e=function(t,e){return t.text.includes(e)});var n=this.panel.getFlattedNodes(this.leafOnly).filter(function(n){return!n.isDisabled&&(n.text=n.getText(t.showAllLevels,t.separator)||"",e(n,t.inputValue))});this.multiple?this.presentTags.forEach(function(t){t.hitState=!1}):n.forEach(function(e){e.checked=Object(g.isEqual)(t.checkedValue,e.getValueByOption())}),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(t){var e=t.keyCode,n=t.target;switch(e){case bl.enter:n.click();break;case bl.up:var r=n.previousElementSibling;r&&r.focus();break;case bl.down:var i=n.nextElementSibling;i&&i.focus();break;case bl.esc:case bl.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var t=this.inputValue,e=this.pressDeleteCount,n=this.presentTags,r=n.length-1,i=n[r];this.pressDeleteCount=t?0:e+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(r):i.hitState=!0)},handleSuggestionClick:function(t){var e=this.multiple,n=this.suggestions[t];if(e){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(t){var e=this.checkedValue,n=e[t];this.checkedValue=e.filter(function(e,n){return n!==t}),this.$emit("remove-tag",n)},updateStyle:function(){var t=this.$el,e=this.inputInitialHeight;if(!this.$isServer&&t){var n=this.$refs.suggestionPanel,r=t.querySelector(".el-input__inner");if(r){var i=t.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el))o.querySelector(".el-cascader__suggestion-list").style.minWidth=r.offsetWidth+"px";if(i){var a=i.offsetHeight,s=Math.max(a+6,e)+"px";r.style.height=s,this.updatePopper()}}}},getCheckedNodes:function(t){return this.panel.getCheckedNodes(t)}}},pl,[],!1,null,null,null);Sl.options.__file="packages/cascader/src/cascader.vue";var Cl=Sl.exports;Cl.install=function(t){t.component(Cl.name,Cl)};var kl=Cl,Ol=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hide,expression:"hide"}],class:["el-color-picker",t.colorDisabled?"is-disabled":"",t.colorSize?"el-color-picker--"+t.colorSize:""]},[t.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):t._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:t.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":t.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:t.displayedColor}}),t.value||t.showPanelColor?t._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.value||t.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",t.popperClass||""],attrs:{color:t.color,"show-alpha":t.showAlpha,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}})],1)};Ol._withStripped=!0;var Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var El=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},Tl=function(t,e){var n;"string"==typeof(n=t)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)},Al={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Il={A:10,B:11,C:12,D:13,E:14,F:15},Dl=function(t){return 2===t.length?16*(Il[t[0].toUpperCase()]||+t[0])+(Il[t[1].toUpperCase()]||+t[1]):Il[t[1].toUpperCase()]||+t[1]},Pl=function(t,e,n){t=Tl(t,255),e=Tl(e,255),n=Tl(n,255);var r,i=Math.max(t,e,n),o=Math.min(t,e,n),a=void 0,s=i,l=i-o;if(r=0===i?0:l/i,i===o)a=0;else{switch(i){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4}a/=6}return{h:360*a,s:100*r,v:100*s}},Ll=function(t,e,n){t=6*Tl(t,360),e=Tl(e,100),n=Tl(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],h=[o,o,s,n,n,a][l];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*h)}},jl=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",e=e||{})e.hasOwnProperty(n)&&(this[n]=e[n]);this.doOnChange()}return t.prototype.set=function(t,e){if(1!==arguments.length||"object"!==(void 0===t?"undefined":Ml(t)))this["_"+t]=e,this.doOnChange();else for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n])},t.prototype.get=function(t){return this["_"+t]},t.prototype.toRgb=function(){return Ll(this._hue,this._saturation,this._value)},t.prototype.fromString=function(t){var e=this;if(!t)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(t,n,r){e._hue=Math.max(0,Math.min(360,t)),e._saturation=Math.max(0,Math.min(100,n)),e._value=Math.max(0,Math.min(100,r)),e.doOnChange()};if(-1!==t.indexOf("hsl")){var r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(function(t){return""!==t}).map(function(t,e){return e>2?parseFloat(t):parseInt(t,10)});if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=function(t,e,n){n/=100;var r=e/=100,i=Math.max(n,.01);return e*=(n*=2)<=1?n:2-n,r*=i<=1?i:2-i,{h:t,s:100*(0===n?2*r/(i+r):2*e/(n+e)),v:(n+e)/2*100}}(r[0],r[1],r[2]);n(i.h,i.s,i.v)}}else if(-1!==t.indexOf("hsv")){var o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(function(t){return""!==t}).map(function(t,e){return e>2?parseFloat(t):parseInt(t,10)});4===o.length?this._alpha=Math.floor(100*parseFloat(o[3])):3===o.length&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(-1!==t.indexOf("rgb")){var a=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(function(t){return""!==t}).map(function(t,e){return e>2?parseFloat(t):parseInt(t,10)});if(4===a.length?this._alpha=Math.floor(100*parseFloat(a[3])):3===a.length&&(this._alpha=100),a.length>=3){var s=Pl(a[0],a[1],a[2]);n(s.h,s.s,s.v)}}else if(-1!==t.indexOf("#")){var l=t.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(l))return;var u=void 0,c=void 0,h=void 0;3===l.length?(u=Dl(l[0]+l[0]),c=Dl(l[1]+l[1]),h=Dl(l[2]+l[2])):6!==l.length&&8!==l.length||(u=Dl(l.substring(0,2)),c=Dl(l.substring(2,4)),h=Dl(l.substring(4,6))),8===l.length?this._alpha=Math.floor(Dl(l.substring(6))/255*100):3!==l.length&&6!==l.length||(this._alpha=100);var d=Pl(u,c,h);n(d.h,d.s,d.v)}},t.prototype.compare=function(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1},t.prototype.doOnChange=function(){var t=this._hue,e=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var o=El(t,e/100,n/100);this.value="hsla("+t+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var a=Ll(t,e,n),s=a.r,l=a.g,u=a.b;this.value="rgba("+s+", "+l+", "+u+", "+r/100+")"}else switch(i){case"hsl":var c=El(t,e/100,n/100);this.value="hsl("+t+", "+Math.round(100*c[1])+"%, "+Math.round(100*c[2])+"%)";break;case"hsv":this.value="hsv("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%)";break;case"rgb":var h=Ll(t,e,n),d=h.r,f=h.g,p=h.b;this.value="rgb("+d+", "+f+", "+p+")";break;default:this.value=function(t){var e=t.r,n=t.g,r=t.b,i=function(t){t=Math.min(Math.round(t),255);var e=Math.floor(t/16),n=t%16;return""+(Al[e]||e)+(Al[n]||n)};return isNaN(e)||isNaN(n)||isNaN(r)?"":"#"+i(e)+i(n)+i(r)}(Ll(t,e,n))}},t}(),Nl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:t.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:t.color}})],1),t.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:t.color}}):t._e(),t.predefine?n("predefine",{attrs:{color:t.color,colors:t.predefine}}):t._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:t.handleConfirm},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleConfirm(e):null}},model:{value:t.customInput,callback:function(e){t.customInput=e},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(e){t.$emit("clear")}}},[t._v("\n "+t._s(t.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:t.confirmValue}},[t._v("\n "+t._s(t.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])};Nl._withStripped=!0;var Rl=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-color-svpanel",style:{backgroundColor:this.background}},[e("div",{staticClass:"el-color-svpanel__white"}),e("div",{staticClass:"el-color-svpanel__black"}),e("div",{staticClass:"el-color-svpanel__cursor",style:{top:this.cursorTop+"px",left:this.cursorLeft+"px"}},[e("div")])])};Rl._withStripped=!0;var Bl=!1,Fl=function(t,e){if(!hn.a.prototype.$isServer){var n=function(t){e.drag&&e.drag(t)},r=function t(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t),document.onselectstart=null,document.ondragstart=null,Bl=!1,e.end&&e.end(r)};t.addEventListener("mousedown",function(t){Bl||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),Bl=!0,e.start&&e.start(t))})}},zl=i({name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){return{hue:this.color.get("hue"),value:this.color.get("value")}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var t=this.color.get("saturation"),e=this.color.get("value"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=t*r/100,this.cursorTop=(100-e)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;n=Math.max(0,n),n=Math.min(n,e.width),r=Math.max(0,r),r=Math.min(r,e.height),this.cursorLeft=n,this.cursorTop=r,this.color.set({saturation:n/e.width*100,value:100-r/e.height*100})}},mounted:function(){var t=this;Fl(this.$el,{drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},Rl,[],!1,null,null,null);zl.options.__file="packages/color-picker/src/components/sv-panel.vue";var Vl=zl.exports,$l=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":this.vertical}},[e("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:this.handleClick}}),e("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};$l._withStripped=!0;var Gl=i({name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){return this.color.get("hue")}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=t.clientY-e.top;i=Math.min(i,e.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(e.height-n.offsetHeight)*360)}else{var o=t.clientX-e.left;o=Math.min(o,e.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),r=Math.round((o-n.offsetWidth/2)/(e.width-n.offsetWidth)*360)}this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Fl(n,i),Fl(r,i),this.update()}},$l,[],!1,null,null,null);Gl.options.__file="packages/color-picker/src/components/hue-slider.vue";var Hl=Gl.exports,Wl=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":this.vertical}},[e("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:this.background},on:{click:this.handleClick}}),e("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};Wl._withStripped=!0;var Ul=i({name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=t.clientY-e.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,e.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(e.height-n.offsetHeight)*100))}else{var i=t.clientX-e.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,e.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-n.offsetWidth/2)/(e.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var t=this.color.toRgb(),e=t.r,n=t.g,r=t.b;return"linear-gradient(to right, rgba("+e+", "+n+", "+r+", 0) 0%, rgba("+e+", "+n+", "+r+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Fl(n,i),Fl(r,i),this.update()}},Wl,[],!1,null,null,null);Ul.options.__file="packages/color-picker/src/components/alpha-slider.vue";var Yl=Ul.exports,Xl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},t._l(t.rgbaColors,function(e,r){return n("div",{key:t.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:e.selected,"is-alpha":e._alpha<100},on:{click:function(e){t.handleSelect(r)}}},[n("div",{style:{"background-color":e.value}})])}),0)])};Xl._withStripped=!0;var ql=i({props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(t){this.color.fromString(this.colors[t])},parseColors:function(t,e){return t.map(function(t){var n=new jl;return n.enableAlpha=!0,n.format="rgba",n.fromString(t),n.selected=n.value===e.value,n})}},watch:{"$parent.currentColor":function(t){var e=new jl;e.fromString(t),this.rgbaColors.forEach(function(t){t.selected=e.compare(t)})},colors:function(t){this.rgbaColors=this.parseColors(t,this.color)},color:function(t){this.rgbaColors=this.parseColors(this.colors,t)}}},Xl,[],!1,null,null,null);ql.options.__file="packages/color-picker/src/components/predefine.vue";var Zl=ql.exports,Kl=i({name:"el-color-picker-dropdown",mixins:[j.a,p.a],components:{SvPanel:Vl,HueSlider:Hl,AlphaSlider:Yl,ElInput:d.a,ElButton:U.a,Predefine:Zl},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var t=this.$parent;return t.value||t.showPanelColor?t.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(t){var e=this;!0===t&&this.$nextTick(function(){var t=e.$refs,n=t.sl,r=t.hue,i=t.alpha;n&&n.update(),r&&r.update(),i&&i.update()})},currentColor:{immediate:!0,handler:function(t){this.customInput=t}}}},Nl,[],!1,null,null,null);Kl.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Jl=Kl.exports,Ql=i({name:"ElColorPicker",mixins:[C.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:D.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){t?t&&t!==this.color.value&&this.color.fromString(t):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(t){if(this.showPicker){var e=new jl({enableAlpha:this.showAlpha,format:this.colorFormat});e.fromString(this.value),t!==this.displayedRgb(e,this.showAlpha)&&this.$emit("active-change",t)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var t=this.color.value;this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",t),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var t=this;this.$nextTick(function(e){t.value?t.color.fromString(t.value):t.showPanelColor=!1})},displayedRgb:function(t,e){if(!(t instanceof jl))throw Error("color should be instance of Color Class");var n=t.toRgb(),r=n.r,i=n.g,o=n.b;return e?"rgba("+r+", "+i+", "+o+", "+t.get("alpha")/100+")":"rgb("+r+", "+i+", "+o+")"}},mounted:function(){var t=this.value;t&&this.color.fromString(t),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new jl({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Jl}},Ol,[],!1,null,null,null);Ql.options.__file="packages/color-picker/src/main.vue";var tu=Ql.exports;tu.install=function(t){t.component(tu.name,tu)};var eu=tu,nu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",t._b({ref:"leftPanel",attrs:{data:t.sourceData,title:t.titles[0]||t.t("el.transfer.titles.0"),"default-checked":t.leftDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onSourceCheckedChange}},"transfer-panel",t.$props,!1),[t._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.rightChecked.length},nativeOn:{click:function(e){return t.addToLeft(e)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==t.buttonTexts[0]?n("span",[t._v(t._s(t.buttonTexts[0]))]):t._e()]),n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.leftChecked.length},nativeOn:{click:function(e){return t.addToRight(e)}}},[void 0!==t.buttonTexts[1]?n("span",[t._v(t._s(t.buttonTexts[1]))]):t._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",t._b({ref:"rightPanel",attrs:{data:t.targetData,title:t.titles[1]||t.t("el.transfer.titles.1"),"default-checked":t.rightDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onTargetCheckedChange}},"transfer-panel",t.$props,!1),[t._t("right-footer")],2)],1)};nu._withStripped=!0;var ru=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleAllCheckedChange},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v("\n "+t._s(t.title)+"\n "),n("span",[t._v(t._s(t.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",t.hasFooter?"is-with-footer":""]},[t.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:t.placeholder},nativeOn:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+t.inputIcon],attrs:{slot:"prefix"},on:{click:t.clearQuery},slot:"prefix"})]):t._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!t.hasNoMatch&&t.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":t.filterable},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},t._l(t.filteredData,function(e){return n("el-checkbox",{key:e[t.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:e[t.keyProp],disabled:e[t.disabledProp]}},[n("option-content",{attrs:{option:e}})],1)}),1),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===t.data.length&&!t.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noData")))])],1),t.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[t._t("default")],2):t._e()])};ru._withStripped=!0;var iu=i({mixins:[p.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Wn.a,ElCheckbox:rn.a,ElInput:d.a,OptionContent:{props:{option:Object},render:function(t){var e=function t(e){return"ElTransferPanel"===e.$options.componentName?e:e.$parent?t(e.$parent):e}(this),n=e.$parent||e;return e.renderContent?e.renderContent(t,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):t("span",[this.option[e.labelProp]||this.option[e.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(t,e){if(this.updateAllChecked(),this.checkChangeByUser){var n=t.concat(e).filter(function(n){return-1===t.indexOf(n)||-1===e.indexOf(n)});this.$emit("checked-change",t,n)}else this.$emit("checked-change",t),this.checkChangeByUser=!0},data:function(){var t=this,e=[],n=this.filteredData.map(function(e){return e[t.keyProp]});this.checked.forEach(function(t){n.indexOf(t)>-1&&e.push(t)}),this.checkChangeByUser=!1,this.checked=e},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(t,e){var n=this;if(!e||t.length!==e.length||!t.every(function(t){return e.indexOf(t)>-1})){var r=[],i=this.checkableData.map(function(t){return t[n.keyProp]});t.forEach(function(t){i.indexOf(t)>-1&&r.push(t)}),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var t=this;return this.data.filter(function(e){return"function"==typeof t.filterMethod?t.filterMethod(t.query,e):(e[t.labelProp]||e[t.keyProp].toString()).toLowerCase().indexOf(t.query.toLowerCase())>-1})},checkableData:function(){var t=this;return this.filteredData.filter(function(e){return!e[t.disabledProp]})},checkedSummary:function(){var t=this.checked.length,e=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?t>0?i.replace(/\${checked}/g,t).replace(/\${total}/g,e):r.replace(/\${total}/g,e):t+"/"+e},isIndeterminate:function(){var t=this.checked.length;return t>0&&t<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var t=this,e=this.checkableData.map(function(e){return e[t.keyProp]});this.allChecked=e.length>0&&e.every(function(e){return t.checked.indexOf(e)>-1})},handleAllCheckedChange:function(t){var e=this;this.checked=t?this.checkableData.map(function(t){return t[e.keyProp]}):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},ru,[],!1,null,null,null);iu.options.__file="packages/transfer/src/transfer-panel.vue";var ou=iu.exports,au=i({name:"ElTransfer",mixins:[C.a,p.a,w.a],components:{TransferPanel:ou,ElButton:U.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var t=this.props.key;return this.data.reduce(function(e,n){return(e[n[t]]=n)&&e},{})},sourceData:function(){var t=this;return this.data.filter(function(e){return-1===t.value.indexOf(e[t.props.key])})},targetData:function(){var t=this;return"original"===this.targetOrder?this.data.filter(function(e){return t.value.indexOf(e[t.props.key])>-1}):this.value.reduce(function(e,n){var r=t.dataObj[n];return r&&e.push(r),e},[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(t,e){this.leftChecked=t,void 0!==e&&this.$emit("left-check-change",t,e)},onTargetCheckedChange:function(t,e){this.rightChecked=t,void 0!==e&&this.$emit("right-check-change",t,e)},addToLeft:function(){var t=this.value.slice();this.rightChecked.forEach(function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),this.$emit("input",t),this.$emit("change",t,"left",this.rightChecked)},addToRight:function(){var t=this,e=this.value.slice(),n=[],r=this.props.key;this.data.forEach(function(e){var i=e[r];t.leftChecked.indexOf(i)>-1&&-1===t.value.indexOf(i)&&n.push(i)}),e="unshift"===this.targetOrder?n.concat(e):e.concat(n),this.$emit("input",e),this.$emit("change",e,"right",this.leftChecked)},clearQuery:function(t){"left"===t?this.$refs.leftPanel.query="":"right"===t&&(this.$refs.rightPanel.query="")}}},nu,[],!1,null,null,null);au.options.__file="packages/transfer/src/main.vue";var su=au.exports;su.install=function(t){t.component(su.name,su)};var lu=su,uu=function(){var t=this.$createElement;return(this._self._c||t)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)};uu._withStripped=!0;var cu=i({name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some(function(t){var e=t.componentOptions&&t.componentOptions.tag;return"el-header"===e||"el-footer"===e}))}}},uu,[],!1,null,null,null);cu.options.__file="packages/container/src/main.vue";var hu=cu.exports;hu.install=function(t){t.component(hu.name,hu)};var du=hu,fu=function(){var t=this.$createElement;return(this._self._c||t)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)};fu._withStripped=!0;var pu=i({name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},fu,[],!1,null,null,null);pu.options.__file="packages/header/src/main.vue";var gu=pu.exports;gu.install=function(t){t.component(gu.name,gu)};var vu=gu,mu=function(){var t=this.$createElement;return(this._self._c||t)("aside",{staticClass:"el-aside",style:{width:this.width}},[this._t("default")],2)};mu._withStripped=!0;var yu=i({name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},mu,[],!1,null,null,null);yu.options.__file="packages/aside/src/main.vue";var bu=yu.exports;bu.install=function(t){t.component(bu.name,bu)};var _u=bu,xu=function(){var t=this.$createElement;return(this._self._c||t)("main",{staticClass:"el-main"},[this._t("default")],2)};xu._withStripped=!0;var wu=i({name:"ElMain",componentName:"ElMain"},xu,[],!1,null,null,null);wu.options.__file="packages/main/src/main.vue";var Su=wu.exports;Su.install=function(t){t.component(Su.name,Su)};var Cu=Su,ku=function(){var t=this.$createElement;return(this._self._c||t)("footer",{staticClass:"el-footer",style:{height:this.height}},[this._t("default")],2)};ku._withStripped=!0;var Ou=i({name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},ku,[],!1,null,null,null);Ou.options.__file="packages/footer/src/main.vue";var Mu=Ou.exports;Mu.install=function(t){t.component(Mu.name,Mu)};var Eu=Mu,Tu=i({name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var t=arguments[0],e=this.reverse,n={"el-timeline":!0,"is-reverse":e},r=this.$slots.default||[];return e&&(r=r.reverse()),t("ul",{class:n},[r])}},void 0,void 0,!1,null,null,null);Tu.options.__file="packages/timeline/src/main.vue";var Au=Tu.exports;Au.install=function(t){t.component(Au.name,Au)};var Iu=Au,Du=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),t.$slots.dot?t._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(t.size||""),"el-timeline-item__node--"+(t.type||"")],style:{backgroundColor:t.color}},[t.icon?n("i",{staticClass:"el-timeline-item__icon",class:t.icon}):t._e()]),t.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[t._t("dot")],2):t._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[t.hideTimestamp||"top"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[t._v("\n "+t._s(t.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[t._t("default")],2),t.hideTimestamp||"bottom"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[t._v("\n "+t._s(t.timestamp)+"\n ")])])])};Du._withStripped=!0;var Pu=i({name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},Du,[],!1,null,null,null);Pu.options.__file="packages/timeline/src/item.vue";var Lu=Pu.exports;Lu.install=function(t){t.component(Lu.name,Lu)};var ju=Lu,Nu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._b({class:["el-link",t.type?"el-link--"+t.type:"",t.disabled&&"is-disabled",t.underline&&!t.disabled&&"is-underline"],attrs:{href:t.disabled?null:t.href},on:{click:t.handleClick}},"a",t.$attrs,!1),[t.icon?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",{staticClass:"el-link--inner"},[t._t("default")],2):t._e(),t.$slots.icon?[t.$slots.icon?t._t("icon"):t._e()]:t._e()],2)};Nu._withStripped=!0;var Ru=i({name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(t){this.disabled||this.href||this.$emit("click",t)}}},Nu,[],!1,null,null,null);Ru.options.__file="packages/link/src/main.vue";var Bu=Ru.exports;Bu.install=function(t){t.component(Bu.name,Bu)};var Fu=Bu,zu=function(t,e){var n=e._c;return n("div",e._g(e._b({class:[e.data.staticClass,"el-divider","el-divider--"+e.props.direction]},"div",e.data.attrs,!1),e.listeners),[e.slots().default&&"vertical"!==e.props.direction?n("div",{class:["el-divider__text","is-"+e.props.contentPosition]},[e._t("default")],2):e._e()])};zu._withStripped=!0;var Vu=i({name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}},contentPosition:{type:String,default:"center",validator:function(t){return-1!==["left","center","right"].indexOf(t)}}}},zu,[],!0,null,null,null);Vu.options.__file="packages/divider/src/main.vue";var $u=Vu.exports;$u.install=function(t){t.component($u.name,$u)};var Gu=$u,Hu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-image"},[t.loading?t._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):t.error?t._t("error",[n("div",{staticClass:"el-image__error"},[t._v(t._s(t.t("el.image.error")))])]):n("img",t._g(t._b({staticClass:"el-image__inner",class:{"el-image__inner--center":t.alignCenter,"el-image__preview":t.preview},style:t.imageStyle,attrs:{src:t.src},on:{click:t.clickHandler}},"img",t.$attrs,!1),t.$listeners)),t.preview?[t.showViewer?n("image-viewer",{attrs:{"z-index":t.zIndex,"initial-index":t.imageIndex,"on-close":t.closeViewer,"url-list":t.previewSrcList}}):t._e()]:t._e()],2)};Hu._withStripped=!0;var Wu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":t.zIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleMaskClick(e)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:t.hide}},[n("i",{staticClass:"el-icon-close"})]),t.isSingle?t._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(e){t.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(e){t.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:t.mode.icon,on:{click:t.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){t.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){t.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},t._l(t.urlList,function(e,r){return r===t.index?n("img",{key:e,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()}),0)],2)])};Wu._withStripped=!0;var Uu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yu={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},Xu=Object(g.isFirefox)()?"DOMMouseScroll":"mousewheel",qu=i({name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:Yu.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var t=this.transform,e=t.scale,n=t.deg,r=t.offsetX,i=t.offsetY,o={transform:"scale("+e+") rotate("+n+"deg)",transition:t.enableTransition?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===Yu.CONTAIN&&(o.maxWidth=o.maxHeight="100%"),o}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},currentImg:function(t){var e=this;this.$nextTick(function(t){e.$refs.img[0].complete||(e.loading=!0)})}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var t=this;this._keyDownHandler=Object(g.rafThrottle)(function(e){switch(e.keyCode){case 27:t.hide();break;case 32:t.toggleMode();break;case 37:t.prev();break;case 38:t.handleActions("zoomIn");break;case 39:t.next();break;case 40:t.handleActions("zoomOut")}}),this._mouseWheelHandler=Object(g.rafThrottle)(function(e){(e.wheelDelta?e.wheelDelta:-e.detail)>0?t.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):t.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),Object(pt.on)(document,"keydown",this._keyDownHandler),Object(pt.on)(document,Xu,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(pt.off)(document,"keydown",this._keyDownHandler),Object(pt.off)(document,Xu,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(t){this.loading=!1},handleImgError:function(t){this.loading=!1,t.target.alt="加载失败"},handleMouseDown:function(t){var e=this;if(!this.loading&&0===t.button){var n=this.transform,r=n.offsetX,i=n.offsetY,o=t.pageX,a=t.pageY;this._dragHandler=Object(g.rafThrottle)(function(t){e.transform.offsetX=r+t.pageX-o,e.transform.offsetY=i+t.pageY-a}),Object(pt.on)(document,"mousemove",this._dragHandler),Object(pt.on)(document,"mouseup",function(t){Object(pt.off)(document,"mousemove",e._dragHandler)}),t.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var t=Object.keys(Yu),e=(Object.values(Yu).indexOf(this.mode)+1)%t.length;this.mode=Yu[t[e]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var t=this.urlList.length;this.index=(this.index-1+t)%t}},next:function(){if(!this.isLast||this.infinite){var t=this.urlList.length;this.index=(this.index+1)%t}},handleActions:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=Uu({zoomRate:.2,rotateDeg:90,enableTransition:!0},e),r=n.zoomRate,i=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(t){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+r).toFixed(3));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},Wu,[],!1,null,null,null);qu.options.__file="packages/image/src/image-viewer.vue";var Zu=qu.exports,Ku=function(){return void 0!==document.documentElement.style.objectFit},Ju="none",Qu="contain",tc="cover",ec="fill",nc="scale-down",rc="",ic=i({name:"ElImage",mixins:[p.a],inheritAttrs:!1,components:{ImageViewer:Zu},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var t=this.fit;return!this.$isServer&&t?Ku()?{"object-fit":t}:this.getImageStyle(t):{}},alignCenter:function(){return!this.$isServer&&!Ku()&&this.fit!==ec},preview:function(){var t=this.previewSrcList;return Array.isArray(t)&&t.length>0},imageIndex:function(){var t=0,e=this.previewSrcList.indexOf(this.src);return e>=0&&(t=e),t}},watch:{src:function(t){this.show&&this.loadImage()},show:function(t){t&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var t=this;if(!this.$isServer){this.loading=!0,this.error=!1;var e=new Image;e.onload=function(n){return t.handleLoad(n,e)},e.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach(function(n){var r=t.$attrs[n];e.setAttribute(n,r)}),e.src=this.src}},handleLoad:function(t,e){this.imageWidth=e.width,this.imageHeight=e.height,this.loading=!1,this.error=!1},handleError:function(t){this.loading=!1,this.error=!0,this.$emit("error",t)},handleLazyLoad:function(){Object(pt.isInContainer)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var t=this.scrollContainer,e=null;(e=Object(Ls.isHtmlElement)(t)?t:Object(Ls.isString)(t)?document.querySelector(t):Object(pt.getScrollContainer)(this.$el))&&(this._scrollContainer=e,this._lazyLoadHandler=Xs()(200,this.handleLazyLoad),Object(pt.on)(e,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var t=this._scrollContainer,e=this._lazyLoadHandler;!this.$isServer&&t&&e&&(Object(pt.off)(t,"scroll",e),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(t){var e=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,o=r.clientHeight;if(!(e&&n&&i&&o))return{};var a=e/n,s=i/o;t===nc&&(t=e<i&&n<o?Ju:Qu);switch(t){case Ju:return{width:"auto",height:"auto"};case Qu:return a<s?{width:"auto"}:{height:"auto"};case tc:return a<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(rc=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=rc,this.showViewer=!1}}},Hu,[],!1,null,null,null);ic.options.__file="packages/image/src/main.vue";var oc=ic.exports;oc.install=function(t){t.component(oc.name,oc)};var ac=oc,sc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[t._v("\n "+t._s(t.i18nDate)+"\n ")]),0===t.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("prev-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("today")}}},[t._v("\n "+t._s(t.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("next-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):t._e()]),0===t.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:t.date,"selected-day":t.realSelectedDay,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},t._l(t.validatedRange,function(e,r){return n("date-table",{key:r,attrs:{date:e[0],"selected-day":t.realSelectedDay,range:e,"hide-header":0!==r,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})}),1)])};sc._withStripped=!0;var lc=n(20),uc=n.n(lc),cc=i({props:{selectedDay:String,range:{type:Array,validator:function(t){if(!t||!t.length)return!0;var e=t[0],n=t[1];return Object(dr.validateRangeInOneMonth)(e,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(t){return Object(dr.range)(t.length/7).map(function(e,n){var r=7*n;return t.slice(r,r+7)})},getFormateDate:function(t,e){if(!t||-1===["prev","current","next"].indexOf(e))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===e?n=this.prevMonthDatePrefix:"next"===e&&(n=this.nextMonthDatePrefix),n+"-"+(t=("00"+t).slice(-2))},getCellClass:function(t){var e=t.text,n=t.type,r=[n];if("current"===n){var i=this.getFormateDate(e,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(t){var e=t.text,n=t.type,r=this.getFormateDate(e,n);this.$emit("pick",r)},cellRenderProxy:function(t){var e=t.text,n=t.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[e]);var o=this.getFormateDate(e,n);return i({date:new Date(o),data:{isSelected:this.selectedDay===o,type:n+"-month",day:o}})}},computed:{WEEK_DAYS:function(){return Object(dr.getI18nSettings)().dayNames},prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),uc.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return uc.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return uc.a.format(t,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var t=[];if(this.isInRange){var e=this.range,n=e[0],r=e[1],i=Object(dr.range)(r.getDate()-n.getDate()+1).map(function(t,e){return{text:n.getDate()+e,type:"current"}}),o=i.length%7;o=0===o?0:7-o;var a=Object(dr.range)(o).map(function(t,e){return{text:e+1,type:"next"}});t=i.concat(a)}else{var s=this.date,l=Object(dr.getFirstDayOfMonth)(s);l=0===l?7:l;var u="number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1,c=Object(dr.getPrevMonthLastDays)(s,l-u).map(function(t){return{text:t,type:"prev"}}),h=Object(dr.getMonthDays)(s).map(function(t){return{text:t,type:"current"}});t=[].concat(c,h);var d=Object(dr.range)(42-t.length).map(function(t,e){return{text:e+1,type:"next"}});t=t.concat(d)}return this.toNestedArr(t)},weekDays:function(){var t=this.firstDayOfWeek,e=this.WEEK_DAYS;return"number"!=typeof t||0===t?e.slice():e.slice(t).concat(e.slice(0,t))}},render:function(){var t=this,e=arguments[0],n=this.hideHeader?null:e("thead",[this.weekDays.map(function(t){return e("th",{key:t},[t])})]);return e("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,e("tbody",[this.rows.map(function(n,r){return e("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&t.hideHeader},key:r},[n.map(function(n,r){return e("td",{key:r,class:t.getCellClass(n),on:{click:t.pickDay.bind(t,n)}},[e("div",{class:"el-calendar-day"},[t.cellRenderProxy(n)])])})])})])])}},void 0,void 0,!1,null,null,null);cc.options.__file="packages/calendar/src/date-table.vue";var hc=cc.exports,dc=["prev-month","today","next-month"],fc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],pc=i({name:"ElCalendar",mixins:[p.a],components:{DateTable:hc,ElButton:U.a,ElButtonGroup:X.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(t){return!Array.isArray(t)||2===t.length&&t.every(function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date})}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(t){this.realSelectedDay=t},selectDate:function(t){if(-1===dc.indexOf(t))throw new Error("invalid type "+t);var e="";(e="prev-month"===t?this.prevMonthDatePrefix+"-01":"next-month"===t?this.nextMonthDatePrefix+"-01":this.formatedToday)!==this.formatedDate&&this.pickDay(e)},toDate:function(t){if(!t)throw new Error("invalid val");return t instanceof Date?t:new Date(t)},rangeValidator:function(t,e){var n=this.realFirstDayOfWeek,r=e?n:0===n?6:n-1,i=(e?"start":"end")+" of range should be "+fc[r]+".";return t.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),uc.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return uc.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return uc.a.format(t,"yyyy-MM")},formatedDate:function(){return uc.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var t=this.date.getFullYear(),e=this.date.getMonth()+1;return t+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+e)},formatedToday:function(){return uc.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(t){this.selectedDay=t;var e=new Date(t);this.$emit("input",e)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var t=this.selectedDay.split("-");return new Date(t[0],t[1]-1,t[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var t=this,e=this.range;if(!e)return[];if(2===(e=e.reduce(function(e,n,r){var i=t.toDate(n);return t.rangeValidator(i,0===r)&&(e=e.concat(i)),e},[])).length){var n=e,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(dr.validateRangeInOneMonth)(r,i))return[[r,i]];var o=[],a=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(a.getTime()-864e5);if(!Object(dr.validateRangeInOneMonth)(a,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([r,s]);var l=this.realFirstDayOfWeek,u=a.getDay(),c=0;return u!==l&&(c=0===l?7-u:(c=l-u)>0?c:7+c),(a=this.toDate(a.getTime()+864e5*c)).getDate()<i.getDate()&&o.push([a,i]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},sc,[],!1,null,null,null);pc.options.__file="packages/calendar/src/main.vue";var gc=pc.exports;gc.install=function(t){t.component(gc.name,gc)};var vc=gc,mc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-fade-in"}},[t.visible?n("div",{staticClass:"el-backtop",style:{right:t.styleRight,bottom:t.styleBottom},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):t._e()])};mc._withStripped=!0;var yc=function(t){return Math.pow(t,3)},bc=i({name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Xs()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var t=this.el.scrollTop;this.visible=t>=this.visibilityHeight},handleClick:function(t){this.scrollToTop(),this.$emit("click",t)},scrollToTop:function(){var t=this.el,e=Date.now(),n=t.scrollTop,r=window.requestAnimationFrame||function(t){return setTimeout(t,16)};r(function i(){var o,a=(Date.now()-e)/500;a<1?(t.scrollTop=n*(1-((o=a)<.5?yc(2*o)/2:1-yc(2*(1-o))/2)),r(i)):t.scrollTop=0})}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},mc,[],!1,null,null,null);bc.options.__file="packages/backtop/src/main.vue";var _c=bc.exports;_c.install=function(t){t.component(_c.name,_c)};var xc=_c,wc=function(t,e){return t===window||t===document?document.documentElement[e]:t[e]},Sc=function(t){return wc(t,"offsetHeight")},Cc="ElInfiniteScroll",kc={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Oc=function(t,e){return Object(Ls.isHtmlElement)(t)?(n=kc,Object.keys(n||{}).map(function(t){return[t,n[t]]})).reduce(function(n,r){var i=r[0],o=r[1],a=o.type,s=o.default,l=t.getAttribute("infinite-scroll-"+i);switch(l=Object(Ls.isUndefined)(e[l])?l:e[l],a){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(Ls.isDefined)(l)?"false"!==l&&Boolean(l):s;break;default:l=a(l)}return n[i]=l,n},{}):{};var n},Mc=function(t){return t.getBoundingClientRect().top},Ec=function(t){var e=this[Cc],n=e.el,r=e.vm,i=e.container,o=e.observer,a=Oc(n,r),s=a.distance;if(!a.disabled){var l=i.getBoundingClientRect();if(l.width||l.height){var u=!1;if(i===n){var c=i.scrollTop+function(t){return wc(t,"clientHeight")}(i);u=i.scrollHeight-c<=s}else{u=Sc(n)+Mc(n)-Mc(i)-Sc(i)+Number.parseFloat(function(t,e){if(t===window&&(t=document.documentElement),1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}(i,"borderBottomWidth"))<=s}u&&Object(Ls.isFunction)(t)?t.call(r):o&&(o.disconnect(),this[Cc].observer=null)}}},Tc={name:"InfiniteScroll",inserted:function(t,e,n){var r=e.value,i=n.context,o=Object(pt.getScrollContainer)(t,!0),a=Oc(t,i),s=a.delay,l=a.immediate,u=A()(s,Ec.bind(t,r));(t[Cc]={el:t,vm:i,container:o,onScroll:u},o)&&(o.addEventListener("scroll",u),l&&((t[Cc].observer=new MutationObserver(u)).observe(o,{childList:!0,subtree:!0}),u()))},unbind:function(t){var e=t[Cc],n=e.container,r=e.onScroll;n&&n.removeEventListener("scroll",r)},install:function(t){t.directive(Tc.name,Tc)}},Ac=Tc,Ic=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(e){t.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[t._t("title",[t._v(t._s(t.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[t._t("content",[t._v(t._s(t.content))])],2)])};Ic._withStripped=!0;var Dc=i({name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(Li.t)("el.pageHeader.title")}},content:String}},Ic,[],!1,null,null,null);Dc.options.__file="packages/page-header/src/main.vue";var Pc=Dc.exports;Pc.install=function(t){t.component(Pc.name,Pc)};var Lc=Pc,jc=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,function(t,n){return e("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:t}})}),1)};jc._withStripped=!0;var Nc=n(43),Rc=n.n(Nc),Bc=function(t){return t.stopPropagation()},Fc=i({inject:["panel"],components:{ElCheckbox:rn.a,ElRadio:Rc.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some(function(e){return t.isInPath(e)})},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}}):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=Bc),t("el-checkbox",Ja()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(g.isEqual)(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:Bc}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,u=s.expandTrigger,c=s.checkStrictly,h=s.multiple,d=!c&&a,f={on:{}};return"click"===u?f.on.click=this.handleExpand:(f.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},f.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!o||a||c||h||(f.on.click=this.handleCheckChange),t("li",Ja()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},f]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},void 0,void 0,!1,null,null,null);Fc.options.__file="packages/cascader-panel/src/cascader-node.vue";var zc=Fc.exports,Vc=i({name:"ElCascaderMenu",mixins:[p.a],inject:["panel"],components:{ElScrollbar:R.a,CascaderNode:zc},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(g.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=t.clientX-i,a=this.$el,s=a.offsetWidth,l=a.offsetHeight,u=e.offsetTop,c=u+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" V"+c+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map(function(n,i){var o=n.hasChildren;return t("cascader-node",Ja()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":o,"aria-owns":o?e:null}},r]))});return[].concat(i,[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",Ja()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},void 0,void 0,!1,null,null,null);Vc.options.__file="packages/cascader-panel/src/cascader-menu.vue";var $c=Vc.exports,Gc=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var Hc=0,Wc=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=Hc++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map(function(t){return t.value}),this.pathLabels=this.pathNodes.map(function(t){return t.label}),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map(function(r){return new t(r,n,e)})},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some(function(t){return Object(g.isEqual)(t,e)}):Object(g.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(g.capitalize)(t);this.children.forEach(function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))})},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(g.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children.filter(function(t){return!t.isDisabled}),e=!!t.length&&t.every(function(t){return t.checked});this.setCheckState(e)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce(function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)},0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},Gc(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object($t.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}();var Uc=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(g.coerceTruthyValueToArray)(t),this.nodes=t.map(function(t){return new Wc(t,e.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new Wc(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;(t=Object(g.coerceTruthyValueToArray)(t)).forEach(function(t){return n.appendNode(t,e)})},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:function t(e,n){return e.reduce(function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e},[])}(this.nodes,t)},t.prototype.getNodeByValue=function(t){if(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter(function(e){return Object(g.valueEquals)(e.path,t)||e.value===t});return e&&e.length?e[0]:null}return null},t}(),Yc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xc=yl.a.keys,qc={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:g.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Zc=function(t){return!t.getAttribute("aria-owns")},Kc=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},Jc=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},Qc=function(t){t&&(t.focus(),!Zc(t)&&t.click())},th=i({name:"ElCascaderPanel",components:{CascaderMenu:$c},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Vt()(Yc({},qc),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(t){Object(g.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){Object(g.isEmpty)(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(g.isEmpty)(e)?this.lazyLoad():(this.store=new Uc(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(g.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach(function(e){e.syncCheckState(t.checkedValue)})},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(g.isEmpty)(r))if(Object(g.isEmpty)(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map(function(e){return t.getNodeByValue(e.getValue())});this.expandNodes(s)}},expandNodes:function(t){var e=this;t.forEach(function(t){return e.handleExpand(t,!0)})},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple?Object(g.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=n.map(function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]})},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case Xc.up:var n=Kc(e,-1);Qc(n);break;case Xc.down:var r=Kc(e,1);Qc(r);break;case Xc.left:var i=this.$refs.menu[Jc(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Qc(o)}break;case Xc.right:var a=this.$refs.menu[Jc(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');Qc(s)}break;case Xc.enter:!function(t){if(t){var e=t.querySelector("input");e?e.click():Zc(t)&&t.click()}}(e);break;case Xc.esc:case Xc.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map(function(t){return t.getValue()}),s=n.map(function(t){return t.getValue()});Object(g.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new Uc([],r),this.menus=[this.store.getNodes()]),t.loading=!0;r.lazyLoad(t,function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter(function(t){return t[a]===o}).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,function(){n.handleExpand(l)}),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)})},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(t){return t.getValueByOption()})},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach(function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");Be()(n,r)}})},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;return this.multiple?this.getFlattedNodes(t).filter(function(t){return t.checked}):Object(g.isEmpty)(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter(function(t){return!t.isDisabled}).forEach(function(t){return t.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},jc,[],!1,null,null,null);th.options.__file="packages/cascader-panel/src/cascader-panel.vue";var eh=th.exports;eh.install=function(t){t.component(eh.name,eh)};var nh=eh,rh=i({name:"ElAvatar",props:{size:{type:[Number,String],validator:function(t){return"string"==typeof t?["large","medium","small"].includes(t):"number"==typeof t}},shape:{type:String,default:"circle",validator:function(t){return["circle","square"].includes(t)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var t=this.size,e=this.icon,n=this.shape,r=["el-avatar"];return t&&"string"==typeof t&&r.push("el-avatar--"+t),e&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var t=this.error;!1!==(t?t():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var t=this.$createElement,e=this.icon,n=this.src,r=this.alt,i=this.isImageExist,o=this.srcSet,a=this.fit;return i&&n?t("img",{attrs:{src:n,alt:r,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):e?t("i",{class:e}):this.$slots.default}},render:function(){var t=arguments[0],e=this.avatarClass,n=this.size;return t("span",{class:e,style:"number"==typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{}},[this.renderAvatar()])}},void 0,void 0,!1,null,null,null);rh.options.__file="packages/avatar/src/main.vue";var ih=rh.exports;ih.install=function(t){t.component(ih.name,ih)};var oh=ih,ah=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:t.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[t.direction,t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":t.title,role:"dialog",tabindex:"-1"}},[t.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[t._t("title",[n("span",{attrs:{role:"heading",title:t.title}},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(t.title||"drawer"),type:"button"},on:{click:t.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2):t._e(),t.rendered?n("section",{staticClass:"el-drawer__body"},[t._t("default")],2):t._e()])])])])};ah._withStripped=!0;var sh=i({name:"ElDrawer",mixins:[_.a,C.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(t){return-1!==["ltr","rtl","ttb","btt"].indexOf(t)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"==typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||this.$emit("close"),this.$nextTick(function(){e.prevActiveElement&&e.prevActiveElement.focus()}))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open())},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},ah,[],!1,null,null,null);sh.options.__file="packages/drawer/src/main.vue";var lh=sh.exports;lh.install=function(t){t.component(lh.name,lh)};var uh=lh,ch=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",t._b({attrs:{trigger:"click"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"el-popover",t.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[t.hideIcon?t._e():n("i",{staticClass:"el-popconfirm__icon",class:t.icon,style:{color:t.iconColor}}),t._v("\n "+t._s(t.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:t.cancelButtonType},on:{click:t.cancel}},[t._v("\n "+t._s(t.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:t.confirmButtonType},on:{click:t.confirm}},[t._v("\n "+t._s(t.displayConfirmButtonText)+"\n ")])],1)]),t._t("reference",null,{slot:"reference"})],2)};ch._withStripped=!0;var hh=n(44),dh=i({name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:n.n(hh).a,ElButton:U.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(Li.t)("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(Li.t)("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},ch,[],!1,null,null,null);dh.options.__file="packages/popconfirm/src/main.vue";var fh=dh.exports;fh.install=function(t){t.component(fh.name,fh)};var ph=fh,gh=[m,M,H,K,et,ot,mt,Ct,At,Lt,Wt,Zt,te,oe,ue,fe,me,xe,ke,Ve,$e,Ue,Ze,tn,rr,cr,si,gi,Ci,Ai,Di,no,ao,co,bo,Mo,Io,Lo,Jo,ra,Sa,za,$a,Wa,as,cs,ps,Es,Ds,Rs,Vs,Ws,Ks,el,ol,ul,fl,kl,eu,lu,du,vu,_u,Cu,Eu,Iu,ju,Fu,Gu,ac,vc,xc,Lc,nh,oh,uh,ph,bt.a],vh=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ji.a.use(e.locale),ji.a.i18n(e.i18n),gh.forEach(function(e){t.component(e.name,e)}),t.use(Ac),t.use(Na.directive),t.prototype.$ELEMENT={size:e.size||"",zIndex:e.zIndex||2e3},t.prototype.$loading=Na.service,t.prototype.$msgbox=Ji,t.prototype.$alert=Ji.alert,t.prototype.$confirm=Ji.confirm,t.prototype.$prompt=Ji.prompt,t.prototype.$notify=fa,t.prototype.$message=Cs};"undefined"!=typeof window&&window.Vue&&vh(window.Vue);e.default={version:"2.15.1",locale:ji.a.use,i18n:ji.a.i18n,install:vh,CollapseTransition:bt.a,Loading:Na,Pagination:m,Dialog:M,Autocomplete:H,Dropdown:K,DropdownMenu:et,DropdownItem:ot,Menu:mt,Submenu:Ct,MenuItem:At,MenuItemGroup:Lt,Input:Wt,InputNumber:Zt,Radio:te,RadioGroup:oe,RadioButton:ue,Checkbox:fe,CheckboxButton:me,CheckboxGroup:xe,Switch:ke,Select:Ve,Option:$e,OptionGroup:Ue,Button:Ze,ButtonGroup:tn,Table:rr,TableColumn:cr,DatePicker:si,TimeSelect:gi,TimePicker:Ci,Popover:Ai,Tooltip:Di,MessageBox:Ji,Breadcrumb:no,BreadcrumbItem:ao,Form:co,FormItem:bo,Tabs:Mo,TabPane:Io,Tag:Lo,Tree:Jo,Alert:ra,Notification:fa,Slider:Sa,Icon:za,Row:$a,Col:Wa,Upload:as,Progress:cs,Spinner:ps,Message:Cs,Badge:Es,Card:Ds,Rate:Rs,Steps:Vs,Step:Ws,Carousel:Ks,Scrollbar:el,CarouselItem:ol,Collapse:ul,CollapseItem:fl,Cascader:kl,ColorPicker:eu,Transfer:lu,Container:du,Header:vu,Aside:_u,Main:Cu,Footer:Eu,Timeline:Iu,TimelineItem:ju,Link:Fu,Divider:Gu,Image:ac,Calendar:vc,Backtop:xc,InfiniteScroll:Ac,PageHeader:Lc,CascaderPanel:nh,Avatar:oh,Drawer:uh,Popconfirm:ph}}]).default},zMj2:function(t,e,n){"use strict";var r=function(){return function(t){this.value=t}}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.a=o},zOqJ:function(t,e,n){var r=n("Y/tY"),i=n("vImi"),o={};Object.keys(r).forEach(function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var r=e[n];o[t][n]=function(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(r),o[t][n].raw=function(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)})}),t.exports=o},zQR9:function(t,e,n){"use strict";var r=n("h65t")(!0);n("vIB/")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},zTCi:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(o.default.prototype.$isServer)return;if(!e)return void(t.scrollTop=0);var n=[],r=e.offsetParent;for(;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;var i=e.offsetTop+n.reduce(function(t,e){return t+e.offsetTop},0),a=i+e.offsetHeight,s=t.scrollTop,l=s+t.clientHeight;i<s?t.scrollTop=i:a>l&&(t.scrollTop=a-t.clientHeight)};var r,i=n("7+uW"),o=(r=i)&&r.__esModule?r:{default:r}},zW4X:function(t,e,n){"use strict";var r={};function i(t,e){var n;return"string"!=typeof e&&(e=i.defaultChars),n=function(t){var e,n,i=r[t];if(i)return i;for(i=r[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),i.push(n);for(e=0;e<t.length;e++)i[n=t.charCodeAt(e)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}(e),t.replace(/(%[a-f0-9]{2})+/gi,function(t){var e,r,i,o,a,s,l,u="";for(e=0,r=t.length;e<r;e+=3)(i=parseInt(t.slice(e+1,e+3),16))<128?u+=n[i]:192==(224&i)&&e+3<r&&128==(192&(o=parseInt(t.slice(e+4,e+6),16)))?(u+=(l=i<<6&1984|63&o)<128?"��":String.fromCharCode(l),e+=3):224==(240&i)&&e+6<r&&(o=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),128==(192&o)&&128==(192&a))?(u+=(l=i<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),e+=6):240==(248&i)&&e+9<r&&(o=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),s=parseInt(t.slice(e+10,e+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((l=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),e+=9):u+="�";return u})}i.defaultChars=";/?:@&=+$,#",i.componentChars="",t.exports=i}});
- //# sourceMappingURL=vendor.8c9ac76522a5e4bf9301.js.map
|